[03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18: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]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:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:21]accept exits with 9 [03:37:21]New connection [03:37:21]New thread 3066506596 created [03:37:21]Thread 3066649956 joined [03:37:21]Waiting for new connection... [03:37:21] Sock 9.Parse request [03:37:21]Sock 9.Check first char [03:37:21]Sock 9.First char is OK [03:37:21]request: POST /json_proto HTTP/1.0 [03:37:21]Method: POST [03:37:21]URL: /json_proto [03:37:21]Method is POST - this is cgi request [03:37:21]url: /json_proto [03:37:21]query_string will be loaded in cgi processing [03:37:21]execute_cgi json_proto POST (null) [03:37:21]execute_cgi path=json_proto method=POST [03:37:21]POST find Content-Length [03:37:21]Host: 172.17.42.131:8080 [03:37:21]Content-Length: 682 [03:37:21]Content-Type: application/json [03:37:21] [03:37:21]POST finish read [03:37:21]Found Content-Length = 682 [03:37:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:21]execute_script... [03:37:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:21]POST & json_proto [03:37:21]process_json_proto [03:37:21]json parsed OK: [03:37:21]protocol is kg_v1.0 [03:37:21]action value=close_receipt [03:37:21]process_action close_receipt [03:37:21]cmd_close_receipt [03:37:21]MH_GetDate [03:37:21]Write to MH i2c: F0 00 00 0F 13 11 [03:37:21]Write i2c OK [03:37:21]MH_I2C_Read... [03:37:21]Read from MH i2c: F0 [03:37:21]MH_I2C_Read... [03:37:21]Read from MH i2c: F0 09 00 [03:37:21]MH_I2C_Read... [03:37:21]Read from MH i2c: F0 09 00 0F 13 00 73 6F 18 67 A0 18 CA 66 63 [03:37:21]GetLastDocTimeStamp 1729651938 [03:37:21]current date 1729654643 [03:37:21]FM_GetShiftState [03:37:21]SAM_PROTO_GetShiftState [03:37:21]wFMCommunicate request_size=4 [03:37:21]MH_SAM_APDU [03:37:21]CAPDU: 80 13 01 00 [03:37:21]Write to MH i2c: E2 08 00 10 13 80 13 01 00 00 00 00 00 A0 [03:37:21]Write i2c OK [03:37:21]MH_I2C_Read... [03:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:21]Read from MH i2c: E2 [03:37:21]MH_I2C_Read... [03:37:21]Read from MH i2c: E2 0E 00 [03:37:21]MH_I2C_Read... [03:37:21]Read from MH i2c: E2 0E 00 10 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 88 [03:37:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [03:37:21]wFMCommunicate OK [03:37:21]SAM_PROTO_GetShiftState done [03:37:21]FM_GetShiftState done [03:37:21]opened in 1729642525 [03:37:21]opened+sec_in_day 1729728925 [03:37:21]quantity*price = 200031 [03:37:21]sum+1 = 200032 [03:37:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 23 23.10.2024 03:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188565 ФПД: 263791228478715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T033723&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188565&fm=263791228478715&tin=02508201610067®Number=0000000000100030&sum=200000 [03:37:22]StoreToDocumentArchive [03:37:22]shift 462 fd 188565 [03:37:22]save to /storage/0462/doc_00188565 [03:37:22]save last doc name /storage/0462/doc_00188565 to /storage/kkm_last_doc_name [03:37:22]save OK [03:37:22]Clear old archive folders... [03:37:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:37:22]tlvbuf is 008F2D70 [03:37:22]SAM_PROTO_ClearQueue [03:37:22]wFMCommunicate request_size=4 [03:37:22]MH_SAM_APDU [03:37:22]CAPDU: 80 09 00 00 [03:37:22]Write to MH i2c: E2 08 00 1D 13 80 09 00 00 00 00 00 00 A2 [03:37:22]Write i2c OK [03:37:22]MH_I2C_Read... [03:37:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:37:22]Read from MH i2c: E2 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 03 00 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [03:37:22]RAPDU: 90 00 [03:37:22]wFMCommunicate OK [03:37:22]SAM_PROTO_ClearQueue done [03:37:22]KKMCreateOFDPacket [03:37:22]OFDProtocolAddRootSTLVToBuf [03:37:22]FM_MakeSignedData [03:37:22]FM_MakeSignedData [03:37:22]SAM_PROTO_SignData [03:37:22]wFMCommunicate request_size=4 [03:37:22]MH_SAM_APDU [03:37:22]CAPDU: 80 0D 01 02 [03:37:22]Write to MH i2c: E2 08 00 1E 13 80 0D 01 02 00 00 00 00 AA [03:37:22]Write i2c OK [03:37:22]MH_I2C_Read... [03:37:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:37:22]Read from MH i2c: E2 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 03 00 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [03:37:22]RAPDU: 90 00 [03:37:22]wFMCommunicate OK [03:37:22]wFMCommunicate request_size=255 [03:37:22]MH_SAM_APDU [03:37:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 73 6F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E0 02 00 35 04 06 00 EF [03:37:22]Write to MH i2c: E2 02 01 1F 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 73 6F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E0 02 00 35 04 06 00 EF 00 00 0C [03:37:22]Write i2c OK [03:37:22]MH_I2C_Read... [03:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:22]Read from MH i2c: E2 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 03 00 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [03:37:22]RAPDU: 90 00 [03:37:22]wFMCommunicate OK [03:37:22]wFMCommunicate request_size=10 [03:37:22]MH_SAM_APDU [03:37:22]CAPDU: 80 0D 02 02 05 EA AE 77 E4 FB [03:37:22]Write to MH i2c: E2 0D 00 20 13 80 0D 02 02 05 00 EA AE 77 E4 FB 00 00 A5 [03:37:22]Write i2c OK [03:37:22]MH_I2C_Read... [03:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:22]Read from MH i2c: E2 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 03 00 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [03:37:22]RAPDU: 90 00 [03:37:22]wFMCommunicate OK [03:37:22]wFMCommunicate request_size=4 [03:37:22]MH_SAM_APDU [03:37:22]CAPDU: 80 0D 03 02 [03:37:22]Write to MH i2c: E2 08 00 21 13 80 0D 03 02 00 00 00 00 AF [03:37:22]Write i2c OK [03:37:22]MH_I2C_Read... [03:37:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:37:22]Read from MH i2c: E2 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 0B 00 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 0B 00 21 13 00 04 D9 33 BD 41 50 03 26 90 00 37 [03:37:22]RAPDU: 04 D9 33 BD 41 50 03 26 90 00 [03:37:22]wFMCommunicate OK [03:37:22]SAM_PROTO_SignData done [03:37:22]FM_MakeSignedData done [03:37:22]CreateOFDProtocolMessage [03:37:22]wFMCommunicate request_size=4 [03:37:22]MH_SAM_APDU [03:37:22]CAPDU: 80 11 00 00 [03:37:22]Write to MH i2c: E2 08 00 22 13 80 11 00 00 00 00 00 00 AF [03:37:22]Write i2c OK [03:37:22]MH_I2C_Read... [03:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:22]Read from MH i2c: E2 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 17 00 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: E2 17 00 22 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [03:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:37:22]wFMCommunicate OK [03:37:22]CreateOFDProtocolMessage done [03:37:22]OFDSenderStorePacket 188565 [03:37:22]StoreOFDPacket docnum=188565 [03:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 28 94 07 01 41 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 73 6F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E0 02 00 35 04 06 00 EF EA AE 77 E4 FB 04 D9 33 BD 41 50 03 26 [03:37:22]CheckFolder [03:37:22]dirname=/storage/ofd_packets [03:37:22]CheckFolder done [03:37:22]ProducePacketName [03:37:22]name=ofd_packets/00188565 [03:37:22]NVStorageSaveData ofd_packets/00188565 [03:37:22]File name is /storage/ofd_packets/00188565 [03:37:22]Write 301 bytes [03:37:22]NVStorageSaveData done [03:37:22]OFDSenderStorePacket done [03:37:22]KKMCreateOFDPacket done [03:37:22]NVStorageSaveData kkm_last_timestamp [03:37:22]File name is /storage/kkm_last_timestamp [03:37:22]Write 4 bytes [03:37:22]NVStorageSaveData done [03:37:22]ExternCall_PrintAddStr [03:37:22]wPrintStart [03:37:22]Write to MH i2c: 01 00 00 23 13 36 [03:37:22]Write i2c OK [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: 01 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: 01 07 00 [03:37:22]MH_I2C_Read... [03:37:22]Read from MH i2c: 01 07 00 23 13 00 00 00 00 00 FF 0F 4B [03:37:22]RasterBufferAndPrint [03:37:22]line Счет N : (1)210624 [03:37:22]line ИНН: 02508201610067 [03:37:22]line Контрольно-Кассовый Чек [03:37:22]line ПРОДАЖА [03:37:22]line ТРК (МРК, ГНК) : 32 [03:37:22]line Товар: 2710124130 [03:37:22]line Аи-92-К-3 [03:37:22]line 29.900 * 66.90 [03:37:22]line = 2000.31 [03:37:22]line НДС 12% НСП 1% [03:37:22]line > о реализуемом товаре [03:37:22]line ОКРУГЛЕНИЕ: -0.31 [03:37:22]line ИТОГО: 2000.00 [03:37:22]line Внесено: 2000.00 [03:37:22]line СДАЧА: 0.00 [03:37:22]line НСП 1% : 17.70 [03:37:22]line НДС 12% : 212.42 [03:37:22]line Наличными: 2000.00 [03:37:22]line Безнал.: 0.00 [03:37:22]line Место: АЗС № 86 "Партнер Нефть" [03:37:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:37:22]line СНО: Общий режим [03:37:22]line Чек 23 23.10.2024 03:37 [03:37:22]line Смена: 462 ФФД: 1.0 [03:37:22]line ЗНМ: 0300000155 [03:37:22]line РНМ: 0000000000100030 [03:37:22]line Версия ККМ: 001 [03:37:22]line ФМ: 0000000000965340 [03:37:22]line ФД: 188565 [03:37:22]line ФПД: 263791228478715 [03:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T033723&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188565&fm=263791228478715&tin=02508201610067®Number=0000000000100030&sum=200000 [03:37:23]OFD Sender: Processing packet 188565 [packets to send 1062, broken 1061] [03:37:23]ProducePacketName [03:37:23]name=ofd_packets/00188565 [03:37:23]OFD Sender: To server: pG, [03:37:23]CommunicateWithHost lk.salyk.kg:30040 [03:37:23]ConnectInit lk.salyk.kg [03:37:23]written 0, free lines is 4095 [03:37:23]Connected sock=10 [03:37:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 28 94 07 01 41 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 73 6F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E0 02 00 35 04 06 00 EF EA AE 77 E4 FB 04 D9 33 BD 41 50 03 26 [03:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 97 D8 47 00 7D 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E0 02 00 F4 03 04 00 5F 19 18 67 B6 04 01 00 00 A2 4B 0E 3B 52 9B 48 01 [03:37:23]CommunicateWithHost err = 0 [03:37:23]CheckOFDResponse [03:37:23]1017 (14) - 77093643461234 [03:37:23]1041 (16) - 0000000000965340 [03:37:23]1040 (4) - 188565 [03:37:23]1012 (4) - 22.10.2024 21:30 [03:37:23]1206 (1) - 0 [03:37:23]OFD Sender: Remove packet 188565 [03:37:23]ProducePacketName [03:37:23]name=ofd_packets/00188565 [03:37:23]NVStorageDeleteData [03:37:23]Write to MH i2c: 01 00 00 4E 13 61 [03:37:23]Write i2c OK [03:37:23]MH_I2C_Read... [03:37:23]Read from MH i2c: 01 [03:37:23]MH_I2C_Read... [03:37:23]Read from MH i2c: 01 07 00 [03:37:23]MH_I2C_Read... [03:37:23]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 5F 0C D3 [03:37:23]RasterBufferAndPrint [03:37:23]line [03:37:23]line [03:37:23]line [03:37:23]line [03:37:23]line [03:37:23]written 0, free lines is 3171 [03:37:23]MH_Cut [03:37:23]Write to MH i2c: D1 01 00 55 13 01 3A [03:37:23]Write i2c OK [03:37:23]MH_I2C_Read... [03:37:23]Read from MH i2c: D1 [03:37:23]MH_I2C_Read... [03:37:23]Read from MH i2c: D1 01 00 [03:37:23]MH_I2C_Read... [03:37:23]Read from MH i2c: D1 01 00 55 13 00 39 [03:37:23]Write to MH i2c: 01 00 00 56 13 69 [03:37:23]Write i2c OK [03:37:23]MH_I2C_Read... [03:37:24]OFD Sender: No OFD packet to send [03:37:24]*** Cut start [03:37:24]*** Partial cut [03:37:24]*** CUTSNS_PIN = 1 [03:37:25]*** CUTSNS_PIN = 0 [03:37:25]*** Brake cut motor [03:37:25]Read from MH i2c: 01 [03:37:25]MH_I2C_Read... [03:37:25]*** Stop cut motor [03:37:25]*** Cut end [03:37:25]Read from MH i2c: 01 07 00 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: 01 07 00 56 13 00 00 00 00 00 FF 0F 7E [03:37:25]process_action close_receipt done [03:37:25]requested_data is exist [03:37:25]produce_requested_data [03:37:25]requested_item fm.sn is exist - process it [03:37:25]wFMCommunicate request_size=4 [03:37:25]MH_SAM_APDU [03:37:25]CAPDU: 80 11 00 00 [03:37:25]Write to MH i2c: E2 08 00 57 13 80 11 00 00 00 00 00 00 E4 [03:37:25]Write i2c OK [03:37:25]MH_I2C_Read... [03:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:25]Read from MH i2c: E2 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: E2 17 00 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: E2 17 00 57 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [03:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:37:25]wFMCommunicate OK [03:37:25]requested_item fd.num is exist - process it [03:37:25]SAM_PROTO_GetFieldsCounters [03:37:25]wFMCommunicate request_size=4 [03:37:25]MH_SAM_APDU [03:37:25]CAPDU: 80 13 00 00 [03:37:25]Write to MH i2c: E2 08 00 58 13 80 13 00 00 00 00 00 00 E7 [03:37:25]Write i2c OK [03:37:25]MH_I2C_Read... [03:37:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:37:25]Read from MH i2c: E2 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: E2 62 00 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: E2 62 00 58 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [03:37:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:37:25]wFMCommunicate OK [03:37:25]SAM_PROTO_GetFieldsCounters done [03:37:25]requested_item shift.num is exist - process it [03:37:25]requested_item shift.opened is exist - process it [03:37:25]req_shift_opened [03:37:25]FM_GetShiftState [03:37:25]SAM_PROTO_GetShiftState [03:37:25]wFMCommunicate request_size=4 [03:37:25]MH_SAM_APDU [03:37:25]CAPDU: 80 13 01 00 [03:37:25]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [03:37:25]Write i2c OK [03:37:25]MH_I2C_Read... [03:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:25]Read from MH i2c: E2 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: E2 0E 00 [03:37:25]MH_I2C_Read... [03:37:25]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D1 [03:37:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [03:37:25]wFMCommunicate OK [03:37:25]SAM_PROTO_GetShiftState done [03:37:25]FM_GetShiftState done [03:37:25]req_shift_opened done [03:37:25]requested_item shift.open_date is exist - process it [03:37:25]req_shift_open_date [03:37:25]req_shift_open_date done [03:37:25]produce_requested_data done [03:37:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188565,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [03:37:25]process_action_free close_receipt [03:37:25]json_value_free [03:37:25]json_value_free done [03:37:25]process_json_proto returns [03:37:25]Send response to host [03:37:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188565,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [03:37:25]free response buf [03:37:25]execute_script done [03:37:25]execute_script returns [03:37:25]free content buf [03:37:25]Sock 9.Close socket [03:37:25]Sock 9.Thread stoped [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]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:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:18]accept exits with 7 [03:46:18]New connection [03:46:18]New thread 3066649956 created [03:46:18]Thread 3066506596 joined [03:46:18]Waiting for new connection... [03:46:18] Sock 7.Parse request [03:46:18]Sock 7.Check first char [03:46:18]Sock 7.First char is OK [03:46:18]request: POST /json_proto HTTP/1.0 [03:46:18]Method: POST [03:46:18]URL: /json_proto [03:46:18]Method is POST - this is cgi request [03:46:18]url: /json_proto [03:46:18]query_string will be loaded in cgi processing [03:46:18]execute_cgi json_proto POST (null) [03:46:18]execute_cgi path=json_proto method=POST [03:46:18]POST find Content-Length [03:46:18]Host: 172.17.42.131:8080 [03:46:18]Content-Length: 682 [03:46:18]Content-Type: application/json [03:46:18] [03:46:18]POST finish read [03:46:18]Found Content-Length = 682 [03:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:18]execute_script... [03:46:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:18]POST & json_proto [03:46:18]process_json_proto [03:46:18]json parsed OK: [03:46:18]protocol is kg_v1.0 [03:46:18]action value=close_receipt [03:46:18]process_action close_receipt [03:46:18]cmd_close_receipt [03:46:18]MH_GetDate [03:46:18]Write to MH i2c: F0 00 00 5A 13 5C [03:46:18]Write i2c OK [03:46:18]MH_I2C_Read... [03:46:18]Read from MH i2c: F0 [03:46:18]MH_I2C_Read... [03:46:18]Read from MH i2c: F0 09 00 [03:46:18]MH_I2C_Read... [03:46:18]Read from MH i2c: F0 09 00 5A 13 00 8C 71 18 67 A0 18 CA 66 C9 [03:46:18]GetLastDocTimeStamp 1729654643 [03:46:18]current date 1729655180 [03:46:18]FM_GetShiftState [03:46:18]SAM_PROTO_GetShiftState [03:46:18]wFMCommunicate request_size=4 [03:46:18]MH_SAM_APDU [03:46:18]CAPDU: 80 13 01 00 [03:46:18]Write to MH i2c: E2 08 00 5B 13 80 13 01 00 00 00 00 00 EB [03:46:18]Write i2c OK [03:46:18]MH_I2C_Read... [03:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:18]Read from MH i2c: E2 [03:46:18]MH_I2C_Read... [03:46:18]Read from MH i2c: E2 0E 00 [03:46:18]MH_I2C_Read... [03:46:18]Read from MH i2c: E2 0E 00 5B 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D3 [03:46:18]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [03:46:18]wFMCommunicate OK [03:46:18]SAM_PROTO_GetShiftState done [03:46:18]FM_GetShiftState done [03:46:18]opened in 1729642525 [03:46:18]opened+sec_in_day 1729728925 [03:46:18]quantity*price = 200031 [03:46:18]sum+1 = 200032 [03:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 24 23.10.2024 03:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188566 ФПД: 9787881921104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T034620&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188566&fm=9787881921104&tin=02508201610067®Number=0000000000100030&sum=200000 [03:46:19]StoreToDocumentArchive [03:46:19]shift 462 fd 188566 [03:46:19]save to /storage/0462/doc_00188566 [03:46:19]save last doc name /storage/0462/doc_00188566 to /storage/kkm_last_doc_name [03:46:19]save OK [03:46:19]Clear old archive folders... [03:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:46:19]tlvbuf is 008E47B0 [03:46:19]SAM_PROTO_ClearQueue [03:46:19]wFMCommunicate request_size=4 [03:46:19]MH_SAM_APDU [03:46:19]CAPDU: 80 09 00 00 [03:46:19]Write to MH i2c: E2 08 00 68 13 80 09 00 00 00 00 00 00 ED [03:46:19]Write i2c OK [03:46:19]MH_I2C_Read... [03:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:46:19]Read from MH i2c: E2 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 03 00 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [03:46:19]RAPDU: 90 00 [03:46:19]wFMCommunicate OK [03:46:19]SAM_PROTO_ClearQueue done [03:46:19]KKMCreateOFDPacket [03:46:19]OFDProtocolAddRootSTLVToBuf [03:46:19]FM_MakeSignedData [03:46:19]FM_MakeSignedData [03:46:19]SAM_PROTO_SignData [03:46:19]wFMCommunicate request_size=4 [03:46:19]MH_SAM_APDU [03:46:19]CAPDU: 80 0D 01 02 [03:46:19]Write to MH i2c: E2 08 00 69 13 80 0D 01 02 00 00 00 00 F5 [03:46:19]Write i2c OK [03:46:19]MH_I2C_Read... [03:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:46:19]Read from MH i2c: E2 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 03 00 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [03:46:19]RAPDU: 90 00 [03:46:19]wFMCommunicate OK [03:46:19]wFMCommunicate request_size=255 [03:46:19]MH_SAM_APDU [03:46:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8C 71 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E0 02 00 35 04 06 00 08 [03:46:19]Write to MH i2c: E2 02 01 6A 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8C 71 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E0 02 00 35 04 06 00 08 00 00 8D [03:46:19]Write i2c OK [03:46:19]MH_I2C_Read... [03:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:19]Read from MH i2c: E2 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 03 00 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [03:46:19]RAPDU: 90 00 [03:46:19]wFMCommunicate OK [03:46:19]wFMCommunicate request_size=10 [03:46:19]MH_SAM_APDU [03:46:19]CAPDU: 80 0D 02 02 05 E6 EB 39 9A 50 [03:46:19]Write to MH i2c: E2 0D 00 6B 13 80 0D 02 02 05 00 E6 EB 39 9A 50 00 00 F6 [03:46:19]Write i2c OK [03:46:19]MH_I2C_Read... [03:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:19]Read from MH i2c: E2 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 03 00 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 03 00 6B 13 00 90 00 F2 [03:46:19]RAPDU: 90 00 [03:46:19]wFMCommunicate OK [03:46:19]wFMCommunicate request_size=4 [03:46:19]MH_SAM_APDU [03:46:19]CAPDU: 80 0D 03 02 [03:46:19]Write to MH i2c: E2 08 00 6C 13 80 0D 03 02 00 00 00 00 FA [03:46:19]Write i2c OK [03:46:19]MH_I2C_Read... [03:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:46:19]Read from MH i2c: E2 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 0B 00 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 0B 00 6C 13 00 B0 C8 E5 B2 88 57 C5 90 90 00 3E [03:46:19]RAPDU: B0 C8 E5 B2 88 57 C5 90 90 00 [03:46:19]wFMCommunicate OK [03:46:19]SAM_PROTO_SignData done [03:46:19]FM_MakeSignedData done [03:46:19]CreateOFDProtocolMessage [03:46:19]wFMCommunicate request_size=4 [03:46:19]MH_SAM_APDU [03:46:19]CAPDU: 80 11 00 00 [03:46:19]Write to MH i2c: E2 08 00 6D 13 80 11 00 00 00 00 00 00 FA [03:46:19]Write i2c OK [03:46:19]MH_I2C_Read... [03:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:19]Read from MH i2c: E2 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 17 00 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: E2 17 00 6D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [03:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:46:19]wFMCommunicate OK [03:46:19]CreateOFDProtocolMessage done [03:46:19]OFDSenderStorePacket 188566 [03:46:19]StoreOFDPacket docnum=188566 [03:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 D0 07 01 71 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8C 71 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E0 02 00 35 04 06 00 08 E6 EB 39 9A 50 B0 C8 E5 B2 88 57 C5 90 [03:46:19]CheckFolder [03:46:19]dirname=/storage/ofd_packets [03:46:19]CheckFolder done [03:46:19]ProducePacketName [03:46:19]name=ofd_packets/00188566 [03:46:19]NVStorageSaveData ofd_packets/00188566 [03:46:19]File name is /storage/ofd_packets/00188566 [03:46:19]Write 301 bytes [03:46:19]NVStorageSaveData done [03:46:19]OFDSenderStorePacket done [03:46:19]KKMCreateOFDPacket done [03:46:19]NVStorageSaveData kkm_last_timestamp [03:46:19]File name is /storage/kkm_last_timestamp [03:46:19]Write 4 bytes [03:46:19]NVStorageSaveData done [03:46:19]ExternCall_PrintAddStr [03:46:19]wPrintStart [03:46:19]Write to MH i2c: 01 00 00 6E 13 81 [03:46:19]Write i2c OK [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: 01 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: 01 07 00 [03:46:19]MH_I2C_Read... [03:46:19]Read from MH i2c: 01 07 00 6E 13 00 00 00 00 00 FF 0F 96 [03:46:19]RasterBufferAndPrint [03:46:19]line Счет N : (1)210625 [03:46:19]line ИНН: 02508201610067 [03:46:19]line Контрольно-Кассовый Чек [03:46:19]line ПРОДАЖА [03:46:19]line ТРК (МРК, ГНК) : 12 [03:46:19]line Товар: 2710124130 [03:46:19]line Аи-92-К-3 [03:46:19]line 29.900 * 66.90 [03:46:19]line = 2000.31 [03:46:19]line НДС 12% НСП 1% [03:46:19]line > о реализуемом товаре [03:46:19]line ОКРУГЛЕНИЕ: -0.31 [03:46:19]line ИТОГО: 2000.00 [03:46:19]line Внесено: 2000.00 [03:46:19]line СДАЧА: 0.00 [03:46:19]line НСП 1% : 17.70 [03:46:19]line НДС 12% : 212.42 [03:46:19]line Наличными: 2000.00 [03:46:19]line Безнал.: 0.00 [03:46:19]line Место: АЗС № 86 "Партнер Нефть" [03:46:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:46:19]line СНО: Общий режим [03:46:19]line Чек 24 23.10.2024 03:46 [03:46:19]line Смена: 462 ФФД: 1.0 [03:46:19]line ЗНМ: 0300000155 [03:46:19]line РНМ: 0000000000100030 [03:46:19]line Версия ККМ: 001 [03:46:19]line ФМ: 0000000000965340 [03:46:19]line ФД: 188566 [03:46:19]line ФПД: 9787881921104 [03:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T034620&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188566&fm=9787881921104&tin=02508201610067®Number=0000000000100030&sum=200000 [03:46:19]written 0, free lines is 4095 [03:46:19]OFD Sender: Processing packet 188566 [packets to send 1062, broken 1061] [03:46:19]ProducePacketName [03:46:19]name=ofd_packets/00188566 [03:46:19]OFD Sender: To server: pG, [03:46:19]CommunicateWithHost lk.salyk.kg:30040 [03:46:19]ConnectInit lk.salyk.kg [03:46:20]Connected sock=10 [03:46:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 D0 07 01 71 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8C 71 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E0 02 00 35 04 06 00 08 E6 EB 39 9A 50 B0 C8 E5 B2 88 57 C5 90 [03:46:20]Write to MH i2c: 01 00 00 99 13 AC [03:46:20]Write i2c OK [03:46:20]MH_I2C_Read... [03:46:20]Read from MH i2c: 01 [03:46:20]MH_I2C_Read... [03:46:20]Read from MH i2c: 01 07 00 [03:46:20]MH_I2C_Read... [03:46:20]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 50 0C 0F [03:46:20]RasterBufferAndPrint [03:46:20]line [03:46:20]line [03:46:20]line [03:46:20]line [03:46:20]line [03:46:20]written 0, free lines is 3157 [03:46:20]MH_Cut [03:46:20]Write to MH i2c: D1 01 00 A0 13 01 85 [03:46:20]Write i2c OK [03:46:20]MH_I2C_Read... [03:46:20]Read from MH i2c: D1 [03:46:20]MH_I2C_Read... [03:46:20]Read from MH i2c: D1 01 00 [03:46:20]MH_I2C_Read... [03:46:20]Read from MH i2c: D1 01 00 A0 13 00 84 [03:46:20]Write to MH i2c: 01 00 00 A1 13 B4 [03:46:20]Write i2c OK [03:46:20]MH_I2C_Read... [03:46:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 48 47 00 23 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 36 35 33 34 30 10 04 04 00 96 E0 02 00 F4 03 04 00 77 1B 18 67 B6 04 01 00 00 9A 44 40 EE 86 52 E1 21 [03:46:20]CommunicateWithHost err = 0 [03:46:20]CheckOFDResponse [03:46:20]1017 (14) - 77093643461234 [03:46:20]1041 (16) - 0000000000965340 [03:46:20]1040 (4) - 188566 [03:46:20]1012 (4) - 22.10.2024 21:39 [03:46:20]1206 (1) - 0 [03:46:20]OFD Sender: Remove packet 188566 [03:46:20]ProducePacketName [03:46:20]name=ofd_packets/00188566 [03:46:20]NVStorageDeleteData [03:46:20]OFD Sender: No OFD packet to send [03:46:21]*** Cut start [03:46:21]*** Partial cut [03:46:21]*** CUTSNS_PIN = 1 [03:46:21]*** CUTSNS_PIN = 0 [03:46:21]*** Brake cut motor [03:46:22]Read from MH i2c: 01 [03:46:22]MH_I2C_Read... [03:46:22]*** Stop cut motor [03:46:22]*** Cut end [03:46:22]Read from MH i2c: 01 07 00 [03:46:22]MH_I2C_Read... [03:46:22]Read from MH i2c: 01 07 00 A1 13 00 00 00 00 00 FF 0F C9 [03:46:22]process_action close_receipt done [03:46:22]requested_data is exist [03:46:22]produce_requested_data [03:46:22]requested_item fm.sn is exist - process it [03:46:22]wFMCommunicate request_size=4 [03:46:22]MH_SAM_APDU [03:46:22]CAPDU: 80 11 00 00 [03:46:22]Write to MH i2c: E2 08 00 A2 13 80 11 00 00 00 00 00 00 2F [03:46:22]Write i2c OK [03:46:22]MH_I2C_Read... [03:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:22]Read from MH i2c: E2 [03:46:22]MH_I2C_Read... [03:46:22]Read from MH i2c: E2 17 00 [03:46:22]MH_I2C_Read... [03:46:22]Read from MH i2c: E2 17 00 A2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [03:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:46:22]wFMCommunicate OK [03:46:22]requested_item fd.num is exist - process it [03:46:22]SAM_PROTO_GetFieldsCounters [03:46:22]wFMCommunicate request_size=4 [03:46:22]MH_SAM_APDU [03:46:22]CAPDU: 80 13 00 00 [03:46:22]Write to MH i2c: E2 08 00 A3 13 80 13 00 00 00 00 00 00 32 [03:46:22]Write i2c OK [03:46:22]MH_I2C_Read... [03:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:46:22]Read from MH i2c: E2 [03:46:22]MH_I2C_Read... [03:46:22]Read from MH i2c: E2 62 00 [03:46:22]MH_I2C_Read... [03:46:22]Read from MH i2c: E2 62 00 A3 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [03:46:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:46:22]wFMCommunicate OK [03:46:22]SAM_PROTO_GetFieldsCounters done [03:46:22]requested_item shift.num is exist - process it [03:46:22]requested_item shift.opened is exist - process it [03:46:22]req_shift_opened [03:46:22]FM_GetShiftState [03:46:22]SAM_PROTO_GetShiftState [03:46:22]wFMCommunicate request_size=4 [03:46:22]MH_SAM_APDU [03:46:22]CAPDU: 80 13 01 00 [03:46:22]Write to MH i2c: E2 08 00 A4 13 80 13 01 00 00 00 00 00 34 [03:46:22]Write i2c OK [03:46:22]MH_I2C_Read... [03:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:22]Read from MH i2c: E2 [03:46:22]MH_I2C_Read... [03:46:22]Read from MH i2c: E2 0E 00 [03:46:22]MH_I2C_Read... [03:46:22]Read from MH i2c: E2 0E 00 A4 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1C [03:46:22]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [03:46:22]wFMCommunicate OK [03:46:22]SAM_PROTO_GetShiftState done [03:46:22]FM_GetShiftState done [03:46:22]req_shift_opened done [03:46:22]requested_item shift.open_date is exist - process it [03:46:22]req_shift_open_date [03:46:22]req_shift_open_date done [03:46:22]produce_requested_data done [03:46:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188566,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [03:46:22]process_action_free close_receipt [03:46:22]json_value_free [03:46:22]json_value_free done [03:46:22]process_json_proto returns [03:46:22]Send response to host [03:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188566,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [03:46:22]free response buf [03:46:22]execute_script done [03:46:22]execute_script returns [03:46:22]free content buf [03:46:22]Sock 7.Close socket [03:46:22]Sock 7.Thread stoped [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:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]accept exits with 9 [03:48:21]New connection [03:48:21]New thread 3066506596 created [03:48:21]Thread 3066649956 joined [03:48:21]Waiting for new connection... [03:48:21] Sock 9.Parse request [03:48:21]Sock 9.Check first char [03:48:21]Sock 9.First char is OK [03:48:21]request: POST /json_proto HTTP/1.0 [03:48:21]Method: POST [03:48:21]URL: /json_proto [03:48:21]Method is POST - this is cgi request [03:48:21]url: /json_proto [03:48:21]query_string will be loaded in cgi processing [03:48:21]execute_cgi json_proto POST (null) [03:48:21]execute_cgi path=json_proto method=POST [03:48:21]POST find Content-Length [03:48:21]Host: 172.17.42.131:8080 [03:48:21]Content-Length: 688 [03:48:21]Content-Type: application/json [03:48:21] [03:48:21]POST finish read [03:48:21]Found Content-Length = 688 [03:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:21]execute_script... [03:48:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:21]POST & json_proto [03:48:21]process_json_proto [03:48:21]json parsed OK: [03:48:21]protocol is kg_v1.0 [03:48:21]action value=close_receipt [03:48:21]process_action close_receipt [03:48:21]cmd_close_receipt [03:48:21]MH_GetDate [03:48:21]Write to MH i2c: F0 00 00 A5 13 A7 [03:48:21]Write i2c OK [03:48:21]MH_I2C_Read... [03:48:21]Read from MH i2c: F0 [03:48:21]MH_I2C_Read... [03:48:21]Read from MH i2c: F0 09 00 [03:48:21]MH_I2C_Read... [03:48:21]Read from MH i2c: F0 09 00 A5 13 00 07 72 18 67 A0 18 CA 66 90 [03:48:21]GetLastDocTimeStamp 1729655180 [03:48:21]current date 1729655303 [03:48:21]FM_GetShiftState [03:48:21]SAM_PROTO_GetShiftState [03:48:21]wFMCommunicate request_size=4 [03:48:21]MH_SAM_APDU [03:48:21]CAPDU: 80 13 01 00 [03:48:21]Write to MH i2c: E2 08 00 A6 13 80 13 01 00 00 00 00 00 36 [03:48:21]Write i2c OK [03:48:21]MH_I2C_Read... [03:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:21]Read from MH i2c: E2 [03:48:21]MH_I2C_Read... [03:48:21]Read from MH i2c: E2 0E 00 [03:48:21]MH_I2C_Read... [03:48:21]Read from MH i2c: E2 0E 00 A6 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1E [03:48:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [03:48:21]wFMCommunicate OK [03:48:21]SAM_PROTO_GetShiftState done [03:48:21]FM_GetShiftState done [03:48:21]opened in 1729642525 [03:48:21]opened+sec_in_day 1729728925 [03:48:21]quantity*price = 200025 [03:48:21]sum+1 = 200026 [03:48:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 25 23.10.2024 03:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188567 ФПД: 76593189418677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T034823&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188567&fm=76593189418677&tin=02508201610067®Number=0000000000100030&sum=200000 [03:48:22]StoreToDocumentArchive [03:48:22]shift 462 fd 188567 [03:48:22]save to /storage/0462/doc_00188567 [03:48:22]save last doc name /storage/0462/doc_00188567 to /storage/kkm_last_doc_name [03:48:22]save OK [03:48:22]Clear old archive folders... [03:48:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [03:48:22]tlvbuf is 008F2C50 [03:48:22]SAM_PROTO_ClearQueue [03:48:22]wFMCommunicate request_size=4 [03:48:22]MH_SAM_APDU [03:48:22]CAPDU: 80 09 00 00 [03:48:22]Write to MH i2c: E2 08 00 B3 13 80 09 00 00 00 00 00 00 38 [03:48:22]Write i2c OK [03:48:22]MH_I2C_Read... [03:48:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:48:22]Read from MH i2c: E2 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 03 00 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [03:48:22]RAPDU: 90 00 [03:48:22]wFMCommunicate OK [03:48:22]SAM_PROTO_ClearQueue done [03:48:22]KKMCreateOFDPacket [03:48:22]OFDProtocolAddRootSTLVToBuf [03:48:22]FM_MakeSignedData [03:48:22]FM_MakeSignedData [03:48:22]SAM_PROTO_SignData [03:48:22]wFMCommunicate request_size=4 [03:48:22]MH_SAM_APDU [03:48:22]CAPDU: 80 0D 01 02 [03:48:22]Write to MH i2c: E2 08 00 B4 13 80 0D 01 02 00 00 00 00 40 [03:48:22]Write i2c OK [03:48:22]MH_I2C_Read... [03:48:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:48:22]Read from MH i2c: E2 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 03 00 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [03:48:22]RAPDU: 90 00 [03:48:22]wFMCommunicate OK [03:48:22]wFMCommunicate request_size=255 [03:48:22]MH_SAM_APDU [03:48:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 07 72 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E0 02 [03:48:22]Write to MH i2c: E2 02 01 B5 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 07 72 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E0 02 00 00 3A [03:48:22]Write i2c OK [03:48:22]MH_I2C_Read... [03:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:22]Read from MH i2c: E2 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 03 00 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 03 00 B5 13 00 90 00 3C [03:48:22]RAPDU: 90 00 [03:48:22]wFMCommunicate OK [03:48:22]wFMCommunicate request_size=16 [03:48:22]MH_SAM_APDU [03:48:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 45 A9 3D D8 F6 B5 [03:48:22]Write to MH i2c: E2 13 00 B6 13 80 0D 02 02 0B 00 00 35 04 06 00 45 A9 3D D8 F6 B5 00 00 46 [03:48:22]Write i2c OK [03:48:22]MH_I2C_Read... [03:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:22]Read from MH i2c: E2 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 03 00 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 03 00 B6 13 00 90 00 3D [03:48:22]RAPDU: 90 00 [03:48:22]wFMCommunicate OK [03:48:22]wFMCommunicate request_size=4 [03:48:22]MH_SAM_APDU [03:48:22]CAPDU: 80 0D 03 02 [03:48:22]Write to MH i2c: E2 08 00 B7 13 80 0D 03 02 00 00 00 00 45 [03:48:22]Write i2c OK [03:48:22]MH_I2C_Read... [03:48:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:48:22]Read from MH i2c: E2 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 0B 00 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 0B 00 B7 13 00 2A 11 16 81 AC 2B 41 0D 90 00 3D [03:48:22]RAPDU: 2A 11 16 81 AC 2B 41 0D 90 00 [03:48:22]wFMCommunicate OK [03:48:22]SAM_PROTO_SignData done [03:48:22]FM_MakeSignedData done [03:48:22]CreateOFDProtocolMessage [03:48:22]wFMCommunicate request_size=4 [03:48:22]MH_SAM_APDU [03:48:22]CAPDU: 80 11 00 00 [03:48:22]Write to MH i2c: E2 08 00 B8 13 80 11 00 00 00 00 00 00 45 [03:48:22]Write i2c OK [03:48:22]MH_I2C_Read... [03:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:22]Read from MH i2c: E2 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 17 00 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: E2 17 00 B8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [03:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:48:22]wFMCommunicate OK [03:48:22]CreateOFDProtocolMessage done [03:48:22]OFDSenderStorePacket 188567 [03:48:22]StoreOFDPacket docnum=188567 [03:48:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DC 8F 0D 01 3F 34 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 07 72 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E0 02 00 35 04 06 00 45 A9 3D D8 F6 B5 2A 11 16 81 AC 2B 41 0D [03:48:22]CheckFolder [03:48:22]dirname=/storage/ofd_packets [03:48:22]CheckFolder done [03:48:22]ProducePacketName [03:48:22]name=ofd_packets/00188567 [03:48:22]NVStorageSaveData ofd_packets/00188567 [03:48:22]File name is /storage/ofd_packets/00188567 [03:48:22]Write 307 bytes [03:48:22]NVStorageSaveData done [03:48:22]OFDSenderStorePacket done [03:48:22]KKMCreateOFDPacket done [03:48:22]NVStorageSaveData kkm_last_timestamp [03:48:22]File name is /storage/kkm_last_timestamp [03:48:22]Write 4 bytes [03:48:22]NVStorageSaveData done [03:48:22]ExternCall_PrintAddStr [03:48:22]wPrintStart [03:48:22]Write to MH i2c: 01 00 00 B9 13 CC [03:48:22]Write i2c OK [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: 01 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: 01 07 00 [03:48:22]MH_I2C_Read... [03:48:22]Read from MH i2c: 01 07 00 B9 13 00 00 00 00 00 FF 0F E1 [03:48:22]RasterBufferAndPrint [03:48:22]line Счет N : (1)210626 [03:48:22]line ИНН: 02508201610067 [03:48:22]line Контрольно-Кассовый Чек [03:48:22]line ПРОДАЖА [03:48:22]line ТРК (МРК, ГНК) : 31 [03:48:22]line Товар: 2710194210 [03:48:22]line D-ENERGY ДТ-К-5 [03:48:22]line 25.910 * 77.20 [03:48:22]line = 2000.25 [03:48:22]line НДС 12% НСП 1% [03:48:22]line > о реализуемом товаре [03:48:22]line ОКРУГЛЕНИЕ: -0.25 [03:48:22]line ИТОГО: 2000.00 [03:48:22]line Внесено: 2000.00 [03:48:22]line СДАЧА: 0.00 [03:48:22]line НСП 1% : 17.70 [03:48:22]line НДС 12% : 212.42 [03:48:22]line Наличными: 2000.00 [03:48:22]line Безнал.: 0.00 [03:48:22]line Место: АЗС № 86 "Партнер Нефть" [03:48:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:48:22]line СНО: Общий режим [03:48:22]line Чек 25 23.10.2024 03:48 [03:48:22]line Смена: 462 ФФД: 1.0 [03:48:22]line ЗНМ: 0300000155 [03:48:22]line РНМ: 0000000000100030 [03:48:22]line Версия ККМ: 001 [03:48:22]line ФМ: 0000000000965340 [03:48:22]line ФД: 188567 [03:48:22]line ФПД: 76593189418677 [03:48:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T034823&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188567&fm=76593189418677&tin=02508201610067®Number=0000000000100030&sum=200000 [03:48:22]written 0, free lines is 4095 [03:48:22]OFD Sender: Processing packet 188567 [packets to send 1062, broken 1061] [03:48:22]ProducePacketName [03:48:22]name=ofd_packets/00188567 [03:48:22]OFD Sender: To server: pG, [03:48:22]CommunicateWithHost lk.salyk.kg:30040 [03:48:22]ConnectInit lk.salyk.kg [03:48:23]Connected sock=10 [03:48:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DC 8F 0D 01 3F 34 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 07 72 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E0 02 00 35 04 06 00 45 A9 3D D8 F6 B5 2A 11 16 81 AC 2B 41 0D [03:48:23]Write to MH i2c: 01 00 00 E4 13 F7 [03:48:23]Write i2c OK [03:48:23]MH_I2C_Read... [03:48:23]Read from MH i2c: 01 [03:48:23]MH_I2C_Read... [03:48:23]Read from MH i2c: 01 07 00 [03:48:23]MH_I2C_Read... [03:48:23]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 58 0C 62 [03:48:23]RasterBufferAndPrint [03:48:23]line [03:48:23]line [03:48:23]line [03:48:23]line [03:48:23]line [03:48:23]written 0, free lines is 3165 [03:48:23]MH_Cut [03:48:23]Write to MH i2c: D1 01 00 EB 13 01 D0 [03:48:23]Write i2c OK [03:48:23]MH_I2C_Read... [03:48:23]Read from MH i2c: D1 [03:48:23]MH_I2C_Read... [03:48:23]Read from MH i2c: D1 01 00 [03:48:23]MH_I2C_Read... [03:48:23]Read from MH i2c: D1 01 00 EB 13 00 CF [03:48:23]Write to MH i2c: 01 00 00 EC 13 FF [03:48:23]Write i2c OK [03:48:23]MH_I2C_Read... [03:48:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 12 D3 47 00 7D 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 36 35 33 34 30 10 04 04 00 97 E0 02 00 F4 03 04 00 F2 1B 18 67 B6 04 01 00 00 D7 EC 94 7E 9D A4 77 EB [03:48:23]CommunicateWithHost err = 0 [03:48:23]CheckOFDResponse [03:48:23]1017 (14) - 77093643461234 [03:48:23]1041 (16) - 0000000000965340 [03:48:23]1040 (4) - 188567 [03:48:23]1012 (4) - 22.10.2024 21:41 [03:48:23]1206 (1) - 0 [03:48:23]OFD Sender: Remove packet 188567 [03:48:23]ProducePacketName [03:48:23]name=ofd_packets/00188567 [03:48:23]NVStorageDeleteData [03:48:23]OFD Sender: No OFD packet to send [03:48:24]*** Cut start [03:48:24]*** Partial cut [03:48:24]*** CUTSNS_PIN = 1 [03:48:24]*** CUTSNS_PIN = 0 [03:48:24]*** Brake cut motor [03:48:25]Read from MH i2c: 01 [03:48:25]MH_I2C_Read... [03:48:25]*** Stop cut motor [03:48:25]*** Cut end [03:48:25]Read from MH i2c: 01 07 00 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: 01 07 00 EC 13 00 00 00 00 00 FF 0F 14 [03:48:25]process_action close_receipt done [03:48:25]requested_data is exist [03:48:25]produce_requested_data [03:48:25]requested_item fm.sn is exist - process it [03:48:25]wFMCommunicate request_size=4 [03:48:25]MH_SAM_APDU [03:48:25]CAPDU: 80 11 00 00 [03:48:25]Write to MH i2c: E2 08 00 ED 13 80 11 00 00 00 00 00 00 7A [03:48:25]Write i2c OK [03:48:25]MH_I2C_Read... [03:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:25]Read from MH i2c: E2 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: E2 17 00 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: E2 17 00 ED 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [03:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:48:25]wFMCommunicate OK [03:48:25]requested_item fd.num is exist - process it [03:48:25]SAM_PROTO_GetFieldsCounters [03:48:25]wFMCommunicate request_size=4 [03:48:25]MH_SAM_APDU [03:48:25]CAPDU: 80 13 00 00 [03:48:25]Write to MH i2c: E2 08 00 EE 13 80 13 00 00 00 00 00 00 7D [03:48:25]Write i2c OK [03:48:25]MH_I2C_Read... [03:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:48:25]Read from MH i2c: E2 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: E2 62 00 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: E2 62 00 EE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [03:48:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:48:25]wFMCommunicate OK [03:48:25]SAM_PROTO_GetFieldsCounters done [03:48:25]requested_item shift.num is exist - process it [03:48:25]requested_item shift.opened is exist - process it [03:48:25]req_shift_opened [03:48:25]FM_GetShiftState [03:48:25]SAM_PROTO_GetShiftState [03:48:25]wFMCommunicate request_size=4 [03:48:25]MH_SAM_APDU [03:48:25]CAPDU: 80 13 01 00 [03:48:25]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [03:48:25]Write i2c OK [03:48:25]MH_I2C_Read... [03:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:25]Read from MH i2c: E2 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: E2 0E 00 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 67 [03:48:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [03:48:25]wFMCommunicate OK [03:48:25]SAM_PROTO_GetShiftState done [03:48:25]FM_GetShiftState done [03:48:25]req_shift_opened done [03:48:25]requested_item shift.open_date is exist - process it [03:48:25]req_shift_open_date [03:48:25]req_shift_open_date done [03:48:25]produce_requested_data done [03:48:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188567,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [03:48:25]process_action_free close_receipt [03:48:25]json_value_free [03:48:25]json_value_free done [03:48:25]process_json_proto returns [03:48:25]Send response to host [03:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188567,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [03:48:25]free response buf [03:48:25]execute_script done [03:48:25]execute_script returns [03:48:25]free content buf [03:48:25]Sock 9.Close socket [03:48:25]Sock 9.Thread stoped [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52: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:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:57]accept exits with 7 [04:04:57]New connection [04:04:57]New thread 3066649956 created [04:04:57]Thread 3066506596 joined [04:04:57]Waiting for new connection... [04:04:57] Sock 7.Parse request [04:04:57]Sock 7.Check first char [04:04:57]Sock 7.First char is OK [04:04:57]request: POST /json_proto HTTP/1.0 [04:04:57]Method: POST [04:04:57]URL: /json_proto [04:04:57]Method is POST - this is cgi request [04:04:57]url: /json_proto [04:04:57]query_string will be loaded in cgi processing [04:04:57]execute_cgi json_proto POST (null) [04:04:57]execute_cgi path=json_proto method=POST [04:04:57]POST find Content-Length [04:04:57]Host: 172.17.42.131:8080 [04:04:57]Content-Length: 679 [04:04:57]Content-Type: application/json [04:04:57] [04:04:57]POST finish read [04:04:57]Found Content-Length = 679 [04:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:04:57]execute_script... [04:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:04:57]POST & json_proto [04:04:57]process_json_proto [04:04:57]json parsed OK: [04:04:57]protocol is kg_v1.0 [04:04:57]action value=close_receipt [04:04:57]process_action close_receipt [04:04:57]cmd_close_receipt [04:04:57]MH_GetDate [04:04:57]Write to MH i2c: F0 00 00 F0 13 F2 [04:04:57]Write i2c OK [04:04:57]MH_I2C_Read... [04:04:57]Read from MH i2c: F0 [04:04:57]MH_I2C_Read... [04:04:57]Read from MH i2c: F0 09 00 [04:04:57]MH_I2C_Read... [04:04:57]Read from MH i2c: F0 09 00 F0 13 00 EB 75 18 67 A0 18 CA 66 C2 [04:04:57]GetLastDocTimeStamp 1729655303 [04:04:57]current date 1729656299 [04:04:57]FM_GetShiftState [04:04:57]SAM_PROTO_GetShiftState [04:04:57]wFMCommunicate request_size=4 [04:04:57]MH_SAM_APDU [04:04:57]CAPDU: 80 13 01 00 [04:04:57]Write to MH i2c: E2 08 00 F1 13 80 13 01 00 00 00 00 00 81 [04:04:57]Write i2c OK [04:04:57]MH_I2C_Read... [04:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:04:57]Read from MH i2c: E2 [04:04:57]MH_I2C_Read... [04:04:57]Read from MH i2c: E2 0E 00 [04:04:57]MH_I2C_Read... [04:04:57]Read from MH i2c: E2 0E 00 F1 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 69 [04:04:57]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [04:04:57]wFMCommunicate OK [04:04:57]SAM_PROTO_GetShiftState done [04:04:57]FM_GetShiftState done [04:04:57]opened in 1729642525 [04:04:57]opened+sec_in_day 1729728925 [04:04:57]quantity*price = 400050 [04:04:57]sum+1 = 400051 [04:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 26 23.10.2024 04:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188568 ФПД: 63974080191456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T040459&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188568&fm=63974080191456&tin=02508201610067®Number=0000000000100030&sum=400000 [04:04:58]StoreToDocumentArchive [04:04:58]shift 462 fd 188568 [04:04:58]save to /storage/0462/doc_00188568 [04:04:58]save last doc name /storage/0462/doc_00188568 to /storage/kkm_last_doc_name [04:04:58]save OK [04:04:58]Clear old archive folders... [04:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:04:58]tlvbuf is 008D4220 [04:04:58]SAM_PROTO_ClearQueue [04:04:58]wFMCommunicate request_size=4 [04:04:58]MH_SAM_APDU [04:04:58]CAPDU: 80 09 00 00 [04:04:58]Write to MH i2c: E2 08 00 FE 13 80 09 00 00 00 00 00 00 83 [04:04:58]Write i2c OK [04:04:58]MH_I2C_Read... [04:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:04:58]Read from MH i2c: E2 [04:04:58]MH_I2C_Read... [04:04:58]Read from MH i2c: E2 03 00 [04:04:58]MH_I2C_Read... [04:04:58]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [04:04:58]RAPDU: 90 00 [04:04:58]wFMCommunicate OK [04:04:58]SAM_PROTO_ClearQueue done [04:04:58]KKMCreateOFDPacket [04:04:58]OFDProtocolAddRootSTLVToBuf [04:04:58]FM_MakeSignedData [04:04:58]FM_MakeSignedData [04:04:58]SAM_PROTO_SignData [04:04:58]wFMCommunicate request_size=4 [04:04:58]MH_SAM_APDU [04:04:58]CAPDU: 80 0D 01 02 [04:04:58]Write to MH i2c: E2 08 00 FF 13 80 0D 01 02 00 00 00 00 8B [04:04:58]Write i2c OK [04:04:58]MH_I2C_Read... [04:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:04:58]Read from MH i2c: E2 [04:04:58]MH_I2C_Read... [04:04:58]Read from MH i2c: E2 03 00 [04:04:58]MH_I2C_Read... [04:04:58]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [04:04:58]RAPDU: 90 00 [04:04:58]wFMCommunicate OK [04:04:58]wFMCommunicate request_size=255 [04:04:58]MH_SAM_APDU [04:04:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 EB 75 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E0 02 00 35 04 06 00 3A 2F 20 53 [04:04:58]Write to MH i2c: E2 02 01 00 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 EB 75 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E0 02 00 35 04 06 00 3A 2F 20 53 00 00 3A [04:04:58]Write i2c OK [04:04:58]MH_I2C_Read... [04:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:04:59]Read from MH i2c: E2 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: E2 03 00 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [04:04:59]RAPDU: 90 00 [04:04:59]wFMCommunicate OK [04:04:59]wFMCommunicate request_size=7 [04:04:59]MH_SAM_APDU [04:04:59]CAPDU: 80 0D 02 02 02 1B E0 [04:04:59]Write to MH i2c: E2 0A 00 01 14 80 0D 02 02 02 00 1B E0 00 00 8E [04:04:59]Write i2c OK [04:04:59]MH_I2C_Read... [04:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:04:59]Read from MH i2c: E2 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: E2 03 00 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [04:04:59]RAPDU: 90 00 [04:04:59]wFMCommunicate OK [04:04:59]wFMCommunicate request_size=4 [04:04:59]MH_SAM_APDU [04:04:59]CAPDU: 80 0D 03 02 [04:04:59]Write to MH i2c: E2 08 00 02 14 80 0D 03 02 00 00 00 00 91 [04:04:59]Write i2c OK [04:04:59]MH_I2C_Read... [04:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:04:59]Read from MH i2c: E2 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: E2 0B 00 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: E2 0B 00 02 14 00 E3 C7 12 81 1C 1A 20 DA 90 00 FF [04:04:59]RAPDU: E3 C7 12 81 1C 1A 20 DA 90 00 [04:04:59]wFMCommunicate OK [04:04:59]SAM_PROTO_SignData done [04:04:59]FM_MakeSignedData done [04:04:59]CreateOFDProtocolMessage [04:04:59]wFMCommunicate request_size=4 [04:04:59]MH_SAM_APDU [04:04:59]CAPDU: 80 11 00 00 [04:04:59]Write to MH i2c: E2 08 00 03 14 80 11 00 00 00 00 00 00 91 [04:04:59]Write i2c OK [04:04:59]MH_I2C_Read... [04:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:04:59]Read from MH i2c: E2 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: E2 17 00 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: E2 17 00 03 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [04:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:04:59]wFMCommunicate OK [04:04:59]CreateOFDProtocolMessage done [04:04:59]OFDSenderStorePacket 188568 [04:04:59]StoreOFDPacket docnum=188568 [04:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 16 CA 04 01 4D E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 EB 75 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E0 02 00 35 04 06 00 3A 2F 20 53 1B E0 E3 C7 12 81 1C 1A 20 DA [04:04:59]CheckFolder [04:04:59]dirname=/storage/ofd_packets [04:04:59]CheckFolder done [04:04:59]ProducePacketName [04:04:59]name=ofd_packets/00188568 [04:04:59]NVStorageSaveData ofd_packets/00188568 [04:04:59]File name is /storage/ofd_packets/00188568 [04:04:59]Write 298 bytes [04:04:59]NVStorageSaveData done [04:04:59]OFDSenderStorePacket done [04:04:59]KKMCreateOFDPacket done [04:04:59]NVStorageSaveData kkm_last_timestamp [04:04:59]File name is /storage/kkm_last_timestamp [04:04:59]Write 4 bytes [04:04:59]NVStorageSaveData done [04:04:59]ExternCall_PrintAddStr [04:04:59]wPrintStart [04:04:59]Write to MH i2c: 01 00 00 04 14 18 [04:04:59]Write i2c OK [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: 01 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: 01 07 00 [04:04:59]MH_I2C_Read... [04:04:59]Read from MH i2c: 01 07 00 04 14 00 00 00 00 00 FF 0F 2D [04:04:59]RasterBufferAndPrint [04:04:59]line Счет N : (1)210627 [04:04:59]line ИНН: 02508201610067 [04:04:59]line Контрольно-Кассовый Чек [04:04:59]line ПРОДАЖА [04:04:59]line ТРК (МРК, ГНК) : 51 [04:04:59]line Товар: 2710194210 [04:04:59]line ДТ-К-5 [04:04:59]line 52.500 * 76.20 [04:04:59]line = 4000.50 [04:04:59]line НДС 12% НСП 1% [04:04:59]line > о реализуемом товаре [04:04:59]line ОКРУГЛЕНИЕ: -0.50 [04:04:59]line ИТОГО: 4000.00 [04:04:59]line Внесено: 4000.00 [04:04:59]line СДАЧА: 0.00 [04:04:59]line НСП 1% : 35.40 [04:04:59]line НДС 12% : 424.83 [04:04:59]line Наличными: 4000.00 [04:04:59]line Безнал.: 0.00 [04:04:59]line Место: АЗС № 86 "Партнер Нефть" [04:04:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:04:59]line СНО: Общий режим [04:04:59]line Чек 26 23.10.2024 04:04 [04:04:59]line Смена: 462 ФФД: 1.0 [04:04:59]line ЗНМ: 0300000155 [04:04:59]line РНМ: 0000000000100030 [04:04:59]line Версия ККМ: 001 [04:04:59]line ФМ: 0000000000965340 [04:04:59]line ФД: 188568 [04:04:59]line ФПД: 63974080191456 [04:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T040459&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188568&fm=63974080191456&tin=02508201610067®Number=0000000000100030&sum=400000 [04:04:59]written 0, free lines is 4095 [04:04:59]OFD Sender: Processing packet 188568 [packets to send 1062, broken 1061] [04:04:59]ProducePacketName [04:04:59]name=ofd_packets/00188568 [04:04:59]OFD Sender: To server: pG, [04:04:59]CommunicateWithHost lk.salyk.kg:30040 [04:04:59]ConnectInit lk.salyk.kg [04:04:59]Connected sock=10 [04:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 16 CA 04 01 4D E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 EB 75 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E0 02 00 35 04 06 00 3A 2F 20 53 1B E0 E3 C7 12 81 1C 1A 20 DA [04:05:00]Write to MH i2c: 01 00 00 2F 14 43 [04:05:00]Write i2c OK [04:05:00]MH_I2C_Read... [04:05:00]Read from MH i2c: 01 [04:05:00]MH_I2C_Read... [04:05:00]Read from MH i2c: 01 07 00 [04:05:00]MH_I2C_Read... [04:05:00]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 58 0C AE [04:05:00]RasterBufferAndPrint [04:05:00]line [04:05:00]line [04:05:00]line [04:05:00]line [04:05:00]line [04:05:00]written 0, free lines is 3164 [04:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BC F9 47 00 56 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E0 02 00 F4 03 04 00 D7 1F 18 67 B6 04 01 00 00 0E 23 5A 69 B0 43 5B 73 [04:05:00]CommunicateWithHost err = 0 [04:05:00]CheckOFDResponse [04:05:00]1017 (14) - 77093643461234 [04:05:00]1041 (16) - 0000000000965340 [04:05:00]1040 (4) - 188568 [04:05:00]1012 (4) - 22.10.2024 21:57 [04:05:00]1206 (1) - 0 [04:05:00]OFD Sender: Remove packet 188568 [04:05:00]ProducePacketName [04:05:00]name=ofd_packets/00188568 [04:05:00]NVStorageDeleteData [04:05:00]MH_Cut [04:05:00]Write to MH i2c: D1 01 00 36 14 01 1C [04:05:00]Write i2c OK [04:05:00]MH_I2C_Read... [04:05:00]Read from MH i2c: D1 [04:05:00]MH_I2C_Read... [04:05:00]Read from MH i2c: D1 01 00 [04:05:00]MH_I2C_Read... [04:05:00]Read from MH i2c: D1 01 00 36 14 00 1B [04:05:00]Write to MH i2c: 01 00 00 37 14 4B [04:05:00]Write i2c OK [04:05:00]MH_I2C_Read... [04:05:00]OFD Sender: No OFD packet to send [04:05:01]*** Cut start [04:05:01]*** Partial cut [04:05:01]*** CUTSNS_PIN = 1 [04:05:01]*** CUTSNS_PIN = 0 [04:05:01]*** Brake cut motor [04:05:01]Read from MH i2c: 01 [04:05:01]MH_I2C_Read... [04:05:01]*** Stop cut motor [04:05:01]*** Cut end [04:05:01]Read from MH i2c: 01 07 00 [04:05:01]MH_I2C_Read... [04:05:01]Read from MH i2c: 01 07 00 37 14 00 00 00 00 00 FF 0F 60 [04:05:01]process_action close_receipt done [04:05:01]requested_data is exist [04:05:01]produce_requested_data [04:05:01]requested_item fm.sn is exist - process it [04:05:01]wFMCommunicate request_size=4 [04:05:01]MH_SAM_APDU [04:05:01]CAPDU: 80 11 00 00 [04:05:01]Write to MH i2c: E2 08 00 38 14 80 11 00 00 00 00 00 00 C6 [04:05:01]Write i2c OK [04:05:01]MH_I2C_Read... [04:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:02]Read from MH i2c: E2 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: E2 17 00 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: E2 17 00 38 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [04:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:05:02]wFMCommunicate OK [04:05:02]requested_item fd.num is exist - process it [04:05:02]SAM_PROTO_GetFieldsCounters [04:05:02]wFMCommunicate request_size=4 [04:05:02]MH_SAM_APDU [04:05:02]CAPDU: 80 13 00 00 [04:05:02]Write to MH i2c: E2 08 00 39 14 80 13 00 00 00 00 00 00 C9 [04:05:02]Write i2c OK [04:05:02]MH_I2C_Read... [04:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:02]Read from MH i2c: E2 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: E2 62 00 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: E2 62 00 39 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [04:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:05:02]wFMCommunicate OK [04:05:02]SAM_PROTO_GetFieldsCounters done [04:05:02]requested_item shift.num is exist - process it [04:05:02]requested_item shift.opened is exist - process it [04:05:02]req_shift_opened [04:05:02]FM_GetShiftState [04:05:02]SAM_PROTO_GetShiftState [04:05:02]wFMCommunicate request_size=4 [04:05:02]MH_SAM_APDU [04:05:02]CAPDU: 80 13 01 00 [04:05:02]Write to MH i2c: E2 08 00 3A 14 80 13 01 00 00 00 00 00 CB [04:05:02]Write i2c OK [04:05:02]MH_I2C_Read... [04:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:02]Read from MH i2c: E2 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: E2 0E 00 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: E2 0E 00 3A 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B3 [04:05:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [04:05:02]wFMCommunicate OK [04:05:02]SAM_PROTO_GetShiftState done [04:05:02]FM_GetShiftState done [04:05:02]req_shift_opened done [04:05:02]requested_item shift.open_date is exist - process it [04:05:02]req_shift_open_date [04:05:02]req_shift_open_date done [04:05:02]produce_requested_data done [04:05:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188568,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [04:05:02]process_action_free close_receipt [04:05:02]json_value_free [04:05:02]json_value_free done [04:05:02]process_json_proto returns [04:05:02]Send response to host [04:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188568,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [04:05:02]free response buf [04:05:02]execute_script done [04:05:02]execute_script returns [04:05:02]free content buf [04:05:02]Sock 7.Close socket [04:05:02]Sock 7.Thread stoped [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06: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:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:39]accept exits with 9 [04:23:39]New connection [04:23:39]New thread 3066506596 created [04:23:39]Thread 3066649956 joined [04:23:39]Waiting for new connection... [04:23:39] Sock 9.Parse request [04:23:39]Sock 9.Check first char [04:23:39]Sock 9.First char is OK [04:23:39]request: POST /json_proto HTTP/1.0 [04:23:39]Method: POST [04:23:39]URL: /json_proto [04:23:39]Method is POST - this is cgi request [04:23:39]url: /json_proto [04:23:39]query_string will be loaded in cgi processing [04:23:39]execute_cgi json_proto POST (null) [04:23:39]execute_cgi path=json_proto method=POST [04:23:39]POST find Content-Length [04:23:39]Host: 172.17.42.131:8080 [04:23:39]Content-Length: 769 [04:23:39]Content-Type: application/json [04:23:39] [04:23:39]POST finish read [04:23:39]Found Content-Length = 769 [04:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:39]execute_script... [04:23:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:39]POST & json_proto [04:23:39]process_json_proto [04:23:39]json parsed OK: [04:23:39]protocol is kg_v1.0 [04:23:39]action value=close_receipt [04:23:39]process_action close_receipt [04:23:39]cmd_close_receipt [04:23:39]MH_GetDate [04:23:39]Write to MH i2c: F0 00 00 3B 14 3E [04:23:39]Write i2c OK [04:23:39]MH_I2C_Read... [04:23:39]Read from MH i2c: F0 [04:23:39]MH_I2C_Read... [04:23:39]Read from MH i2c: F0 09 00 [04:23:39]MH_I2C_Read... [04:23:39]Read from MH i2c: F0 09 00 3B 14 00 4D 7A 18 67 A0 18 CA 66 75 [04:23:39]GetLastDocTimeStamp 1729656299 [04:23:39]current date 1729657421 [04:23:39]FM_GetShiftState [04:23:39]SAM_PROTO_GetShiftState [04:23:39]wFMCommunicate request_size=4 [04:23:39]MH_SAM_APDU [04:23:39]CAPDU: 80 13 01 00 [04:23:39]Write to MH i2c: E2 08 00 3C 14 80 13 01 00 00 00 00 00 CD [04:23:39]Write i2c OK [04:23:39]MH_I2C_Read... [04:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:39]Read from MH i2c: E2 [04:23:39]MH_I2C_Read... [04:23:39]Read from MH i2c: E2 0E 00 [04:23:39]MH_I2C_Read... [04:23:39]Read from MH i2c: E2 0E 00 3C 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B5 [04:23:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [04:23:39]wFMCommunicate OK [04:23:39]SAM_PROTO_GetShiftState done [04:23:39]FM_GetShiftState done [04:23:39]opened in 1729642525 [04:23:39]opened+sec_in_day 1729728925 [04:23:39]quantity*price = 150056 [04:23:39]sum+1 = 150058 [04:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 27 23.10.2024 04:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188569 ФПД: 29064909890384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T042341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188569&fm=29064909890384&tin=02508201610067®Number=0000000000100030&sum=150057 [04:23:40]StoreToDocumentArchive [04:23:40]shift 462 fd 188569 [04:23:40]save to /storage/0462/doc_00188569 [04:23:40]save last doc name /storage/0462/doc_00188569 to /storage/kkm_last_doc_name [04:23:40]save OK [04:23:40]Clear old archive folders... [04:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:23:40]tlvbuf is 008F2920 [04:23:40]SAM_PROTO_ClearQueue [04:23:40]wFMCommunicate request_size=4 [04:23:40]MH_SAM_APDU [04:23:40]CAPDU: 80 09 00 00 [04:23:40]Write to MH i2c: E2 08 00 49 14 80 09 00 00 00 00 00 00 CF [04:23:40]Write i2c OK [04:23:40]MH_I2C_Read... [04:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:40]Read from MH i2c: E2 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 03 00 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [04:23:40]RAPDU: 90 00 [04:23:40]wFMCommunicate OK [04:23:40]SAM_PROTO_ClearQueue done [04:23:40]KKMCreateOFDPacket [04:23:40]OFDProtocolAddRootSTLVToBuf [04:23:40]FM_MakeSignedData [04:23:40]FM_MakeSignedData [04:23:40]SAM_PROTO_SignData [04:23:40]wFMCommunicate request_size=4 [04:23:40]MH_SAM_APDU [04:23:40]CAPDU: 80 0D 01 02 [04:23:40]Write to MH i2c: E2 08 00 4A 14 80 0D 01 02 00 00 00 00 D7 [04:23:40]Write i2c OK [04:23:40]MH_I2C_Read... [04:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:40]Read from MH i2c: E2 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 03 00 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [04:23:40]RAPDU: 90 00 [04:23:40]wFMCommunicate OK [04:23:40]wFMCommunicate request_size=255 [04:23:40]MH_SAM_APDU [04:23:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4D 7A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E0 02 00 35 04 06 00 1A [04:23:40]Write to MH i2c: E2 02 01 4B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4D 7A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E0 02 00 35 04 06 00 1A 00 00 CC [04:23:40]Write i2c OK [04:23:40]MH_I2C_Read... [04:23:40]OFD Sender: No OFD packet to send [04:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:40]Read from MH i2c: E2 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 03 00 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 03 00 4B 14 00 90 00 D3 [04:23:40]RAPDU: 90 00 [04:23:40]wFMCommunicate OK [04:23:40]wFMCommunicate request_size=10 [04:23:40]MH_SAM_APDU [04:23:40]CAPDU: 80 0D 02 02 05 6F 33 A1 23 50 [04:23:40]Write to MH i2c: E2 0D 00 4C 14 80 0D 02 02 05 00 6F 33 A1 23 50 00 00 9A [04:23:40]Write i2c OK [04:23:40]MH_I2C_Read... [04:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:40]Read from MH i2c: E2 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 03 00 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 03 00 4C 14 00 90 00 D4 [04:23:40]RAPDU: 90 00 [04:23:40]wFMCommunicate OK [04:23:40]wFMCommunicate request_size=4 [04:23:40]MH_SAM_APDU [04:23:40]CAPDU: 80 0D 03 02 [04:23:40]Write to MH i2c: E2 08 00 4D 14 80 0D 03 02 00 00 00 00 DC [04:23:40]Write i2c OK [04:23:40]MH_I2C_Read... [04:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:40]Read from MH i2c: E2 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 0B 00 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 0B 00 4D 14 00 1D 08 C9 F8 B6 9F BC 0F 90 00 E3 [04:23:40]RAPDU: 1D 08 C9 F8 B6 9F BC 0F 90 00 [04:23:40]wFMCommunicate OK [04:23:40]SAM_PROTO_SignData done [04:23:40]FM_MakeSignedData done [04:23:40]CreateOFDProtocolMessage [04:23:40]wFMCommunicate request_size=4 [04:23:40]MH_SAM_APDU [04:23:40]CAPDU: 80 11 00 00 [04:23:40]Write to MH i2c: E2 08 00 4E 14 80 11 00 00 00 00 00 00 DC [04:23:40]Write i2c OK [04:23:40]MH_I2C_Read... [04:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:40]Read from MH i2c: E2 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 17 00 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: E2 17 00 4E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [04:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:23:40]wFMCommunicate OK [04:23:40]CreateOFDProtocolMessage done [04:23:40]OFDSenderStorePacket 188569 [04:23:40]StoreOFDPacket docnum=188569 [04:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E 79 07 01 1C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4D 7A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E0 02 00 35 04 06 00 1A 6F 33 A1 23 50 1D 08 C9 F8 B6 9F BC 0F [04:23:40]CheckFolder [04:23:40]dirname=/storage/ofd_packets [04:23:40]CheckFolder done [04:23:40]ProducePacketName [04:23:40]name=ofd_packets/00188569 [04:23:40]NVStorageSaveData ofd_packets/00188569 [04:23:40]File name is /storage/ofd_packets/00188569 [04:23:40]Write 301 bytes [04:23:40]NVStorageSaveData done [04:23:40]OFDSenderStorePacket done [04:23:40]KKMCreateOFDPacket done [04:23:40]NVStorageSaveData kkm_last_timestamp [04:23:40]File name is /storage/kkm_last_timestamp [04:23:40]Write 4 bytes [04:23:40]NVStorageSaveData done [04:23:40]ExternCall_PrintAddStr [04:23:40]wPrintStart [04:23:40]Write to MH i2c: 01 00 00 4F 14 63 [04:23:40]Write i2c OK [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: 01 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: 01 07 00 [04:23:40]MH_I2C_Read... [04:23:40]Read from MH i2c: 01 07 00 4F 14 00 00 00 00 00 FF 0F 78 [04:23:40]RasterBufferAndPrint [04:23:40]line Счет N : (1)210628 [04:23:40]line ИНН: 02508201610067 [04:23:40]line Контрольно-Кассовый Чек [04:23:40]line ПРОДАЖА [04:23:40]line ТРК (МРК, ГНК) : 42 [04:23:40]line Товар: 2710124130 [04:23:40]line Аи-92-К-3 [04:23:40]line 22.430 * 66.90 [04:23:40]line = 1500.57 [04:23:40]line НДС 12% НСП 1% [04:23:40]line > о реализуемом товаре [04:23:40]line ИТОГО: 1500.57 [04:23:40]line НСП 1% : 13.28 [04:23:40]line НДС 12% : 159.35 [04:23:40]line Наличными: 0.00 [04:23:40]line Безнал.: 1500.57 [04:23:40]line Место: АЗС № 86 "Партнер Нефть" [04:23:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:23:40]line СНО: Общий режим [04:23:40]line Чек 27 23.10.2024 04:23 [04:23:40]line Смена: 462 ФФД: 1.0 [04:23:40]line ЗНМ: 0300000155 [04:23:40]line РНМ: 0000000000100030 [04:23:40]line Версия ККМ: 001 [04:23:40]line Платежная система: Mbank [04:23:40]line ФМ: 0000000000965340 [04:23:40]line ФД: 188569 [04:23:40]line ФПД: 29064909890384 [04:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T042341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188569&fm=29064909890384&tin=02508201610067®Number=0000000000100030&sum=150057 [04:23:40]written 0, free lines is 4095 [04:23:41]OFD Sender: Processing packet 188569 [packets to send 1062, broken 1061] [04:23:41]ProducePacketName [04:23:41]name=ofd_packets/00188569 [04:23:41]OFD Sender: To server: pG, [04:23:41]CommunicateWithHost lk.salyk.kg:30040 [04:23:41]ConnectInit lk.salyk.kg [04:23:41]Connected sock=10 [04:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E 79 07 01 1C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4D 7A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E0 02 00 35 04 06 00 1A 6F 33 A1 23 50 1D 08 C9 F8 B6 9F BC 0F [04:23:41]Write to MH i2c: 01 00 00 78 14 8C [04:23:41]Write i2c OK [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: 01 [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: 01 07 00 [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: 01 07 00 78 14 00 00 00 00 00 83 0C 22 [04:23:41]RasterBufferAndPrint [04:23:41]line [04:23:41]line [04:23:41]line [04:23:41]line [04:23:41]line [04:23:41]written 0, free lines is 3208 [04:23:41]MH_Cut [04:23:41]Write to MH i2c: D1 01 00 7F 14 01 65 [04:23:41]Write i2c OK [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: D1 [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: D1 01 00 [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: D1 01 00 7F 14 00 64 [04:23:41]Write to MH i2c: 01 00 00 80 14 94 [04:23:41]Write i2c OK [04:23:41]MH_I2C_Read... [04:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 42 E0 47 00 63 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E0 02 00 F4 03 04 00 38 24 18 67 B6 04 01 00 00 10 33 82 23 79 D4 BB 9C [04:23:41]CommunicateWithHost err = 0 [04:23:41]CheckOFDResponse [04:23:41]1017 (14) - 77093643461234 [04:23:41]1041 (16) - 0000000000965340 [04:23:41]1040 (4) - 188569 [04:23:41]1012 (4) - 22.10.2024 22:16 [04:23:41]1206 (1) - 0 [04:23:41]OFD Sender: Remove packet 188569 [04:23:41]ProducePacketName [04:23:41]name=ofd_packets/00188569 [04:23:41]NVStorageDeleteData [04:23:42]OFD Sender: No OFD packet to send [04:23:42]*** Cut start [04:23:42]*** Partial cut [04:23:42]*** CUTSNS_PIN = 1 [04:23:42]*** CUTSNS_PIN = 0 [04:23:42]*** Brake cut motor [04:23:43]Read from MH i2c: 01 [04:23:43]MH_I2C_Read... [04:23:43]*** Stop cut motor [04:23:43]*** Cut end [04:23:43]Read from MH i2c: 01 07 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: 01 07 00 80 14 00 00 00 00 00 FF 0F A9 [04:23:43]process_action close_receipt done [04:23:43]requested_data is exist [04:23:43]produce_requested_data [04:23:43]requested_item fm.sn is exist - process it [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 11 00 00 [04:23:43]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 17 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [04:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:23:43]wFMCommunicate OK [04:23:43]requested_item fd.num is exist - process it [04:23:43]SAM_PROTO_GetFieldsCounters [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 13 00 00 [04:23:43]Write to MH i2c: E2 08 00 82 14 80 13 00 00 00 00 00 00 12 [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 62 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 62 00 82 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [04:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:43]wFMCommunicate OK [04:23:43]SAM_PROTO_GetFieldsCounters done [04:23:43]requested_item shift.num is exist - process it [04:23:43]requested_item shift.opened is exist - process it [04:23:43]req_shift_opened [04:23:43]FM_GetShiftState [04:23:43]SAM_PROTO_GetShiftState [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 13 01 00 [04:23:43]Write to MH i2c: E2 08 00 83 14 80 13 01 00 00 00 00 00 14 [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 0E 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 0E 00 83 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FC [04:23:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [04:23:43]wFMCommunicate OK [04:23:43]SAM_PROTO_GetShiftState done [04:23:43]FM_GetShiftState done [04:23:43]req_shift_opened done [04:23:43]requested_item shift.open_date is exist - process it [04:23:43]req_shift_open_date [04:23:43]req_shift_open_date done [04:23:43]produce_requested_data done [04:23:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188569,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [04:23:43]process_action_free close_receipt [04:23:43]json_value_free [04:23:43]json_value_free done [04:23:43]process_json_proto returns [04:23:43]Send response to host [04:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188569,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [04:23:43]free response buf [04:23:43]execute_script done [04:23:43]execute_script returns [04:23:43]free content buf [04:23:43]Sock 9.Close socket [04:23:43]Sock 9.Thread stoped [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:37]accept exits with 7 [04:24:37]New connection [04:24:37]New thread 3066649956 created [04:24:37]Thread 3066506596 joined [04:24:37]Waiting for new connection... [04:24:37] Sock 7.Parse request [04:24:37]Sock 7.Check first char [04:24:37]Sock 7.First char is OK [04:24:37]request: POST /json_proto HTTP/1.0 [04:24:37]Method: POST [04:24:37]URL: /json_proto [04:24:37]Method is POST - this is cgi request [04:24:37]url: /json_proto [04:24:37]query_string will be loaded in cgi processing [04:24:37]execute_cgi json_proto POST (null) [04:24:37]execute_cgi path=json_proto method=POST [04:24:37]POST find Content-Length [04:24:37]Host: 172.17.42.131:8080 [04:24:37]Content-Length: 766 [04:24:37]Content-Type: application/json [04:24:37] [04:24:37]POST finish read [04:24:37]Found Content-Length = 766 [04:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:37]execute_script... [04:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:37]POST & json_proto [04:24:37]process_json_proto [04:24:37]json parsed OK: [04:24:37]protocol is kg_v1.0 [04:24:37]action value=close_receipt [04:24:37]process_action close_receipt [04:24:37]cmd_close_receipt [04:24:37]MH_GetDate [04:24:37]Write to MH i2c: F0 00 00 84 14 87 [04:24:37]Write i2c OK [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: F0 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: F0 09 00 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: F0 09 00 84 14 00 87 7A 18 67 A0 18 CA 66 F8 [04:24:37]GetLastDocTimeStamp 1729657421 [04:24:37]current date 1729657479 [04:24:37]FM_GetShiftState [04:24:37]SAM_PROTO_GetShiftState [04:24:37]wFMCommunicate request_size=4 [04:24:37]MH_SAM_APDU [04:24:37]CAPDU: 80 13 01 00 [04:24:37]Write to MH i2c: E2 08 00 85 14 80 13 01 00 00 00 00 00 16 [04:24:37]Write i2c OK [04:24:37]MH_I2C_Read... [04:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:37]Read from MH i2c: E2 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 0E 00 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 0E 00 85 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FE [04:24:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [04:24:37]wFMCommunicate OK [04:24:37]SAM_PROTO_GetShiftState done [04:24:37]FM_GetShiftState done [04:24:37]opened in 1729642525 [04:24:37]opened+sec_in_day 1729728925 [04:24:37]quantity*price = 30038 [04:24:37]sum+1 = 30039 [04:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 28 23.10.2024 04:24 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188570 ФПД: 184375631549436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T042440&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188570&fm=184375631549436&tin=02508201610067®Number=0000000000100030&sum=30038 [04:24:38]StoreToDocumentArchive [04:24:38]shift 462 fd 188570 [04:24:38]save to /storage/0462/doc_00188570 [04:24:38]save last doc name /storage/0462/doc_00188570 to /storage/kkm_last_doc_name [04:24:38]save OK [04:24:38]Clear old archive folders... [04:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:24:38]tlvbuf is B6E775E0 [04:24:38]SAM_PROTO_ClearQueue [04:24:38]wFMCommunicate request_size=4 [04:24:38]MH_SAM_APDU [04:24:38]CAPDU: 80 09 00 00 [04:24:38]Write to MH i2c: E2 08 00 92 14 80 09 00 00 00 00 00 00 18 [04:24:38]Write i2c OK [04:24:38]MH_I2C_Read... [04:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:24:38]Read from MH i2c: E2 [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: E2 03 00 [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [04:24:38]RAPDU: 90 00 [04:24:38]wFMCommunicate OK [04:24:38]SAM_PROTO_ClearQueue done [04:24:38]KKMCreateOFDPacket [04:24:38]OFDProtocolAddRootSTLVToBuf [04:24:38]FM_MakeSignedData [04:24:38]FM_MakeSignedData [04:24:38]SAM_PROTO_SignData [04:24:38]wFMCommunicate request_size=4 [04:24:38]MH_SAM_APDU [04:24:38]CAPDU: 80 0D 01 02 [04:24:38]Write to MH i2c: E2 08 00 93 14 80 0D 01 02 00 00 00 00 20 [04:24:38]Write i2c OK [04:24:38]MH_I2C_Read... [04:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:24:39]Read from MH i2c: E2 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 03 00 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [04:24:39]RAPDU: 90 00 [04:24:39]wFMCommunicate OK [04:24:39]wFMCommunicate request_size=255 [04:24:39]MH_SAM_APDU [04:24:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 88 7A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E0 02 00 35 04 06 00 A7 [04:24:39]Write to MH i2c: E2 02 01 94 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 88 7A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E0 02 00 35 04 06 00 A7 00 00 62 [04:24:39]Write i2c OK [04:24:39]MH_I2C_Read... [04:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:39]Read from MH i2c: E2 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 03 00 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [04:24:39]RAPDU: 90 00 [04:24:39]wFMCommunicate OK [04:24:39]wFMCommunicate request_size=10 [04:24:39]MH_SAM_APDU [04:24:39]CAPDU: 80 0D 02 02 05 B0 4C 06 13 FC [04:24:39]Write to MH i2c: E2 0D 00 95 14 80 0D 02 02 05 00 B0 4C 06 13 FC 00 00 3E [04:24:39]Write i2c OK [04:24:39]MH_I2C_Read... [04:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:39]Read from MH i2c: E2 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 03 00 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [04:24:39]RAPDU: 90 00 [04:24:39]wFMCommunicate OK [04:24:39]wFMCommunicate request_size=4 [04:24:39]MH_SAM_APDU [04:24:39]CAPDU: 80 0D 03 02 [04:24:39]Write to MH i2c: E2 08 00 96 14 80 0D 03 02 00 00 00 00 25 [04:24:39]Write i2c OK [04:24:39]MH_I2C_Read... [04:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:24:39]Read from MH i2c: E2 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 0B 00 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 0B 00 96 14 00 27 2E D8 BA CC 39 B9 8A 90 00 55 [04:24:39]RAPDU: 27 2E D8 BA CC 39 B9 8A 90 00 [04:24:39]wFMCommunicate OK [04:24:39]SAM_PROTO_SignData done [04:24:39]FM_MakeSignedData done [04:24:39]CreateOFDProtocolMessage [04:24:39]wFMCommunicate request_size=4 [04:24:39]MH_SAM_APDU [04:24:39]CAPDU: 80 11 00 00 [04:24:39]Write to MH i2c: E2 08 00 97 14 80 11 00 00 00 00 00 00 25 [04:24:39]Write i2c OK [04:24:39]MH_I2C_Read... [04:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:39]Read from MH i2c: E2 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 17 00 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: E2 17 00 97 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [04:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:24:39]wFMCommunicate OK [04:24:39]CreateOFDProtocolMessage done [04:24:39]OFDSenderStorePacket 188570 [04:24:39]StoreOFDPacket docnum=188570 [04:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 89 07 01 F5 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 88 7A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E0 02 00 35 04 06 00 A7 B0 4C 06 13 FC 27 2E D8 BA CC 39 B9 8A [04:24:39]CheckFolder [04:24:39]dirname=/storage/ofd_packets [04:24:39]CheckFolder done [04:24:39]ProducePacketName [04:24:39]name=ofd_packets/00188570 [04:24:39]NVStorageSaveData ofd_packets/00188570 [04:24:39]File name is /storage/ofd_packets/00188570 [04:24:39]Write 301 bytes [04:24:39]NVStorageSaveData done [04:24:39]OFDSenderStorePacket done [04:24:39]KKMCreateOFDPacket done [04:24:39]NVStorageSaveData kkm_last_timestamp [04:24:39]File name is /storage/kkm_last_timestamp [04:24:39]Write 4 bytes [04:24:39]NVStorageSaveData done [04:24:39]ExternCall_PrintAddStr [04:24:39]wPrintStart [04:24:39]Write to MH i2c: 01 00 00 98 14 AC [04:24:39]Write i2c OK [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: 01 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: 01 07 00 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: 01 07 00 98 14 00 00 00 00 00 FF 0F C1 [04:24:39]RasterBufferAndPrint [04:24:39]line Счет N : (1)210629 [04:24:39]line ИНН: 02508201610067 [04:24:39]line Контрольно-Кассовый Чек [04:24:39]line ПРОДАЖА [04:24:39]line ТРК (МРК, ГНК) : 12 [04:24:39]line Товар: 2710124130 [04:24:39]line Аи-92-К-3 [04:24:39]line 4.490 * 66.90 [04:24:39]line = 300.38 [04:24:39]line НДС 12% НСП 1% [04:24:39]line > о реализуемом товаре [04:24:39]line ИТОГО: 300.38 [04:24:39]line НСП 1% : 2.66 [04:24:39]line НДС 12% : 31.90 [04:24:39]line Наличными: 0.00 [04:24:39]line Безнал.: 300.38 [04:24:39]line Место: АЗС № 86 "Партнер Нефть" [04:24:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:24:39]line СНО: Общий режим [04:24:39]line Чек 28 23.10.2024 04:24 [04:24:39]line Смена: 462 ФФД: 1.0 [04:24:39]line ЗНМ: 0300000155 [04:24:39]line РНМ: 0000000000100030 [04:24:39]line Версия ККМ: 001 [04:24:39]line Платежная система: Mbank [04:24:39]line ФМ: 0000000000965340 [04:24:39]line ФД: 188570 [04:24:39]line ФПД: 184375631549436 [04:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T042440&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188570&fm=184375631549436&tin=02508201610067®Number=0000000000100030&sum=30038 [04:24:39]written 0, free lines is 4095 [04:24:39]OFD Sender: Processing packet 188570 [packets to send 1062, broken 1061] [04:24:39]ProducePacketName [04:24:39]name=ofd_packets/00188570 [04:24:39]OFD Sender: To server: pG, [04:24:39]CommunicateWithHost lk.salyk.kg:30040 [04:24:39]ConnectInit lk.salyk.kg [04:24:39]Connected sock=10 [04:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 89 07 01 F5 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 88 7A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E0 02 00 35 04 06 00 A7 B0 4C 06 13 FC 27 2E D8 BA CC 39 B9 8A [04:24:39]Write to MH i2c: 01 00 00 C1 14 D5 [04:24:39]Write i2c OK [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: 01 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: 01 07 00 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: 01 07 00 C1 14 00 00 00 00 00 88 0C 70 [04:24:39]RasterBufferAndPrint [04:24:39]line [04:24:39]line [04:24:39]line [04:24:39]line [04:24:39]line [04:24:39]written 0, free lines is 3212 [04:24:39]MH_Cut [04:24:39]Write to MH i2c: D1 01 00 C8 14 01 AE [04:24:39]Write i2c OK [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: D1 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: D1 01 00 [04:24:39]MH_I2C_Read... [04:24:39]Read from MH i2c: D1 01 00 C8 14 00 AD [04:24:39]Write to MH i2c: 01 00 00 C9 14 DD [04:24:39]Write i2c OK [04:24:39]MH_I2C_Read... [04:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 92 C5 47 00 BB 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 9A E0 02 00 F4 03 04 00 73 24 18 67 B6 04 01 00 00 06 92 6B 52 62 80 93 24 [04:24:40]CommunicateWithHost err = 0 [04:24:40]CheckOFDResponse [04:24:40]1017 (14) - 77093643461234 [04:24:40]1041 (16) - 0000000000965340 [04:24:40]1040 (4) - 188570 [04:24:40]1012 (4) - 22.10.2024 22:17 [04:24:40]1206 (1) - 0 [04:24:40]OFD Sender: Remove packet 188570 [04:24:40]ProducePacketName [04:24:40]name=ofd_packets/00188570 [04:24:40]NVStorageDeleteData [04:24:40]OFD Sender: No OFD packet to send [04:24:41]*** Cut start [04:24:41]*** Partial cut [04:24:41]*** CUTSNS_PIN = 1 [04:24:41]*** CUTSNS_PIN = 0 [04:24:41]*** Brake cut motor [04:24:41]Read from MH i2c: 01 [04:24:41]MH_I2C_Read... [04:24:41]*** Stop cut motor [04:24:41]*** Cut end [04:24:41]Read from MH i2c: 01 07 00 [04:24:41]MH_I2C_Read... [04:24:41]Read from MH i2c: 01 07 00 C9 14 00 00 00 00 00 FF 0F F2 [04:24:41]process_action close_receipt done [04:24:41]requested_data is exist [04:24:41]produce_requested_data [04:24:41]requested_item fm.sn is exist - process it [04:24:41]wFMCommunicate request_size=4 [04:24:41]MH_SAM_APDU [04:24:41]CAPDU: 80 11 00 00 [04:24:41]Write to MH i2c: E2 08 00 CA 14 80 11 00 00 00 00 00 00 58 [04:24:41]Write i2c OK [04:24:41]MH_I2C_Read... [04:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:41]Read from MH i2c: E2 [04:24:41]MH_I2C_Read... [04:24:41]Read from MH i2c: E2 17 00 [04:24:41]MH_I2C_Read... [04:24:41]Read from MH i2c: E2 17 00 CA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [04:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:24:41]wFMCommunicate OK [04:24:41]requested_item fd.num is exist - process it [04:24:41]SAM_PROTO_GetFieldsCounters [04:24:41]wFMCommunicate request_size=4 [04:24:41]MH_SAM_APDU [04:24:41]CAPDU: 80 13 00 00 [04:24:41]Write to MH i2c: E2 08 00 CB 14 80 13 00 00 00 00 00 00 5B [04:24:41]Write i2c OK [04:24:41]MH_I2C_Read... [04:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:24:42]Read from MH i2c: E2 [04:24:42]MH_I2C_Read... [04:24:42]Read from MH i2c: E2 62 00 [04:24:42]MH_I2C_Read... [04:24:42]Read from MH i2c: E2 62 00 CB 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [04:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:24:42]wFMCommunicate OK [04:24:42]SAM_PROTO_GetFieldsCounters done [04:24:42]requested_item shift.num is exist - process it [04:24:42]requested_item shift.opened is exist - process it [04:24:42]req_shift_opened [04:24:42]FM_GetShiftState [04:24:42]SAM_PROTO_GetShiftState [04:24:42]wFMCommunicate request_size=4 [04:24:42]MH_SAM_APDU [04:24:42]CAPDU: 80 13 01 00 [04:24:42]Write to MH i2c: E2 08 00 CC 14 80 13 01 00 00 00 00 00 5D [04:24:42]Write i2c OK [04:24:42]MH_I2C_Read... [04:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:42]Read from MH i2c: E2 [04:24:42]MH_I2C_Read... [04:24:42]Read from MH i2c: E2 0E 00 [04:24:42]MH_I2C_Read... [04:24:42]Read from MH i2c: E2 0E 00 CC 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 45 [04:24:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [04:24:42]wFMCommunicate OK [04:24:42]SAM_PROTO_GetShiftState done [04:24:42]FM_GetShiftState done [04:24:42]req_shift_opened done [04:24:42]requested_item shift.open_date is exist - process it [04:24:42]req_shift_open_date [04:24:42]req_shift_open_date done [04:24:42]produce_requested_data done [04:24:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188570,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [04:24:42]process_action_free close_receipt [04:24:42]json_value_free [04:24:42]json_value_free done [04:24:42]process_json_proto returns [04:24:42]Send response to host [04:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188570,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [04:24:42]free response buf [04:24:42]execute_script done [04:24:42]execute_script returns [04:24:42]free content buf [04:24:42]Sock 7.Close socket [04:24:42]Sock 7.Thread stoped [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30: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:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52: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:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:23]accept exits with 9 [04:58:23]New connection [04:58:23]New thread 3066506596 created [04:58:23]Thread 3066649956 joined [04:58:23]Waiting for new connection... [04:58:23] Sock 9.Parse request [04:58:23]Sock 9.Check first char [04:58:23]Sock 9.First char is OK [04:58:23]request: POST /json_proto HTTP/1.0 [04:58:23]Method: POST [04:58:23]URL: /json_proto [04:58:23]Method is POST - this is cgi request [04:58:23]url: /json_proto [04:58:23]query_string will be loaded in cgi processing [04:58:23]execute_cgi json_proto POST (null) [04:58:23]execute_cgi path=json_proto method=POST [04:58:23]POST find Content-Length [04:58:23]Host: 172.17.42.131:8080 [04:58:23]Content-Length: 688 [04:58:23]Content-Type: application/json [04:58:23] [04:58:23]POST finish read [04:58:23]Found Content-Length = 688 [04:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:23]execute_script... [04:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:23]POST & json_proto [04:58:23]process_json_proto [04:58:23]json parsed OK: [04:58:23]protocol is kg_v1.0 [04:58:23]action value=close_receipt [04:58:23]process_action close_receipt [04:58:23]cmd_close_receipt [04:58:23]MH_GetDate [04:58:23]Write to MH i2c: F0 00 00 CD 14 D0 [04:58:23]Write i2c OK [04:58:23]MH_I2C_Read... [04:58:23]Read from MH i2c: F0 [04:58:23]MH_I2C_Read... [04:58:23]Read from MH i2c: F0 09 00 [04:58:23]MH_I2C_Read... [04:58:23]Read from MH i2c: F0 09 00 CD 14 00 72 82 18 67 A0 18 CA 66 34 [04:58:23]GetLastDocTimeStamp 1729657480 [04:58:23]current date 1729659506 [04:58:23]FM_GetShiftState [04:58:23]SAM_PROTO_GetShiftState [04:58:23]wFMCommunicate request_size=4 [04:58:23]MH_SAM_APDU [04:58:23]CAPDU: 80 13 01 00 [04:58:23]Write to MH i2c: E2 08 00 CE 14 80 13 01 00 00 00 00 00 5F [04:58:23]Write i2c OK [04:58:23]MH_I2C_Read... [04:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:23]Read from MH i2c: E2 [04:58:23]MH_I2C_Read... [04:58:23]Read from MH i2c: E2 0E 00 [04:58:23]MH_I2C_Read... [04:58:23]Read from MH i2c: E2 0E 00 CE 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 47 [04:58:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [04:58:23]wFMCommunicate OK [04:58:23]SAM_PROTO_GetShiftState done [04:58:23]FM_GetShiftState done [04:58:23]opened in 1729642525 [04:58:23]opened+sec_in_day 1729728925 [04:58:23]quantity*price = 200025 [04:58:23]sum+1 = 200026 [04:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 29 23.10.2024 04:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188571 ФПД: 43854162789235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T045826&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188571&fm=43854162789235&tin=02508201610067®Number=0000000000100030&sum=200000 [04:58:25]StoreToDocumentArchive [04:58:25]shift 462 fd 188571 [04:58:25]save to /storage/0462/doc_00188571 [04:58:25]save last doc name /storage/0462/doc_00188571 to /storage/kkm_last_doc_name [04:58:25]save OK [04:58:25]Clear old archive folders... [04:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:58:25]tlvbuf is 008CFAF0 [04:58:25]SAM_PROTO_ClearQueue [04:58:25]wFMCommunicate request_size=4 [04:58:25]MH_SAM_APDU [04:58:25]CAPDU: 80 09 00 00 [04:58:25]Write to MH i2c: E2 08 00 DB 14 80 09 00 00 00 00 00 00 61 [04:58:25]Write i2c OK [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 [04:58:25]MH_I2C_Read... [04:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:25]Read from MH i2c: E2 03 00 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 03 00 DB 14 00 90 00 63 [04:58:25]RAPDU: 90 00 [04:58:25]wFMCommunicate OK [04:58:25]SAM_PROTO_ClearQueue done [04:58:25]KKMCreateOFDPacket [04:58:25]OFDProtocolAddRootSTLVToBuf [04:58:25]FM_MakeSignedData [04:58:25]FM_MakeSignedData [04:58:25]SAM_PROTO_SignData [04:58:25]wFMCommunicate request_size=4 [04:58:25]MH_SAM_APDU [04:58:25]CAPDU: 80 0D 01 02 [04:58:25]Write to MH i2c: E2 08 00 DC 14 80 0D 01 02 00 00 00 00 69 [04:58:25]Write i2c OK [04:58:25]MH_I2C_Read... [04:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:25]Read from MH i2c: E2 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 03 00 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [04:58:25]RAPDU: 90 00 [04:58:25]wFMCommunicate OK [04:58:25]wFMCommunicate request_size=255 [04:58:25]MH_SAM_APDU [04:58:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 72 82 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E0 02 [04:58:25]Write to MH i2c: E2 02 01 DD 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 72 82 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E0 02 00 00 E6 [04:58:25]Write i2c OK [04:58:25]MH_I2C_Read... [04:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:25]Read from MH i2c: E2 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 03 00 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [04:58:25]RAPDU: 90 00 [04:58:25]wFMCommunicate OK [04:58:25]wFMCommunicate request_size=16 [04:58:25]MH_SAM_APDU [04:58:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 27 E2 97 CB 83 73 [04:58:25]Write to MH i2c: E2 13 00 DE 14 80 0D 02 02 0B 00 00 35 04 06 00 27 E2 97 CB 83 73 00 00 22 [04:58:25]Write i2c OK [04:58:25]MH_I2C_Read... [04:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:25]Read from MH i2c: E2 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 03 00 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [04:58:25]RAPDU: 90 00 [04:58:25]wFMCommunicate OK [04:58:25]wFMCommunicate request_size=4 [04:58:25]MH_SAM_APDU [04:58:25]CAPDU: 80 0D 03 02 [04:58:25]Write to MH i2c: E2 08 00 DF 14 80 0D 03 02 00 00 00 00 6E [04:58:25]Write i2c OK [04:58:25]MH_I2C_Read... [04:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:58:25]Read from MH i2c: E2 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 0B 00 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 0B 00 DF 14 00 7A 81 09 CB 9E DA F6 A8 90 00 54 [04:58:25]RAPDU: 7A 81 09 CB 9E DA F6 A8 90 00 [04:58:25]wFMCommunicate OK [04:58:25]SAM_PROTO_SignData done [04:58:25]FM_MakeSignedData done [04:58:25]CreateOFDProtocolMessage [04:58:25]wFMCommunicate request_size=4 [04:58:25]MH_SAM_APDU [04:58:25]CAPDU: 80 11 00 00 [04:58:25]Write to MH i2c: E2 08 00 E0 14 80 11 00 00 00 00 00 00 6E [04:58:25]Write i2c OK [04:58:25]MH_I2C_Read... [04:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:25]Read from MH i2c: E2 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 17 00 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: E2 17 00 E0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [04:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:58:25]wFMCommunicate OK [04:58:25]CreateOFDProtocolMessage done [04:58:25]OFDSenderStorePacket 188571 [04:58:25]StoreOFDPacket docnum=188571 [04:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CE 94 0D 01 78 ED 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 72 82 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E0 02 00 35 04 06 00 27 E2 97 CB 83 73 7A 81 09 CB 9E DA F6 A8 [04:58:25]CheckFolder [04:58:25]dirname=/storage/ofd_packets [04:58:25]CheckFolder done [04:58:25]ProducePacketName [04:58:25]name=ofd_packets/00188571 [04:58:25]NVStorageSaveData ofd_packets/00188571 [04:58:25]File name is /storage/ofd_packets/00188571 [04:58:25]Write 307 bytes [04:58:25]NVStorageSaveData done [04:58:25]OFDSenderStorePacket done [04:58:25]KKMCreateOFDPacket done [04:58:25]NVStorageSaveData kkm_last_timestamp [04:58:25]File name is /storage/kkm_last_timestamp [04:58:25]Write 4 bytes [04:58:25]NVStorageSaveData done [04:58:25]ExternCall_PrintAddStr [04:58:25]wPrintStart [04:58:25]Write to MH i2c: 01 00 00 E1 14 F5 [04:58:25]Write i2c OK [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: 01 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: 01 07 00 [04:58:25]MH_I2C_Read... [04:58:25]Read from MH i2c: 01 07 00 E1 14 00 00 00 00 00 FF 0F 0A [04:58:25]RasterBufferAndPrint [04:58:25]line Счет N : (1)210630 [04:58:25]line ИНН: 02508201610067 [04:58:25]line Контрольно-Кассовый Чек [04:58:25]line ПРОДАЖА [04:58:25]line ТРК (МРК, ГНК) : 31 [04:58:25]line Товар: 2710194210 [04:58:25]line D-ENERGY ДТ-К-5 [04:58:25]line 25.910 * 77.20 [04:58:25]line = 2000.25 [04:58:25]line НДС 12% НСП 1% [04:58:25]line > о реализуемом товаре [04:58:25]line ОКРУГЛЕНИЕ: -0.25 [04:58:25]line ИТОГО: 2000.00 [04:58:25]line Внесено: 2000.00 [04:58:25]line СДАЧА: 0.00 [04:58:25]line НСП 1% : 17.70 [04:58:25]line НДС 12% : 212.42 [04:58:25]line Наличными: 2000.00 [04:58:25]line Безнал.: 0.00 [04:58:25]line Место: АЗС № 86 "Партнер Нефть" [04:58:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:58:25]line СНО: Общий режим [04:58:25]line Чек 29 23.10.2024 04:58 [04:58:25]line Смена: 462 ФФД: 1.0 [04:58:25]line ЗНМ: 0300000155 [04:58:25]line РНМ: 0000000000100030 [04:58:25]line Версия ККМ: 001 [04:58:25]line ФМ: 0000000000965340 [04:58:25]line ФД: 188571 [04:58:25]line ФПД: 43854162789235 [04:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T045826&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188571&fm=43854162789235&tin=02508201610067®Number=0000000000100030&sum=200000 [04:58:25]OFD Sender: Processing packet 188571 [packets to send 1062, broken 1061] [04:58:25]ProducePacketName [04:58:25]name=ofd_packets/00188571 [04:58:25]OFD Sender: To server: pG, [04:58:25]CommunicateWithHost lk.salyk.kg:30040 [04:58:25]ConnectInit lk.salyk.kg [04:58:25]written 0, free lines is 4095 [04:58:26]Connected sock=10 [04:58:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CE 94 0D 01 78 ED 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 72 82 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E0 02 00 35 04 06 00 27 E2 97 CB 83 73 7A 81 09 CB 9E DA F6 A8 [04:58:26]Write to MH i2c: 01 00 00 0C 15 21 [04:58:26]Write i2c OK [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: 01 [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: 01 07 00 [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: 01 07 00 0C 15 00 00 00 00 00 5B 0C 8F [04:58:26]RasterBufferAndPrint [04:58:26]line [04:58:26]line [04:58:26]line [04:58:26]line [04:58:26]line [04:58:26]written 0, free lines is 3166 [04:58:26]MH_Cut [04:58:26]Write to MH i2c: D1 01 00 13 15 01 FA [04:58:26]Write i2c OK [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: D1 [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: D1 01 00 [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: D1 01 00 13 15 00 F9 [04:58:26]Write to MH i2c: 01 00 00 14 15 29 [04:58:26]Write i2c OK [04:58:26]MH_I2C_Read... [04:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E EB 47 00 FD 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 36 35 33 34 30 10 04 04 00 9B E0 02 00 F4 03 04 00 5D 2C 18 67 B6 04 01 00 00 03 48 14 2F 5F 3F 6F D2 [04:58:26]CommunicateWithHost err = 0 [04:58:26]CheckOFDResponse [04:58:26]1017 (14) - 77093643461234 [04:58:26]1041 (16) - 0000000000965340 [04:58:26]1040 (4) - 188571 [04:58:26]1012 (4) - 22.10.2024 22:51 [04:58:26]1206 (1) - 0 [04:58:26]OFD Sender: Remove packet 188571 [04:58:26]ProducePacketName [04:58:26]name=ofd_packets/00188571 [04:58:26]NVStorageDeleteData [04:58:27]OFD Sender: No OFD packet to send [04:58:27]*** Cut start [04:58:27]*** Partial cut [04:58:27]*** CUTSNS_PIN = 1 [04:58:27]*** CUTSNS_PIN = 0 [04:58:28]*** Brake cut motor [04:58:28]Read from MH i2c: 01 [04:58:28]MH_I2C_Read... [04:58:28]*** Stop cut motor [04:58:28]*** Cut end [04:58:28]Read from MH i2c: 01 07 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: 01 07 00 14 15 00 00 00 00 00 FF 0F 3E [04:58:28]process_action close_receipt done [04:58:28]requested_data is exist [04:58:28]produce_requested_data [04:58:28]requested_item fm.sn is exist - process it [04:58:28]wFMCommunicate request_size=4 [04:58:28]MH_SAM_APDU [04:58:28]CAPDU: 80 11 00 00 [04:58:28]Write to MH i2c: E2 08 00 15 15 80 11 00 00 00 00 00 00 A4 [04:58:28]Write i2c OK [04:58:28]MH_I2C_Read... [04:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:28]Read from MH i2c: E2 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 17 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 17 00 15 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [04:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:58:28]wFMCommunicate OK [04:58:28]requested_item fd.num is exist - process it [04:58:28]SAM_PROTO_GetFieldsCounters [04:58:28]wFMCommunicate request_size=4 [04:58:28]MH_SAM_APDU [04:58:28]CAPDU: 80 13 00 00 [04:58:28]Write to MH i2c: E2 08 00 16 15 80 13 00 00 00 00 00 00 A7 [04:58:28]Write i2c OK [04:58:28]MH_I2C_Read... [04:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:58:28]Read from MH i2c: E2 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 62 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 62 00 16 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [04:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:58:28]wFMCommunicate OK [04:58:28]SAM_PROTO_GetFieldsCounters done [04:58:28]requested_item shift.num is exist - process it [04:58:28]requested_item shift.opened is exist - process it [04:58:28]req_shift_opened [04:58:28]FM_GetShiftState [04:58:28]SAM_PROTO_GetShiftState [04:58:28]wFMCommunicate request_size=4 [04:58:28]MH_SAM_APDU [04:58:28]CAPDU: 80 13 01 00 [04:58:28]Write to MH i2c: E2 08 00 17 15 80 13 01 00 00 00 00 00 A9 [04:58:28]Write i2c OK [04:58:28]MH_I2C_Read... [04:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:28]Read from MH i2c: E2 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 0E 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 0E 00 17 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 91 [04:58:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [04:58:28]wFMCommunicate OK [04:58:28]SAM_PROTO_GetShiftState done [04:58:28]FM_GetShiftState done [04:58:28]req_shift_opened done [04:58:28]requested_item shift.open_date is exist - process it [04:58:28]req_shift_open_date [04:58:28]req_shift_open_date done [04:58:28]produce_requested_data done [04:58:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188571,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [04:58:28]process_action_free close_receipt [04:58:28]json_value_free [04:58:28]json_value_free done [04:58:28]process_json_proto returns [04:58:28]Send response to host [04:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188571,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [04:58:28]free response buf [04:58:28]execute_script done [04:58:28]execute_script returns [04:58:28]free content buf [04:58:28]Sock 9.Close socket [04:58:28]Sock 9.Thread stoped [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]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:46]accept exits with 7 [05:03:46]New connection [05:03:46]New thread 3066649956 created [05:03:46]Thread 3066506596 joined [05:03:46]Waiting for new connection... [05:03:46] Sock 7.Parse request [05:03:46]Sock 7.Check first char [05:03:46]Sock 7.First char is OK [05:03:46]request: POST /json_proto HTTP/1.0 [05:03:46]Method: POST [05:03:46]URL: /json_proto [05:03:46]Method is POST - this is cgi request [05:03:46]url: /json_proto [05:03:46]query_string will be loaded in cgi processing [05:03:46]execute_cgi json_proto POST (null) [05:03:46]execute_cgi path=json_proto method=POST [05:03:46]POST find Content-Length [05:03:46]Host: 172.17.42.131:8080 [05:03:46]Content-Length: 678 [05:03:46]Content-Type: application/json [05:03:46] [05:03:46]POST finish read [05:03:46]Found Content-Length = 678 [05:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:46]execute_script... [05:03:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:46]POST & json_proto [05:03:46]process_json_proto [05:03:46]json parsed OK: [05:03:46]protocol is kg_v1.0 [05:03:46]action value=close_receipt [05:03:46]process_action close_receipt [05:03:46]cmd_close_receipt [05:03:46]MH_GetDate [05:03:46]Write to MH i2c: F0 00 00 18 15 1C [05:03:46]Write i2c OK [05:03:46]MH_I2C_Read... [05:03:46]Read from MH i2c: F0 [05:03:46]MH_I2C_Read... [05:03:46]Read from MH i2c: F0 09 00 [05:03:46]MH_I2C_Read... [05:03:46]Read from MH i2c: F0 09 00 18 15 00 B5 83 18 67 A0 18 CA 66 C4 [05:03:46]GetLastDocTimeStamp 1729659506 [05:03:46]current date 1729659829 [05:03:46]FM_GetShiftState [05:03:46]SAM_PROTO_GetShiftState [05:03:46]wFMCommunicate request_size=4 [05:03:46]MH_SAM_APDU [05:03:46]CAPDU: 80 13 01 00 [05:03:46]Write to MH i2c: E2 08 00 19 15 80 13 01 00 00 00 00 00 AB [05:03:46]Write i2c OK [05:03:46]MH_I2C_Read... [05:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:46]Read from MH i2c: E2 [05:03:46]MH_I2C_Read... [05:03:46]Read from MH i2c: E2 0E 00 [05:03:46]MH_I2C_Read... [05:03:46]Read from MH i2c: E2 0E 00 19 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 93 [05:03:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [05:03:46]wFMCommunicate OK [05:03:46]SAM_PROTO_GetShiftState done [05:03:46]FM_GetShiftState done [05:03:46]opened in 1729642525 [05:03:46]opened+sec_in_day 1729728925 [05:03:46]quantity*price = 70044 [05:03:46]sum+1 = 70045 [05:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 30 23.10.2024 05:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188572 ФПД: 135373116466046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T050349&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188572&fm=135373116466046&tin=02508201610067®Number=0000000000100030&sum=70000 [05:03:47]StoreToDocumentArchive [05:03:47]shift 462 fd 188572 [05:03:47]save to /storage/0462/doc_00188572 [05:03:47]save last doc name /storage/0462/doc_00188572 to /storage/kkm_last_doc_name [05:03:47]save OK [05:03:47]Clear old archive folders... [05:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:03:47]tlvbuf is 008F3320 [05:03:47]SAM_PROTO_ClearQueue [05:03:47]wFMCommunicate request_size=4 [05:03:47]MH_SAM_APDU [05:03:47]CAPDU: 80 09 00 00 [05:03:47]Write to MH i2c: E2 08 00 26 15 80 09 00 00 00 00 00 00 AD [05:03:47]Write i2c OK [05:03:47]MH_I2C_Read... [05:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:47]Read from MH i2c: E2 [05:03:47]MH_I2C_Read... [05:03:47]Read from MH i2c: E2 03 00 [05:03:47]MH_I2C_Read... [05:03:47]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [05:03:47]RAPDU: 90 00 [05:03:47]wFMCommunicate OK [05:03:47]SAM_PROTO_ClearQueue done [05:03:47]KKMCreateOFDPacket [05:03:47]OFDProtocolAddRootSTLVToBuf [05:03:47]FM_MakeSignedData [05:03:47]FM_MakeSignedData [05:03:47]SAM_PROTO_SignData [05:03:47]wFMCommunicate request_size=4 [05:03:47]MH_SAM_APDU [05:03:47]CAPDU: 80 0D 01 02 [05:03:47]Write to MH i2c: E2 08 00 27 15 80 0D 01 02 00 00 00 00 B5 [05:03:47]Write i2c OK [05:03:47]MH_I2C_Read... [05:03:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:47]Read from MH i2c: E2 [05:03:47]MH_I2C_Read... [05:03:47]Read from MH i2c: E2 03 00 [05:03:47]MH_I2C_Read... [05:03:47]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [05:03:47]RAPDU: 90 00 [05:03:47]wFMCommunicate OK [05:03:47]wFMCommunicate request_size=255 [05:03:47]MH_SAM_APDU [05:03:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B5 83 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E0 02 00 35 04 06 00 7B [05:03:47]Write to MH i2c: E2 02 01 28 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B5 83 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E0 02 00 35 04 06 00 7B 00 00 D5 [05:03:47]Write i2c OK [05:03:47]MH_I2C_Read... [05:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:48]Read from MH i2c: E2 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: E2 03 00 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [05:03:48]RAPDU: 90 00 [05:03:48]wFMCommunicate OK [05:03:48]wFMCommunicate request_size=10 [05:03:48]MH_SAM_APDU [05:03:48]CAPDU: 80 0D 02 02 05 1F 02 84 E3 7E [05:03:48]Write to MH i2c: E2 0D 00 29 15 80 0D 02 02 05 00 1F 02 84 E3 7E 00 00 C8 [05:03:48]Write i2c OK [05:03:48]MH_I2C_Read... [05:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:48]Read from MH i2c: E2 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: E2 03 00 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: E2 03 00 29 15 00 90 00 B2 [05:03:48]RAPDU: 90 00 [05:03:48]wFMCommunicate OK [05:03:48]wFMCommunicate request_size=4 [05:03:48]MH_SAM_APDU [05:03:48]CAPDU: 80 0D 03 02 [05:03:48]Write to MH i2c: E2 08 00 2A 15 80 0D 03 02 00 00 00 00 BA [05:03:48]Write i2c OK [05:03:48]MH_I2C_Read... [05:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:48]Read from MH i2c: E2 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: E2 0B 00 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: E2 0B 00 2A 15 00 15 89 E0 25 A2 F7 70 32 90 00 99 [05:03:48]RAPDU: 15 89 E0 25 A2 F7 70 32 90 00 [05:03:48]wFMCommunicate OK [05:03:48]SAM_PROTO_SignData done [05:03:48]FM_MakeSignedData done [05:03:48]CreateOFDProtocolMessage [05:03:48]wFMCommunicate request_size=4 [05:03:48]MH_SAM_APDU [05:03:48]CAPDU: 80 11 00 00 [05:03:48]Write to MH i2c: E2 08 00 2B 15 80 11 00 00 00 00 00 00 BA [05:03:48]Write i2c OK [05:03:48]MH_I2C_Read... [05:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:48]Read from MH i2c: E2 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: E2 17 00 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: E2 17 00 2B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [05:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:03:48]wFMCommunicate OK [05:03:48]CreateOFDProtocolMessage done [05:03:48]OFDSenderStorePacket 188572 [05:03:48]StoreOFDPacket docnum=188572 [05:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A2 AF 07 01 52 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B5 83 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E0 02 00 35 04 06 00 7B 1F 02 84 E3 7E 15 89 E0 25 A2 F7 70 32 [05:03:48]CheckFolder [05:03:48]dirname=/storage/ofd_packets [05:03:48]CheckFolder done [05:03:48]ProducePacketName [05:03:48]name=ofd_packets/00188572 [05:03:48]NVStorageSaveData ofd_packets/00188572 [05:03:48]File name is /storage/ofd_packets/00188572 [05:03:48]Write 301 bytes [05:03:48]NVStorageSaveData done [05:03:48]OFDSenderStorePacket done [05:03:48]KKMCreateOFDPacket done [05:03:48]NVStorageSaveData kkm_last_timestamp [05:03:48]File name is /storage/kkm_last_timestamp [05:03:48]Write 4 bytes [05:03:48]NVStorageSaveData done [05:03:48]ExternCall_PrintAddStr [05:03:48]wPrintStart [05:03:48]Write to MH i2c: 01 00 00 2C 15 41 [05:03:48]Write i2c OK [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: 01 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: 01 07 00 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: 01 07 00 2C 15 00 00 00 00 00 FF 0F 56 [05:03:48]RasterBufferAndPrint [05:03:48]line Счет N : (1)210632 [05:03:48]line ИНН: 02508201610067 [05:03:48]line Контрольно-Кассовый Чек [05:03:48]line ПРОДАЖА [05:03:48]line ТРК (МРК, ГНК) : 42 [05:03:48]line Товар: 2710124130 [05:03:48]line Аи-92-К-3 [05:03:48]line 10.470 * 66.90 [05:03:48]line = 700.44 [05:03:48]line НДС 12% НСП 1% [05:03:48]line > о реализуемом товаре [05:03:48]line ОКРУГЛЕНИЕ: -0.44 [05:03:48]line ИТОГО: 700.00 [05:03:48]line Внесено: 700.00 [05:03:48]line СДАЧА: 0.00 [05:03:48]line НСП 1% : 6.20 [05:03:48]line НДС 12% : 74.38 [05:03:48]line Наличными: 700.00 [05:03:48]line Безнал.: 0.00 [05:03:48]line Место: АЗС № 86 "Партнер Нефть" [05:03:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:03:48]line СНО: Общий режим [05:03:48]line Чек 30 23.10.2024 05:03 [05:03:48]line Смена: 462 ФФД: 1.0 [05:03:48]line ЗНМ: 0300000155 [05:03:48]line РНМ: 0000000000100030 [05:03:48]line Версия ККМ: 001 [05:03:48]line ФМ: 0000000000965340 [05:03:48]line ФД: 188572 [05:03:48]line ФПД: 135373116466046 [05:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T050349&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188572&fm=135373116466046&tin=02508201610067®Number=0000000000100030&sum=70000 [05:03:48]written 0, free lines is 4095 [05:03:48]OFD Sender: Processing packet 188572 [packets to send 1062, broken 1061] [05:03:48]ProducePacketName [05:03:48]name=ofd_packets/00188572 [05:03:48]OFD Sender: To server: pG, [05:03:48]CommunicateWithHost lk.salyk.kg:30040 [05:03:48]ConnectInit lk.salyk.kg [05:03:48]Connected sock=10 [05:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A2 AF 07 01 52 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B5 83 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E0 02 00 35 04 06 00 7B 1F 02 84 E3 7E 15 89 E0 25 A2 F7 70 32 [05:03:48]Write to MH i2c: 01 00 00 57 15 6C [05:03:48]Write i2c OK [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: 01 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: 01 07 00 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: 01 07 00 57 15 00 00 00 00 00 51 0C D0 [05:03:48]RasterBufferAndPrint [05:03:48]line [05:03:48]line [05:03:48]line [05:03:48]line [05:03:48]line [05:03:48]written 0, free lines is 3157 [05:03:48]MH_Cut [05:03:48]Write to MH i2c: D1 01 00 5E 15 01 45 [05:03:48]Write i2c OK [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: D1 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: D1 01 00 [05:03:48]MH_I2C_Read... [05:03:48]Read from MH i2c: D1 01 00 5E 15 00 44 [05:03:48]Write to MH i2c: 01 00 00 5F 15 74 [05:03:48]Write i2c OK [05:03:48]MH_I2C_Read... [05:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A9 86 47 00 3B 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 36 35 33 34 30 10 04 04 00 9C E0 02 00 F4 03 04 00 A0 2D 18 67 B6 04 01 00 00 CB 0B 6E F5 4A FC 7D 24 [05:03:49]CommunicateWithHost err = 0 [05:03:49]CheckOFDResponse [05:03:49]1017 (14) - 77093643461234 [05:03:49]1041 (16) - 0000000000965340 [05:03:49]1040 (4) - 188572 [05:03:49]1012 (4) - 22.10.2024 22:56 [05:03:49]1206 (1) - 0 [05:03:49]OFD Sender: Remove packet 188572 [05:03:49]ProducePacketName [05:03:49]name=ofd_packets/00188572 [05:03:49]NVStorageDeleteData [05:03:49]OFD Sender: No OFD packet to send [05:03:50]*** Cut start [05:03:50]*** Partial cut [05:03:50]*** CUTSNS_PIN = 1 [05:03:50]*** CUTSNS_PIN = 0 [05:03:50]*** Brake cut motor [05:03:50]Read from MH i2c: 01 [05:03:50]MH_I2C_Read... [05:03:50]*** Stop cut motor [05:03:50]*** Cut end [05:03:50]Read from MH i2c: 01 07 00 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FF 0F 89 [05:03:50]process_action close_receipt done [05:03:50]requested_data is exist [05:03:50]produce_requested_data [05:03:50]requested_item fm.sn is exist - process it [05:03:50]wFMCommunicate request_size=4 [05:03:50]MH_SAM_APDU [05:03:50]CAPDU: 80 11 00 00 [05:03:50]Write to MH i2c: E2 08 00 60 15 80 11 00 00 00 00 00 00 EF [05:03:50]Write i2c OK [05:03:50]MH_I2C_Read... [05:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:50]Read from MH i2c: E2 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: E2 17 00 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: E2 17 00 60 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [05:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:03:50]wFMCommunicate OK [05:03:50]requested_item fd.num is exist - process it [05:03:50]SAM_PROTO_GetFieldsCounters [05:03:50]wFMCommunicate request_size=4 [05:03:50]MH_SAM_APDU [05:03:50]CAPDU: 80 13 00 00 [05:03:50]Write to MH i2c: E2 08 00 61 15 80 13 00 00 00 00 00 00 F2 [05:03:50]Write i2c OK [05:03:50]MH_I2C_Read... [05:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:50]Read from MH i2c: E2 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: E2 62 00 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: E2 62 00 61 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [05:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:03:50]wFMCommunicate OK [05:03:50]SAM_PROTO_GetFieldsCounters done [05:03:50]requested_item shift.num is exist - process it [05:03:50]requested_item shift.opened is exist - process it [05:03:50]req_shift_opened [05:03:50]FM_GetShiftState [05:03:50]SAM_PROTO_GetShiftState [05:03:50]wFMCommunicate request_size=4 [05:03:50]MH_SAM_APDU [05:03:50]CAPDU: 80 13 01 00 [05:03:50]Write to MH i2c: E2 08 00 62 15 80 13 01 00 00 00 00 00 F4 [05:03:50]Write i2c OK [05:03:50]MH_I2C_Read... [05:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:51]Read from MH i2c: E2 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 0E 00 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 0E 00 62 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DC [05:03:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [05:03:51]wFMCommunicate OK [05:03:51]SAM_PROTO_GetShiftState done [05:03:51]FM_GetShiftState done [05:03:51]req_shift_opened done [05:03:51]requested_item shift.open_date is exist - process it [05:03:51]req_shift_open_date [05:03:51]req_shift_open_date done [05:03:51]produce_requested_data done [05:03:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188572,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [05:03:51]process_action_free close_receipt [05:03:51]json_value_free [05:03:51]json_value_free done [05:03:51]process_json_proto returns [05:03:51]Send response to host [05:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188572,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [05:03:51]free response buf [05:03:51]execute_script done [05:03:51]execute_script returns [05:03:51]free content buf [05:03:51]Sock 7.Close socket [05:03:51]Sock 7.Thread stoped [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:03]accept exits with 9 [05:04:03]New connection [05:04:03]New thread 3066506596 created [05:04:03]Thread 3066649956 joined [05:04:03]Waiting for new connection... [05:04:03] Sock 9.Parse request [05:04:03]Sock 9.Check first char [05:04:03]Sock 9.First char is OK [05:04:03]request: POST /json_proto HTTP/1.0 [05:04:03]Method: POST [05:04:03]URL: /json_proto [05:04:03]Method is POST - this is cgi request [05:04:03]url: /json_proto [05:04:03]query_string will be loaded in cgi processing [05:04:03]execute_cgi json_proto POST (null) [05:04:03]execute_cgi path=json_proto method=POST [05:04:03]POST find Content-Length [05:04:03]Host: 172.17.42.131:8080 [05:04:03]Content-Length: 679 [05:04:03]Content-Type: application/json [05:04:03] [05:04:03]POST finish read [05:04:03]Found Content-Length = 679 [05:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:03]execute_script... [05:04:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:03]POST & json_proto [05:04:03]process_json_proto [05:04:03]json parsed OK: [05:04:03]protocol is kg_v1.0 [05:04:03]action value=close_receipt [05:04:03]process_action close_receipt [05:04:03]cmd_close_receipt [05:04:03]MH_GetDate [05:04:03]Write to MH i2c: F0 00 00 63 15 67 [05:04:03]Write i2c OK [05:04:03]MH_I2C_Read... [05:04:03]Read from MH i2c: F0 [05:04:03]MH_I2C_Read... [05:04:03]Read from MH i2c: F0 09 00 [05:04:03]MH_I2C_Read... [05:04:03]Read from MH i2c: F0 09 00 63 15 00 C5 83 18 67 A0 18 CA 66 1F [05:04:03]GetLastDocTimeStamp 1729659829 [05:04:03]current date 1729659845 [05:04:03]FM_GetShiftState [05:04:03]SAM_PROTO_GetShiftState [05:04:03]wFMCommunicate request_size=4 [05:04:03]MH_SAM_APDU [05:04:03]CAPDU: 80 13 01 00 [05:04:03]Write to MH i2c: E2 08 00 64 15 80 13 01 00 00 00 00 00 F6 [05:04:03]Write i2c OK [05:04:03]MH_I2C_Read... [05:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:03]Read from MH i2c: E2 [05:04:03]MH_I2C_Read... [05:04:03]Read from MH i2c: E2 0E 00 [05:04:03]MH_I2C_Read... [05:04:03]Read from MH i2c: E2 0E 00 64 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DE [05:04:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [05:04:03]wFMCommunicate OK [05:04:03]SAM_PROTO_GetShiftState done [05:04:03]FM_GetShiftState done [05:04:03]opened in 1729642525 [05:04:03]opened+sec_in_day 1729728925 [05:04:03]quantity*price = 300075 [05:04:03]sum+1 = 300077 [05:04:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 31 23.10.2024 05:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188573 ФПД: 112650664699758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T050405&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188573&fm=112650664699758&tin=02508201610067®Number=0000000000100030&sum=300000 [05:04:04]StoreToDocumentArchive [05:04:04]shift 462 fd 188573 [05:04:04]save to /storage/0462/doc_00188573 [05:04:04]save last doc name /storage/0462/doc_00188573 to /storage/kkm_last_doc_name [05:04:04]save OK [05:04:04]Clear old archive folders... [05:04:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:04:04]tlvbuf is 0090C3D0 [05:04:04]SAM_PROTO_ClearQueue [05:04:04]wFMCommunicate request_size=4 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 09 00 00 [05:04:04]Write to MH i2c: E2 08 00 71 15 80 09 00 00 00 00 00 00 F8 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 71 15 00 90 00 FA [05:04:04]RAPDU: 90 00 [05:04:04]wFMCommunicate OK [05:04:04]SAM_PROTO_ClearQueue done [05:04:04]KKMCreateOFDPacket [05:04:04]OFDProtocolAddRootSTLVToBuf [05:04:04]FM_MakeSignedData [05:04:04]FM_MakeSignedData [05:04:04]SAM_PROTO_SignData [05:04:04]wFMCommunicate request_size=4 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 0D 01 02 [05:04:04]Write to MH i2c: E2 08 00 72 15 80 0D 01 02 00 00 00 00 00 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [05:04:04]RAPDU: 90 00 [05:04:04]wFMCommunicate OK [05:04:04]wFMCommunicate request_size=255 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C5 83 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E0 02 00 35 04 06 00 66 74 86 DA [05:04:04]Write to MH i2c: E2 02 01 73 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C5 83 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E0 02 00 35 04 06 00 66 74 86 DA 00 00 10 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [05:04:04]RAPDU: 90 00 [05:04:04]wFMCommunicate OK [05:04:04]wFMCommunicate request_size=7 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 0D 02 02 02 67 6E [05:04:04]Write to MH i2c: E2 0A 00 74 15 80 0D 02 02 02 00 67 6E 00 00 DC [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [05:04:04]RAPDU: 90 00 [05:04:04]wFMCommunicate OK [05:04:04]wFMCommunicate request_size=4 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 0D 03 02 [05:04:04]Write to MH i2c: E2 08 00 75 15 80 0D 03 02 00 00 00 00 05 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 0B 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 0B 00 75 15 00 1B DF 16 D8 2B 99 08 67 90 00 21 [05:04:04]RAPDU: 1B DF 16 D8 2B 99 08 67 90 00 [05:04:04]wFMCommunicate OK [05:04:04]SAM_PROTO_SignData done [05:04:04]FM_MakeSignedData done [05:04:04]CreateOFDProtocolMessage [05:04:04]wFMCommunicate request_size=4 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 11 00 00 [05:04:04]Write to MH i2c: E2 08 00 76 15 80 11 00 00 00 00 00 00 05 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]OFD Sender: No OFD packet to send [05:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 17 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 17 00 76 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [05:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:04:04]wFMCommunicate OK [05:04:04]CreateOFDProtocolMessage done [05:04:04]OFDSenderStorePacket 188573 [05:04:04]StoreOFDPacket docnum=188573 [05:04:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6A FB 04 01 2D 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C5 83 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E0 02 00 35 04 06 00 66 74 86 DA 67 6E 1B DF 16 D8 2B 99 08 67 [05:04:04]CheckFolder [05:04:04]dirname=/storage/ofd_packets [05:04:04]CheckFolder done [05:04:04]ProducePacketName [05:04:04]name=ofd_packets/00188573 [05:04:04]NVStorageSaveData ofd_packets/00188573 [05:04:04]File name is /storage/ofd_packets/00188573 [05:04:04]Write 298 bytes [05:04:04]NVStorageSaveData done [05:04:04]OFDSenderStorePacket done [05:04:04]KKMCreateOFDPacket done [05:04:04]NVStorageSaveData kkm_last_timestamp [05:04:04]File name is /storage/kkm_last_timestamp [05:04:04]Write 4 bytes [05:04:04]NVStorageSaveData done [05:04:04]ExternCall_PrintAddStr [05:04:04]wPrintStart [05:04:04]Write to MH i2c: 01 00 00 77 15 8C [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: 01 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: 01 07 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: 01 07 00 77 15 00 00 00 00 00 FF 0F A1 [05:04:04]RasterBufferAndPrint [05:04:04]line Счет N : (1)210631 [05:04:04]line ИНН: 02508201610067 [05:04:04]line Контрольно-Кассовый Чек [05:04:04]line ПРОДАЖА [05:04:04]line ТРК (МРК, ГНК) : 51 [05:04:04]line Товар: 2710194210 [05:04:04]line ДТ-К-5 [05:04:04]line 39.380 * 76.20 [05:04:04]line = 3000.76 [05:04:04]line НДС 12% НСП 1% [05:04:04]line > о реализуемом товаре [05:04:04]line ОКРУГЛЕНИЕ: -0.76 [05:04:04]line ИТОГО: 3000.00 [05:04:04]line Внесено: 3000.00 [05:04:04]line СДАЧА: 0.00 [05:04:04]line НСП 1% : 26.55 [05:04:04]line НДС 12% : 318.66 [05:04:04]line Наличными: 3000.00 [05:04:04]line Безнал.: 0.00 [05:04:04]line Место: АЗС № 86 "Партнер Нефть" [05:04:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:04:04]line СНО: Общий режим [05:04:04]line Чек 31 23.10.2024 05:04 [05:04:04]line Смена: 462 ФФД: 1.0 [05:04:04]line ЗНМ: 0300000155 [05:04:04]line РНМ: 0000000000100030 [05:04:04]line Версия ККМ: 001 [05:04:04]line ФМ: 0000000000965340 [05:04:04]line ФД: 188573 [05:04:04]line ФПД: 112650664699758 [05:04:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T050405&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188573&fm=112650664699758&tin=02508201610067®Number=0000000000100030&sum=300000 [05:04:04]OFD Sender: Processing packet 188573 [packets to send 1062, broken 1061] [05:04:04]ProducePacketName [05:04:04]name=ofd_packets/00188573 [05:04:04]OFD Sender: To server: pG, [05:04:04]CommunicateWithHost lk.salyk.kg:30040 [05:04:04]ConnectInit lk.salyk.kg [05:04:04]written 0, free lines is 4095 [05:04:05]Connected sock=10 [05:04:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6A FB 04 01 2D 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C5 83 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E0 02 00 35 04 06 00 66 74 86 DA 67 6E 1B DF 16 D8 2B 99 08 67 [05:04:05]Write to MH i2c: 01 00 00 A2 15 B7 [05:04:05]Write i2c OK [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: 01 [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: 01 07 00 [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: 01 07 00 A2 15 00 00 00 00 00 5D 0C 27 [05:04:05]RasterBufferAndPrint [05:04:05]line [05:04:05]line [05:04:05]line [05:04:05]line [05:04:05]line [05:04:05]written 0, free lines is 3168 [05:04:05]MH_Cut [05:04:05]Write to MH i2c: D1 01 00 A9 15 01 90 [05:04:05]Write i2c OK [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: D1 [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: D1 01 00 [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: D1 01 00 A9 15 00 8F [05:04:05]Write to MH i2c: 01 00 00 AA 15 BF [05:04:05]Write i2c OK [05:04:05]MH_I2C_Read... [05:04:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 73 3A 47 00 1A B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E0 02 00 F4 03 04 00 B1 2D 18 67 B6 04 01 00 00 62 04 22 65 C1 DF 17 BB [05:04:05]CommunicateWithHost err = 0 [05:04:05]CheckOFDResponse [05:04:05]1017 (14) - 77093643461234 [05:04:05]1041 (16) - 0000000000965340 [05:04:05]1040 (4) - 188573 [05:04:05]1012 (4) - 22.10.2024 22:56 [05:04:05]1206 (1) - 0 [05:04:05]OFD Sender: Remove packet 188573 [05:04:05]ProducePacketName [05:04:05]name=ofd_packets/00188573 [05:04:05]NVStorageDeleteData [05:04:06]OFD Sender: No OFD packet to send [05:04:06]*** Cut start [05:04:06]*** Partial cut [05:04:06]*** CUTSNS_PIN = 1 [05:04:06]*** CUTSNS_PIN = 0 [05:04:06]*** Brake cut motor [05:04:07]Read from MH i2c: 01 [05:04:07]MH_I2C_Read... [05:04:07]*** Stop cut motor [05:04:07]*** Cut end [05:04:07]Read from MH i2c: 01 07 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: 01 07 00 AA 15 00 00 00 00 00 FF 0F D4 [05:04:07]process_action close_receipt done [05:04:07]requested_data is exist [05:04:07]produce_requested_data [05:04:07]requested_item fm.sn is exist - process it [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 11 00 00 [05:04:07]Write to MH i2c: E2 08 00 AB 15 80 11 00 00 00 00 00 00 3A [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 17 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 17 00 AB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [05:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:04:07]wFMCommunicate OK [05:04:07]requested_item fd.num is exist - process it [05:04:07]SAM_PROTO_GetFieldsCounters [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 13 00 00 [05:04:07]Write to MH i2c: E2 08 00 AC 15 80 13 00 00 00 00 00 00 3D [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 62 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 62 00 AC 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [05:04:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:04:07]wFMCommunicate OK [05:04:07]SAM_PROTO_GetFieldsCounters done [05:04:07]requested_item shift.num is exist - process it [05:04:07]requested_item shift.opened is exist - process it [05:04:07]req_shift_opened [05:04:07]FM_GetShiftState [05:04:07]SAM_PROTO_GetShiftState [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 13 01 00 [05:04:07]Write to MH i2c: E2 08 00 AD 15 80 13 01 00 00 00 00 00 3F [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 0E 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 0E 00 AD 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 27 [05:04:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [05:04:07]wFMCommunicate OK [05:04:07]SAM_PROTO_GetShiftState done [05:04:07]FM_GetShiftState done [05:04:07]req_shift_opened done [05:04:07]requested_item shift.open_date is exist - process it [05:04:07]req_shift_open_date [05:04:07]req_shift_open_date done [05:04:07]produce_requested_data done [05:04:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188573,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [05:04:07]process_action_free close_receipt [05:04:07]json_value_free [05:04:07]json_value_free done [05:04:07]process_json_proto returns [05:04:07]Send response to host [05:04:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188573,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [05:04:07]free response buf [05:04:07]execute_script done [05:04:07]execute_script returns [05:04:07]free content buf [05:04:07]Sock 9.Close socket [05:04:07]Sock 9.Thread stoped [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:43]ConnectInit Can't connect to host [05:09:47]accept exits with 7 [05:09:47]New connection [05:09:47]New thread 3066649956 created [05:09:47]Thread 3066506596 joined [05:09:47]Waiting for new connection... [05:09:47] Sock 7.Parse request [05:09:47]Sock 7.Check first char [05:09:47]Sock 7.First char is OK [05:09:47]request: POST /json_proto HTTP/1.0 [05:09:47]Method: POST [05:09:47]URL: /json_proto [05:09:47]Method is POST - this is cgi request [05:09:47]url: /json_proto [05:09:47]query_string will be loaded in cgi processing [05:09:47]execute_cgi json_proto POST (null) [05:09:47]execute_cgi path=json_proto method=POST [05:09:47]POST find Content-Length [05:09:47]Host: 172.17.42.131:8080 [05:09:47]Content-Length: 682 [05:09:47]Content-Type: application/json [05:09:47] [05:09:47]POST finish read [05:09:47]Found Content-Length = 682 [05:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:47]execute_script... [05:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:47]POST & json_proto [05:09:47]process_json_proto [05:09:47]json parsed OK: [05:09:47]protocol is kg_v1.0 [05:09:47]action value=close_receipt [05:09:47]process_action close_receipt [05:09:47]cmd_close_receipt [05:09:47]MH_GetDate [05:09:47]Write to MH i2c: F0 00 00 AE 15 B2 [05:09:47]Write i2c OK [05:09:47]MH_I2C_Read... [05:09:47]Read from MH i2c: F0 [05:09:47]MH_I2C_Read... [05:09:47]Read from MH i2c: F0 09 00 [05:09:47]MH_I2C_Read... [05:09:47]Read from MH i2c: F0 09 00 AE 15 00 1D 85 18 67 A0 18 CA 66 C4 [05:09:47]GetLastDocTimeStamp 1729659845 [05:09:47]current date 1729660189 [05:09:47]FM_GetShiftState [05:09:47]SAM_PROTO_GetShiftState [05:09:47]wFMCommunicate request_size=4 [05:09:47]MH_SAM_APDU [05:09:47]CAPDU: 80 13 01 00 [05:09:47]Write to MH i2c: E2 08 00 AF 15 80 13 01 00 00 00 00 00 41 [05:09:47]Write i2c OK [05:09:47]MH_I2C_Read... [05:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:47]Read from MH i2c: E2 [05:09:47]MH_I2C_Read... [05:09:47]Read from MH i2c: E2 0E 00 [05:09:47]MH_I2C_Read... [05:09:47]Read from MH i2c: E2 0E 00 AF 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 29 [05:09:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [05:09:47]wFMCommunicate OK [05:09:47]SAM_PROTO_GetShiftState done [05:09:47]FM_GetShiftState done [05:09:47]opened in 1729642525 [05:09:47]opened+sec_in_day 1729728925 [05:09:47]quantity*price = 150056 [05:09:47]sum+1 = 150058 [05:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 32 23.10.2024 05:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188574 ФПД: 16348709824899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T050949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188574&fm=16348709824899&tin=02508201610067®Number=0000000000100030&sum=150000 [05:09:48]StoreToDocumentArchive [05:09:48]shift 462 fd 188574 [05:09:48]save to /storage/0462/doc_00188574 [05:09:48]save last doc name /storage/0462/doc_00188574 to /storage/kkm_last_doc_name [05:09:48]save OK [05:09:48]Clear old archive folders... [05:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:09:48]tlvbuf is 008FC470 [05:09:48]SAM_PROTO_ClearQueue [05:09:48]wFMCommunicate request_size=4 [05:09:48]MH_SAM_APDU [05:09:48]CAPDU: 80 09 00 00 [05:09:48]Write to MH i2c: E2 08 00 BC 15 80 09 00 00 00 00 00 00 43 [05:09:48]Write i2c OK [05:09:48]MH_I2C_Read... [05:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:09:48]Read from MH i2c: E2 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 03 00 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [05:09:48]RAPDU: 90 00 [05:09:48]wFMCommunicate OK [05:09:48]SAM_PROTO_ClearQueue done [05:09:48]KKMCreateOFDPacket [05:09:48]OFDProtocolAddRootSTLVToBuf [05:09:48]FM_MakeSignedData [05:09:48]FM_MakeSignedData [05:09:48]SAM_PROTO_SignData [05:09:48]wFMCommunicate request_size=4 [05:09:48]MH_SAM_APDU [05:09:48]CAPDU: 80 0D 01 02 [05:09:48]Write to MH i2c: E2 08 00 BD 15 80 0D 01 02 00 00 00 00 4B [05:09:48]Write i2c OK [05:09:48]MH_I2C_Read... [05:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:09:48]Read from MH i2c: E2 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 03 00 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [05:09:48]RAPDU: 90 00 [05:09:48]wFMCommunicate OK [05:09:48]wFMCommunicate request_size=255 [05:09:48]MH_SAM_APDU [05:09:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 1D 85 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E0 02 00 35 04 06 00 0E [05:09:48]Write to MH i2c: E2 02 01 BE 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 1D 85 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E0 02 00 35 04 06 00 0E 00 00 A5 [05:09:48]Write i2c OK [05:09:48]MH_I2C_Read... [05:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:48]Read from MH i2c: E2 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 03 00 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [05:09:48]RAPDU: 90 00 [05:09:48]wFMCommunicate OK [05:09:48]wFMCommunicate request_size=10 [05:09:48]MH_SAM_APDU [05:09:48]CAPDU: 80 0D 02 02 05 DE 7B 0A A9 83 [05:09:48]Write to MH i2c: E2 0D 00 BF 15 80 0D 02 02 05 00 DE 7B 0A A9 83 00 00 E7 [05:09:48]Write i2c OK [05:09:48]MH_I2C_Read... [05:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:48]Read from MH i2c: E2 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 03 00 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [05:09:48]RAPDU: 90 00 [05:09:48]wFMCommunicate OK [05:09:48]wFMCommunicate request_size=4 [05:09:48]MH_SAM_APDU [05:09:48]CAPDU: 80 0D 03 02 [05:09:48]Write to MH i2c: E2 08 00 C0 15 80 0D 03 02 00 00 00 00 50 [05:09:48]Write i2c OK [05:09:48]MH_I2C_Read... [05:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:09:48]Read from MH i2c: E2 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 0B 00 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 0B 00 C0 15 00 8C 5F C0 02 03 80 2E 35 90 00 E4 [05:09:48]RAPDU: 8C 5F C0 02 03 80 2E 35 90 00 [05:09:48]wFMCommunicate OK [05:09:48]SAM_PROTO_SignData done [05:09:48]FM_MakeSignedData done [05:09:48]CreateOFDProtocolMessage [05:09:48]wFMCommunicate request_size=4 [05:09:48]MH_SAM_APDU [05:09:48]CAPDU: 80 11 00 00 [05:09:48]Write to MH i2c: E2 08 00 C1 15 80 11 00 00 00 00 00 00 50 [05:09:48]Write i2c OK [05:09:48]MH_I2C_Read... [05:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:48]Read from MH i2c: E2 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 17 00 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: E2 17 00 C1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [05:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:09:48]wFMCommunicate OK [05:09:48]CreateOFDProtocolMessage done [05:09:48]OFDSenderStorePacket 188574 [05:09:48]StoreOFDPacket docnum=188574 [05:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 72 07 01 82 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 1D 85 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E0 02 00 35 04 06 00 0E DE 7B 0A A9 83 8C 5F C0 02 03 80 2E 35 [05:09:48]CheckFolder [05:09:48]dirname=/storage/ofd_packets [05:09:48]CheckFolder done [05:09:48]ProducePacketName [05:09:48]name=ofd_packets/00188574 [05:09:48]NVStorageSaveData ofd_packets/00188574 [05:09:48]File name is /storage/ofd_packets/00188574 [05:09:48]Write 301 bytes [05:09:48]NVStorageSaveData done [05:09:48]OFDSenderStorePacket done [05:09:48]KKMCreateOFDPacket done [05:09:48]NVStorageSaveData kkm_last_timestamp [05:09:48]File name is /storage/kkm_last_timestamp [05:09:48]Write 4 bytes [05:09:48]NVStorageSaveData done [05:09:48]ExternCall_PrintAddStr [05:09:48]wPrintStart [05:09:48]Write to MH i2c: 01 00 00 C2 15 D7 [05:09:48]Write i2c OK [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: 01 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: 01 07 00 [05:09:48]MH_I2C_Read... [05:09:48]Read from MH i2c: 01 07 00 C2 15 00 00 00 00 00 FF 0F EC [05:09:48]RasterBufferAndPrint [05:09:48]line Счет N : (1)210633 [05:09:48]line ИНН: 02508201610067 [05:09:48]line Контрольно-Кассовый Чек [05:09:48]line ПРОДАЖА [05:09:48]line ТРК (МРК, ГНК) : 32 [05:09:48]line Товар: 2710124130 [05:09:48]line Аи-92-К-3 [05:09:48]line 22.430 * 66.90 [05:09:48]line = 1500.57 [05:09:48]line НДС 12% НСП 1% [05:09:48]line > о реализуемом товаре [05:09:48]line ОКРУГЛЕНИЕ: -0.57 [05:09:48]line ИТОГО: 1500.00 [05:09:48]line Внесено: 1500.00 [05:09:48]line СДАЧА: 0.00 [05:09:48]line НСП 1% : 13.28 [05:09:48]line НДС 12% : 159.35 [05:09:48]line Наличными: 1500.00 [05:09:48]line Безнал.: 0.00 [05:09:48]line Место: АЗС № 86 "Партнер Нефть" [05:09:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:09:48]line СНО: Общий режим [05:09:48]line Чек 32 23.10.2024 05:09 [05:09:48]line Смена: 462 ФФД: 1.0 [05:09:48]line ЗНМ: 0300000155 [05:09:48]line РНМ: 0000000000100030 [05:09:48]line Версия ККМ: 001 [05:09:48]line ФМ: 0000000000965340 [05:09:48]line ФД: 188574 [05:09:48]line ФПД: 16348709824899 [05:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T050949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188574&fm=16348709824899&tin=02508201610067®Number=0000000000100030&sum=150000 [05:09:48]written 0, free lines is 4095 [05:09:49]OFD Sender: Processing packet 188574 [packets to send 1062, broken 1061] [05:09:49]ProducePacketName [05:09:49]name=ofd_packets/00188574 [05:09:49]OFD Sender: To server: pG, [05:09:49]CommunicateWithHost lk.salyk.kg:30040 [05:09:49]ConnectInit lk.salyk.kg [05:09:49]Connected sock=11 [05:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 72 07 01 82 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 1D 85 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E0 02 00 35 04 06 00 0E DE 7B 0A A9 83 8C 5F C0 02 03 80 2E 35 [05:09:49]Write to MH i2c: 01 00 00 ED 15 02 [05:09:49]Write i2c OK [05:09:49]MH_I2C_Read... [05:09:49]Read from MH i2c: 01 [05:09:49]MH_I2C_Read... [05:09:49]Read from MH i2c: 01 07 00 [05:09:49]MH_I2C_Read... [05:09:49]Read from MH i2c: 01 07 00 ED 15 00 00 00 00 00 67 0C 7C [05:09:49]RasterBufferAndPrint [05:09:49]line [05:09:49]line [05:09:49]line [05:09:49]line [05:09:49]line [05:09:49]written 0, free lines is 3178 [05:09:49]MH_Cut [05:09:49]Write to MH i2c: D1 01 00 F4 15 01 DB [05:09:49]Write i2c OK [05:09:49]MH_I2C_Read... [05:09:49]Read from MH i2c: D1 [05:09:49]MH_I2C_Read... [05:09:49]Read from MH i2c: D1 01 00 [05:09:49]MH_I2C_Read... [05:09:49]Read from MH i2c: D1 01 00 F4 15 00 DA [05:09:49]Write to MH i2c: 01 00 00 F5 15 0A [05:09:49]Write i2c OK [05:09:49]MH_I2C_Read... [05:09:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7A 09 47 00 B9 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 36 35 33 34 30 10 04 04 00 9E E0 02 00 F4 03 04 00 09 2F 18 67 B6 04 01 00 00 A9 0F D0 1F 81 52 70 DF [05:09:49]CommunicateWithHost err = 0 [05:09:49]CheckOFDResponse [05:09:49]1017 (14) - 77093643461234 [05:09:49]1041 (16) - 0000000000965340 [05:09:49]1040 (4) - 188574 [05:09:49]1012 (4) - 22.10.2024 23:02 [05:09:49]1206 (1) - 0 [05:09:49]OFD Sender: Remove packet 188574 [05:09:49]ProducePacketName [05:09:49]name=ofd_packets/00188574 [05:09:49]NVStorageDeleteData [05:09:50]OFD Sender: No OFD packet to send [05:09:50]*** Cut start [05:09:50]*** Partial cut [05:09:50]*** CUTSNS_PIN = 1 [05:09:50]*** CUTSNS_PIN = 0 [05:09:50]*** Brake cut motor [05:09:51]Read from MH i2c: 01 [05:09:51]MH_I2C_Read... [05:09:51]*** Stop cut motor [05:09:51]*** Cut end [05:09:51]Read from MH i2c: 01 07 00 [05:09:51]MH_I2C_Read... [05:09:51]Read from MH i2c: 01 07 00 F5 15 00 00 00 00 00 FF 0F 1F [05:09:51]process_action close_receipt done [05:09:51]requested_data is exist [05:09:51]produce_requested_data [05:09:51]requested_item fm.sn is exist - process it [05:09:51]wFMCommunicate request_size=4 [05:09:51]MH_SAM_APDU [05:09:51]CAPDU: 80 11 00 00 [05:09:51]Write to MH i2c: E2 08 00 F6 15 80 11 00 00 00 00 00 00 85 [05:09:51]Write i2c OK [05:09:51]MH_I2C_Read... [05:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:51]Read from MH i2c: E2 [05:09:51]MH_I2C_Read... [05:09:51]Read from MH i2c: E2 17 00 [05:09:51]MH_I2C_Read... [05:09:51]Read from MH i2c: E2 17 00 F6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [05:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:09:51]wFMCommunicate OK [05:09:51]requested_item fd.num is exist - process it [05:09:51]SAM_PROTO_GetFieldsCounters [05:09:51]wFMCommunicate request_size=4 [05:09:51]MH_SAM_APDU [05:09:51]CAPDU: 80 13 00 00 [05:09:51]Write to MH i2c: E2 08 00 F7 15 80 13 00 00 00 00 00 00 88 [05:09:51]Write i2c OK [05:09:51]MH_I2C_Read... [05:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:09:51]Read from MH i2c: E2 [05:09:51]MH_I2C_Read... [05:09:51]Read from MH i2c: E2 62 00 [05:09:51]MH_I2C_Read... [05:09:51]Read from MH i2c: E2 62 00 F7 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [05:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:09:51]wFMCommunicate OK [05:09:51]SAM_PROTO_GetFieldsCounters done [05:09:51]requested_item shift.num is exist - process it [05:09:51]requested_item shift.opened is exist - process it [05:09:51]req_shift_opened [05:09:51]FM_GetShiftState [05:09:51]SAM_PROTO_GetShiftState [05:09:51]wFMCommunicate request_size=4 [05:09:51]MH_SAM_APDU [05:09:51]CAPDU: 80 13 01 00 [05:09:51]Write to MH i2c: E2 08 00 F8 15 80 13 01 00 00 00 00 00 8A [05:09:51]Write i2c OK [05:09:51]MH_I2C_Read... [05:09:51]Read from MH i2c: E2 [05:09:51]MH_I2C_Read... [05:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:51]Read from MH i2c: E2 0E 00 [05:09:51]MH_I2C_Read... [05:09:51]Read from MH i2c: E2 0E 00 F8 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 72 [05:09:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [05:09:51]wFMCommunicate OK [05:09:51]SAM_PROTO_GetShiftState done [05:09:51]FM_GetShiftState done [05:09:51]req_shift_opened done [05:09:51]requested_item shift.open_date is exist - process it [05:09:51]req_shift_open_date [05:09:51]req_shift_open_date done [05:09:51]produce_requested_data done [05:09:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188574,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [05:09:51]process_action_free close_receipt [05:09:51]json_value_free [05:09:51]json_value_free done [05:09:51]process_json_proto returns [05:09:51]Send response to host [05:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188574,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [05:09:51]free response buf [05:09:51]execute_script done [05:09:51]execute_script returns [05:09:51]free content buf [05:09:51]Sock 7.Close socket [05:09:51]Sock 7.Thread stoped [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]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:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]accept exits with 9 [05:35:26]New connection [05:35:26]New thread 3066506596 created [05:35:26]Thread 3066649956 joined [05:35:26]Waiting for new connection... [05:35:26] Sock 9.Parse request [05:35:26]Sock 9.Check first char [05:35:26]Sock 9.First char is OK [05:35:26]request: POST /json_proto HTTP/1.0 [05:35:26]Method: POST [05:35:26]URL: /json_proto [05:35:26]Method is POST - this is cgi request [05:35:26]url: /json_proto [05:35:26]query_string will be loaded in cgi processing [05:35:26]execute_cgi json_proto POST (null) [05:35:26]execute_cgi path=json_proto method=POST [05:35:26]POST find Content-Length [05:35:26]Host: 172.17.42.131:8080 [05:35:26]Content-Length: 682 [05:35:26]Content-Type: application/json [05:35:26] [05:35:26]POST finish read [05:35:26]Found Content-Length = 682 [05:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:35:26]execute_script... [05:35:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:35:26]POST & json_proto [05:35:26]process_json_proto [05:35:26]json parsed OK: [05:35:26]protocol is kg_v1.0 [05:35:26]action value=close_receipt [05:35:26]process_action close_receipt [05:35:26]cmd_close_receipt [05:35:26]MH_GetDate [05:35:26]Write to MH i2c: F0 00 00 F9 15 FD [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: F0 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: F0 09 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: F0 09 00 F9 15 00 20 8B 18 67 A0 18 CA 66 18 [05:35:26]GetLastDocTimeStamp 1729660189 [05:35:26]current date 1729661728 [05:35:26]FM_GetShiftState [05:35:26]SAM_PROTO_GetShiftState [05:35:26]wFMCommunicate request_size=4 [05:35:26]MH_SAM_APDU [05:35:26]CAPDU: 80 13 01 00 [05:35:26]Write to MH i2c: E2 08 00 FA 15 80 13 01 00 00 00 00 00 8C [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:26]Read from MH i2c: E2 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 0E 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 0E 00 FA 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 74 [05:35:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [05:35:26]wFMCommunicate OK [05:35:26]SAM_PROTO_GetShiftState done [05:35:26]FM_GetShiftState done [05:35:26]opened in 1729642525 [05:35:26]opened+sec_in_day 1729728925 [05:35:26]quantity*price = 150032 [05:35:26]sum+1 = 150033 [05:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 33 23.10.2024 05:35 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188575 ФПД: 260079142668881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T053528&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188575&fm=260079142668881&tin=02508201610067®Number=0000000000100030&sum=150000 [05:35:27]StoreToDocumentArchive [05:35:27]shift 462 fd 188575 [05:35:27]save to /storage/0462/doc_00188575 [05:35:27]save last doc name /storage/0462/doc_00188575 to /storage/kkm_last_doc_name [05:35:27]save OK [05:35:27]Clear old archive folders... [05:35:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:35:27]tlvbuf is 008E49C0 [05:35:27]SAM_PROTO_ClearQueue [05:35:27]wFMCommunicate request_size=4 [05:35:27]MH_SAM_APDU [05:35:27]CAPDU: 80 09 00 00 [05:35:27]Write to MH i2c: E2 08 00 07 16 80 09 00 00 00 00 00 00 8F [05:35:27]Write i2c OK [05:35:27]MH_I2C_Read... [05:35:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:35:27]Read from MH i2c: E2 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 03 00 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [05:35:27]RAPDU: 90 00 [05:35:27]wFMCommunicate OK [05:35:27]SAM_PROTO_ClearQueue done [05:35:27]KKMCreateOFDPacket [05:35:27]OFDProtocolAddRootSTLVToBuf [05:35:27]FM_MakeSignedData [05:35:27]FM_MakeSignedData [05:35:27]SAM_PROTO_SignData [05:35:27]wFMCommunicate request_size=4 [05:35:27]MH_SAM_APDU [05:35:27]CAPDU: 80 0D 01 02 [05:35:27]Write to MH i2c: E2 08 00 08 16 80 0D 01 02 00 00 00 00 97 [05:35:27]Write i2c OK [05:35:27]MH_I2C_Read... [05:35:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:35:27]Read from MH i2c: E2 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 03 00 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 03 00 08 16 00 90 00 92 [05:35:27]RAPDU: 90 00 [05:35:27]wFMCommunicate OK [05:35:27]wFMCommunicate request_size=255 [05:35:27]MH_SAM_APDU [05:35:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 20 8B 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E0 02 00 35 04 06 00 EC [05:35:27]Write to MH i2c: E2 02 01 09 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 20 8B 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E0 02 00 35 04 06 00 EC 00 00 F4 [05:35:27]Write i2c OK [05:35:27]MH_I2C_Read... [05:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:27]Read from MH i2c: E2 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 03 00 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [05:35:27]RAPDU: 90 00 [05:35:27]wFMCommunicate OK [05:35:27]wFMCommunicate request_size=10 [05:35:27]MH_SAM_APDU [05:35:27]CAPDU: 80 0D 02 02 05 8A 64 E9 8A 51 [05:35:27]Write to MH i2c: E2 0D 00 0A 16 80 0D 02 02 05 00 8A 64 E9 8A 51 00 00 56 [05:35:27]Write i2c OK [05:35:27]MH_I2C_Read... [05:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:27]Read from MH i2c: E2 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 03 00 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [05:35:27]RAPDU: 90 00 [05:35:27]wFMCommunicate OK [05:35:27]wFMCommunicate request_size=4 [05:35:27]MH_SAM_APDU [05:35:27]CAPDU: 80 0D 03 02 [05:35:27]Write to MH i2c: E2 08 00 0B 16 80 0D 03 02 00 00 00 00 9C [05:35:27]Write i2c OK [05:35:27]MH_I2C_Read... [05:35:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:35:27]Read from MH i2c: E2 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 0B 00 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 0B 00 0B 16 00 D6 3F D3 51 6D 17 74 AE 90 00 7C [05:35:27]RAPDU: D6 3F D3 51 6D 17 74 AE 90 00 [05:35:27]wFMCommunicate OK [05:35:27]SAM_PROTO_SignData done [05:35:27]FM_MakeSignedData done [05:35:27]CreateOFDProtocolMessage [05:35:27]wFMCommunicate request_size=4 [05:35:27]MH_SAM_APDU [05:35:27]CAPDU: 80 11 00 00 [05:35:27]Write to MH i2c: E2 08 00 0C 16 80 11 00 00 00 00 00 00 9C [05:35:27]Write i2c OK [05:35:27]MH_I2C_Read... [05:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:27]Read from MH i2c: E2 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 17 00 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: E2 17 00 0C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [05:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:35:27]wFMCommunicate OK [05:35:27]CreateOFDProtocolMessage done [05:35:27]OFDSenderStorePacket 188575 [05:35:27]StoreOFDPacket docnum=188575 [05:35:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E DA 07 01 D6 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 20 8B 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E0 02 00 35 04 06 00 EC 8A 64 E9 8A 51 D6 3F D3 51 6D 17 74 AE [05:35:27]CheckFolder [05:35:27]dirname=/storage/ofd_packets [05:35:27]CheckFolder done [05:35:27]ProducePacketName [05:35:27]name=ofd_packets/00188575 [05:35:27]NVStorageSaveData ofd_packets/00188575 [05:35:27]File name is /storage/ofd_packets/00188575 [05:35:27]Write 301 bytes [05:35:27]NVStorageSaveData done [05:35:27]OFDSenderStorePacket done [05:35:27]KKMCreateOFDPacket done [05:35:27]NVStorageSaveData kkm_last_timestamp [05:35:27]File name is /storage/kkm_last_timestamp [05:35:27]Write 4 bytes [05:35:27]NVStorageSaveData done [05:35:27]ExternCall_PrintAddStr [05:35:27]wPrintStart [05:35:27]Write to MH i2c: 01 00 00 0D 16 23 [05:35:27]Write i2c OK [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: 01 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: 01 07 00 [05:35:27]MH_I2C_Read... [05:35:27]Read from MH i2c: 01 07 00 0D 16 00 00 00 00 00 FF 0F 38 [05:35:27]RasterBufferAndPrint [05:35:27]line Счет N : (1)210635 [05:35:27]line ИНН: 02508201610067 [05:35:27]line Контрольно-Кассовый Чек [05:35:27]line ПРОДАЖА [05:35:27]line ТРК (МРК, ГНК) : 33 [05:35:27]line Товар: 2710124500 [05:35:27]line Аи-95-К-3 [05:35:27]line 20.220 * 74.20 [05:35:27]line = 1500.32 [05:35:27]line НДС 12% НСП 1% [05:35:27]line > о реализуемом товаре [05:35:27]line ОКРУГЛЕНИЕ: -0.32 [05:35:27]line ИТОГО: 1500.00 [05:35:27]line Внесено: 1500.00 [05:35:27]line СДАЧА: 0.00 [05:35:27]line НСП 1% : 13.28 [05:35:27]line НДС 12% : 159.33 [05:35:27]line Наличными: 1500.00 [05:35:27]line Безнал.: 0.00 [05:35:27]line Место: АЗС № 86 "Партнер Нефть" [05:35:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:35:27]line СНО: Общий режим [05:35:27]line Чек 33 23.10.2024 05:35 [05:35:27]line Смена: 462 ФФД: 1.0 [05:35:27]line ЗНМ: 0300000155 [05:35:27]line РНМ: 0000000000100030 [05:35:27]line Версия ККМ: 001 [05:35:27]line ФМ: 0000000000965340 [05:35:27]line ФД: 188575 [05:35:27]line ФПД: 260079142668881 [05:35:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T053528&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188575&fm=260079142668881&tin=02508201610067®Number=0000000000100030&sum=150000 [05:35:27]written 0, free lines is 4095 [05:35:27]OFD Sender: Processing packet 188575 [packets to send 1062, broken 1061] [05:35:27]ProducePacketName [05:35:27]name=ofd_packets/00188575 [05:35:27]OFD Sender: To server: pG, [05:35:27]CommunicateWithHost lk.salyk.kg:30040 [05:35:27]ConnectInit lk.salyk.kg [05:35:28]Connected sock=11 [05:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E DA 07 01 D6 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 20 8B 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E0 02 00 35 04 06 00 EC 8A 64 E9 8A 51 D6 3F D3 51 6D 17 74 AE [05:35:28]Write to MH i2c: 01 00 00 38 16 4E [05:35:28]Write i2c OK [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: 01 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: 01 07 00 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: 01 07 00 38 16 00 00 00 00 00 58 0C B9 [05:35:28]RasterBufferAndPrint [05:35:28]line [05:35:28]line [05:35:28]line [05:35:28]line [05:35:28]line [05:35:28]written 0, free lines is 3163 [05:35:28]MH_Cut [05:35:28]Write to MH i2c: D1 01 00 3F 16 01 27 [05:35:28]Write i2c OK [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: D1 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: D1 01 00 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: D1 01 00 3F 16 00 26 [05:35:28]Write to MH i2c: 01 00 00 40 16 56 [05:35:28]Write i2c OK [05:35:28]MH_I2C_Read... [05:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BB CE 47 00 AA 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E0 02 00 F4 03 04 00 0B 35 18 67 B6 04 01 00 00 75 DE FD BD 5F 42 4D BE [05:35:28]CommunicateWithHost err = 0 [05:35:28]CheckOFDResponse [05:35:28]1017 (14) - 77093643461234 [05:35:28]1041 (16) - 0000000000965340 [05:35:28]1040 (4) - 188575 [05:35:28]1012 (4) - 22.10.2024 23:28 [05:35:28]1206 (1) - 0 [05:35:28]OFD Sender: Remove packet 188575 [05:35:28]ProducePacketName [05:35:28]name=ofd_packets/00188575 [05:35:28]NVStorageDeleteData [05:35:28]OFD Sender: No OFD packet to send [05:35:29]*** Cut start [05:35:29]*** Partial cut [05:35:29]*** CUTSNS_PIN = 1 [05:35:29]*** CUTSNS_PIN = 0 [05:35:29]*** Brake cut motor [05:35:30]Read from MH i2c: 01 [05:35:30]MH_I2C_Read... [05:35:30]*** Stop cut motor [05:35:30]*** Cut end [05:35:30]Read from MH i2c: 01 07 00 [05:35:30]MH_I2C_Read... [05:35:30]Read from MH i2c: 01 07 00 40 16 00 00 00 00 00 FF 0F 6B [05:35:30]process_action close_receipt done [05:35:30]requested_data is exist [05:35:30]produce_requested_data [05:35:30]requested_item fm.sn is exist - process it [05:35:30]wFMCommunicate request_size=4 [05:35:30]MH_SAM_APDU [05:35:30]CAPDU: 80 11 00 00 [05:35:30]Write to MH i2c: E2 08 00 41 16 80 11 00 00 00 00 00 00 D1 [05:35:30]Write i2c OK [05:35:30]MH_I2C_Read... [05:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:30]Read from MH i2c: E2 [05:35:30]MH_I2C_Read... [05:35:30]Read from MH i2c: E2 17 00 [05:35:30]MH_I2C_Read... [05:35:30]Read from MH i2c: E2 17 00 41 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [05:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:35:30]wFMCommunicate OK [05:35:30]requested_item fd.num is exist - process it [05:35:30]SAM_PROTO_GetFieldsCounters [05:35:30]wFMCommunicate request_size=4 [05:35:30]MH_SAM_APDU [05:35:30]CAPDU: 80 13 00 00 [05:35:30]Write to MH i2c: E2 08 00 42 16 80 13 00 00 00 00 00 00 D4 [05:35:30]Write i2c OK [05:35:30]MH_I2C_Read... [05:35:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:35:30]Read from MH i2c: E2 [05:35:30]MH_I2C_Read... [05:35:30]Read from MH i2c: E2 62 00 [05:35:30]MH_I2C_Read... [05:35:30]Read from MH i2c: E2 62 00 42 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [05:35:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:35:30]wFMCommunicate OK [05:35:30]SAM_PROTO_GetFieldsCounters done [05:35:30]requested_item shift.num is exist - process it [05:35:30]requested_item shift.opened is exist - process it [05:35:30]req_shift_opened [05:35:30]FM_GetShiftState [05:35:30]SAM_PROTO_GetShiftState [05:35:30]wFMCommunicate request_size=4 [05:35:30]MH_SAM_APDU [05:35:30]CAPDU: 80 13 01 00 [05:35:30]Write to MH i2c: E2 08 00 43 16 80 13 01 00 00 00 00 00 D6 [05:35:30]Write i2c OK [05:35:30]MH_I2C_Read... [05:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:30]Read from MH i2c: E2 [05:35:30]MH_I2C_Read... [05:35:30]Read from MH i2c: E2 0E 00 [05:35:30]MH_I2C_Read... [05:35:30]Read from MH i2c: E2 0E 00 43 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BE [05:35:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [05:35:30]wFMCommunicate OK [05:35:30]SAM_PROTO_GetShiftState done [05:35:30]FM_GetShiftState done [05:35:30]req_shift_opened done [05:35:30]requested_item shift.open_date is exist - process it [05:35:30]req_shift_open_date [05:35:30]req_shift_open_date done [05:35:30]produce_requested_data done [05:35:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188575,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [05:35:30]process_action_free close_receipt [05:35:30]json_value_free [05:35:30]json_value_free done [05:35:30]process_json_proto returns [05:35:30]Send response to host [05:35:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188575,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [05:35:30]free response buf [05:35:30]execute_script done [05:35:30]execute_script returns [05:35:30]free content buf [05:35:30]Sock 9.Close socket [05:35:30]Sock 9.Thread stoped [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39: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:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02: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:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:52]accept exits with 7 [06:22:52]New connection [06:22:52]New thread 3066649956 created [06:22:52]Thread 3066506596 joined [06:22:52]Waiting for new connection... [06:22:52] Sock 7.Parse request [06:22:52]Sock 7.Check first char [06:22:52]Sock 7.First char is OK [06:22:52]request: POST /json_proto HTTP/1.0 [06:22:52]Method: POST [06:22:52]URL: /json_proto [06:22:52]Method is POST - this is cgi request [06:22:52]url: /json_proto [06:22:52]query_string will be loaded in cgi processing [06:22:52]execute_cgi json_proto POST (null) [06:22:52]execute_cgi path=json_proto method=POST [06:22:52]POST find Content-Length [06:22:52]Host: 172.17.42.131:8080 [06:22:52]Content-Length: 688 [06:22:52]Content-Type: application/json [06:22:52] [06:22:52]POST finish read [06:22:52]Found Content-Length = 688 [06:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:52]execute_script... [06:22:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:52]POST & json_proto [06:22:52]process_json_proto [06:22:52]json parsed OK: [06:22:52]protocol is kg_v1.0 [06:22:52]action value=close_receipt [06:22:52]process_action close_receipt [06:22:52]cmd_close_receipt [06:22:52]MH_GetDate [06:22:52]Write to MH i2c: F0 00 00 44 16 49 [06:22:52]Write i2c OK [06:22:52]MH_I2C_Read... [06:22:52]Read from MH i2c: F0 [06:22:52]MH_I2C_Read... [06:22:52]Read from MH i2c: F0 09 00 [06:22:52]MH_I2C_Read... [06:22:52]Read from MH i2c: F0 09 00 44 16 00 3F 96 18 67 A0 18 CA 66 8E [06:22:52]GetLastDocTimeStamp 1729661728 [06:22:52]current date 1729664575 [06:22:52]FM_GetShiftState [06:22:52]SAM_PROTO_GetShiftState [06:22:52]wFMCommunicate request_size=4 [06:22:52]MH_SAM_APDU [06:22:52]CAPDU: 80 13 01 00 [06:22:52]Write to MH i2c: E2 08 00 45 16 80 13 01 00 00 00 00 00 D8 [06:22:52]Write i2c OK [06:22:52]MH_I2C_Read... [06:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:52]Read from MH i2c: E2 [06:22:52]MH_I2C_Read... [06:22:52]Read from MH i2c: E2 0E 00 [06:22:52]MH_I2C_Read... [06:22:52]Read from MH i2c: E2 0E 00 45 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C0 [06:22:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [06:22:52]wFMCommunicate OK [06:22:52]SAM_PROTO_GetShiftState done [06:22:52]FM_GetShiftState done [06:22:52]opened in 1729642525 [06:22:52]opened+sec_in_day 1729728925 [06:22:52]quantity*price = 200025 [06:22:52]sum+1 = 200026 [06:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 34 23.10.2024 06:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188576 ФПД: 266342268601119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T062255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188576&fm=266342268601119&tin=02508201610067®Number=0000000000100030&sum=200000 [06:22:53]StoreToDocumentArchive [06:22:53]shift 462 fd 188576 [06:22:53]save to /storage/0462/doc_00188576 [06:22:53]save last doc name /storage/0462/doc_00188576 to /storage/kkm_last_doc_name [06:22:53]save OK [06:22:53]Clear old archive folders... [06:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:22:53]tlvbuf is 0092C9A0 [06:22:53]SAM_PROTO_ClearQueue [06:22:53]wFMCommunicate request_size=4 [06:22:53]MH_SAM_APDU [06:22:53]CAPDU: 80 09 00 00 [06:22:53]Write to MH i2c: E2 08 00 52 16 80 09 00 00 00 00 00 00 DA [06:22:53]Write i2c OK [06:22:53]MH_I2C_Read... [06:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:22:54]Read from MH i2c: E2 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 52 16 00 90 00 DC [06:22:54]RAPDU: 90 00 [06:22:54]wFMCommunicate OK [06:22:54]SAM_PROTO_ClearQueue done [06:22:54]KKMCreateOFDPacket [06:22:54]OFDProtocolAddRootSTLVToBuf [06:22:54]FM_MakeSignedData [06:22:54]FM_MakeSignedData [06:22:54]SAM_PROTO_SignData [06:22:54]wFMCommunicate request_size=4 [06:22:54]MH_SAM_APDU [06:22:54]CAPDU: 80 0D 01 02 [06:22:54]Write to MH i2c: E2 08 00 53 16 80 0D 01 02 00 00 00 00 E2 [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:22:54]Read from MH i2c: E2 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 53 16 00 90 00 DD [06:22:54]RAPDU: 90 00 [06:22:54]wFMCommunicate OK [06:22:54]wFMCommunicate request_size=255 [06:22:54]MH_SAM_APDU [06:22:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F 96 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E0 02 [06:22:54]Write to MH i2c: E2 02 01 54 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F 96 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E0 02 00 00 4A [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:54]Read from MH i2c: E2 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 54 16 00 90 00 DE [06:22:54]RAPDU: 90 00 [06:22:54]wFMCommunicate OK [06:22:54]wFMCommunicate request_size=16 [06:22:54]MH_SAM_APDU [06:22:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F2 3C A4 4F 03 1F [06:22:54]Write to MH i2c: E2 13 00 55 16 80 0D 02 02 0B 00 00 35 04 06 00 F2 3C A4 4F 03 1F 00 00 7D [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:54]Read from MH i2c: E2 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 55 16 00 90 00 DF [06:22:54]RAPDU: 90 00 [06:22:54]wFMCommunicate OK [06:22:54]wFMCommunicate request_size=4 [06:22:54]MH_SAM_APDU [06:22:54]CAPDU: 80 0D 03 02 [06:22:54]Write to MH i2c: E2 08 00 56 16 80 0D 03 02 00 00 00 00 E7 [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:22:54]Read from MH i2c: E2 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 0B 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 0B 00 56 16 00 B9 53 6A 7E 6E 7E ED 9E 90 00 53 [06:22:54]RAPDU: B9 53 6A 7E 6E 7E ED 9E 90 00 [06:22:54]wFMCommunicate OK [06:22:54]SAM_PROTO_SignData done [06:22:54]FM_MakeSignedData done [06:22:54]CreateOFDProtocolMessage [06:22:54]wFMCommunicate request_size=4 [06:22:54]MH_SAM_APDU [06:22:54]CAPDU: 80 11 00 00 [06:22:54]Write to MH i2c: E2 08 00 57 16 80 11 00 00 00 00 00 00 E7 [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:54]Read from MH i2c: E2 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 17 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 17 00 57 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [06:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:22:54]wFMCommunicate OK [06:22:54]CreateOFDProtocolMessage done [06:22:54]OFDSenderStorePacket 188576 [06:22:54]StoreOFDPacket docnum=188576 [06:22:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9F C0 0D 01 24 6D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F 96 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E0 02 00 35 04 06 00 F2 3C A4 4F 03 1F B9 53 6A 7E 6E 7E ED 9E [06:22:54]CheckFolder [06:22:54]dirname=/storage/ofd_packets [06:22:54]CheckFolder done [06:22:54]ProducePacketName [06:22:54]name=ofd_packets/00188576 [06:22:54]NVStorageSaveData ofd_packets/00188576 [06:22:54]File name is /storage/ofd_packets/00188576 [06:22:54]Write 307 bytes [06:22:54]NVStorageSaveData done [06:22:54]OFDSenderStorePacket done [06:22:54]KKMCreateOFDPacket done [06:22:54]NVStorageSaveData kkm_last_timestamp [06:22:54]File name is /storage/kkm_last_timestamp [06:22:54]Write 4 bytes [06:22:54]NVStorageSaveData done [06:22:54]ExternCall_PrintAddStr [06:22:54]wPrintStart [06:22:54]Write to MH i2c: 01 00 00 58 16 6E [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: 01 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: 01 07 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: 01 07 00 58 16 00 00 00 00 00 FF 0F 83 [06:22:54]RasterBufferAndPrint [06:22:54]line Счет N : (1)210637 [06:22:54]line ИНН: 02508201610067 [06:22:54]line Контрольно-Кассовый Чек [06:22:54]line ПРОДАЖА [06:22:54]line ТРК (МРК, ГНК) : 31 [06:22:54]line Товар: 2710194210 [06:22:54]line D-ENERGY ДТ-К-5 [06:22:54]line 25.910 * 77.20 [06:22:54]line = 2000.25 [06:22:54]line НДС 12% НСП 1% [06:22:54]line > о реализуемом товаре [06:22:54]line ОКРУГЛЕНИЕ: -0.25 [06:22:54]line ИТОГО: 2000.00 [06:22:54]line Внесено: 2000.00 [06:22:54]line СДАЧА: 0.00 [06:22:54]line НСП 1% : 17.70 [06:22:54]line НДС 12% : 212.42 [06:22:54]line Наличными: 2000.00 [06:22:54]line Безнал.: 0.00 [06:22:54]line Место: АЗС № 86 "Партнер Нефть" [06:22:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:22:54]line СНО: Общий режим [06:22:54]line Чек 34 23.10.2024 06:22 [06:22:54]line Смена: 462 ФФД: 1.0 [06:22:54]line ЗНМ: 0300000155 [06:22:54]line РНМ: 0000000000100030 [06:22:54]line Версия ККМ: 001 [06:22:54]line ФМ: 0000000000965340 [06:22:54]line ФД: 188576 [06:22:54]line ФПД: 266342268601119 [06:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T062255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188576&fm=266342268601119&tin=02508201610067®Number=0000000000100030&sum=200000 [06:22:54]written 0, free lines is 4095 [06:22:54]OFD Sender: Processing packet 188576 [packets to send 1062, broken 1061] [06:22:54]ProducePacketName [06:22:54]name=ofd_packets/00188576 [06:22:54]OFD Sender: To server: pG, [06:22:54]CommunicateWithHost lk.salyk.kg:30040 [06:22:54]ConnectInit lk.salyk.kg [06:22:55]Write to MH i2c: 01 00 00 83 16 99 [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 07 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 07 00 83 16 00 00 00 00 00 54 0C 00 [06:22:55]RasterBufferAndPrint [06:22:55]line [06:22:55]line [06:22:55]line [06:22:55]line [06:22:55]line [06:22:55]written 0, free lines is 3160 [06:22:55]MH_Cut [06:22:55]Write to MH i2c: D1 01 00 8A 16 01 72 [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: D1 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: D1 01 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: D1 01 00 8A 16 00 71 [06:22:55]Write to MH i2c: 01 00 00 8B 16 A1 [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]Connected sock=10 [06:22:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9F C0 0D 01 24 6D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F 96 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E0 02 00 35 04 06 00 F2 3C A4 4F 03 1F B9 53 6A 7E 6E 7E ED 9E [06:22:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 11 6D 47 00 29 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 36 35 33 34 30 10 04 04 00 A0 E0 02 00 F4 03 04 00 2B 40 18 67 B6 04 01 00 00 71 F7 B4 76 EB 74 DF B2 [06:22:55]CommunicateWithHost err = 0 [06:22:55]CheckOFDResponse [06:22:55]1017 (14) - 77093643461234 [06:22:55]1041 (16) - 0000000000965340 [06:22:55]1040 (4) - 188576 [06:22:55]1012 (4) - 23.10.2024 00:15 [06:22:55]1206 (1) - 0 [06:22:55]OFD Sender: Remove packet 188576 [06:22:55]ProducePacketName [06:22:55]name=ofd_packets/00188576 [06:22:55]NVStorageDeleteData [06:22:55]OFD Sender: No OFD packet to send [06:22:56]*** Cut start [06:22:56]*** Partial cut [06:22:56]*** CUTSNS_PIN = 1 [06:22:56]*** CUTSNS_PIN = 0 [06:22:56]*** Brake cut motor [06:22:56]Read from MH i2c: 01 [06:22:56]MH_I2C_Read... [06:22:56]*** Stop cut motor [06:22:56]*** Cut end [06:22:56]Read from MH i2c: 01 07 00 [06:22:56]MH_I2C_Read... [06:22:56]Read from MH i2c: 01 07 00 8B 16 00 00 00 00 00 FF 0F B6 [06:22:56]process_action close_receipt done [06:22:56]requested_data is exist [06:22:56]produce_requested_data [06:22:56]requested_item fm.sn is exist - process it [06:22:56]wFMCommunicate request_size=4 [06:22:56]MH_SAM_APDU [06:22:56]CAPDU: 80 11 00 00 [06:22:56]Write to MH i2c: E2 08 00 8C 16 80 11 00 00 00 00 00 00 1C [06:22:56]Write i2c OK [06:22:56]MH_I2C_Read... [06:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:57]Read from MH i2c: E2 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 17 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 17 00 8C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [06:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:22:57]wFMCommunicate OK [06:22:57]requested_item fd.num is exist - process it [06:22:57]SAM_PROTO_GetFieldsCounters [06:22:57]wFMCommunicate request_size=4 [06:22:57]MH_SAM_APDU [06:22:57]CAPDU: 80 13 00 00 [06:22:57]Write to MH i2c: E2 08 00 8D 16 80 13 00 00 00 00 00 00 1F [06:22:57]Write i2c OK [06:22:57]MH_I2C_Read... [06:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:22:57]Read from MH i2c: E2 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 62 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 62 00 8D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [06:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:22:57]wFMCommunicate OK [06:22:57]SAM_PROTO_GetFieldsCounters done [06:22:57]requested_item shift.num is exist - process it [06:22:57]requested_item shift.opened is exist - process it [06:22:57]req_shift_opened [06:22:57]FM_GetShiftState [06:22:57]SAM_PROTO_GetShiftState [06:22:57]wFMCommunicate request_size=4 [06:22:57]MH_SAM_APDU [06:22:57]CAPDU: 80 13 01 00 [06:22:57]Write to MH i2c: E2 08 00 8E 16 80 13 01 00 00 00 00 00 21 [06:22:57]Write i2c OK [06:22:57]MH_I2C_Read... [06:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:57]Read from MH i2c: E2 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 0E 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 0E 00 8E 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 09 [06:22:57]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [06:22:57]wFMCommunicate OK [06:22:57]SAM_PROTO_GetShiftState done [06:22:57]FM_GetShiftState done [06:22:57]req_shift_opened done [06:22:57]requested_item shift.open_date is exist - process it [06:22:57]req_shift_open_date [06:22:57]req_shift_open_date done [06:22:57]produce_requested_data done [06:22:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188576,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [06:22:57]process_action_free close_receipt [06:22:57]json_value_free [06:22:57]json_value_free done [06:22:57]process_json_proto returns [06:22:57]Send response to host [06:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188576,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [06:22:57]free response buf [06:22:57]execute_script done [06:22:57]execute_script returns [06:22:57]free content buf [06:22:57]Sock 7.Close socket [06:22:57]Sock 7.Thread stoped [06:23:00]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:11]accept exits with 9 [06:23:11]New connection [06:23:11]New thread 3066506596 created [06:23:11]Thread 3066649956 joined [06:23:11]Waiting for new connection... [06:23:11] Sock 9.Parse request [06:23:11]Sock 9.Check first char [06:23:11]Sock 9.First char is OK [06:23:11]request: POST /json_proto HTTP/1.0 [06:23:11]Method: POST [06:23:11]URL: /json_proto [06:23:11]Method is POST - this is cgi request [06:23:11]url: /json_proto [06:23:11]query_string will be loaded in cgi processing [06:23:11]execute_cgi json_proto POST (null) [06:23:11]execute_cgi path=json_proto method=POST [06:23:11]POST find Content-Length [06:23:11]Host: 172.17.42.131:8080 [06:23:11]Content-Length: 767 [06:23:11]Content-Type: application/json [06:23:11] [06:23:11]POST finish read [06:23:11]Found Content-Length = 767 [06:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:11]execute_script... [06:23:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:11]POST & json_proto [06:23:11]process_json_proto [06:23:11]json parsed OK: [06:23:11]protocol is kg_v1.0 [06:23:11]action value=close_receipt [06:23:11]process_action close_receipt [06:23:11]cmd_close_receipt [06:23:11]MH_GetDate [06:23:11]Write to MH i2c: F0 00 00 8F 16 94 [06:23:11]Write i2c OK [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: F0 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: F0 09 00 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: F0 09 00 8F 16 00 52 96 18 67 A0 18 CA 66 EC [06:23:11]GetLastDocTimeStamp 1729664575 [06:23:11]current date 1729664594 [06:23:11]FM_GetShiftState [06:23:11]SAM_PROTO_GetShiftState [06:23:11]wFMCommunicate request_size=4 [06:23:11]MH_SAM_APDU [06:23:11]CAPDU: 80 13 01 00 [06:23:11]Write to MH i2c: E2 08 00 90 16 80 13 01 00 00 00 00 00 23 [06:23:11]Write i2c OK [06:23:11]MH_I2C_Read... [06:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:11]Read from MH i2c: E2 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: E2 0E 00 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: E2 0E 00 90 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0B [06:23:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [06:23:11]wFMCommunicate OK [06:23:11]SAM_PROTO_GetShiftState done [06:23:11]FM_GetShiftState done [06:23:11]opened in 1729642525 [06:23:11]opened+sec_in_day 1729728925 [06:23:11]quantity*price = 800023 [06:23:11]sum+1 = 800025 [06:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8000.24 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.24 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 35 23.10.2024 06:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188577 ФПД: 9357719602774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T062314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188577&fm=9357719602774&tin=02508201610067®Number=0000000000100030&sum=800024 [06:23:12]StoreToDocumentArchive [06:23:12]shift 462 fd 188577 [06:23:12]save to /storage/0462/doc_00188577 [06:23:12]save last doc name /storage/0462/doc_00188577 to /storage/kkm_last_doc_name [06:23:12]save OK [06:23:12]Clear old archive folders... [06:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:23:12]tlvbuf is 0090C760 [06:23:12]SAM_PROTO_ClearQueue [06:23:12]wFMCommunicate request_size=4 [06:23:12]MH_SAM_APDU [06:23:12]CAPDU: 80 09 00 00 [06:23:12]Write to MH i2c: E2 08 00 9D 16 80 09 00 00 00 00 00 00 25 [06:23:12]Write i2c OK [06:23:12]MH_I2C_Read... [06:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:12]Read from MH i2c: E2 [06:23:12]MH_I2C_Read... [06:23:12]Read from MH i2c: E2 03 00 [06:23:12]MH_I2C_Read... [06:23:12]Read from MH i2c: E2 03 00 9D 16 00 90 00 27 [06:23:12]RAPDU: 90 00 [06:23:12]wFMCommunicate OK [06:23:12]SAM_PROTO_ClearQueue done [06:23:12]KKMCreateOFDPacket [06:23:12]OFDProtocolAddRootSTLVToBuf [06:23:12]FM_MakeSignedData [06:23:12]FM_MakeSignedData [06:23:12]SAM_PROTO_SignData [06:23:12]wFMCommunicate request_size=4 [06:23:12]MH_SAM_APDU [06:23:12]CAPDU: 80 0D 01 02 [06:23:12]Write to MH i2c: E2 08 00 9E 16 80 0D 01 02 00 00 00 00 2D [06:23:12]Write i2c OK [06:23:12]MH_I2C_Read... [06:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:12]Read from MH i2c: E2 [06:23:12]MH_I2C_Read... [06:23:12]Read from MH i2c: E2 03 00 [06:23:12]MH_I2C_Read... [06:23:12]Read from MH i2c: E2 03 00 9E 16 00 90 00 28 [06:23:12]RAPDU: 90 00 [06:23:12]wFMCommunicate OK [06:23:12]wFMCommunicate request_size=255 [06:23:12]MH_SAM_APDU [06:23:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 52 96 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E0 02 00 35 04 06 00 08 82 C3 8D [06:23:12]Write to MH i2c: E2 02 01 9F 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 52 96 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E0 02 00 35 04 06 00 08 82 C3 8D 00 00 B8 [06:23:12]Write i2c OK [06:23:12]MH_I2C_Read... [06:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:13]Read from MH i2c: E2 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: E2 03 00 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: E2 03 00 9F 16 00 90 00 29 [06:23:13]RAPDU: 90 00 [06:23:13]wFMCommunicate OK [06:23:13]wFMCommunicate request_size=7 [06:23:13]MH_SAM_APDU [06:23:13]CAPDU: 80 0D 02 02 02 86 56 [06:23:13]Write to MH i2c: E2 0A 00 A0 16 80 0D 02 02 02 00 86 56 00 00 10 [06:23:13]Write i2c OK [06:23:13]MH_I2C_Read... [06:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:13]Read from MH i2c: E2 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: E2 03 00 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: E2 03 00 A0 16 00 90 00 2A [06:23:13]RAPDU: 90 00 [06:23:13]wFMCommunicate OK [06:23:13]wFMCommunicate request_size=4 [06:23:13]MH_SAM_APDU [06:23:13]CAPDU: 80 0D 03 02 [06:23:13]Write to MH i2c: E2 08 00 A1 16 80 0D 03 02 00 00 00 00 32 [06:23:13]Write i2c OK [06:23:13]MH_I2C_Read... [06:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:13]Read from MH i2c: E2 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: E2 0B 00 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: E2 0B 00 A1 16 00 4D E1 F8 CF 9D E2 6C 83 90 00 96 [06:23:13]RAPDU: 4D E1 F8 CF 9D E2 6C 83 90 00 [06:23:13]wFMCommunicate OK [06:23:13]SAM_PROTO_SignData done [06:23:13]FM_MakeSignedData done [06:23:13]CreateOFDProtocolMessage [06:23:13]wFMCommunicate request_size=4 [06:23:13]MH_SAM_APDU [06:23:13]CAPDU: 80 11 00 00 [06:23:13]Write to MH i2c: E2 08 00 A2 16 80 11 00 00 00 00 00 00 32 [06:23:13]Write i2c OK [06:23:13]MH_I2C_Read... [06:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:13]Read from MH i2c: E2 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: E2 17 00 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: E2 17 00 A2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [06:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:23:13]wFMCommunicate OK [06:23:13]CreateOFDProtocolMessage done [06:23:13]OFDSenderStorePacket 188577 [06:23:13]StoreOFDPacket docnum=188577 [06:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 25 4E 04 01 85 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 52 96 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E0 02 00 35 04 06 00 08 82 C3 8D 86 56 4D E1 F8 CF 9D E2 6C 83 [06:23:13]CheckFolder [06:23:13]dirname=/storage/ofd_packets [06:23:13]CheckFolder done [06:23:13]ProducePacketName [06:23:13]name=ofd_packets/00188577 [06:23:13]NVStorageSaveData ofd_packets/00188577 [06:23:13]File name is /storage/ofd_packets/00188577 [06:23:13]Write 298 bytes [06:23:13]NVStorageSaveData done [06:23:13]OFDSenderStorePacket done [06:23:13]KKMCreateOFDPacket done [06:23:13]NVStorageSaveData kkm_last_timestamp [06:23:13]File name is /storage/kkm_last_timestamp [06:23:13]Write 4 bytes [06:23:13]NVStorageSaveData done [06:23:13]ExternCall_PrintAddStr [06:23:13]wPrintStart [06:23:13]Write to MH i2c: 01 00 00 A3 16 B9 [06:23:13]Write i2c OK [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: 01 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: 01 07 00 [06:23:13]MH_I2C_Read... [06:23:13]Read from MH i2c: 01 07 00 A3 16 00 00 00 00 00 FF 0F CE [06:23:13]RasterBufferAndPrint [06:23:13]line Счет N : (1)210636 [06:23:13]line ИНН: 02508201610067 [06:23:13]line Контрольно-Кассовый Чек [06:23:13]line ПРОДАЖА [06:23:13]line ТРК (МРК, ГНК) : 51 [06:23:13]line Товар: 2710194210 [06:23:13]line ДТ-К-5 [06:23:13]line 104.990 * 76.20 [06:23:13]line = 8000.24 [06:23:13]line НДС 12% НСП 1% [06:23:13]line > о реализуемом товаре [06:23:13]line ИТОГО: 8000.24 [06:23:13]line НСП 1% : 70.80 [06:23:13]line НДС 12% : 849.58 [06:23:13]line Наличными: 0.00 [06:23:13]line Безнал.: 8000.24 [06:23:13]line Место: АЗС № 86 "Партнер Нефть" [06:23:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:23:13]line СНО: Общий режим [06:23:13]line Чек 35 23.10.2024 06:23 [06:23:13]line Смена: 462 ФФД: 1.0 [06:23:13]line ЗНМ: 0300000155 [06:23:13]line РНМ: 0000000000100030 [06:23:13]line Версия ККМ: 001 [06:23:13]line Платежная система: Mbank [06:23:13]line ФМ: 0000000000965340 [06:23:13]line ФД: 188577 [06:23:13]line ФПД: 9357719602774 [06:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T062314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188577&fm=9357719602774&tin=02508201610067®Number=0000000000100030&sum=800024 [06:23:13]OFD Sender: Processing packet 188577 [packets to send 1062, broken 1061] [06:23:13]ProducePacketName [06:23:13]name=ofd_packets/00188577 [06:23:13]OFD Sender: To server: pG, [06:23:13]CommunicateWithHost lk.salyk.kg:30040 [06:23:13]ConnectInit lk.salyk.kg [06:23:13]written 0, free lines is 4095 [06:23:14]Connected sock=10 [06:23:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 25 4E 04 01 85 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 52 96 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E0 02 00 35 04 06 00 08 82 C3 8D 86 56 4D E1 F8 CF 9D E2 6C 83 [06:23:14]Write to MH i2c: 01 00 00 CC 16 E2 [06:23:14]Write i2c OK [06:23:14]MH_I2C_Read... [06:23:14]Read from MH i2c: 01 [06:23:14]MH_I2C_Read... [06:23:14]Read from MH i2c: 01 07 00 [06:23:14]MH_I2C_Read... [06:23:14]Read from MH i2c: 01 07 00 CC 16 00 00 00 00 00 83 0C 78 [06:23:14]RasterBufferAndPrint [06:23:14]line [06:23:14]line [06:23:14]line [06:23:14]line [06:23:14]line [06:23:14]written 0, free lines is 3207 [06:23:14]MH_Cut [06:23:14]Write to MH i2c: D1 01 00 D3 16 01 BB [06:23:14]Write i2c OK [06:23:14]MH_I2C_Read... [06:23:14]Read from MH i2c: D1 [06:23:14]MH_I2C_Read... [06:23:14]Read from MH i2c: D1 01 00 [06:23:14]MH_I2C_Read... [06:23:14]Read from MH i2c: D1 01 00 D3 16 00 BA [06:23:14]Write to MH i2c: 01 00 00 D4 16 EA [06:23:14]Write i2c OK [06:23:14]MH_I2C_Read... [06:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DF 06 47 00 3A E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E0 02 00 F4 03 04 00 3E 40 18 67 B6 04 01 00 00 E9 AC 8B FA 93 F3 E7 F9 [06:23:14]CommunicateWithHost err = 0 [06:23:14]CheckOFDResponse [06:23:14]1017 (14) - 77093643461234 [06:23:14]1041 (16) - 0000000000965340 [06:23:14]1040 (4) - 188577 [06:23:14]1012 (4) - 23.10.2024 00:15 [06:23:14]1206 (1) - 0 [06:23:14]OFD Sender: Remove packet 188577 [06:23:14]ProducePacketName [06:23:14]name=ofd_packets/00188577 [06:23:14]NVStorageDeleteData [06:23:15]OFD Sender: No OFD packet to send [06:23:15]*** Cut start [06:23:15]*** Partial cut [06:23:15]*** CUTSNS_PIN = 1 [06:23:15]*** CUTSNS_PIN = 0 [06:23:15]*** Brake cut motor [06:23:16]Read from MH i2c: 01 [06:23:16]MH_I2C_Read... [06:23:16]*** Stop cut motor [06:23:16]*** Cut end [06:23:16]Read from MH i2c: 01 07 00 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: 01 07 00 D4 16 00 00 00 00 00 FF 0F FF [06:23:16]process_action close_receipt done [06:23:16]requested_data is exist [06:23:16]produce_requested_data [06:23:16]requested_item fm.sn is exist - process it [06:23:16]wFMCommunicate request_size=4 [06:23:16]MH_SAM_APDU [06:23:16]CAPDU: 80 11 00 00 [06:23:16]Write to MH i2c: E2 08 00 D5 16 80 11 00 00 00 00 00 00 65 [06:23:16]Write i2c OK [06:23:16]MH_I2C_Read... [06:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:16]Read from MH i2c: E2 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 17 00 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 17 00 D5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [06:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:23:16]wFMCommunicate OK [06:23:16]requested_item fd.num is exist - process it [06:23:16]SAM_PROTO_GetFieldsCounters [06:23:16]wFMCommunicate request_size=4 [06:23:16]MH_SAM_APDU [06:23:16]CAPDU: 80 13 00 00 [06:23:16]Write to MH i2c: E2 08 00 D6 16 80 13 00 00 00 00 00 00 68 [06:23:16]Write i2c OK [06:23:16]MH_I2C_Read... [06:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:16]Read from MH i2c: E2 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 62 00 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 62 00 D6 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [06:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:23:16]wFMCommunicate OK [06:23:16]SAM_PROTO_GetFieldsCounters done [06:23:16]requested_item shift.num is exist - process it [06:23:16]requested_item shift.opened is exist - process it [06:23:16]req_shift_opened [06:23:16]FM_GetShiftState [06:23:16]SAM_PROTO_GetShiftState [06:23:16]wFMCommunicate request_size=4 [06:23:16]MH_SAM_APDU [06:23:16]CAPDU: 80 13 01 00 [06:23:16]Write to MH i2c: E2 08 00 D7 16 80 13 01 00 00 00 00 00 6A [06:23:16]Write i2c OK [06:23:16]MH_I2C_Read... [06:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:16]Read from MH i2c: E2 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 0E 00 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 0E 00 D7 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 52 [06:23:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [06:23:16]wFMCommunicate OK [06:23:16]SAM_PROTO_GetShiftState done [06:23:16]FM_GetShiftState done [06:23:16]req_shift_opened done [06:23:16]requested_item shift.open_date is exist - process it [06:23:16]req_shift_open_date [06:23:16]req_shift_open_date done [06:23:16]produce_requested_data done [06:23:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188577,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [06:23:16]process_action_free close_receipt [06:23:16]json_value_free [06:23:16]json_value_free done [06:23:16]process_json_proto returns [06:23:16]Send response to host [06:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188577,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [06:23:16]free response buf [06:23:16]execute_script done [06:23:16]execute_script returns [06:23:16]free content buf [06:23:16]Sock 9.Close socket [06:23:16]Sock 9.Thread stoped [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:16]accept exits with 7 [06:28:16]New connection [06:28:16]New thread 3066649956 created [06:28:16]Thread 3066506596 joined [06:28:16]Waiting for new connection... [06:28:16] Sock 7.Parse request [06:28:16]Sock 7.Check first char [06:28:16]Sock 7.First char is OK [06:28:16]request: POST /json_proto HTTP/1.0 [06:28:16]Method: POST [06:28:16]URL: /json_proto [06:28:16]Method is POST - this is cgi request [06:28:16]url: /json_proto [06:28:16]query_string will be loaded in cgi processing [06:28:16]execute_cgi json_proto POST (null) [06:28:16]execute_cgi path=json_proto method=POST [06:28:16]POST find Content-Length [06:28:16]Host: 172.17.42.131:8080 [06:28:16]Content-Length: 767 [06:28:16]Content-Type: application/json [06:28:16] [06:28:16]POST finish read [06:28:16]Found Content-Length = 767 [06:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:16]execute_script... [06:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:16]POST & json_proto [06:28:16]process_json_proto [06:28:16]json parsed OK: [06:28:16]protocol is kg_v1.0 [06:28:16]action value=close_receipt [06:28:16]process_action close_receipt [06:28:16]cmd_close_receipt [06:28:16]MH_GetDate [06:28:16]Write to MH i2c: F0 00 00 D8 16 DD [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 09 00 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 09 00 D8 16 00 83 97 18 67 A0 18 CA 66 67 [06:28:16]GetLastDocTimeStamp 1729664594 [06:28:16]current date 1729664899 [06:28:16]FM_GetShiftState [06:28:16]SAM_PROTO_GetShiftState [06:28:16]wFMCommunicate request_size=4 [06:28:16]MH_SAM_APDU [06:28:16]CAPDU: 80 13 01 00 [06:28:16]Write to MH i2c: E2 08 00 D9 16 80 13 01 00 00 00 00 00 6C [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:16]Read from MH i2c: E2 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: E2 0E 00 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: E2 0E 00 D9 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 54 [06:28:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [06:28:16]wFMCommunicate OK [06:28:16]SAM_PROTO_GetShiftState done [06:28:16]FM_GetShiftState done [06:28:16]opened in 1729642525 [06:28:16]opened+sec_in_day 1729728925 [06:28:16]quantity*price = 800023 [06:28:16]sum+1 = 800025 [06:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8000.24 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.24 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 36 23.10.2024 06:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188578 ФПД: 18404273463407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T062819&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188578&fm=18404273463407&tin=02508201610067®Number=0000000000100030&sum=800024 [06:28:17]StoreToDocumentArchive [06:28:17]shift 462 fd 188578 [06:28:17]save to /storage/0462/doc_00188578 [06:28:17]save last doc name /storage/0462/doc_00188578 to /storage/kkm_last_doc_name [06:28:17]save OK [06:28:17]Clear old archive folders... [06:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:28:17]tlvbuf is B6D5E300 [06:28:17]SAM_PROTO_ClearQueue [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 09 00 00 [06:28:17]Write to MH i2c: E2 08 00 E6 16 80 09 00 00 00 00 00 00 6E [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]SAM_PROTO_ClearQueue done [06:28:17]KKMCreateOFDPacket [06:28:17]OFDProtocolAddRootSTLVToBuf [06:28:17]FM_MakeSignedData [06:28:17]FM_MakeSignedData [06:28:17]SAM_PROTO_SignData [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 01 02 [06:28:17]Write to MH i2c: E2 08 00 E7 16 80 0D 01 02 00 00 00 00 76 [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 E7 16 00 90 00 71 [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]wFMCommunicate request_size=255 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 83 97 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E0 02 00 35 04 06 00 10 BD 14 2E [06:28:17]Write to MH i2c: E2 02 01 E8 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 83 97 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E0 02 00 35 04 06 00 10 BD 14 2E 00 00 6A [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 E8 16 00 90 00 72 [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]wFMCommunicate request_size=7 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 02 02 02 A0 6F [06:28:17]Write to MH i2c: E2 0A 00 E9 16 80 0D 02 02 02 00 A0 6F 00 00 8C [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 E9 16 00 90 00 73 [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 03 02 [06:28:17]Write to MH i2c: E2 08 00 EA 16 80 0D 03 02 00 00 00 00 7B [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 0B 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 0B 00 EA 16 00 2E DC 61 26 CF E0 A0 EC 90 00 48 [06:28:18]RAPDU: 2E DC 61 26 CF E0 A0 EC 90 00 [06:28:18]wFMCommunicate OK [06:28:18]SAM_PROTO_SignData done [06:28:18]FM_MakeSignedData done [06:28:18]CreateOFDProtocolMessage [06:28:18]wFMCommunicate request_size=4 [06:28:18]MH_SAM_APDU [06:28:18]CAPDU: 80 11 00 00 [06:28:18]Write to MH i2c: E2 08 00 EB 16 80 11 00 00 00 00 00 00 7B [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 17 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 17 00 EB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [06:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:28:18]wFMCommunicate OK [06:28:18]CreateOFDProtocolMessage done [06:28:18]OFDSenderStorePacket 188578 [06:28:18]StoreOFDPacket docnum=188578 [06:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8E C1 04 01 04 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 83 97 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E0 02 00 35 04 06 00 10 BD 14 2E A0 6F 2E DC 61 26 CF E0 A0 EC [06:28:18]CheckFolder [06:28:18]dirname=/storage/ofd_packets [06:28:18]CheckFolder done [06:28:18]ProducePacketName [06:28:18]name=ofd_packets/00188578 [06:28:18]NVStorageSaveData ofd_packets/00188578 [06:28:18]File name is /storage/ofd_packets/00188578 [06:28:18]Write 298 bytes [06:28:18]NVStorageSaveData done [06:28:18]OFDSenderStorePacket done [06:28:18]KKMCreateOFDPacket done [06:28:18]NVStorageSaveData kkm_last_timestamp [06:28:18]File name is /storage/kkm_last_timestamp [06:28:18]Write 4 bytes [06:28:18]NVStorageSaveData done [06:28:18]ExternCall_PrintAddStr [06:28:18]wPrintStart [06:28:18]Write to MH i2c: 01 00 00 EC 16 02 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 EC 16 00 00 00 00 00 FF 0F 17 [06:28:18]RasterBufferAndPrint [06:28:18]line Счет N : (1)210638 [06:28:18]line ИНН: 02508201610067 [06:28:18]line Контрольно-Кассовый Чек [06:28:18]line ПРОДАЖА [06:28:18]line ТРК (МРК, ГНК) : 51 [06:28:18]line Товар: 2710194210 [06:28:18]line ДТ-К-5 [06:28:18]line 104.990 * 76.20 [06:28:18]line = 8000.24 [06:28:18]line НДС 12% НСП 1% [06:28:18]line > о реализуемом товаре [06:28:18]line ИТОГО: 8000.24 [06:28:18]line НСП 1% : 70.80 [06:28:18]line НДС 12% : 849.58 [06:28:18]line Наличными: 0.00 [06:28:18]line Безнал.: 8000.24 [06:28:18]line Место: АЗС № 86 "Партнер Нефть" [06:28:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:28:18]line СНО: Общий режим [06:28:18]line Чек 36 23.10.2024 06:28 [06:28:18]line Смена: 462 ФФД: 1.0 [06:28:18]line ЗНМ: 0300000155 [06:28:18]line РНМ: 0000000000100030 [06:28:18]line Версия ККМ: 001 [06:28:18]line Платежная система: Mbank [06:28:18]line ФМ: 0000000000965340 [06:28:18]line ФД: 188578 [06:28:18]line ФПД: 18404273463407 [06:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T062819&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188578&fm=18404273463407&tin=02508201610067®Number=0000000000100030&sum=800024 [06:28:18]written 0, free lines is 4095 [06:28:18]OFD Sender: Processing packet 188578 [packets to send 1062, broken 1061] [06:28:18]ProducePacketName [06:28:18]name=ofd_packets/00188578 [06:28:18]OFD Sender: To server: pG, [06:28:18]CommunicateWithHost lk.salyk.kg:30040 [06:28:18]ConnectInit lk.salyk.kg [06:28:18]Connected sock=10 [06:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8E C1 04 01 04 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 83 97 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E0 02 00 35 04 06 00 10 BD 14 2E A0 6F 2E DC 61 26 CF E0 A0 EC [06:28:18]Write to MH i2c: 01 00 00 15 17 2C [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 15 17 00 00 00 00 00 85 0C C4 [06:28:18]RasterBufferAndPrint [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]written 0, free lines is 3209 [06:28:18]MH_Cut [06:28:18]Write to MH i2c: D1 01 00 1C 17 01 05 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 01 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 01 00 1C 17 00 04 [06:28:18]Write to MH i2c: 01 00 00 1D 17 34 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0D 12 47 00 39 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 36 35 33 34 30 10 04 04 00 A2 E0 02 00 F4 03 04 00 6E 41 18 67 B6 04 01 00 00 87 D6 43 B4 C1 19 DE 13 [06:28:18]CommunicateWithHost err = 0 [06:28:18]CheckOFDResponse [06:28:18]1017 (14) - 77093643461234 [06:28:18]1041 (16) - 0000000000965340 [06:28:18]1040 (4) - 188578 [06:28:18]1012 (4) - 23.10.2024 00:21 [06:28:18]1206 (1) - 0 [06:28:18]OFD Sender: Remove packet 188578 [06:28:18]ProducePacketName [06:28:18]name=ofd_packets/00188578 [06:28:18]NVStorageDeleteData [06:28:19]OFD Sender: No OFD packet to send [06:28:19]*** Cut start [06:28:19]*** Partial cut [06:28:19]*** CUTSNS_PIN = 1 [06:28:19]*** CUTSNS_PIN = 0 [06:28:20]*** Brake cut motor [06:28:20]Read from MH i2c: 01 [06:28:20]MH_I2C_Read... [06:28:20]*** Stop cut motor [06:28:20]*** Cut end [06:28:20]Read from MH i2c: 01 07 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: 01 07 00 1D 17 00 00 00 00 00 FF 0F 49 [06:28:20]process_action close_receipt done [06:28:20]requested_data is exist [06:28:20]produce_requested_data [06:28:20]requested_item fm.sn is exist - process it [06:28:20]wFMCommunicate request_size=4 [06:28:20]MH_SAM_APDU [06:28:20]CAPDU: 80 11 00 00 [06:28:20]Write to MH i2c: E2 08 00 1E 17 80 11 00 00 00 00 00 00 AF [06:28:20]Write i2c OK [06:28:20]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 17 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 17 00 1E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [06:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:28:20]wFMCommunicate OK [06:28:20]requested_item fd.num is exist - process it [06:28:20]SAM_PROTO_GetFieldsCounters [06:28:20]wFMCommunicate request_size=4 [06:28:20]MH_SAM_APDU [06:28:20]CAPDU: 80 13 00 00 [06:28:20]Write to MH i2c: E2 08 00 1F 17 80 13 00 00 00 00 00 00 B2 [06:28:20]Write i2c OK [06:28:20]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 62 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 62 00 1F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [06:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:20]wFMCommunicate OK [06:28:20]SAM_PROTO_GetFieldsCounters done [06:28:20]requested_item shift.num is exist - process it [06:28:20]requested_item shift.opened is exist - process it [06:28:20]req_shift_opened [06:28:20]FM_GetShiftState [06:28:20]SAM_PROTO_GetShiftState [06:28:20]wFMCommunicate request_size=4 [06:28:20]MH_SAM_APDU [06:28:20]CAPDU: 80 13 01 00 [06:28:20]Write to MH i2c: E2 08 00 20 17 80 13 01 00 00 00 00 00 B4 [06:28:20]Write i2c OK [06:28:20]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 0E 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 0E 00 20 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9C [06:28:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [06:28:20]wFMCommunicate OK [06:28:20]SAM_PROTO_GetShiftState done [06:28:20]FM_GetShiftState done [06:28:20]req_shift_opened done [06:28:20]requested_item shift.open_date is exist - process it [06:28:20]req_shift_open_date [06:28:20]req_shift_open_date done [06:28:20]produce_requested_data done [06:28:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188578,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [06:28:20]process_action_free close_receipt [06:28:20]json_value_free [06:28:20]json_value_free done [06:28:20]process_json_proto returns [06:28:20]Send response to host [06:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188578,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [06:28:20]free response buf [06:28:20]execute_script done [06:28:20]execute_script returns [06:28:20]free content buf [06:28:20]Sock 7.Close socket [06:28:20]Sock 7.Thread stoped [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:33]accept exits with 9 [06:52:33]New connection [06:52:33]New thread 3066506596 created [06:52:33]Thread 3066649956 joined [06:52:33]Waiting for new connection... [06:52:33] Sock 9.Parse request [06:52:33]Sock 9.Check first char [06:52:33]Sock 9.First char is OK [06:52:33]request: POST /json_proto HTTP/1.0 [06:52:33]Method: POST [06:52:33]URL: /json_proto [06:52:33]Method is POST - this is cgi request [06:52:33]url: /json_proto [06:52:33]query_string will be loaded in cgi processing [06:52:33]execute_cgi json_proto POST (null) [06:52:33]execute_cgi path=json_proto method=POST [06:52:33]POST find Content-Length [06:52:33]Host: 172.17.42.131:8080 [06:52:33]Content-Length: 688 [06:52:33]Content-Type: application/json [06:52:33] [06:52:33]POST finish read [06:52:33]Found Content-Length = 688 [06:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:33]execute_script... [06:52:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:33]POST & json_proto [06:52:33]process_json_proto [06:52:33]json parsed OK: [06:52:33]protocol is kg_v1.0 [06:52:33]action value=close_receipt [06:52:33]process_action close_receipt [06:52:33]cmd_close_receipt [06:52:33]MH_GetDate [06:52:33]Write to MH i2c: F0 00 00 21 17 27 [06:52:33]Write i2c OK [06:52:33]MH_I2C_Read... [06:52:33]Read from MH i2c: F0 [06:52:33]MH_I2C_Read... [06:52:33]Read from MH i2c: F0 09 00 [06:52:33]MH_I2C_Read... [06:52:33]Read from MH i2c: F0 09 00 21 17 00 34 9D 18 67 A0 18 CA 66 68 [06:52:33]GetLastDocTimeStamp 1729664899 [06:52:33]current date 1729666356 [06:52:33]FM_GetShiftState [06:52:33]SAM_PROTO_GetShiftState [06:52:33]wFMCommunicate request_size=4 [06:52:33]MH_SAM_APDU [06:52:33]CAPDU: 80 13 01 00 [06:52:33]Write to MH i2c: E2 08 00 22 17 80 13 01 00 00 00 00 00 B6 [06:52:33]Write i2c OK [06:52:33]MH_I2C_Read... [06:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:33]Read from MH i2c: E2 [06:52:33]MH_I2C_Read... [06:52:33]Read from MH i2c: E2 0E 00 [06:52:33]MH_I2C_Read... [06:52:33]Read from MH i2c: E2 0E 00 22 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9E [06:52:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [06:52:33]wFMCommunicate OK [06:52:33]SAM_PROTO_GetShiftState done [06:52:33]FM_GetShiftState done [06:52:33]opened in 1729642525 [06:52:33]opened+sec_in_day 1729728925 [06:52:33]quantity*price = 200025 [06:52:33]sum+1 = 200026 [06:52:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 37 23.10.2024 06:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188579 ФПД: 272740784022029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T065236&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188579&fm=272740784022029&tin=02508201610067®Number=0000000000100030&sum=200000 [06:52:34]StoreToDocumentArchive [06:52:34]shift 462 fd 188579 [06:52:34]save to /storage/0462/doc_00188579 [06:52:34]save last doc name /storage/0462/doc_00188579 to /storage/kkm_last_doc_name [06:52:34]save OK [06:52:34]Clear old archive folders... [06:52:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:52:34]tlvbuf is 00969B50 [06:52:34]SAM_PROTO_ClearQueue [06:52:34]wFMCommunicate request_size=4 [06:52:34]MH_SAM_APDU [06:52:34]CAPDU: 80 09 00 00 [06:52:34]Write to MH i2c: E2 08 00 2F 17 80 09 00 00 00 00 00 00 B8 [06:52:34]Write i2c OK [06:52:34]MH_I2C_Read... [06:52:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:34]Read from MH i2c: E2 [06:52:34]MH_I2C_Read... [06:52:34]Read from MH i2c: E2 03 00 [06:52:34]MH_I2C_Read... [06:52:34]Read from MH i2c: E2 03 00 2F 17 00 90 00 BA [06:52:34]RAPDU: 90 00 [06:52:34]wFMCommunicate OK [06:52:34]SAM_PROTO_ClearQueue done [06:52:34]KKMCreateOFDPacket [06:52:34]OFDProtocolAddRootSTLVToBuf [06:52:34]FM_MakeSignedData [06:52:34]FM_MakeSignedData [06:52:34]SAM_PROTO_SignData [06:52:34]wFMCommunicate request_size=4 [06:52:34]MH_SAM_APDU [06:52:34]CAPDU: 80 0D 01 02 [06:52:34]Write to MH i2c: E2 08 00 30 17 80 0D 01 02 00 00 00 00 C0 [06:52:34]Write i2c OK [06:52:34]MH_I2C_Read... [06:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:35]Read from MH i2c: E2 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 03 00 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [06:52:35]RAPDU: 90 00 [06:52:35]wFMCommunicate OK [06:52:35]wFMCommunicate request_size=255 [06:52:35]MH_SAM_APDU [06:52:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 34 9D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E0 02 [06:52:35]Write to MH i2c: E2 02 01 31 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 34 9D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E0 02 00 00 2A [06:52:35]Write i2c OK [06:52:35]MH_I2C_Read... [06:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:35]Read from MH i2c: E2 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 03 00 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [06:52:35]RAPDU: 90 00 [06:52:35]wFMCommunicate OK [06:52:35]wFMCommunicate request_size=16 [06:52:35]MH_SAM_APDU [06:52:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F8 0E 69 8C 22 0D [06:52:35]Write to MH i2c: E2 13 00 32 17 80 0D 02 02 0B 00 00 35 04 06 00 F8 0E 69 8C 22 0D 00 00 42 [06:52:35]Write i2c OK [06:52:35]MH_I2C_Read... [06:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:35]Read from MH i2c: E2 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 03 00 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 03 00 32 17 00 90 00 BD [06:52:35]RAPDU: 90 00 [06:52:35]wFMCommunicate OK [06:52:35]wFMCommunicate request_size=4 [06:52:35]MH_SAM_APDU [06:52:35]CAPDU: 80 0D 03 02 [06:52:35]Write to MH i2c: E2 08 00 33 17 80 0D 03 02 00 00 00 00 C5 [06:52:35]Write i2c OK [06:52:35]MH_I2C_Read... [06:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:35]Read from MH i2c: E2 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 0B 00 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 0B 00 33 17 00 B7 F8 41 AD D9 99 BF D2 90 00 66 [06:52:35]RAPDU: B7 F8 41 AD D9 99 BF D2 90 00 [06:52:35]wFMCommunicate OK [06:52:35]SAM_PROTO_SignData done [06:52:35]FM_MakeSignedData done [06:52:35]CreateOFDProtocolMessage [06:52:35]wFMCommunicate request_size=4 [06:52:35]MH_SAM_APDU [06:52:35]CAPDU: 80 11 00 00 [06:52:35]Write to MH i2c: E2 08 00 34 17 80 11 00 00 00 00 00 00 C5 [06:52:35]Write i2c OK [06:52:35]MH_I2C_Read... [06:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:35]Read from MH i2c: E2 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 17 00 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: E2 17 00 34 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [06:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:52:35]wFMCommunicate OK [06:52:35]CreateOFDProtocolMessage done [06:52:35]OFDSenderStorePacket 188579 [06:52:35]StoreOFDPacket docnum=188579 [06:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B3 20 0D 01 9A C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 34 9D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E0 02 00 35 04 06 00 F8 0E 69 8C 22 0D B7 F8 41 AD D9 99 BF D2 [06:52:35]CheckFolder [06:52:35]dirname=/storage/ofd_packets [06:52:35]CheckFolder done [06:52:35]ProducePacketName [06:52:35]name=ofd_packets/00188579 [06:52:35]NVStorageSaveData ofd_packets/00188579 [06:52:35]File name is /storage/ofd_packets/00188579 [06:52:35]Write 307 bytes [06:52:35]NVStorageSaveData done [06:52:35]OFDSenderStorePacket done [06:52:35]KKMCreateOFDPacket done [06:52:35]NVStorageSaveData kkm_last_timestamp [06:52:35]File name is /storage/kkm_last_timestamp [06:52:35]Write 4 bytes [06:52:35]NVStorageSaveData done [06:52:35]ExternCall_PrintAddStr [06:52:35]wPrintStart [06:52:35]Write to MH i2c: 01 00 00 35 17 4C [06:52:35]Write i2c OK [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: 01 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: 01 07 00 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: 01 07 00 35 17 00 00 00 00 00 FF 0F 61 [06:52:35]RasterBufferAndPrint [06:52:35]line Счет N : (1)210639 [06:52:35]line ИНН: 02508201610067 [06:52:35]line Контрольно-Кассовый Чек [06:52:35]line ПРОДАЖА [06:52:35]line ТРК (МРК, ГНК) : 31 [06:52:35]line Товар: 2710194210 [06:52:35]line D-ENERGY ДТ-К-5 [06:52:35]line 25.910 * 77.20 [06:52:35]line = 2000.25 [06:52:35]line НДС 12% НСП 1% [06:52:35]line > о реализуемом товаре [06:52:35]line ОКРУГЛЕНИЕ: -0.25 [06:52:35]line ИТОГО: 2000.00 [06:52:35]line Внесено: 2000.00 [06:52:35]line СДАЧА: 0.00 [06:52:35]line НСП 1% : 17.70 [06:52:35]line НДС 12% : 212.42 [06:52:35]line Наличными: 2000.00 [06:52:35]line Безнал.: 0.00 [06:52:35]line Место: АЗС № 86 "Партнер Нефть" [06:52:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:52:35]line СНО: Общий режим [06:52:35]line Чек 37 23.10.2024 06:52 [06:52:35]line Смена: 462 ФФД: 1.0 [06:52:35]line ЗНМ: 0300000155 [06:52:35]line РНМ: 0000000000100030 [06:52:35]line Версия ККМ: 001 [06:52:35]line ФМ: 0000000000965340 [06:52:35]line ФД: 188579 [06:52:35]line ФПД: 272740784022029 [06:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T065236&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188579&fm=272740784022029&tin=02508201610067®Number=0000000000100030&sum=200000 [06:52:35]OFD Sender: Processing packet 188579 [packets to send 1062, broken 1061] [06:52:35]ProducePacketName [06:52:35]name=ofd_packets/00188579 [06:52:35]OFD Sender: To server: pG, [06:52:35]CommunicateWithHost lk.salyk.kg:30040 [06:52:35]ConnectInit lk.salyk.kg [06:52:35]written 0, free lines is 4095 [06:52:35]Connected sock=10 [06:52:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B3 20 0D 01 9A C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 34 9D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E0 02 00 35 04 06 00 F8 0E 69 8C 22 0D B7 F8 41 AD D9 99 BF D2 [06:52:35]Write to MH i2c: 01 00 00 60 17 77 [06:52:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 50 5D 47 00 11 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E0 02 00 F4 03 04 00 1F 47 18 67 B6 04 01 00 00 5F 85 5E E1 C1 10 D1 52 [06:52:35]CommunicateWithHost err = 0 [06:52:35]CheckOFDResponse [06:52:35]1017 (14) - 77093643461234 [06:52:35]1041 (16) - 0000000000965340 [06:52:35]1040 (4) - 188579 [06:52:35]1012 (4) - 23.10.2024 00:45 [06:52:35]1206 (1) - 0 [06:52:35]OFD Sender: Remove packet 188579 [06:52:35]ProducePacketName [06:52:35]name=ofd_packets/00188579 [06:52:35]NVStorageDeleteData [06:52:35]Write i2c OK [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: 01 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: 01 07 00 [06:52:35]MH_I2C_Read... [06:52:35]Read from MH i2c: 01 07 00 60 17 00 00 00 00 00 57 0C E1 [06:52:35]RasterBufferAndPrint [06:52:35]line [06:52:35]line [06:52:35]line [06:52:35]line [06:52:35]line [06:52:35]written 0, free lines is 3169 [06:52:36]MH_Cut [06:52:36]Write to MH i2c: D1 01 00 67 17 01 50 [06:52:36]Write i2c OK [06:52:36]MH_I2C_Read... [06:52:36]Read from MH i2c: D1 [06:52:36]MH_I2C_Read... [06:52:36]Read from MH i2c: D1 01 00 [06:52:36]MH_I2C_Read... [06:52:36]Read from MH i2c: D1 01 00 67 17 00 4F [06:52:36]Write to MH i2c: 01 00 00 68 17 7F [06:52:36]Write i2c OK [06:52:36]MH_I2C_Read... [06:52:36]OFD Sender: No OFD packet to send [06:52:37]*** Cut start [06:52:37]*** Partial cut [06:52:37]*** CUTSNS_PIN = 1 [06:52:37]*** CUTSNS_PIN = 0 [06:52:37]*** Brake cut motor [06:52:37]Read from MH i2c: 01 [06:52:37]MH_I2C_Read... [06:52:37]*** Stop cut motor [06:52:37]*** Cut end [06:52:37]Read from MH i2c: 01 07 00 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: 01 07 00 68 17 00 00 00 00 00 FF 0F 94 [06:52:37]process_action close_receipt done [06:52:37]requested_data is exist [06:52:37]produce_requested_data [06:52:37]requested_item fm.sn is exist - process it [06:52:37]wFMCommunicate request_size=4 [06:52:37]MH_SAM_APDU [06:52:37]CAPDU: 80 11 00 00 [06:52:37]Write to MH i2c: E2 08 00 69 17 80 11 00 00 00 00 00 00 FA [06:52:37]Write i2c OK [06:52:37]MH_I2C_Read... [06:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:37]Read from MH i2c: E2 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: E2 17 00 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: E2 17 00 69 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [06:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:52:37]wFMCommunicate OK [06:52:37]requested_item fd.num is exist - process it [06:52:37]SAM_PROTO_GetFieldsCounters [06:52:37]wFMCommunicate request_size=4 [06:52:37]MH_SAM_APDU [06:52:37]CAPDU: 80 13 00 00 [06:52:37]Write to MH i2c: E2 08 00 6A 17 80 13 00 00 00 00 00 00 FD [06:52:37]Write i2c OK [06:52:37]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 62 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 62 00 6A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [06:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:38]wFMCommunicate OK [06:52:38]SAM_PROTO_GetFieldsCounters done [06:52:38]requested_item shift.num is exist - process it [06:52:38]requested_item shift.opened is exist - process it [06:52:38]req_shift_opened [06:52:38]FM_GetShiftState [06:52:38]SAM_PROTO_GetShiftState [06:52:38]wFMCommunicate request_size=4 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 13 01 00 [06:52:38]Write to MH i2c: E2 08 00 6B 17 80 13 01 00 00 00 00 00 FF [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 0E 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 0E 00 6B 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E7 [06:52:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [06:52:38]wFMCommunicate OK [06:52:38]SAM_PROTO_GetShiftState done [06:52:38]FM_GetShiftState done [06:52:38]req_shift_opened done [06:52:38]requested_item shift.open_date is exist - process it [06:52:38]req_shift_open_date [06:52:38]req_shift_open_date done [06:52:38]produce_requested_data done [06:52:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188579,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [06:52:38]process_action_free close_receipt [06:52:38]json_value_free [06:52:38]json_value_free done [06:52:38]process_json_proto returns [06:52:38]Send response to host [06:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188579,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [06:52:38]free response buf [06:52:38]execute_script done [06:52:38]execute_script returns [06:52:38]free content buf [06:52:38]Sock 9.Close socket [06:52:38]Sock 9.Thread stoped [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58: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:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:19]accept exits with 7 [07:08:19]New connection [07:08:19]New thread 3066649956 created [07:08:19]Thread 3066506596 joined [07:08:19]Waiting for new connection... [07:08:19] Sock 7.Parse request [07:08:19]Sock 7.Check first char [07:08:19]Sock 7.First char is OK [07:08:19]request: POST /json_proto HTTP/1.0 [07:08:19]Method: POST [07:08:19]URL: /json_proto [07:08:19]Method is POST - this is cgi request [07:08:19]url: /json_proto [07:08:19]query_string will be loaded in cgi processing [07:08:19]execute_cgi json_proto POST (null) [07:08:19]execute_cgi path=json_proto method=POST [07:08:19]POST find Content-Length [07:08:19]Host: 172.17.42.131:8080 [07:08:19]Content-Length: 754 [07:08:19]Content-Type: application/json [07:08:19] [07:08:19]POST finish read [07:08:19]Found Content-Length = 754 [07:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 36.520, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:19]execute_script... [07:08:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 36.520, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:19]POST & json_proto [07:08:19]process_json_proto [07:08:19]json parsed OK: [07:08:19]protocol is kg_v1.0 [07:08:19]action value=close_receipt [07:08:19]process_action close_receipt [07:08:19]cmd_close_receipt [07:08:19]MH_GetDate [07:08:19]Write to MH i2c: F0 00 00 6C 17 72 [07:08:19]Write i2c OK [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: F0 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: F0 09 00 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: F0 09 00 6C 17 00 E6 A0 18 67 A0 18 CA 66 68 [07:08:19]GetLastDocTimeStamp 1729666356 [07:08:19]current date 1729667302 [07:08:19]FM_GetShiftState [07:08:19]SAM_PROTO_GetShiftState [07:08:19]wFMCommunicate request_size=4 [07:08:19]MH_SAM_APDU [07:08:19]CAPDU: 80 13 01 00 [07:08:19]Write to MH i2c: E2 08 00 6D 17 80 13 01 00 00 00 00 00 01 [07:08:19]Write i2c OK [07:08:19]MH_I2C_Read... [07:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:19]Read from MH i2c: E2 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 0E 00 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 0E 00 6D 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E9 [07:08:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:08:19]wFMCommunicate OK [07:08:19]SAM_PROTO_GetShiftState done [07:08:19]FM_GetShiftState done [07:08:19]opened in 1729642525 [07:08:19]opened+sec_in_day 1729728925 [07:08:19]quantity*price = 0 [07:08:19]sum+1 = 1 [07:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 38 23.10.2024 07:08 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145314 ФМ: 0000000000965340 ФД: 188580 ФПД: 78269592619657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070822&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188580&fm=78269592619657&tin=02508201610067®Number=0000000000100030&sum=0 [07:08:20]StoreToDocumentArchive [07:08:20]shift 462 fd 188580 [07:08:20]save to /storage/0462/doc_00188580 [07:08:20]save last doc name /storage/0462/doc_00188580 to /storage/kkm_last_doc_name [07:08:20]save OK [07:08:20]Clear old archive folders... [07:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:20]tlvbuf is 0092C2B0 [07:08:20]SAM_PROTO_ClearQueue [07:08:20]wFMCommunicate request_size=4 [07:08:20]MH_SAM_APDU [07:08:20]CAPDU: 80 09 00 00 [07:08:20]Write to MH i2c: E2 08 00 7A 17 80 09 00 00 00 00 00 00 03 [07:08:20]Write i2c OK [07:08:20]MH_I2C_Read... [07:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:20]Read from MH i2c: E2 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 03 00 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 03 00 7A 17 00 90 00 05 [07:08:20]RAPDU: 90 00 [07:08:20]wFMCommunicate OK [07:08:20]SAM_PROTO_ClearQueue done [07:08:20]KKMCreateOFDPacket [07:08:20]OFDProtocolAddRootSTLVToBuf [07:08:20]FM_MakeSignedData [07:08:20]FM_MakeSignedData [07:08:20]SAM_PROTO_SignData [07:08:20]wFMCommunicate request_size=4 [07:08:20]MH_SAM_APDU [07:08:20]CAPDU: 80 0D 01 02 [07:08:20]Write to MH i2c: E2 08 00 7B 17 80 0D 01 02 00 00 00 00 0B [07:08:20]Write i2c OK [07:08:20]MH_I2C_Read... [07:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:20]OFD Sender: No OFD packet to send [07:08:20]Read from MH i2c: E2 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 03 00 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [07:08:20]RAPDU: 90 00 [07:08:20]wFMCommunicate OK [07:08:20]wFMCommunicate request_size=255 [07:08:20]MH_SAM_APDU [07:08:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 8E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 A0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E0 02 00 35 04 06 00 47 [07:08:20]Write to MH i2c: E2 02 01 7C 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 8E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 A0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E0 02 00 35 04 06 00 47 00 00 FA [07:08:20]Write i2c OK [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 [07:08:20]MH_I2C_Read... [07:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:20]Read from MH i2c: E2 03 00 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 03 00 7C 17 00 90 00 07 [07:08:20]RAPDU: 90 00 [07:08:20]wFMCommunicate OK [07:08:20]wFMCommunicate request_size=10 [07:08:20]MH_SAM_APDU [07:08:20]CAPDU: 80 0D 02 02 05 2F 8F 43 CA 89 [07:08:20]Write to MH i2c: E2 0D 00 7D 17 80 0D 02 02 05 00 2F 8F 43 CA 89 00 00 6C [07:08:21]Write i2c OK [07:08:21]MH_I2C_Read... [07:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:21]Read from MH i2c: E2 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: E2 03 00 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: E2 03 00 7D 17 00 90 00 08 [07:08:21]RAPDU: 90 00 [07:08:21]wFMCommunicate OK [07:08:21]wFMCommunicate request_size=4 [07:08:21]MH_SAM_APDU [07:08:21]CAPDU: 80 0D 03 02 [07:08:21]Write to MH i2c: E2 08 00 7E 17 80 0D 03 02 00 00 00 00 10 [07:08:21]Write i2c OK [07:08:21]MH_I2C_Read... [07:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:21]Read from MH i2c: E2 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: E2 0B 00 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: E2 0B 00 7E 17 00 2A 15 9C 98 6C D6 F5 27 90 00 E2 [07:08:21]RAPDU: 2A 15 9C 98 6C D6 F5 27 90 00 [07:08:21]wFMCommunicate OK [07:08:21]SAM_PROTO_SignData done [07:08:21]FM_MakeSignedData done [07:08:21]CreateOFDProtocolMessage [07:08:21]wFMCommunicate request_size=4 [07:08:21]MH_SAM_APDU [07:08:21]CAPDU: 80 11 00 00 [07:08:21]Write to MH i2c: E2 08 00 7F 17 80 11 00 00 00 00 00 00 10 [07:08:21]Write i2c OK [07:08:21]MH_I2C_Read... [07:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:21]Read from MH i2c: E2 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: E2 17 00 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: E2 17 00 7F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [07:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:08:21]wFMCommunicate OK [07:08:21]CreateOFDProtocolMessage done [07:08:21]OFDSenderStorePacket 188580 [07:08:21]StoreOFDPacket docnum=188580 [07:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 52 E4 07 01 CA 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 8E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 A0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E0 02 00 35 04 06 00 47 2F 8F 43 CA 89 2A 15 9C 98 6C D6 F5 27 [07:08:21]CheckFolder [07:08:21]dirname=/storage/ofd_packets [07:08:21]CheckFolder done [07:08:21]ProducePacketName [07:08:21]name=ofd_packets/00188580 [07:08:21]NVStorageSaveData ofd_packets/00188580 [07:08:21]File name is /storage/ofd_packets/00188580 [07:08:21]Write 301 bytes [07:08:21]NVStorageSaveData done [07:08:21]OFDSenderStorePacket done [07:08:21]KKMCreateOFDPacket done [07:08:21]NVStorageSaveData kkm_last_timestamp [07:08:21]File name is /storage/kkm_last_timestamp [07:08:21]Write 4 bytes [07:08:21]NVStorageSaveData done [07:08:21]ExternCall_PrintAddStr [07:08:21]wPrintStart [07:08:21]Write to MH i2c: 01 00 00 80 17 97 [07:08:21]Write i2c OK [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: 01 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: 01 07 00 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: 01 07 00 80 17 00 00 00 00 00 FF 0F AC [07:08:21]RasterBufferAndPrint [07:08:21]line Счет N : (1)210640 [07:08:21]line ИНН: 02508201610067 [07:08:21]line Контрольно-Кассовый Чек [07:08:21]line ПРОДАЖА [07:08:21]line ТРК (МРК, ГНК) : 33 [07:08:21]line Товар: 2710124500 [07:08:21]line Аи-95-К-3 [07:08:21]line 36.520 * 0.00 [07:08:21]line = 0.00 [07:08:21]line НДС 12% НСП 1% [07:08:21]line > о реализуемом товаре [07:08:21]line ИТОГО: 0.00 [07:08:21]line НСП 1% : 0.00 [07:08:21]line НДС 12% : 0.00 [07:08:21]line Наличными: 0.00 [07:08:21]line Безнал.: 0.00 [07:08:21]line Место: АЗС № 86 "Партнер Нефть" [07:08:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:08:21]line СНО: Общий режим [07:08:21]line Чек 38 23.10.2024 07:08 [07:08:21]line Смена: 462 ФФД: 1.0 [07:08:21]line ЗНМ: 0300000155 [07:08:21]line РНМ: 0000000000100030 [07:08:21]line Версия ККМ: 001 [07:08:21]line Талоны: ТК ГПНА Online [07:08:21]line 30145314 [07:08:21]line ФМ: 0000000000965340 [07:08:21]line ФД: 188580 [07:08:21]line ФПД: 78269592619657 [07:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070822&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188580&fm=78269592619657&tin=02508201610067®Number=0000000000100030&sum=0 [07:08:21]written 0, free lines is 4095 [07:08:21]OFD Sender: Processing packet 188580 [packets to send 1062, broken 1061] [07:08:21]ProducePacketName [07:08:21]name=ofd_packets/00188580 [07:08:21]OFD Sender: To server: pG, [07:08:21]CommunicateWithHost lk.salyk.kg:30040 [07:08:21]ConnectInit lk.salyk.kg [07:08:21]Connected sock=10 [07:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 52 E4 07 01 CA 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 8E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 A0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E0 02 00 35 04 06 00 47 2F 8F 43 CA 89 2A 15 9C 98 6C D6 F5 27 [07:08:21]Write to MH i2c: 01 00 00 AA 17 C1 [07:08:21]Write i2c OK [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: 01 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: 01 07 00 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 6E 0C 42 [07:08:21]RasterBufferAndPrint [07:08:21]line [07:08:21]line [07:08:21]line [07:08:21]line [07:08:21]line [07:08:21]written 0, free lines is 3188 [07:08:21]MH_Cut [07:08:21]Write to MH i2c: D1 01 00 B1 17 01 9A [07:08:21]Write i2c OK [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: D1 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: D1 01 00 [07:08:21]MH_I2C_Read... [07:08:21]Read from MH i2c: D1 01 00 B1 17 00 99 [07:08:21]Write to MH i2c: 01 00 00 B2 17 C9 [07:08:21]Write i2c OK [07:08:21]MH_I2C_Read... [07:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 57 F3 47 00 A8 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E0 02 00 F4 03 04 00 D1 4A 18 67 B6 04 01 00 00 64 BF 90 BC 3F CF 40 65 [07:08:21]CommunicateWithHost err = 0 [07:08:21]CheckOFDResponse [07:08:21]1017 (14) - 77093643461234 [07:08:21]1041 (16) - 0000000000965340 [07:08:21]1040 (4) - 188580 [07:08:21]1012 (4) - 23.10.2024 01:01 [07:08:21]1206 (1) - 0 [07:08:21]OFD Sender: Remove packet 188580 [07:08:21]ProducePacketName [07:08:21]name=ofd_packets/00188580 [07:08:21]NVStorageDeleteData [07:08:22]OFD Sender: No OFD packet to send [07:08:22]*** Cut start [07:08:22]*** Partial cut [07:08:22]*** CUTSNS_PIN = 1 [07:08:22]*** CUTSNS_PIN = 0 [07:08:23]*** Brake cut motor [07:08:23]Read from MH i2c: 01 [07:08:23]MH_I2C_Read... [07:08:23]*** Stop cut motor [07:08:23]*** Cut end [07:08:23]Read from MH i2c: 01 07 00 [07:08:23]MH_I2C_Read... [07:08:23]Read from MH i2c: 01 07 00 B2 17 00 00 00 00 00 FF 0F DE [07:08:23]process_action close_receipt done [07:08:23]requested_data is exist [07:08:23]produce_requested_data [07:08:23]requested_item fm.sn is exist - process it [07:08:23]wFMCommunicate request_size=4 [07:08:23]MH_SAM_APDU [07:08:23]CAPDU: 80 11 00 00 [07:08:23]Write to MH i2c: E2 08 00 B3 17 80 11 00 00 00 00 00 00 44 [07:08:23]Write i2c OK [07:08:23]MH_I2C_Read... [07:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:23]Read from MH i2c: E2 [07:08:23]MH_I2C_Read... [07:08:23]Read from MH i2c: E2 17 00 [07:08:23]MH_I2C_Read... [07:08:23]Read from MH i2c: E2 17 00 B3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [07:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:08:23]wFMCommunicate OK [07:08:23]requested_item fd.num is exist - process it [07:08:23]SAM_PROTO_GetFieldsCounters [07:08:23]wFMCommunicate request_size=4 [07:08:23]MH_SAM_APDU [07:08:23]CAPDU: 80 13 00 00 [07:08:23]Write to MH i2c: E2 08 00 B4 17 80 13 00 00 00 00 00 00 47 [07:08:23]Write i2c OK [07:08:23]MH_I2C_Read... [07:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:23]Read from MH i2c: E2 [07:08:23]MH_I2C_Read... [07:08:23]Read from MH i2c: E2 62 00 [07:08:23]MH_I2C_Read... [07:08:23]Read from MH i2c: E2 62 00 B4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [07:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:23]wFMCommunicate OK [07:08:23]SAM_PROTO_GetFieldsCounters done [07:08:23]requested_item shift.num is exist - process it [07:08:23]requested_item shift.opened is exist - process it [07:08:23]req_shift_opened [07:08:23]FM_GetShiftState [07:08:23]SAM_PROTO_GetShiftState [07:08:23]wFMCommunicate request_size=4 [07:08:23]MH_SAM_APDU [07:08:23]CAPDU: 80 13 01 00 [07:08:23]Write to MH i2c: E2 08 00 B5 17 80 13 01 00 00 00 00 00 49 [07:08:23]Write i2c OK [07:08:23]MH_I2C_Read... [07:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:23]Read from MH i2c: E2 [07:08:23]MH_I2C_Read... [07:08:23]Read from MH i2c: E2 0E 00 [07:08:23]MH_I2C_Read... [07:08:23]Read from MH i2c: E2 0E 00 B5 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 31 [07:08:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:08:23]wFMCommunicate OK [07:08:23]SAM_PROTO_GetShiftState done [07:08:23]FM_GetShiftState done [07:08:23]req_shift_opened done [07:08:23]requested_item shift.open_date is exist - process it [07:08:23]req_shift_open_date [07:08:23]req_shift_open_date done [07:08:23]produce_requested_data done [07:08:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188580,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:08:23]process_action_free close_receipt [07:08:23]json_value_free [07:08:23]json_value_free done [07:08:23]process_json_proto returns [07:08:23]Send response to host [07:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188580,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:08:23]free response buf [07:08:23]execute_script done [07:08:23]execute_script returns [07:08:23]free content buf [07:08:23]Sock 7.Close socket [07:08:23]Sock 7.Thread stoped [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]accept exits with 9 [07:13:43]New connection [07:13:43]New thread 3066506596 created [07:13:43]Thread 3066649956 joined [07:13:43]Waiting for new connection... [07:13:43] Sock 9.Parse request [07:13:43]Sock 9.Check first char [07:13:43]Sock 9.First char is OK [07:13:43]request: POST /json_proto HTTP/1.0 [07:13:43]Method: POST [07:13:43]URL: /json_proto [07:13:43]Method is POST - this is cgi request [07:13:43]url: /json_proto [07:13:43]query_string will be loaded in cgi processing [07:13:43]execute_cgi json_proto POST (null) [07:13:43]execute_cgi path=json_proto method=POST [07:13:43]POST find Content-Length [07:13:43]Host: 172.17.42.131:8080 [07:13:43]Content-Length: 766 [07:13:43]Content-Type: application/json [07:13:43] [07:13:43]POST finish read [07:13:43]Found Content-Length = 766 [07:13:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:43]execute_script... [07:13:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:43]POST & json_proto [07:13:43]process_json_proto [07:13:43]json parsed OK: [07:13:43]protocol is kg_v1.0 [07:13:43]action value=close_receipt [07:13:43]process_action close_receipt [07:13:43]cmd_close_receipt [07:13:43]MH_GetDate [07:13:43]Write to MH i2c: F0 00 00 B6 17 BC [07:13:43]Write i2c OK [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: F0 [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: F0 09 00 [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: F0 09 00 B6 17 00 2A A2 18 67 A0 18 CA 66 F8 [07:13:43]GetLastDocTimeStamp 1729667302 [07:13:43]current date 1729667626 [07:13:43]FM_GetShiftState [07:13:43]SAM_PROTO_GetShiftState [07:13:43]wFMCommunicate request_size=4 [07:13:43]MH_SAM_APDU [07:13:43]CAPDU: 80 13 01 00 [07:13:43]Write to MH i2c: E2 08 00 B7 17 80 13 01 00 00 00 00 00 4B [07:13:43]Write i2c OK [07:13:43]MH_I2C_Read... [07:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:43]Read from MH i2c: E2 [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: E2 0E 00 [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: E2 0E 00 B7 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 33 [07:13:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:13:43]wFMCommunicate OK [07:13:43]SAM_PROTO_GetShiftState done [07:13:43]FM_GetShiftState done [07:13:43]opened in 1729642525 [07:13:43]opened+sec_in_day 1729728925 [07:13:43]quantity*price = 50041 [07:13:43]sum+1 = 50042 [07:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 39 23.10.2024 07:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188581 ФПД: 273495570902334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071346&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188581&fm=273495570902334&tin=02508201610067®Number=0000000000100030&sum=50041 [07:13:44]StoreToDocumentArchive [07:13:44]shift 462 fd 188581 [07:13:44]save to /storage/0462/doc_00188581 [07:13:44]save last doc name /storage/0462/doc_00188581 to /storage/kkm_last_doc_name [07:13:44]save OK [07:13:44]Clear old archive folders... [07:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:44]tlvbuf is 008F2E20 [07:13:44]SAM_PROTO_ClearQueue [07:13:44]wFMCommunicate request_size=4 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 09 00 00 [07:13:44]Write to MH i2c: E2 08 00 C4 17 80 09 00 00 00 00 00 00 4D [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 C4 17 00 90 00 4F [07:13:44]RAPDU: 90 00 [07:13:44]wFMCommunicate OK [07:13:44]SAM_PROTO_ClearQueue done [07:13:44]KKMCreateOFDPacket [07:13:44]OFDProtocolAddRootSTLVToBuf [07:13:44]FM_MakeSignedData [07:13:44]FM_MakeSignedData [07:13:44]SAM_PROTO_SignData [07:13:44]wFMCommunicate request_size=4 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 0D 01 02 [07:13:44]Write to MH i2c: E2 08 00 C5 17 80 0D 01 02 00 00 00 00 55 [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 C5 17 00 90 00 50 [07:13:44]RAPDU: 90 00 [07:13:44]wFMCommunicate OK [07:13:44]wFMCommunicate request_size=255 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2A A2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E0 02 00 35 04 06 00 F8 [07:13:44]Write to MH i2c: E2 02 01 C6 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2A A2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E0 02 00 35 04 06 00 F8 00 00 DA [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 C6 17 00 90 00 51 [07:13:44]RAPDU: 90 00 [07:13:44]wFMCommunicate OK [07:13:44]wFMCommunicate request_size=10 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 0D 02 02 05 BE 26 59 ED 3E [07:13:44]Write to MH i2c: E2 0D 00 C7 17 80 0D 02 02 05 00 BE 26 59 ED 3E 00 00 CA [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:45]Read from MH i2c: E2 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: E2 03 00 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: E2 03 00 C7 17 00 90 00 52 [07:13:45]RAPDU: 90 00 [07:13:45]wFMCommunicate OK [07:13:45]wFMCommunicate request_size=4 [07:13:45]MH_SAM_APDU [07:13:45]CAPDU: 80 0D 03 02 [07:13:45]Write to MH i2c: E2 08 00 C8 17 80 0D 03 02 00 00 00 00 5A [07:13:45]Write i2c OK [07:13:45]MH_I2C_Read... [07:13:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:45]Read from MH i2c: E2 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: E2 0B 00 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: E2 0B 00 C8 17 00 8B 4B 67 1B 35 30 38 59 90 00 A9 [07:13:45]RAPDU: 8B 4B 67 1B 35 30 38 59 90 00 [07:13:45]wFMCommunicate OK [07:13:45]SAM_PROTO_SignData done [07:13:45]FM_MakeSignedData done [07:13:45]CreateOFDProtocolMessage [07:13:45]wFMCommunicate request_size=4 [07:13:45]MH_SAM_APDU [07:13:45]CAPDU: 80 11 00 00 [07:13:45]Write to MH i2c: E2 08 00 C9 17 80 11 00 00 00 00 00 00 5A [07:13:45]Write i2c OK [07:13:45]MH_I2C_Read... [07:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:45]Read from MH i2c: E2 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: E2 17 00 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: E2 17 00 C9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [07:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:13:45]wFMCommunicate OK [07:13:45]CreateOFDProtocolMessage done [07:13:45]OFDSenderStorePacket 188581 [07:13:45]StoreOFDPacket docnum=188581 [07:13:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BB D0 07 01 41 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2A A2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E0 02 00 35 04 06 00 F8 BE 26 59 ED 3E 8B 4B 67 1B 35 30 38 59 [07:13:45]CheckFolder [07:13:45]dirname=/storage/ofd_packets [07:13:45]CheckFolder done [07:13:45]ProducePacketName [07:13:45]name=ofd_packets/00188581 [07:13:45]NVStorageSaveData ofd_packets/00188581 [07:13:45]File name is /storage/ofd_packets/00188581 [07:13:45]Write 301 bytes [07:13:45]NVStorageSaveData done [07:13:45]OFDSenderStorePacket done [07:13:45]KKMCreateOFDPacket done [07:13:45]NVStorageSaveData kkm_last_timestamp [07:13:45]File name is /storage/kkm_last_timestamp [07:13:45]Write 4 bytes [07:13:45]NVStorageSaveData done [07:13:45]ExternCall_PrintAddStr [07:13:45]wPrintStart [07:13:45]Write to MH i2c: 01 00 00 CA 17 E1 [07:13:45]Write i2c OK [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: 01 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: 01 07 00 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: 01 07 00 CA 17 00 00 00 00 00 FF 0F F6 [07:13:45]RasterBufferAndPrint [07:13:45]line Счет N : (1)210641 [07:13:45]line ИНН: 02508201610067 [07:13:45]line Контрольно-Кассовый Чек [07:13:45]line ПРОДАЖА [07:13:45]line ТРК (МРК, ГНК) : 42 [07:13:45]line Товар: 2710124130 [07:13:45]line Аи-92-К-3 [07:13:45]line 7.480 * 66.90 [07:13:45]line = 500.41 [07:13:45]line НДС 12% НСП 1% [07:13:45]line > о реализуемом товаре [07:13:45]line ИТОГО: 500.41 [07:13:45]line НСП 1% : 4.43 [07:13:45]line НДС 12% : 53.14 [07:13:45]line Наличными: 0.00 [07:13:45]line Безнал.: 500.41 [07:13:45]line Место: АЗС № 86 "Партнер Нефть" [07:13:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:13:45]line СНО: Общий режим [07:13:45]line Чек 39 23.10.2024 07:13 [07:13:45]line Смена: 462 ФФД: 1.0 [07:13:45]line ЗНМ: 0300000155 [07:13:45]line РНМ: 0000000000100030 [07:13:45]line Версия ККМ: 001 [07:13:45]line Платежная система: Mbank [07:13:45]line ФМ: 0000000000965340 [07:13:45]line ФД: 188581 [07:13:45]line ФПД: 273495570902334 [07:13:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071346&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188581&fm=273495570902334&tin=02508201610067®Number=0000000000100030&sum=50041 [07:13:45]written 0, free lines is 4095 [07:13:45]OFD Sender: Processing packet 188581 [packets to send 1062, broken 1061] [07:13:45]ProducePacketName [07:13:45]name=ofd_packets/00188581 [07:13:45]OFD Sender: To server: pG, [07:13:45]CommunicateWithHost lk.salyk.kg:30040 [07:13:45]ConnectInit lk.salyk.kg [07:13:45]Connected sock=11 [07:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BB D0 07 01 41 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2A A2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E0 02 00 35 04 06 00 F8 BE 26 59 ED 3E 8B 4B 67 1B 35 30 38 59 [07:13:45]Write to MH i2c: 01 00 00 F3 17 0A [07:13:45]Write i2c OK [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: 01 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: 01 07 00 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: 01 07 00 F3 17 00 00 00 00 00 84 0C A1 [07:13:45]RasterBufferAndPrint [07:13:45]line [07:13:45]line [07:13:45]line [07:13:45]line [07:13:45]line [07:13:45]written 0, free lines is 3208 [07:13:45]MH_Cut [07:13:45]Write to MH i2c: D1 01 00 FA 17 01 E3 [07:13:45]Write i2c OK [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: D1 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: D1 01 00 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: D1 01 00 FA 17 00 E2 [07:13:45]Write to MH i2c: 01 00 00 FB 17 12 [07:13:45]Write i2c OK [07:13:45]MH_I2C_Read... [07:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EB 2C 47 00 35 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 36 35 33 34 30 10 04 04 00 A5 E0 02 00 F4 03 04 00 15 4C 18 67 B6 04 01 00 00 66 77 76 7A 3F DF 46 6C [07:13:45]CommunicateWithHost err = 0 [07:13:45]CheckOFDResponse [07:13:45]1017 (14) - 77093643461234 [07:13:45]1041 (16) - 0000000000965340 [07:13:45]1040 (4) - 188581 [07:13:45]1012 (4) - 23.10.2024 01:06 [07:13:45]1206 (1) - 0 [07:13:45]OFD Sender: Remove packet 188581 [07:13:45]ProducePacketName [07:13:45]name=ofd_packets/00188581 [07:13:45]NVStorageDeleteData [07:13:46]OFD Sender: No OFD packet to send [07:13:46]*** Cut start [07:13:46]*** Partial cut [07:13:46]*** CUTSNS_PIN = 1 [07:13:46]*** CUTSNS_PIN = 0 [07:13:47]*** Brake cut motor [07:13:47]Read from MH i2c: 01 [07:13:47]MH_I2C_Read... [07:13:47]*** Stop cut motor [07:13:47]*** Cut end [07:13:47]Read from MH i2c: 01 07 00 [07:13:47]MH_I2C_Read... [07:13:47]Read from MH i2c: 01 07 00 FB 17 00 00 00 00 00 FF 0F 27 [07:13:47]process_action close_receipt done [07:13:47]requested_data is exist [07:13:47]produce_requested_data [07:13:47]requested_item fm.sn is exist - process it [07:13:47]wFMCommunicate request_size=4 [07:13:47]MH_SAM_APDU [07:13:47]CAPDU: 80 11 00 00 [07:13:47]Write to MH i2c: E2 08 00 FC 17 80 11 00 00 00 00 00 00 8D [07:13:47]Write i2c OK [07:13:47]MH_I2C_Read... [07:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:47]Read from MH i2c: E2 [07:13:47]MH_I2C_Read... [07:13:47]Read from MH i2c: E2 17 00 [07:13:47]MH_I2C_Read... [07:13:47]Read from MH i2c: E2 17 00 FC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [07:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:13:47]wFMCommunicate OK [07:13:47]requested_item fd.num is exist - process it [07:13:47]SAM_PROTO_GetFieldsCounters [07:13:47]wFMCommunicate request_size=4 [07:13:47]MH_SAM_APDU [07:13:47]CAPDU: 80 13 00 00 [07:13:47]Write to MH i2c: E2 08 00 FD 17 80 13 00 00 00 00 00 00 90 [07:13:47]Write i2c OK [07:13:47]MH_I2C_Read... [07:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:47]Read from MH i2c: E2 [07:13:47]MH_I2C_Read... [07:13:47]Read from MH i2c: E2 62 00 [07:13:47]MH_I2C_Read... [07:13:47]Read from MH i2c: E2 62 00 FD 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [07:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:47]wFMCommunicate OK [07:13:47]SAM_PROTO_GetFieldsCounters done [07:13:47]requested_item shift.num is exist - process it [07:13:47]requested_item shift.opened is exist - process it [07:13:47]req_shift_opened [07:13:47]FM_GetShiftState [07:13:47]SAM_PROTO_GetShiftState [07:13:47]wFMCommunicate request_size=4 [07:13:47]MH_SAM_APDU [07:13:47]CAPDU: 80 13 01 00 [07:13:47]Write to MH i2c: E2 08 00 FE 17 80 13 01 00 00 00 00 00 92 [07:13:47]Write i2c OK [07:13:47]MH_I2C_Read... [07:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:47]Read from MH i2c: E2 [07:13:47]MH_I2C_Read... [07:13:47]Read from MH i2c: E2 0E 00 [07:13:47]MH_I2C_Read... [07:13:47]Read from MH i2c: E2 0E 00 FE 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7A [07:13:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:13:47]wFMCommunicate OK [07:13:47]SAM_PROTO_GetShiftState done [07:13:47]FM_GetShiftState done [07:13:47]req_shift_opened done [07:13:47]requested_item shift.open_date is exist - process it [07:13:47]req_shift_open_date [07:13:47]req_shift_open_date done [07:13:47]produce_requested_data done [07:13:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188581,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:13:47]process_action_free close_receipt [07:13:47]json_value_free [07:13:47]json_value_free done [07:13:47]process_json_proto returns [07:13:47]Send response to host [07:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188581,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:13:47]free response buf [07:13:47]execute_script done [07:13:47]execute_script returns [07:13:47]free content buf [07:13:47]Sock 9.Close socket [07:13:47]Sock 9.Thread stoped [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:36]accept exits with 7 [07:15:36]New connection [07:15:36]New thread 3066649956 created [07:15:36]Thread 3066506596 joined [07:15:36]Waiting for new connection... [07:15:36] Sock 7.Parse request [07:15:36]Sock 7.Check first char [07:15:37]Sock 7.First char is OK [07:15:37]request: POST /json_proto HTTP/1.0 [07:15:37]Method: POST [07:15:37]URL: /json_proto [07:15:37]Method is POST - this is cgi request [07:15:37]url: /json_proto [07:15:37]query_string will be loaded in cgi processing [07:15:37]execute_cgi json_proto POST (null) [07:15:37]execute_cgi path=json_proto method=POST [07:15:37]POST find Content-Length [07:15:37]Host: 172.17.42.131:8080 [07:15:37]Content-Length: 688 [07:15:37]Content-Type: application/json [07:15:37] [07:15:37]POST finish read [07:15:37]Found Content-Length = 688 [07:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:37]execute_script... [07:15:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:37]POST & json_proto [07:15:37]process_json_proto [07:15:37]json parsed OK: [07:15:37]protocol is kg_v1.0 [07:15:37]action value=close_receipt [07:15:37]process_action close_receipt [07:15:37]cmd_close_receipt [07:15:37]MH_GetDate [07:15:37]Write to MH i2c: F0 00 00 FF 17 05 [07:15:37]Write i2c OK [07:15:37]MH_I2C_Read... [07:15:37]Read from MH i2c: F0 [07:15:37]MH_I2C_Read... [07:15:37]Read from MH i2c: F0 09 00 [07:15:37]MH_I2C_Read... [07:15:37]Read from MH i2c: F0 09 00 FF 17 00 9B A2 18 67 A0 18 CA 66 B2 [07:15:37]GetLastDocTimeStamp 1729667626 [07:15:37]current date 1729667739 [07:15:37]FM_GetShiftState [07:15:37]SAM_PROTO_GetShiftState [07:15:37]wFMCommunicate request_size=4 [07:15:37]MH_SAM_APDU [07:15:37]CAPDU: 80 13 01 00 [07:15:37]Write to MH i2c: E2 08 00 00 18 80 13 01 00 00 00 00 00 95 [07:15:37]Write i2c OK [07:15:37]MH_I2C_Read... [07:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:37]Read from MH i2c: E2 [07:15:37]MH_I2C_Read... [07:15:37]Read from MH i2c: E2 0E 00 [07:15:37]MH_I2C_Read... [07:15:37]Read from MH i2c: E2 0E 00 00 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7D [07:15:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:15:37]wFMCommunicate OK [07:15:37]SAM_PROTO_GetShiftState done [07:15:37]FM_GetShiftState done [07:15:37]opened in 1729642525 [07:15:37]opened+sec_in_day 1729728925 [07:15:37]quantity*price = 200025 [07:15:37]sum+1 = 200026 [07:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 40 23.10.2024 07:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188582 ФПД: 195895180206089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071539&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188582&fm=195895180206089&tin=02508201610067®Number=0000000000100030&sum=200000 [07:15:38]StoreToDocumentArchive [07:15:38]shift 462 fd 188582 [07:15:38]save to /storage/0462/doc_00188582 [07:15:38]save last doc name /storage/0462/doc_00188582 to /storage/kkm_last_doc_name [07:15:38]save OK [07:15:38]Clear old archive folders... [07:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:15:38]tlvbuf is B6E5E380 [07:15:38]SAM_PROTO_ClearQueue [07:15:38]wFMCommunicate request_size=4 [07:15:38]MH_SAM_APDU [07:15:38]CAPDU: 80 09 00 00 [07:15:38]Write to MH i2c: E2 08 00 0D 18 80 09 00 00 00 00 00 00 97 [07:15:38]Write i2c OK [07:15:38]MH_I2C_Read... [07:15:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:38]Read from MH i2c: E2 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 03 00 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 03 00 0D 18 00 90 00 99 [07:15:38]RAPDU: 90 00 [07:15:38]wFMCommunicate OK [07:15:38]SAM_PROTO_ClearQueue done [07:15:38]KKMCreateOFDPacket [07:15:38]OFDProtocolAddRootSTLVToBuf [07:15:38]FM_MakeSignedData [07:15:38]FM_MakeSignedData [07:15:38]SAM_PROTO_SignData [07:15:38]wFMCommunicate request_size=4 [07:15:38]MH_SAM_APDU [07:15:38]CAPDU: 80 0D 01 02 [07:15:38]Write to MH i2c: E2 08 00 0E 18 80 0D 01 02 00 00 00 00 9F [07:15:38]Write i2c OK [07:15:38]MH_I2C_Read... [07:15:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:38]Read from MH i2c: E2 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 03 00 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 03 00 0E 18 00 90 00 9A [07:15:38]RAPDU: 90 00 [07:15:38]wFMCommunicate OK [07:15:38]wFMCommunicate request_size=255 [07:15:38]MH_SAM_APDU [07:15:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 9B A2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E0 02 [07:15:38]Write to MH i2c: E2 02 01 0F 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 9B A2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E0 02 00 00 7B [07:15:38]Write i2c OK [07:15:38]MH_I2C_Read... [07:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:38]Read from MH i2c: E2 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 03 00 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 03 00 0F 18 00 90 00 9B [07:15:38]RAPDU: 90 00 [07:15:38]wFMCommunicate OK [07:15:38]wFMCommunicate request_size=16 [07:15:38]MH_SAM_APDU [07:15:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B2 2A 66 A1 20 09 [07:15:38]Write to MH i2c: E2 13 00 10 18 80 0D 02 02 0B 00 00 35 04 06 00 B2 2A 66 A1 20 09 00 00 03 [07:15:38]Write i2c OK [07:15:38]MH_I2C_Read... [07:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:38]Read from MH i2c: E2 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 03 00 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 03 00 10 18 00 90 00 9C [07:15:38]RAPDU: 90 00 [07:15:38]wFMCommunicate OK [07:15:38]wFMCommunicate request_size=4 [07:15:38]MH_SAM_APDU [07:15:38]CAPDU: 80 0D 03 02 [07:15:38]Write to MH i2c: E2 08 00 11 18 80 0D 03 02 00 00 00 00 A4 [07:15:38]Write i2c OK [07:15:38]MH_I2C_Read... [07:15:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:38]Read from MH i2c: E2 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 0B 00 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 0B 00 11 18 00 27 6D 57 68 FF 8E C2 1F 90 00 66 [07:15:38]RAPDU: 27 6D 57 68 FF 8E C2 1F 90 00 [07:15:38]wFMCommunicate OK [07:15:38]SAM_PROTO_SignData done [07:15:38]FM_MakeSignedData done [07:15:38]CreateOFDProtocolMessage [07:15:38]wFMCommunicate request_size=4 [07:15:38]MH_SAM_APDU [07:15:38]CAPDU: 80 11 00 00 [07:15:38]Write to MH i2c: E2 08 00 12 18 80 11 00 00 00 00 00 00 A4 [07:15:38]Write i2c OK [07:15:38]MH_I2C_Read... [07:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:38]Read from MH i2c: E2 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 17 00 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: E2 17 00 12 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [07:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:15:38]wFMCommunicate OK [07:15:38]CreateOFDProtocolMessage done [07:15:38]OFDSenderStorePacket 188582 [07:15:38]StoreOFDPacket docnum=188582 [07:15:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 13 61 0D 01 59 D7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 9B A2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E0 02 00 35 04 06 00 B2 2A 66 A1 20 09 27 6D 57 68 FF 8E C2 1F [07:15:38]CheckFolder [07:15:38]dirname=/storage/ofd_packets [07:15:38]CheckFolder done [07:15:38]ProducePacketName [07:15:38]name=ofd_packets/00188582 [07:15:38]NVStorageSaveData ofd_packets/00188582 [07:15:38]File name is /storage/ofd_packets/00188582 [07:15:38]Write 307 bytes [07:15:38]NVStorageSaveData done [07:15:38]OFDSenderStorePacket done [07:15:38]KKMCreateOFDPacket done [07:15:38]NVStorageSaveData kkm_last_timestamp [07:15:38]File name is /storage/kkm_last_timestamp [07:15:38]Write 4 bytes [07:15:38]NVStorageSaveData done [07:15:38]ExternCall_PrintAddStr [07:15:38]wPrintStart [07:15:38]Write to MH i2c: 01 00 00 13 18 2B [07:15:38]Write i2c OK [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: 01 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: 01 07 00 [07:15:38]MH_I2C_Read... [07:15:38]Read from MH i2c: 01 07 00 13 18 00 00 00 00 00 FF 0F 40 [07:15:38]RasterBufferAndPrint [07:15:38]line Счет N : (1)210634 [07:15:38]line ИНН: 02508201610067 [07:15:38]line Контрольно-Кассовый Чек [07:15:38]line ПРОДАЖА [07:15:38]line ТРК (МРК, ГНК) : 11 [07:15:38]line Товар: 2710194210 [07:15:38]line D-ENERGY ДТ-К-5 [07:15:38]line 25.910 * 77.20 [07:15:38]line = 2000.25 [07:15:38]line НДС 12% НСП 1% [07:15:38]line > о реализуемом товаре [07:15:38]line ОКРУГЛЕНИЕ: -0.25 [07:15:38]line ИТОГО: 2000.00 [07:15:38]line Внесено: 2000.00 [07:15:38]line СДАЧА: 0.00 [07:15:38]line НСП 1% : 17.70 [07:15:38]line НДС 12% : 212.42 [07:15:38]line Наличными: 2000.00 [07:15:38]line Безнал.: 0.00 [07:15:38]line Место: АЗС № 86 "Партнер Нефть" [07:15:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:15:38]line СНО: Общий режим [07:15:38]line Чек 40 23.10.2024 07:15 [07:15:38]line Смена: 462 ФФД: 1.0 [07:15:38]line ЗНМ: 0300000155 [07:15:38]line РНМ: 0000000000100030 [07:15:38]line Версия ККМ: 001 [07:15:38]line ФМ: 0000000000965340 [07:15:38]line ФД: 188582 [07:15:38]line ФПД: 195895180206089 [07:15:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071539&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188582&fm=195895180206089&tin=02508201610067®Number=0000000000100030&sum=200000 [07:15:38]written 0, free lines is 4095 [07:15:38]OFD Sender: Processing packet 188582 [packets to send 1062, broken 1061] [07:15:38]ProducePacketName [07:15:38]name=ofd_packets/00188582 [07:15:38]OFD Sender: To server: pG, [07:15:38]CommunicateWithHost lk.salyk.kg:30040 [07:15:38]ConnectInit lk.salyk.kg [07:15:39]Connected sock=10 [07:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 13 61 0D 01 59 D7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 9B A2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E0 02 00 35 04 06 00 B2 2A 66 A1 20 09 27 6D 57 68 FF 8E C2 1F [07:15:39]Write to MH i2c: 01 00 00 3E 18 56 [07:15:39]Write i2c OK [07:15:39]MH_I2C_Read... [07:15:39]Read from MH i2c: 01 [07:15:39]MH_I2C_Read... [07:15:39]Read from MH i2c: 01 07 00 [07:15:39]MH_I2C_Read... [07:15:39]Read from MH i2c: 01 07 00 3E 18 00 00 00 00 00 58 0C C1 [07:15:39]RasterBufferAndPrint [07:15:39]line [07:15:39]line [07:15:39]line [07:15:39]line [07:15:39]line [07:15:39]written 0, free lines is 3164 [07:15:39]MH_Cut [07:15:39]Write to MH i2c: D1 01 00 45 18 01 2F [07:15:39]Write i2c OK [07:15:39]MH_I2C_Read... [07:15:39]Read from MH i2c: D1 [07:15:39]MH_I2C_Read... [07:15:39]Read from MH i2c: D1 01 00 [07:15:39]MH_I2C_Read... [07:15:39]Read from MH i2c: D1 01 00 45 18 00 2E [07:15:39]Write to MH i2c: 01 00 00 46 18 5E [07:15:39]Write i2c OK [07:15:39]MH_I2C_Read... [07:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F 9C 47 00 4B 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E0 02 00 F4 03 04 00 87 4C 18 67 B6 04 01 00 00 40 B0 0A D3 2C F7 5D EB [07:15:39]CommunicateWithHost err = 0 [07:15:39]CheckOFDResponse [07:15:39]1017 (14) - 77093643461234 [07:15:39]1041 (16) - 0000000000965340 [07:15:39]1040 (4) - 188582 [07:15:39]1012 (4) - 23.10.2024 01:08 [07:15:39]1206 (1) - 0 [07:15:39]OFD Sender: Remove packet 188582 [07:15:39]ProducePacketName [07:15:39]name=ofd_packets/00188582 [07:15:39]NVStorageDeleteData [07:15:39]OFD Sender: No OFD packet to send [07:15:40]*** Cut start [07:15:40]*** Partial cut [07:15:40]*** CUTSNS_PIN = 1 [07:15:40]*** CUTSNS_PIN = 0 [07:15:40]*** Brake cut motor [07:15:41]Read from MH i2c: 01 [07:15:41]MH_I2C_Read... [07:15:41]*** Stop cut motor [07:15:41]*** Cut end [07:15:41]Read from MH i2c: 01 07 00 [07:15:41]MH_I2C_Read... [07:15:41]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 FF 0F 73 [07:15:41]process_action close_receipt done [07:15:41]requested_data is exist [07:15:41]produce_requested_data [07:15:41]requested_item fm.sn is exist - process it [07:15:41]wFMCommunicate request_size=4 [07:15:41]MH_SAM_APDU [07:15:41]CAPDU: 80 11 00 00 [07:15:41]Write to MH i2c: E2 08 00 47 18 80 11 00 00 00 00 00 00 D9 [07:15:41]Write i2c OK [07:15:41]MH_I2C_Read... [07:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:41]Read from MH i2c: E2 [07:15:41]MH_I2C_Read... [07:15:41]Read from MH i2c: E2 17 00 [07:15:41]MH_I2C_Read... [07:15:41]Read from MH i2c: E2 17 00 47 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [07:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:15:41]wFMCommunicate OK [07:15:41]requested_item fd.num is exist - process it [07:15:41]SAM_PROTO_GetFieldsCounters [07:15:41]wFMCommunicate request_size=4 [07:15:41]MH_SAM_APDU [07:15:41]CAPDU: 80 13 00 00 [07:15:41]Write to MH i2c: E2 08 00 48 18 80 13 00 00 00 00 00 00 DC [07:15:41]Write i2c OK [07:15:41]MH_I2C_Read... [07:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:41]Read from MH i2c: E2 [07:15:41]MH_I2C_Read... [07:15:41]Read from MH i2c: E2 62 00 [07:15:41]MH_I2C_Read... [07:15:41]Read from MH i2c: E2 62 00 48 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [07:15:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:15:41]wFMCommunicate OK [07:15:41]SAM_PROTO_GetFieldsCounters done [07:15:41]requested_item shift.num is exist - process it [07:15:41]requested_item shift.opened is exist - process it [07:15:41]req_shift_opened [07:15:41]FM_GetShiftState [07:15:41]SAM_PROTO_GetShiftState [07:15:41]wFMCommunicate request_size=4 [07:15:41]MH_SAM_APDU [07:15:41]CAPDU: 80 13 01 00 [07:15:41]Write to MH i2c: E2 08 00 49 18 80 13 01 00 00 00 00 00 DE [07:15:41]Write i2c OK [07:15:41]MH_I2C_Read... [07:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:41]Read from MH i2c: E2 [07:15:41]MH_I2C_Read... [07:15:41]Read from MH i2c: E2 0E 00 [07:15:41]MH_I2C_Read... [07:15:41]Read from MH i2c: E2 0E 00 49 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C6 [07:15:41]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:15:41]wFMCommunicate OK [07:15:41]SAM_PROTO_GetShiftState done [07:15:41]FM_GetShiftState done [07:15:41]req_shift_opened done [07:15:41]requested_item shift.open_date is exist - process it [07:15:41]req_shift_open_date [07:15:41]req_shift_open_date done [07:15:41]produce_requested_data done [07:15:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188582,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:15:41]process_action_free close_receipt [07:15:41]json_value_free [07:15:41]json_value_free done [07:15:41]process_json_proto returns [07:15:41]Send response to host [07:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188582,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:15:41]free response buf [07:15:41]execute_script done [07:15:41]execute_script returns [07:15:41]free content buf [07:15:41]Sock 7.Close socket [07:15:41]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:09]accept exits with 9 [07:19:09]New connection [07:19:09]New thread 3066506596 created [07:19:09]Thread 3066649956 joined [07:19:09]Waiting for new connection... [07:19:09] Sock 9.Parse request [07:19:09]Sock 9.Check first char [07:19:09]Sock 9.First char is OK [07:19:09]request: POST /json_proto HTTP/1.0 [07:19:09]Method: POST [07:19:09]URL: /json_proto [07:19:09]Method is POST - this is cgi request [07:19:09]url: /json_proto [07:19:09]query_string will be loaded in cgi processing [07:19:09]execute_cgi json_proto POST (null) [07:19:09]execute_cgi path=json_proto method=POST [07:19:09]POST find Content-Length [07:19:09]Host: 172.17.42.131:8080 [07:19:09]Content-Length: 769 [07:19:09]Content-Type: application/json [07:19:09] [07:19:09]POST finish read [07:19:09]Found Content-Length = 769 [07:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1600.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:09]execute_script... [07:19:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1600.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:09]POST & json_proto [07:19:09]process_json_proto [07:19:09]json parsed OK: [07:19:09]protocol is kg_v1.0 [07:19:09]action value=close_receipt [07:19:09]process_action close_receipt [07:19:09]cmd_close_receipt [07:19:09]MH_GetDate [07:19:09]Write to MH i2c: F0 00 00 4A 18 51 [07:19:09]Write i2c OK [07:19:09]MH_I2C_Read... [07:19:09]Read from MH i2c: F0 [07:19:09]MH_I2C_Read... [07:19:09]Read from MH i2c: F0 09 00 [07:19:09]MH_I2C_Read... [07:19:09]Read from MH i2c: F0 09 00 4A 18 00 70 A3 18 67 A0 18 CA 66 D4 [07:19:09]GetLastDocTimeStamp 1729667739 [07:19:09]current date 1729667952 [07:19:09]FM_GetShiftState [07:19:09]SAM_PROTO_GetShiftState [07:19:09]wFMCommunicate request_size=4 [07:19:09]MH_SAM_APDU [07:19:09]CAPDU: 80 13 01 00 [07:19:09]Write to MH i2c: E2 08 00 4B 18 80 13 01 00 00 00 00 00 E0 [07:19:09]Write i2c OK [07:19:09]MH_I2C_Read... [07:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:09]Read from MH i2c: E2 [07:19:09]MH_I2C_Read... [07:19:09]Read from MH i2c: E2 0E 00 [07:19:09]MH_I2C_Read... [07:19:09]Read from MH i2c: E2 0E 00 4B 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C8 [07:19:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:19:09]wFMCommunicate OK [07:19:09]SAM_PROTO_GetShiftState done [07:19:09]FM_GetShiftState done [07:19:09]opened in 1729642525 [07:19:09]opened+sec_in_day 1729728925 [07:19:09]quantity*price = 160024 [07:19:09]sum+1 = 160026 [07:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.25 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 0.00 Безнал.: 1600.25 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 41 23.10.2024 07:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188583 ФПД: 63810581470910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071912&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188583&fm=63810581470910&tin=02508201610067®Number=0000000000100030&sum=160025 [07:19:11]StoreToDocumentArchive [07:19:11]shift 462 fd 188583 [07:19:11]save to /storage/0462/doc_00188583 [07:19:11]save last doc name /storage/0462/doc_00188583 to /storage/kkm_last_doc_name [07:19:11]save OK [07:19:11]Clear old archive folders... [07:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:11]tlvbuf is 008D1940 [07:19:11]SAM_PROTO_ClearQueue [07:19:11]wFMCommunicate request_size=4 [07:19:11]MH_SAM_APDU [07:19:11]CAPDU: 80 09 00 00 [07:19:11]Write to MH i2c: E2 08 00 58 18 80 09 00 00 00 00 00 00 E2 [07:19:11]Write i2c OK [07:19:11]MH_I2C_Read... [07:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:11]Read from MH i2c: E2 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 03 00 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 03 00 58 18 00 90 00 E4 [07:19:11]RAPDU: 90 00 [07:19:11]wFMCommunicate OK [07:19:11]SAM_PROTO_ClearQueue done [07:19:11]KKMCreateOFDPacket [07:19:11]OFDProtocolAddRootSTLVToBuf [07:19:11]FM_MakeSignedData [07:19:11]FM_MakeSignedData [07:19:11]SAM_PROTO_SignData [07:19:11]wFMCommunicate request_size=4 [07:19:11]MH_SAM_APDU [07:19:11]CAPDU: 80 0D 01 02 [07:19:11]Write to MH i2c: E2 08 00 59 18 80 0D 01 02 00 00 00 00 EA [07:19:11]Write i2c OK [07:19:11]MH_I2C_Read... [07:19:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:11]Read from MH i2c: E2 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 03 00 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 03 00 59 18 00 90 00 E5 [07:19:11]RAPDU: 90 00 [07:19:11]wFMCommunicate OK [07:19:11]wFMCommunicate request_size=255 [07:19:11]MH_SAM_APDU [07:19:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 70 A3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E0 02 00 35 04 06 00 3A [07:19:11]Write to MH i2c: E2 02 01 5A 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 70 A3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E0 02 00 35 04 06 00 3A 00 00 03 [07:19:11]Write i2c OK [07:19:11]MH_I2C_Read... [07:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:11]Read from MH i2c: E2 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 03 00 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 03 00 5A 18 00 90 00 E6 [07:19:11]RAPDU: 90 00 [07:19:11]wFMCommunicate OK [07:19:11]wFMCommunicate request_size=10 [07:19:11]MH_SAM_APDU [07:19:11]CAPDU: 80 0D 02 02 05 09 0F 0A 9E BE [07:19:11]Write to MH i2c: E2 0D 00 5B 18 80 0D 02 02 05 00 09 0F 0A 9E BE 00 00 75 [07:19:11]Write i2c OK [07:19:11]MH_I2C_Read... [07:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:11]Read from MH i2c: E2 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 03 00 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 03 00 5B 18 00 90 00 E7 [07:19:11]RAPDU: 90 00 [07:19:11]wFMCommunicate OK [07:19:11]wFMCommunicate request_size=4 [07:19:11]MH_SAM_APDU [07:19:11]CAPDU: 80 0D 03 02 [07:19:11]Write to MH i2c: E2 08 00 5C 18 80 0D 03 02 00 00 00 00 EF [07:19:11]Write i2c OK [07:19:11]MH_I2C_Read... [07:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:11]Read from MH i2c: E2 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 0B 00 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 0B 00 5C 18 00 42 C3 39 8F 41 BB B2 C2 90 00 2D [07:19:11]RAPDU: 42 C3 39 8F 41 BB B2 C2 90 00 [07:19:11]wFMCommunicate OK [07:19:11]SAM_PROTO_SignData done [07:19:11]FM_MakeSignedData done [07:19:11]CreateOFDProtocolMessage [07:19:11]wFMCommunicate request_size=4 [07:19:11]MH_SAM_APDU [07:19:11]CAPDU: 80 11 00 00 [07:19:11]Write to MH i2c: E2 08 00 5D 18 80 11 00 00 00 00 00 00 EF [07:19:11]Write i2c OK [07:19:11]MH_I2C_Read... [07:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:11]Read from MH i2c: E2 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 17 00 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: E2 17 00 5D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [07:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:19:11]wFMCommunicate OK [07:19:11]CreateOFDProtocolMessage done [07:19:11]OFDSenderStorePacket 188583 [07:19:11]StoreOFDPacket docnum=188583 [07:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6E 03 07 01 D0 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 70 A3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E0 02 00 35 04 06 00 3A 09 0F 0A 9E BE 42 C3 39 8F 41 BB B2 C2 [07:19:11]CheckFolder [07:19:11]dirname=/storage/ofd_packets [07:19:11]CheckFolder done [07:19:11]ProducePacketName [07:19:11]name=ofd_packets/00188583 [07:19:11]NVStorageSaveData ofd_packets/00188583 [07:19:11]File name is /storage/ofd_packets/00188583 [07:19:11]Write 301 bytes [07:19:11]NVStorageSaveData done [07:19:11]OFDSenderStorePacket done [07:19:11]KKMCreateOFDPacket done [07:19:11]NVStorageSaveData kkm_last_timestamp [07:19:11]File name is /storage/kkm_last_timestamp [07:19:11]Write 4 bytes [07:19:11]NVStorageSaveData done [07:19:11]ExternCall_PrintAddStr [07:19:11]wPrintStart [07:19:11]Write to MH i2c: 01 00 00 5E 18 76 [07:19:11]Write i2c OK [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: 01 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: 01 07 00 [07:19:11]MH_I2C_Read... [07:19:11]Read from MH i2c: 01 07 00 5E 18 00 00 00 00 00 FF 0F 8B [07:19:11]RasterBufferAndPrint [07:19:11]line Счет N : (1)210642 [07:19:11]line ИНН: 02508201610067 [07:19:11]line Контрольно-Кассовый Чек [07:19:11]line ПРОДАЖА [07:19:11]line ТРК (МРК, ГНК) : 12 [07:19:11]line Товар: 2710124130 [07:19:11]line Аи-92-К-3 [07:19:11]line 23.920 * 66.90 [07:19:11]line = 1600.25 [07:19:11]line НДС 12% НСП 1% [07:19:11]line > о реализуемом товаре [07:19:11]line ИТОГО: 1600.25 [07:19:11]line НСП 1% : 14.16 [07:19:11]line НДС 12% : 169.94 [07:19:11]line Наличными: 0.00 [07:19:11]line Безнал.: 1600.25 [07:19:11]line Место: АЗС № 86 "Партнер Нефть" [07:19:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:19:11]line СНО: Общий режим [07:19:11]line Чек 41 23.10.2024 07:19 [07:19:11]line Смена: 462 ФФД: 1.0 [07:19:11]line ЗНМ: 0300000155 [07:19:11]line РНМ: 0000000000100030 [07:19:11]line Версия ККМ: 001 [07:19:11]line Платежная система: Mbank [07:19:11]line ФМ: 0000000000965340 [07:19:11]line ФД: 188583 [07:19:11]line ФПД: 63810581470910 [07:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071912&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188583&fm=63810581470910&tin=02508201610067®Number=0000000000100030&sum=160025 [07:19:11]written 0, free lines is 4095 [07:19:11]OFD Sender: Processing packet 188583 [packets to send 1062, broken 1061] [07:19:11]ProducePacketName [07:19:11]name=ofd_packets/00188583 [07:19:11]OFD Sender: To server: pG, [07:19:11]CommunicateWithHost lk.salyk.kg:30040 [07:19:11]ConnectInit lk.salyk.kg [07:19:12]Write to MH i2c: 01 00 00 87 18 9F [07:19:12]Write i2c OK [07:19:12]MH_I2C_Read... [07:19:12]Read from MH i2c: 01 [07:19:12]MH_I2C_Read... [07:19:12]Read from MH i2c: 01 07 00 [07:19:12]MH_I2C_Read... [07:19:12]Read from MH i2c: 01 07 00 87 18 00 00 00 00 00 86 0C 38 [07:19:12]RasterBufferAndPrint [07:19:12]line [07:19:12]line [07:19:12]line [07:19:12]line [07:19:12]line [07:19:12]written 0, free lines is 3210 [07:19:12]MH_Cut [07:19:12]Write to MH i2c: D1 01 00 8E 18 01 78 [07:19:12]Write i2c OK [07:19:12]MH_I2C_Read... [07:19:12]Read from MH i2c: D1 [07:19:12]MH_I2C_Read... [07:19:12]Read from MH i2c: D1 01 00 [07:19:12]MH_I2C_Read... [07:19:12]Read from MH i2c: D1 01 00 8E 18 00 77 [07:19:12]Write to MH i2c: 01 00 00 8F 18 A7 [07:19:12]Write i2c OK [07:19:12]MH_I2C_Read... [07:19:13]*** Cut start [07:19:13]*** Partial cut [07:19:13]*** CUTSNS_PIN = 1 [07:19:13]*** CUTSNS_PIN = 0 [07:19:13]*** Brake cut motor [07:19:13]Read from MH i2c: 01 [07:19:13]MH_I2C_Read... [07:19:13]*** Stop cut motor [07:19:13]*** Cut end [07:19:13]Read from MH i2c: 01 07 00 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: 01 07 00 8F 18 00 00 00 00 00 FF 0F BC [07:19:14]process_action close_receipt done [07:19:14]requested_data is exist [07:19:14]produce_requested_data [07:19:14]requested_item fm.sn is exist - process it [07:19:14]wFMCommunicate request_size=4 [07:19:14]MH_SAM_APDU [07:19:14]CAPDU: 80 11 00 00 [07:19:14]Write to MH i2c: E2 08 00 90 18 80 11 00 00 00 00 00 00 22 [07:19:14]Write i2c OK [07:19:14]MH_I2C_Read... [07:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:14]Read from MH i2c: E2 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 17 00 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 17 00 90 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [07:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:19:14]wFMCommunicate OK [07:19:14]requested_item fd.num is exist - process it [07:19:14]SAM_PROTO_GetFieldsCounters [07:19:14]wFMCommunicate request_size=4 [07:19:14]MH_SAM_APDU [07:19:14]CAPDU: 80 13 00 00 [07:19:14]Write to MH i2c: E2 08 00 91 18 80 13 00 00 00 00 00 00 25 [07:19:14]Write i2c OK [07:19:14]MH_I2C_Read... [07:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:14]Read from MH i2c: E2 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 62 00 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 62 00 91 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [07:19:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:14]wFMCommunicate OK [07:19:14]SAM_PROTO_GetFieldsCounters done [07:19:14]requested_item shift.num is exist - process it [07:19:14]requested_item shift.opened is exist - process it [07:19:14]req_shift_opened [07:19:14]FM_GetShiftState [07:19:14]SAM_PROTO_GetShiftState [07:19:14]wFMCommunicate request_size=4 [07:19:14]MH_SAM_APDU [07:19:14]CAPDU: 80 13 01 00 [07:19:14]Write to MH i2c: E2 08 00 92 18 80 13 01 00 00 00 00 00 27 [07:19:14]Write i2c OK [07:19:14]MH_I2C_Read... [07:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:14]Read from MH i2c: E2 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 0E 00 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 0E 00 92 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0F [07:19:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:19:14]wFMCommunicate OK [07:19:14]SAM_PROTO_GetShiftState done [07:19:14]FM_GetShiftState done [07:19:14]req_shift_opened done [07:19:14]requested_item shift.open_date is exist - process it [07:19:14]req_shift_open_date [07:19:14]req_shift_open_date done [07:19:14]produce_requested_data done [07:19:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188583,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:19:14]process_action_free close_receipt [07:19:14]json_value_free [07:19:14]json_value_free done [07:19:14]process_json_proto returns [07:19:14]Send response to host [07:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188583,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:19:14]free response buf [07:19:14]execute_script done [07:19:14]execute_script returns [07:19:14]free content buf [07:19:14]Sock 9.Close socket [07:19:14]Sock 9.Thread stoped [07:19:15]recv_with_timeout no data received [07:19:16]ConnectInit Can't take IP for lk.salyk.kg [07:19:16]CommunicateWithHost connect error [07:19:16]CommunicateWithHost err = -1 [07:19:16]OFD Sender: Server communicate error [07:19:21]OFD Sender: Processing packet 188583 [packets to send 1062, broken 1061] [07:19:21]ProducePacketName [07:19:21]name=ofd_packets/00188583 [07:19:21]OFD Sender: To server: pG, [07:19:21]CommunicateWithHost lk.salyk.kg:30040 [07:19:21]ConnectInit lk.salyk.kg [07:19:21]Connected sock=9 [07:19:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6E 03 07 01 D0 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 70 A3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E0 02 00 35 04 06 00 3A 09 0F 0A 9E BE 42 C3 39 8F 41 BB B2 C2 [07:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF A8 47 00 E2 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E0 02 00 F4 03 04 00 66 4D 18 67 B6 04 01 00 00 59 FE E9 CA 73 64 23 F2 [07:19:22]CommunicateWithHost err = 0 [07:19:22]CheckOFDResponse [07:19:22]1017 (14) - 77093643461234 [07:19:22]1041 (16) - 0000000000965340 [07:19:22]1040 (4) - 188583 [07:19:22]1012 (4) - 23.10.2024 01:12 [07:19:22]1206 (1) - 0 [07:19:22]OFD Sender: Remove packet 188583 [07:19:22]ProducePacketName [07:19:22]name=ofd_packets/00188583 [07:19:22]NVStorageDeleteData [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23: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:23]accept exits with 7 [07:25:23]New connection [07:25:23]New thread 3066649956 created [07:25:23]Thread 3066506596 joined [07:25:23]Waiting for new connection... [07:25:23] Sock 7.Parse request [07:25:23]Sock 7.Check first char [07:25:23]Sock 7.First char is OK [07:25:23]request: POST /json_proto HTTP/1.0 [07:25:23]Method: POST [07:25:23]URL: /json_proto [07:25:23]Method is POST - this is cgi request [07:25:23]url: /json_proto [07:25:23]query_string will be loaded in cgi processing [07:25:23]execute_cgi json_proto POST (null) [07:25:23]execute_cgi path=json_proto method=POST [07:25:23]POST find Content-Length [07:25:23]Host: 172.17.42.131:8080 [07:25:23]Content-Length: 754 [07:25:23]Content-Type: application/json [07:25:23] [07:25:23]POST finish read [07:25:23]Found Content-Length = 754 [07:25:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 13.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:23]execute_script... [07:25:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 13.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:23]POST & json_proto [07:25:23]process_json_proto [07:25:23]json parsed OK: [07:25:23]protocol is kg_v1.0 [07:25:23]action value=close_receipt [07:25:23]process_action close_receipt [07:25:23]cmd_close_receipt [07:25:23]MH_GetDate [07:25:23]Write to MH i2c: F0 00 00 93 18 9A [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: F0 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: F0 09 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: F0 09 00 93 18 00 E6 A4 18 67 A0 18 CA 66 94 [07:25:23]GetLastDocTimeStamp 1729667952 [07:25:23]current date 1729668326 [07:25:23]FM_GetShiftState [07:25:23]SAM_PROTO_GetShiftState [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 13 01 00 [07:25:23]Write to MH i2c: E2 08 00 94 18 80 13 01 00 00 00 00 00 29 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 0E 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 0E 00 94 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 11 [07:25:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:25:23]wFMCommunicate OK [07:25:23]SAM_PROTO_GetShiftState done [07:25:23]FM_GetShiftState done [07:25:23]opened in 1729642525 [07:25:23]opened+sec_in_day 1729728925 [07:25:23]quantity*price = 0 [07:25:23]sum+1 = 1 [07:25:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 42 23.10.2024 07:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145314 ФМ: 0000000000965340 ФД: 188584 ФПД: 123261623776952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072526&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188584&fm=123261623776952&tin=02508201610067®Number=0000000000100030&sum=0 [07:25:24]StoreToDocumentArchive [07:25:24]shift 462 fd 188584 [07:25:24]save to /storage/0462/doc_00188584 [07:25:24]save last doc name /storage/0462/doc_00188584 to /storage/kkm_last_doc_name [07:25:24]save OK [07:25:24]Clear old archive folders... [07:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:25:24]tlvbuf is 008FF030 [07:25:24]SAM_PROTO_ClearQueue [07:25:24]wFMCommunicate request_size=4 [07:25:24]MH_SAM_APDU [07:25:24]CAPDU: 80 09 00 00 [07:25:24]Write to MH i2c: E2 08 00 A1 18 80 09 00 00 00 00 00 00 2B [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:24]Read from MH i2c: E2 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: E2 03 00 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: E2 03 00 A1 18 00 90 00 2D [07:25:24]RAPDU: 90 00 [07:25:24]wFMCommunicate OK [07:25:24]SAM_PROTO_ClearQueue done [07:25:24]KKMCreateOFDPacket [07:25:24]OFDProtocolAddRootSTLVToBuf [07:25:24]FM_MakeSignedData [07:25:24]FM_MakeSignedData [07:25:24]SAM_PROTO_SignData [07:25:24]wFMCommunicate request_size=4 [07:25:24]MH_SAM_APDU [07:25:24]CAPDU: 80 0D 01 02 [07:25:24]Write to MH i2c: E2 08 00 A2 18 80 0D 01 02 00 00 00 00 33 [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:24]Read from MH i2c: E2 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: E2 03 00 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: E2 03 00 A2 18 00 90 00 2E [07:25:24]RAPDU: 90 00 [07:25:24]wFMCommunicate OK [07:25:24]wFMCommunicate request_size=255 [07:25:24]MH_SAM_APDU [07:25:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E6 A4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E0 02 00 35 04 06 00 70 [07:25:24]Write to MH i2c: E2 02 01 A3 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E6 A4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E0 02 00 35 04 06 00 70 00 00 FD [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:24]Read from MH i2c: E2 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: E2 03 00 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [07:25:24]RAPDU: 90 00 [07:25:24]wFMCommunicate OK [07:25:24]wFMCommunicate request_size=10 [07:25:24]MH_SAM_APDU [07:25:24]CAPDU: 80 0D 02 02 05 1B 15 4C B6 B8 [07:25:24]Write to MH i2c: E2 0D 00 A4 18 80 0D 02 02 05 00 1B 15 4C B6 B8 00 00 2A [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:25]Read from MH i2c: E2 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 03 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 03 00 A4 18 00 90 00 30 [07:25:25]RAPDU: 90 00 [07:25:25]wFMCommunicate OK [07:25:25]wFMCommunicate request_size=4 [07:25:25]MH_SAM_APDU [07:25:25]CAPDU: 80 0D 03 02 [07:25:25]Write to MH i2c: E2 08 00 A5 18 80 0D 03 02 00 00 00 00 38 [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:25]Read from MH i2c: E2 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 0B 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 0B 00 A5 18 00 42 C7 EA 1F E5 19 AD 92 90 00 88 [07:25:25]RAPDU: 42 C7 EA 1F E5 19 AD 92 90 00 [07:25:25]wFMCommunicate OK [07:25:25]SAM_PROTO_SignData done [07:25:25]FM_MakeSignedData done [07:25:25]CreateOFDProtocolMessage [07:25:25]wFMCommunicate request_size=4 [07:25:25]MH_SAM_APDU [07:25:25]CAPDU: 80 11 00 00 [07:25:25]Write to MH i2c: E2 08 00 A6 18 80 11 00 00 00 00 00 00 38 [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:25]Read from MH i2c: E2 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 17 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 17 00 A6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [07:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:25:25]wFMCommunicate OK [07:25:25]CreateOFDProtocolMessage done [07:25:25]OFDSenderStorePacket 188584 [07:25:25]StoreOFDPacket docnum=188584 [07:25:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 16 07 01 60 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E6 A4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E0 02 00 35 04 06 00 70 1B 15 4C B6 B8 42 C7 EA 1F E5 19 AD 92 [07:25:25]CheckFolder [07:25:25]dirname=/storage/ofd_packets [07:25:25]CheckFolder done [07:25:25]ProducePacketName [07:25:25]name=ofd_packets/00188584 [07:25:25]NVStorageSaveData ofd_packets/00188584 [07:25:25]File name is /storage/ofd_packets/00188584 [07:25:25]Write 301 bytes [07:25:25]NVStorageSaveData done [07:25:25]OFDSenderStorePacket done [07:25:25]KKMCreateOFDPacket done [07:25:25]NVStorageSaveData kkm_last_timestamp [07:25:25]File name is /storage/kkm_last_timestamp [07:25:25]Write 4 bytes [07:25:25]NVStorageSaveData done [07:25:25]ExternCall_PrintAddStr [07:25:25]wPrintStart [07:25:25]Write to MH i2c: 01 00 00 A7 18 BF [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: 01 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: 01 07 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: 01 07 00 A7 18 00 00 00 00 00 FF 0F D4 [07:25:25]RasterBufferAndPrint [07:25:25]line Счет N : (1)210643 [07:25:25]line ИНН: 02508201610067 [07:25:25]line Контрольно-Кассовый Чек [07:25:25]line ПРОДАЖА [07:25:25]line ТРК (МРК, ГНК) : 43 [07:25:25]line Товар: 2710124500 [07:25:25]line Аи-95-К-3 [07:25:25]line 13.480 * 0.00 [07:25:25]line = 0.00 [07:25:25]line НДС 12% НСП 1% [07:25:25]line > о реализуемом товаре [07:25:25]line ИТОГО: 0.00 [07:25:25]line НСП 1% : 0.00 [07:25:25]line НДС 12% : 0.00 [07:25:25]line Наличными: 0.00 [07:25:25]line Безнал.: 0.00 [07:25:25]line Место: АЗС № 86 "Партнер Нефть" [07:25:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:25:25]line СНО: Общий режим [07:25:25]line Чек 42 23.10.2024 07:25 [07:25:25]line Смена: 462 ФФД: 1.0 [07:25:25]line ЗНМ: 0300000155 [07:25:25]line РНМ: 0000000000100030 [07:25:25]line Версия ККМ: 001 [07:25:25]line Талоны: ТК ГПНА Online [07:25:25]line 30145314 [07:25:25]line ФМ: 0000000000965340 [07:25:25]line ФД: 188584 [07:25:25]line ФПД: 123261623776952 [07:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072526&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188584&fm=123261623776952&tin=02508201610067®Number=0000000000100030&sum=0 [07:25:25]OFD Sender: Processing packet 188584 [packets to send 1062, broken 1061] [07:25:25]ProducePacketName [07:25:25]name=ofd_packets/00188584 [07:25:25]OFD Sender: To server: pG, [07:25:25]CommunicateWithHost lk.salyk.kg:30040 [07:25:25]ConnectInit lk.salyk.kg [07:25:25]written 0, free lines is 4095 [07:25:25]Connected sock=10 [07:25:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 16 07 01 60 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E6 A4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E0 02 00 35 04 06 00 70 1B 15 4C B6 B8 42 C7 EA 1F E5 19 AD 92 [07:25:25]Write to MH i2c: 01 00 00 D1 18 E9 [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: 01 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: 01 07 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 7E 0C 7A [07:25:25]RasterBufferAndPrint [07:25:25]line [07:25:25]line [07:25:25]line [07:25:25]line [07:25:25]line [07:25:25]written 0, free lines is 3203 [07:25:25]MH_Cut [07:25:25]Write to MH i2c: D1 01 00 D8 18 01 C2 [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: D1 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: D1 01 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: D1 01 00 D8 18 00 C1 [07:25:25]Write to MH i2c: 01 00 00 D9 18 F1 [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8B A7 47 00 08 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 36 35 33 34 30 10 04 04 00 A8 E0 02 00 F4 03 04 00 D1 4E 18 67 B6 04 01 00 00 CB B8 73 14 38 B4 11 06 [07:25:25]CommunicateWithHost err = 0 [07:25:25]CheckOFDResponse [07:25:25]1017 (14) - 77093643461234 [07:25:25]1041 (16) - 0000000000965340 [07:25:25]1040 (4) - 188584 [07:25:25]1012 (4) - 23.10.2024 01:18 [07:25:25]1206 (1) - 0 [07:25:25]OFD Sender: Remove packet 188584 [07:25:25]ProducePacketName [07:25:25]name=ofd_packets/00188584 [07:25:25]NVStorageDeleteData [07:25:26]OFD Sender: No OFD packet to send [07:25:26]*** Cut start [07:25:26]*** Partial cut [07:25:26]*** CUTSNS_PIN = 1 [07:25:26]*** CUTSNS_PIN = 0 [07:25:27]*** Brake cut motor [07:25:27]Read from MH i2c: 01 [07:25:27]MH_I2C_Read... [07:25:27]*** Stop cut motor [07:25:27]*** Cut end [07:25:27]Read from MH i2c: 01 07 00 [07:25:27]MH_I2C_Read... [07:25:27]Read from MH i2c: 01 07 00 D9 18 00 00 00 00 00 FF 0F 06 [07:25:27]process_action close_receipt done [07:25:27]requested_data is exist [07:25:27]produce_requested_data [07:25:27]requested_item fm.sn is exist - process it [07:25:27]wFMCommunicate request_size=4 [07:25:27]MH_SAM_APDU [07:25:27]CAPDU: 80 11 00 00 [07:25:27]Write to MH i2c: E2 08 00 DA 18 80 11 00 00 00 00 00 00 6C [07:25:27]Write i2c OK [07:25:27]MH_I2C_Read... [07:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:27]Read from MH i2c: E2 [07:25:27]MH_I2C_Read... [07:25:27]Read from MH i2c: E2 17 00 [07:25:27]MH_I2C_Read... [07:25:27]Read from MH i2c: E2 17 00 DA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [07:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:25:27]wFMCommunicate OK [07:25:27]requested_item fd.num is exist - process it [07:25:27]SAM_PROTO_GetFieldsCounters [07:25:27]wFMCommunicate request_size=4 [07:25:27]MH_SAM_APDU [07:25:27]CAPDU: 80 13 00 00 [07:25:27]Write to MH i2c: E2 08 00 DB 18 80 13 00 00 00 00 00 00 6F [07:25:27]Write i2c OK [07:25:27]MH_I2C_Read... [07:25:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:27]Read from MH i2c: E2 [07:25:27]MH_I2C_Read... [07:25:27]Read from MH i2c: E2 62 00 [07:25:27]MH_I2C_Read... [07:25:27]Read from MH i2c: E2 62 00 DB 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [07:25:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:25:27]wFMCommunicate OK [07:25:27]SAM_PROTO_GetFieldsCounters done [07:25:27]requested_item shift.num is exist - process it [07:25:27]requested_item shift.opened is exist - process it [07:25:27]req_shift_opened [07:25:27]FM_GetShiftState [07:25:27]SAM_PROTO_GetShiftState [07:25:27]wFMCommunicate request_size=4 [07:25:27]MH_SAM_APDU [07:25:27]CAPDU: 80 13 01 00 [07:25:27]Write to MH i2c: E2 08 00 DC 18 80 13 01 00 00 00 00 00 71 [07:25:27]Write i2c OK [07:25:27]MH_I2C_Read... [07:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:27]Read from MH i2c: E2 [07:25:27]MH_I2C_Read... [07:25:27]Read from MH i2c: E2 0E 00 [07:25:27]MH_I2C_Read... [07:25:27]Read from MH i2c: E2 0E 00 DC 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 59 [07:25:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:25:27]wFMCommunicate OK [07:25:27]SAM_PROTO_GetShiftState done [07:25:27]FM_GetShiftState done [07:25:27]req_shift_opened done [07:25:27]requested_item shift.open_date is exist - process it [07:25:27]req_shift_open_date [07:25:27]req_shift_open_date done [07:25:27]produce_requested_data done [07:25:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188584,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:25:27]process_action_free close_receipt [07:25:27]json_value_free [07:25:27]json_value_free done [07:25:27]process_json_proto returns [07:25:27]Send response to host [07:25:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188584,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:25:27]free response buf [07:25:27]execute_script done [07:25:27]execute_script returns [07:25:27]free content buf [07:25:27]Sock 7.Close socket [07:25:27]Sock 7.Thread stoped [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:26]accept exits with 9 [07:26:26]New connection [07:26:26]New thread 3066506596 created [07:26:26]Thread 3066649956 joined [07:26:26]Waiting for new connection... [07:26:26] Sock 9.Parse request [07:26:26]Sock 9.Check first char [07:26:26]Sock 9.First char is OK [07:26:26]request: POST /json_proto HTTP/1.0 [07:26:26]Method: POST [07:26:26]URL: /json_proto [07:26:26]Method is POST - this is cgi request [07:26:26]url: /json_proto [07:26:26]query_string will be loaded in cgi processing [07:26:26]execute_cgi json_proto POST (null) [07:26:26]execute_cgi path=json_proto method=POST [07:26:26]POST find Content-Length [07:26:26]Host: 172.17.42.131:8080 [07:26:26]Content-Length: 682 [07:26:26]Content-Type: application/json [07:26:26] [07:26:26]POST finish read [07:26:26]Found Content-Length = 682 [07:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:26]execute_script... [07:26:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:26]POST & json_proto [07:26:26]process_json_proto [07:26:26]json parsed OK: [07:26:26]protocol is kg_v1.0 [07:26:26]action value=close_receipt [07:26:26]process_action close_receipt [07:26:26]cmd_close_receipt [07:26:26]MH_GetDate [07:26:26]Write to MH i2c: F0 00 00 DD 18 E4 [07:26:26]Write i2c OK [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: F0 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: F0 09 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: F0 09 00 DD 18 00 25 A5 18 67 A0 18 CA 66 1E [07:26:26]GetLastDocTimeStamp 1729668326 [07:26:26]current date 1729668389 [07:26:26]FM_GetShiftState [07:26:26]SAM_PROTO_GetShiftState [07:26:26]wFMCommunicate request_size=4 [07:26:26]MH_SAM_APDU [07:26:26]CAPDU: 80 13 01 00 [07:26:26]Write to MH i2c: E2 08 00 DE 18 80 13 01 00 00 00 00 00 73 [07:26:26]Write i2c OK [07:26:26]MH_I2C_Read... [07:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:26]Read from MH i2c: E2 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 0E 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 0E 00 DE 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5B [07:26:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:26:26]wFMCommunicate OK [07:26:26]SAM_PROTO_GetShiftState done [07:26:26]FM_GetShiftState done [07:26:26]opened in 1729642525 [07:26:26]opened+sec_in_day 1729728925 [07:26:26]quantity*price = 100015 [07:26:26]sum+1 = 100017 [07:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 43 23.10.2024 07:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188585 ФПД: 10336932839674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072629&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188585&fm=10336932839674&tin=02508201610067®Number=0000000000100030&sum=100000 [07:26:28]StoreToDocumentArchive [07:26:28]shift 462 fd 188585 [07:26:28]save to /storage/0462/doc_00188585 [07:26:28]save last doc name /storage/0462/doc_00188585 to /storage/kkm_last_doc_name [07:26:28]save OK [07:26:28]Clear old archive folders... [07:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:26:28]tlvbuf is 008FC030 [07:26:28]SAM_PROTO_ClearQueue [07:26:28]wFMCommunicate request_size=4 [07:26:28]MH_SAM_APDU [07:26:28]CAPDU: 80 09 00 00 [07:26:28]Write to MH i2c: E2 08 00 EB 18 80 09 00 00 00 00 00 00 75 [07:26:28]Write i2c OK [07:26:28]MH_I2C_Read... [07:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:28]Read from MH i2c: E2 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 03 00 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [07:26:28]RAPDU: 90 00 [07:26:28]wFMCommunicate OK [07:26:28]SAM_PROTO_ClearQueue done [07:26:28]KKMCreateOFDPacket [07:26:28]OFDProtocolAddRootSTLVToBuf [07:26:28]FM_MakeSignedData [07:26:28]FM_MakeSignedData [07:26:28]SAM_PROTO_SignData [07:26:28]wFMCommunicate request_size=4 [07:26:28]MH_SAM_APDU [07:26:28]CAPDU: 80 0D 01 02 [07:26:28]Write to MH i2c: E2 08 00 EC 18 80 0D 01 02 00 00 00 00 7D [07:26:28]Write i2c OK [07:26:28]MH_I2C_Read... [07:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:28]Read from MH i2c: E2 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 03 00 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 03 00 EC 18 00 90 00 78 [07:26:28]RAPDU: 90 00 [07:26:28]wFMCommunicate OK [07:26:28]wFMCommunicate request_size=255 [07:26:28]MH_SAM_APDU [07:26:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 25 A5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E0 02 00 35 04 06 00 09 [07:26:28]Write to MH i2c: E2 02 01 ED 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 25 A5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E0 02 00 35 04 06 00 09 00 00 C1 [07:26:28]Write i2c OK [07:26:28]MH_I2C_Read... [07:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:28]Read from MH i2c: E2 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 03 00 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [07:26:28]RAPDU: 90 00 [07:26:28]wFMCommunicate OK [07:26:28]wFMCommunicate request_size=10 [07:26:28]MH_SAM_APDU [07:26:28]CAPDU: 80 0D 02 02 05 66 C1 35 C0 FA [07:26:28]Write to MH i2c: E2 0D 00 EE 18 80 0D 02 02 05 00 66 C1 35 C0 FA 00 00 A0 [07:26:28]Write i2c OK [07:26:28]MH_I2C_Read... [07:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:28]Read from MH i2c: E2 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 03 00 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 03 00 EE 18 00 90 00 7A [07:26:28]RAPDU: 90 00 [07:26:28]wFMCommunicate OK [07:26:28]wFMCommunicate request_size=4 [07:26:28]MH_SAM_APDU [07:26:28]CAPDU: 80 0D 03 02 [07:26:28]Write to MH i2c: E2 08 00 EF 18 80 0D 03 02 00 00 00 00 82 [07:26:28]Write i2c OK [07:26:28]MH_I2C_Read... [07:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:28]Read from MH i2c: E2 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 0B 00 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 0B 00 EF 18 00 8D 58 0E E3 77 BB 70 52 90 00 4D [07:26:28]RAPDU: 8D 58 0E E3 77 BB 70 52 90 00 [07:26:28]wFMCommunicate OK [07:26:28]SAM_PROTO_SignData done [07:26:28]FM_MakeSignedData done [07:26:28]CreateOFDProtocolMessage [07:26:28]wFMCommunicate request_size=4 [07:26:28]MH_SAM_APDU [07:26:28]CAPDU: 80 11 00 00 [07:26:28]Write to MH i2c: E2 08 00 F0 18 80 11 00 00 00 00 00 00 82 [07:26:28]Write i2c OK [07:26:28]MH_I2C_Read... [07:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:28]Read from MH i2c: E2 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 17 00 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: E2 17 00 F0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [07:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:26:28]wFMCommunicate OK [07:26:28]CreateOFDProtocolMessage done [07:26:28]OFDSenderStorePacket 188585 [07:26:28]StoreOFDPacket docnum=188585 [07:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7B E0 07 01 E6 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 25 A5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E0 02 00 35 04 06 00 09 66 C1 35 C0 FA 8D 58 0E E3 77 BB 70 52 [07:26:28]CheckFolder [07:26:28]dirname=/storage/ofd_packets [07:26:28]CheckFolder done [07:26:28]ProducePacketName [07:26:28]name=ofd_packets/00188585 [07:26:28]NVStorageSaveData ofd_packets/00188585 [07:26:28]File name is /storage/ofd_packets/00188585 [07:26:28]Write 301 bytes [07:26:28]NVStorageSaveData done [07:26:28]OFDSenderStorePacket done [07:26:28]KKMCreateOFDPacket done [07:26:28]NVStorageSaveData kkm_last_timestamp [07:26:28]File name is /storage/kkm_last_timestamp [07:26:28]Write 4 bytes [07:26:28]NVStorageSaveData done [07:26:28]ExternCall_PrintAddStr [07:26:28]wPrintStart [07:26:28]Write to MH i2c: 01 00 00 F1 18 09 [07:26:28]Write i2c OK [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: 01 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: 01 07 00 [07:26:28]MH_I2C_Read... [07:26:28]Read from MH i2c: 01 07 00 F1 18 00 00 00 00 00 FF 0F 1E [07:26:28]RasterBufferAndPrint [07:26:28]line Счет N : (1)210644 [07:26:28]line ИНН: 02508201610067 [07:26:28]line Контрольно-Кассовый Чек [07:26:28]line ПРОДАЖА [07:26:28]line ТРК (МРК, ГНК) : 42 [07:26:28]line Товар: 2710124130 [07:26:28]line Аи-92-К-3 [07:26:28]line 14.950 * 66.90 [07:26:28]line = 1000.16 [07:26:28]line НДС 12% НСП 1% [07:26:28]line > о реализуемом товаре [07:26:28]line ОКРУГЛЕНИЕ: -0.16 [07:26:28]line ИТОГО: 1000.00 [07:26:28]line Внесено: 1000.00 [07:26:28]line СДАЧА: 0.00 [07:26:28]line НСП 1% : 8.85 [07:26:28]line НДС 12% : 106.21 [07:26:28]line Наличными: 1000.00 [07:26:28]line Безнал.: 0.00 [07:26:28]line Место: АЗС № 86 "Партнер Нефть" [07:26:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:26:28]line СНО: Общий режим [07:26:28]line Чек 43 23.10.2024 07:26 [07:26:28]line Смена: 462 ФФД: 1.0 [07:26:28]line ЗНМ: 0300000155 [07:26:28]line РНМ: 0000000000100030 [07:26:28]line Версия ККМ: 001 [07:26:28]line ФМ: 0000000000965340 [07:26:28]line ФД: 188585 [07:26:28]line ФПД: 10336932839674 [07:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072629&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188585&fm=10336932839674&tin=02508201610067®Number=0000000000100030&sum=100000 [07:26:28]written 0, free lines is 4095 [07:26:28]OFD Sender: Processing packet 188585 [packets to send 1062, broken 1061] [07:26:28]ProducePacketName [07:26:28]name=ofd_packets/00188585 [07:26:28]OFD Sender: To server: pG, [07:26:28]CommunicateWithHost lk.salyk.kg:30040 [07:26:28]ConnectInit lk.salyk.kg [07:26:28]Connected sock=10 [07:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7B E0 07 01 E6 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 25 A5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E0 02 00 35 04 06 00 09 66 C1 35 C0 FA 8D 58 0E E3 77 BB 70 52 [07:26:29]Write to MH i2c: 01 00 00 1C 19 35 [07:26:29]Write i2c OK [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: 01 [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: 01 07 00 [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 59 0C A1 [07:26:29]RasterBufferAndPrint [07:26:29]line [07:26:29]line [07:26:29]line [07:26:29]line [07:26:29]line [07:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4E C2 47 00 5B E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E0 02 00 F4 03 04 00 10 4F 18 67 B6 04 01 00 00 D1 B0 DF E2 C9 6C B0 BE [07:26:29]CommunicateWithHost err = 0 [07:26:29]CheckOFDResponse [07:26:29]1017 (14) - 77093643461234 [07:26:29]1041 (16) - 0000000000965340 [07:26:29]1040 (4) - 188585 [07:26:29]1012 (4) - 23.10.2024 01:19 [07:26:29]1206 (1) - 0 [07:26:29]OFD Sender: Remove packet 188585 [07:26:29]ProducePacketName [07:26:29]name=ofd_packets/00188585 [07:26:29]NVStorageDeleteData [07:26:29]written 0, free lines is 3165 [07:26:29]MH_Cut [07:26:29]Write to MH i2c: D1 01 00 23 19 01 0E [07:26:29]Write i2c OK [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: D1 [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: D1 01 00 [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: D1 01 00 23 19 00 0D [07:26:29]Write to MH i2c: 01 00 00 24 19 3D [07:26:29]Write i2c OK [07:26:29]MH_I2C_Read... [07:26:29]OFD Sender: No OFD packet to send [07:26:30]*** Cut start [07:26:30]*** Partial cut [07:26:30]*** CUTSNS_PIN = 1 [07:26:30]*** CUTSNS_PIN = 0 [07:26:30]*** Brake cut motor [07:26:30]Read from MH i2c: 01 [07:26:30]MH_I2C_Read... [07:26:30]*** Stop cut motor [07:26:30]*** Cut end [07:26:30]Read from MH i2c: 01 07 00 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: 01 07 00 24 19 00 00 00 00 00 FF 0F 52 [07:26:30]process_action close_receipt done [07:26:30]requested_data is exist [07:26:30]produce_requested_data [07:26:30]requested_item fm.sn is exist - process it [07:26:30]wFMCommunicate request_size=4 [07:26:30]MH_SAM_APDU [07:26:30]CAPDU: 80 11 00 00 [07:26:30]Write to MH i2c: E2 08 00 25 19 80 11 00 00 00 00 00 00 B8 [07:26:30]Write i2c OK [07:26:30]MH_I2C_Read... [07:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:31]Read from MH i2c: E2 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 17 00 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 17 00 25 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [07:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:26:31]wFMCommunicate OK [07:26:31]requested_item fd.num is exist - process it [07:26:31]SAM_PROTO_GetFieldsCounters [07:26:31]wFMCommunicate request_size=4 [07:26:31]MH_SAM_APDU [07:26:31]CAPDU: 80 13 00 00 [07:26:31]Write to MH i2c: E2 08 00 26 19 80 13 00 00 00 00 00 00 BB [07:26:31]Write i2c OK [07:26:31]MH_I2C_Read... [07:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:31]Read from MH i2c: E2 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 62 00 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 62 00 26 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [07:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:26:31]wFMCommunicate OK [07:26:31]SAM_PROTO_GetFieldsCounters done [07:26:31]requested_item shift.num is exist - process it [07:26:31]requested_item shift.opened is exist - process it [07:26:31]req_shift_opened [07:26:31]FM_GetShiftState [07:26:31]SAM_PROTO_GetShiftState [07:26:31]wFMCommunicate request_size=4 [07:26:31]MH_SAM_APDU [07:26:31]CAPDU: 80 13 01 00 [07:26:31]Write to MH i2c: E2 08 00 27 19 80 13 01 00 00 00 00 00 BD [07:26:31]Write i2c OK [07:26:31]MH_I2C_Read... [07:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:31]Read from MH i2c: E2 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 0E 00 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 0E 00 27 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A5 [07:26:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:26:31]wFMCommunicate OK [07:26:31]SAM_PROTO_GetShiftState done [07:26:31]FM_GetShiftState done [07:26:31]req_shift_opened done [07:26:31]requested_item shift.open_date is exist - process it [07:26:31]req_shift_open_date [07:26:31]req_shift_open_date done [07:26:31]produce_requested_data done [07:26:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188585,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:26:31]process_action_free close_receipt [07:26:31]json_value_free [07:26:31]json_value_free done [07:26:31]process_json_proto returns [07:26:31]Send response to host [07:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188585,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:26:31]free response buf [07:26:31]execute_script done [07:26:31]execute_script returns [07:26:31]free content buf [07:26:31]Sock 9.Close socket [07:26:31]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]accept exits with 7 [07:29:20]New connection [07:29:20]New thread 3066649956 created [07:29:20]Thread 3066506596 joined [07:29:20]Waiting for new connection... [07:29:20] Sock 7.Parse request [07:29:20]Sock 7.Check first char [07:29:20]Sock 7.First char is OK [07:29:20]request: POST /json_proto HTTP/1.0 [07:29:20]Method: POST [07:29:20]URL: /json_proto [07:29:20]Method is POST - this is cgi request [07:29:20]url: /json_proto [07:29:20]query_string will be loaded in cgi processing [07:29:20]execute_cgi json_proto POST (null) [07:29:20]execute_cgi path=json_proto method=POST [07:29:20]POST find Content-Length [07:29:20]Host: 172.17.42.131:8080 [07:29:20]Content-Length: 688 [07:29:20]Content-Type: application/json [07:29:20] [07:29:20]POST finish read [07:29:20]Found Content-Length = 688 [07:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:20]execute_script... [07:29:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:20]POST & json_proto [07:29:20]process_json_proto [07:29:20]json parsed OK: [07:29:20]protocol is kg_v1.0 [07:29:20]action value=close_receipt [07:29:20]process_action close_receipt [07:29:20]cmd_close_receipt [07:29:20]MH_GetDate [07:29:20]Write to MH i2c: F0 00 00 28 19 30 [07:29:20]Write i2c OK [07:29:20]MH_I2C_Read... [07:29:20]Read from MH i2c: F0 [07:29:20]MH_I2C_Read... [07:29:20]Read from MH i2c: F0 09 00 [07:29:20]MH_I2C_Read... [07:29:20]Read from MH i2c: F0 09 00 28 19 00 D3 A5 18 67 A0 18 CA 66 18 [07:29:20]GetLastDocTimeStamp 1729668389 [07:29:20]current date 1729668563 [07:29:20]FM_GetShiftState [07:29:20]SAM_PROTO_GetShiftState [07:29:20]wFMCommunicate request_size=4 [07:29:20]MH_SAM_APDU [07:29:20]CAPDU: 80 13 01 00 [07:29:20]Write to MH i2c: E2 08 00 29 19 80 13 01 00 00 00 00 00 BF [07:29:20]Write i2c OK [07:29:20]MH_I2C_Read... [07:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:20]Read from MH i2c: E2 [07:29:20]MH_I2C_Read... [07:29:20]Read from MH i2c: E2 0E 00 [07:29:20]MH_I2C_Read... [07:29:20]Read from MH i2c: E2 0E 00 29 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A7 [07:29:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:29:20]wFMCommunicate OK [07:29:20]SAM_PROTO_GetShiftState done [07:29:20]FM_GetShiftState done [07:29:20]opened in 1729642525 [07:29:20]opened+sec_in_day 1729728925 [07:29:20]quantity*price = 150076 [07:29:20]sum+1 = 150078 [07:29:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 44 23.10.2024 07:29 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188586 ФПД: 170120902522997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072923&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188586&fm=170120902522997&tin=02508201610067®Number=0000000000100030&sum=150000 [07:29:21]StoreToDocumentArchive [07:29:21]shift 462 fd 188586 [07:29:21]save to /storage/0462/doc_00188586 [07:29:21]save last doc name /storage/0462/doc_00188586 to /storage/kkm_last_doc_name [07:29:21]save OK [07:29:21]Clear old archive folders... [07:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:29:21]tlvbuf is 0090BFB0 [07:29:21]SAM_PROTO_ClearQueue [07:29:21]wFMCommunicate request_size=4 [07:29:21]MH_SAM_APDU [07:29:21]CAPDU: 80 09 00 00 [07:29:21]Write to MH i2c: E2 08 00 36 19 80 09 00 00 00 00 00 00 C1 [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:21]Read from MH i2c: E2 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 03 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 03 00 36 19 00 90 00 C3 [07:29:21]RAPDU: 90 00 [07:29:21]wFMCommunicate OK [07:29:21]SAM_PROTO_ClearQueue done [07:29:21]KKMCreateOFDPacket [07:29:21]OFDProtocolAddRootSTLVToBuf [07:29:21]FM_MakeSignedData [07:29:21]FM_MakeSignedData [07:29:21]SAM_PROTO_SignData [07:29:21]wFMCommunicate request_size=4 [07:29:21]MH_SAM_APDU [07:29:21]CAPDU: 80 0D 01 02 [07:29:21]Write to MH i2c: E2 08 00 37 19 80 0D 01 02 00 00 00 00 C9 [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:21]Read from MH i2c: E2 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 03 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 03 00 37 19 00 90 00 C4 [07:29:21]RAPDU: 90 00 [07:29:21]wFMCommunicate OK [07:29:21]wFMCommunicate request_size=255 [07:29:21]MH_SAM_APDU [07:29:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 D3 A5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E0 02 [07:29:21]Write to MH i2c: E2 02 01 38 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 D3 A5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E0 02 00 00 F6 [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:21]Read from MH i2c: E2 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 03 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 03 00 38 19 00 90 00 C5 [07:29:21]RAPDU: 90 00 [07:29:21]wFMCommunicate OK [07:29:21]wFMCommunicate request_size=16 [07:29:21]MH_SAM_APDU [07:29:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9A B9 5B F6 B8 75 [07:29:21]Write to MH i2c: E2 13 00 39 19 80 0D 02 02 0B 00 00 35 04 06 00 9A B9 5B F6 B8 75 00 00 F2 [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:21]Read from MH i2c: E2 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 03 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 03 00 39 19 00 90 00 C6 [07:29:21]RAPDU: 90 00 [07:29:21]wFMCommunicate OK [07:29:21]wFMCommunicate request_size=4 [07:29:21]MH_SAM_APDU [07:29:21]CAPDU: 80 0D 03 02 [07:29:21]Write to MH i2c: E2 08 00 3A 19 80 0D 03 02 00 00 00 00 CE [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:21]Read from MH i2c: E2 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 0B 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 0B 00 3A 19 00 98 D6 36 D9 53 1F D2 62 90 00 F2 [07:29:21]RAPDU: 98 D6 36 D9 53 1F D2 62 90 00 [07:29:21]wFMCommunicate OK [07:29:21]SAM_PROTO_SignData done [07:29:21]FM_MakeSignedData done [07:29:21]CreateOFDProtocolMessage [07:29:21]wFMCommunicate request_size=4 [07:29:21]MH_SAM_APDU [07:29:21]CAPDU: 80 11 00 00 [07:29:21]Write to MH i2c: E2 08 00 3B 19 80 11 00 00 00 00 00 00 CE [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:21]Read from MH i2c: E2 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 17 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: E2 17 00 3B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [07:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:29:22]wFMCommunicate OK [07:29:22]CreateOFDProtocolMessage done [07:29:22]OFDSenderStorePacket 188586 [07:29:22]StoreOFDPacket docnum=188586 [07:29:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AC 71 0D 01 25 F3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 D3 A5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E0 02 00 35 04 06 00 9A B9 5B F6 B8 75 98 D6 36 D9 53 1F D2 62 [07:29:22]CheckFolder [07:29:22]dirname=/storage/ofd_packets [07:29:22]CheckFolder done [07:29:22]ProducePacketName [07:29:22]name=ofd_packets/00188586 [07:29:22]NVStorageSaveData ofd_packets/00188586 [07:29:22]File name is /storage/ofd_packets/00188586 [07:29:22]Write 307 bytes [07:29:22]NVStorageSaveData done [07:29:22]OFDSenderStorePacket done [07:29:22]KKMCreateOFDPacket done [07:29:22]NVStorageSaveData kkm_last_timestamp [07:29:22]File name is /storage/kkm_last_timestamp [07:29:22]Write 4 bytes [07:29:22]NVStorageSaveData done [07:29:22]ExternCall_PrintAddStr [07:29:22]wPrintStart [07:29:22]Write to MH i2c: 01 00 00 3C 19 55 [07:29:22]Write i2c OK [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: 01 [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: 01 07 00 [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 FF 0F 6A [07:29:22]RasterBufferAndPrint [07:29:22]line Счет N : (1)210645 [07:29:22]line ИНН: 02508201610067 [07:29:22]line Контрольно-Кассовый Чек [07:29:22]line ПРОДАЖА [07:29:22]line ТРК (МРК, ГНК) : 21 [07:29:22]line Товар: 2710194210 [07:29:22]line D-ENERGY ДТ-К-5 [07:29:22]line 19.440 * 77.20 [07:29:22]line = 1500.77 [07:29:22]line НДС 12% НСП 1% [07:29:22]line > о реализуемом товаре [07:29:22]line ОКРУГЛЕНИЕ: -0.77 [07:29:22]line ИТОГО: 1500.00 [07:29:22]line Внесено: 1500.00 [07:29:22]line СДАЧА: 0.00 [07:29:22]line НСП 1% : 13.28 [07:29:22]line НДС 12% : 159.37 [07:29:22]line Наличными: 1500.00 [07:29:22]line Безнал.: 0.00 [07:29:22]line Место: АЗС № 86 "Партнер Нефть" [07:29:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:29:22]line СНО: Общий режим [07:29:22]line Чек 44 23.10.2024 07:29 [07:29:22]line Смена: 462 ФФД: 1.0 [07:29:22]line ЗНМ: 0300000155 [07:29:22]line РНМ: 0000000000100030 [07:29:22]line Версия ККМ: 001 [07:29:22]line ФМ: 0000000000965340 [07:29:22]line ФД: 188586 [07:29:22]line ФПД: 170120902522997 [07:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072923&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188586&fm=170120902522997&tin=02508201610067®Number=0000000000100030&sum=150000 [07:29:22]OFD Sender: Processing packet 188586 [packets to send 1062, broken 1061] [07:29:22]ProducePacketName [07:29:22]name=ofd_packets/00188586 [07:29:22]OFD Sender: To server: pG, [07:29:22]CommunicateWithHost lk.salyk.kg:30040 [07:29:22]ConnectInit lk.salyk.kg [07:29:22]written 0, free lines is 4095 [07:29:22]Connected sock=10 [07:29:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AC 71 0D 01 25 F3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 D3 A5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E0 02 00 35 04 06 00 9A B9 5B F6 B8 75 98 D6 36 D9 53 1F D2 62 [07:29:22]Write to MH i2c: 01 00 00 67 19 80 [07:29:22]Write i2c OK [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: 01 [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: 01 07 00 [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: 01 07 00 67 19 00 00 00 00 00 59 0C EC [07:29:22]RasterBufferAndPrint [07:29:22]line [07:29:22]line [07:29:22]line [07:29:22]line [07:29:22]line [07:29:22]written 0, free lines is 3165 [07:29:22]MH_Cut [07:29:22]Write to MH i2c: D1 01 00 6E 19 01 59 [07:29:22]Write i2c OK [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: D1 [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: D1 01 00 [07:29:22]MH_I2C_Read... [07:29:22]Read from MH i2c: D1 01 00 6E 19 00 58 [07:29:22]Write to MH i2c: 01 00 00 6F 19 88 [07:29:22]Write i2c OK [07:29:22]MH_I2C_Read... [07:29:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DC A3 47 00 C9 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E0 02 00 F4 03 04 00 BE 4F 18 67 B6 04 01 00 00 C5 AC 30 57 A2 A4 A9 24 [07:29:22]CommunicateWithHost err = 0 [07:29:22]CheckOFDResponse [07:29:22]1017 (14) - 77093643461234 [07:29:22]1041 (16) - 0000000000965340 [07:29:22]1040 (4) - 188586 [07:29:22]1012 (4) - 23.10.2024 01:22 [07:29:22]1206 (1) - 0 [07:29:22]OFD Sender: Remove packet 188586 [07:29:22]ProducePacketName [07:29:22]name=ofd_packets/00188586 [07:29:22]NVStorageDeleteData [07:29:23]OFD Sender: No OFD packet to send [07:29:23]*** Cut start [07:29:23]*** Partial cut [07:29:23]*** CUTSNS_PIN = 1 [07:29:23]*** CUTSNS_PIN = 0 [07:29:24]*** Brake cut motor [07:29:24]Read from MH i2c: 01 [07:29:24]MH_I2C_Read... [07:29:24]*** Stop cut motor [07:29:24]*** Cut end [07:29:24]Read from MH i2c: 01 07 00 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: 01 07 00 6F 19 00 00 00 00 00 FF 0F 9D [07:29:24]process_action close_receipt done [07:29:24]requested_data is exist [07:29:24]produce_requested_data [07:29:24]requested_item fm.sn is exist - process it [07:29:24]wFMCommunicate request_size=4 [07:29:24]MH_SAM_APDU [07:29:24]CAPDU: 80 11 00 00 [07:29:24]Write to MH i2c: E2 08 00 70 19 80 11 00 00 00 00 00 00 03 [07:29:24]Write i2c OK [07:29:24]MH_I2C_Read... [07:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:24]Read from MH i2c: E2 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 17 00 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 17 00 70 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [07:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:29:24]wFMCommunicate OK [07:29:24]requested_item fd.num is exist - process it [07:29:24]SAM_PROTO_GetFieldsCounters [07:29:24]wFMCommunicate request_size=4 [07:29:24]MH_SAM_APDU [07:29:24]CAPDU: 80 13 00 00 [07:29:24]Write to MH i2c: E2 08 00 71 19 80 13 00 00 00 00 00 00 06 [07:29:24]Write i2c OK [07:29:24]MH_I2C_Read... [07:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:24]Read from MH i2c: E2 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 62 00 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 62 00 71 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [07:29:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:29:24]wFMCommunicate OK [07:29:24]SAM_PROTO_GetFieldsCounters done [07:29:24]requested_item shift.num is exist - process it [07:29:24]requested_item shift.opened is exist - process it [07:29:24]req_shift_opened [07:29:24]FM_GetShiftState [07:29:24]SAM_PROTO_GetShiftState [07:29:24]wFMCommunicate request_size=4 [07:29:24]MH_SAM_APDU [07:29:24]CAPDU: 80 13 01 00 [07:29:24]Write to MH i2c: E2 08 00 72 19 80 13 01 00 00 00 00 00 08 [07:29:24]Write i2c OK [07:29:24]MH_I2C_Read... [07:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:24]Read from MH i2c: E2 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 0E 00 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 0E 00 72 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F0 [07:29:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:29:24]wFMCommunicate OK [07:29:24]SAM_PROTO_GetShiftState done [07:29:24]FM_GetShiftState done [07:29:24]req_shift_opened done [07:29:24]requested_item shift.open_date is exist - process it [07:29:24]req_shift_open_date [07:29:24]req_shift_open_date done [07:29:24]produce_requested_data done [07:29:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188586,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:29:24]process_action_free close_receipt [07:29:24]json_value_free [07:29:24]json_value_free done [07:29:24]process_json_proto returns [07:29:24]Send response to host [07:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188586,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:29:24]free response buf [07:29:24]execute_script done [07:29:24]execute_script returns [07:29:24]free content buf [07:29:24]Sock 7.Close socket [07:29:24]Sock 7.Thread stoped [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:30:59]accept exits with 9 [07:30:59]New connection [07:30:59]New thread 3066506596 created [07:30:59]Thread 3066649956 joined [07:30:59]Waiting for new connection... [07:30:59] Sock 9.Parse request [07:30:59]Sock 9.Check first char [07:30:59]Sock 9.First char is OK [07:30:59]request: POST /json_proto HTTP/1.0 [07:30:59]Method: POST [07:30:59]URL: /json_proto [07:30:59]Method is POST - this is cgi request [07:30:59]url: /json_proto [07:30:59]query_string will be loaded in cgi processing [07:30:59]execute_cgi json_proto POST (null) [07:30:59]execute_cgi path=json_proto method=POST [07:30:59]POST find Content-Length [07:30:59]Host: 172.17.42.131:8080 [07:30:59]Content-Length: 688 [07:30:59]Content-Type: application/json [07:30:59] [07:30:59]POST finish read [07:30:59]Found Content-Length = 688 [07:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:59]execute_script... [07:30:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:59]POST & json_proto [07:30:59]process_json_proto [07:30:59]json parsed OK: [07:30:59]protocol is kg_v1.0 [07:30:59]action value=close_receipt [07:30:59]process_action close_receipt [07:30:59]cmd_close_receipt [07:30:59]MH_GetDate [07:30:59]Write to MH i2c: F0 00 00 73 19 7B [07:30:59]Write i2c OK [07:30:59]MH_I2C_Read... [07:30:59]Read from MH i2c: F0 [07:30:59]MH_I2C_Read... [07:30:59]Read from MH i2c: F0 09 00 [07:30:59]MH_I2C_Read... [07:30:59]Read from MH i2c: F0 09 00 73 19 00 36 A6 18 67 A0 18 CA 66 C7 [07:30:59]GetLastDocTimeStamp 1729668563 [07:30:59]current date 1729668662 [07:30:59]FM_GetShiftState [07:30:59]SAM_PROTO_GetShiftState [07:30:59]wFMCommunicate request_size=4 [07:30:59]MH_SAM_APDU [07:30:59]CAPDU: 80 13 01 00 [07:30:59]Write to MH i2c: E2 08 00 74 19 80 13 01 00 00 00 00 00 0A [07:30:59]Write i2c OK [07:30:59]MH_I2C_Read... [07:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:59]Read from MH i2c: E2 [07:30:59]MH_I2C_Read... [07:30:59]Read from MH i2c: E2 0E 00 [07:30:59]MH_I2C_Read... [07:30:59]Read from MH i2c: E2 0E 00 74 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F2 [07:30:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:30:59]wFMCommunicate OK [07:30:59]SAM_PROTO_GetShiftState done [07:30:59]FM_GetShiftState done [07:30:59]opened in 1729642525 [07:30:59]opened+sec_in_day 1729728925 [07:30:59]quantity*price = 500024 [07:30:59]sum+1 = 500025 [07:30:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 45 23.10.2024 07:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188587 ФПД: 94756890096763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T073102&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188587&fm=94756890096763&tin=02508201610067®Number=0000000000100030&sum=500000 [07:31:00]StoreToDocumentArchive [07:31:00]shift 462 fd 188587 [07:31:00]save to /storage/0462/doc_00188587 [07:31:00]save last doc name /storage/0462/doc_00188587 to /storage/kkm_last_doc_name [07:31:00]save OK [07:31:00]Clear old archive folders... [07:31:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:31:00]tlvbuf is 0092CD30 [07:31:00]SAM_PROTO_ClearQueue [07:31:00]wFMCommunicate request_size=4 [07:31:00]MH_SAM_APDU [07:31:00]CAPDU: 80 09 00 00 [07:31:00]Write to MH i2c: E2 08 00 81 19 80 09 00 00 00 00 00 00 0C [07:31:00]Write i2c OK [07:31:00]MH_I2C_Read... [07:31:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:00]Read from MH i2c: E2 [07:31:00]MH_I2C_Read... [07:31:00]Read from MH i2c: E2 03 00 [07:31:00]MH_I2C_Read... [07:31:00]Read from MH i2c: E2 03 00 81 19 00 90 00 0E [07:31:00]RAPDU: 90 00 [07:31:00]wFMCommunicate OK [07:31:00]SAM_PROTO_ClearQueue done [07:31:00]KKMCreateOFDPacket [07:31:00]OFDProtocolAddRootSTLVToBuf [07:31:00]FM_MakeSignedData [07:31:00]FM_MakeSignedData [07:31:00]SAM_PROTO_SignData [07:31:00]wFMCommunicate request_size=4 [07:31:00]MH_SAM_APDU [07:31:00]CAPDU: 80 0D 01 02 [07:31:00]Write to MH i2c: E2 08 00 82 19 80 0D 01 02 00 00 00 00 14 [07:31:00]Write i2c OK [07:31:00]MH_I2C_Read... [07:31:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:00]Read from MH i2c: E2 [07:31:00]MH_I2C_Read... [07:31:00]Read from MH i2c: E2 03 00 [07:31:00]MH_I2C_Read... [07:31:00]Read from MH i2c: E2 03 00 82 19 00 90 00 0F [07:31:00]RAPDU: 90 00 [07:31:00]wFMCommunicate OK [07:31:00]wFMCommunicate request_size=255 [07:31:00]MH_SAM_APDU [07:31:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 36 A6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E0 02 [07:31:00]Write to MH i2c: E2 02 01 83 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 36 A6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E0 02 00 00 BD [07:31:00]Write i2c OK [07:31:00]MH_I2C_Read... [07:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:01]Read from MH i2c: E2 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: E2 03 00 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: E2 03 00 83 19 00 90 00 10 [07:31:01]RAPDU: 90 00 [07:31:01]wFMCommunicate OK [07:31:01]wFMCommunicate request_size=16 [07:31:01]MH_SAM_APDU [07:31:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 56 2E 4E C6 34 7B [07:31:01]Write to MH i2c: E2 13 00 84 19 80 0D 02 02 0B 00 00 35 04 06 00 56 2E 4E C6 34 7B 00 00 B3 [07:31:01]Write i2c OK [07:31:01]MH_I2C_Read... [07:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:01]Read from MH i2c: E2 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: E2 03 00 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: E2 03 00 84 19 00 90 00 11 [07:31:01]RAPDU: 90 00 [07:31:01]wFMCommunicate OK [07:31:01]wFMCommunicate request_size=4 [07:31:01]MH_SAM_APDU [07:31:01]CAPDU: 80 0D 03 02 [07:31:01]Write to MH i2c: E2 08 00 85 19 80 0D 03 02 00 00 00 00 19 [07:31:01]Write i2c OK [07:31:01]MH_I2C_Read... [07:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:01]Read from MH i2c: E2 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: E2 0B 00 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: E2 0B 00 85 19 00 34 FD 07 B2 43 D7 0C F2 90 00 1C [07:31:01]RAPDU: 34 FD 07 B2 43 D7 0C F2 90 00 [07:31:01]wFMCommunicate OK [07:31:01]SAM_PROTO_SignData done [07:31:01]FM_MakeSignedData done [07:31:01]CreateOFDProtocolMessage [07:31:01]wFMCommunicate request_size=4 [07:31:01]MH_SAM_APDU [07:31:01]CAPDU: 80 11 00 00 [07:31:01]Write to MH i2c: E2 08 00 86 19 80 11 00 00 00 00 00 00 19 [07:31:01]Write i2c OK [07:31:01]MH_I2C_Read... [07:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:01]Read from MH i2c: E2 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: E2 17 00 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: E2 17 00 86 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [07:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:31:01]wFMCommunicate OK [07:31:01]CreateOFDProtocolMessage done [07:31:01]OFDSenderStorePacket 188587 [07:31:01]StoreOFDPacket docnum=188587 [07:31:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 47 F9 0D 01 C5 FA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 36 A6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E0 02 00 35 04 06 00 56 2E 4E C6 34 7B 34 FD 07 B2 43 D7 0C F2 [07:31:01]CheckFolder [07:31:01]dirname=/storage/ofd_packets [07:31:01]CheckFolder done [07:31:01]ProducePacketName [07:31:01]name=ofd_packets/00188587 [07:31:01]NVStorageSaveData ofd_packets/00188587 [07:31:01]File name is /storage/ofd_packets/00188587 [07:31:01]Write 307 bytes [07:31:01]NVStorageSaveData done [07:31:01]OFDSenderStorePacket done [07:31:01]KKMCreateOFDPacket done [07:31:01]NVStorageSaveData kkm_last_timestamp [07:31:01]File name is /storage/kkm_last_timestamp [07:31:01]Write 4 bytes [07:31:01]NVStorageSaveData done [07:31:01]ExternCall_PrintAddStr [07:31:01]wPrintStart [07:31:01]Write to MH i2c: 01 00 00 87 19 A0 [07:31:01]Write i2c OK [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: 01 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: 01 07 00 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: 01 07 00 87 19 00 00 00 00 00 FF 0F B5 [07:31:01]RasterBufferAndPrint [07:31:01]line Счет N : (1)210646 [07:31:01]line ИНН: 02508201610067 [07:31:01]line Контрольно-Кассовый Чек [07:31:01]line ПРОДАЖА [07:31:01]line ТРК (МРК, ГНК) : 31 [07:31:01]line Товар: 2710194210 [07:31:01]line D-ENERGY ДТ-К-5 [07:31:01]line 64.770 * 77.20 [07:31:01]line = 5000.24 [07:31:01]line НДС 12% НСП 1% [07:31:01]line > о реализуемом товаре [07:31:01]line ОКРУГЛЕНИЕ: -0.24 [07:31:01]line ИТОГО: 5000.00 [07:31:01]line Внесено: 5000.00 [07:31:01]line СДАЧА: 0.00 [07:31:01]line НСП 1% : 44.25 [07:31:01]line НДС 12% : 531.00 [07:31:01]line Наличными: 5000.00 [07:31:01]line Безнал.: 0.00 [07:31:01]line Место: АЗС № 86 "Партнер Нефть" [07:31:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:31:01]line СНО: Общий режим [07:31:01]line Чек 45 23.10.2024 07:31 [07:31:01]line Смена: 462 ФФД: 1.0 [07:31:01]line ЗНМ: 0300000155 [07:31:01]line РНМ: 0000000000100030 [07:31:01]line Версия ККМ: 001 [07:31:01]line ФМ: 0000000000965340 [07:31:01]line ФД: 188587 [07:31:01]line ФПД: 94756890096763 [07:31:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T073102&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188587&fm=94756890096763&tin=02508201610067®Number=0000000000100030&sum=500000 [07:31:01]written 0, free lines is 4095 [07:31:01]OFD Sender: Processing packet 188587 [packets to send 1062, broken 1061] [07:31:01]ProducePacketName [07:31:01]name=ofd_packets/00188587 [07:31:01]OFD Sender: To server: pG, [07:31:01]CommunicateWithHost lk.salyk.kg:30040 [07:31:01]ConnectInit lk.salyk.kg [07:31:01]Connected sock=10 [07:31:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 47 F9 0D 01 C5 FA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 36 A6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E0 02 00 35 04 06 00 56 2E 4E C6 34 7B 34 FD 07 B2 43 D7 0C F2 [07:31:01]Write to MH i2c: 01 00 00 B2 19 CB [07:31:01]Write i2c OK [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: 01 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: 01 07 00 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: 01 07 00 B2 19 00 00 00 00 00 51 0C 2F [07:31:01]RasterBufferAndPrint [07:31:01]line [07:31:01]line [07:31:01]line [07:31:01]line [07:31:01]line [07:31:01]written 0, free lines is 3158 [07:31:01]MH_Cut [07:31:01]Write to MH i2c: D1 01 00 B9 19 01 A4 [07:31:01]Write i2c OK [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: D1 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: D1 01 00 [07:31:01]MH_I2C_Read... [07:31:01]Read from MH i2c: D1 01 00 B9 19 00 A3 [07:31:01]Write to MH i2c: 01 00 00 BA 19 D3 [07:31:01]Write i2c OK [07:31:01]MH_I2C_Read... [07:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 A6 47 00 BD 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 36 35 33 34 30 10 04 04 00 AB E0 02 00 F4 03 04 00 21 50 18 67 B6 04 01 00 00 E6 32 2A E3 4D 65 04 E7 [07:31:01]CommunicateWithHost err = 0 [07:31:01]CheckOFDResponse [07:31:01]1017 (14) - 77093643461234 [07:31:01]1041 (16) - 0000000000965340 [07:31:01]1040 (4) - 188587 [07:31:01]1012 (4) - 23.10.2024 01:23 [07:31:01]1206 (1) - 0 [07:31:01]OFD Sender: Remove packet 188587 [07:31:01]ProducePacketName [07:31:01]name=ofd_packets/00188587 [07:31:01]NVStorageDeleteData [07:31:02]OFD Sender: No OFD packet to send [07:31:03]*** Cut start [07:31:03]*** Partial cut [07:31:03]*** CUTSNS_PIN = 1 [07:31:03]*** CUTSNS_PIN = 0 [07:31:03]*** Brake cut motor [07:31:03]Read from MH i2c: 01 [07:31:03]MH_I2C_Read... [07:31:03]*** Stop cut motor [07:31:03]*** Cut end [07:31:03]Read from MH i2c: 01 07 00 [07:31:03]MH_I2C_Read... [07:31:03]Read from MH i2c: 01 07 00 BA 19 00 00 00 00 00 FF 0F E8 [07:31:03]process_action close_receipt done [07:31:03]requested_data is exist [07:31:03]produce_requested_data [07:31:03]requested_item fm.sn is exist - process it [07:31:03]wFMCommunicate request_size=4 [07:31:03]MH_SAM_APDU [07:31:03]CAPDU: 80 11 00 00 [07:31:03]Write to MH i2c: E2 08 00 BB 19 80 11 00 00 00 00 00 00 4E [07:31:03]Write i2c OK [07:31:03]MH_I2C_Read... [07:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:03]Read from MH i2c: E2 [07:31:03]MH_I2C_Read... [07:31:03]Read from MH i2c: E2 17 00 [07:31:03]MH_I2C_Read... [07:31:03]Read from MH i2c: E2 17 00 BB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [07:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:31:03]wFMCommunicate OK [07:31:03]requested_item fd.num is exist - process it [07:31:03]SAM_PROTO_GetFieldsCounters [07:31:03]wFMCommunicate request_size=4 [07:31:03]MH_SAM_APDU [07:31:03]CAPDU: 80 13 00 00 [07:31:03]Write to MH i2c: E2 08 00 BC 19 80 13 00 00 00 00 00 00 51 [07:31:03]Write i2c OK [07:31:03]MH_I2C_Read... [07:31:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:03]Read from MH i2c: E2 [07:31:03]MH_I2C_Read... [07:31:03]Read from MH i2c: E2 62 00 [07:31:03]MH_I2C_Read... [07:31:03]Read from MH i2c: E2 62 00 BC 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [07:31:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:31:03]wFMCommunicate OK [07:31:03]SAM_PROTO_GetFieldsCounters done [07:31:03]requested_item shift.num is exist - process it [07:31:03]requested_item shift.opened is exist - process it [07:31:03]req_shift_opened [07:31:03]FM_GetShiftState [07:31:03]SAM_PROTO_GetShiftState [07:31:03]wFMCommunicate request_size=4 [07:31:03]MH_SAM_APDU [07:31:03]CAPDU: 80 13 01 00 [07:31:03]Write to MH i2c: E2 08 00 BD 19 80 13 01 00 00 00 00 00 53 [07:31:03]Write i2c OK [07:31:03]MH_I2C_Read... [07:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:03]Read from MH i2c: E2 [07:31:03]MH_I2C_Read... [07:31:03]Read from MH i2c: E2 0E 00 [07:31:03]MH_I2C_Read... [07:31:03]Read from MH i2c: E2 0E 00 BD 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3B [07:31:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:31:03]wFMCommunicate OK [07:31:03]SAM_PROTO_GetShiftState done [07:31:03]FM_GetShiftState done [07:31:03]req_shift_opened done [07:31:03]requested_item shift.open_date is exist - process it [07:31:03]req_shift_open_date [07:31:03]req_shift_open_date done [07:31:03]produce_requested_data done [07:31:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188587,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:31:03]process_action_free close_receipt [07:31:03]json_value_free [07:31:03]json_value_free done [07:31:03]process_json_proto returns [07:31:03]Send response to host [07:31:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188587,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:31:03]free response buf [07:31:03]execute_script done [07:31:03]execute_script returns [07:31:03]free content buf [07:31:03]Sock 9.Close socket [07:31:03]Sock 9.Thread stoped [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:50]accept exits with 7 [07:44:50]New connection [07:44:50]New thread 3066649956 created [07:44:50]Thread 3066506596 joined [07:44:50]Waiting for new connection... [07:44:50] Sock 7.Parse request [07:44:50]Sock 7.Check first char [07:44:50]Sock 7.First char is OK [07:44:50]request: POST /json_proto HTTP/1.0 [07:44:50]Method: POST [07:44:50]URL: /json_proto [07:44:50]Method is POST - this is cgi request [07:44:50]url: /json_proto [07:44:50]query_string will be loaded in cgi processing [07:44:50]execute_cgi json_proto POST (null) [07:44:50]execute_cgi path=json_proto method=POST [07:44:50]POST find Content-Length [07:44:50]Host: 172.17.42.131:8080 [07:44:50]Content-Length: 677 [07:44:50]Content-Type: application/json [07:44:50] [07:44:50]POST finish read [07:44:50]Found Content-Length = 677 [07:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:50]execute_script... [07:44:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:50]POST & json_proto [07:44:50]process_json_proto [07:44:50]json parsed OK: [07:44:50]protocol is kg_v1.0 [07:44:50]action value=close_receipt [07:44:50]process_action close_receipt [07:44:50]cmd_close_receipt [07:44:50]MH_GetDate [07:44:50]Write to MH i2c: F0 00 00 BE 19 C6 [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: F0 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: F0 09 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: F0 09 00 BE 19 00 75 A9 18 67 A0 18 CA 66 54 [07:44:50]GetLastDocTimeStamp 1729668662 [07:44:50]current date 1729669493 [07:44:50]FM_GetShiftState [07:44:50]SAM_PROTO_GetShiftState [07:44:50]wFMCommunicate request_size=4 [07:44:50]MH_SAM_APDU [07:44:50]CAPDU: 80 13 01 00 [07:44:50]Write to MH i2c: E2 08 00 BF 19 80 13 01 00 00 00 00 00 55 [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 0E 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 0E 00 BF 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3D [07:44:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:44:50]wFMCommunicate OK [07:44:50]SAM_PROTO_GetShiftState done [07:44:50]FM_GetShiftState done [07:44:50]opened in 1729642525 [07:44:50]opened+sec_in_day 1729728925 [07:44:50]quantity*price = 25020 [07:44:50]sum+1 = 25022 [07:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 46 23.10.2024 07:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188588 ФПД: 8168647855295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074453&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188588&fm=8168647855295&tin=02508201610067®Number=0000000000100030&sum=25000 [07:44:51]StoreToDocumentArchive [07:44:51]shift 462 fd 188588 [07:44:51]save to /storage/0462/doc_00188588 [07:44:51]save last doc name /storage/0462/doc_00188588 to /storage/kkm_last_doc_name [07:44:51]save OK [07:44:51]Clear old archive folders... [07:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:51]tlvbuf is B6E5E430 [07:44:51]SAM_PROTO_ClearQueue [07:44:51]wFMCommunicate request_size=4 [07:44:51]MH_SAM_APDU [07:44:51]CAPDU: 80 09 00 00 [07:44:51]Write to MH i2c: E2 08 00 CC 19 80 09 00 00 00 00 00 00 57 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:51]Read from MH i2c: E2 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 CC 19 00 90 00 59 [07:44:51]RAPDU: 90 00 [07:44:51]wFMCommunicate OK [07:44:51]SAM_PROTO_ClearQueue done [07:44:51]KKMCreateOFDPacket [07:44:51]OFDProtocolAddRootSTLVToBuf [07:44:51]FM_MakeSignedData [07:44:51]FM_MakeSignedData [07:44:51]SAM_PROTO_SignData [07:44:51]wFMCommunicate request_size=4 [07:44:51]MH_SAM_APDU [07:44:51]CAPDU: 80 0D 01 02 [07:44:51]Write to MH i2c: E2 08 00 CD 19 80 0D 01 02 00 00 00 00 5F [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:51]Read from MH i2c: E2 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 CD 19 00 90 00 5A [07:44:51]RAPDU: 90 00 [07:44:51]wFMCommunicate OK [07:44:51]wFMCommunicate request_size=255 [07:44:51]MH_SAM_APDU [07:44:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 75 A9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E0 02 00 35 04 06 00 07 [07:44:51]Write to MH i2c: E2 02 01 CE 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 75 A9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E0 02 00 35 04 06 00 07 00 00 DA [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:51]Read from MH i2c: E2 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 CE 19 00 90 00 5B [07:44:51]RAPDU: 90 00 [07:44:51]wFMCommunicate OK [07:44:51]wFMCommunicate request_size=10 [07:44:51]MH_SAM_APDU [07:44:51]CAPDU: 80 0D 02 02 05 6D E9 5A 8C BF [07:44:51]Write to MH i2c: E2 0D 00 CF 19 80 0D 02 02 05 00 6D E9 5A 8C BF 00 00 67 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:51]Read from MH i2c: E2 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 CF 19 00 90 00 5C [07:44:51]RAPDU: 90 00 [07:44:51]wFMCommunicate OK [07:44:51]wFMCommunicate request_size=4 [07:44:51]MH_SAM_APDU [07:44:51]CAPDU: 80 0D 03 02 [07:44:51]Write to MH i2c: E2 08 00 D0 19 80 0D 03 02 00 00 00 00 64 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:51]Read from MH i2c: E2 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 0B 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 0B 00 D0 19 00 9A 84 B5 B6 AC 95 D0 04 90 00 03 [07:44:51]RAPDU: 9A 84 B5 B6 AC 95 D0 04 90 00 [07:44:51]wFMCommunicate OK [07:44:51]SAM_PROTO_SignData done [07:44:51]FM_MakeSignedData done [07:44:51]CreateOFDProtocolMessage [07:44:51]wFMCommunicate request_size=4 [07:44:51]MH_SAM_APDU [07:44:51]CAPDU: 80 11 00 00 [07:44:51]Write to MH i2c: E2 08 00 D1 19 80 11 00 00 00 00 00 00 64 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:51]Read from MH i2c: E2 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 17 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 17 00 D1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [07:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:44:51]wFMCommunicate OK [07:44:51]CreateOFDProtocolMessage done [07:44:51]OFDSenderStorePacket 188588 [07:44:51]StoreOFDPacket docnum=188588 [07:44:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 96 07 01 72 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 75 A9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E0 02 00 35 04 06 00 07 6D E9 5A 8C BF 9A 84 B5 B6 AC 95 D0 04 [07:44:51]CheckFolder [07:44:51]dirname=/storage/ofd_packets [07:44:51]CheckFolder done [07:44:51]ProducePacketName [07:44:51]name=ofd_packets/00188588 [07:44:51]NVStorageSaveData ofd_packets/00188588 [07:44:51]File name is /storage/ofd_packets/00188588 [07:44:51]Write 301 bytes [07:44:51]NVStorageSaveData done [07:44:51]OFDSenderStorePacket done [07:44:51]KKMCreateOFDPacket done [07:44:51]NVStorageSaveData kkm_last_timestamp [07:44:51]File name is /storage/kkm_last_timestamp [07:44:51]Write 4 bytes [07:44:51]NVStorageSaveData done [07:44:51]ExternCall_PrintAddStr [07:44:51]wPrintStart [07:44:51]Write to MH i2c: 01 00 00 D2 19 EB [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: 01 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: 01 07 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 FF 0F 00 [07:44:51]RasterBufferAndPrint [07:44:51]line Счет N : (1)210647 [07:44:51]line ИНН: 02508201610067 [07:44:51]line Контрольно-Кассовый Чек [07:44:51]line ПРОДАЖА [07:44:51]line ТРК (МРК, ГНК) : 42 [07:44:51]line Товар: 2710124130 [07:44:51]line Аи-92-К-3 [07:44:51]line 3.740 * 66.90 [07:44:51]line = 250.21 [07:44:51]line НДС 12% НСП 1% [07:44:51]line > о реализуемом товаре [07:44:51]line ОКРУГЛЕНИЕ: -0.21 [07:44:51]line ИТОГО: 250.00 [07:44:51]line Внесено: 250.00 [07:44:51]line СДАЧА: 0.00 [07:44:51]line НСП 1% : 2.21 [07:44:51]line НДС 12% : 26.57 [07:44:51]line Наличными: 250.00 [07:44:51]line Безнал.: 0.00 [07:44:51]line Место: АЗС № 86 "Партнер Нефть" [07:44:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:44:51]line СНО: Общий режим [07:44:51]line Чек 46 23.10.2024 07:44 [07:44:51]line Смена: 462 ФФД: 1.0 [07:44:51]line ЗНМ: 0300000155 [07:44:51]line РНМ: 0000000000100030 [07:44:51]line Версия ККМ: 001 [07:44:51]line ФМ: 0000000000965340 [07:44:51]line ФД: 188588 [07:44:51]line ФПД: 8168647855295 [07:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074453&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188588&fm=8168647855295&tin=02508201610067®Number=0000000000100030&sum=25000 [07:44:51]written 0, free lines is 4095 [07:44:51]OFD Sender: Processing packet 188588 [packets to send 1062, broken 1061] [07:44:51]ProducePacketName [07:44:51]name=ofd_packets/00188588 [07:44:51]OFD Sender: To server: pG, [07:44:51]CommunicateWithHost lk.salyk.kg:30040 [07:44:51]ConnectInit lk.salyk.kg [07:44:52]Write to MH i2c: 01 00 00 FD 19 16 [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 FD 19 00 00 00 00 00 51 0C 7A [07:44:52]RasterBufferAndPrint [07:44:52]line [07:44:52]line [07:44:52]line [07:44:52]line [07:44:52]line [07:44:52]written 0, free lines is 3157 [07:44:52]MH_Cut [07:44:52]Write to MH i2c: D1 01 00 04 1A 01 F0 [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: D1 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: D1 01 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: D1 01 00 04 1A 00 EF [07:44:52]Write to MH i2c: 01 00 00 05 1A 1F [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:53]*** Cut start [07:44:53]*** Partial cut [07:44:53]*** CUTSNS_PIN = 1 [07:44:53]*** CUTSNS_PIN = 0 [07:44:53]*** Brake cut motor [07:44:54]Read from MH i2c: 01 [07:44:54]MH_I2C_Read... [07:44:54]*** Stop cut motor [07:44:54]*** Cut end [07:44:54]Read from MH i2c: 01 07 00 [07:44:54]MH_I2C_Read... [07:44:54]Read from MH i2c: 01 07 00 05 1A 00 00 00 00 00 FF 0F 34 [07:44:54]process_action close_receipt done [07:44:54]requested_data is exist [07:44:54]produce_requested_data [07:44:54]requested_item fm.sn is exist - process it [07:44:54]wFMCommunicate request_size=4 [07:44:54]MH_SAM_APDU [07:44:54]CAPDU: 80 11 00 00 [07:44:54]Write to MH i2c: E2 08 00 06 1A 80 11 00 00 00 00 00 00 9A [07:44:54]Write i2c OK [07:44:54]MH_I2C_Read... [07:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:54]Read from MH i2c: E2 [07:44:54]MH_I2C_Read... [07:44:54]Read from MH i2c: E2 17 00 [07:44:54]MH_I2C_Read... [07:44:54]Read from MH i2c: E2 17 00 06 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [07:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:44:54]wFMCommunicate OK [07:44:54]requested_item fd.num is exist - process it [07:44:54]SAM_PROTO_GetFieldsCounters [07:44:54]wFMCommunicate request_size=4 [07:44:54]MH_SAM_APDU [07:44:54]CAPDU: 80 13 00 00 [07:44:54]Write to MH i2c: E2 08 00 07 1A 80 13 00 00 00 00 00 00 9D [07:44:54]Write i2c OK [07:44:54]MH_I2C_Read... [07:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:54]Read from MH i2c: E2 [07:44:54]MH_I2C_Read... [07:44:54]Read from MH i2c: E2 62 00 [07:44:54]MH_I2C_Read... [07:44:54]Read from MH i2c: E2 62 00 07 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [07:44:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:54]wFMCommunicate OK [07:44:54]SAM_PROTO_GetFieldsCounters done [07:44:54]requested_item shift.num is exist - process it [07:44:54]requested_item shift.opened is exist - process it [07:44:54]req_shift_opened [07:44:54]FM_GetShiftState [07:44:54]SAM_PROTO_GetShiftState [07:44:54]wFMCommunicate request_size=4 [07:44:54]MH_SAM_APDU [07:44:54]CAPDU: 80 13 01 00 [07:44:54]Write to MH i2c: E2 08 00 08 1A 80 13 01 00 00 00 00 00 9F [07:44:54]Write i2c OK [07:44:54]MH_I2C_Read... [07:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:54]Read from MH i2c: E2 [07:44:54]MH_I2C_Read... [07:44:54]Read from MH i2c: E2 0E 00 [07:44:54]MH_I2C_Read... [07:44:54]Read from MH i2c: E2 0E 00 08 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 87 [07:44:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:44:54]wFMCommunicate OK [07:44:54]SAM_PROTO_GetShiftState done [07:44:54]FM_GetShiftState done [07:44:54]req_shift_opened done [07:44:54]requested_item shift.open_date is exist - process it [07:44:54]req_shift_open_date [07:44:54]req_shift_open_date done [07:44:54]produce_requested_data done [07:44:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188588,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:44:54]process_action_free close_receipt [07:44:54]json_value_free [07:44:54]json_value_free done [07:44:54]process_json_proto returns [07:44:54]Send response to host [07:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188588,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:44:54]free response buf [07:44:54]execute_script done [07:44:54]execute_script returns [07:44:54]free content buf [07:44:54]Sock 7.Close socket [07:44:54]Sock 7.Thread stoped [07:47:04]ConnectInit Can't connect to host [07:47:04]CommunicateWithHost connect error [07:47:04]CommunicateWithHost err = -1 [07:47:04]OFD Sender: Server communicate error [07:47:10]OFD Sender: Processing packet 188588 [packets to send 1062, broken 1061] [07:47:10]ProducePacketName [07:47:10]name=ofd_packets/00188588 [07:47:10]OFD Sender: To server: pG, [07:47:10]CommunicateWithHost lk.salyk.kg:30040 [07:47:10]ConnectInit lk.salyk.kg [07:47:10]Connected sock=7 [07:47:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 96 07 01 72 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 75 A9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E0 02 00 35 04 06 00 07 6D E9 5A 8C BF 9A 84 B5 B6 AC 95 D0 04 [07:47:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E 42 47 00 B1 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E0 02 00 F4 03 04 00 EA 53 18 67 B6 04 01 00 00 76 AD 15 7B 31 06 34 00 [07:47:10]CommunicateWithHost err = 0 [07:47:10]CheckOFDResponse [07:47:10]1017 (14) - 77093643461234 [07:47:10]1041 (16) - 0000000000965340 [07:47:10]1040 (4) - 188588 [07:47:10]1012 (4) - 23.10.2024 01:39 [07:47:10]1206 (1) - 0 [07:47:10]OFD Sender: Remove packet 188588 [07:47:10]ProducePacketName [07:47:10]name=ofd_packets/00188588 [07:47:10]NVStorageDeleteData [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50: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:55]accept exits with 9 [07:53:55]New connection [07:53:55]New thread 3066506596 created [07:53:55]Thread 3066649956 joined [07:53:55]Waiting for new connection... [07:53:55] Sock 9.Parse request [07:53:55]Sock 9.Check first char [07:53:55]Sock 9.First char is OK [07:53:55]request: POST /json_proto HTTP/1.0 [07:53:55]Method: POST [07:53:55]URL: /json_proto [07:53:55]Method is POST - this is cgi request [07:53:55]url: /json_proto [07:53:55]query_string will be loaded in cgi processing [07:53:55]execute_cgi json_proto POST (null) [07:53:55]execute_cgi path=json_proto method=POST [07:53:55]POST find Content-Length [07:53:55]Host: 172.17.42.131:8080 [07:53:55]Content-Length: 755 [07:53:55]Content-Type: application/json [07:53:55] [07:53:55]POST finish read [07:53:55]Found Content-Length = 755 [07:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:55]execute_script... [07:53:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:55]POST & json_proto [07:53:55]process_json_proto [07:53:55]json parsed OK: [07:53:55]protocol is kg_v1.0 [07:53:55]action value=close_receipt [07:53:55]process_action close_receipt [07:53:55]cmd_close_receipt [07:53:55]MH_GetDate [07:53:55]Write to MH i2c: F0 00 00 09 1A 12 [07:53:55]Write i2c OK [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: F0 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: F0 09 00 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: F0 09 00 09 1A 00 96 AB 18 67 A0 18 CA 66 C3 [07:53:55]GetLastDocTimeStamp 1729669493 [07:53:55]current date 1729670038 [07:53:55]FM_GetShiftState [07:53:55]SAM_PROTO_GetShiftState [07:53:55]wFMCommunicate request_size=4 [07:53:55]MH_SAM_APDU [07:53:55]CAPDU: 80 13 01 00 [07:53:55]Write to MH i2c: E2 08 00 0A 1A 80 13 01 00 00 00 00 00 A1 [07:53:55]Write i2c OK [07:53:55]MH_I2C_Read... [07:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:55]Read from MH i2c: E2 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: E2 0E 00 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: E2 0E 00 0A 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 89 [07:53:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:53:55]wFMCommunicate OK [07:53:55]SAM_PROTO_GetShiftState done [07:53:55]FM_GetShiftState done [07:53:55]opened in 1729642525 [07:53:55]opened+sec_in_day 1729728925 [07:53:55]quantity*price = 0 [07:53:55]sum+1 = 1 [07:53:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 47 23.10.2024 07:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30101333 ФМ: 0000000000965340 ФД: 188589 ФПД: 167848890945455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188589&fm=167848890945455&tin=02508201610067®Number=0000000000100030&sum=0 [07:53:56]StoreToDocumentArchive [07:53:56]shift 462 fd 188589 [07:53:56]save to /storage/0462/doc_00188589 [07:53:56]save last doc name /storage/0462/doc_00188589 to /storage/kkm_last_doc_name [07:53:56]save OK [07:53:56]Clear old archive folders... [07:53:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:56]tlvbuf is 008FC890 [07:53:56]SAM_PROTO_ClearQueue [07:53:56]wFMCommunicate request_size=4 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 09 00 00 [07:53:56]Write to MH i2c: E2 08 00 17 1A 80 09 00 00 00 00 00 00 A3 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 03 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 03 00 17 1A 00 90 00 A5 [07:53:56]RAPDU: 90 00 [07:53:56]wFMCommunicate OK [07:53:56]SAM_PROTO_ClearQueue done [07:53:56]KKMCreateOFDPacket [07:53:56]OFDProtocolAddRootSTLVToBuf [07:53:56]FM_MakeSignedData [07:53:56]FM_MakeSignedData [07:53:56]SAM_PROTO_SignData [07:53:56]wFMCommunicate request_size=4 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 0D 01 02 [07:53:56]Write to MH i2c: E2 08 00 18 1A 80 0D 01 02 00 00 00 00 AB [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 03 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 03 00 18 1A 00 90 00 A6 [07:53:56]RAPDU: 90 00 [07:53:56]wFMCommunicate OK [07:53:56]wFMCommunicate request_size=255 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 96 AB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E0 02 00 35 04 06 00 98 [07:53:56]Write to MH i2c: E2 02 01 19 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 96 AB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E0 02 00 35 04 06 00 98 00 00 A5 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 03 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 03 00 19 1A 00 90 00 A7 [07:53:56]RAPDU: 90 00 [07:53:56]wFMCommunicate OK [07:53:56]wFMCommunicate request_size=10 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 0D 02 02 05 A8 5D 85 4F AF [07:53:56]Write to MH i2c: E2 0D 00 1A 1A 80 0D 02 02 05 00 A8 5D 85 4F AF 00 00 40 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 03 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 03 00 1A 1A 00 90 00 A8 [07:53:56]RAPDU: 90 00 [07:53:56]wFMCommunicate OK [07:53:56]wFMCommunicate request_size=4 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 0D 03 02 [07:53:56]Write to MH i2c: E2 08 00 1B 1A 80 0D 03 02 00 00 00 00 B0 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 0B 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 0B 00 1B 1A 00 36 A9 B0 CB 52 EB 99 EA 90 00 CB [07:53:56]RAPDU: 36 A9 B0 CB 52 EB 99 EA 90 00 [07:53:56]wFMCommunicate OK [07:53:56]SAM_PROTO_SignData done [07:53:56]FM_MakeSignedData done [07:53:56]CreateOFDProtocolMessage [07:53:56]wFMCommunicate request_size=4 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 11 00 00 [07:53:56]Write to MH i2c: E2 08 00 1C 1A 80 11 00 00 00 00 00 00 B0 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 17 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 17 00 1C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [07:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:53:56]wFMCommunicate OK [07:53:56]CreateOFDProtocolMessage done [07:53:56]OFDSenderStorePacket 188589 [07:53:56]StoreOFDPacket docnum=188589 [07:53:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF EB 07 01 CC 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 96 AB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E0 02 00 35 04 06 00 98 A8 5D 85 4F AF 36 A9 B0 CB 52 EB 99 EA [07:53:56]CheckFolder [07:53:56]dirname=/storage/ofd_packets [07:53:56]CheckFolder done [07:53:56]ProducePacketName [07:53:56]name=ofd_packets/00188589 [07:53:56]NVStorageSaveData ofd_packets/00188589 [07:53:56]File name is /storage/ofd_packets/00188589 [07:53:56]Write 301 bytes [07:53:56]NVStorageSaveData done [07:53:56]OFDSenderStorePacket done [07:53:56]KKMCreateOFDPacket done [07:53:56]NVStorageSaveData kkm_last_timestamp [07:53:56]File name is /storage/kkm_last_timestamp [07:53:56]Write 4 bytes [07:53:56]NVStorageSaveData done [07:53:56]ExternCall_PrintAddStr [07:53:56]wPrintStart [07:53:56]Write to MH i2c: 01 00 00 1D 1A 37 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: 01 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: 01 07 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: 01 07 00 1D 1A 00 00 00 00 00 FF 0F 4C [07:53:56]RasterBufferAndPrint [07:53:56]line Счет N : (1)210648 [07:53:56]line ИНН: 02508201610067 [07:53:56]line Контрольно-Кассовый Чек [07:53:56]line ПРОДАЖА [07:53:56]line ТРК (МРК, ГНК) : 32 [07:53:56]line Товар: 2710124130 [07:53:56]line Аи-92-К-3 [07:53:56]line 100.000 * 0.00 [07:53:56]line = 0.00 [07:53:56]line НДС 12% НСП 1% [07:53:56]line > о реализуемом товаре [07:53:56]line ИТОГО: 0.00 [07:53:56]line НСП 1% : 0.00 [07:53:56]line НДС 12% : 0.00 [07:53:56]line Наличными: 0.00 [07:53:56]line Безнал.: 0.00 [07:53:56]line Место: АЗС № 86 "Партнер Нефть" [07:53:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:53:56]line СНО: Общий режим [07:53:56]line Чек 47 23.10.2024 07:53 [07:53:56]line Смена: 462 ФФД: 1.0 [07:53:56]line ЗНМ: 0300000155 [07:53:56]line РНМ: 0000000000100030 [07:53:56]line Версия ККМ: 001 [07:53:56]line Талоны: ТК ГПНА Online [07:53:56]line 30101333 [07:53:56]line ФМ: 0000000000965340 [07:53:56]line ФД: 188589 [07:53:56]line ФПД: 167848890945455 [07:53:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188589&fm=167848890945455&tin=02508201610067®Number=0000000000100030&sum=0 [07:53:56]written 0, free lines is 4095 [07:53:56]OFD Sender: Processing packet 188589 [packets to send 1062, broken 1061] [07:53:56]ProducePacketName [07:53:56]name=ofd_packets/00188589 [07:53:56]OFD Sender: To server: pG, [07:53:56]CommunicateWithHost lk.salyk.kg:30040 [07:53:56]ConnectInit lk.salyk.kg [07:53:57]Connected sock=10 [07:53:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF EB 07 01 CC 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 96 AB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E0 02 00 35 04 06 00 98 A8 5D 85 4F AF 36 A9 B0 CB 52 EB 99 EA [07:53:57]Write to MH i2c: 01 00 00 47 1A 61 [07:53:57]Write i2c OK [07:53:57]MH_I2C_Read... [07:53:57]Read from MH i2c: 01 [07:53:57]MH_I2C_Read... [07:53:57]Read from MH i2c: 01 07 00 [07:53:57]MH_I2C_Read... [07:53:57]Read from MH i2c: 01 07 00 47 1A 00 00 00 00 00 60 0C D4 [07:53:57]RasterBufferAndPrint [07:53:57]line [07:53:57]line [07:53:57]line [07:53:57]line [07:53:57]line [07:53:57]written 0, free lines is 3172 [07:53:57]MH_Cut [07:53:57]Write to MH i2c: D1 01 00 4E 1A 01 3A [07:53:57]Write i2c OK [07:53:57]MH_I2C_Read... [07:53:57]Read from MH i2c: D1 [07:53:57]MH_I2C_Read... [07:53:57]Read from MH i2c: D1 01 00 [07:53:57]MH_I2C_Read... [07:53:57]Read from MH i2c: D1 01 00 4E 1A 00 39 [07:53:57]Write to MH i2c: 01 00 00 4F 1A 69 [07:53:57]Write i2c OK [07:53:57]MH_I2C_Read... [07:53:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 74 F4 47 00 3D 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 36 35 33 34 30 10 04 04 00 AD E0 02 00 F4 03 04 00 81 55 18 67 B6 04 01 00 00 50 87 78 A2 AE 48 72 93 [07:53:57]CommunicateWithHost err = 0 [07:53:57]CheckOFDResponse [07:53:57]1017 (14) - 77093643461234 [07:53:57]1041 (16) - 0000000000965340 [07:53:57]1040 (4) - 188589 [07:53:57]1012 (4) - 23.10.2024 01:46 [07:53:57]1206 (1) - 0 [07:53:57]OFD Sender: Remove packet 188589 [07:53:57]ProducePacketName [07:53:57]name=ofd_packets/00188589 [07:53:57]NVStorageDeleteData [07:53:58]OFD Sender: No OFD packet to send [07:53:58]*** Cut start [07:53:58]*** Partial cut [07:53:58]*** CUTSNS_PIN = 1 [07:53:58]*** CUTSNS_PIN = 0 [07:53:58]*** Brake cut motor [07:53:59]Read from MH i2c: 01 [07:53:59]MH_I2C_Read... [07:53:59]*** Stop cut motor [07:53:59]*** Cut end [07:53:59]Read from MH i2c: 01 07 00 [07:53:59]MH_I2C_Read... [07:53:59]Read from MH i2c: 01 07 00 4F 1A 00 00 00 00 00 FF 0F 7E [07:53:59]process_action close_receipt done [07:53:59]requested_data is exist [07:53:59]produce_requested_data [07:53:59]requested_item fm.sn is exist - process it [07:53:59]wFMCommunicate request_size=4 [07:53:59]MH_SAM_APDU [07:53:59]CAPDU: 80 11 00 00 [07:53:59]Write to MH i2c: E2 08 00 50 1A 80 11 00 00 00 00 00 00 E4 [07:53:59]Write i2c OK [07:53:59]MH_I2C_Read... [07:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:59]Read from MH i2c: E2 [07:53:59]MH_I2C_Read... [07:53:59]Read from MH i2c: E2 17 00 [07:53:59]MH_I2C_Read... [07:53:59]Read from MH i2c: E2 17 00 50 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [07:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:53:59]wFMCommunicate OK [07:53:59]requested_item fd.num is exist - process it [07:53:59]SAM_PROTO_GetFieldsCounters [07:53:59]wFMCommunicate request_size=4 [07:53:59]MH_SAM_APDU [07:53:59]CAPDU: 80 13 00 00 [07:53:59]Write to MH i2c: E2 08 00 51 1A 80 13 00 00 00 00 00 00 E7 [07:53:59]Write i2c OK [07:53:59]MH_I2C_Read... [07:53:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:59]Read from MH i2c: E2 [07:53:59]MH_I2C_Read... [07:53:59]Read from MH i2c: E2 62 00 [07:53:59]MH_I2C_Read... [07:53:59]Read from MH i2c: E2 62 00 51 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [07:53:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:53:59]wFMCommunicate OK [07:53:59]SAM_PROTO_GetFieldsCounters done [07:53:59]requested_item shift.num is exist - process it [07:53:59]requested_item shift.opened is exist - process it [07:53:59]req_shift_opened [07:53:59]FM_GetShiftState [07:53:59]SAM_PROTO_GetShiftState [07:53:59]wFMCommunicate request_size=4 [07:53:59]MH_SAM_APDU [07:53:59]CAPDU: 80 13 01 00 [07:53:59]Write to MH i2c: E2 08 00 52 1A 80 13 01 00 00 00 00 00 E9 [07:53:59]Write i2c OK [07:53:59]MH_I2C_Read... [07:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:59]Read from MH i2c: E2 [07:53:59]MH_I2C_Read... [07:53:59]Read from MH i2c: E2 0E 00 [07:53:59]MH_I2C_Read... [07:53:59]Read from MH i2c: E2 0E 00 52 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D1 [07:53:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:53:59]wFMCommunicate OK [07:53:59]SAM_PROTO_GetShiftState done [07:53:59]FM_GetShiftState done [07:53:59]req_shift_opened done [07:53:59]requested_item shift.open_date is exist - process it [07:53:59]req_shift_open_date [07:53:59]req_shift_open_date done [07:53:59]produce_requested_data done [07:53:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188589,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:53:59]process_action_free close_receipt [07:53:59]json_value_free [07:53:59]json_value_free done [07:53:59]process_json_proto returns [07:53:59]Send response to host [07:53:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188589,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:53:59]free response buf [07:53:59]execute_script done [07:53:59]execute_script returns [07:53:59]free content buf [07:53:59]Sock 9.Close socket [07:53:59]Sock 9.Thread stoped [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:09]accept exits with 7 [07:56:09]New connection [07:56:09]New thread 3066649956 created [07:56:09]Thread 3066506596 joined [07:56:09]Waiting for new connection... [07:56:09] Sock 7.Parse request [07:56:09]Sock 7.Check first char [07:56:09]Sock 7.First char is OK [07:56:09]request: POST /json_proto HTTP/1.0 [07:56:09]Method: POST [07:56:09]URL: /json_proto [07:56:09]Method is POST - this is cgi request [07:56:09]url: /json_proto [07:56:09]query_string will be loaded in cgi processing [07:56:09]execute_cgi json_proto POST (null) [07:56:09]execute_cgi path=json_proto method=POST [07:56:09]POST find Content-Length [07:56:09]Host: 172.17.42.131:8080 [07:56:09]Content-Length: 682 [07:56:09]Content-Type: application/json [07:56:09] [07:56:09]POST finish read [07:56:09]Found Content-Length = 682 [07:56:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:09]execute_script... [07: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 : (1)210649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:09]POST & json_proto [07:56:09]process_json_proto [07:56:09]json parsed OK: [07:56:09]protocol is kg_v1.0 [07:56:09]action value=close_receipt [07:56:09]process_action close_receipt [07:56:09]cmd_close_receipt [07:56:09]MH_GetDate [07:56:09]Write to MH i2c: F0 00 00 53 1A 5C [07:56:09]Write i2c OK [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: F0 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: F0 09 00 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: F0 09 00 53 1A 00 1C AC 18 67 A0 18 CA 66 94 [07:56:09]GetLastDocTimeStamp 1729670038 [07:56:09]current date 1729670172 [07:56:09]FM_GetShiftState [07:56:09]SAM_PROTO_GetShiftState [07:56:09]wFMCommunicate request_size=4 [07:56:09]MH_SAM_APDU [07:56:09]CAPDU: 80 13 01 00 [07:56:09]Write to MH i2c: E2 08 00 54 1A 80 13 01 00 00 00 00 00 EB [07:56:09]Write i2c OK [07:56:09]MH_I2C_Read... [07:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:09]Read from MH i2c: E2 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: E2 0E 00 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: E2 0E 00 54 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D3 [07:56:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:56:09]wFMCommunicate OK [07:56:09]SAM_PROTO_GetShiftState done [07:56:09]FM_GetShiftState done [07:56:09]opened in 1729642525 [07:56:09]opened+sec_in_day 1729728925 [07:56:09]quantity*price = 150056 [07:56:09]sum+1 = 150058 [07:56:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 48 23.10.2024 07:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188590 ФПД: 59013611163487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075612&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188590&fm=59013611163487&tin=02508201610067®Number=0000000000100030&sum=150000 [07:56:10]StoreToDocumentArchive [07:56:10]shift 462 fd 188590 [07:56:10]save to /storage/0462/doc_00188590 [07:56:10]save last doc name /storage/0462/doc_00188590 to /storage/kkm_last_doc_name [07:56:10]save OK [07:56:10]Clear old archive folders... [07:56:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:10]tlvbuf is B6E5E5A0 [07:56:10]SAM_PROTO_ClearQueue [07:56:10]wFMCommunicate request_size=4 [07:56:10]MH_SAM_APDU [07:56:10]CAPDU: 80 09 00 00 [07:56:10]Write to MH i2c: E2 08 00 61 1A 80 09 00 00 00 00 00 00 ED [07:56:10]Write i2c OK [07:56:10]MH_I2C_Read... [07:56:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:10]Read from MH i2c: E2 [07:56:10]MH_I2C_Read... [07:56:10]Read from MH i2c: E2 03 00 [07:56:10]MH_I2C_Read... [07:56:10]Read from MH i2c: E2 03 00 61 1A 00 90 00 EF [07:56:10]RAPDU: 90 00 [07:56:10]wFMCommunicate OK [07:56:10]SAM_PROTO_ClearQueue done [07:56:10]KKMCreateOFDPacket [07:56:10]OFDProtocolAddRootSTLVToBuf [07:56:10]FM_MakeSignedData [07:56:10]FM_MakeSignedData [07:56:10]SAM_PROTO_SignData [07:56:10]wFMCommunicate request_size=4 [07:56:10]MH_SAM_APDU [07:56:10]CAPDU: 80 0D 01 02 [07:56:10]Write to MH i2c: E2 08 00 62 1A 80 0D 01 02 00 00 00 00 F5 [07:56:10]Write i2c OK [07:56:10]MH_I2C_Read... [07:56:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:10]Read from MH i2c: E2 [07:56:10]MH_I2C_Read... [07:56:10]Read from MH i2c: E2 03 00 [07:56:10]MH_I2C_Read... [07:56:10]Read from MH i2c: E2 03 00 62 1A 00 90 00 F0 [07:56:10]RAPDU: 90 00 [07:56:10]wFMCommunicate OK [07:56:10]wFMCommunicate request_size=255 [07:56:10]MH_SAM_APDU [07:56:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C AC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E0 02 00 35 04 06 00 35 [07:56:10]Write to MH i2c: E2 02 01 63 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C AC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E0 02 00 35 04 06 00 35 00 00 BC [07:56:10]Write i2c OK [07:56:10]MH_I2C_Read... [07:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:10]Read from MH i2c: E2 [07:56:10]MH_I2C_Read... [07:56:10]Read from MH i2c: E2 03 00 [07:56:10]MH_I2C_Read... [07:56:10]Read from MH i2c: E2 03 00 63 1A 00 90 00 F1 [07:56:10]RAPDU: 90 00 [07:56:10]wFMCommunicate OK [07:56:10]wFMCommunicate request_size=10 [07:56:10]MH_SAM_APDU [07:56:10]CAPDU: 80 0D 02 02 05 AC 2D 54 8F 5F [07:56:10]Write to MH i2c: E2 0D 00 64 1A 80 0D 02 02 05 00 AC 2D 54 8F 5F 00 00 1D [07:56:10]Write i2c OK [07:56:10]MH_I2C_Read... [07:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:11]Read from MH i2c: E2 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: E2 03 00 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: E2 03 00 64 1A 00 90 00 F2 [07:56:11]RAPDU: 90 00 [07:56:11]wFMCommunicate OK [07:56:11]wFMCommunicate request_size=4 [07:56:11]MH_SAM_APDU [07:56:11]CAPDU: 80 0D 03 02 [07:56:11]Write to MH i2c: E2 08 00 65 1A 80 0D 03 02 00 00 00 00 FA [07:56:11]Write i2c OK [07:56:11]MH_I2C_Read... [07:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:11]Read from MH i2c: E2 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: E2 0B 00 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: E2 0B 00 65 1A 00 F3 69 25 DD 2E 13 CD D7 90 00 3E [07:56:11]RAPDU: F3 69 25 DD 2E 13 CD D7 90 00 [07:56:11]wFMCommunicate OK [07:56:11]SAM_PROTO_SignData done [07:56:11]FM_MakeSignedData done [07:56:11]CreateOFDProtocolMessage [07:56:11]wFMCommunicate request_size=4 [07:56:11]MH_SAM_APDU [07:56:11]CAPDU: 80 11 00 00 [07:56:11]Write to MH i2c: E2 08 00 66 1A 80 11 00 00 00 00 00 00 FA [07:56:11]Write i2c OK [07:56:11]MH_I2C_Read... [07:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:11]Read from MH i2c: E2 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: E2 17 00 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: E2 17 00 66 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [07:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:56:11]wFMCommunicate OK [07:56:11]CreateOFDProtocolMessage done [07:56:11]OFDSenderStorePacket 188590 [07:56:11]StoreOFDPacket docnum=188590 [07:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F 61 07 01 BB EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C AC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E0 02 00 35 04 06 00 35 AC 2D 54 8F 5F F3 69 25 DD 2E 13 CD D7 [07:56:11]CheckFolder [07:56:11]dirname=/storage/ofd_packets [07:56:11]CheckFolder done [07:56:11]ProducePacketName [07:56:11]name=ofd_packets/00188590 [07:56:11]NVStorageSaveData ofd_packets/00188590 [07:56:11]File name is /storage/ofd_packets/00188590 [07:56:11]Write 301 bytes [07:56:11]NVStorageSaveData done [07:56:11]OFDSenderStorePacket done [07:56:11]KKMCreateOFDPacket done [07:56:11]NVStorageSaveData kkm_last_timestamp [07:56:11]File name is /storage/kkm_last_timestamp [07:56:11]Write 4 bytes [07:56:11]NVStorageSaveData done [07:56:11]ExternCall_PrintAddStr [07:56:11]wPrintStart [07:56:11]Write to MH i2c: 01 00 00 67 1A 81 [07:56:11]Write i2c OK [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: 01 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: 01 07 00 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: 01 07 00 67 1A 00 00 00 00 00 FF 0F 96 [07:56:11]RasterBufferAndPrint [07:56:11]line Счет N : (1)210649 [07:56:11]line ИНН: 02508201610067 [07:56:11]line Контрольно-Кассовый Чек [07:56:11]line ПРОДАЖА [07:56:11]line ТРК (МРК, ГНК) : 42 [07:56:11]line Товар: 2710124130 [07:56:11]line Аи-92-К-3 [07:56:11]line 22.430 * 66.90 [07:56:11]line = 1500.57 [07:56:11]line НДС 12% НСП 1% [07:56:11]line > о реализуемом товаре [07:56:11]line ОКРУГЛЕНИЕ: -0.57 [07:56:11]line ИТОГО: 1500.00 [07:56:11]line Внесено: 1500.00 [07:56:11]line СДАЧА: 0.00 [07:56:11]line НСП 1% : 13.28 [07:56:11]line НДС 12% : 159.35 [07:56:11]line Наличными: 1500.00 [07:56:11]line Безнал.: 0.00 [07:56:11]line Место: АЗС № 86 "Партнер Нефть" [07:56:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:56:11]line СНО: Общий режим [07:56:11]line Чек 48 23.10.2024 07:56 [07:56:11]line Смена: 462 ФФД: 1.0 [07:56:11]line ЗНМ: 0300000155 [07:56:11]line РНМ: 0000000000100030 [07:56:11]line Версия ККМ: 001 [07:56:11]line ФМ: 0000000000965340 [07:56:11]line ФД: 188590 [07:56:11]line ФПД: 59013611163487 [07:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075612&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188590&fm=59013611163487&tin=02508201610067®Number=0000000000100030&sum=150000 [07:56:11]written 0, free lines is 4095 [07:56:11]OFD Sender: Processing packet 188590 [packets to send 1062, broken 1061] [07:56:11]ProducePacketName [07:56:11]name=ofd_packets/00188590 [07:56:11]OFD Sender: To server: pG, [07:56:11]CommunicateWithHost lk.salyk.kg:30040 [07:56:11]ConnectInit lk.salyk.kg [07:56:11]Connected sock=10 [07:56:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F 61 07 01 BB EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C AC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E0 02 00 35 04 06 00 35 AC 2D 54 8F 5F F3 69 25 DD 2E 13 CD D7 [07:56:11]Write to MH i2c: 01 00 00 92 1A AC [07:56:11]Write i2c OK [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: 01 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: 01 07 00 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 5D 0C 1C [07:56:11]RasterBufferAndPrint [07:56:11]line [07:56:11]line [07:56:11]line [07:56:11]line [07:56:11]line [07:56:11]written 0, free lines is 3168 [07:56:11]MH_Cut [07:56:11]Write to MH i2c: D1 01 00 99 1A 01 85 [07:56:11]Write i2c OK [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: D1 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: D1 01 00 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: D1 01 00 99 1A 00 84 [07:56:11]Write to MH i2c: 01 00 00 9A 1A B4 [07:56:11]Write i2c OK [07:56:11]MH_I2C_Read... [07:56:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A1 D8 47 00 0E 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 36 35 33 34 30 10 04 04 00 AE E0 02 00 F4 03 04 00 07 56 18 67 B6 04 01 00 00 C3 4F D7 20 C2 2D C4 E2 [07:56:11]CommunicateWithHost err = 0 [07:56:11]CheckOFDResponse [07:56:11]1017 (14) - 77093643461234 [07:56:11]1041 (16) - 0000000000965340 [07:56:11]1040 (4) - 188590 [07:56:11]1012 (4) - 23.10.2024 01:48 [07:56:11]1206 (1) - 0 [07:56:11]OFD Sender: Remove packet 188590 [07:56:11]ProducePacketName [07:56:11]name=ofd_packets/00188590 [07:56:11]NVStorageDeleteData [07:56:12]OFD Sender: No OFD packet to send [07:56:12]*** Cut start [07:56:12]*** Partial cut [07:56:12]*** CUTSNS_PIN = 1 [07:56:12]*** CUTSNS_PIN = 0 [07:56:13]*** Brake cut motor [07:56:13]Read from MH i2c: 01 [07:56:13]MH_I2C_Read... [07:56:13]*** Stop cut motor [07:56:13]*** Cut end [07:56:13]Read from MH i2c: 01 07 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: 01 07 00 9A 1A 00 00 00 00 00 FF 0F C9 [07:56:13]process_action close_receipt done [07:56:13]requested_data is exist [07:56:13]produce_requested_data [07:56:13]requested_item fm.sn is exist - process it [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 11 00 00 [07:56:13]Write to MH i2c: E2 08 00 9B 1A 80 11 00 00 00 00 00 00 2F [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 17 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 17 00 9B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [07:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:56:13]wFMCommunicate OK [07:56:13]requested_item fd.num is exist - process it [07:56:13]SAM_PROTO_GetFieldsCounters [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 13 00 00 [07:56:13]Write to MH i2c: E2 08 00 9C 1A 80 13 00 00 00 00 00 00 32 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 62 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 62 00 9C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [07: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:13]wFMCommunicate OK [07:56:13]SAM_PROTO_GetFieldsCounters done [07:56:13]requested_item shift.num is exist - process it [07:56:13]requested_item shift.opened is exist - process it [07:56:13]req_shift_opened [07:56:13]FM_GetShiftState [07:56:13]SAM_PROTO_GetShiftState [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 13 01 00 [07:56:13]Write to MH i2c: E2 08 00 9D 1A 80 13 01 00 00 00 00 00 34 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 0E 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 0E 00 9D 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1C [07:56:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:56:13]wFMCommunicate OK [07:56:13]SAM_PROTO_GetShiftState done [07:56:13]FM_GetShiftState done [07:56:13]req_shift_opened done [07:56:13]requested_item shift.open_date is exist - process it [07:56:13]req_shift_open_date [07:56:13]req_shift_open_date done [07:56:13]produce_requested_data done [07:56:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188590,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:56:13]process_action_free close_receipt [07:56:13]json_value_free [07:56:13]json_value_free done [07:56:13]process_json_proto returns [07:56:13]Send response to host [07:56:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188590,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:56:13]free response buf [07:56:13]execute_script done [07:56:13]execute_script returns [07:56:13]free content buf [07:56:13]Sock 7.Close socket [07:56:13]Sock 7.Thread stoped [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:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]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:34]accept exits with 9 [07:59:34]New connection [07:59:34]New thread 3066506596 created [07:59:34]Thread 3066649956 joined [07:59:34]Waiting for new connection... [07:59:34] Sock 9.Parse request [07:59:34]Sock 9.Check first char [07:59:34]Sock 9.First char is OK [07:59:34]request: POST /json_proto HTTP/1.0 [07:59:34]Method: POST [07:59:34]URL: /json_proto [07:59:34]Method is POST - this is cgi request [07:59:34]url: /json_proto [07:59:34]query_string will be loaded in cgi processing [07:59:34]execute_cgi json_proto POST (null) [07:59:34]execute_cgi path=json_proto method=POST [07:59:34]POST find Content-Length [07:59:34]Host: 172.17.42.131:8080 [07:59:34]Content-Length: 675 [07:59:34]Content-Type: application/json [07:59:34] [07:59:34]POST finish read [07:59:34]Found Content-Length = 675 [07:59:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:34]execute_script... [07:59:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:34]POST & json_proto [07:59:34]process_json_proto [07:59:34]json parsed OK: [07:59:34]protocol is kg_v1.0 [07:59:34]action value=close_receipt [07:59:34]process_action close_receipt [07:59:34]cmd_close_receipt [07:59:34]MH_GetDate [07:59:34]Write to MH i2c: F0 00 00 9E 1A A7 [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: F0 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: F0 09 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: F0 09 00 9E 1A 00 E9 AC 18 67 A0 18 CA 66 AC [07:59:34]GetLastDocTimeStamp 1729670172 [07:59:34]current date 1729670377 [07:59:34]FM_GetShiftState [07:59:34]SAM_PROTO_GetShiftState [07:59:34]wFMCommunicate request_size=4 [07:59:34]MH_SAM_APDU [07:59:34]CAPDU: 80 13 01 00 [07:59:34]Write to MH i2c: E2 08 00 9F 1A 80 13 01 00 00 00 00 00 36 [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:34]Read from MH i2c: E2 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 0E 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 0E 00 9F 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1E [07:59:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:59:34]wFMCommunicate OK [07:59:34]SAM_PROTO_GetShiftState done [07:59:34]FM_GetShiftState done [07:59:34]opened in 1729642525 [07:59:34]opened+sec_in_day 1729728925 [07:59:34]quantity*price = 80010 [07:59:34]sum+1 = 80011 [07:59:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 49 23.10.2024 07:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188591 ФПД: 145207757742947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188591&fm=145207757742947&tin=02508201610067®Number=0000000000100030&sum=80000 [07:59:35]StoreToDocumentArchive [07:59:35]shift 462 fd 188591 [07:59:35]save to /storage/0462/doc_00188591 [07:59:35]save last doc name /storage/0462/doc_00188591 to /storage/kkm_last_doc_name [07:59:35]save OK [07:59:35]Clear old archive folders... [07:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:59:35]tlvbuf is 009673B0 [07:59:35]SAM_PROTO_ClearQueue [07:59:35]wFMCommunicate request_size=4 [07:59:35]MH_SAM_APDU [07:59:35]CAPDU: 80 09 00 00 [07:59:35]Write to MH i2c: E2 08 00 AC 1A 80 09 00 00 00 00 00 00 38 [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:35]Read from MH i2c: E2 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 03 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 03 00 AC 1A 00 90 00 3A [07:59:35]RAPDU: 90 00 [07:59:35]wFMCommunicate OK [07:59:35]SAM_PROTO_ClearQueue done [07:59:35]KKMCreateOFDPacket [07:59:35]OFDProtocolAddRootSTLVToBuf [07:59:35]FM_MakeSignedData [07:59:35]FM_MakeSignedData [07:59:35]SAM_PROTO_SignData [07:59:35]wFMCommunicate request_size=4 [07:59:35]MH_SAM_APDU [07:59:35]CAPDU: 80 0D 01 02 [07:59:35]Write to MH i2c: E2 08 00 AD 1A 80 0D 01 02 00 00 00 00 40 [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:35]Read from MH i2c: E2 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 03 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 03 00 AD 1A 00 90 00 3B [07:59:35]RAPDU: 90 00 [07:59:35]wFMCommunicate OK [07:59:35]wFMCommunicate request_size=255 [07:59:35]MH_SAM_APDU [07:59:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E9 AC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E0 02 00 35 04 06 00 84 10 D0 D1 [07:59:35]Write to MH i2c: E2 02 01 AE 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E9 AC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E0 02 00 35 04 06 00 84 10 D0 D1 00 00 B8 [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:35]Read from MH i2c: E2 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 03 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [07:59:35]RAPDU: 90 00 [07:59:35]wFMCommunicate OK [07:59:35]wFMCommunicate request_size=7 [07:59:35]MH_SAM_APDU [07:59:35]CAPDU: 80 0D 02 02 02 A3 63 [07:59:35]Write to MH i2c: E2 0A 00 AF 1A 80 0D 02 02 02 00 A3 63 00 00 4D [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:35]Read from MH i2c: E2 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 03 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [07:59:35]RAPDU: 90 00 [07:59:35]wFMCommunicate OK [07:59:35]wFMCommunicate request_size=4 [07:59:35]MH_SAM_APDU [07:59:35]CAPDU: 80 0D 03 02 [07:59:35]Write to MH i2c: E2 08 00 B0 1A 80 0D 03 02 00 00 00 00 45 [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:35]Read from MH i2c: E2 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 0B 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 0B 00 B0 1A 00 02 F6 C5 E0 77 12 4C DB 90 00 93 [07:59:35]RAPDU: 02 F6 C5 E0 77 12 4C DB 90 00 [07:59:35]wFMCommunicate OK [07:59:35]SAM_PROTO_SignData done [07:59:35]FM_MakeSignedData done [07:59:35]CreateOFDProtocolMessage [07:59:35]wFMCommunicate request_size=4 [07:59:35]MH_SAM_APDU [07:59:35]CAPDU: 80 11 00 00 [07:59:35]Write to MH i2c: E2 08 00 B1 1A 80 11 00 00 00 00 00 00 45 [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:35]Read from MH i2c: E2 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 17 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: E2 17 00 B1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [07:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:59:35]wFMCommunicate OK [07:59:35]CreateOFDProtocolMessage done [07:59:35]OFDSenderStorePacket 188591 [07:59:35]StoreOFDPacket docnum=188591 [07:59:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 EE 89 04 01 BD B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E9 AC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E0 02 00 35 04 06 00 84 10 D0 D1 A3 63 02 F6 C5 E0 77 12 4C DB [07:59:35]CheckFolder [07:59:35]dirname=/storage/ofd_packets [07:59:35]CheckFolder done [07:59:35]ProducePacketName [07:59:35]name=ofd_packets/00188591 [07:59:35]NVStorageSaveData ofd_packets/00188591 [07:59:35]File name is /storage/ofd_packets/00188591 [07:59:35]Write 298 bytes [07:59:35]NVStorageSaveData done [07:59:35]OFDSenderStorePacket done [07:59:35]KKMCreateOFDPacket done [07:59:35]NVStorageSaveData kkm_last_timestamp [07:59:35]File name is /storage/kkm_last_timestamp [07:59:35]Write 4 bytes [07:59:35]NVStorageSaveData done [07:59:35]ExternCall_PrintAddStr [07:59:35]wPrintStart [07:59:35]Write to MH i2c: 01 00 00 B2 1A CC [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: 01 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: 01 07 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 FF 0F E1 [07:59:35]RasterBufferAndPrint [07:59:35]line Счет N : (1)210650 [07:59:35]line ИНН: 02508201610067 [07:59:35]line Контрольно-Кассовый Чек [07:59:35]line ПРОДАЖА [07:59:35]line ТРК (МРК, ГНК) : 51 [07:59:35]line Товар: 2710194210 [07:59:35]line ДТ-К-5 [07:59:35]line 10.500 * 76.20 [07:59:35]line = 800.10 [07:59:35]line НДС 12% НСП 1% [07:59:35]line > о реализуемом товаре [07:59:35]line ОКРУГЛЕНИЕ: -0.10 [07:59:35]line ИТОГО: 800.00 [07:59:35]line Внесено: 800.00 [07:59:35]line СДАЧА: 0.00 [07:59:35]line НСП 1% : 7.08 [07:59:35]line НДС 12% : 84.97 [07:59:35]line Наличными: 800.00 [07:59:35]line Безнал.: 0.00 [07:59:35]line Место: АЗС № 86 "Партнер Нефть" [07:59:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:59:35]line СНО: Общий режим [07:59:35]line Чек 49 23.10.2024 07:59 [07:59:35]line Смена: 462 ФФД: 1.0 [07:59:35]line ЗНМ: 0300000155 [07:59:35]line РНМ: 0000000000100030 [07:59:35]line Версия ККМ: 001 [07:59:35]line ФМ: 0000000000965340 [07:59:35]line ФД: 188591 [07:59:35]line ФПД: 145207757742947 [07:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188591&fm=145207757742947&tin=02508201610067®Number=0000000000100030&sum=80000 [07:59:35]written 0, free lines is 4095 [07:59:35]OFD Sender: Processing packet 188591 [packets to send 1062, broken 1061] [07:59:35]ProducePacketName [07:59:35]name=ofd_packets/00188591 [07:59:35]OFD Sender: To server: pG, [07:59:35]CommunicateWithHost lk.salyk.kg:30040 [07:59:35]ConnectInit lk.salyk.kg [07:59:36]Connected sock=10 [07:59:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 EE 89 04 01 BD B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E9 AC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E0 02 00 35 04 06 00 84 10 D0 D1 A3 63 02 F6 C5 E0 77 12 4C DB [07:59:36]Write to MH i2c: 01 00 00 DD 1A F7 [07:59:36]Write i2c OK [07:59:36]MH_I2C_Read... [07:59:36]Read from MH i2c: 01 [07:59:36]MH_I2C_Read... [07:59:36]Read from MH i2c: 01 07 00 [07:59:36]MH_I2C_Read... [07:59:36]Read from MH i2c: 01 07 00 DD 1A 00 00 00 00 00 49 0C 53 [07:59:36]RasterBufferAndPrint [07:59:36]line [07:59:36]line [07:59:36]line [07:59:36]line [07:59:36]line [07:59:36]written 0, free lines is 3150 [07:59:36]MH_Cut [07:59:36]Write to MH i2c: D1 01 00 E4 1A 01 D0 [07:59:36]Write i2c OK [07:59:36]MH_I2C_Read... [07:59:36]Read from MH i2c: D1 [07:59:36]MH_I2C_Read... [07:59:36]Read from MH i2c: D1 01 00 [07:59:36]MH_I2C_Read... [07:59:36]Read from MH i2c: D1 01 00 E4 1A 00 CF [07:59:36]Write to MH i2c: 01 00 00 E5 1A FF [07:59:36]Write i2c OK [07:59:36]MH_I2C_Read... [07:59:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 C1 47 00 12 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 AF E0 02 00 F4 03 04 00 D4 56 18 67 B6 04 01 00 00 8E B2 46 B3 85 D2 05 64 [07:59:36]CommunicateWithHost err = 0 [07:59:36]CheckOFDResponse [07:59:36]1017 (14) - 77093643461234 [07:59:36]1041 (16) - 0000000000965340 [07:59:36]1040 (4) - 188591 [07:59:36]1012 (4) - 23.10.2024 01:52 [07:59:36]1206 (1) - 0 [07:59:36]OFD Sender: Remove packet 188591 [07:59:36]ProducePacketName [07:59:36]name=ofd_packets/00188591 [07:59:36]NVStorageDeleteData [07:59:36]OFD Sender: No OFD packet to send [07:59:37]*** Cut start [07:59:37]*** Partial cut [07:59:37]*** CUTSNS_PIN = 1 [07:59:37]*** CUTSNS_PIN = 0 [07:59:37]*** Brake cut motor [07:59:38]Read from MH i2c: 01 [07:59:38]MH_I2C_Read... [07:59:38]*** Stop cut motor [07:59:38]*** Cut end [07:59:38]Read from MH i2c: 01 07 00 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: 01 07 00 E5 1A 00 00 00 00 00 FF 0F 14 [07:59:38]process_action close_receipt done [07:59:38]requested_data is exist [07:59:38]produce_requested_data [07:59:38]requested_item fm.sn is exist - process it [07:59:38]wFMCommunicate request_size=4 [07:59:38]MH_SAM_APDU [07:59:38]CAPDU: 80 11 00 00 [07:59:38]Write to MH i2c: E2 08 00 E6 1A 80 11 00 00 00 00 00 00 7A [07:59:38]Write i2c OK [07:59:38]MH_I2C_Read... [07:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:38]Read from MH i2c: E2 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 17 00 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 17 00 E6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [07:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:59:38]wFMCommunicate OK [07:59:38]requested_item fd.num is exist - process it [07:59:38]SAM_PROTO_GetFieldsCounters [07:59:38]wFMCommunicate request_size=4 [07:59:38]MH_SAM_APDU [07:59:38]CAPDU: 80 13 00 00 [07:59:38]Write to MH i2c: E2 08 00 E7 1A 80 13 00 00 00 00 00 00 7D [07:59:38]Write i2c OK [07:59:38]MH_I2C_Read... [07:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:38]Read from MH i2c: E2 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 62 00 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 62 00 E7 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [07:59:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:38]wFMCommunicate OK [07:59:38]SAM_PROTO_GetFieldsCounters done [07:59:38]requested_item shift.num is exist - process it [07:59:38]requested_item shift.opened is exist - process it [07:59:38]req_shift_opened [07:59:38]FM_GetShiftState [07:59:38]SAM_PROTO_GetShiftState [07:59:38]wFMCommunicate request_size=4 [07:59:38]MH_SAM_APDU [07:59:38]CAPDU: 80 13 01 00 [07:59:38]Write to MH i2c: E2 08 00 E8 1A 80 13 01 00 00 00 00 00 7F [07:59:38]Write i2c OK [07:59:38]MH_I2C_Read... [07:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:38]Read from MH i2c: E2 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 0E 00 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 0E 00 E8 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 67 [07:59:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [07:59:38]wFMCommunicate OK [07:59:38]SAM_PROTO_GetShiftState done [07:59:38]FM_GetShiftState done [07:59:38]req_shift_opened done [07:59:38]requested_item shift.open_date is exist - process it [07:59:38]req_shift_open_date [07:59:38]req_shift_open_date done [07:59:38]produce_requested_data done [07:59:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188591,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [07:59:38]process_action_free close_receipt [07:59:38]json_value_free [07:59:38]json_value_free done [07:59:38]process_json_proto returns [07:59:38]Send response to host [07:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188591,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [07:59:38]free response buf [07:59:38]execute_script done [07:59:38]execute_script returns [07:59:38]free content buf [07:59:38]Sock 9.Close socket [07:59:38]Sock 9.Thread stoped [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:39]accept exits with 7 [08:01:39]New connection [08:01:39]New thread 3066649956 created [08:01:39]Thread 3066506596 joined [08:01:39]Waiting for new connection... [08:01:39] Sock 7.Parse request [08:01:39]Sock 7.Check first char [08:01:39]Sock 7.First char is OK [08:01:39]request: POST /json_proto HTTP/1.0 [08:01:39]Method: POST [08:01:39]URL: /json_proto [08:01:39]Method is POST - this is cgi request [08:01:39]url: /json_proto [08:01:39]query_string will be loaded in cgi processing [08:01:39]execute_cgi json_proto POST (null) [08:01:39]execute_cgi path=json_proto method=POST [08:01:39]POST find Content-Length [08:01:39]Host: 172.17.42.131:8080 [08:01:39]Content-Length: 677 [08:01:39]Content-Type: application/json [08:01:39] [08:01:39]POST finish read [08:01:39]Found Content-Length = 677 [08:01:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.080, "sum" : 206.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 206.00, "total" : 206.00, "payments": [ { "type": 0, "sum" : 206.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:39]execute_script... [08:01:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.080, "sum" : 206.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 206.00, "total" : 206.00, "payments": [ { "type": 0, "sum" : 206.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:39]POST & json_proto [08:01:39]process_json_proto [08:01:39]json parsed OK: [08:01:39]protocol is kg_v1.0 [08:01:39]action value=close_receipt [08:01:39]process_action close_receipt [08:01:39]cmd_close_receipt [08:01:39]MH_GetDate [08:01:39]Write to MH i2c: F0 00 00 E9 1A F2 [08:01:39]Write i2c OK [08:01:39]MH_I2C_Read... [08:01:39]Read from MH i2c: F0 [08:01:39]MH_I2C_Read... [08:01:39]Read from MH i2c: F0 09 00 [08:01:39]MH_I2C_Read... [08:01:39]Read from MH i2c: F0 09 00 E9 1A 00 66 AD 18 67 A0 18 CA 66 75 [08:01:39]GetLastDocTimeStamp 1729670377 [08:01:39]current date 1729670502 [08:01:39]FM_GetShiftState [08:01:39]SAM_PROTO_GetShiftState [08:01:39]wFMCommunicate request_size=4 [08:01:39]MH_SAM_APDU [08:01:39]CAPDU: 80 13 01 00 [08:01:39]Write to MH i2c: E2 08 00 EA 1A 80 13 01 00 00 00 00 00 81 [08:01:39]Write i2c OK [08:01:39]MH_I2C_Read... [08:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:39]Read from MH i2c: E2 [08:01:39]MH_I2C_Read... [08:01:39]Read from MH i2c: E2 0E 00 [08:01:39]MH_I2C_Read... [08:01:39]Read from MH i2c: E2 0E 00 EA 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 69 [08:01:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:01:39]wFMCommunicate OK [08:01:39]SAM_PROTO_GetShiftState done [08:01:39]FM_GetShiftState done [08:01:39]opened in 1729642525 [08:01:39]opened+sec_in_day 1729728925 [08:01:39]quantity*price = 20605 [08:01:39]sum+1 = 20606 [08:01:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 206.00 Внесено: 206.00 СДАЧА: 0.00 НСП 1% : 1.82 НДС 12% : 21.88 Наличными: 206.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 50 23.10.2024 08:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188592 ФПД: 117384312884269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188592&fm=117384312884269&tin=02508201610067®Number=0000000000100030&sum=20600 [08:01:40]StoreToDocumentArchive [08:01:40]shift 462 fd 188592 [08:01:40]save to /storage/0462/doc_00188592 [08:01:40]save last doc name /storage/0462/doc_00188592 to /storage/kkm_last_doc_name [08:01:40]save OK [08:01:40]Clear old archive folders... [08:01:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:40]tlvbuf is 0092C220 [08:01:40]SAM_PROTO_ClearQueue [08:01:40]wFMCommunicate request_size=4 [08:01:40]MH_SAM_APDU [08:01:40]CAPDU: 80 09 00 00 [08:01:40]Write to MH i2c: E2 08 00 F7 1A 80 09 00 00 00 00 00 00 83 [08:01:40]Write i2c OK [08:01:40]MH_I2C_Read... [08:01:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:40]Read from MH i2c: E2 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 03 00 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 03 00 F7 1A 00 90 00 85 [08:01:40]RAPDU: 90 00 [08:01:40]wFMCommunicate OK [08:01:40]SAM_PROTO_ClearQueue done [08:01:40]KKMCreateOFDPacket [08:01:40]OFDProtocolAddRootSTLVToBuf [08:01:40]FM_MakeSignedData [08:01:40]FM_MakeSignedData [08:01:40]SAM_PROTO_SignData [08:01:40]wFMCommunicate request_size=4 [08:01:40]MH_SAM_APDU [08:01:40]CAPDU: 80 0D 01 02 [08:01:40]Write to MH i2c: E2 08 00 F8 1A 80 0D 01 02 00 00 00 00 8B [08:01:40]Write i2c OK [08:01:40]MH_I2C_Read... [08:01:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:40]Read from MH i2c: E2 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 03 00 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 03 00 F8 1A 00 90 00 86 [08:01:40]RAPDU: 90 00 [08:01:40]wFMCommunicate OK [08:01:40]wFMCommunicate request_size=255 [08:01:40]MH_SAM_APDU [08:01:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 08 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7D 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 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 66 AD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E0 02 00 35 04 06 00 6A [08:01:40]Write to MH i2c: E2 02 01 F9 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 08 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7D 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 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 66 AD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E0 02 00 35 04 06 00 6A 00 00 FF [08:01:40]Write i2c OK [08:01:40]MH_I2C_Read... [08:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:40]Read from MH i2c: E2 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 03 00 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [08:01:40]RAPDU: 90 00 [08:01:40]wFMCommunicate OK [08:01:40]wFMCommunicate request_size=10 [08:01:40]MH_SAM_APDU [08:01:40]CAPDU: 80 0D 02 02 05 C2 AA 45 8C 2D [08:01:40]Write to MH i2c: E2 0D 00 FA 1A 80 0D 02 02 05 00 C2 AA 45 8C 2D 00 00 02 [08:01:40]Write i2c OK [08:01:40]MH_I2C_Read... [08:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:40]Read from MH i2c: E2 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 03 00 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 03 00 FA 1A 00 90 00 88 [08:01:40]RAPDU: 90 00 [08:01:40]wFMCommunicate OK [08:01:40]wFMCommunicate request_size=4 [08:01:40]MH_SAM_APDU [08:01:40]CAPDU: 80 0D 03 02 [08:01:40]Write to MH i2c: E2 08 00 FB 1A 80 0D 03 02 00 00 00 00 90 [08:01:40]Write i2c OK [08:01:40]MH_I2C_Read... [08:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:40]Read from MH i2c: E2 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 0B 00 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 0B 00 FB 1A 00 22 FC F4 A1 7B 69 EE 9F 90 00 B5 [08:01:40]RAPDU: 22 FC F4 A1 7B 69 EE 9F 90 00 [08:01:40]wFMCommunicate OK [08:01:40]SAM_PROTO_SignData done [08:01:40]FM_MakeSignedData done [08:01:40]CreateOFDProtocolMessage [08:01:40]wFMCommunicate request_size=4 [08:01:40]MH_SAM_APDU [08:01:40]CAPDU: 80 11 00 00 [08:01:40]Write to MH i2c: E2 08 00 FC 1A 80 11 00 00 00 00 00 00 90 [08:01:40]Write i2c OK [08:01:40]MH_I2C_Read... [08:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:40]Read from MH i2c: E2 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 17 00 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: E2 17 00 FC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [08:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:01:40]wFMCommunicate OK [08:01:40]CreateOFDProtocolMessage done [08:01:40]OFDSenderStorePacket 188592 [08:01:40]StoreOFDPacket docnum=188592 [08:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 26 BE 07 01 3D DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 08 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7D 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 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 66 AD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E0 02 00 35 04 06 00 6A C2 AA 45 8C 2D 22 FC F4 A1 7B 69 EE 9F [08:01:40]CheckFolder [08:01:40]dirname=/storage/ofd_packets [08:01:40]CheckFolder done [08:01:40]ProducePacketName [08:01:40]name=ofd_packets/00188592 [08:01:40]NVStorageSaveData ofd_packets/00188592 [08:01:40]File name is /storage/ofd_packets/00188592 [08:01:40]Write 301 bytes [08:01:40]NVStorageSaveData done [08:01:40]OFDSenderStorePacket done [08:01:40]KKMCreateOFDPacket done [08:01:40]NVStorageSaveData kkm_last_timestamp [08:01:40]File name is /storage/kkm_last_timestamp [08:01:40]Write 4 bytes [08:01:40]NVStorageSaveData done [08:01:40]ExternCall_PrintAddStr [08:01:40]wPrintStart [08:01:40]Write to MH i2c: 01 00 00 FD 1A 17 [08:01:40]Write i2c OK [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: 01 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: 01 07 00 [08:01:40]MH_I2C_Read... [08:01:40]Read from MH i2c: 01 07 00 FD 1A 00 00 00 00 00 FF 0F 2C [08:01:40]RasterBufferAndPrint [08:01:40]line Счет N : (1)210651 [08:01:40]line ИНН: 02508201610067 [08:01:40]line Контрольно-Кассовый Чек [08:01:40]line ПРОДАЖА [08:01:40]line ТРК (МРК, ГНК) : 12 [08:01:40]line Товар: 2710124130 [08:01:40]line Аи-92-К-3 [08:01:40]line 3.080 * 66.90 [08:01:40]line = 206.05 [08:01:40]line НДС 12% НСП 1% [08:01:40]line > о реализуемом товаре [08:01:40]line ОКРУГЛЕНИЕ: -0.05 [08:01:40]line ИТОГО: 206.00 [08:01:40]line Внесено: 206.00 [08:01:40]line СДАЧА: 0.00 [08:01:40]line НСП 1% : 1.82 [08:01:40]line НДС 12% : 21.88 [08:01:40]line Наличными: 206.00 [08:01:40]line Безнал.: 0.00 [08:01:40]line Место: АЗС № 86 "Партнер Нефть" [08:01:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:01:40]line СНО: Общий режим [08:01:40]line Чек 50 23.10.2024 08:01 [08:01:40]line Смена: 462 ФФД: 1.0 [08:01:40]line ЗНМ: 0300000155 [08:01:40]line РНМ: 0000000000100030 [08:01:40]line Версия ККМ: 001 [08:01:40]line ФМ: 0000000000965340 [08:01:40]line ФД: 188592 [08:01:40]line ФПД: 117384312884269 [08:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188592&fm=117384312884269&tin=02508201610067®Number=0000000000100030&sum=20600 [08:01:40]written 0, free lines is 4095 [08:01:40]OFD Sender: Processing packet 188592 [packets to send 1062, broken 1061] [08:01:40]ProducePacketName [08:01:40]name=ofd_packets/00188592 [08:01:40]OFD Sender: To server: pG, [08:01:40]CommunicateWithHost lk.salyk.kg:30040 [08:01:40]ConnectInit lk.salyk.kg [08:01:41]Connected sock=10 [08:01:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 26 BE 07 01 3D DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 08 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7D 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 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 66 AD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E0 02 00 35 04 06 00 6A C2 AA 45 8C 2D 22 FC F4 A1 7B 69 EE 9F [08:01:41]Write to MH i2c: 01 00 00 28 1B 43 [08:01:41]Write i2c OK [08:01:41]MH_I2C_Read... [08:01:41]Read from MH i2c: 01 [08:01:41]MH_I2C_Read... [08:01:41]Read from MH i2c: 01 07 00 [08:01:41]MH_I2C_Read... [08:01:41]Read from MH i2c: 01 07 00 28 1B 00 00 00 00 00 59 0C AF [08:01:41]RasterBufferAndPrint [08:01:41]line [08:01:41]line [08:01:41]line [08:01:41]line [08:01:41]line [08:01:41]written 0, free lines is 3166 [08:01:41]MH_Cut [08:01:41]Write to MH i2c: D1 01 00 2F 1B 01 1C [08:01:41]Write i2c OK [08:01:41]MH_I2C_Read... [08:01:41]Read from MH i2c: D1 [08:01:41]MH_I2C_Read... [08:01:41]Read from MH i2c: D1 01 00 [08:01:41]MH_I2C_Read... [08:01:41]Read from MH i2c: D1 01 00 2F 1B 00 1B [08:01:41]Write to MH i2c: 01 00 00 30 1B 4B [08:01:41]Write i2c OK [08:01:41]MH_I2C_Read... [08:01:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E8 08 47 00 F3 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E0 02 00 F4 03 04 00 51 57 18 67 B6 04 01 00 00 5A 97 96 9A 6F E0 63 47 [08:01:41]CommunicateWithHost err = 0 [08:01:41]CheckOFDResponse [08:01:41]1017 (14) - 77093643461234 [08:01:41]1041 (16) - 0000000000965340 [08:01:41]1040 (4) - 188592 [08:01:41]1012 (4) - 23.10.2024 01:54 [08:01:41]1206 (1) - 0 [08:01:41]OFD Sender: Remove packet 188592 [08:01:41]ProducePacketName [08:01:41]name=ofd_packets/00188592 [08:01:41]NVStorageDeleteData [08:01:42]OFD Sender: No OFD packet to send [08:01:42]*** Cut start [08:01:42]*** Partial cut [08:01:42]*** CUTSNS_PIN = 1 [08:01:42]*** CUTSNS_PIN = 0 [08:01:42]*** Brake cut motor [08:01:43]Read from MH i2c: 01 [08:01:43]MH_I2C_Read... [08:01:43]*** Stop cut motor [08:01:43]*** Cut end [08:01:43]Read from MH i2c: 01 07 00 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: 01 07 00 30 1B 00 00 00 00 00 FF 0F 60 [08:01:43]process_action close_receipt done [08:01:43]requested_data is exist [08:01:43]produce_requested_data [08:01:43]requested_item fm.sn is exist - process it [08:01:43]wFMCommunicate request_size=4 [08:01:43]MH_SAM_APDU [08:01:43]CAPDU: 80 11 00 00 [08:01:43]Write to MH i2c: E2 08 00 31 1B 80 11 00 00 00 00 00 00 C6 [08:01:43]Write i2c OK [08:01:43]MH_I2C_Read... [08:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:43]Read from MH i2c: E2 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: E2 17 00 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: E2 17 00 31 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [08:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:01:43]wFMCommunicate OK [08:01:43]requested_item fd.num is exist - process it [08:01:43]SAM_PROTO_GetFieldsCounters [08:01:43]wFMCommunicate request_size=4 [08:01:43]MH_SAM_APDU [08:01:43]CAPDU: 80 13 00 00 [08:01:43]Write to MH i2c: E2 08 00 32 1B 80 13 00 00 00 00 00 00 C9 [08:01:43]Write i2c OK [08:01:43]MH_I2C_Read... [08:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:43]Read from MH i2c: E2 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: E2 62 00 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: E2 62 00 32 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [08:01:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:43]wFMCommunicate OK [08:01:43]SAM_PROTO_GetFieldsCounters done [08:01:43]requested_item shift.num is exist - process it [08:01:43]requested_item shift.opened is exist - process it [08:01:43]req_shift_opened [08:01:43]FM_GetShiftState [08:01:43]SAM_PROTO_GetShiftState [08:01:43]wFMCommunicate request_size=4 [08:01:43]MH_SAM_APDU [08:01:43]CAPDU: 80 13 01 00 [08:01:43]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [08:01:43]Write i2c OK [08:01:43]MH_I2C_Read... [08:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:43]Read from MH i2c: E2 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: E2 0E 00 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B3 [08:01:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:01:43]wFMCommunicate OK [08:01:43]SAM_PROTO_GetShiftState done [08:01:43]FM_GetShiftState done [08:01:43]req_shift_opened done [08:01:43]requested_item shift.open_date is exist - process it [08:01:43]req_shift_open_date [08:01:43]req_shift_open_date done [08:01:43]produce_requested_data done [08:01:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188592,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:01:43]process_action_free close_receipt [08:01:43]json_value_free [08:01:43]json_value_free done [08:01:43]process_json_proto returns [08:01:43]Send response to host [08:01:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188592,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:01:43]free response buf [08:01:43]execute_script done [08:01:43]execute_script returns [08:01:43]free content buf [08:01:43]Sock 7.Close socket [08:01:43]Sock 7.Thread stoped [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:31]accept exits with 9 [08:02:31]New connection [08:02:31]New thread 3066506596 created [08:02:31]Thread 3066649956 joined [08:02:31]Waiting for new connection... [08:02:31] Sock 9.Parse request [08:02:31]Sock 9.Check first char [08:02:31]Sock 9.First char is OK [08:02:31]request: POST /json_proto HTTP/1.0 [08:02:31]Method: POST [08:02:31]URL: /json_proto [08:02:31]Method is POST - this is cgi request [08:02:31]url: /json_proto [08:02:31]query_string will be loaded in cgi processing [08:02:31]execute_cgi json_proto POST (null) [08:02:31]execute_cgi path=json_proto method=POST [08:02:31]POST find Content-Length [08:02:31]Host: 172.17.42.131:8080 [08:02:31]Content-Length: 682 [08:02:31]Content-Type: application/json [08:02:31] [08:02:31]POST finish read [08:02:31]Found Content-Length = 682 [08:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:31]execute_script... [08:02:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:31]POST & json_proto [08:02:31]process_json_proto [08:02:31]json parsed OK: [08:02:31]protocol is kg_v1.0 [08:02:31]action value=close_receipt [08:02:31]process_action close_receipt [08:02:31]cmd_close_receipt [08:02:31]MH_GetDate [08:02:31]Write to MH i2c: F0 00 00 34 1B 3E [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: F0 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: F0 09 00 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: F0 09 00 34 1B 00 9B AD 18 67 A0 18 CA 66 F6 [08:02:31]GetLastDocTimeStamp 1729670502 [08:02:31]current date 1729670555 [08:02:31]FM_GetShiftState [08:02:31]SAM_PROTO_GetShiftState [08:02:31]wFMCommunicate request_size=4 [08:02:31]MH_SAM_APDU [08:02:31]CAPDU: 80 13 01 00 [08:02:31]Write to MH i2c: E2 08 00 35 1B 80 13 01 00 00 00 00 00 CD [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 35 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B5 [08:02:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:02:32]wFMCommunicate OK [08:02:32]SAM_PROTO_GetShiftState done [08:02:32]FM_GetShiftState done [08:02:32]opened in 1729642525 [08:02:32]opened+sec_in_day 1729728925 [08:02:32]quantity*price = 160024 [08:02:32]sum+1 = 160026 [08:02:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 51 23.10.2024 08:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188593 ФПД: 261387541522509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080235&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188593&fm=261387541522509&tin=02508201610067®Number=0000000000100030&sum=160000 [08:02:33]StoreToDocumentArchive [08:02:33]shift 462 fd 188593 [08:02:33]save to /storage/0462/doc_00188593 [08:02:33]save last doc name /storage/0462/doc_00188593 to /storage/kkm_last_doc_name [08:02:33]save OK [08:02:33]Clear old archive folders... [08:02:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:33]tlvbuf is 008C1190 [08:02:33]SAM_PROTO_ClearQueue [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 09 00 00 [08:02:33]Write to MH i2c: E2 08 00 42 1B 80 09 00 00 00 00 00 00 CF [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]SAM_PROTO_ClearQueue done [08:02:33]KKMCreateOFDPacket [08:02:33]OFDProtocolAddRootSTLVToBuf [08:02:33]FM_MakeSignedData [08:02:33]FM_MakeSignedData [08:02:33]SAM_PROTO_SignData [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 01 02 [08:02:33]Write to MH i2c: E2 08 00 43 1B 80 0D 01 02 00 00 00 00 D7 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=255 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B AD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E0 02 00 35 04 06 00 ED [08:02:33]Write to MH i2c: E2 02 01 44 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B AD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E0 02 00 35 04 06 00 ED 00 00 BA [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 44 1B 00 90 00 D3 [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=10 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 02 02 05 BB 07 8F A8 4D [08:02:33]Write to MH i2c: E2 0D 00 45 1B 80 0D 02 02 05 00 BB 07 8F A8 4D 00 00 2A [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 03 02 [08:02:33]Write to MH i2c: E2 08 00 46 1B 80 0D 03 02 00 00 00 00 DC [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 0B 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 0B 00 46 1B 00 A3 D5 A1 7A 52 57 F2 BB 90 00 C6 [08:02:33]RAPDU: A3 D5 A1 7A 52 57 F2 BB 90 00 [08:02:33]wFMCommunicate OK [08:02:33]SAM_PROTO_SignData done [08:02:33]FM_MakeSignedData done [08:02:33]CreateOFDProtocolMessage [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 11 00 00 [08:02:33]Write to MH i2c: E2 08 00 47 1B 80 11 00 00 00 00 00 00 DC [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 17 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 17 00 47 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [08:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:02:33]wFMCommunicate OK [08:02:33]CreateOFDProtocolMessage done [08:02:33]OFDSenderStorePacket 188593 [08:02:33]StoreOFDPacket docnum=188593 [08:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E1 A7 07 01 05 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B AD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E0 02 00 35 04 06 00 ED BB 07 8F A8 4D A3 D5 A1 7A 52 57 F2 BB [08:02:33]CheckFolder [08:02:33]dirname=/storage/ofd_packets [08:02:33]CheckFolder done [08:02:33]ProducePacketName [08:02:33]name=ofd_packets/00188593 [08:02:33]NVStorageSaveData ofd_packets/00188593 [08:02:33]File name is /storage/ofd_packets/00188593 [08:02:33]Write 301 bytes [08:02:33]NVStorageSaveData done [08:02:33]OFDSenderStorePacket done [08:02:33]KKMCreateOFDPacket done [08:02:33]NVStorageSaveData kkm_last_timestamp [08:02:33]File name is /storage/kkm_last_timestamp [08:02:33]Write 4 bytes [08:02:33]NVStorageSaveData done [08:02:33]ExternCall_PrintAddStr [08:02:33]wPrintStart [08:02:33]Write to MH i2c: 01 00 00 48 1B 63 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 07 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 07 00 48 1B 00 00 00 00 00 FF 0F 78 [08:02:33]RasterBufferAndPrint [08:02:33]line Счет N : (1)210652 [08:02:33]line ИНН: 02508201610067 [08:02:33]line Контрольно-Кассовый Чек [08:02:33]line ПРОДАЖА [08:02:33]line ТРК (МРК, ГНК) : 42 [08:02:33]line Товар: 2710124130 [08:02:33]line Аи-92-К-3 [08:02:33]line 23.920 * 66.90 [08:02:33]line = 1600.25 [08:02:33]line НДС 12% НСП 1% [08:02:33]line > о реализуемом товаре [08:02:33]line ОКРУГЛЕНИЕ: -0.25 [08:02:33]line ИТОГО: 1600.00 [08:02:33]line Внесено: 1600.00 [08:02:33]line СДАЧА: 0.00 [08:02:33]line НСП 1% : 14.16 [08:02:33]line НДС 12% : 169.94 [08:02:33]line Наличными: 1600.00 [08:02:33]line Безнал.: 0.00 [08:02:33]line Место: АЗС № 86 "Партнер Нефть" [08:02:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:02:33]line СНО: Общий режим [08:02:33]line Чек 51 23.10.2024 08:02 [08:02:33]line Смена: 462 ФФД: 1.0 [08:02:33]line ЗНМ: 0300000155 [08:02:33]line РНМ: 0000000000100030 [08:02:33]line Версия ККМ: 001 [08:02:33]line ФМ: 0000000000965340 [08:02:33]line ФД: 188593 [08:02:33]line ФПД: 261387541522509 [08:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080235&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188593&fm=261387541522509&tin=02508201610067®Number=0000000000100030&sum=160000 [08:02:34]OFD Sender: Processing packet 188593 [packets to send 1062, broken 1061] [08:02:34]ProducePacketName [08:02:34]name=ofd_packets/00188593 [08:02:34]OFD Sender: To server: pG, [08:02:34]CommunicateWithHost lk.salyk.kg:30040 [08:02:34]ConnectInit lk.salyk.kg [08:02:34]written 0, free lines is 4095 [08:02:34]Connected sock=10 [08:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E1 A7 07 01 05 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B AD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E0 02 00 35 04 06 00 ED BB 07 8F A8 4D A3 D5 A1 7A 52 57 F2 BB [08:02:34]Write to MH i2c: 01 00 00 73 1B 8E [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 07 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 07 00 73 1B 00 00 00 00 00 56 0C F7 [08:02:34]RasterBufferAndPrint [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]written 0, free lines is 3161 [08:02:34]MH_Cut [08:02:34]Write to MH i2c: D1 01 00 7A 1B 01 67 [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 01 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 01 00 7A 1B 00 66 [08:02:34]Write to MH i2c: 01 00 00 7B 1B 96 [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B1 20 47 00 14 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E0 02 00 F4 03 04 00 86 57 18 67 B6 04 01 00 00 E6 70 16 F5 5A DC EB 8A [08:02:34]CommunicateWithHost err = 0 [08:02:34]CheckOFDResponse [08:02:34]1017 (14) - 77093643461234 [08:02:34]1041 (16) - 0000000000965340 [08:02:34]1040 (4) - 188593 [08:02:34]1012 (4) - 23.10.2024 01:55 [08:02:34]1206 (1) - 0 [08:02:34]OFD Sender: Remove packet 188593 [08:02:34]ProducePacketName [08:02:34]name=ofd_packets/00188593 [08:02:34]NVStorageDeleteData [08:02:35]OFD Sender: No OFD packet to send [08:02:35]*** Cut start [08:02:35]*** Partial cut [08:02:35]*** CUTSNS_PIN = 1 [08:02:35]*** CUTSNS_PIN = 0 [08:02:36]*** Brake cut motor [08:02:36]Read from MH i2c: 01 [08:02:36]MH_I2C_Read... [08:02:36]*** Stop cut motor [08:02:36]*** Cut end [08:02:36]Read from MH i2c: 01 07 00 [08:02:36]MH_I2C_Read... [08:02:36]Read from MH i2c: 01 07 00 7B 1B 00 00 00 00 00 FF 0F AB [08:02:36]process_action close_receipt done [08:02:36]requested_data is exist [08:02:36]produce_requested_data [08:02:36]requested_item fm.sn is exist - process it [08:02:36]wFMCommunicate request_size=4 [08:02:36]MH_SAM_APDU [08:02:36]CAPDU: 80 11 00 00 [08:02:36]Write to MH i2c: E2 08 00 7C 1B 80 11 00 00 00 00 00 00 11 [08:02:36]Write i2c OK [08:02:36]MH_I2C_Read... [08:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:36]Read from MH i2c: E2 [08:02:36]MH_I2C_Read... [08:02:36]Read from MH i2c: E2 17 00 [08:02:36]MH_I2C_Read... [08:02:36]Read from MH i2c: E2 17 00 7C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [08:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:02:36]wFMCommunicate OK [08:02:36]requested_item fd.num is exist - process it [08:02:36]SAM_PROTO_GetFieldsCounters [08:02:36]wFMCommunicate request_size=4 [08:02:36]MH_SAM_APDU [08:02:36]CAPDU: 80 13 00 00 [08:02:36]Write to MH i2c: E2 08 00 7D 1B 80 13 00 00 00 00 00 00 14 [08:02:36]Write i2c OK [08:02:36]MH_I2C_Read... [08:02:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:36]Read from MH i2c: E2 [08:02:36]MH_I2C_Read... [08:02:36]Read from MH i2c: E2 62 00 [08:02:36]MH_I2C_Read... [08:02:36]Read from MH i2c: E2 62 00 7D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [08:02:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:36]wFMCommunicate OK [08:02:36]SAM_PROTO_GetFieldsCounters done [08:02:36]requested_item shift.num is exist - process it [08:02:36]requested_item shift.opened is exist - process it [08:02:36]req_shift_opened [08:02:36]FM_GetShiftState [08:02:36]SAM_PROTO_GetShiftState [08:02:36]wFMCommunicate request_size=4 [08:02:36]MH_SAM_APDU [08:02:36]CAPDU: 80 13 01 00 [08:02:36]Write to MH i2c: E2 08 00 7E 1B 80 13 01 00 00 00 00 00 16 [08:02:36]Write i2c OK [08:02:36]MH_I2C_Read... [08:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:36]Read from MH i2c: E2 [08:02:36]MH_I2C_Read... [08:02:36]Read from MH i2c: E2 0E 00 [08:02:36]MH_I2C_Read... [08:02:36]Read from MH i2c: E2 0E 00 7E 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FE [08:02:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:02:36]wFMCommunicate OK [08:02:36]SAM_PROTO_GetShiftState done [08:02:36]FM_GetShiftState done [08:02:36]req_shift_opened done [08:02:36]requested_item shift.open_date is exist - process it [08:02:36]req_shift_open_date [08:02:36]req_shift_open_date done [08:02:36]produce_requested_data done [08:02:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188593,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:02:36]process_action_free close_receipt [08:02:36]json_value_free [08:02:36]json_value_free done [08:02:36]process_json_proto returns [08:02:36]Send response to host [08:02:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188593,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:02:36]free response buf [08:02:36]execute_script done [08:02:36]execute_script returns [08:02:36]free content buf [08:02:36]Sock 9.Close socket [08:02:36]Sock 9.Thread stoped [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:15]accept exits with 7 [08:07:15]New connection [08:07:15]New thread 3066649956 created [08:07:15]Thread 3066506596 joined [08:07:15]Waiting for new connection... [08:07:15] Sock 7.Parse request [08:07:15]Sock 7.Check first char [08:07:15]Sock 7.First char is OK [08:07:15]request: POST /json_proto HTTP/1.0 [08:07:15]Method: POST [08:07:15]URL: /json_proto [08:07:15]Method is POST - this is cgi request [08:07:15]url: /json_proto [08:07:15]query_string will be loaded in cgi processing [08:07:15]execute_cgi json_proto POST (null) [08:07:15]execute_cgi path=json_proto method=POST [08:07:15]POST find Content-Length [08:07:15]Host: 172.17.42.131:8080 [08:07:15]Content-Length: 682 [08:07:15]Content-Type: application/json [08:07:15] [08:07:15]POST finish read [08:07:15]Found Content-Length = 682 [08:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:15]execute_script... [08:07:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:15]POST & json_proto [08:07:15]process_json_proto [08:07:15]json parsed OK: [08:07:15]protocol is kg_v1.0 [08:07:15]action value=close_receipt [08:07:15]process_action close_receipt [08:07:15]cmd_close_receipt [08:07:15]MH_GetDate [08:07:15]Write to MH i2c: F0 00 00 7F 1B 89 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: F0 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: F0 09 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: F0 09 00 7F 1B 00 B6 AE 18 67 A0 18 CA 66 5D [08:07:15]GetLastDocTimeStamp 1729670555 [08:07:15]current date 1729670838 [08:07:15]FM_GetShiftState [08:07:15]SAM_PROTO_GetShiftState [08:07:15]wFMCommunicate request_size=4 [08:07:15]MH_SAM_APDU [08:07:15]CAPDU: 80 13 01 00 [08:07:15]Write to MH i2c: E2 08 00 80 1B 80 13 01 00 00 00 00 00 18 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:15]Read from MH i2c: E2 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 0E 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 0E 00 80 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 00 [08:07:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:07:15]wFMCommunicate OK [08:07:15]SAM_PROTO_GetShiftState done [08:07:15]FM_GetShiftState done [08:07:15]opened in 1729642525 [08:07:15]opened+sec_in_day 1729728925 [08:07:15]quantity*price = 100015 [08:07:15]sum+1 = 100017 [08:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 52 23.10.2024 08:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188594 ФПД: 54807969873735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080718&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188594&fm=54807969873735&tin=02508201610067®Number=0000000000100030&sum=100000 [08:07:16]StoreToDocumentArchive [08:07:16]shift 462 fd 188594 [08:07:16]save to /storage/0462/doc_00188594 [08:07:16]save last doc name /storage/0462/doc_00188594 to /storage/kkm_last_doc_name [08:07:16]save OK [08:07:16]Clear old archive folders... [08:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:16]tlvbuf is 0092C260 [08:07:16]SAM_PROTO_ClearQueue [08:07:16]wFMCommunicate request_size=4 [08:07:16]MH_SAM_APDU [08:07:16]CAPDU: 80 09 00 00 [08:07:16]Write to MH i2c: E2 08 00 8D 1B 80 09 00 00 00 00 00 00 1A [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:16]Read from MH i2c: E2 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: E2 03 00 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [08:07:16]RAPDU: 90 00 [08:07:16]wFMCommunicate OK [08:07:16]SAM_PROTO_ClearQueue done [08:07:16]KKMCreateOFDPacket [08:07:16]OFDProtocolAddRootSTLVToBuf [08:07:16]FM_MakeSignedData [08:07:16]FM_MakeSignedData [08:07:16]SAM_PROTO_SignData [08:07:16]wFMCommunicate request_size=4 [08:07:16]MH_SAM_APDU [08:07:16]CAPDU: 80 0D 01 02 [08:07:16]Write to MH i2c: E2 08 00 8E 1B 80 0D 01 02 00 00 00 00 22 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:16]Read from MH i2c: E2 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: E2 03 00 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [08:07:16]RAPDU: 90 00 [08:07:16]wFMCommunicate OK [08:07:16]wFMCommunicate request_size=255 [08:07:16]MH_SAM_APDU [08:07:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B6 AE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E0 02 00 35 04 06 00 31 [08:07:16]Write to MH i2c: E2 02 01 8F 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B6 AE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E0 02 00 35 04 06 00 31 00 00 3A [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=10 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 02 02 05 D8 F9 93 3F 47 [08:07:17]Write to MH i2c: E2 0D 00 90 1B 80 0D 02 02 05 00 D8 F9 93 3F 47 00 00 19 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 03 02 [08:07:17]Write to MH i2c: E2 08 00 91 1B 80 0D 03 02 00 00 00 00 27 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0B 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0B 00 91 1B 00 B1 B5 95 93 65 96 70 74 90 00 95 [08:07:17]RAPDU: B1 B5 95 93 65 96 70 74 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_SignData done [08:07:17]FM_MakeSignedData done [08:07:17]CreateOFDProtocolMessage [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 11 00 00 [08:07:17]Write to MH i2c: E2 08 00 92 1B 80 11 00 00 00 00 00 00 27 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 17 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 17 00 92 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [08:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:07:17]wFMCommunicate OK [08:07:17]CreateOFDProtocolMessage done [08:07:17]OFDSenderStorePacket 188594 [08:07:17]StoreOFDPacket docnum=188594 [08:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 62 07 01 38 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B6 AE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E0 02 00 35 04 06 00 31 D8 F9 93 3F 47 B1 B5 95 93 65 96 70 74 [08:07:17]CheckFolder [08:07:17]dirname=/storage/ofd_packets [08:07:17]CheckFolder done [08:07:17]ProducePacketName [08:07:17]name=ofd_packets/00188594 [08:07:17]NVStorageSaveData ofd_packets/00188594 [08:07:17]File name is /storage/ofd_packets/00188594 [08:07:17]Write 301 bytes [08:07:17]NVStorageSaveData done [08:07:17]OFDSenderStorePacket done [08:07:17]KKMCreateOFDPacket done [08:07:17]NVStorageSaveData kkm_last_timestamp [08:07:17]File name is /storage/kkm_last_timestamp [08:07:17]Write 4 bytes [08:07:17]NVStorageSaveData done [08:07:17]ExternCall_PrintAddStr [08:07:17]wPrintStart [08:07:17]Write to MH i2c: 01 00 00 93 1B AE [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 93 1B 00 00 00 00 00 FF 0F C3 [08:07:17]RasterBufferAndPrint [08:07:17]line Счет N : (1)210653 [08:07:17]line ИНН: 02508201610067 [08:07:17]line Контрольно-Кассовый Чек [08:07:17]line ПРОДАЖА [08:07:17]line ТРК (МРК, ГНК) : 32 [08:07:17]line Товар: 2710124130 [08:07:17]line Аи-92-К-3 [08:07:17]line 14.950 * 66.90 [08:07:17]line = 1000.16 [08:07:17]line НДС 12% НСП 1% [08:07:17]line > о реализуемом товаре [08:07:17]line ОКРУГЛЕНИЕ: -0.16 [08:07:17]line ИТОГО: 1000.00 [08:07:17]line Внесено: 1000.00 [08:07:17]line СДАЧА: 0.00 [08:07:17]line НСП 1% : 8.85 [08:07:17]line НДС 12% : 106.21 [08:07:17]line Наличными: 1000.00 [08:07:17]line Безнал.: 0.00 [08:07:17]line Место: АЗС № 86 "Партнер Нефть" [08:07:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:07:17]line СНО: Общий режим [08:07:17]line Чек 52 23.10.2024 08:07 [08:07:17]line Смена: 462 ФФД: 1.0 [08:07:17]line ЗНМ: 0300000155 [08:07:17]line РНМ: 0000000000100030 [08:07:17]line Версия ККМ: 001 [08:07:17]line ФМ: 0000000000965340 [08:07:17]line ФД: 188594 [08:07:17]line ФПД: 54807969873735 [08:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080718&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188594&fm=54807969873735&tin=02508201610067®Number=0000000000100030&sum=100000 [08:07:17]OFD Sender: Processing packet 188594 [packets to send 1062, broken 1061] [08:07:17]ProducePacketName [08:07:17]name=ofd_packets/00188594 [08:07:17]OFD Sender: To server: pG, [08:07:17]CommunicateWithHost lk.salyk.kg:30040 [08:07:17]ConnectInit lk.salyk.kg [08:07:17]written 0, free lines is 4095 [08:07:17]Connected sock=10 [08:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 62 07 01 38 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B6 AE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E0 02 00 35 04 06 00 31 D8 F9 93 3F 47 B1 B5 95 93 65 96 70 74 [08:07:17]Write to MH i2c: 01 00 00 BE 1B D9 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 BE 1B 00 00 00 00 00 5A 0C 46 [08:07:17]RasterBufferAndPrint [08:07:17]line [08:07:17]line [08:07:17]line [08:07:17]line [08:07:17]line [08:07:17]written 0, free lines is 3166 [08:07:17]MH_Cut [08:07:17]Write to MH i2c: D1 01 00 C5 1B 01 B2 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: D1 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: D1 01 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: D1 01 00 C5 1B 00 B1 [08:07:17]Write to MH i2c: 01 00 00 C6 1B E1 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 B4 47 00 62 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E0 02 00 F4 03 04 00 A1 58 18 67 B6 04 01 00 00 1F FD 29 07 B0 E2 83 36 [08:07:17]CommunicateWithHost err = 0 [08:07:17]CheckOFDResponse [08:07:17]1017 (14) - 77093643461234 [08:07:17]1041 (16) - 0000000000965340 [08:07:17]1040 (4) - 188594 [08:07:17]1012 (4) - 23.10.2024 02:00 [08:07:17]1206 (1) - 0 [08:07:17]OFD Sender: Remove packet 188594 [08:07:17]ProducePacketName [08:07:17]name=ofd_packets/00188594 [08:07:17]NVStorageDeleteData [08:07:18]OFD Sender: No OFD packet to send [08:07:18]*** Cut start [08:07:18]*** Partial cut [08:07:18]*** CUTSNS_PIN = 1 [08:07:19]*** CUTSNS_PIN = 0 [08:07:19]*** Brake cut motor [08:07:19]Read from MH i2c: 01 [08:07:19]MH_I2C_Read... [08:07:19]*** Stop cut motor [08:07:19]*** Cut end [08:07:19]Read from MH i2c: 01 07 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 C6 1B 00 00 00 00 00 FF 0F F6 [08:07:19]process_action close_receipt done [08:07:19]requested_data is exist [08:07:19]produce_requested_data [08:07:19]requested_item fm.sn is exist - process it [08:07:19]wFMCommunicate request_size=4 [08:07:19]MH_SAM_APDU [08:07:19]CAPDU: 80 11 00 00 [08:07:19]Write to MH i2c: E2 08 00 C7 1B 80 11 00 00 00 00 00 00 5C [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 17 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 17 00 C7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [08:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:07:19]wFMCommunicate OK [08:07:19]requested_item fd.num is exist - process it [08:07:19]SAM_PROTO_GetFieldsCounters [08:07:19]wFMCommunicate request_size=4 [08:07:19]MH_SAM_APDU [08:07:19]CAPDU: 80 13 00 00 [08:07:19]Write to MH i2c: E2 08 00 C8 1B 80 13 00 00 00 00 00 00 5F [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 62 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 62 00 C8 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [08:07:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:19]wFMCommunicate OK [08:07:19]SAM_PROTO_GetFieldsCounters done [08:07:19]requested_item shift.num is exist - process it [08:07:19]requested_item shift.opened is exist - process it [08:07:19]req_shift_opened [08:07:19]FM_GetShiftState [08:07:19]SAM_PROTO_GetShiftState [08:07:19]wFMCommunicate request_size=4 [08:07:19]MH_SAM_APDU [08:07:19]CAPDU: 80 13 01 00 [08:07:19]Write to MH i2c: E2 08 00 C9 1B 80 13 01 00 00 00 00 00 61 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 0E 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 0E 00 C9 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 49 [08:07:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:07:19]wFMCommunicate OK [08:07:19]SAM_PROTO_GetShiftState done [08:07:19]FM_GetShiftState done [08:07:19]req_shift_opened done [08:07:19]requested_item shift.open_date is exist - process it [08:07:19]req_shift_open_date [08:07:19]req_shift_open_date done [08:07:19]produce_requested_data done [08:07:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188594,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:07:19]process_action_free close_receipt [08:07:19]json_value_free [08:07:19]json_value_free done [08:07:19]process_json_proto returns [08:07:19]Send response to host [08:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188594,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:07:19]free response buf [08:07:19]execute_script done [08:07:19]execute_script returns [08:07:19]free content buf [08:07:19]Sock 7.Close socket [08:07:19]Sock 7.Thread stoped [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:45]accept exits with 9 [08:09:45]New connection [08:09:45]New thread 3066506596 created [08:09:45]Thread 3066649956 joined [08:09:45]Waiting for new connection... [08:09:45] Sock 9.Parse request [08:09:45]Sock 9.Check first char [08:09:45]Sock 9.First char is OK [08:09:45]request: POST /json_proto HTTP/1.0 [08:09:45]Method: POST [08:09:45]URL: /json_proto [08:09:45]Method is POST - this is cgi request [08:09:45]url: /json_proto [08:09:45]query_string will be loaded in cgi processing [08:09:45]execute_cgi json_proto POST (null) [08:09:45]execute_cgi path=json_proto method=POST [08:09:45]POST find Content-Length [08:09:45]Host: 172.17.42.131:8080 [08:09:45]Content-Length: 682 [08:09:45]Content-Type: application/json [08:09:45] [08:09:45]POST finish read [08:09:45]Found Content-Length = 682 [08:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:45]execute_script... [08:09:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:45]POST & json_proto [08:09:45]process_json_proto [08:09:45]json parsed OK: [08:09:45]protocol is kg_v1.0 [08:09:45]action value=close_receipt [08:09:45]process_action close_receipt [08:09:45]cmd_close_receipt [08:09:45]MH_GetDate [08:09:45]Write to MH i2c: F0 00 00 CA 1B D4 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: F0 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: F0 09 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: F0 09 00 CA 1B 00 4C AF 18 67 A0 18 CA 66 3F [08:09:45]GetLastDocTimeStamp 1729670838 [08:09:45]current date 1729670988 [08:09:45]FM_GetShiftState [08:09:45]SAM_PROTO_GetShiftState [08:09:45]wFMCommunicate request_size=4 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 13 01 00 [08:09:45]Write to MH i2c: E2 08 00 CB 1B 80 13 01 00 00 00 00 00 63 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 0E 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 0E 00 CB 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4B [08:09:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:09:45]wFMCommunicate OK [08:09:45]SAM_PROTO_GetShiftState done [08:09:45]FM_GetShiftState done [08:09:45]opened in 1729642525 [08:09:45]opened+sec_in_day 1729728925 [08:09:45]quantity*price = 100015 [08:09:45]sum+1 = 100017 [08:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 53 23.10.2024 08:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188595 ФПД: 271788504752230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080948&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188595&fm=271788504752230&tin=02508201610067®Number=0000000000100030&sum=100000 [08:09:46]StoreToDocumentArchive [08:09:46]shift 462 fd 188595 [08:09:46]save to /storage/0462/doc_00188595 [08:09:46]save last doc name /storage/0462/doc_00188595 to /storage/kkm_last_doc_name [08:09:46]save OK [08:09:46]Clear old archive folders... [08:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:46]tlvbuf is B6E5E370 [08:09:46]SAM_PROTO_ClearQueue [08:09:46]wFMCommunicate request_size=4 [08:09:46]MH_SAM_APDU [08:09:46]CAPDU: 80 09 00 00 [08:09:46]Write to MH i2c: E2 08 00 D8 1B 80 09 00 00 00 00 00 00 65 [08:09:46]Write i2c OK [08:09:46]MH_I2C_Read... [08:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 03 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [08:09:47]RAPDU: 90 00 [08:09:47]wFMCommunicate OK [08:09:47]SAM_PROTO_ClearQueue done [08:09:47]KKMCreateOFDPacket [08:09:47]OFDProtocolAddRootSTLVToBuf [08:09:47]FM_MakeSignedData [08:09:47]FM_MakeSignedData [08:09:47]SAM_PROTO_SignData [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 0D 01 02 [08:09:47]Write to MH i2c: E2 08 00 D9 1B 80 0D 01 02 00 00 00 00 6D [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 03 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 03 00 D9 1B 00 90 00 68 [08:09:47]RAPDU: 90 00 [08:09:47]wFMCommunicate OK [08:09:47]wFMCommunicate request_size=255 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4C AF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E0 02 00 35 04 06 00 F7 [08:09:47]Write to MH i2c: E2 02 01 DA 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4C AF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E0 02 00 35 04 06 00 F7 00 00 E4 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 03 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [08:09:47]RAPDU: 90 00 [08:09:47]wFMCommunicate OK [08:09:47]wFMCommunicate request_size=10 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 0D 02 02 05 30 B1 47 A0 66 [08:09:47]Write to MH i2c: E2 0D 00 DB 1B 80 0D 02 02 05 00 30 B1 47 A0 66 00 00 A8 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 03 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 03 00 DB 1B 00 90 00 6A [08:09:47]RAPDU: 90 00 [08:09:47]wFMCommunicate OK [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 0D 03 02 [08:09:47]Write to MH i2c: E2 08 00 DC 1B 80 0D 03 02 00 00 00 00 72 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 0B 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 0B 00 DC 1B 00 2E C3 B0 C6 C7 C1 F4 08 90 00 5E [08:09:47]RAPDU: 2E C3 B0 C6 C7 C1 F4 08 90 00 [08:09:47]wFMCommunicate OK [08:09:47]SAM_PROTO_SignData done [08:09:47]FM_MakeSignedData done [08:09:47]CreateOFDProtocolMessage [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 11 00 00 [08:09:47]Write to MH i2c: E2 08 00 DD 1B 80 11 00 00 00 00 00 00 72 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 17 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 17 00 DD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [08:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:09:47]wFMCommunicate OK [08:09:47]CreateOFDProtocolMessage done [08:09:47]OFDSenderStorePacket 188595 [08:09:47]StoreOFDPacket docnum=188595 [08:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EC 4B 07 01 0C EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4C AF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E0 02 00 35 04 06 00 F7 30 B1 47 A0 66 2E C3 B0 C6 C7 C1 F4 08 [08:09:47]CheckFolder [08:09:47]dirname=/storage/ofd_packets [08:09:47]CheckFolder done [08:09:47]ProducePacketName [08:09:47]name=ofd_packets/00188595 [08:09:47]NVStorageSaveData ofd_packets/00188595 [08:09:47]File name is /storage/ofd_packets/00188595 [08:09:47]Write 301 bytes [08:09:47]NVStorageSaveData done [08:09:47]OFDSenderStorePacket done [08:09:47]KKMCreateOFDPacket done [08:09:47]NVStorageSaveData kkm_last_timestamp [08:09:47]File name is /storage/kkm_last_timestamp [08:09:47]Write 4 bytes [08:09:47]NVStorageSaveData done [08:09:47]ExternCall_PrintAddStr [08:09:47]wPrintStart [08:09:47]Write to MH i2c: 01 00 00 DE 1B F9 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: 01 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: 01 07 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: 01 07 00 DE 1B 00 00 00 00 00 FF 0F 0E [08:09:47]RasterBufferAndPrint [08:09:47]line Счет N : (1)210654 [08:09:47]line ИНН: 02508201610067 [08:09:47]line Контрольно-Кассовый Чек [08:09:47]line ПРОДАЖА [08:09:47]line ТРК (МРК, ГНК) : 42 [08:09:47]line Товар: 2710124130 [08:09:47]line Аи-92-К-3 [08:09:47]line 14.950 * 66.90 [08:09:47]line = 1000.16 [08:09:47]line НДС 12% НСП 1% [08:09:47]line > о реализуемом товаре [08:09:47]line ОКРУГЛЕНИЕ: -0.16 [08:09:47]line ИТОГО: 1000.00 [08:09:47]line Внесено: 1000.00 [08:09:47]line СДАЧА: 0.00 [08:09:47]line НСП 1% : 8.85 [08:09:47]line НДС 12% : 106.21 [08:09:47]line Наличными: 1000.00 [08:09:47]line Безнал.: 0.00 [08:09:47]line Место: АЗС № 86 "Партнер Нефть" [08:09:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:09:47]line СНО: Общий режим [08:09:47]line Чек 53 23.10.2024 08:09 [08:09:47]line Смена: 462 ФФД: 1.0 [08:09:47]line ЗНМ: 0300000155 [08:09:47]line РНМ: 0000000000100030 [08:09:47]line Версия ККМ: 001 [08:09:47]line ФМ: 0000000000965340 [08:09:47]line ФД: 188595 [08:09:47]line ФПД: 271788504752230 [08:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080948&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188595&fm=271788504752230&tin=02508201610067®Number=0000000000100030&sum=100000 [08:09:47]written 0, free lines is 4095 [08:09:47]OFD Sender: Processing packet 188595 [packets to send 1062, broken 1061] [08:09:47]ProducePacketName [08:09:47]name=ofd_packets/00188595 [08:09:47]OFD Sender: To server: pG, [08:09:47]CommunicateWithHost lk.salyk.kg:30040 [08:09:47]ConnectInit lk.salyk.kg [08:09:47]Write to MH i2c: 01 00 00 09 1C 25 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: 01 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: 01 07 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: 01 07 00 09 1C 00 00 00 00 00 52 0C 8A [08:09:47]RasterBufferAndPrint [08:09:47]line [08:09:47]line [08:09:47]line [08:09:47]line [08:09:47]line [08:09:47]written 0, free lines is 3157 [08:09:47]MH_Cut [08:09:47]Write to MH i2c: D1 01 00 10 1C 01 FE [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: D1 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: D1 01 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: D1 01 00 10 1C 00 FD [08:09:47]Write to MH i2c: 01 00 00 11 1C 2D [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:49]*** Cut start [08:09:49]*** Partial cut [08:09:49]*** CUTSNS_PIN = 1 [08:09:49]*** CUTSNS_PIN = 0 [08:09:49]*** Brake cut motor [08:09:49]Read from MH i2c: 01 [08:09:49]MH_I2C_Read... [08:09:49]*** Stop cut motor [08:09:49]*** Cut end [08:09:49]Read from MH i2c: 01 07 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: 01 07 00 11 1C 00 00 00 00 00 FF 0F 42 [08:09:49]process_action close_receipt done [08:09:49]requested_data is exist [08:09:49]produce_requested_data [08:09:49]requested_item fm.sn is exist - process it [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 11 00 00 [08:09:49]Write to MH i2c: E2 08 00 12 1C 80 11 00 00 00 00 00 00 A8 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 17 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 17 00 12 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [08:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:09:49]wFMCommunicate OK [08:09:49]requested_item fd.num is exist - process it [08:09:49]SAM_PROTO_GetFieldsCounters [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 13 00 00 [08:09:49]Write to MH i2c: E2 08 00 13 1C 80 13 00 00 00 00 00 00 AB [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 62 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 62 00 13 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [08:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:50]wFMCommunicate OK [08:09:50]SAM_PROTO_GetFieldsCounters done [08:09:50]requested_item shift.num is exist - process it [08:09:50]requested_item shift.opened is exist - process it [08:09:50]req_shift_opened [08:09:50]FM_GetShiftState [08:09:50]SAM_PROTO_GetShiftState [08:09:50]wFMCommunicate request_size=4 [08:09:50]MH_SAM_APDU [08:09:50]CAPDU: 80 13 01 00 [08:09:50]Write to MH i2c: E2 08 00 14 1C 80 13 01 00 00 00 00 00 AD [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 0E 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 0E 00 14 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 95 [08:09:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:09:50]wFMCommunicate OK [08:09:50]SAM_PROTO_GetShiftState done [08:09:50]FM_GetShiftState done [08:09:50]req_shift_opened done [08:09:50]requested_item shift.open_date is exist - process it [08:09:50]req_shift_open_date [08:09:50]req_shift_open_date done [08:09:50]produce_requested_data done [08:09:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188595,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:09:50]process_action_free close_receipt [08:09:50]json_value_free [08:09:50]json_value_free done [08:09:50]process_json_proto returns [08:09:50]Send response to host [08:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188595,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:09:50]free response buf [08:09:50]execute_script done [08:09:50]execute_script returns [08:09:50]free content buf [08:09:50]Sock 9.Close socket [08:09:50]Sock 9.Thread stoped [08:12:00]ConnectInit Can't connect to host [08:12:00]CommunicateWithHost connect error [08:12:00]CommunicateWithHost err = -1 [08:12:00]OFD Sender: Server communicate error [08:12:05]OFD Sender: Processing packet 188595 [packets to send 1062, broken 1061] [08:12:05]ProducePacketName [08:12:05]name=ofd_packets/00188595 [08:12:05]OFD Sender: To server: pG, [08:12:05]CommunicateWithHost lk.salyk.kg:30040 [08:12:05]ConnectInit lk.salyk.kg [08:12:05]Connected sock=9 [08:12:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EC 4B 07 01 0C EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4C AF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E0 02 00 35 04 06 00 F7 30 B1 47 A0 66 2E C3 B0 C6 C7 C1 F4 08 [08:12:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 04 E8 47 00 48 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E0 02 00 F4 03 04 00 C1 59 18 67 B6 04 01 00 00 ED 53 AB EC BC BD 51 5B [08:12:05]CommunicateWithHost err = 0 [08:12:05]CheckOFDResponse [08:12:05]1017 (14) - 77093643461234 [08:12:05]1041 (16) - 0000000000965340 [08:12:05]1040 (4) - 188595 [08:12:05]1012 (4) - 23.10.2024 02:04 [08:12:05]1206 (1) - 0 [08:12:05]OFD Sender: Remove packet 188595 [08:12:05]ProducePacketName [08:12:05]name=ofd_packets/00188595 [08:12:05]NVStorageDeleteData [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:51]accept exits with 7 [08:12:51]New connection [08:12:51]New thread 3066649956 created [08:12:51]Thread 3066506596 joined [08:12:51]Waiting for new connection... [08:12:51] Sock 7.Parse request [08:12:51]Sock 7.Check first char [08:12:51]Sock 7.First char is OK [08:12:51]request: POST /json_proto HTTP/1.0 [08:12:51]Method: POST [08:12:51]URL: /json_proto [08:12:51]Method is POST - this is cgi request [08:12:51]url: /json_proto [08:12:51]query_string will be loaded in cgi processing [08:12:51]execute_cgi json_proto POST (null) [08:12:51]execute_cgi path=json_proto method=POST [08:12:51]POST find Content-Length [08:12:51]Host: 172.17.42.131:8080 [08:12:51]Content-Length: 679 [08:12:51]Content-Type: application/json [08:12:51] [08:12:51]POST finish read [08:12:51]Found Content-Length = 679 [08:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:51]execute_script... [08:12:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:51]POST & json_proto [08:12:51]process_json_proto [08:12:51]json parsed OK: [08:12:51]protocol is kg_v1.0 [08:12:51]action value=close_receipt [08:12:51]process_action close_receipt [08:12:51]cmd_close_receipt [08:12:51]MH_GetDate [08:12:51]Write to MH i2c: F0 00 00 15 1C 20 [08:12:51]Write i2c OK [08:12:51]MH_I2C_Read... [08:12:51]Read from MH i2c: F0 [08:12:51]MH_I2C_Read... [08:12:51]Read from MH i2c: F0 09 00 [08:12:51]MH_I2C_Read... [08:12:51]Read from MH i2c: F0 09 00 15 1C 00 06 B0 18 67 A0 18 CA 66 46 [08:12:51]GetLastDocTimeStamp 1729670988 [08:12:51]current date 1729671174 [08:12:51]FM_GetShiftState [08:12:51]SAM_PROTO_GetShiftState [08:12:51]wFMCommunicate request_size=4 [08:12:51]MH_SAM_APDU [08:12:51]CAPDU: 80 13 01 00 [08:12:51]Write to MH i2c: E2 08 00 16 1C 80 13 01 00 00 00 00 00 AF [08:12:51]Write i2c OK [08:12:51]MH_I2C_Read... [08:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:51]Read from MH i2c: E2 [08:12:51]MH_I2C_Read... [08:12:51]Read from MH i2c: E2 0E 00 [08:12:51]MH_I2C_Read... [08:12:51]Read from MH i2c: E2 0E 00 16 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 97 [08:12:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:12:51]wFMCommunicate OK [08:12:51]SAM_PROTO_GetShiftState done [08:12:51]FM_GetShiftState done [08:12:51]opened in 1729642525 [08:12:51]opened+sec_in_day 1729728925 [08:12:51]quantity*price = 300075 [08:12:51]sum+1 = 300077 [08:12:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 54 23.10.2024 08:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188596 ФПД: 256954953974154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081254&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188596&fm=256954953974154&tin=02508201610067®Number=0000000000100030&sum=300000 [08:12:52]StoreToDocumentArchive [08:12:52]shift 462 fd 188596 [08:12:52]save to /storage/0462/doc_00188596 [08:12:52]save last doc name /storage/0462/doc_00188596 to /storage/kkm_last_doc_name [08:12:52]save OK [08:12:52]Clear old archive folders... [08:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:12:52]tlvbuf is 0090C2A0 [08:12:52]SAM_PROTO_ClearQueue [08:12:52]wFMCommunicate request_size=4 [08:12:52]MH_SAM_APDU [08:12:52]CAPDU: 80 09 00 00 [08:12:52]Write to MH i2c: E2 08 00 23 1C 80 09 00 00 00 00 00 00 B1 [08:12:52]Write i2c OK [08:12:52]MH_I2C_Read... [08:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:52]Read from MH i2c: E2 [08:12:52]MH_I2C_Read... [08:12:52]Read from MH i2c: E2 03 00 [08:12:52]MH_I2C_Read... [08:12:52]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [08:12:52]RAPDU: 90 00 [08:12:52]wFMCommunicate OK [08:12:52]SAM_PROTO_ClearQueue done [08:12:52]KKMCreateOFDPacket [08:12:52]OFDProtocolAddRootSTLVToBuf [08:12:52]FM_MakeSignedData [08:12:52]FM_MakeSignedData [08:12:52]SAM_PROTO_SignData [08:12:52]wFMCommunicate request_size=4 [08:12:52]MH_SAM_APDU [08:12:52]CAPDU: 80 0D 01 02 [08:12:52]Write to MH i2c: E2 08 00 24 1C 80 0D 01 02 00 00 00 00 B9 [08:12:52]Write i2c OK [08:12:52]MH_I2C_Read... [08:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:52]Read from MH i2c: E2 [08:12:52]MH_I2C_Read... [08:12:52]Read from MH i2c: E2 03 00 [08:12:52]MH_I2C_Read... [08:12:52]Read from MH i2c: E2 03 00 24 1C 00 90 00 B4 [08:12:52]RAPDU: 90 00 [08:12:52]wFMCommunicate OK [08:12:52]wFMCommunicate request_size=255 [08:12:52]MH_SAM_APDU [08:12:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 06 B0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E0 02 00 35 04 06 00 E9 B2 FC C1 [08:12:52]Write to MH i2c: E2 02 01 25 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 06 B0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E0 02 00 35 04 06 00 E9 B2 FC C1 00 00 83 [08:12:52]Write i2c OK [08:12:52]MH_I2C_Read... [08:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:52]Read from MH i2c: E2 [08:12:52]MH_I2C_Read... [08:12:52]Read from MH i2c: E2 03 00 [08:12:52]MH_I2C_Read... [08:12:52]Read from MH i2c: E2 03 00 25 1C 00 90 00 B5 [08:12:52]RAPDU: 90 00 [08:12:52]wFMCommunicate OK [08:12:52]wFMCommunicate request_size=7 [08:12:52]MH_SAM_APDU [08:12:52]CAPDU: 80 0D 02 02 02 41 8A [08:12:52]Write to MH i2c: E2 0A 00 26 1C 80 0D 02 02 02 00 41 8A 00 00 8B [08:12:52]Write i2c OK [08:12:52]MH_I2C_Read... [08:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:52]Read from MH i2c: E2 [08:12:52]MH_I2C_Read... [08:12:52]Read from MH i2c: E2 03 00 [08:12:52]MH_I2C_Read... [08:12:52]Read from MH i2c: E2 03 00 26 1C 00 90 00 B6 [08:12:52]RAPDU: 90 00 [08:12:52]wFMCommunicate OK [08:12:52]wFMCommunicate request_size=4 [08:12:52]MH_SAM_APDU [08:12:52]CAPDU: 80 0D 03 02 [08:12:52]Write to MH i2c: E2 08 00 27 1C 80 0D 03 02 00 00 00 00 BE [08:12:52]Write i2c OK [08:12:52]MH_I2C_Read... [08:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:53]Read from MH i2c: E2 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: E2 0B 00 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: E2 0B 00 27 1C 00 39 C9 36 82 83 BF F8 AF 90 00 62 [08:12:53]RAPDU: 39 C9 36 82 83 BF F8 AF 90 00 [08:12:53]wFMCommunicate OK [08:12:53]SAM_PROTO_SignData done [08:12:53]FM_MakeSignedData done [08:12:53]CreateOFDProtocolMessage [08:12:53]wFMCommunicate request_size=4 [08:12:53]MH_SAM_APDU [08:12:53]CAPDU: 80 11 00 00 [08:12:53]Write to MH i2c: E2 08 00 28 1C 80 11 00 00 00 00 00 00 BE [08:12:53]Write i2c OK [08:12:53]MH_I2C_Read... [08:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:53]Read from MH i2c: E2 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: E2 17 00 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: E2 17 00 28 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [08:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:12:53]wFMCommunicate OK [08:12:53]CreateOFDProtocolMessage done [08:12:53]OFDSenderStorePacket 188596 [08:12:53]StoreOFDPacket docnum=188596 [08:12:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 82 29 04 01 B1 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 06 B0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E0 02 00 35 04 06 00 E9 B2 FC C1 41 8A 39 C9 36 82 83 BF F8 AF [08:12:53]CheckFolder [08:12:53]dirname=/storage/ofd_packets [08:12:53]CheckFolder done [08:12:53]ProducePacketName [08:12:53]name=ofd_packets/00188596 [08:12:53]NVStorageSaveData ofd_packets/00188596 [08:12:53]File name is /storage/ofd_packets/00188596 [08:12:53]Write 298 bytes [08:12:53]NVStorageSaveData done [08:12:53]OFDSenderStorePacket done [08:12:53]KKMCreateOFDPacket done [08:12:53]NVStorageSaveData kkm_last_timestamp [08:12:53]File name is /storage/kkm_last_timestamp [08:12:53]Write 4 bytes [08:12:53]NVStorageSaveData done [08:12:53]ExternCall_PrintAddStr [08:12:53]wPrintStart [08:12:53]Write to MH i2c: 01 00 00 29 1C 45 [08:12:53]Write i2c OK [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 07 00 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 07 00 29 1C 00 00 00 00 00 FF 0F 5A [08:12:53]RasterBufferAndPrint [08:12:53]line Счет N : (1)210655 [08:12:53]line ИНН: 02508201610067 [08:12:53]line Контрольно-Кассовый Чек [08:12:53]line ПРОДАЖА [08:12:53]line ТРК (МРК, ГНК) : 51 [08:12:53]line Товар: 2710194210 [08:12:53]line ДТ-К-5 [08:12:53]line 39.380 * 76.20 [08:12:53]line = 3000.76 [08:12:53]line НДС 12% НСП 1% [08:12:53]line > о реализуемом товаре [08:12:53]line ОКРУГЛЕНИЕ: -0.76 [08:12:53]line ИТОГО: 3000.00 [08:12:53]line Внесено: 3000.00 [08:12:53]line СДАЧА: 0.00 [08:12:53]line НСП 1% : 26.55 [08:12:53]line НДС 12% : 318.66 [08:12:53]line Наличными: 3000.00 [08:12:53]line Безнал.: 0.00 [08:12:53]line Место: АЗС № 86 "Партнер Нефть" [08:12:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:12:53]line СНО: Общий режим [08:12:53]line Чек 54 23.10.2024 08:12 [08:12:53]line Смена: 462 ФФД: 1.0 [08:12:53]line ЗНМ: 0300000155 [08:12:53]line РНМ: 0000000000100030 [08:12:53]line Версия ККМ: 001 [08:12:53]line ФМ: 0000000000965340 [08:12:53]line ФД: 188596 [08:12:53]line ФПД: 256954953974154 [08:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081254&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188596&fm=256954953974154&tin=02508201610067®Number=0000000000100030&sum=300000 [08:12:53]written 0, free lines is 4095 [08:12:53]OFD Sender: Processing packet 188596 [packets to send 1062, broken 1061] [08:12:53]ProducePacketName [08:12:53]name=ofd_packets/00188596 [08:12:53]OFD Sender: To server: pG, [08:12:53]CommunicateWithHost lk.salyk.kg:30040 [08:12:53]ConnectInit lk.salyk.kg [08:12:53]Connected sock=11 [08:12:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 82 29 04 01 B1 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 06 B0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E0 02 00 35 04 06 00 E9 B2 FC C1 41 8A 39 C9 36 82 83 BF F8 AF [08:12:53]Write to MH i2c: 01 00 00 54 1C 70 [08:12:53]Write i2c OK [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 07 00 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 07 00 54 1C 00 00 00 00 00 5A 0C DD [08:12:53]RasterBufferAndPrint [08:12:53]line [08:12:53]line [08:12:53]line [08:12:53]line [08:12:53]line [08:12:53]written 0, free lines is 3165 [08:12:53]MH_Cut [08:12:53]Write to MH i2c: D1 01 00 5B 1C 01 49 [08:12:53]Write i2c OK [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: D1 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: D1 01 00 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: D1 01 00 5B 1C 00 48 [08:12:53]Write to MH i2c: 01 00 00 5C 1C 78 [08:12:53]Write i2c OK [08:12:53]MH_I2C_Read... [08:12:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 48 47 00 E3 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 36 35 33 34 30 10 04 04 00 B4 E0 02 00 F4 03 04 00 F1 59 18 67 B6 04 01 00 00 63 8A AC 48 A7 EB CA 6B [08:12:53]CommunicateWithHost err = 0 [08:12:53]CheckOFDResponse [08:12:53]1017 (14) - 77093643461234 [08:12:53]1041 (16) - 0000000000965340 [08:12:53]1040 (4) - 188596 [08:12:53]1012 (4) - 23.10.2024 02:05 [08:12:53]1206 (1) - 0 [08:12:53]OFD Sender: Remove packet 188596 [08:12:53]ProducePacketName [08:12:53]name=ofd_packets/00188596 [08:12:53]NVStorageDeleteData [08:12:54]OFD Sender: No OFD packet to send [08:12:54]*** Cut start [08:12:54]*** Partial cut [08:12:54]*** CUTSNS_PIN = 1 [08:12:54]*** CUTSNS_PIN = 0 [08:12:55]*** Brake cut motor [08:12:55]Read from MH i2c: 01 [08:12:55]MH_I2C_Read... [08:12:55]*** Stop cut motor [08:12:55]*** Cut end [08:12:55]Read from MH i2c: 01 07 00 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: 01 07 00 5C 1C 00 00 00 00 00 FF 0F 8D [08:12:55]process_action close_receipt done [08:12:55]requested_data is exist [08:12:55]produce_requested_data [08:12:55]requested_item fm.sn is exist - process it [08:12:55]wFMCommunicate request_size=4 [08:12:55]MH_SAM_APDU [08:12:55]CAPDU: 80 11 00 00 [08:12:55]Write to MH i2c: E2 08 00 5D 1C 80 11 00 00 00 00 00 00 F3 [08:12:55]Write i2c OK [08:12:55]MH_I2C_Read... [08:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:55]Read from MH i2c: E2 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: E2 17 00 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: E2 17 00 5D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [08:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:12:55]wFMCommunicate OK [08:12:55]requested_item fd.num is exist - process it [08:12:55]SAM_PROTO_GetFieldsCounters [08:12:55]wFMCommunicate request_size=4 [08:12:55]MH_SAM_APDU [08:12:55]CAPDU: 80 13 00 00 [08:12:55]Write to MH i2c: E2 08 00 5E 1C 80 13 00 00 00 00 00 00 F6 [08:12:55]Write i2c OK [08:12:55]MH_I2C_Read... [08:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:55]Read from MH i2c: E2 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: E2 62 00 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: E2 62 00 5E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [08:12:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:55]wFMCommunicate OK [08:12:55]SAM_PROTO_GetFieldsCounters done [08:12:55]requested_item shift.num is exist - process it [08:12:55]requested_item shift.opened is exist - process it [08:12:55]req_shift_opened [08:12:55]FM_GetShiftState [08:12:55]SAM_PROTO_GetShiftState [08:12:55]wFMCommunicate request_size=4 [08:12:55]MH_SAM_APDU [08:12:55]CAPDU: 80 13 01 00 [08:12:55]Write to MH i2c: E2 08 00 5F 1C 80 13 01 00 00 00 00 00 F8 [08:12:55]Write i2c OK [08:12:55]MH_I2C_Read... [08:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:55]Read from MH i2c: E2 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: E2 0E 00 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: E2 0E 00 5F 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E0 [08:12:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:12:55]wFMCommunicate OK [08:12:55]SAM_PROTO_GetShiftState done [08:12:55]FM_GetShiftState done [08:12:55]req_shift_opened done [08:12:55]requested_item shift.open_date is exist - process it [08:12:55]req_shift_open_date [08:12:55]req_shift_open_date done [08:12:55]produce_requested_data done [08:12:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188596,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:12:55]process_action_free close_receipt [08:12:55]json_value_free [08:12:55]json_value_free done [08:12:55]process_json_proto returns [08:12:55]Send response to host [08:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188596,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:12:55]free response buf [08:12:55]execute_script done [08:12:55]execute_script returns [08:12:55]free content buf [08:12:55]Sock 7.Close socket [08:12:55]Sock 7.Thread stoped [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:12]accept exits with 9 [08:19:12]New connection [08:19:12]New thread 3066506596 created [08:19:12]Thread 3066649956 joined [08:19:12]Waiting for new connection... [08:19:12] Sock 9.Parse request [08:19:12]Sock 9.Check first char [08:19:12]Sock 9.First char is OK [08:19:12]request: POST /json_proto HTTP/1.0 [08:19:12]Method: POST [08:19:12]URL: /json_proto [08:19:12]Method is POST - this is cgi request [08:19:12]url: /json_proto [08:19:12]query_string will be loaded in cgi processing [08:19:12]execute_cgi json_proto POST (null) [08:19:12]execute_cgi path=json_proto method=POST [08:19:12]POST find Content-Length [08:19:12]Host: 172.17.42.131:8080 [08:19:12]Content-Length: 682 [08:19:12]Content-Type: application/json [08:19:12] [08:19:12]POST finish read [08:19:12]Found Content-Length = 682 [08:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:12]execute_script... [08:19:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:12]POST & json_proto [08:19:12]process_json_proto [08:19:12]json parsed OK: [08:19:12]protocol is kg_v1.0 [08:19:12]action value=close_receipt [08:19:12]process_action close_receipt [08:19:12]cmd_close_receipt [08:19:12]MH_GetDate [08:19:12]Write to MH i2c: F0 00 00 60 1C 6B [08:19:12]Write i2c OK [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: F0 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: F0 09 00 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: F0 09 00 60 1C 00 83 B1 18 67 A0 18 CA 66 0F [08:19:12]GetLastDocTimeStamp 1729671174 [08:19:12]current date 1729671555 [08:19:12]FM_GetShiftState [08:19:12]SAM_PROTO_GetShiftState [08:19:12]wFMCommunicate request_size=4 [08:19:12]MH_SAM_APDU [08:19:12]CAPDU: 80 13 01 00 [08:19:12]Write to MH i2c: E2 08 00 61 1C 80 13 01 00 00 00 00 00 FA [08:19:12]Write i2c OK [08:19:12]MH_I2C_Read... [08:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:12]Read from MH i2c: E2 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: E2 0E 00 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: E2 0E 00 61 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E2 [08:19:12]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:19:12]wFMCommunicate OK [08:19:12]SAM_PROTO_GetShiftState done [08:19:12]FM_GetShiftState done [08:19:12]opened in 1729642525 [08:19:12]opened+sec_in_day 1729728925 [08:19:12]quantity*price = 100015 [08:19:12]sum+1 = 100017 [08:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 55 23.10.2024 08:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188597 ФПД: 211753140073558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081915&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188597&fm=211753140073558&tin=02508201610067®Number=0000000000100030&sum=100000 [08:19:13]StoreToDocumentArchive [08:19:13]shift 462 fd 188597 [08:19:13]save to /storage/0462/doc_00188597 [08:19:13]save last doc name /storage/0462/doc_00188597 to /storage/kkm_last_doc_name [08:19:13]save OK [08:19:13]Clear old archive folders... [08:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:13]tlvbuf is B6E5E570 [08:19:13]SAM_PROTO_ClearQueue [08:19:13]wFMCommunicate request_size=4 [08:19:13]MH_SAM_APDU [08:19:13]CAPDU: 80 09 00 00 [08:19:13]Write to MH i2c: E2 08 00 6E 1C 80 09 00 00 00 00 00 00 FC [08:19:13]Write i2c OK [08:19:13]MH_I2C_Read... [08:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:13]Read from MH i2c: E2 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 03 00 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 03 00 6E 1C 00 90 00 FE [08:19:13]RAPDU: 90 00 [08:19:13]wFMCommunicate OK [08:19:13]SAM_PROTO_ClearQueue done [08:19:13]KKMCreateOFDPacket [08:19:13]OFDProtocolAddRootSTLVToBuf [08:19:13]FM_MakeSignedData [08:19:13]FM_MakeSignedData [08:19:13]SAM_PROTO_SignData [08:19:13]wFMCommunicate request_size=4 [08:19:13]MH_SAM_APDU [08:19:13]CAPDU: 80 0D 01 02 [08:19:13]Write to MH i2c: E2 08 00 6F 1C 80 0D 01 02 00 00 00 00 04 [08:19:13]Write i2c OK [08:19:13]MH_I2C_Read... [08:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:13]Read from MH i2c: E2 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 03 00 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 03 00 6F 1C 00 90 00 FF [08:19:13]RAPDU: 90 00 [08:19:13]wFMCommunicate OK [08:19:13]wFMCommunicate request_size=255 [08:19:13]MH_SAM_APDU [08:19:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 83 B1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E0 02 00 35 04 06 00 C0 [08:19:13]Write to MH i2c: E2 02 01 70 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 83 B1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E0 02 00 35 04 06 00 C0 00 00 81 [08:19:13]Write i2c OK [08:19:13]MH_I2C_Read... [08:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:13]Read from MH i2c: E2 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 03 00 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [08:19:13]RAPDU: 90 00 [08:19:13]wFMCommunicate OK [08:19:13]wFMCommunicate request_size=10 [08:19:13]MH_SAM_APDU [08:19:13]CAPDU: 80 0D 02 02 05 96 9E B1 B4 56 [08:19:13]Write to MH i2c: E2 0D 00 71 1C 80 0D 02 02 05 00 96 9E B1 B4 56 00 00 00 [08:19:13]Write i2c OK [08:19:13]MH_I2C_Read... [08:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:13]Read from MH i2c: E2 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 03 00 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [08:19:13]RAPDU: 90 00 [08:19:13]wFMCommunicate OK [08:19:13]wFMCommunicate request_size=4 [08:19:13]MH_SAM_APDU [08:19:13]CAPDU: 80 0D 03 02 [08:19:13]Write to MH i2c: E2 08 00 72 1C 80 0D 03 02 00 00 00 00 09 [08:19:13]Write i2c OK [08:19:13]MH_I2C_Read... [08:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:13]Read from MH i2c: E2 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 0B 00 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 0B 00 72 1C 00 EC AC 98 68 FC E4 23 49 90 00 EE [08:19:13]RAPDU: EC AC 98 68 FC E4 23 49 90 00 [08:19:13]wFMCommunicate OK [08:19:13]SAM_PROTO_SignData done [08:19:13]FM_MakeSignedData done [08:19:13]CreateOFDProtocolMessage [08:19:13]wFMCommunicate request_size=4 [08:19:13]MH_SAM_APDU [08:19:13]CAPDU: 80 11 00 00 [08:19:13]Write to MH i2c: E2 08 00 73 1C 80 11 00 00 00 00 00 00 09 [08:19:13]Write i2c OK [08:19:13]MH_I2C_Read... [08:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:13]Read from MH i2c: E2 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 17 00 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 17 00 73 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [08:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:19:13]wFMCommunicate OK [08:19:13]CreateOFDProtocolMessage done [08:19:13]OFDSenderStorePacket 188597 [08:19:13]StoreOFDPacket docnum=188597 [08:19:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB DB 07 01 9B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 83 B1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E0 02 00 35 04 06 00 C0 96 9E B1 B4 56 EC AC 98 68 FC E4 23 49 [08:19:13]CheckFolder [08:19:13]dirname=/storage/ofd_packets [08:19:13]CheckFolder done [08:19:13]ProducePacketName [08:19:13]name=ofd_packets/00188597 [08:19:13]NVStorageSaveData ofd_packets/00188597 [08:19:13]File name is /storage/ofd_packets/00188597 [08:19:13]Write 301 bytes [08:19:13]NVStorageSaveData done [08:19:13]OFDSenderStorePacket done [08:19:13]KKMCreateOFDPacket done [08:19:13]NVStorageSaveData kkm_last_timestamp [08:19:13]File name is /storage/kkm_last_timestamp [08:19:13]Write 4 bytes [08:19:13]NVStorageSaveData done [08:19:14]ExternCall_PrintAddStr [08:19:14]wPrintStart [08:19:14]Write to MH i2c: 01 00 00 74 1C 90 [08:19:14]Write i2c OK [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: 01 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: 01 07 00 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: 01 07 00 74 1C 00 00 00 00 00 FF 0F A5 [08:19:14]RasterBufferAndPrint [08:19:14]line Счет N : (1)210656 [08:19:14]line ИНН: 02508201610067 [08:19:14]line Контрольно-Кассовый Чек [08:19:14]line ПРОДАЖА [08:19:14]line ТРК (МРК, ГНК) : 42 [08:19:14]line Товар: 2710124130 [08:19:14]line Аи-92-К-3 [08:19:14]line 14.950 * 66.90 [08:19:14]line = 1000.16 [08:19:14]line НДС 12% НСП 1% [08:19:14]line > о реализуемом товаре [08:19:14]line ОКРУГЛЕНИЕ: -0.16 [08:19:14]line ИТОГО: 1000.00 [08:19:14]line Внесено: 1000.00 [08:19:14]line СДАЧА: 0.00 [08:19:14]line НСП 1% : 8.85 [08:19:14]line НДС 12% : 106.21 [08:19:14]line Наличными: 1000.00 [08:19:14]line Безнал.: 0.00 [08:19:14]line Место: АЗС № 86 "Партнер Нефть" [08:19:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:19:14]line СНО: Общий режим [08:19:14]line Чек 55 23.10.2024 08:19 [08:19:14]line Смена: 462 ФФД: 1.0 [08:19:14]line ЗНМ: 0300000155 [08:19:14]line РНМ: 0000000000100030 [08:19:14]line Версия ККМ: 001 [08:19:14]line ФМ: 0000000000965340 [08:19:14]line ФД: 188597 [08:19:14]line ФПД: 211753140073558 [08:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081915&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188597&fm=211753140073558&tin=02508201610067®Number=0000000000100030&sum=100000 [08:19:14]written 0, free lines is 4095 [08:19:14]OFD Sender: Processing packet 188597 [packets to send 1062, broken 1061] [08:19:14]ProducePacketName [08:19:14]name=ofd_packets/00188597 [08:19:14]OFD Sender: To server: pG, [08:19:14]CommunicateWithHost lk.salyk.kg:30040 [08:19:14]ConnectInit lk.salyk.kg [08:19:14]Connected sock=10 [08:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB DB 07 01 9B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 83 B1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E0 02 00 35 04 06 00 C0 96 9E B1 B4 56 EC AC 98 68 FC E4 23 49 [08:19:14]Write to MH i2c: 01 00 00 9F 1C BB [08:19:14]Write i2c OK [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: 01 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: 01 07 00 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: 01 07 00 9F 1C 00 00 00 00 00 4E 0C 1C [08:19:14]RasterBufferAndPrint [08:19:14]line [08:19:14]line [08:19:14]line [08:19:14]line [08:19:14]line [08:19:14]written 0, free lines is 3154 [08:19:14]MH_Cut [08:19:14]Write to MH i2c: D1 01 00 A6 1C 01 94 [08:19:14]Write i2c OK [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: D1 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: D1 01 00 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: D1 01 00 A6 1C 00 93 [08:19:14]Write to MH i2c: 01 00 00 A7 1C C3 [08:19:14]Write i2c OK [08:19:14]MH_I2C_Read... [08:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 15 93 47 00 80 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E0 02 00 F4 03 04 00 6E 5B 18 67 B6 04 01 00 00 61 DD 01 48 6F 49 E3 D2 [08:19:14]CommunicateWithHost err = 0 [08:19:14]CheckOFDResponse [08:19:14]1017 (14) - 77093643461234 [08:19:14]1041 (16) - 0000000000965340 [08:19:14]1040 (4) - 188597 [08:19:14]1012 (4) - 23.10.2024 02:11 [08:19:14]1206 (1) - 0 [08:19:14]OFD Sender: Remove packet 188597 [08:19:14]ProducePacketName [08:19:14]name=ofd_packets/00188597 [08:19:14]NVStorageDeleteData [08:19:15]OFD Sender: No OFD packet to send [08:19:15]*** Cut start [08:19:15]*** Partial cut [08:19:15]*** CUTSNS_PIN = 1 [08:19:15]*** CUTSNS_PIN = 0 [08:19:16]*** Brake cut motor [08:19:16]Read from MH i2c: 01 [08:19:16]MH_I2C_Read... [08:19:16]*** Stop cut motor [08:19:16]*** Cut end [08:19:16]Read from MH i2c: 01 07 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: 01 07 00 A7 1C 00 00 00 00 00 FF 0F D8 [08:19:16]process_action close_receipt done [08:19:16]requested_data is exist [08:19:16]produce_requested_data [08:19:16]requested_item fm.sn is exist - process it [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 11 00 00 [08:19:16]Write to MH i2c: E2 08 00 A8 1C 80 11 00 00 00 00 00 00 3E [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 17 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 17 00 A8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [08:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:19:16]wFMCommunicate OK [08:19:16]requested_item fd.num is exist - process it [08:19:16]SAM_PROTO_GetFieldsCounters [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 13 00 00 [08:19:16]Write to MH i2c: E2 08 00 A9 1C 80 13 00 00 00 00 00 00 41 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 62 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 62 00 A9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [08:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:16]wFMCommunicate OK [08:19:16]SAM_PROTO_GetFieldsCounters done [08:19:16]requested_item shift.num is exist - process it [08:19:16]requested_item shift.opened is exist - process it [08:19:16]req_shift_opened [08:19:16]FM_GetShiftState [08:19:16]SAM_PROTO_GetShiftState [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 13 01 00 [08:19:16]Write to MH i2c: E2 08 00 AA 1C 80 13 01 00 00 00 00 00 43 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 0E 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 0E 00 AA 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2B [08:19:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:19:16]wFMCommunicate OK [08:19:16]SAM_PROTO_GetShiftState done [08:19:16]FM_GetShiftState done [08:19:16]req_shift_opened done [08:19:16]requested_item shift.open_date is exist - process it [08:19:16]req_shift_open_date [08:19:16]req_shift_open_date done [08:19:16]produce_requested_data done [08:19:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188597,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:19:16]process_action_free close_receipt [08:19:16]json_value_free [08:19:16]json_value_free done [08:19:16]process_json_proto returns [08:19:16]Send response to host [08:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188597,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:19:16]free response buf [08:19:16]execute_script done [08:19:16]execute_script returns [08:19:16]free content buf [08:19:16]Sock 9.Close socket [08:19:16]Sock 9.Thread stoped [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:12]accept exits with 7 [08:22:12]New connection [08:22:12]New thread 3066649956 created [08:22:12]Thread 3066506596 joined [08:22:12]Waiting for new connection... [08:22:12] Sock 7.Parse request [08:22:12]Sock 7.Check first char [08:22:12]Sock 7.First char is OK [08:22:12]request: POST /json_proto HTTP/1.0 [08:22:12]Method: POST [08:22:12]URL: /json_proto [08:22:12]Method is POST - this is cgi request [08:22:12]url: /json_proto [08:22:12]query_string will be loaded in cgi processing [08:22:12]execute_cgi json_proto POST (null) [08:22:12]execute_cgi path=json_proto method=POST [08:22:12]POST find Content-Length [08:22:12]Host: 172.17.42.131:8080 [08:22:12]Content-Length: 677 [08:22:12]Content-Type: application/json [08:22:12] [08:22:12]POST finish read [08:22:12]Found Content-Length = 677 [08:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:12]execute_script... [08:22:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:12]POST & json_proto [08:22:12]process_json_proto [08:22:12]json parsed OK: [08:22:12]protocol is kg_v1.0 [08:22:12]action value=close_receipt [08:22:12]process_action close_receipt [08:22:12]cmd_close_receipt [08:22:12]MH_GetDate [08:22:12]Write to MH i2c: F0 00 00 AB 1C B6 [08:22:12]Write i2c OK [08:22:12]MH_I2C_Read... [08:22:12]Read from MH i2c: F0 [08:22:12]MH_I2C_Read... [08:22:12]Read from MH i2c: F0 09 00 [08:22:12]MH_I2C_Read... [08:22:12]Read from MH i2c: F0 09 00 AB 1C 00 37 B2 18 67 A0 18 CA 66 0F [08:22:12]GetLastDocTimeStamp 1729671555 [08:22:12]current date 1729671735 [08:22:12]FM_GetShiftState [08:22:12]SAM_PROTO_GetShiftState [08:22:12]wFMCommunicate request_size=4 [08:22:12]MH_SAM_APDU [08:22:12]CAPDU: 80 13 01 00 [08:22:12]Write to MH i2c: E2 08 00 AC 1C 80 13 01 00 00 00 00 00 45 [08:22:12]Write i2c OK [08:22:12]MH_I2C_Read... [08:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:12]Read from MH i2c: E2 [08:22:12]MH_I2C_Read... [08:22:12]Read from MH i2c: E2 0E 00 [08:22:12]MH_I2C_Read... [08:22:12]Read from MH i2c: E2 0E 00 AC 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2D [08:22:12]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:22:12]wFMCommunicate OK [08:22:12]SAM_PROTO_GetShiftState done [08:22:12]FM_GetShiftState done [08:22:12]opened in 1729642525 [08:22:12]opened+sec_in_day 1729728925 [08:22:12]quantity*price = 50041 [08:22:12]sum+1 = 50042 [08:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 56 23.10.2024 08:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188598 ФПД: 59806705983797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188598&fm=59806705983797&tin=02508201610067®Number=0000000000100030&sum=50000 [08:22:13]StoreToDocumentArchive [08:22:13]shift 462 fd 188598 [08:22:13]save to /storage/0462/doc_00188598 [08:22:13]save last doc name /storage/0462/doc_00188598 to /storage/kkm_last_doc_name [08:22:13]save OK [08:22:13]Clear old archive folders... [08:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:13]tlvbuf is 00931370 [08:22:13]SAM_PROTO_ClearQueue [08:22:13]wFMCommunicate request_size=4 [08:22:13]MH_SAM_APDU [08:22:13]CAPDU: 80 09 00 00 [08:22:13]Write to MH i2c: E2 08 00 B9 1C 80 09 00 00 00 00 00 00 47 [08:22:13]Write i2c OK [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 [08:22:13]MH_I2C_Read... [08:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:13]Read from MH i2c: E2 03 00 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [08:22:13]RAPDU: 90 00 [08:22:13]wFMCommunicate OK [08:22:13]SAM_PROTO_ClearQueue done [08:22:13]KKMCreateOFDPacket [08:22:13]OFDProtocolAddRootSTLVToBuf [08:22:13]FM_MakeSignedData [08:22:13]FM_MakeSignedData [08:22:13]SAM_PROTO_SignData [08:22:13]wFMCommunicate request_size=4 [08:22:13]MH_SAM_APDU [08:22:13]CAPDU: 80 0D 01 02 [08:22:13]Write to MH i2c: E2 08 00 BA 1C 80 0D 01 02 00 00 00 00 4F [08:22:13]Write i2c OK [08:22:13]MH_I2C_Read... [08:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:13]Read from MH i2c: E2 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 03 00 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [08:22:13]RAPDU: 90 00 [08:22:13]wFMCommunicate OK [08:22:13]wFMCommunicate request_size=255 [08:22:13]MH_SAM_APDU [08:22:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 37 B2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E0 02 00 35 04 06 00 36 [08:22:13]Write to MH i2c: E2 02 01 BB 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 37 B2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E0 02 00 35 04 06 00 36 00 00 FF [08:22:13]Write i2c OK [08:22:13]MH_I2C_Read... [08:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:13]Read from MH i2c: E2 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 03 00 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [08:22:13]RAPDU: 90 00 [08:22:13]wFMCommunicate OK [08:22:13]wFMCommunicate request_size=10 [08:22:13]MH_SAM_APDU [08:22:13]CAPDU: 80 0D 02 02 05 64 D5 77 21 35 [08:22:13]Write to MH i2c: E2 0D 00 BC 1C 80 0D 02 02 05 00 64 D5 77 21 35 00 00 62 [08:22:13]Write i2c OK [08:22:13]MH_I2C_Read... [08:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:13]Read from MH i2c: E2 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 03 00 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 03 00 BC 1C 00 90 00 4C [08:22:13]RAPDU: 90 00 [08:22:13]wFMCommunicate OK [08:22:13]wFMCommunicate request_size=4 [08:22:13]MH_SAM_APDU [08:22:13]CAPDU: 80 0D 03 02 [08:22:13]Write to MH i2c: E2 08 00 BD 1C 80 0D 03 02 00 00 00 00 54 [08:22:13]Write i2c OK [08:22:13]MH_I2C_Read... [08:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:13]Read from MH i2c: E2 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 0B 00 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 0B 00 BD 1C 00 1A 4A 7A D9 6B 5A 65 93 90 00 C9 [08:22:13]RAPDU: 1A 4A 7A D9 6B 5A 65 93 90 00 [08:22:13]wFMCommunicate OK [08:22:13]SAM_PROTO_SignData done [08:22:13]FM_MakeSignedData done [08:22:13]CreateOFDProtocolMessage [08:22:13]wFMCommunicate request_size=4 [08:22:13]MH_SAM_APDU [08:22:13]CAPDU: 80 11 00 00 [08:22:13]Write to MH i2c: E2 08 00 BE 1C 80 11 00 00 00 00 00 00 54 [08:22:13]Write i2c OK [08:22:13]MH_I2C_Read... [08:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:13]Read from MH i2c: E2 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 17 00 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: E2 17 00 BE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A2 [08:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:22:13]wFMCommunicate OK [08:22:13]CreateOFDProtocolMessage done [08:22:13]OFDSenderStorePacket 188598 [08:22:13]StoreOFDPacket docnum=188598 [08:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C 9D 07 01 BC 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 37 B2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E0 02 00 35 04 06 00 36 64 D5 77 21 35 1A 4A 7A D9 6B 5A 65 93 [08:22:13]CheckFolder [08:22:13]dirname=/storage/ofd_packets [08:22:13]CheckFolder done [08:22:13]ProducePacketName [08:22:13]name=ofd_packets/00188598 [08:22:13]NVStorageSaveData ofd_packets/00188598 [08:22:13]File name is /storage/ofd_packets/00188598 [08:22:13]Write 301 bytes [08:22:13]NVStorageSaveData done [08:22:13]OFDSenderStorePacket done [08:22:13]KKMCreateOFDPacket done [08:22:13]NVStorageSaveData kkm_last_timestamp [08:22:13]File name is /storage/kkm_last_timestamp [08:22:13]Write 4 bytes [08:22:13]NVStorageSaveData done [08:22:13]ExternCall_PrintAddStr [08:22:13]wPrintStart [08:22:13]Write to MH i2c: 01 00 00 BF 1C DB [08:22:13]Write i2c OK [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: 01 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: 01 07 00 [08:22:13]MH_I2C_Read... [08:22:13]Read from MH i2c: 01 07 00 BF 1C 00 00 00 00 00 FF 0F F0 [08:22:13]RasterBufferAndPrint [08:22:13]line Счет N : (1)210657 [08:22:13]line ИНН: 02508201610067 [08:22:13]line Контрольно-Кассовый Чек [08:22:13]line ПРОДАЖА [08:22:13]line ТРК (МРК, ГНК) : 12 [08:22:13]line Товар: 2710124130 [08:22:13]line Аи-92-К-3 [08:22:13]line 7.480 * 66.90 [08:22:13]line = 500.41 [08:22:13]line НДС 12% НСП 1% [08:22:13]line > о реализуемом товаре [08:22:13]line ОКРУГЛЕНИЕ: -0.41 [08:22:13]line ИТОГО: 500.00 [08:22:13]line Внесено: 500.00 [08:22:13]line СДАЧА: 0.00 [08:22:13]line НСП 1% : 4.43 [08:22:13]line НДС 12% : 53.14 [08:22:13]line Наличными: 500.00 [08:22:13]line Безнал.: 0.00 [08:22:13]line Место: АЗС № 86 "Партнер Нефть" [08:22:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:22:13]line СНО: Общий режим [08:22:13]line Чек 56 23.10.2024 08:22 [08:22:13]line Смена: 462 ФФД: 1.0 [08:22:13]line ЗНМ: 0300000155 [08:22:13]line РНМ: 0000000000100030 [08:22:13]line Версия ККМ: 001 [08:22:13]line ФМ: 0000000000965340 [08:22:13]line ФД: 188598 [08:22:13]line ФПД: 59806705983797 [08:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188598&fm=59806705983797&tin=02508201610067®Number=0000000000100030&sum=50000 [08:22:14]OFD Sender: Processing packet 188598 [packets to send 1062, broken 1061] [08:22:14]ProducePacketName [08:22:14]name=ofd_packets/00188598 [08:22:14]OFD Sender: To server: pG, [08:22:14]CommunicateWithHost lk.salyk.kg:30040 [08:22:14]ConnectInit lk.salyk.kg [08:22:14]written 0, free lines is 4095 [08:22:14]Connected sock=10 [08:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C 9D 07 01 BC 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 37 B2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E0 02 00 35 04 06 00 36 64 D5 77 21 35 1A 4A 7A D9 6B 5A 65 93 [08:22:14]Write to MH i2c: 01 00 00 EA 1C 06 [08:22:14]Write i2c OK [08:22:14]MH_I2C_Read... [08:22:14]Read from MH i2c: 01 [08:22:14]MH_I2C_Read... [08:22:14]Read from MH i2c: 01 07 00 [08:22:14]MH_I2C_Read... [08:22:14]Read from MH i2c: 01 07 00 EA 1C 00 00 00 00 00 5C 0C 75 [08:22:14]RasterBufferAndPrint [08:22:14]line [08:22:14]line [08:22:14]line [08:22:14]line [08:22:14]line [08:22:14]written 0, free lines is 3167 [08:22:14]MH_Cut [08:22:14]Write to MH i2c: D1 01 00 F1 1C 01 DF [08:22:14]Write i2c OK [08:22:14]MH_I2C_Read... [08:22:14]Read from MH i2c: D1 [08:22:14]MH_I2C_Read... [08:22:14]Read from MH i2c: D1 01 00 [08:22:14]MH_I2C_Read... [08:22:14]Read from MH i2c: D1 01 00 F1 1C 00 DE [08:22:14]Write to MH i2c: 01 00 00 F2 1C 0E [08:22:14]Write i2c OK [08:22:14]MH_I2C_Read... [08:22:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5B 50 47 00 E3 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E0 02 00 F4 03 04 00 22 5C 18 67 B6 04 01 00 00 E1 77 D1 B5 9E 8F C9 5D [08:22:14]CommunicateWithHost err = 0 [08:22:14]CheckOFDResponse [08:22:14]1017 (14) - 77093643461234 [08:22:14]1041 (16) - 0000000000965340 [08:22:14]1040 (4) - 188598 [08:22:14]1012 (4) - 23.10.2024 02:14 [08:22:14]1206 (1) - 0 [08:22:14]OFD Sender: Remove packet 188598 [08:22:14]ProducePacketName [08:22:14]name=ofd_packets/00188598 [08:22:14]NVStorageDeleteData [08:22:15]OFD Sender: No OFD packet to send [08:22:15]*** Cut start [08:22:15]*** Partial cut [08:22:15]*** CUTSNS_PIN = 1 [08:22:15]*** CUTSNS_PIN = 0 [08:22:16]*** Brake cut motor [08:22:16]Read from MH i2c: 01 [08:22:16]MH_I2C_Read... [08:22:16]*** Stop cut motor [08:22:16]*** Cut end [08:22:16]Read from MH i2c: 01 07 00 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: 01 07 00 F2 1C 00 00 00 00 00 FF 0F 23 [08:22:16]process_action close_receipt done [08:22:16]requested_data is exist [08:22:16]produce_requested_data [08:22:16]requested_item fm.sn is exist - process it [08:22:16]wFMCommunicate request_size=4 [08:22:16]MH_SAM_APDU [08:22:16]CAPDU: 80 11 00 00 [08:22:16]Write to MH i2c: E2 08 00 F3 1C 80 11 00 00 00 00 00 00 89 [08:22:16]Write i2c OK [08:22:16]MH_I2C_Read... [08:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:16]Read from MH i2c: E2 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: E2 17 00 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: E2 17 00 F3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [08:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:22:16]wFMCommunicate OK [08:22:16]requested_item fd.num is exist - process it [08:22:16]SAM_PROTO_GetFieldsCounters [08:22:16]wFMCommunicate request_size=4 [08:22:16]MH_SAM_APDU [08:22:16]CAPDU: 80 13 00 00 [08:22:16]Write to MH i2c: E2 08 00 F4 1C 80 13 00 00 00 00 00 00 8C [08:22:16]Write i2c OK [08:22:16]MH_I2C_Read... [08:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:16]Read from MH i2c: E2 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: E2 62 00 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: E2 62 00 F4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [08:22:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:16]wFMCommunicate OK [08:22:16]SAM_PROTO_GetFieldsCounters done [08:22:16]requested_item shift.num is exist - process it [08:22:16]requested_item shift.opened is exist - process it [08:22:16]req_shift_opened [08:22:16]FM_GetShiftState [08:22:16]SAM_PROTO_GetShiftState [08:22:16]wFMCommunicate request_size=4 [08:22:16]MH_SAM_APDU [08:22:16]CAPDU: 80 13 01 00 [08:22:16]Write to MH i2c: E2 08 00 F5 1C 80 13 01 00 00 00 00 00 8E [08:22:16]Write i2c OK [08:22:16]MH_I2C_Read... [08:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:16]Read from MH i2c: E2 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: E2 0E 00 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: E2 0E 00 F5 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 76 [08:22:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:22:16]wFMCommunicate OK [08:22:16]SAM_PROTO_GetShiftState done [08:22:16]FM_GetShiftState done [08:22:16]req_shift_opened done [08:22:16]requested_item shift.open_date is exist - process it [08:22:16]req_shift_open_date [08:22:16]req_shift_open_date done [08:22:16]produce_requested_data done [08:22:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188598,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:22:16]process_action_free close_receipt [08:22:16]json_value_free [08:22:16]json_value_free done [08:22:16]process_json_proto returns [08:22:16]Send response to host [08:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188598,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:22:16]free response buf [08:22:16]execute_script done [08:22:16]execute_script returns [08:22:16]free content buf [08:22:16]Sock 7.Close socket [08:22:16]Sock 7.Thread stoped [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:02]accept exits with 9 [08:25:02]New connection [08:25:02]New thread 3066506596 created [08:25:02]Thread 3066649956 joined [08:25:02]Waiting for new connection... [08:25:02] Sock 9.Parse request [08:25:02]Sock 9.Check first char [08:25:02]Sock 9.First char is OK [08:25:02]request: POST /json_proto HTTP/1.0 [08:25:02]Method: POST [08:25:02]URL: /json_proto [08:25:02]Method is POST - this is cgi request [08:25:02]url: /json_proto [08:25:02]query_string will be loaded in cgi processing [08:25:02]execute_cgi json_proto POST (null) [08:25:02]execute_cgi path=json_proto method=POST [08:25:02]POST find Content-Length [08:25:02]Host: 172.17.42.131:8080 [08:25:02]Content-Length: 766 [08:25:02]Content-Type: application/json [08:25:02] [08:25:02]POST finish read [08:25:02]Found Content-Length = 766 [08:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:02]execute_script... [08:25:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:02]POST & json_proto [08:25:02]process_json_proto [08:25:02]json parsed OK: [08:25:02]protocol is kg_v1.0 [08:25:02]action value=close_receipt [08:25:02]process_action close_receipt [08:25:02]cmd_close_receipt [08:25:02]MH_GetDate [08:25:02]Write to MH i2c: F0 00 00 F6 1C 01 [08:25:02]Write i2c OK [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 09 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 09 00 F6 1C 00 E1 B2 18 67 A0 18 CA 66 04 [08:25:02]GetLastDocTimeStamp 1729671735 [08:25:02]current date 1729671905 [08:25:02]FM_GetShiftState [08:25:02]SAM_PROTO_GetShiftState [08:25:02]wFMCommunicate request_size=4 [08:25:02]MH_SAM_APDU [08:25:02]CAPDU: 80 13 01 00 [08:25:02]Write to MH i2c: E2 08 00 F7 1C 80 13 01 00 00 00 00 00 90 [08:25:02]Write i2c OK [08:25:02]MH_I2C_Read... [08:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:02]Read from MH i2c: E2 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 0E 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 0E 00 F7 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 78 [08:25:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:25:02]wFMCommunicate OK [08:25:02]SAM_PROTO_GetShiftState done [08:25:02]FM_GetShiftState done [08:25:02]opened in 1729642525 [08:25:02]opened+sec_in_day 1729728925 [08:25:02]quantity*price = 50041 [08:25:02]sum+1 = 50042 [08:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 57 23.10.2024 08:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188599 ФПД: 28846922314455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188599&fm=28846922314455&tin=02508201610067®Number=0000000000100030&sum=50041 [08:25:03]StoreToDocumentArchive [08:25:03]shift 462 fd 188599 [08:25:03]save to /storage/0462/doc_00188599 [08:25:03]save last doc name /storage/0462/doc_00188599 to /storage/kkm_last_doc_name [08:25:03]save OK [08:25:03]Clear old archive folders... [08:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:03]tlvbuf is B6D5E910 [08:25:03]SAM_PROTO_ClearQueue [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 09 00 00 [08:25:03]Write to MH i2c: E2 08 00 04 1D 80 09 00 00 00 00 00 00 93 [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 04 1D 00 90 00 95 [08:25:03]RAPDU: 90 00 [08:25:03]wFMCommunicate OK [08:25:03]SAM_PROTO_ClearQueue done [08:25:03]KKMCreateOFDPacket [08:25:03]OFDProtocolAddRootSTLVToBuf [08:25:03]FM_MakeSignedData [08:25:03]FM_MakeSignedData [08:25:03]SAM_PROTO_SignData [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 0D 01 02 [08:25:03]Write to MH i2c: E2 08 00 05 1D 80 0D 01 02 00 00 00 00 9B [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 05 1D 00 90 00 96 [08:25:03]RAPDU: 90 00 [08:25:03]wFMCommunicate OK [08:25:03]wFMCommunicate request_size=255 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 E1 B2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E0 02 00 35 04 06 00 1A [08:25:03]Write to MH i2c: E2 02 01 06 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 E1 B2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E0 02 00 35 04 06 00 1A 00 00 2D [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 06 1D 00 90 00 97 [08:25:04]RAPDU: 90 00 [08:25:04]wFMCommunicate OK [08:25:04]wFMCommunicate request_size=10 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 0D 02 02 05 3C 72 8E B2 D7 [08:25:04]Write to MH i2c: E2 0D 00 07 1D 80 0D 02 02 05 00 3C 72 8E B2 D7 00 00 6D [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 07 1D 00 90 00 98 [08:25:04]RAPDU: 90 00 [08:25:04]wFMCommunicate OK [08:25:04]wFMCommunicate request_size=4 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 0D 03 02 [08:25:04]Write to MH i2c: E2 08 00 08 1D 80 0D 03 02 00 00 00 00 A0 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 0B 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 0B 00 08 1D 00 D9 DD D2 D5 86 7E A5 07 90 00 AE [08:25:04]RAPDU: D9 DD D2 D5 86 7E A5 07 90 00 [08:25:04]wFMCommunicate OK [08:25:04]SAM_PROTO_SignData done [08:25:04]FM_MakeSignedData done [08:25:04]CreateOFDProtocolMessage [08:25:04]wFMCommunicate request_size=4 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 11 00 00 [08:25:04]Write to MH i2c: E2 08 00 09 1D 80 11 00 00 00 00 00 00 A0 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 17 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 17 00 09 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [08:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:25:04]wFMCommunicate OK [08:25:04]CreateOFDProtocolMessage done [08:25:04]OFDSenderStorePacket 188599 [08:25:04]StoreOFDPacket docnum=188599 [08:25:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 E5 07 01 7E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 E1 B2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E0 02 00 35 04 06 00 1A 3C 72 8E B2 D7 D9 DD D2 D5 86 7E A5 07 [08:25:04]CheckFolder [08:25:04]dirname=/storage/ofd_packets [08:25:04]CheckFolder done [08:25:04]ProducePacketName [08:25:04]name=ofd_packets/00188599 [08:25:04]NVStorageSaveData ofd_packets/00188599 [08:25:04]File name is /storage/ofd_packets/00188599 [08:25:04]Write 301 bytes [08:25:04]NVStorageSaveData done [08:25:04]OFDSenderStorePacket done [08:25:04]KKMCreateOFDPacket done [08:25:04]NVStorageSaveData kkm_last_timestamp [08:25:04]File name is /storage/kkm_last_timestamp [08:25:04]Write 4 bytes [08:25:04]NVStorageSaveData done [08:25:04]ExternCall_PrintAddStr [08:25:04]wPrintStart [08:25:04]Write to MH i2c: 01 00 00 0A 1D 27 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 0A 1D 00 00 00 00 00 FF 0F 3C [08:25:04]RasterBufferAndPrint [08:25:04]line Счет N : (1)210658 [08:25:04]line ИНН: 02508201610067 [08:25:04]line Контрольно-Кассовый Чек [08:25:04]line ПРОДАЖА [08:25:04]line ТРК (МРК, ГНК) : 12 [08:25:04]line Товар: 2710124130 [08:25:04]line Аи-92-К-3 [08:25:04]line 7.480 * 66.90 [08:25:04]line = 500.41 [08:25:04]line НДС 12% НСП 1% [08:25:04]line > о реализуемом товаре [08:25:04]line ИТОГО: 500.41 [08:25:04]line НСП 1% : 4.43 [08:25:04]line НДС 12% : 53.14 [08:25:04]line Наличными: 0.00 [08:25:04]line Безнал.: 500.41 [08:25:04]line Место: АЗС № 86 "Партнер Нефть" [08:25:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:25:04]line СНО: Общий режим [08:25:04]line Чек 57 23.10.2024 08:25 [08:25:04]line Смена: 462 ФФД: 1.0 [08:25:04]line ЗНМ: 0300000155 [08:25:04]line РНМ: 0000000000100030 [08:25:04]line Версия ККМ: 001 [08:25:04]line Платежная система: Mbank [08:25:04]line ФМ: 0000000000965340 [08:25:04]line ФД: 188599 [08:25:04]line ФПД: 28846922314455 [08:25:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188599&fm=28846922314455&tin=02508201610067®Number=0000000000100030&sum=50041 [08:25:04]written 0, free lines is 4095 [08:25:04]OFD Sender: Processing packet 188599 [packets to send 1062, broken 1061] [08:25:04]ProducePacketName [08:25:04]name=ofd_packets/00188599 [08:25:04]OFD Sender: To server: pG, [08:25:04]CommunicateWithHost lk.salyk.kg:30040 [08:25:04]ConnectInit lk.salyk.kg [08:25:04]Write to MH i2c: 01 00 00 33 1D 50 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 33 1D 00 00 00 00 00 80 0C E3 [08:25:04]RasterBufferAndPrint [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]Connected sock=10 [08:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 E5 07 01 7E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 E1 B2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E0 02 00 35 04 06 00 1A 3C 72 8E B2 D7 D9 DD D2 D5 86 7E A5 07 [08:25:04]written 0, free lines is 3204 [08:25:04]MH_Cut [08:25:04]Write to MH i2c: D1 01 00 3A 1D 01 29 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 01 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 01 00 3A 1D 00 28 [08:25:04]Write to MH i2c: 01 00 00 3B 1D 58 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 90 C8 47 00 51 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E0 02 00 F4 03 04 00 CC 5C 18 67 B6 04 01 00 00 4F AE 03 C1 AC 33 2A 59 [08:25:05]CommunicateWithHost err = 0 [08:25:05]CheckOFDResponse [08:25:05]1017 (14) - 77093643461234 [08:25:05]1041 (16) - 0000000000965340 [08:25:05]1040 (4) - 188599 [08:25:05]1012 (4) - 23.10.2024 02:17 [08:25:05]1206 (1) - 0 [08:25:05]OFD Sender: Remove packet 188599 [08:25:05]ProducePacketName [08:25:05]name=ofd_packets/00188599 [08:25:05]NVStorageDeleteData [08:25:05]OFD Sender: No OFD packet to send [08:25:05]*** Cut start [08:25:05]*** Partial cut [08:25:05]*** CUTSNS_PIN = 1 [08:25:05]*** CUTSNS_PIN = 0 [08:25:06]*** Brake cut motor [08:25:06]Read from MH i2c: 01 [08:25:06]MH_I2C_Read... [08:25:06]*** Stop cut motor [08:25:06]*** Cut end [08:25:06]Read from MH i2c: 01 07 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: 01 07 00 3B 1D 00 00 00 00 00 FF 0F 6D [08:25:06]process_action close_receipt done [08:25:06]requested_data is exist [08:25:06]produce_requested_data [08:25:06]requested_item fm.sn is exist - process it [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 11 00 00 [08:25:06]Write to MH i2c: E2 08 00 3C 1D 80 11 00 00 00 00 00 00 D3 [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 17 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 17 00 3C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [08:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:25:06]wFMCommunicate OK [08:25:06]requested_item fd.num is exist - process it [08:25:06]SAM_PROTO_GetFieldsCounters [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 13 00 00 [08:25:06]Write to MH i2c: E2 08 00 3D 1D 80 13 00 00 00 00 00 00 D6 [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 62 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 62 00 3D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [08:25:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:06]wFMCommunicate OK [08:25:06]SAM_PROTO_GetFieldsCounters done [08:25:06]requested_item shift.num is exist - process it [08:25:06]requested_item shift.opened is exist - process it [08:25:06]req_shift_opened [08:25:06]FM_GetShiftState [08:25:06]SAM_PROTO_GetShiftState [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 13 01 00 [08:25:06]Write to MH i2c: E2 08 00 3E 1D 80 13 01 00 00 00 00 00 D8 [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 0E 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 0E 00 3E 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C0 [08:25:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:25:06]wFMCommunicate OK [08:25:06]SAM_PROTO_GetShiftState done [08:25:06]FM_GetShiftState done [08:25:06]req_shift_opened done [08:25:06]requested_item shift.open_date is exist - process it [08:25:06]req_shift_open_date [08:25:06]req_shift_open_date done [08:25:06]produce_requested_data done [08:25:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188599,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:25:06]process_action_free close_receipt [08:25:06]json_value_free [08:25:06]json_value_free done [08:25:06]process_json_proto returns [08:25:06]Send response to host [08:25:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188599,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:25:06]free response buf [08:25:06]execute_script done [08:25:06]execute_script returns [08:25:06]free content buf [08:25:06]Sock 9.Close socket [08:25:06]Sock 9.Thread stoped [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:53]accept exits with 7 [08:27:53]New connection [08:27:53]New thread 3066649956 created [08:27:53]Thread 3066506596 joined [08:27:53]Waiting for new connection... [08:27:53] Sock 7.Parse request [08:27:53]Sock 7.Check first char [08:27:53]Sock 7.First char is OK [08:27:53]request: POST /json_proto HTTP/1.0 [08:27:53]Method: POST [08:27:53]URL: /json_proto [08:27:53]Method is POST - this is cgi request [08:27:53]url: /json_proto [08:27:53]query_string will be loaded in cgi processing [08:27:53]execute_cgi json_proto POST (null) [08:27:53]execute_cgi path=json_proto method=POST [08:27:53]POST find Content-Length [08:27:53]Host: 172.17.42.131:8080 [08:27:53]Content-Length: 688 [08:27:53]Content-Type: application/json [08:27:53] [08:27:53]POST finish read [08:27:53]Found Content-Length = 688 [08:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:53]execute_script... [08:27:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:53]POST & json_proto [08:27:53]process_json_proto [08:27:53]json parsed OK: [08:27:53]protocol is kg_v1.0 [08:27:53]action value=close_receipt [08:27:53]process_action close_receipt [08:27:53]cmd_close_receipt [08:27:53]MH_GetDate [08:27:53]Write to MH i2c: F0 00 00 3F 1D 4B [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: F0 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: F0 09 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: F0 09 00 3F 1D 00 8C B3 18 67 A0 18 CA 66 FA [08:27:53]GetLastDocTimeStamp 1729671905 [08:27:53]current date 1729672076 [08:27:53]FM_GetShiftState [08:27:53]SAM_PROTO_GetShiftState [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 13 01 00 [08:27:53]Write to MH i2c: E2 08 00 40 1D 80 13 01 00 00 00 00 00 DA [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 0E 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 0E 00 40 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C2 [08:27:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:27:53]wFMCommunicate OK [08:27:53]SAM_PROTO_GetShiftState done [08:27:53]FM_GetShiftState done [08:27:53]opened in 1729642525 [08:27:53]opened+sec_in_day 1729728925 [08:27:53]quantity*price = 150076 [08:27:53]sum+1 = 150078 [08:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 58 23.10.2024 08:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188600 ФПД: 144370390277494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082756&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188600&fm=144370390277494&tin=02508201610067®Number=0000000000100030&sum=150000 [08:27:54]StoreToDocumentArchive [08:27:54]shift 462 fd 188600 [08:27:54]save to /storage/0462/doc_00188600 [08:27:54]save last doc name /storage/0462/doc_00188600 to /storage/kkm_last_doc_name [08:27:54]save OK [08:27:54]Clear old archive folders... [08:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:27:54]tlvbuf is 009674C0 [08:27:54]SAM_PROTO_ClearQueue [08:27:54]wFMCommunicate request_size=4 [08:27:54]MH_SAM_APDU [08:27:54]CAPDU: 80 09 00 00 [08:27:54]Write to MH i2c: E2 08 00 4D 1D 80 09 00 00 00 00 00 00 DC [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:54]Read from MH i2c: E2 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: E2 03 00 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: E2 03 00 4D 1D 00 90 00 DE [08:27:54]RAPDU: 90 00 [08:27:54]wFMCommunicate OK [08:27:54]SAM_PROTO_ClearQueue done [08:27:54]KKMCreateOFDPacket [08:27:54]OFDProtocolAddRootSTLVToBuf [08:27:54]FM_MakeSignedData [08:27:54]FM_MakeSignedData [08:27:54]SAM_PROTO_SignData [08:27:54]wFMCommunicate request_size=4 [08:27:54]MH_SAM_APDU [08:27:54]CAPDU: 80 0D 01 02 [08:27:54]Write to MH i2c: E2 08 00 4E 1D 80 0D 01 02 00 00 00 00 E4 [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:54]Read from MH i2c: E2 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: E2 03 00 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: E2 03 00 4E 1D 00 90 00 DF [08:27:54]RAPDU: 90 00 [08:27:54]wFMCommunicate OK [08:27:54]wFMCommunicate request_size=255 [08:27:54]MH_SAM_APDU [08:27:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8C B3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E0 02 [08:27:54]Write to MH i2c: E2 02 01 4F 1D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8C B3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E0 02 00 00 F4 [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:54]Read from MH i2c: E2 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: E2 03 00 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: E2 03 00 4F 1D 00 90 00 E0 [08:27:54]RAPDU: 90 00 [08:27:54]wFMCommunicate OK [08:27:54]wFMCommunicate request_size=16 [08:27:54]MH_SAM_APDU [08:27:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 83 4D D9 D4 1D 76 [08:27:54]Write to MH i2c: E2 13 00 50 1D 80 0D 02 02 0B 00 00 35 04 06 00 83 4D D9 D4 1D 76 00 00 4C [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:55]Read from MH i2c: E2 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 03 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 03 00 50 1D 00 90 00 E1 [08:27:55]RAPDU: 90 00 [08:27:55]wFMCommunicate OK [08:27:55]wFMCommunicate request_size=4 [08:27:55]MH_SAM_APDU [08:27:55]CAPDU: 80 0D 03 02 [08:27:55]Write to MH i2c: E2 08 00 51 1D 80 0D 03 02 00 00 00 00 E9 [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:55]Read from MH i2c: E2 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 0B 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 0B 00 51 1D 00 DF EA D4 CB 52 A8 18 A5 90 00 09 [08:27:55]RAPDU: DF EA D4 CB 52 A8 18 A5 90 00 [08:27:55]wFMCommunicate OK [08:27:55]SAM_PROTO_SignData done [08:27:55]FM_MakeSignedData done [08:27:55]CreateOFDProtocolMessage [08:27:55]wFMCommunicate request_size=4 [08:27:55]MH_SAM_APDU [08:27:55]CAPDU: 80 11 00 00 [08:27:55]Write to MH i2c: E2 08 00 52 1D 80 11 00 00 00 00 00 00 E9 [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:55]Read from MH i2c: E2 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 17 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: E2 17 00 52 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [08:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:27:55]wFMCommunicate OK [08:27:55]CreateOFDProtocolMessage done [08:27:55]OFDSenderStorePacket 188600 [08:27:55]StoreOFDPacket docnum=188600 [08:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 19 2A 0D 01 0C 49 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8C B3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E0 02 00 35 04 06 00 83 4D D9 D4 1D 76 DF EA D4 CB 52 A8 18 A5 [08:27:55]CheckFolder [08:27:55]dirname=/storage/ofd_packets [08:27:55]CheckFolder done [08:27:55]ProducePacketName [08:27:55]name=ofd_packets/00188600 [08:27:55]NVStorageSaveData ofd_packets/00188600 [08:27:55]File name is /storage/ofd_packets/00188600 [08:27:55]Write 307 bytes [08:27:55]NVStorageSaveData done [08:27:55]OFDSenderStorePacket done [08:27:55]KKMCreateOFDPacket done [08:27:55]NVStorageSaveData kkm_last_timestamp [08:27:55]File name is /storage/kkm_last_timestamp [08:27:55]Write 4 bytes [08:27:55]NVStorageSaveData done [08:27:55]ExternCall_PrintAddStr [08:27:55]wPrintStart [08:27:55]Write to MH i2c: 01 00 00 53 1D 70 [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: 01 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: 01 07 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: 01 07 00 53 1D 00 00 00 00 00 FF 0F 85 [08:27:55]RasterBufferAndPrint [08:27:55]line Счет N : (1)210659 [08:27:55]line ИНН: 02508201610067 [08:27:55]line Контрольно-Кассовый Чек [08:27:55]line ПРОДАЖА [08:27:55]line ТРК (МРК, ГНК) : 41 [08:27:55]line Товар: 2710194210 [08:27:55]line D-ENERGY ДТ-К-5 [08:27:55]line 19.440 * 77.20 [08:27:55]line = 1500.77 [08:27:55]line НДС 12% НСП 1% [08:27:55]line > о реализуемом товаре [08:27:55]line ОКРУГЛЕНИЕ: -0.77 [08:27:55]line ИТОГО: 1500.00 [08:27:55]line Внесено: 1500.00 [08:27:55]line СДАЧА: 0.00 [08:27:55]line НСП 1% : 13.28 [08:27:55]line НДС 12% : 159.37 [08:27:55]line Наличными: 1500.00 [08:27:55]line Безнал.: 0.00 [08:27:55]line Место: АЗС № 86 "Партнер Нефть" [08:27:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:27:55]line СНО: Общий режим [08:27:55]line Чек 58 23.10.2024 08:27 [08:27:55]line Смена: 462 ФФД: 1.0 [08:27:55]line ЗНМ: 0300000155 [08:27:55]line РНМ: 0000000000100030 [08:27:55]line Версия ККМ: 001 [08:27:55]line ФМ: 0000000000965340 [08:27:55]line ФД: 188600 [08:27:55]line ФПД: 144370390277494 [08:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082756&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188600&fm=144370390277494&tin=02508201610067®Number=0000000000100030&sum=150000 [08:27:55]written 0, free lines is 4095 [08:27:55]OFD Sender: Processing packet 188600 [packets to send 1062, broken 1061] [08:27:55]ProducePacketName [08:27:55]name=ofd_packets/00188600 [08:27:55]OFD Sender: To server: pG, [08:27:55]CommunicateWithHost lk.salyk.kg:30040 [08:27:55]ConnectInit lk.salyk.kg [08:27:55]Connected sock=10 [08:27:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 19 2A 0D 01 0C 49 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8C B3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E0 02 00 35 04 06 00 83 4D D9 D4 1D 76 DF EA D4 CB 52 A8 18 A5 [08:27:55]Write to MH i2c: 01 00 00 7E 1D 9B [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: 01 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: 01 07 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: 01 07 00 7E 1D 00 00 00 00 00 5B 0C 09 [08:27:55]RasterBufferAndPrint [08:27:55]line [08:27:55]line [08:27:55]line [08:27:55]line [08:27:55]line [08:27:55]written 0, free lines is 3167 [08:27:55]MH_Cut [08:27:55]Write to MH i2c: D1 01 00 85 1D 01 74 [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: D1 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: D1 01 00 [08:27:55]MH_I2C_Read... [08:27:55]Read from MH i2c: D1 01 00 85 1D 00 73 [08:27:55]Write to MH i2c: 01 00 00 86 1D A3 [08:27:55]Write i2c OK [08:27:55]MH_I2C_Read... [08:27:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 62 D7 47 00 1D 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E0 02 00 F4 03 04 00 77 5D 18 67 B6 04 01 00 00 A8 80 5F 7F 23 1F 27 72 [08:27:55]CommunicateWithHost err = 0 [08:27:55]CheckOFDResponse [08:27:55]1017 (14) - 77093643461234 [08:27:55]1041 (16) - 0000000000965340 [08:27:55]1040 (4) - 188600 [08:27:55]1012 (4) - 23.10.2024 02:20 [08:27:55]1206 (1) - 0 [08:27:55]OFD Sender: Remove packet 188600 [08:27:55]ProducePacketName [08:27:55]name=ofd_packets/00188600 [08:27:55]NVStorageDeleteData [08:27:56]OFD Sender: No OFD packet to send [08:27:56]*** Cut start [08:27:56]*** Partial cut [08:27:56]*** CUTSNS_PIN = 1 [08:27:56]*** CUTSNS_PIN = 0 [08:27:57]*** Brake cut motor [08:27:57]Read from MH i2c: 01 [08:27:57]MH_I2C_Read... [08:27:57]*** Stop cut motor [08:27:57]*** Cut end [08:27:57]Read from MH i2c: 01 07 00 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: 01 07 00 86 1D 00 00 00 00 00 FF 0F B8 [08:27:57]process_action close_receipt done [08:27:57]requested_data is exist [08:27:57]produce_requested_data [08:27:57]requested_item fm.sn is exist - process it [08:27:57]wFMCommunicate request_size=4 [08:27:57]MH_SAM_APDU [08:27:57]CAPDU: 80 11 00 00 [08:27:57]Write to MH i2c: E2 08 00 87 1D 80 11 00 00 00 00 00 00 1E [08:27:57]Write i2c OK [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:57] [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 17 00 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 17 00 87 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [08:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:27:57]wFMCommunicate OK [08:27:57]requested_item fd.num is exist - process it [08:27:57]SAM_PROTO_GetFieldsCounters [08:27:57]wFMCommunicate request_size=4 [08:27:57]MH_SAM_APDU [08:27:57]CAPDU: 80 13 00 00 [08:27:57]Write to MH i2c: E2 08 00 88 1D 80 13 00 00 00 00 00 00 21 [08:27:57]Write i2c OK [08:27:57]MH_I2C_Read... [08:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:57]Read from MH i2c: E2 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 62 00 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 62 00 88 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [08:27:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:57]wFMCommunicate OK [08:27:57]SAM_PROTO_GetFieldsCounters done [08:27:57]requested_item shift.num is exist - process it [08:27:57]requested_item shift.opened is exist - process it [08:27:57]req_shift_opened [08:27:57]FM_GetShiftState [08:27:57]SAM_PROTO_GetShiftState [08:27:57]wFMCommunicate request_size=4 [08:27:57]MH_SAM_APDU [08:27:57]CAPDU: 80 13 01 00 [08:27:57]Write to MH i2c: E2 08 00 89 1D 80 13 01 00 00 00 00 00 23 [08:27:57]Write i2c OK [08:27:57]MH_I2C_Read... [08:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:57]Read from MH i2c: E2 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 0E 00 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 0E 00 89 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0B [08:27:57]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:27:57]wFMCommunicate OK [08:27:57]SAM_PROTO_GetShiftState done [08:27:57]FM_GetShiftState done [08:27:57]req_shift_opened done [08:27:57]requested_item shift.open_date is exist - process it [08:27:57]req_shift_open_date [08:27:57]req_shift_open_date done [08:27:57]produce_requested_data done [08:27:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188600,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:27:57]process_action_free close_receipt [08:27:57]json_value_free [08:27:57]json_value_free done [08:27:57]process_json_proto returns [08:27:57]Send response to host [08:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188600,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:27:57]free response buf [08:27:57]execute_script done [08:27:57]execute_script returns [08:27:57]free content buf [08:27:57]Sock 7.Close socket [08:27:57]Sock 7.Thread stoped [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:47]accept exits with 9 [08:28:47]New connection [08:28:47]New thread 3066506596 created [08:28:47]Thread 3066649956 joined [08:28:47]Waiting for new connection... [08:28:47] Sock 9.Parse request [08:28:47]Sock 9.Check first char [08:28:47]Sock 9.First char is OK [08:28:47]request: POST /json_proto HTTP/1.0 [08:28:47]Method: POST [08:28:47]URL: /json_proto [08:28:47]Method is POST - this is cgi request [08:28:47]url: /json_proto [08:28:47]query_string will be loaded in cgi processing [08:28:47]execute_cgi json_proto POST (null) [08:28:47]execute_cgi path=json_proto method=POST [08:28:47]POST find Content-Length [08:28:47]Host: 172.17.42.131:8080 [08:28:47]Content-Length: 769 [08:28:47]Content-Type: application/json [08:28:47] [08:28:47]POST finish read [08:28:47]Found Content-Length = 769 [08:28:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:47]execute_script... [08:28:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:47]POST & json_proto [08:28:47]process_json_proto [08:28:47]json parsed OK: [08:28:47]protocol is kg_v1.0 [08:28:47]action value=close_receipt [08:28:47]process_action close_receipt [08:28:47]cmd_close_receipt [08:28:47]MH_GetDate [08:28:47]Write to MH i2c: F0 00 00 8A 1D 96 [08:28:47]Write i2c OK [08:28:47]MH_I2C_Read... [08:28:47]Read from MH i2c: F0 [08:28:47]MH_I2C_Read... [08:28:47]Read from MH i2c: F0 09 00 [08:28:47]MH_I2C_Read... [08:28:47]Read from MH i2c: F0 09 00 8A 1D 00 C2 B3 18 67 A0 18 CA 66 7B [08:28:47]GetLastDocTimeStamp 1729672076 [08:28:47]current date 1729672130 [08:28:47]FM_GetShiftState [08:28:47]SAM_PROTO_GetShiftState [08:28:47]wFMCommunicate request_size=4 [08:28:47]MH_SAM_APDU [08:28:47]CAPDU: 80 13 01 00 [08:28:47]Write to MH i2c: E2 08 00 8B 1D 80 13 01 00 00 00 00 00 25 [08:28:47]Write i2c OK [08:28:47]MH_I2C_Read... [08:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:47]Read from MH i2c: E2 [08:28:47]MH_I2C_Read... [08:28:47]Read from MH i2c: E2 0E 00 [08:28:47]MH_I2C_Read... [08:28:47]Read from MH i2c: E2 0E 00 8B 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0D [08:28:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:28:47]wFMCommunicate OK [08:28:47]SAM_PROTO_GetShiftState done [08:28:47]FM_GetShiftState done [08:28:47]opened in 1729642525 [08:28:47]opened+sec_in_day 1729728925 [08:28:47]quantity*price = 100021 [08:28:47]sum+1 = 100023 [08:28:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 59 23.10.2024 08:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188601 ФПД: 43333692313469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188601&fm=43333692313469&tin=02508201610067®Number=0000000000100030&sum=100022 [08:28:48]StoreToDocumentArchive [08:28:48]shift 462 fd 188601 [08:28:48]save to /storage/0462/doc_00188601 [08:28:48]save last doc name /storage/0462/doc_00188601 to /storage/kkm_last_doc_name [08:28:48]save OK [08:28:48]Clear old archive folders... [08:28:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:48]tlvbuf is 00904C90 [08:28:48]SAM_PROTO_ClearQueue [08:28:48]wFMCommunicate request_size=4 [08:28:48]MH_SAM_APDU [08:28:48]CAPDU: 80 09 00 00 [08:28:48]Write to MH i2c: E2 08 00 98 1D 80 09 00 00 00 00 00 00 27 [08:28:48]Write i2c OK [08:28:48]MH_I2C_Read... [08:28:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:48]Read from MH i2c: E2 [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: E2 03 00 [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: E2 03 00 98 1D 00 90 00 29 [08:28:48]RAPDU: 90 00 [08:28:48]wFMCommunicate OK [08:28:48]SAM_PROTO_ClearQueue done [08:28:48]KKMCreateOFDPacket [08:28:48]OFDProtocolAddRootSTLVToBuf [08:28:48]FM_MakeSignedData [08:28:48]FM_MakeSignedData [08:28:48]SAM_PROTO_SignData [08:28:48]wFMCommunicate request_size=4 [08:28:48]MH_SAM_APDU [08:28:48]CAPDU: 80 0D 01 02 [08:28:48]Write to MH i2c: E2 08 00 99 1D 80 0D 01 02 00 00 00 00 2F [08:28:48]Write i2c OK [08:28:48]MH_I2C_Read... [08:28:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:48]Read from MH i2c: E2 [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: E2 03 00 [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: E2 03 00 99 1D 00 90 00 2A [08:28:48]RAPDU: 90 00 [08:28:48]wFMCommunicate OK [08:28:48]wFMCommunicate request_size=255 [08:28:48]MH_SAM_APDU [08:28:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C2 B3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E0 02 00 35 04 06 00 27 [08:28:48]Write to MH i2c: E2 02 01 9A 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C2 B3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E0 02 00 35 04 06 00 27 00 00 AB [08:28:48]Write i2c OK [08:28:48]MH_I2C_Read... [08:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:49]Read from MH i2c: E2 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 03 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 03 00 9A 1D 00 90 00 2B [08:28:49]RAPDU: 90 00 [08:28:49]wFMCommunicate OK [08:28:49]wFMCommunicate request_size=10 [08:28:49]MH_SAM_APDU [08:28:49]CAPDU: 80 0D 02 02 05 69 69 56 4F 7D [08:28:49]Write to MH i2c: E2 0D 00 9B 1D 80 0D 02 02 05 00 69 69 56 4F 7D 00 00 30 [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:49]Read from MH i2c: E2 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 03 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 03 00 9B 1D 00 90 00 2C [08:28:49]RAPDU: 90 00 [08:28:49]wFMCommunicate OK [08:28:49]wFMCommunicate request_size=4 [08:28:49]MH_SAM_APDU [08:28:49]CAPDU: 80 0D 03 02 [08:28:49]Write to MH i2c: E2 08 00 9C 1D 80 0D 03 02 00 00 00 00 34 [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:49]Read from MH i2c: E2 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 0B 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 0B 00 9C 1D 00 92 90 DC C8 94 5F 22 6A 90 00 7A [08:28:49]RAPDU: 92 90 DC C8 94 5F 22 6A 90 00 [08:28:49]wFMCommunicate OK [08:28:49]SAM_PROTO_SignData done [08:28:49]FM_MakeSignedData done [08:28:49]CreateOFDProtocolMessage [08:28:49]wFMCommunicate request_size=4 [08:28:49]MH_SAM_APDU [08:28:49]CAPDU: 80 11 00 00 [08:28:49]Write to MH i2c: E2 08 00 9D 1D 80 11 00 00 00 00 00 00 34 [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:49]Read from MH i2c: E2 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 17 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 17 00 9D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [08:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:28:49]wFMCommunicate OK [08:28:49]CreateOFDProtocolMessage done [08:28:49]OFDSenderStorePacket 188601 [08:28:49]StoreOFDPacket docnum=188601 [08:28:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 76 07 01 7F 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C2 B3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E0 02 00 35 04 06 00 27 69 69 56 4F 7D 92 90 DC C8 94 5F 22 6A [08:28:49]CheckFolder [08:28:49]dirname=/storage/ofd_packets [08:28:49]CheckFolder done [08:28:49]ProducePacketName [08:28:49]name=ofd_packets/00188601 [08:28:49]NVStorageSaveData ofd_packets/00188601 [08:28:49]File name is /storage/ofd_packets/00188601 [08:28:49]Write 301 bytes [08:28:49]NVStorageSaveData done [08:28:49]OFDSenderStorePacket done [08:28:49]KKMCreateOFDPacket done [08:28:49]NVStorageSaveData kkm_last_timestamp [08:28:49]File name is /storage/kkm_last_timestamp [08:28:49]Write 4 bytes [08:28:49]NVStorageSaveData done [08:28:49]ExternCall_PrintAddStr [08:28:49]wPrintStart [08:28:49]Write to MH i2c: 01 00 00 9E 1D BB [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: 01 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: 01 07 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: 01 07 00 9E 1D 00 00 00 00 00 FF 0F D0 [08:28:49]RasterBufferAndPrint [08:28:49]line Счет N : (1)210660 [08:28:49]line ИНН: 02508201610067 [08:28:49]line Контрольно-Кассовый Чек [08:28:49]line ПРОДАЖА [08:28:49]line ТРК (МРК, ГНК) : 33 [08:28:49]line Товар: 2710124500 [08:28:49]line Аи-95-К-3 [08:28:49]line 13.480 * 74.20 [08:28:49]line = 1000.22 [08:28:49]line НДС 12% НСП 1% [08:28:49]line > о реализуемом товаре [08:28:49]line ИТОГО: 1000.22 [08:28:49]line НСП 1% : 8.85 [08:28:49]line НДС 12% : 106.22 [08:28:49]line Наличными: 0.00 [08:28:49]line Безнал.: 1000.22 [08:28:49]line Место: АЗС № 86 "Партнер Нефть" [08:28:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:28:49]line СНО: Общий режим [08:28:49]line Чек 59 23.10.2024 08:28 [08:28:49]line Смена: 462 ФФД: 1.0 [08:28:49]line ЗНМ: 0300000155 [08:28:49]line РНМ: 0000000000100030 [08:28:49]line Версия ККМ: 001 [08:28:49]line Платежная система: Mbank [08:28:49]line ФМ: 0000000000965340 [08:28:49]line ФД: 188601 [08:28:49]line ФПД: 43333692313469 [08:28:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188601&fm=43333692313469&tin=02508201610067®Number=0000000000100030&sum=100022 [08:28:49]OFD Sender: Processing packet 188601 [packets to send 1062, broken 1061] [08:28:49]ProducePacketName [08:28:49]name=ofd_packets/00188601 [08:28:49]OFD Sender: To server: pG, [08:28:49]CommunicateWithHost lk.salyk.kg:30040 [08:28:49]ConnectInit lk.salyk.kg [08:28:49]written 0, free lines is 4095 [08:28:49]Connected sock=10 [08:28:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 76 07 01 7F 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C2 B3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E0 02 00 35 04 06 00 27 69 69 56 4F 7D 92 90 DC C8 94 5F 22 6A [08:28:50]Write to MH i2c: 01 00 00 C7 1D E4 [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 07 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 07 00 C7 1D 00 00 00 00 00 87 0C 7E [08:28:50]RasterBufferAndPrint [08:28:50]line [08:28:50]line [08:28:50]line [08:28:50]line [08:28:50]line [08:28:50]written 0, free lines is 3211 [08:28:50]MH_Cut [08:28:50]Write to MH i2c: D1 01 00 CE 1D 01 BD [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: D1 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: D1 01 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: D1 01 00 CE 1D 00 BC [08:28:50]Write to MH i2c: 01 00 00 CF 1D EC [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E8 43 47 00 85 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 36 35 33 34 30 10 04 04 00 B9 E0 02 00 F4 03 04 00 AD 5D 18 67 B6 04 01 00 00 7F 7A AC AD 58 8A D2 89 [08:28:50]CommunicateWithHost err = 0 [08:28:50]CheckOFDResponse [08:28:50]1017 (14) - 77093643461234 [08:28:50]1041 (16) - 0000000000965340 [08:28:50]1040 (4) - 188601 [08:28:50]1012 (4) - 23.10.2024 02:21 [08:28:50]1206 (1) - 0 [08:28:50]OFD Sender: Remove packet 188601 [08:28:50]ProducePacketName [08:28:50]name=ofd_packets/00188601 [08:28:50]NVStorageDeleteData [08:28:50]OFD Sender: No OFD packet to send [08:28:51]*** Cut start [08:28:51]*** Partial cut [08:28:51]*** CUTSNS_PIN = 1 [08:28:51]*** CUTSNS_PIN = 0 [08:28:51]*** Brake cut motor [08:28:51]Read from MH i2c: 01 [08:28:51]MH_I2C_Read... [08:28:51]*** Stop cut motor [08:28:51]*** Cut end [08:28:51]Read from MH i2c: 01 07 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 CF 1D 00 00 00 00 00 FF 0F 01 [08:28:51]process_action close_receipt done [08:28:51]requested_data is exist [08:28:51]produce_requested_data [08:28:51]requested_item fm.sn is exist - process it [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 11 00 00 [08:28:51]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 17 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [08:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:28:51]wFMCommunicate OK [08:28:51]requested_item fd.num is exist - process it [08:28:51]SAM_PROTO_GetFieldsCounters [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 13 00 00 [08:28:51]Write to MH i2c: E2 08 00 D1 1D 80 13 00 00 00 00 00 00 6A [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 62 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 62 00 D1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [08:28:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:52]wFMCommunicate OK [08:28:52]SAM_PROTO_GetFieldsCounters done [08:28:52]requested_item shift.num is exist - process it [08:28:52]requested_item shift.opened is exist - process it [08:28:52]req_shift_opened [08:28:52]FM_GetShiftState [08:28:52]SAM_PROTO_GetShiftState [08:28:52]wFMCommunicate request_size=4 [08:28:52]MH_SAM_APDU [08:28:52]CAPDU: 80 13 01 00 [08:28:52]Write to MH i2c: E2 08 00 D2 1D 80 13 01 00 00 00 00 00 6C [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 0E 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 0E 00 D2 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 54 [08:28:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:28:52]wFMCommunicate OK [08:28:52]SAM_PROTO_GetShiftState done [08:28:52]FM_GetShiftState done [08:28:52]req_shift_opened done [08:28:52]requested_item shift.open_date is exist - process it [08:28:52]req_shift_open_date [08:28:52]req_shift_open_date done [08:28:52]produce_requested_data done [08:28:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188601,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:28:52]process_action_free close_receipt [08:28:52]json_value_free [08:28:52]json_value_free done [08:28:52]process_json_proto returns [08:28:52]Send response to host [08:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188601,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:28:52]free response buf [08:28:52]execute_script done [08:28:52]execute_script returns [08:28:52]free content buf [08:28:52]Sock 9.Close socket [08:28:52]Sock 9.Thread stoped [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:32]accept exits with 7 [08:31:32]New connection [08:31:32]New thread 3066649956 created [08:31:32]Thread 3066506596 joined [08:31:32]Waiting for new connection... [08:31:32] Sock 7.Parse request [08:31:32]Sock 7.Check first char [08:31:32]Sock 7.First char is OK [08:31:32]request: POST /json_proto HTTP/1.0 [08:31:32]Method: POST [08:31:32]URL: /json_proto [08:31:32]Method is POST - this is cgi request [08:31:32]url: /json_proto [08:31:32]query_string will be loaded in cgi processing [08:31:32]execute_cgi json_proto POST (null) [08:31:32]execute_cgi path=json_proto method=POST [08:31:32]POST find Content-Length [08:31:32]Host: 172.17.42.131:8080 [08:31:32]Content-Length: 688 [08:31:32]Content-Type: application/json [08:31:32] [08:31:32]POST finish read [08:31:32]Found Content-Length = 688 [08:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:32]execute_script... [08:31:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:32]POST & json_proto [08:31:32]process_json_proto [08:31:32]json parsed OK: [08:31:32]protocol is kg_v1.0 [08:31:32]action value=close_receipt [08:31:32]process_action close_receipt [08:31:32]cmd_close_receipt [08:31:32]MH_GetDate [08:31:32]Write to MH i2c: F0 00 00 D3 1D DF [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 09 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 09 00 D3 1D 00 67 B4 18 67 A0 18 CA 66 6A [08:31:32]GetLastDocTimeStamp 1729672130 [08:31:32]current date 1729672295 [08:31:32]FM_GetShiftState [08:31:32]SAM_PROTO_GetShiftState [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 13 01 00 [08:31:32]Write to MH i2c: E2 08 00 D4 1D 80 13 01 00 00 00 00 00 6E [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0E 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0E 00 D4 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 56 [08:31:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:31:32]wFMCommunicate OK [08:31:32]SAM_PROTO_GetShiftState done [08:31:32]FM_GetShiftState done [08:31:32]opened in 1729642525 [08:31:32]opened+sec_in_day 1729728925 [08:31:32]quantity*price = 100051 [08:31:32]sum+1 = 100052 [08:31:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 60 23.10.2024 08:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188602 ФПД: 38947423112682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083135&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188602&fm=38947423112682&tin=02508201610067®Number=0000000000100030&sum=100000 [08:31:33]StoreToDocumentArchive [08:31:33]shift 462 fd 188602 [08:31:33]save to /storage/0462/doc_00188602 [08:31:33]save last doc name /storage/0462/doc_00188602 to /storage/kkm_last_doc_name [08:31:33]save OK [08:31:33]Clear old archive folders... [08:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:31:33]tlvbuf is 009841C0 [08:31:33]SAM_PROTO_ClearQueue [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 09 00 00 [08:31:33]Write to MH i2c: E2 08 00 E1 1D 80 09 00 00 00 00 00 00 70 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_ClearQueue done [08:31:33]KKMCreateOFDPacket [08:31:33]OFDProtocolAddRootSTLVToBuf [08:31:33]FM_MakeSignedData [08:31:33]FM_MakeSignedData [08:31:33]SAM_PROTO_SignData [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 01 02 [08:31:33]Write to MH i2c: E2 08 00 E2 1D 80 0D 01 02 00 00 00 00 78 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 E2 1D 00 90 00 73 [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=255 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 67 B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E0 02 [08:31:33]Write to MH i2c: E2 02 01 E3 1D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 67 B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E0 02 00 00 16 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 E3 1D 00 90 00 74 [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=16 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 23 6C 27 51 CD EA [08:31:33]Write to MH i2c: E2 13 00 E4 1D 80 0D 02 02 0B 00 00 35 04 06 00 23 6C 27 51 CD EA 00 00 8E [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 E4 1D 00 90 00 75 [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 03 02 [08:31:33]Write to MH i2c: E2 08 00 E5 1D 80 0D 03 02 00 00 00 00 7D [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 0B 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 0B 00 E5 1D 00 A8 70 E9 F1 D3 85 4C 34 90 00 48 [08:31:33]RAPDU: A8 70 E9 F1 D3 85 4C 34 90 00 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_SignData done [08:31:33]FM_MakeSignedData done [08:31:33]CreateOFDProtocolMessage [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 11 00 00 [08:31:33]Write to MH i2c: E2 08 00 E6 1D 80 11 00 00 00 00 00 00 7D [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 17 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 17 00 E6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [08:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:31:33]wFMCommunicate OK [08:31:33]CreateOFDProtocolMessage done [08:31:33]OFDSenderStorePacket 188602 [08:31:33]StoreOFDPacket docnum=188602 [08:31:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 25 5E 0D 01 8C 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 67 B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E0 02 00 35 04 06 00 23 6C 27 51 CD EA A8 70 E9 F1 D3 85 4C 34 [08:31:33]CheckFolder [08:31:33]dirname=/storage/ofd_packets [08:31:33]CheckFolder done [08:31:33]ProducePacketName [08:31:33]name=ofd_packets/00188602 [08:31:33]NVStorageSaveData ofd_packets/00188602 [08:31:33]File name is /storage/ofd_packets/00188602 [08:31:33]Write 307 bytes [08:31:33]NVStorageSaveData done [08:31:33]OFDSenderStorePacket done [08:31:33]KKMCreateOFDPacket done [08:31:33]NVStorageSaveData kkm_last_timestamp [08:31:33]File name is /storage/kkm_last_timestamp [08:31:33]Write 4 bytes [08:31:33]NVStorageSaveData done [08:31:33]ExternCall_PrintAddStr [08:31:33]wPrintStart [08:31:33]Write to MH i2c: 01 00 00 E7 1D 04 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 07 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 07 00 E7 1D 00 00 00 00 00 FF 0F 19 [08:31:33]RasterBufferAndPrint [08:31:33]line Счет N : (1)210662 [08:31:33]line ИНН: 02508201610067 [08:31:33]line Контрольно-Кассовый Чек [08:31:33]line ПРОДАЖА [08:31:33]line ТРК (МРК, ГНК) : 21 [08:31:33]line Товар: 2710194210 [08:31:33]line D-ENERGY ДТ-К-5 [08:31:33]line 12.960 * 77.20 [08:31:33]line = 1000.51 [08:31:33]line НДС 12% НСП 1% [08:31:33]line > о реализуемом товаре [08:31:33]line ОКРУГЛЕНИЕ: -0.51 [08:31:33]line ИТОГО: 1000.00 [08:31:33]line Внесено: 1000.00 [08:31:33]line СДАЧА: 0.00 [08:31:33]line НСП 1% : 8.85 [08:31:33]line НДС 12% : 106.25 [08:31:33]line Наличными: 1000.00 [08:31:33]line Безнал.: 0.00 [08:31:33]line Место: АЗС № 86 "Партнер Нефть" [08:31:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:31:33]line СНО: Общий режим [08:31:33]line Чек 60 23.10.2024 08:31 [08:31:33]line Смена: 462 ФФД: 1.0 [08:31:33]line ЗНМ: 0300000155 [08:31:33]line РНМ: 0000000000100030 [08:31:33]line Версия ККМ: 001 [08:31:33]line ФМ: 0000000000965340 [08:31:33]line ФД: 188602 [08:31:33]line ФПД: 38947423112682 [08:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083135&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188602&fm=38947423112682&tin=02508201610067®Number=0000000000100030&sum=100000 [08:31:34]OFD Sender: Processing packet 188602 [packets to send 1062, broken 1061] [08:31:34]ProducePacketName [08:31:34]name=ofd_packets/00188602 [08:31:34]OFD Sender: To server: pG, [08:31:34]CommunicateWithHost lk.salyk.kg:30040 [08:31:34]ConnectInit lk.salyk.kg [08:31:34]written 0, free lines is 4095 [08:31:34]Connected sock=10 [08:31:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 25 5E 0D 01 8C 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 67 B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E0 02 00 35 04 06 00 23 6C 27 51 CD EA A8 70 E9 F1 D3 85 4C 34 [08:31:34]Write to MH i2c: 01 00 00 12 1E 30 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 12 1E 00 00 00 00 00 5E 0C A1 [08:31:34]RasterBufferAndPrint [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]written 0, free lines is 3168 [08:31:34]MH_Cut [08:31:34]Write to MH i2c: D1 01 00 19 1E 01 09 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 01 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 01 00 19 1E 00 08 [08:31:34]Write to MH i2c: 01 00 00 1A 1E 38 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 86 B7 47 00 FD B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E0 02 00 F4 03 04 00 52 5E 18 67 B6 04 01 00 00 8B 59 3D C0 7F CA A2 5D [08:31:34]CommunicateWithHost err = 0 [08:31:34]CheckOFDResponse [08:31:34]1017 (14) - 77093643461234 [08:31:34]1041 (16) - 0000000000965340 [08:31:34]1040 (4) - 188602 [08:31:34]1012 (4) - 23.10.2024 02:24 [08:31:34]1206 (1) - 0 [08:31:34]OFD Sender: Remove packet 188602 [08:31:34]ProducePacketName [08:31:34]name=ofd_packets/00188602 [08:31:34]NVStorageDeleteData [08:31:35]OFD Sender: No OFD packet to send [08:31:35]*** Cut start [08:31:35]*** Partial cut [08:31:35]*** CUTSNS_PIN = 1 [08:31:35]*** CUTSNS_PIN = 0 [08:31:36]*** Brake cut motor [08:31:36]Read from MH i2c: 01 [08:31:36]MH_I2C_Read... [08:31:36]*** Stop cut motor [08:31:36]*** Cut end [08:31:36]Read from MH i2c: 01 07 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 FF 0F 4D [08:31:36]process_action close_receipt done [08:31:36]requested_data is exist [08:31:36]produce_requested_data [08:31:36]requested_item fm.sn is exist - process it [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 11 00 00 [08:31:36]Write to MH i2c: E2 08 00 1B 1E 80 11 00 00 00 00 00 00 B3 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 17 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 17 00 1B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [08:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:31:36]wFMCommunicate OK [08:31:36]requested_item fd.num is exist - process it [08:31:36]SAM_PROTO_GetFieldsCounters [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 13 00 00 [08:31:36]Write to MH i2c: E2 08 00 1C 1E 80 13 00 00 00 00 00 00 B6 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 62 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 62 00 1C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [08:31:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:36]wFMCommunicate OK [08:31:36]SAM_PROTO_GetFieldsCounters done [08:31:36]requested_item shift.num is exist - process it [08:31:36]requested_item shift.opened is exist - process it [08:31:36]req_shift_opened [08:31:36]FM_GetShiftState [08:31:36]SAM_PROTO_GetShiftState [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 13 01 00 [08:31:36]Write to MH i2c: E2 08 00 1D 1E 80 13 01 00 00 00 00 00 B8 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 0E 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 0E 00 1D 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A0 [08:31:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:31:36]wFMCommunicate OK [08:31:36]SAM_PROTO_GetShiftState done [08:31:36]FM_GetShiftState done [08:31:36]req_shift_opened done [08:31:36]requested_item shift.open_date is exist - process it [08:31:36]req_shift_open_date [08:31:36]req_shift_open_date done [08:31:36]produce_requested_data done [08:31:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188602,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:31:36]process_action_free close_receipt [08:31:36]json_value_free [08:31:36]json_value_free done [08:31:36]process_json_proto returns [08:31:36]Send response to host [08:31:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188602,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:31:36]free response buf [08:31:36]execute_script done [08:31:36]execute_script returns [08:31:36]free content buf [08:31:36]Sock 7.Close socket [08:31:36]Sock 7.Thread stoped [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:46]accept exits with 9 [08:31:46]New connection [08:31:46]New thread 3066506596 created [08:31:46]Thread 3066649956 joined [08:31:46]Waiting for new connection... [08:31:46] Sock 9.Parse request [08:31:46]Sock 9.Check first char [08:31:46]Sock 9.First char is OK [08:31:46]request: POST /json_proto HTTP/1.0 [08:31:46]Method: POST [08:31:46]URL: /json_proto [08:31:46]Method is POST - this is cgi request [08:31:46]url: /json_proto [08:31:46]query_string will be loaded in cgi processing [08:31:46]execute_cgi json_proto POST (null) [08:31:46]execute_cgi path=json_proto method=POST [08:31:46]POST find Content-Length [08:31:46]Host: 172.17.42.131:8080 [08:31:46]Content-Length: 825 [08:31:46]Content-Type: application/json [08:31:46] [08:31:46]POST finish read [08:31:46]Found Content-Length = 825 [08:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:46]execute_script... [08:31:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:46]POST & json_proto [08:31:46]process_json_proto [08:31:46]json parsed OK: [08:31:46]protocol is kg_v1.0 [08:31:46]action value=close_receipt [08:31:46]process_action close_receipt [08:31:46]cmd_close_receipt [08:31:46]MH_GetDate [08:31:46]Write to MH i2c: F0 00 00 1E 1E 2B [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: F0 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: F0 09 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: F0 09 00 1E 1E 00 75 B4 18 67 A0 18 CA 66 C4 [08:31:46]GetLastDocTimeStamp 1729672295 [08:31:46]current date 1729672309 [08:31:46]FM_GetShiftState [08:31:46]SAM_PROTO_GetShiftState [08:31:46]wFMCommunicate request_size=4 [08:31:46]MH_SAM_APDU [08:31:46]CAPDU: 80 13 01 00 [08:31:46]Write to MH i2c: E2 08 00 1F 1E 80 13 01 00 00 00 00 00 BA [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 0E 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 0E 00 1F 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A2 [08:31:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:31:46]wFMCommunicate OK [08:31:46]SAM_PROTO_GetShiftState done [08:31:46]FM_GetShiftState done [08:31:46]opened in 1729642525 [08:31:46]opened+sec_in_day 1729728925 [08:31:46]quantity*price = 200025 [08:31:46]sum+1 = 200026 [08:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 61 23.10.2024 08:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188603 ФПД: 159033204837949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188603&fm=159033204837949&tin=02508201610067®Number=0000000000100030&sum=200025 [08:31:48]StoreToDocumentArchive [08:31:48]shift 462 fd 188603 [08:31:48]save to /storage/0462/doc_00188603 [08:31:48]save last doc name /storage/0462/doc_00188603 to /storage/kkm_last_doc_name [08:31:48]save OK [08:31:48]Clear old archive folders... [08:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:31:48]tlvbuf is B6E5E7A0 [08:31:48]SAM_PROTO_ClearQueue [08:31:48]wFMCommunicate request_size=4 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 09 00 00 [08:31:48]Write to MH i2c: E2 08 00 2C 1E 80 09 00 00 00 00 00 00 BC [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 03 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 03 00 2C 1E 00 90 00 BE [08:31:48]RAPDU: 90 00 [08:31:48]wFMCommunicate OK [08:31:48]SAM_PROTO_ClearQueue done [08:31:48]KKMCreateOFDPacket [08:31:48]OFDProtocolAddRootSTLVToBuf [08:31:48]FM_MakeSignedData [08:31:48]FM_MakeSignedData [08:31:48]SAM_PROTO_SignData [08:31:48]wFMCommunicate request_size=4 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 0D 01 02 [08:31:48]Write to MH i2c: E2 08 00 2D 1E 80 0D 01 02 00 00 00 00 C4 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 03 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 03 00 2D 1E 00 90 00 BF [08:31:48]RAPDU: 90 00 [08:31:48]wFMCommunicate OK [08:31:48]wFMCommunicate request_size=255 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 76 B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E0 02 [08:31:48]Write to MH i2c: E2 02 01 2E 1E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 76 B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E0 02 00 00 E9 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 03 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 03 00 2E 1E 00 90 00 C0 [08:31:48]RAPDU: 90 00 [08:31:48]wFMCommunicate OK [08:31:48]wFMCommunicate request_size=16 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 90 A3 CD AE 8E 3D [08:31:48]Write to MH i2c: E2 13 00 2F 1E 80 0D 02 02 0B 00 00 35 04 06 00 90 A3 CD AE 8E 3D 00 00 95 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 03 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [08:31:48]RAPDU: 90 00 [08:31:48]wFMCommunicate OK [08:31:48]wFMCommunicate request_size=4 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 0D 03 02 [08:31:48]Write to MH i2c: E2 08 00 30 1E 80 0D 03 02 00 00 00 00 C9 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 0B 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 0B 00 30 1E 00 92 5C 5A 4B 97 83 A5 41 90 00 5D [08:31:48]RAPDU: 92 5C 5A 4B 97 83 A5 41 90 00 [08:31:48]wFMCommunicate OK [08:31:48]SAM_PROTO_SignData done [08:31:48]FM_MakeSignedData done [08:31:48]CreateOFDProtocolMessage [08:31:48]wFMCommunicate request_size=4 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 11 00 00 [08:31:48]Write to MH i2c: E2 08 00 31 1E 80 11 00 00 00 00 00 00 C9 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 17 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 17 00 31 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [08:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:31:48]wFMCommunicate OK [08:31:48]CreateOFDProtocolMessage done [08:31:48]OFDSenderStorePacket 188603 [08:31:48]StoreOFDPacket docnum=188603 [08:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 28 CF 0D 01 DA E5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 76 B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E0 02 00 35 04 06 00 90 A3 CD AE 8E 3D 92 5C 5A 4B 97 83 A5 41 [08:31:48]CheckFolder [08:31:48]dirname=/storage/ofd_packets [08:31:48]CheckFolder done [08:31:48]ProducePacketName [08:31:48]name=ofd_packets/00188603 [08:31:48]NVStorageSaveData ofd_packets/00188603 [08:31:48]File name is /storage/ofd_packets/00188603 [08:31:48]Write 307 bytes [08:31:48]NVStorageSaveData done [08:31:48]OFDSenderStorePacket done [08:31:48]KKMCreateOFDPacket done [08:31:48]NVStorageSaveData kkm_last_timestamp [08:31:48]File name is /storage/kkm_last_timestamp [08:31:48]Write 4 bytes [08:31:48]NVStorageSaveData done [08:31:48]ExternCall_PrintAddStr [08:31:48]wPrintStart [08:31:48]Write to MH i2c: 01 00 00 32 1E 50 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: 01 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: 01 07 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: 01 07 00 32 1E 00 00 00 00 00 FF 0F 65 [08:31:48]RasterBufferAndPrint [08:31:48]line Счет N : (1)210661 [08:31:48]line ИНН: 02508201610067 [08:31:48]line Контрольно-Кассовый Чек [08:31:48]line ПРОДАЖА [08:31:48]line ТРК (МРК, ГНК) : 11 [08:31:48]line Товар: 2710194210 [08:31:48]line D-ENERGY ДТ-К-5 [08:31:48]line 25.910 * 77.20 [08:31:48]line = 2000.25 [08:31:48]line НДС 12% НСП 1% [08:31:48]line > о реализуемом товаре [08:31:48]line ИТОГО: 2000.25 [08:31:48]line НСП 1% : 17.70 [08:31:48]line НДС 12% : 212.42 [08:31:48]line Наличными: 0.00 [08:31:48]line Безнал.: 2000.25 [08:31:48]line Место: АЗС № 86 "Партнер Нефть" [08:31:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:31:48]line СНО: Общий режим [08:31:48]line Чек 61 23.10.2024 08:31 [08:31:48]line Смена: 462 ФФД: 1.0 [08:31:48]line ЗНМ: 0300000155 [08:31:48]line РНМ: 0000000000100030 [08:31:48]line Версия ККМ: 001 [08:31:48]line Платежная система: Бакай Банк [08:31:48]line ФМ: 0000000000965340 [08:31:48]line ФД: 188603 [08:31:48]line ФПД: 159033204837949 [08:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188603&fm=159033204837949&tin=02508201610067®Number=0000000000100030&sum=200025 [08:31:48]written 0, free lines is 4095 [08:31:48]OFD Sender: Processing packet 188603 [packets to send 1062, broken 1061] [08:31:48]ProducePacketName [08:31:48]name=ofd_packets/00188603 [08:31:48]OFD Sender: To server: pG, [08:31:48]CommunicateWithHost lk.salyk.kg:30040 [08:31:48]ConnectInit lk.salyk.kg [08:31:48]Connected sock=10 [08:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 28 CF 0D 01 DA E5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 76 B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E0 02 00 35 04 06 00 90 A3 CD AE 8E 3D 92 5C 5A 4B 97 83 A5 41 [08:31:49]Write to MH i2c: 01 00 00 5C 1E 7A [08:31:49]Write i2c OK [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: 01 [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: 01 07 00 [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: 01 07 00 5C 1E 00 00 00 00 00 6E 0C FB [08:31:49]RasterBufferAndPrint [08:31:49]line [08:31:49]line [08:31:49]line [08:31:49]line [08:31:49]line [08:31:49]written 0, free lines is 3185 [08:31:49]MH_Cut [08:31:49]Write to MH i2c: D1 01 00 63 1E 01 53 [08:31:49]Write i2c OK [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: D1 [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: D1 01 00 [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: D1 01 00 63 1E 00 52 [08:31:49]Write to MH i2c: 01 00 00 64 1E 82 [08:31:49]Write i2c OK [08:31:49]MH_I2C_Read... [08:31:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 00 47 00 F8 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E0 02 00 F4 03 04 00 61 5E 18 67 B6 04 01 00 00 18 0A 1D 78 F0 7A 39 F5 [08:31:49]CommunicateWithHost err = 0 [08:31:49]CheckOFDResponse [08:31:49]1017 (14) - 77093643461234 [08:31:49]1041 (16) - 0000000000965340 [08:31:49]1040 (4) - 188603 [08:31:49]1012 (4) - 23.10.2024 02:24 [08:31:49]1206 (1) - 0 [08:31:49]OFD Sender: Remove packet 188603 [08:31:49]ProducePacketName [08:31:49]name=ofd_packets/00188603 [08:31:49]NVStorageDeleteData [08:31:49]OFD Sender: No OFD packet to send [08:31:50]*** Cut start [08:31:50]*** Partial cut [08:31:50]*** CUTSNS_PIN = 1 [08:31:50]*** CUTSNS_PIN = 0 [08:31:50]*** Brake cut motor [08:31:50]Read from MH i2c: 01 [08:31:50]MH_I2C_Read... [08:31:50]*** Stop cut motor [08:31:50]*** Cut end [08:31:50]Read from MH i2c: 01 07 00 [08:31:50]MH_I2C_Read... [08:31:50]Read from MH i2c: 01 07 00 64 1E 00 00 00 00 00 FF 0F 97 [08:31:50]process_action close_receipt done [08:31:50]requested_data is exist [08:31:50]produce_requested_data [08:31:50]requested_item fm.sn is exist - process it [08:31:50]wFMCommunicate request_size=4 [08:31:50]MH_SAM_APDU [08:31:50]CAPDU: 80 11 00 00 [08:31:50]Write to MH i2c: E2 08 00 65 1E 80 11 00 00 00 00 00 00 FD [08:31:50]Write i2c OK [08:31:50]MH_I2C_Read... [08:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:51]Read from MH i2c: E2 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 17 00 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 17 00 65 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [08:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:31:51]wFMCommunicate OK [08:31:51]requested_item fd.num is exist - process it [08:31:51]SAM_PROTO_GetFieldsCounters [08:31:51]wFMCommunicate request_size=4 [08:31:51]MH_SAM_APDU [08:31:51]CAPDU: 80 13 00 00 [08:31:51]Write to MH i2c: E2 08 00 66 1E 80 13 00 00 00 00 00 00 00 [08:31:51]Write i2c OK [08:31:51]MH_I2C_Read... [08:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:51]Read from MH i2c: E2 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 62 00 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 62 00 66 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [08:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:51]wFMCommunicate OK [08:31:51]SAM_PROTO_GetFieldsCounters done [08:31:51]requested_item shift.num is exist - process it [08:31:51]requested_item shift.opened is exist - process it [08:31:51]req_shift_opened [08:31:51]FM_GetShiftState [08:31:51]SAM_PROTO_GetShiftState [08:31:51]wFMCommunicate request_size=4 [08:31:51]MH_SAM_APDU [08:31:51]CAPDU: 80 13 01 00 [08:31:51]Write to MH i2c: E2 08 00 67 1E 80 13 01 00 00 00 00 00 02 [08:31:51]Write i2c OK [08:31:51]MH_I2C_Read... [08:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:51]Read from MH i2c: E2 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 0E 00 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 0E 00 67 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EA [08:31:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:31:51]wFMCommunicate OK [08:31:51]SAM_PROTO_GetShiftState done [08:31:51]FM_GetShiftState done [08:31:51]req_shift_opened done [08:31:51]requested_item shift.open_date is exist - process it [08:31:51]req_shift_open_date [08:31:51]req_shift_open_date done [08:31:51]produce_requested_data done [08:31:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188603,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:31:51]process_action_free close_receipt [08:31:51]json_value_free [08:31:51]json_value_free done [08:31:51]process_json_proto returns [08:31:51]Send response to host [08:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188603,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:31:51]free response buf [08:31:51]execute_script done [08:31:51]execute_script returns [08:31:51]free content buf [08:31:51]Sock 9.Close socket [08:31:51]Sock 9.Thread stoped [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:33:59]accept exits with 7 [08:33:59]New connection [08:33:59]New thread 3066649956 created [08:33:59]Thread 3066506596 joined [08:33:59]Waiting for new connection... [08:33:59] Sock 7.Parse request [08:33:59]Sock 7.Check first char [08:33:59]Sock 7.First char is OK [08:33:59]request: POST /json_proto HTTP/1.0 [08:33:59]Method: POST [08:33:59]URL: /json_proto [08:33:59]Method is POST - this is cgi request [08:33:59]url: /json_proto [08:33:59]query_string will be loaded in cgi processing [08:33:59]execute_cgi json_proto POST (null) [08:33:59]execute_cgi path=json_proto method=POST [08:33:59]POST find Content-Length [08:33:59]Host: 172.17.42.131:8080 [08:33:59]Content-Length: 769 [08:33:59]Content-Type: application/json [08:33:59] [08:33:59]POST finish read [08:33:59]Found Content-Length = 769 [08:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 18.890, "sum" : 1401.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1401.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:59]execute_script... [08:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 18.890, "sum" : 1401.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1401.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:59]POST & json_proto [08:33:59]process_json_proto [08:33:59]json parsed OK: [08:33:59]protocol is kg_v1.0 [08:33:59]action value=close_receipt [08:33:59]process_action close_receipt [08:33:59]cmd_close_receipt [08:33:59]MH_GetDate [08:33:59]Write to MH i2c: F0 00 00 68 1E 75 [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: F0 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: F0 09 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: F0 09 00 68 1E 00 FA B4 18 67 A0 18 CA 66 93 [08:33:59]GetLastDocTimeStamp 1729672310 [08:33:59]current date 1729672442 [08:33:59]FM_GetShiftState [08:33:59]SAM_PROTO_GetShiftState [08:33:59]wFMCommunicate request_size=4 [08:33:59]MH_SAM_APDU [08:33:59]CAPDU: 80 13 01 00 [08:33:59]Write to MH i2c: E2 08 00 69 1E 80 13 01 00 00 00 00 00 04 [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:59]Read from MH i2c: E2 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 0E 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 0E 00 69 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EC [08:33:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:33:59]wFMCommunicate OK [08:33:59]SAM_PROTO_GetShiftState done [08:33:59]FM_GetShiftState done [08:33:59]opened in 1729642525 [08:33:59]opened+sec_in_day 1729728925 [08:33:59]quantity*price = 140163 [08:33:59]sum+1 = 140165 [08:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1401.64 НСП 1% : 12.40 НДС 12% : 148.85 Наличными: 0.00 Безнал.: 1401.64 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 62 23.10.2024 08:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188604 ФПД: 15668590227517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083402&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188604&fm=15668590227517&tin=02508201610067®Number=0000000000100030&sum=140164 [08:34:00]StoreToDocumentArchive [08:34:00]shift 462 fd 188604 [08:34:00]save to /storage/0462/doc_00188604 [08:34:00]save last doc name /storage/0462/doc_00188604 to /storage/kkm_last_doc_name [08:34:00]save OK [08:34:00]Clear old archive folders... [08:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:00]tlvbuf is 009674B0 [08:34:00]SAM_PROTO_ClearQueue [08:34:00]wFMCommunicate request_size=4 [08:34:00]MH_SAM_APDU [08:34:00]CAPDU: 80 09 00 00 [08:34:00]Write to MH i2c: E2 08 00 76 1E 80 09 00 00 00 00 00 00 06 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 76 1E 00 90 00 08 [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]SAM_PROTO_ClearQueue done [08:34:01]KKMCreateOFDPacket [08:34:01]OFDProtocolAddRootSTLVToBuf [08:34:01]FM_MakeSignedData [08:34:01]FM_MakeSignedData [08:34:01]SAM_PROTO_SignData [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 01 02 [08:34:01]Write to MH i2c: E2 08 00 77 1E 80 0D 01 02 00 00 00 00 0E [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 77 1E 00 90 00 09 [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=255 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CA 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FA B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E0 02 00 35 04 06 00 0E [08:34:01]Write to MH i2c: E2 02 01 78 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CA 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FA B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E0 02 00 35 04 06 00 0E 00 00 47 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 78 1E 00 90 00 0A [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=10 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 02 02 05 40 20 C1 30 3D [08:34:01]Write to MH i2c: E2 0D 00 79 1E 80 0D 02 02 05 00 40 20 C1 30 3D 00 00 A9 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 79 1E 00 90 00 0B [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 03 02 [08:34:01]Write to MH i2c: E2 08 00 7A 1E 80 0D 03 02 00 00 00 00 13 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 0B 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 0B 00 7A 1E 00 0F B6 D5 5E 60 21 B3 62 90 00 A2 [08:34:01]RAPDU: 0F B6 D5 5E 60 21 B3 62 90 00 [08:34:01]wFMCommunicate OK [08:34:01]SAM_PROTO_SignData done [08:34:01]FM_MakeSignedData done [08:34:01]CreateOFDProtocolMessage [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 11 00 00 [08:34:01]Write to MH i2c: E2 08 00 7B 1E 80 11 00 00 00 00 00 00 13 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 17 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 17 00 7B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [08:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:34:01]wFMCommunicate OK [08:34:01]CreateOFDProtocolMessage done [08:34:01]OFDSenderStorePacket 188604 [08:34:01]StoreOFDPacket docnum=188604 [08:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 A6 07 01 9F 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CA 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FA B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E0 02 00 35 04 06 00 0E 40 20 C1 30 3D 0F B6 D5 5E 60 21 B3 62 [08:34:01]CheckFolder [08:34:01]dirname=/storage/ofd_packets [08:34:01]CheckFolder done [08:34:01]ProducePacketName [08:34:01]name=ofd_packets/00188604 [08:34:01]NVStorageSaveData ofd_packets/00188604 [08:34:01]File name is /storage/ofd_packets/00188604 [08:34:01]Write 301 bytes [08:34:01]NVStorageSaveData done [08:34:01]OFDSenderStorePacket done [08:34:01]KKMCreateOFDPacket done [08:34:01]NVStorageSaveData kkm_last_timestamp [08:34:01]File name is /storage/kkm_last_timestamp [08:34:01]Write 4 bytes [08:34:01]NVStorageSaveData done [08:34:01]ExternCall_PrintAddStr [08:34:01]wPrintStart [08:34:01]Write to MH i2c: 01 00 00 7C 1E 9A [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 07 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 07 00 7C 1E 00 00 00 00 00 FF 0F AF [08:34:01]RasterBufferAndPrint [08:34:01]line Счет N : (1)210663 [08:34:01]line ИНН: 02508201610067 [08:34:01]line Контрольно-Кассовый Чек [08:34:01]line ПРОДАЖА [08:34:01]line ТРК (МРК, ГНК) : 43 [08:34:01]line Товар: 2710124500 [08:34:01]line Аи-95-К-3 [08:34:01]line 18.890 * 74.20 [08:34:01]line = 1401.64 [08:34:01]line НДС 12% НСП 1% [08:34:01]line > о реализуемом товаре [08:34:01]line ИТОГО: 1401.64 [08:34:01]line НСП 1% : 12.40 [08:34:01]line НДС 12% : 148.85 [08:34:01]line Наличными: 0.00 [08:34:01]line Безнал.: 1401.64 [08:34:01]line Место: АЗС № 86 "Партнер Нефть" [08:34:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:34:01]line СНО: Общий режим [08:34:01]line Чек 62 23.10.2024 08:34 [08:34:01]line Смена: 462 ФФД: 1.0 [08:34:01]line ЗНМ: 0300000155 [08:34:01]line РНМ: 0000000000100030 [08:34:01]line Версия ККМ: 001 [08:34:01]line Платежная система: Mbank [08:34:01]line ФМ: 0000000000965340 [08:34:01]line ФД: 188604 [08:34:01]line ФПД: 15668590227517 [08:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083402&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188604&fm=15668590227517&tin=02508201610067®Number=0000000000100030&sum=140164 [08:34:01]written 0, free lines is 4095 [08:34:01]OFD Sender: Processing packet 188604 [packets to send 1062, broken 1061] [08:34:01]ProducePacketName [08:34:01]name=ofd_packets/00188604 [08:34:01]OFD Sender: To server: pG, [08:34:01]CommunicateWithHost lk.salyk.kg:30040 [08:34:01]ConnectInit lk.salyk.kg [08:34:01]Connected sock=10 [08:34:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 A6 07 01 9F 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CA 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FA B4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E0 02 00 35 04 06 00 0E 40 20 C1 30 3D 0F B6 D5 5E 60 21 B3 62 [08:34:01]Write to MH i2c: 01 00 00 A5 1E C3 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 07 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 07 00 A5 1E 00 00 00 00 00 8C 0C 62 [08:34:01]RasterBufferAndPrint [08:34:01]line [08:34:01]line [08:34:01]line [08:34:01]line [08:34:01]line [08:34:01]written 0, free lines is 3216 [08:34:01]MH_Cut [08:34:01]Write to MH i2c: D1 01 00 AC 1E 01 9C [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: D1 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: D1 01 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: D1 01 00 AC 1E 00 9B [08:34:01]Write to MH i2c: 01 00 00 AD 1E CB [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C F1 47 00 F3 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 36 35 33 34 30 10 04 04 00 BC E0 02 00 F4 03 04 00 E5 5E 18 67 B6 04 01 00 00 B4 70 AB 01 20 98 B0 80 [08:34:02]CommunicateWithHost err = 0 [08:34:02]CheckOFDResponse [08:34:02]1017 (14) - 77093643461234 [08:34:02]1041 (16) - 0000000000965340 [08:34:02]1040 (4) - 188604 [08:34:02]1012 (4) - 23.10.2024 02:26 [08:34:02]1206 (1) - 0 [08:34:02]OFD Sender: Remove packet 188604 [08:34:02]ProducePacketName [08:34:02]name=ofd_packets/00188604 [08:34:02]NVStorageDeleteData [08:34:02]OFD Sender: No OFD packet to send [08:34:03]*** Cut start [08:34:03]*** Partial cut [08:34:03]*** CUTSNS_PIN = 1 [08:34:03]*** CUTSNS_PIN = 0 [08:34:03]*** Brake cut motor [08:34:03]Read from MH i2c: 01 [08:34:03]MH_I2C_Read... [08:34:03]*** Stop cut motor [08:34:03]*** Cut end [08:34:03]Read from MH i2c: 01 07 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: 01 07 00 AD 1E 00 00 00 00 00 FF 0F E0 [08:34:03]process_action close_receipt done [08:34:03]requested_data is exist [08:34:03]produce_requested_data [08:34:03]requested_item fm.sn is exist - process it [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 11 00 00 [08:34:03]Write to MH i2c: E2 08 00 AE 1E 80 11 00 00 00 00 00 00 46 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:03]Read from MH i2c: E2 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 17 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 17 00 AE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [08:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:34:03]wFMCommunicate OK [08:34:03]requested_item fd.num is exist - process it [08:34:03]SAM_PROTO_GetFieldsCounters [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 13 00 00 [08:34:03]Write to MH i2c: E2 08 00 AF 1E 80 13 00 00 00 00 00 00 49 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 62 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 62 00 AF 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [08:34:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:04]wFMCommunicate OK [08:34:04]SAM_PROTO_GetFieldsCounters done [08:34:04]requested_item shift.num is exist - process it [08:34:04]requested_item shift.opened is exist - process it [08:34:04]req_shift_opened [08:34:04]FM_GetShiftState [08:34:04]SAM_PROTO_GetShiftState [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 13 01 00 [08:34:04]Write to MH i2c: E2 08 00 B0 1E 80 13 01 00 00 00 00 00 4B [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 0E 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 0E 00 B0 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 33 [08:34:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:34:04]wFMCommunicate OK [08:34:04]SAM_PROTO_GetShiftState done [08:34:04]FM_GetShiftState done [08:34:04]req_shift_opened done [08:34:04]requested_item shift.open_date is exist - process it [08:34:04]req_shift_open_date [08:34:04]req_shift_open_date done [08:34:04]produce_requested_data done [08:34:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188604,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:34:04]process_action_free close_receipt [08:34:04]json_value_free [08:34:04]json_value_free done [08:34:04]process_json_proto returns [08:34:04]Send response to host [08:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188604,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:34:04]free response buf [08:34:04]execute_script done [08:34:04]execute_script returns [08:34:04]free content buf [08:34:04]Sock 7.Close socket [08:34:04]Sock 7.Thread stoped [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:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:31]accept exits with 9 [08:36:31]New connection [08:36:31]New thread 3066506596 created [08:36:31]Thread 3066649956 joined [08:36:31]Waiting for new connection... [08:36:31] Sock 9.Parse request [08:36:31]Sock 9.Check first char [08:36:31]Sock 9.First char is OK [08:36:31]request: POST /json_proto HTTP/1.0 [08:36:31]Method: POST [08:36:31]URL: /json_proto [08:36:31]Method is POST - this is cgi request [08:36:31]url: /json_proto [08:36:31]query_string will be loaded in cgi processing [08:36:31]execute_cgi json_proto POST (null) [08:36:31]execute_cgi path=json_proto method=POST [08:36:31]POST find Content-Length [08:36:31]Host: 172.17.42.131:8080 [08:36:31]Content-Length: 682 [08:36:31]Content-Type: application/json [08:36:31] [08:36:31]POST finish read [08:36:31]Found Content-Length = 682 [08:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:31]execute_script... [08:36:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:31]POST & json_proto [08:36:31]process_json_proto [08:36:31]json parsed OK: [08:36:31]protocol is kg_v1.0 [08:36:31]action value=close_receipt [08:36:31]process_action close_receipt [08:36:31]cmd_close_receipt [08:36:31]MH_GetDate [08:36:31]Write to MH i2c: F0 00 00 B1 1E BE [08:36:31]Write i2c OK [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: F0 [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: F0 09 00 [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: F0 09 00 B1 1E 00 92 B5 18 67 A0 18 CA 66 75 [08:36:31]GetLastDocTimeStamp 1729672442 [08:36:31]current date 1729672594 [08:36:31]FM_GetShiftState [08:36:31]SAM_PROTO_GetShiftState [08:36:31]wFMCommunicate request_size=4 [08:36:31]MH_SAM_APDU [08:36:31]CAPDU: 80 13 01 00 [08:36:31]Write to MH i2c: E2 08 00 B2 1E 80 13 01 00 00 00 00 00 4D [08:36:31]Write i2c OK [08:36:31]MH_I2C_Read... [08:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:31]Read from MH i2c: E2 [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: E2 0E 00 [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: E2 0E 00 B2 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 35 [08:36:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:36:31]wFMCommunicate OK [08:36:31]SAM_PROTO_GetShiftState done [08:36:31]FM_GetShiftState done [08:36:31]opened in 1729642525 [08:36:31]opened+sec_in_day 1729728925 [08:36:31]quantity*price = 100015 [08:36:31]sum+1 = 100017 [08:36:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 63 23.10.2024 08:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188605 ФПД: 129745700774412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083634&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188605&fm=129745700774412&tin=02508201610067®Number=0000000000100030&sum=100000 [08:36:32]StoreToDocumentArchive [08:36:32]shift 462 fd 188605 [08:36:32]save to /storage/0462/doc_00188605 [08:36:32]save last doc name /storage/0462/doc_00188605 to /storage/kkm_last_doc_name [08:36:32]save OK [08:36:32]Clear old archive folders... [08:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:32]tlvbuf is 0092C5C0 [08:36:32]SAM_PROTO_ClearQueue [08:36:32]wFMCommunicate request_size=4 [08:36:32]MH_SAM_APDU [08:36:32]CAPDU: 80 09 00 00 [08:36:32]Write to MH i2c: E2 08 00 BF 1E 80 09 00 00 00 00 00 00 4F [08:36:32]Write i2c OK [08:36:32]MH_I2C_Read... [08:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:33]Read from MH i2c: E2 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 03 00 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 03 00 BF 1E 00 90 00 51 [08:36:33]RAPDU: 90 00 [08:36:33]wFMCommunicate OK [08:36:33]SAM_PROTO_ClearQueue done [08:36:33]KKMCreateOFDPacket [08:36:33]OFDProtocolAddRootSTLVToBuf [08:36:33]FM_MakeSignedData [08:36:33]FM_MakeSignedData [08:36:33]SAM_PROTO_SignData [08:36:33]wFMCommunicate request_size=4 [08:36:33]MH_SAM_APDU [08:36:33]CAPDU: 80 0D 01 02 [08:36:33]Write to MH i2c: E2 08 00 C0 1E 80 0D 01 02 00 00 00 00 57 [08:36:33]Write i2c OK [08:36:33]MH_I2C_Read... [08:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:33]Read from MH i2c: E2 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 03 00 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 03 00 C0 1E 00 90 00 52 [08:36:33]RAPDU: 90 00 [08:36:33]wFMCommunicate OK [08:36:33]wFMCommunicate request_size=255 [08:36:33]MH_SAM_APDU [08:36:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 92 B5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E0 02 00 35 04 06 00 76 [08:36:33]Write to MH i2c: E2 02 01 C1 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 92 B5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E0 02 00 35 04 06 00 76 00 00 AD [08:36:33]Write i2c OK [08:36:33]MH_I2C_Read... [08:36:33]OFD Sender: No OFD packet to send [08:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:33]Read from MH i2c: E2 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 03 00 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 03 00 C1 1E 00 90 00 53 [08:36:33]RAPDU: 90 00 [08:36:33]wFMCommunicate OK [08:36:33]wFMCommunicate request_size=10 [08:36:33]MH_SAM_APDU [08:36:33]CAPDU: 80 0D 02 02 05 00 C6 67 E2 0C [08:36:33]Write to MH i2c: E2 0D 00 C2 1E 80 0D 02 02 05 00 00 C6 67 E2 0C 00 00 7F [08:36:33]Write i2c OK [08:36:33]MH_I2C_Read... [08:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:33]Read from MH i2c: E2 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 03 00 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [08:36:33]RAPDU: 90 00 [08:36:33]wFMCommunicate OK [08:36:33]wFMCommunicate request_size=4 [08:36:33]MH_SAM_APDU [08:36:33]CAPDU: 80 0D 03 02 [08:36:33]Write to MH i2c: E2 08 00 C3 1E 80 0D 03 02 00 00 00 00 5C [08:36:33]Write i2c OK [08:36:33]MH_I2C_Read... [08:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:33]Read from MH i2c: E2 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 0B 00 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 0B 00 C3 1E 00 E1 BF C4 06 0E A8 B0 26 90 00 53 [08:36:33]RAPDU: E1 BF C4 06 0E A8 B0 26 90 00 [08:36:33]wFMCommunicate OK [08:36:33]SAM_PROTO_SignData done [08:36:33]FM_MakeSignedData done [08:36:33]CreateOFDProtocolMessage [08:36:33]wFMCommunicate request_size=4 [08:36:33]MH_SAM_APDU [08:36:33]CAPDU: 80 11 00 00 [08:36:33]Write to MH i2c: E2 08 00 C4 1E 80 11 00 00 00 00 00 00 5C [08:36:33]Write i2c OK [08:36:33]MH_I2C_Read... [08:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:33]Read from MH i2c: E2 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 17 00 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: E2 17 00 C4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [08:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:36:33]wFMCommunicate OK [08:36:33]CreateOFDProtocolMessage done [08:36:33]OFDSenderStorePacket 188605 [08:36:33]StoreOFDPacket docnum=188605 [08:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 BD 07 01 85 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 92 B5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E0 02 00 35 04 06 00 76 00 C6 67 E2 0C E1 BF C4 06 0E A8 B0 26 [08:36:33]CheckFolder [08:36:33]dirname=/storage/ofd_packets [08:36:33]CheckFolder done [08:36:33]ProducePacketName [08:36:33]name=ofd_packets/00188605 [08:36:33]NVStorageSaveData ofd_packets/00188605 [08:36:33]File name is /storage/ofd_packets/00188605 [08:36:33]Write 301 bytes [08:36:33]NVStorageSaveData done [08:36:33]OFDSenderStorePacket done [08:36:33]KKMCreateOFDPacket done [08:36:33]NVStorageSaveData kkm_last_timestamp [08:36:33]File name is /storage/kkm_last_timestamp [08:36:33]Write 4 bytes [08:36:33]NVStorageSaveData done [08:36:33]ExternCall_PrintAddStr [08:36:33]wPrintStart [08:36:33]Write to MH i2c: 01 00 00 C5 1E E3 [08:36:33]Write i2c OK [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: 01 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: 01 07 00 [08:36:33]MH_I2C_Read... [08:36:33]Read from MH i2c: 01 07 00 C5 1E 00 00 00 00 00 FF 0F F8 [08:36:33]RasterBufferAndPrint [08:36:33]line Счет N : (1)210664 [08:36:33]line ИНН: 02508201610067 [08:36:33]line Контрольно-Кассовый Чек [08:36:33]line ПРОДАЖА [08:36:33]line ТРК (МРК, ГНК) : 12 [08:36:33]line Товар: 2710124130 [08:36:33]line Аи-92-К-3 [08:36:33]line 14.950 * 66.90 [08:36:33]line = 1000.16 [08:36:33]line НДС 12% НСП 1% [08:36:33]line > о реализуемом товаре [08:36:33]line ОКРУГЛЕНИЕ: -0.16 [08:36:33]line ИТОГО: 1000.00 [08:36:33]line Внесено: 1000.00 [08:36:33]line СДАЧА: 0.00 [08:36:33]line НСП 1% : 8.85 [08:36:33]line НДС 12% : 106.21 [08:36:33]line Наличными: 1000.00 [08:36:33]line Безнал.: 0.00 [08:36:33]line Место: АЗС № 86 "Партнер Нефть" [08:36:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:36:33]line СНО: Общий режим [08:36:33]line Чек 63 23.10.2024 08:36 [08:36:33]line Смена: 462 ФФД: 1.0 [08:36:33]line ЗНМ: 0300000155 [08:36:33]line РНМ: 0000000000100030 [08:36:33]line Версия ККМ: 001 [08:36:33]line ФМ: 0000000000965340 [08:36:33]line ФД: 188605 [08:36:33]line ФПД: 129745700774412 [08:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083634&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188605&fm=129745700774412&tin=02508201610067®Number=0000000000100030&sum=100000 [08:36:33]written 0, free lines is 4095 [08:36:33]OFD Sender: Processing packet 188605 [packets to send 1062, broken 1061] [08:36:33]ProducePacketName [08:36:33]name=ofd_packets/00188605 [08:36:33]OFD Sender: To server: pG, [08:36:33]CommunicateWithHost lk.salyk.kg:30040 [08:36:33]ConnectInit lk.salyk.kg [08:36:34]Write to MH i2c: 01 00 00 F0 1E 0E [08:36:34]Write i2c OK [08:36:34]MH_I2C_Read... [08:36:34]Read from MH i2c: 01 [08:36:34]MH_I2C_Read... [08:36:34]Read from MH i2c: 01 07 00 [08:36:34]MH_I2C_Read... [08:36:34]Read from MH i2c: 01 07 00 F0 1E 00 00 00 00 00 56 0C 77 [08:36:34]RasterBufferAndPrint [08:36:34]line [08:36:34]line [08:36:34]line [08:36:34]line [08:36:34]line [08:36:34]written 0, free lines is 3160 [08:36:34]MH_Cut [08:36:34]Write to MH i2c: D1 01 00 F7 1E 01 E7 [08:36:34]Write i2c OK [08:36:34]MH_I2C_Read... [08:36:34]Read from MH i2c: D1 [08:36:34]MH_I2C_Read... [08:36:34]Read from MH i2c: D1 01 00 [08:36:34]MH_I2C_Read... [08:36:34]Read from MH i2c: D1 01 00 F7 1E 00 E6 [08:36:34]Write to MH i2c: 01 00 00 F8 1E 16 [08:36:34]Write i2c OK [08:36:34]MH_I2C_Read... [08:36:35]*** Cut start [08:36:35]*** Partial cut [08:36:35]*** CUTSNS_PIN = 1 [08:36:35]*** CUTSNS_PIN = 0 [08:36:35]*** Brake cut motor [08:36:35]Read from MH i2c: 01 [08:36:35]MH_I2C_Read... [08:36:35]*** Stop cut motor [08:36:35]*** Cut end [08:36:35]Read from MH i2c: 01 07 00 [08:36:35]MH_I2C_Read... [08:36:35]Read from MH i2c: 01 07 00 F8 1E 00 00 00 00 00 FF 0F 2B [08:36:35]process_action close_receipt done [08:36:35]requested_data is exist [08:36:35]produce_requested_data [08:36:35]requested_item fm.sn is exist - process it [08:36:35]wFMCommunicate request_size=4 [08:36:35]MH_SAM_APDU [08:36:35]CAPDU: 80 11 00 00 [08:36:35]Write to MH i2c: E2 08 00 F9 1E 80 11 00 00 00 00 00 00 91 [08:36:35]Write i2c OK [08:36:35]MH_I2C_Read... [08:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:35]Read from MH i2c: E2 [08:36:35]MH_I2C_Read... [08:36:35]Read from MH i2c: E2 17 00 [08:36:35]MH_I2C_Read... [08:36:35]Read from MH i2c: E2 17 00 F9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [08:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:36:36]wFMCommunicate OK [08:36:36]requested_item fd.num is exist - process it [08:36:36]SAM_PROTO_GetFieldsCounters [08:36:36]wFMCommunicate request_size=4 [08:36:36]MH_SAM_APDU [08:36:36]CAPDU: 80 13 00 00 [08:36:36]Write to MH i2c: E2 08 00 FA 1E 80 13 00 00 00 00 00 00 94 [08:36:36]Write i2c OK [08:36:36]MH_I2C_Read... [08:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:36]Read from MH i2c: E2 [08:36:36]MH_I2C_Read... [08:36:36]Read from MH i2c: E2 62 00 [08:36:36]MH_I2C_Read... [08:36:36]Read from MH i2c: E2 62 00 FA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [08:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:36]wFMCommunicate OK [08:36:36]SAM_PROTO_GetFieldsCounters done [08:36:36]requested_item shift.num is exist - process it [08:36:36]requested_item shift.opened is exist - process it [08:36:36]req_shift_opened [08:36:36]FM_GetShiftState [08:36:36]SAM_PROTO_GetShiftState [08:36:36]wFMCommunicate request_size=4 [08:36:36]MH_SAM_APDU [08:36:36]CAPDU: 80 13 01 00 [08:36:36]Write to MH i2c: E2 08 00 FB 1E 80 13 01 00 00 00 00 00 96 [08:36:36]Write i2c OK [08:36:36]MH_I2C_Read... [08:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:36]Read from MH i2c: E2 [08:36:36]MH_I2C_Read... [08:36:36]Read from MH i2c: E2 0E 00 [08:36:36]MH_I2C_Read... [08:36:36]Read from MH i2c: E2 0E 00 FB 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7E [08:36:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:36:36]wFMCommunicate OK [08:36:36]SAM_PROTO_GetShiftState done [08:36:36]FM_GetShiftState done [08:36:36]req_shift_opened done [08:36:36]requested_item shift.open_date is exist - process it [08:36:36]req_shift_open_date [08:36:36]req_shift_open_date done [08:36:36]produce_requested_data done [08:36:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188605,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:36:36]process_action_free close_receipt [08:36:36]json_value_free [08:36:36]json_value_free done [08:36:36]process_json_proto returns [08:36:36]Send response to host [08:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188605,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:36:36]free response buf [08:36:36]execute_script done [08:36:36]execute_script returns [08:36:36]free content buf [08:36:36]Sock 9.Close socket [08:36:36]Sock 9.Thread stoped [08:38:08]accept exits with 7 [08:38:08]New connection [08:38:08]New thread 3066649956 created [08:38:08]Thread 3066506596 joined [08:38:08]Waiting for new connection... [08:38:08] Sock 7.Parse request [08:38:08]Sock 7.Check first char [08:38:08]Sock 7.First char is OK [08:38:08]request: POST /json_proto HTTP/1.0 [08:38:08]Method: POST [08:38:08]URL: /json_proto [08:38:08]Method is POST - this is cgi request [08:38:08]url: /json_proto [08:38:08]query_string will be loaded in cgi processing [08:38:08]execute_cgi json_proto POST (null) [08:38:08]execute_cgi path=json_proto method=POST [08:38:08]POST find Content-Length [08:38:08]Host: 172.17.42.131:8080 [08:38:08]Content-Length: 825 [08:38:08]Content-Type: application/json [08:38:08] [08:38:08]POST finish read [08:38:08]Found Content-Length = 825 [08:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:08]execute_script... [08:38:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:08]POST & json_proto [08:38:08]process_json_proto [08:38:08]json parsed OK: [08:38:08]protocol is kg_v1.0 [08:38:08]action value=close_receipt [08:38:08]process_action close_receipt [08:38:08]cmd_close_receipt [08:38:08]MH_GetDate [08:38:08]Write to MH i2c: F0 00 00 FC 1E 09 [08:38:08]Write i2c OK [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: F0 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: F0 09 00 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: F0 09 00 FC 1E 00 F3 B5 18 67 A0 18 CA 66 21 [08:38:08]GetLastDocTimeStamp 1729672594 [08:38:08]current date 1729672691 [08:38:08]FM_GetShiftState [08:38:08]SAM_PROTO_GetShiftState [08:38:08]wFMCommunicate request_size=4 [08:38:08]MH_SAM_APDU [08:38:08]CAPDU: 80 13 01 00 [08:38:08]Write to MH i2c: E2 08 00 FD 1E 80 13 01 00 00 00 00 00 98 [08:38:08]Write i2c OK [08:38:08]MH_I2C_Read... [08:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:08]Read from MH i2c: E2 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: E2 0E 00 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: E2 0E 00 FD 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 80 [08:38:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:38:08]wFMCommunicate OK [08:38:08]SAM_PROTO_GetShiftState done [08:38:08]FM_GetShiftState done [08:38:08]opened in 1729642525 [08:38:08]opened+sec_in_day 1729728925 [08:38:08]quantity*price = 300076 [08:38:08]sum+1 = 300077 [08:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 64 23.10.2024 08:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188606 ФПД: 205719469935655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083811&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188606&fm=205719469935655&tin=02508201610067®Number=0000000000100030&sum=300076 [08:38:09]StoreToDocumentArchive [08:38:09]shift 462 fd 188606 [08:38:09]save to /storage/0462/doc_00188606 [08:38:09]save last doc name /storage/0462/doc_00188606 to /storage/kkm_last_doc_name [08:38:09]save OK [08:38:09]Clear old archive folders... [08:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:38:09]tlvbuf is 0091AA40 [08:38:09]SAM_PROTO_ClearQueue [08:38:09]wFMCommunicate request_size=4 [08:38:09]MH_SAM_APDU [08:38:09]CAPDU: 80 09 00 00 [08:38:09]Write to MH i2c: E2 08 00 0A 1F 80 09 00 00 00 00 00 00 9B [08:38:10]Write i2c OK [08:38:10]MH_I2C_Read... [08:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:10]Read from MH i2c: E2 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 03 00 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 03 00 0A 1F 00 90 00 9D [08:38:10]RAPDU: 90 00 [08:38:10]wFMCommunicate OK [08:38:10]SAM_PROTO_ClearQueue done [08:38:10]KKMCreateOFDPacket [08:38:10]OFDProtocolAddRootSTLVToBuf [08:38:10]FM_MakeSignedData [08:38:10]FM_MakeSignedData [08:38:10]SAM_PROTO_SignData [08:38:10]wFMCommunicate request_size=4 [08:38:10]MH_SAM_APDU [08:38:10]CAPDU: 80 0D 01 02 [08:38:10]Write to MH i2c: E2 08 00 0B 1F 80 0D 01 02 00 00 00 00 A3 [08:38:10]Write i2c OK [08:38:10]MH_I2C_Read... [08:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:10]Read from MH i2c: E2 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 03 00 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 03 00 0B 1F 00 90 00 9E [08:38:10]RAPDU: 90 00 [08:38:10]wFMCommunicate OK [08:38:10]wFMCommunicate request_size=255 [08:38:10]MH_SAM_APDU [08:38:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F3 B5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E0 02 [08:38:10]Write to MH i2c: E2 02 01 0C 1F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F3 B5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E0 02 00 00 52 [08:38:10]Write i2c OK [08:38:10]MH_I2C_Read... [08:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:10]Read from MH i2c: E2 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 03 00 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [08:38:10]RAPDU: 90 00 [08:38:10]wFMCommunicate OK [08:38:10]wFMCommunicate request_size=16 [08:38:10]MH_SAM_APDU [08:38:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BB 19 CB ED CC 27 [08:38:10]Write to MH i2c: E2 13 00 0D 1F 80 0D 02 02 0B 00 00 35 04 06 00 BB 19 CB ED CC 27 00 00 7A [08:38:10]Write i2c OK [08:38:10]MH_I2C_Read... [08:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:10]Read from MH i2c: E2 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 03 00 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [08:38:10]RAPDU: 90 00 [08:38:10]wFMCommunicate OK [08:38:10]wFMCommunicate request_size=4 [08:38:10]MH_SAM_APDU [08:38:10]CAPDU: 80 0D 03 02 [08:38:10]Write to MH i2c: E2 08 00 0E 1F 80 0D 03 02 00 00 00 00 A8 [08:38:10]Write i2c OK [08:38:10]MH_I2C_Read... [08:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:10]Read from MH i2c: E2 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 0B 00 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 0B 00 0E 1F 00 EB F4 63 0D B6 1B 46 AF 90 00 BE [08:38:10]RAPDU: EB F4 63 0D B6 1B 46 AF 90 00 [08:38:10]wFMCommunicate OK [08:38:10]SAM_PROTO_SignData done [08:38:10]FM_MakeSignedData done [08:38:10]CreateOFDProtocolMessage [08:38:10]wFMCommunicate request_size=4 [08:38:10]MH_SAM_APDU [08:38:10]CAPDU: 80 11 00 00 [08:38:10]Write to MH i2c: E2 08 00 0F 1F 80 11 00 00 00 00 00 00 A8 [08:38:10]Write i2c OK [08:38:10]MH_I2C_Read... [08:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:10]Read from MH i2c: E2 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 17 00 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: E2 17 00 0F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [08:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:38:10]wFMCommunicate OK [08:38:10]CreateOFDProtocolMessage done [08:38:10]OFDSenderStorePacket 188606 [08:38:10]StoreOFDPacket docnum=188606 [08:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 79 85 0D 01 88 E4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F3 B5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E0 02 00 35 04 06 00 BB 19 CB ED CC 27 EB F4 63 0D B6 1B 46 AF [08:38:10]CheckFolder [08:38:10]dirname=/storage/ofd_packets [08:38:10]CheckFolder done [08:38:10]ProducePacketName [08:38:10]name=ofd_packets/00188606 [08:38:10]NVStorageSaveData ofd_packets/00188606 [08:38:10]File name is /storage/ofd_packets/00188606 [08:38:10]Write 307 bytes [08:38:10]NVStorageSaveData done [08:38:10]OFDSenderStorePacket done [08:38:10]KKMCreateOFDPacket done [08:38:10]NVStorageSaveData kkm_last_timestamp [08:38:10]File name is /storage/kkm_last_timestamp [08:38:10]Write 4 bytes [08:38:10]NVStorageSaveData done [08:38:10]ExternCall_PrintAddStr [08:38:10]wPrintStart [08:38:10]Write to MH i2c: 01 00 00 10 1F 2F [08:38:10]Write i2c OK [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: 01 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: 01 07 00 [08:38:10]MH_I2C_Read... [08:38:10]Read from MH i2c: 01 07 00 10 1F 00 00 00 00 00 FF 0F 44 [08:38:10]RasterBufferAndPrint [08:38:10]line Счет N : (1)210665 [08:38:10]line ИНН: 02508201610067 [08:38:10]line Контрольно-Кассовый Чек [08:38:10]line ПРОДАЖА [08:38:10]line ТРК (МРК, ГНК) : 31 [08:38:10]line Товар: 2710194210 [08:38:10]line D-ENERGY ДТ-К-5 [08:38:10]line 38.870 * 77.20 [08:38:10]line = 3000.76 [08:38:10]line НДС 12% НСП 1% [08:38:10]line > о реализуемом товаре [08:38:10]line ИТОГО: 3000.76 [08:38:10]line НСП 1% : 26.55 [08:38:10]line НДС 12% : 318.66 [08:38:10]line Наличными: 0.00 [08:38:10]line Безнал.: 3000.76 [08:38:10]line Место: АЗС № 86 "Партнер Нефть" [08:38:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:38:10]line СНО: Общий режим [08:38:10]line Чек 64 23.10.2024 08:38 [08:38:10]line Смена: 462 ФФД: 1.0 [08:38:10]line ЗНМ: 0300000155 [08:38:10]line РНМ: 0000000000100030 [08:38:10]line Версия ККМ: 001 [08:38:10]line Платежная система: Бакай Банк [08:38:10]line ФМ: 0000000000965340 [08:38:10]line ФД: 188606 [08:38:10]line ФПД: 205719469935655 [08:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083811&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188606&fm=205719469935655&tin=02508201610067®Number=0000000000100030&sum=300076 [08:38:10]written 0, free lines is 4095 [08:38:11]Write to MH i2c: 01 00 00 3A 1F 59 [08:38:11]Write i2c OK [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: 01 [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: 01 07 00 [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: 01 07 00 3A 1F 00 00 00 00 00 6E 0C DA [08:38:11]RasterBufferAndPrint [08:38:11]line [08:38:11]line [08:38:11]line [08:38:11]line [08:38:11]line [08:38:11]written 0, free lines is 3185 [08:38:11]MH_Cut [08:38:11]Write to MH i2c: D1 01 00 41 1F 01 32 [08:38:11]Write i2c OK [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: D1 [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: D1 01 00 [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: D1 01 00 41 1F 00 31 [08:38:11]Write to MH i2c: 01 00 00 42 1F 61 [08:38:11]Write i2c OK [08:38:11]MH_I2C_Read... [08:38:12]*** Cut start [08:38:12]*** Partial cut [08:38:12]*** CUTSNS_PIN = 1 [08:38:12]*** CUTSNS_PIN = 0 [08:38:12]*** Brake cut motor [08:38:13]Read from MH i2c: 01 [08:38:13]MH_I2C_Read... [08:38:13]*** Stop cut motor [08:38:13]*** Cut end [08:38:13]Read from MH i2c: 01 07 00 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: 01 07 00 42 1F 00 00 00 00 00 FF 0F 76 [08:38:13]process_action close_receipt done [08:38:13]requested_data is exist [08:38:13]produce_requested_data [08:38:13]requested_item fm.sn is exist - process it [08:38:13]wFMCommunicate request_size=4 [08:38:13]MH_SAM_APDU [08:38:13]CAPDU: 80 11 00 00 [08:38:13]Write to MH i2c: E2 08 00 43 1F 80 11 00 00 00 00 00 00 DC [08:38:13]Write i2c OK [08:38:13]MH_I2C_Read... [08:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:13]Read from MH i2c: E2 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: E2 17 00 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: E2 17 00 43 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [08:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:38:13]wFMCommunicate OK [08:38:13]requested_item fd.num is exist - process it [08:38:13]SAM_PROTO_GetFieldsCounters [08:38:13]wFMCommunicate request_size=4 [08:38:13]MH_SAM_APDU [08:38:13]CAPDU: 80 13 00 00 [08:38:13]Write to MH i2c: E2 08 00 44 1F 80 13 00 00 00 00 00 00 DF [08:38:13]Write i2c OK [08:38:13]MH_I2C_Read... [08:38:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:13]Read from MH i2c: E2 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: E2 62 00 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: E2 62 00 44 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [08:38:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:13]wFMCommunicate OK [08:38:13]SAM_PROTO_GetFieldsCounters done [08:38:13]requested_item shift.num is exist - process it [08:38:13]requested_item shift.opened is exist - process it [08:38:13]req_shift_opened [08:38:13]FM_GetShiftState [08:38:13]SAM_PROTO_GetShiftState [08:38:13]wFMCommunicate request_size=4 [08:38:13]MH_SAM_APDU [08:38:13]CAPDU: 80 13 01 00 [08:38:13]Write to MH i2c: E2 08 00 45 1F 80 13 01 00 00 00 00 00 E1 [08:38:13]Write i2c OK [08:38:13]MH_I2C_Read... [08:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:13]Read from MH i2c: E2 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: E2 0E 00 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: E2 0E 00 45 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C9 [08:38:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:38:13]wFMCommunicate OK [08:38:13]SAM_PROTO_GetShiftState done [08:38:13]FM_GetShiftState done [08:38:13]req_shift_opened done [08:38:13]requested_item shift.open_date is exist - process it [08:38:13]req_shift_open_date [08:38:13]req_shift_open_date done [08:38:13]produce_requested_data done [08:38:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188606,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:38:13]process_action_free close_receipt [08:38:13]json_value_free [08:38:13]json_value_free done [08:38:13]process_json_proto returns [08:38:13]Send response to host [08:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188606,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:38:13]free response buf [08:38:13]execute_script done [08:38:13]execute_script returns [08:38:13]free content buf [08:38:13]Sock 7.Close socket [08:38:13]Sock 7.Thread stoped [08:38:47]ConnectInit Can't connect to host [08:38:47]CommunicateWithHost connect error [08:38:47]CommunicateWithHost err = -1 [08:38:47]OFD Sender: Server communicate error [08:38:47]OFD Sender: Processing packet 188605 [packets to send 1063, broken 1061] [08:38:47]ProducePacketName [08:38:47]name=ofd_packets/00188605 [08:38:47]OFD Sender: To server: pG, [08:38:47]CommunicateWithHost lk.salyk.kg:30040 [08:38:47]ConnectInit lk.salyk.kg [08:38:48]Connected sock=6 [08:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 BD 07 01 85 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 92 B5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E0 02 00 35 04 06 00 76 00 C6 67 E2 0C E1 BF C4 06 0E A8 B0 26 [08:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D3 0C 47 00 58 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 36 35 33 34 30 10 04 04 00 BD E0 02 00 F4 03 04 00 04 60 18 67 B6 04 01 00 00 4B 40 59 D6 C4 3C 76 24 [08:38:48]CommunicateWithHost err = 0 [08:38:48]CheckOFDResponse [08:38:48]1017 (14) - 77093643461234 [08:38:48]1041 (16) - 0000000000965340 [08:38:48]1040 (4) - 188605 [08:38:48]1012 (4) - 23.10.2024 02:31 [08:38:48]1206 (1) - 0 [08:38:48]OFD Sender: Remove packet 188605 [08:38:48]ProducePacketName [08:38:48]name=ofd_packets/00188605 [08:38:48]NVStorageDeleteData [08:38:48]OFD Sender: Processing packet 188606 [packets to send 1062, broken 1061] [08:38:48]ProducePacketName [08:38:48]name=ofd_packets/00188606 [08:38:48]OFD Sender: To server: pG, [08:38:48]CommunicateWithHost lk.salyk.kg:30040 [08:38:48]ConnectInit lk.salyk.kg [08:38:49]Connected sock=6 [08:38:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 79 85 0D 01 88 E4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F3 B5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E0 02 00 35 04 06 00 BB 19 CB ED CC 27 EB F4 63 0D B6 1B 46 AF [08:38:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 48 6D 47 00 F1 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E0 02 00 F4 03 04 00 05 60 18 67 B6 04 01 00 00 B7 01 35 BF B0 B7 4B 1A [08:38:49]CommunicateWithHost err = 0 [08:38:49]CheckOFDResponse [08:38:49]1017 (14) - 77093643461234 [08:38:49]1041 (16) - 0000000000965340 [08:38:49]1040 (4) - 188606 [08:38:49]1012 (4) - 23.10.2024 02:31 [08:38:49]1206 (1) - 0 [08:38:49]OFD Sender: Remove packet 188606 [08:38:49]ProducePacketName [08:38:49]name=ofd_packets/00188606 [08:38:49]NVStorageDeleteData [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:33]accept exits with 9 [08:39:33]New connection [08:39:33]New thread 3066506596 created [08:39:33]Thread 3066649956 joined [08:39:33]Waiting for new connection... [08:39:33] Sock 9.Parse request [08:39:33]Sock 9.Check first char [08:39:33]Sock 9.First char is OK [08:39:33]request: POST /json_proto HTTP/1.0 [08:39:33]Method: POST [08:39:33]URL: /json_proto [08:39:33]Method is POST - this is cgi request [08:39:33]url: /json_proto [08:39:33]query_string will be loaded in cgi processing [08:39:33]execute_cgi json_proto POST (null) [08:39:33]execute_cgi path=json_proto method=POST [08:39:33]POST find Content-Length [08:39:33]Host: 172.17.42.131:8080 [08:39:33]Content-Length: 677 [08:39:33]Content-Type: application/json [08:39:33] [08:39:33]POST finish read [08:39:33]Found Content-Length = 677 [08:39:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:33]execute_script... [08:39:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:33]POST & json_proto [08:39:33]process_json_proto [08:39:33]json parsed OK: [08:39:33]protocol is kg_v1.0 [08:39:33]action value=close_receipt [08:39:33]process_action close_receipt [08:39:33]cmd_close_receipt [08:39:33]MH_GetDate [08:39:33]Write to MH i2c: F0 00 00 46 1F 54 [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: F0 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: F0 09 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: F0 09 00 46 1F 00 48 B6 18 67 A0 18 CA 66 C2 [08:39:33]GetLastDocTimeStamp 1729672691 [08:39:33]current date 1729672776 [08:39:33]FM_GetShiftState [08:39:33]SAM_PROTO_GetShiftState [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 13 01 00 [08:39:33]Write to MH i2c: E2 08 00 47 1F 80 13 01 00 00 00 00 00 E3 [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 0E 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 0E 00 47 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CB [08:39:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:39:33]wFMCommunicate OK [08:39:33]SAM_PROTO_GetShiftState done [08:39:33]FM_GetShiftState done [08:39:33]opened in 1729642525 [08:39:33]opened+sec_in_day 1729728925 [08:39:33]quantity*price = 60009 [08:39:33]sum+1 = 60010 [08:39:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 65 23.10.2024 08:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188607 ФПД: 147359377514277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188607&fm=147359377514277&tin=02508201610067®Number=0000000000100030&sum=60000 [08:39:35]StoreToDocumentArchive [08:39:35]shift 462 fd 188607 [08:39:35]save to /storage/0462/doc_00188607 [08:39:35]save last doc name /storage/0462/doc_00188607 to /storage/kkm_last_doc_name [08:39:35]save OK [08:39:35]Clear old archive folders... [08:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:35]tlvbuf is 008FC530 [08:39:35]SAM_PROTO_ClearQueue [08:39:35]wFMCommunicate request_size=4 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 09 00 00 [08:39:35]Write to MH i2c: E2 08 00 54 1F 80 09 00 00 00 00 00 00 E5 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 03 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 03 00 54 1F 00 90 00 E7 [08:39:35]RAPDU: 90 00 [08:39:35]wFMCommunicate OK [08:39:35]SAM_PROTO_ClearQueue done [08:39:35]KKMCreateOFDPacket [08:39:35]OFDProtocolAddRootSTLVToBuf [08:39:35]FM_MakeSignedData [08:39:35]FM_MakeSignedData [08:39:35]SAM_PROTO_SignData [08:39:35]wFMCommunicate request_size=4 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 0D 01 02 [08:39:35]Write to MH i2c: E2 08 00 55 1F 80 0D 01 02 00 00 00 00 ED [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 03 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 03 00 55 1F 00 90 00 E8 [08:39:35]RAPDU: 90 00 [08:39:35]wFMCommunicate OK [08:39:35]wFMCommunicate request_size=255 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 49 B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E0 02 00 35 04 06 00 86 [08:39:35]Write to MH i2c: E2 02 01 56 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 49 B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E0 02 00 35 04 06 00 86 00 00 F2 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]OFD Sender: No OFD packet to send [08:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 03 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 03 00 56 1F 00 90 00 E9 [08:39:35]RAPDU: 90 00 [08:39:35]wFMCommunicate OK [08:39:35]wFMCommunicate request_size=10 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 0D 02 02 05 05 C7 59 DF 25 [08:39:35]Write to MH i2c: E2 0D 00 57 1F 80 0D 02 02 05 00 05 C7 59 DF 25 00 00 23 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 03 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [08:39:35]RAPDU: 90 00 [08:39:35]wFMCommunicate OK [08:39:35]wFMCommunicate request_size=4 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 0D 03 02 [08:39:35]Write to MH i2c: E2 08 00 58 1F 80 0D 03 02 00 00 00 00 F2 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 0B 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 0B 00 58 1F 00 C0 97 BC 7A 54 3C 9F 19 90 00 C8 [08:39:35]RAPDU: C0 97 BC 7A 54 3C 9F 19 90 00 [08:39:35]wFMCommunicate OK [08:39:35]SAM_PROTO_SignData done [08:39:35]FM_MakeSignedData done [08:39:35]CreateOFDProtocolMessage [08:39:35]wFMCommunicate request_size=4 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 11 00 00 [08:39:35]Write to MH i2c: E2 08 00 59 1F 80 11 00 00 00 00 00 00 F2 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 17 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 17 00 59 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [08:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:39:35]wFMCommunicate OK [08:39:35]CreateOFDProtocolMessage done [08:39:35]OFDSenderStorePacket 188607 [08:39:35]StoreOFDPacket docnum=188607 [08:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 F3 07 01 24 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 49 B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E0 02 00 35 04 06 00 86 05 C7 59 DF 25 C0 97 BC 7A 54 3C 9F 19 [08:39:35]CheckFolder [08:39:35]dirname=/storage/ofd_packets [08:39:35]CheckFolder done [08:39:35]ProducePacketName [08:39:35]name=ofd_packets/00188607 [08:39:35]NVStorageSaveData ofd_packets/00188607 [08:39:35]File name is /storage/ofd_packets/00188607 [08:39:35]Write 301 bytes [08:39:35]NVStorageSaveData done [08:39:35]OFDSenderStorePacket done [08:39:35]KKMCreateOFDPacket done [08:39:35]NVStorageSaveData kkm_last_timestamp [08:39:35]File name is /storage/kkm_last_timestamp [08:39:35]Write 4 bytes [08:39:35]NVStorageSaveData done [08:39:35]ExternCall_PrintAddStr [08:39:35]wPrintStart [08:39:35]Write to MH i2c: 01 00 00 5A 1F 79 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: 01 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: 01 07 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: 01 07 00 5A 1F 00 00 00 00 00 FF 0F 8E [08:39:35]RasterBufferAndPrint [08:39:35]line Счет N : (1)210666 [08:39:35]line ИНН: 02508201610067 [08:39:35]line Контрольно-Кассовый Чек [08:39:35]line ПРОДАЖА [08:39:35]line ТРК (МРК, ГНК) : 42 [08:39:35]line Товар: 2710124130 [08:39:35]line Аи-92-К-3 [08:39:35]line 8.970 * 66.90 [08:39:35]line = 600.09 [08:39:35]line НДС 12% НСП 1% [08:39:35]line > о реализуемом товаре [08:39:35]line ОКРУГЛЕНИЕ: -0.09 [08:39:35]line ИТОГО: 600.00 [08:39:35]line Внесено: 600.00 [08:39:35]line СДАЧА: 0.00 [08:39:35]line НСП 1% : 5.31 [08:39:35]line НДС 12% : 63.73 [08:39:35]line Наличными: 600.00 [08:39:35]line Безнал.: 0.00 [08:39:35]line Место: АЗС № 86 "Партнер Нефть" [08:39:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:39:35]line СНО: Общий режим [08:39:35]line Чек 65 23.10.2024 08:39 [08:39:35]line Смена: 462 ФФД: 1.0 [08:39:35]line ЗНМ: 0300000155 [08:39:35]line РНМ: 0000000000100030 [08:39:35]line Версия ККМ: 001 [08:39:35]line ФМ: 0000000000965340 [08:39:35]line ФД: 188607 [08:39:35]line ФПД: 147359377514277 [08:39:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188607&fm=147359377514277&tin=02508201610067®Number=0000000000100030&sum=60000 [08:39:35]written 0, free lines is 4095 [08:39:35]OFD Sender: Processing packet 188607 [packets to send 1062, broken 1061] [08:39:35]ProducePacketName [08:39:35]name=ofd_packets/00188607 [08:39:35]OFD Sender: To server: pG, [08:39:35]CommunicateWithHost lk.salyk.kg:30040 [08:39:35]ConnectInit lk.salyk.kg [08:39:35]Connected sock=11 [08:39:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 F3 07 01 24 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 49 B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E0 02 00 35 04 06 00 86 05 C7 59 DF 25 C0 97 BC 7A 54 3C 9F 19 [08:39:36]Write to MH i2c: 01 00 00 85 1F A4 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: 01 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: 01 07 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: 01 07 00 85 1F 00 00 00 00 00 56 0C 0D [08:39:36]RasterBufferAndPrint [08:39:36]line [08:39:36]line [08:39:36]line [08:39:36]line [08:39:36]line [08:39:36]written 0, free lines is 3161 [08:39:36]MH_Cut [08:39:36]Write to MH i2c: D1 01 00 8C 1F 01 7D [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: D1 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: D1 01 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: D1 01 00 8C 1F 00 7C [08:39:36]Write to MH i2c: 01 00 00 8D 1F AC [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7B DA 47 00 DF 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E0 02 00 F4 03 04 00 34 60 18 67 B6 04 01 00 00 59 B5 4B 9A 56 CD 7C 3D [08:39:36]CommunicateWithHost err = 0 [08:39:36]CheckOFDResponse [08:39:36]1017 (14) - 77093643461234 [08:39:36]1041 (16) - 0000000000965340 [08:39:36]1040 (4) - 188607 [08:39:36]1012 (4) - 23.10.2024 02:32 [08:39:36]1206 (1) - 0 [08:39:36]OFD Sender: Remove packet 188607 [08:39:36]ProducePacketName [08:39:36]name=ofd_packets/00188607 [08:39:36]NVStorageDeleteData [08:39:36]OFD Sender: No OFD packet to send [08:39:37]*** Cut start [08:39:37]*** Partial cut [08:39:37]*** CUTSNS_PIN = 1 [08:39:37]*** CUTSNS_PIN = 0 [08:39:37]*** Brake cut motor [08:39:37]Read from MH i2c: 01 [08:39:37]MH_I2C_Read... [08:39:37]*** Stop cut motor [08:39:37]*** Cut end [08:39:37]Read from MH i2c: 01 07 00 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 FF 0F C1 [08:39:37]process_action close_receipt done [08:39:37]requested_data is exist [08:39:37]produce_requested_data [08:39:37]requested_item fm.sn is exist - process it [08:39:37]wFMCommunicate request_size=4 [08:39:37]MH_SAM_APDU [08:39:37]CAPDU: 80 11 00 00 [08:39:37]Write to MH i2c: E2 08 00 8E 1F 80 11 00 00 00 00 00 00 27 [08:39:37]Write i2c OK [08:39:37]MH_I2C_Read... [08:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:38]Read from MH i2c: E2 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: E2 17 00 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: E2 17 00 8E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [08:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:39:38]wFMCommunicate OK [08:39:38]requested_item fd.num is exist - process it [08:39:38]SAM_PROTO_GetFieldsCounters [08:39:38]wFMCommunicate request_size=4 [08:39:38]MH_SAM_APDU [08:39:38]CAPDU: 80 13 00 00 [08:39:38]Write to MH i2c: E2 08 00 8F 1F 80 13 00 00 00 00 00 00 2A [08:39:38]Write i2c OK [08:39:38]MH_I2C_Read... [08:39:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:38]Read from MH i2c: E2 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: E2 62 00 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: E2 62 00 8F 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [08: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:38]wFMCommunicate OK [08:39:38]SAM_PROTO_GetFieldsCounters done [08:39:38]requested_item shift.num is exist - process it [08:39:38]requested_item shift.opened is exist - process it [08:39:38]req_shift_opened [08:39:38]FM_GetShiftState [08:39:38]SAM_PROTO_GetShiftState [08:39:38]wFMCommunicate request_size=4 [08:39:38]MH_SAM_APDU [08:39:38]CAPDU: 80 13 01 00 [08:39:38]Write to MH i2c: E2 08 00 90 1F 80 13 01 00 00 00 00 00 2C [08:39:38]Write i2c OK [08:39:38]MH_I2C_Read... [08:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:38]Read from MH i2c: E2 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: E2 0E 00 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: E2 0E 00 90 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 14 [08:39:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:39:38]wFMCommunicate OK [08:39:38]SAM_PROTO_GetShiftState done [08:39:38]FM_GetShiftState done [08:39:38]req_shift_opened done [08:39:38]requested_item shift.open_date is exist - process it [08:39:38]req_shift_open_date [08:39:38]req_shift_open_date done [08:39:38]produce_requested_data done [08:39:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188607,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:39:38]process_action_free close_receipt [08:39:38]json_value_free [08:39:38]json_value_free done [08:39:38]process_json_proto returns [08:39:38]Send response to host [08:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188607,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:39:38]free response buf [08:39:38]execute_script done [08:39:38]execute_script returns [08:39:38]free content buf [08:39:38]Sock 9.Close socket [08:39:38]Sock 9.Thread stoped [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40: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:42]accept exits with 7 [08:40:42]New connection [08:40:42]New thread 3066649956 created [08:40:42]Thread 3066506596 joined [08:40:42]Waiting for new connection... [08:40:42] Sock 7.Parse request [08:40:42]Sock 7.Check first char [08:40:42]Sock 7.First char is OK [08:40:42]request: POST /json_proto HTTP/1.0 [08:40:42]Method: POST [08:40:42]URL: /json_proto [08:40:42]Method is POST - this is cgi request [08:40:42]url: /json_proto [08:40:42]query_string will be loaded in cgi processing [08:40:42]execute_cgi json_proto POST (null) [08:40:42]execute_cgi path=json_proto method=POST [08:40:42]POST find Content-Length [08:40:42]Host: 172.17.42.131:8080 [08:40:42]Content-Length: 682 [08:40:42]Content-Type: application/json [08:40:42] [08:40:42]POST finish read [08:40:42]Found Content-Length = 682 [08:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:42]execute_script... [08:40:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:42]POST & json_proto [08:40:42]process_json_proto [08:40:42]json parsed OK: [08:40:42]protocol is kg_v1.0 [08:40:42]action value=close_receipt [08:40:42]process_action close_receipt [08:40:42]cmd_close_receipt [08:40:42]MH_GetDate [08:40:42]Write to MH i2c: F0 00 00 91 1F 9F [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: F0 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: F0 09 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: F0 09 00 91 1F 00 8E B6 18 67 A0 18 CA 66 53 [08:40:42]GetLastDocTimeStamp 1729672777 [08:40:42]current date 1729672846 [08:40:42]FM_GetShiftState [08:40:42]SAM_PROTO_GetShiftState [08:40:42]wFMCommunicate request_size=4 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 13 01 00 [08:40:42]Write to MH i2c: E2 08 00 92 1F 80 13 01 00 00 00 00 00 2E [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:42]Read from MH i2c: E2 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 0E 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 0E 00 92 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 16 [08:40:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:40:42]wFMCommunicate OK [08:40:42]SAM_PROTO_GetShiftState done [08:40:42]FM_GetShiftState done [08:40:42]opened in 1729642525 [08:40:42]opened+sec_in_day 1729728925 [08:40:42]quantity*price = 180009 [08:40:42]sum+1 = 180010 [08:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1800.00 Внесено: 2000.00 СДАЧА: 200.00 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 66 23.10.2024 08:40 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188608 ФПД: 11592334952207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188608&fm=11592334952207&tin=02508201610067®Number=0000000000100030&sum=180000 [08:40:44]StoreToDocumentArchive [08:40:44]shift 462 fd 188608 [08:40:44]save to /storage/0462/doc_00188608 [08:40:44]save last doc name /storage/0462/doc_00188608 to /storage/kkm_last_doc_name [08:40:44]save OK [08:40:44]Clear old archive folders... [08:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:44]tlvbuf is B6E5E730 [08:40:44]SAM_PROTO_ClearQueue [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 09 00 00 [08:40:44]Write to MH i2c: E2 08 00 9F 1F 80 09 00 00 00 00 00 00 30 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 9F 1F 00 90 00 32 [08:40:44]RAPDU: 90 00 [08:40:44]wFMCommunicate OK [08:40:44]SAM_PROTO_ClearQueue done [08:40:44]KKMCreateOFDPacket [08:40:44]OFDProtocolAddRootSTLVToBuf [08:40:44]FM_MakeSignedData [08:40:44]FM_MakeSignedData [08:40:44]SAM_PROTO_SignData [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 0D 01 02 [08:40:44]Write to MH i2c: E2 08 00 A0 1F 80 0D 01 02 00 00 00 00 38 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 A0 1F 00 90 00 33 [08:40:44]RAPDU: 90 00 [08:40:44]wFMCommunicate OK [08:40:44]wFMCommunicate request_size=255 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8E B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E0 02 00 35 04 06 00 0A [08:40:44]Write to MH i2c: E2 02 01 A1 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8E B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E0 02 00 35 04 06 00 0A 00 00 C5 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 A1 1F 00 90 00 34 [08:40:44]RAPDU: 90 00 [08:40:44]wFMCommunicate OK [08:40:44]wFMCommunicate request_size=10 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 0D 02 02 05 8B 0D 01 C7 0F [08:40:44]Write to MH i2c: E2 0D 00 A2 1F 80 0D 02 02 05 00 8B 0D 01 C7 0F 00 00 B4 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [08:40:44]RAPDU: 90 00 [08:40:44]wFMCommunicate OK [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 0D 03 02 [08:40:44]Write to MH i2c: E2 08 00 A3 1F 80 0D 03 02 00 00 00 00 3D [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 0B 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 0B 00 A3 1F 00 75 28 3B 72 AA 4D 60 1A 90 00 F9 [08:40:44]RAPDU: 75 28 3B 72 AA 4D 60 1A 90 00 [08:40:44]wFMCommunicate OK [08:40:44]SAM_PROTO_SignData done [08:40:44]FM_MakeSignedData done [08:40:44]CreateOFDProtocolMessage [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 11 00 00 [08:40:44]Write to MH i2c: E2 08 00 A4 1F 80 11 00 00 00 00 00 00 3D [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 17 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 17 00 A4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [08:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:40:44]wFMCommunicate OK [08:40:44]CreateOFDProtocolMessage done [08:40:44]OFDSenderStorePacket 188608 [08:40:44]StoreOFDPacket docnum=188608 [08:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8F CF 07 01 AD 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8E B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E0 02 00 35 04 06 00 0A 8B 0D 01 C7 0F 75 28 3B 72 AA 4D 60 1A [08:40:44]CheckFolder [08:40:44]dirname=/storage/ofd_packets [08:40:44]CheckFolder done [08:40:44]ProducePacketName [08:40:44]name=ofd_packets/00188608 [08:40:44]NVStorageSaveData ofd_packets/00188608 [08:40:44]File name is /storage/ofd_packets/00188608 [08:40:44]Write 301 bytes [08:40:44]NVStorageSaveData done [08:40:44]OFDSenderStorePacket done [08:40:44]KKMCreateOFDPacket done [08:40:44]NVStorageSaveData kkm_last_timestamp [08:40:44]File name is /storage/kkm_last_timestamp [08:40:44]Write 4 bytes [08:40:44]NVStorageSaveData done [08:40:44]ExternCall_PrintAddStr [08:40:44]wPrintStart [08:40:44]Write to MH i2c: 01 00 00 A5 1F C4 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 07 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 07 00 A5 1F 00 00 00 00 00 FF 0F D9 [08:40:44]RasterBufferAndPrint [08:40:44]line Счет N : (1)210668 [08:40:44]line ИНН: 02508201610067 [08:40:44]line Контрольно-Кассовый Чек [08:40:44]line ПРОДАЖА [08:40:44]line ТРК (МРК, ГНК) : 13 [08:40:44]line Товар: 2710124500 [08:40:44]line Аи-95-К-3 [08:40:44]line 24.260 * 74.20 [08:40:44]line = 1800.09 [08:40:44]line НДС 12% НСП 1% [08:40:44]line > о реализуемом товаре [08:40:44]line ОКРУГЛЕНИЕ: -0.09 [08:40:44]line ИТОГО: 1800.00 [08:40:44]line Внесено: 2000.00 [08:40:44]line СДАЧА: 200.00 [08:40:44]line НСП 1% : 15.93 [08:40:44]line НДС 12% : 191.16 [08:40:44]line Наличными: 1800.00 [08:40:44]line Безнал.: 0.00 [08:40:44]line Место: АЗС № 86 "Партнер Нефть" [08:40:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:40:44]line СНО: Общий режим [08:40:44]line Чек 66 23.10.2024 08:40 [08:40:44]line Смена: 462 ФФД: 1.0 [08:40:44]line ЗНМ: 0300000155 [08:40:44]line РНМ: 0000000000100030 [08:40:44]line Версия ККМ: 001 [08:40:44]line ФМ: 0000000000965340 [08:40:44]line ФД: 188608 [08:40:44]line ФПД: 11592334952207 [08:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188608&fm=11592334952207&tin=02508201610067®Number=0000000000100030&sum=180000 [08:40:44]written 0, free lines is 4095 [08:40:44]OFD Sender: Processing packet 188608 [packets to send 1062, broken 1061] [08:40:44]ProducePacketName [08:40:44]name=ofd_packets/00188608 [08:40:44]OFD Sender: To server: pG, [08:40:44]CommunicateWithHost lk.salyk.kg:30040 [08:40:44]ConnectInit lk.salyk.kg [08:40:44]Connected sock=10 [08:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8F CF 07 01 AD 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8E B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E0 02 00 35 04 06 00 0A 8B 0D 01 C7 0F 75 28 3B 72 AA 4D 60 1A [08:40:45]Write to MH i2c: 01 00 00 D0 1F EF [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: 01 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: 01 07 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: 01 07 00 D0 1F 00 00 00 00 00 58 0C 5A [08:40:45]RasterBufferAndPrint [08:40:45]line [08:40:45]line [08:40:45]line [08:40:45]line [08:40:45]line [08:40:45]written 0, free lines is 3164 [08:40:45]MH_Cut [08:40:45]Write to MH i2c: D1 01 00 D7 1F 01 C8 [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: D1 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: D1 01 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: D1 01 00 D7 1F 00 C7 [08:40:45]Write to MH i2c: 01 00 00 D8 1F F7 [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 D5 47 00 1C 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 36 35 33 34 30 10 04 04 00 C0 E0 02 00 F4 03 04 00 79 60 18 67 B6 04 01 00 00 E5 A8 C7 CE F2 09 2F EE [08:40:45]CommunicateWithHost err = 0 [08:40:45]CheckOFDResponse [08:40:45]1017 (14) - 77093643461234 [08:40:45]1041 (16) - 0000000000965340 [08:40:45]1040 (4) - 188608 [08:40:45]1012 (4) - 23.10.2024 02:33 [08:40:45]1206 (1) - 0 [08:40:45]OFD Sender: Remove packet 188608 [08:40:45]ProducePacketName [08:40:45]name=ofd_packets/00188608 [08:40:45]NVStorageDeleteData [08:40:45]OFD Sender: No OFD packet to send [08:40:46]*** Cut start [08:40:46]*** Partial cut [08:40:46]*** CUTSNS_PIN = 1 [08:40:46]*** CUTSNS_PIN = 0 [08:40:46]*** Brake cut motor [08:40:47]Read from MH i2c: 01 [08:40:47]MH_I2C_Read... [08:40:47]*** Stop cut motor [08:40:47]*** Cut end [08:40:47]Read from MH i2c: 01 07 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 FF 0F 0C [08:40:47]process_action close_receipt done [08:40:47]requested_data is exist [08:40:47]produce_requested_data [08:40:47]requested_item fm.sn is exist - process it [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 11 00 00 [08:40:47]Write to MH i2c: E2 08 00 D9 1F 80 11 00 00 00 00 00 00 72 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 D9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [08:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:40:47]wFMCommunicate OK [08:40:47]requested_item fd.num is exist - process it [08:40:47]SAM_PROTO_GetFieldsCounters [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 13 00 00 [08:40:47]Write to MH i2c: E2 08 00 DA 1F 80 13 00 00 00 00 00 00 75 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 62 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 62 00 DA 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [08:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_GetFieldsCounters done [08:40:47]requested_item shift.num is exist - process it [08:40:47]requested_item shift.opened is exist - process it [08:40:47]req_shift_opened [08:40:47]FM_GetShiftState [08:40:47]SAM_PROTO_GetShiftState [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 13 01 00 [08:40:47]Write to MH i2c: E2 08 00 DB 1F 80 13 01 00 00 00 00 00 77 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0E 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0E 00 DB 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5F [08:40:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_GetShiftState done [08:40:47]FM_GetShiftState done [08:40:47]req_shift_opened done [08:40:47]requested_item shift.open_date is exist - process it [08:40:47]req_shift_open_date [08:40:47]req_shift_open_date done [08:40:47]produce_requested_data done [08:40:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188608,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:40:47]process_action_free close_receipt [08:40:47]json_value_free [08:40:47]json_value_free done [08:40:47]process_json_proto returns [08:40:47]Send response to host [08:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188608,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:40:47]free response buf [08:40:47]execute_script done [08:40:47]execute_script returns [08:40:47]free content buf [08:40:47]Sock 7.Close socket [08:40:47]Sock 7.Thread stoped [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:40:57]accept exits with 9 [08:40:57]New connection [08:40:57]New thread 3066506596 created [08:40:57]Thread 3066649956 joined [08:40:57]Waiting for new connection... [08:40:57] Sock 9.Parse request [08:40:57]Sock 9.Check first char [08:40:57]Sock 9.First char is OK [08:40:57]request: POST /json_proto HTTP/1.0 [08:40:57]Method: POST [08:40:57]URL: /json_proto [08:40:57]Method is POST - this is cgi request [08:40:57]url: /json_proto [08:40:57]query_string will be loaded in cgi processing [08:40:57]execute_cgi json_proto POST (null) [08:40:57]execute_cgi path=json_proto method=POST [08:40:57]POST find Content-Length [08:40:57]Host: 172.17.42.131:8080 [08:40:57]Content-Length: 679 [08:40:57]Content-Type: application/json [08:40:57] [08:40:57]POST finish read [08:40:57]Found Content-Length = 679 [08:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:57]execute_script... [08:40:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:57]POST & json_proto [08:40:57]process_json_proto [08:40:57]json parsed OK: [08:40:57]protocol is kg_v1.0 [08:40:57]action value=close_receipt [08:40:57]process_action close_receipt [08:40:57]cmd_close_receipt [08:40:57]MH_GetDate [08:40:57]Write to MH i2c: F0 00 00 DC 1F EA [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: F0 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: F0 09 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: F0 09 00 DC 1F 00 9C B6 18 67 A0 18 CA 66 AC [08:40:57]GetLastDocTimeStamp 1729672846 [08:40:57]current date 1729672860 [08:40:57]FM_GetShiftState [08:40:57]SAM_PROTO_GetShiftState [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 13 01 00 [08:40:57]Write to MH i2c: E2 08 00 DD 1F 80 13 01 00 00 00 00 00 79 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 0E 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 0E 00 DD 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 61 [08:40:57]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:40:57]wFMCommunicate OK [08:40:57]SAM_PROTO_GetShiftState done [08:40:57]FM_GetShiftState done [08:40:57]opened in 1729642525 [08:40:57]opened+sec_in_day 1729728925 [08:40:57]quantity*price = 100050 [08:40:57]sum+1 = 100052 [08:40:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 67 23.10.2024 08:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188609 ФПД: 68492167251296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084100&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188609&fm=68492167251296&tin=02508201610067®Number=0000000000100030&sum=100000 [08:40:58]StoreToDocumentArchive [08:40:58]shift 462 fd 188609 [08:40:58]save to /storage/0462/doc_00188609 [08:40:58]save last doc name /storage/0462/doc_00188609 to /storage/kkm_last_doc_name [08:40:58]save OK [08:40:58]Clear old archive folders... [08:40:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:58]tlvbuf is 008CD990 [08:40:58]SAM_PROTO_ClearQueue [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 09 00 00 [08:40:58]Write to MH i2c: E2 08 00 EA 1F 80 09 00 00 00 00 00 00 7B [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 EA 1F 00 90 00 7D [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]SAM_PROTO_ClearQueue done [08:40:58]KKMCreateOFDPacket [08:40:58]OFDProtocolAddRootSTLVToBuf [08:40:58]FM_MakeSignedData [08:40:58]FM_MakeSignedData [08:40:58]SAM_PROTO_SignData [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 01 02 [08:40:58]Write to MH i2c: E2 08 00 EB 1F 80 0D 01 02 00 00 00 00 83 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 EB 1F 00 90 00 7E [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=255 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9C B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E0 02 00 35 04 06 00 3E 4B 13 4C [08:40:58]Write to MH i2c: E2 02 01 EC 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9C B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E0 02 00 35 04 06 00 3E 4B 13 4C 00 00 5C [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=7 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 02 02 02 85 60 [08:40:58]Write to MH i2c: E2 0A 00 ED 1F 80 0D 02 02 02 00 85 60 00 00 6F [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 03 02 [08:40:58]Write to MH i2c: E2 08 00 EE 1F 80 0D 03 02 00 00 00 00 88 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 0B 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 0B 00 EE 1F 00 65 A1 D0 5D 85 7A 92 D4 90 00 21 [08:40:58]RAPDU: 65 A1 D0 5D 85 7A 92 D4 90 00 [08:40:58]wFMCommunicate OK [08:40:58]SAM_PROTO_SignData done [08:40:58]FM_MakeSignedData done [08:40:58]CreateOFDProtocolMessage [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 11 00 00 [08:40:58]Write to MH i2c: E2 08 00 EF 1F 80 11 00 00 00 00 00 00 88 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 17 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 17 00 EF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [08:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:40:58]wFMCommunicate OK [08:40:58]CreateOFDProtocolMessage done [08:40:58]OFDSenderStorePacket 188609 [08:40:58]StoreOFDPacket docnum=188609 [08:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 29 5A 04 01 1F EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9C B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E0 02 00 35 04 06 00 3E 4B 13 4C 85 60 65 A1 D0 5D 85 7A 92 D4 [08:40:58]CheckFolder [08:40:58]dirname=/storage/ofd_packets [08:40:58]CheckFolder done [08:40:58]ProducePacketName [08:40:58]name=ofd_packets/00188609 [08:40:58]NVStorageSaveData ofd_packets/00188609 [08:40:58]File name is /storage/ofd_packets/00188609 [08:40:58]Write 298 bytes [08:40:58]NVStorageSaveData done [08:40:58]OFDSenderStorePacket done [08:40:58]KKMCreateOFDPacket done [08:40:58]NVStorageSaveData kkm_last_timestamp [08:40:58]File name is /storage/kkm_last_timestamp [08:40:58]Write 4 bytes [08:40:58]NVStorageSaveData done [08:40:58]ExternCall_PrintAddStr [08:40:58]wPrintStart [08:40:58]Write to MH i2c: 01 00 00 F0 1F 0F [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 07 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 07 00 F0 1F 00 00 00 00 00 FF 0F 24 [08:40:58]RasterBufferAndPrint [08:40:58]line Счет N : (1)210667 [08:40:58]line ИНН: 02508201610067 [08:40:58]line Контрольно-Кассовый Чек [08:40:58]line ПРОДАЖА [08:40:58]line ТРК (МРК, ГНК) : 51 [08:40:58]line Товар: 2710194210 [08:40:58]line ДТ-К-5 [08:40:58]line 13.130 * 76.20 [08:40:58]line = 1000.51 [08:40:58]line НДС 12% НСП 1% [08:40:58]line > о реализуемом товаре [08:40:58]line ОКРУГЛЕНИЕ: -0.51 [08:40:58]line ИТОГО: 1000.00 [08:40:58]line Внесено: 1000.00 [08:40:58]line СДАЧА: 0.00 [08:40:58]line НСП 1% : 8.85 [08:40:58]line НДС 12% : 106.25 [08:40:58]line Наличными: 1000.00 [08:40:58]line Безнал.: 0.00 [08:40:58]line Место: АЗС № 86 "Партнер Нефть" [08:40:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:40:58]line СНО: Общий режим [08:40:58]line Чек 67 23.10.2024 08:41 [08:40:58]line Смена: 462 ФФД: 1.0 [08:40:58]line ЗНМ: 0300000155 [08:40:58]line РНМ: 0000000000100030 [08:40:58]line Версия ККМ: 001 [08:40:58]line ФМ: 0000000000965340 [08:40:58]line ФД: 188609 [08:40:58]line ФПД: 68492167251296 [08:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084100&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188609&fm=68492167251296&tin=02508201610067®Number=0000000000100030&sum=100000 [08:40:58]written 0, free lines is 4095 [08:40:58]OFD Sender: Processing packet 188609 [packets to send 1062, broken 1061] [08:40:58]ProducePacketName [08:40:58]name=ofd_packets/00188609 [08:40:58]OFD Sender: To server: pG, [08:40:58]CommunicateWithHost lk.salyk.kg:30040 [08:40:58]ConnectInit lk.salyk.kg [08:40:58]Connected sock=10 [08:40:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 29 5A 04 01 1F EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9C B6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E0 02 00 35 04 06 00 3E 4B 13 4C 85 60 65 A1 D0 5D 85 7A 92 D4 [08:40:59]Write to MH i2c: 01 00 00 1B 20 3B [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 07 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 07 00 1B 20 00 00 00 00 00 58 0C A6 [08:40:59]RasterBufferAndPrint [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]written 0, free lines is 3165 [08:40:59]MH_Cut [08:40:59]Write to MH i2c: D1 01 00 22 20 01 14 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: D1 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: D1 01 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: D1 01 00 22 20 00 13 [08:40:59]Write to MH i2c: 01 00 00 23 20 43 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 69 68 47 00 42 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E0 02 00 F4 03 04 00 87 60 18 67 B6 04 01 00 00 2E 3D 02 C6 C0 6E 4F 0E [08:40:59]CommunicateWithHost err = 0 [08:40:59]CheckOFDResponse [08:40:59]1017 (14) - 77093643461234 [08:40:59]1041 (16) - 0000000000965340 [08:40:59]1040 (4) - 188609 [08:40:59]1012 (4) - 23.10.2024 02:33 [08:40:59]1206 (1) - 0 [08:40:59]OFD Sender: Remove packet 188609 [08:40:59]ProducePacketName [08:40:59]name=ofd_packets/00188609 [08:40:59]NVStorageDeleteData [08:40:59]OFD Sender: No OFD packet to send [08:41:00]*** Cut start [08:41:00]*** Partial cut [08:41:00]*** CUTSNS_PIN = 1 [08:41:00]*** CUTSNS_PIN = 0 [08:41:00]*** Brake cut motor [08:41:01]Read from MH i2c: 01 [08:41:01]MH_I2C_Read... [08:41:01]*** Stop cut motor [08:41:01]*** Cut end [08:41:01]Read from MH i2c: 01 07 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: 01 07 00 23 20 00 00 00 00 00 FF 0F 58 [08:41:01]process_action close_receipt done [08:41:01]requested_data is exist [08:41:01]produce_requested_data [08:41:01]requested_item fm.sn is exist - process it [08:41:01]wFMCommunicate request_size=4 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 11 00 00 [08:41:01]Write to MH i2c: E2 08 00 24 20 80 11 00 00 00 00 00 00 BE [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 17 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 17 00 24 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [08:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:41:01]wFMCommunicate OK [08:41:01]requested_item fd.num is exist - process it [08:41:01]SAM_PROTO_GetFieldsCounters [08:41:01]wFMCommunicate request_size=4 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 13 00 00 [08:41:01]Write to MH i2c: E2 08 00 25 20 80 13 00 00 00 00 00 00 C1 [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 62 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 62 00 25 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [08:41:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:01]wFMCommunicate OK [08:41:01]SAM_PROTO_GetFieldsCounters done [08:41:01]requested_item shift.num is exist - process it [08:41:01]requested_item shift.opened is exist - process it [08:41:01]req_shift_opened [08:41:01]FM_GetShiftState [08:41:01]SAM_PROTO_GetShiftState [08:41:01]wFMCommunicate request_size=4 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 13 01 00 [08:41:01]Write to MH i2c: E2 08 00 26 20 80 13 01 00 00 00 00 00 C3 [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 0E 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 0E 00 26 20 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AB [08:41:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:41:01]wFMCommunicate OK [08:41:01]SAM_PROTO_GetShiftState done [08:41:01]FM_GetShiftState done [08:41:01]req_shift_opened done [08:41:01]requested_item shift.open_date is exist - process it [08:41:01]req_shift_open_date [08:41:01]req_shift_open_date done [08:41:01]produce_requested_data done [08:41:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188609,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:41:01]process_action_free close_receipt [08:41:01]json_value_free [08:41:01]json_value_free done [08:41:01]process_json_proto returns [08:41:01]Send response to host [08:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188609,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:41:01]free response buf [08:41:01]execute_script done [08:41:01]execute_script returns [08:41:01]free content buf [08:41:01]Sock 9.Close socket [08:41:01]Sock 9.Thread stoped [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:33]accept exits with 7 [08:47:33]New connection [08:47:33]New thread 3066649956 created [08:47:33]Thread 3066506596 joined [08:47:33]Waiting for new connection... [08:47:33] Sock 7.Parse request [08:47:33]Sock 7.Check first char [08:47:33]Sock 7.First char is OK [08:47:33]request: POST /json_proto HTTP/1.0 [08:47:33]Method: POST [08:47:33]URL: /json_proto [08:47:33]Method is POST - this is cgi request [08:47:33]url: /json_proto [08:47:33]query_string will be loaded in cgi processing [08:47:33]execute_cgi json_proto POST (null) [08:47:33]execute_cgi path=json_proto method=POST [08:47:33]POST find Content-Length [08:47:33]Host: 172.17.42.131:8080 [08:47:33]Content-Length: 682 [08:47:33]Content-Type: application/json [08:47:33] [08:47:33]POST finish read [08:47:33]Found Content-Length = 682 [08:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:33]execute_script... [08:47:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:33]POST & json_proto [08:47:33]process_json_proto [08:47:33]json parsed OK: [08:47:33]protocol is kg_v1.0 [08:47:33]action value=close_receipt [08:47:33]process_action close_receipt [08:47:33]cmd_close_receipt [08:47:33]MH_GetDate [08:47:33]Write to MH i2c: F0 00 00 27 20 36 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: F0 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: F0 09 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: F0 09 00 27 20 00 28 B8 18 67 A0 18 CA 66 86 [08:47:33]GetLastDocTimeStamp 1729672860 [08:47:33]current date 1729673256 [08:47:33]FM_GetShiftState [08:47:33]SAM_PROTO_GetShiftState [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 13 01 00 [08:47:33]Write to MH i2c: E2 08 00 28 20 80 13 01 00 00 00 00 00 C5 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 0E 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 0E 00 28 20 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AD [08:47:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:47:33]wFMCommunicate OK [08:47:33]SAM_PROTO_GetShiftState done [08:47:33]FM_GetShiftState done [08:47:33]opened in 1729642525 [08:47:33]opened+sec_in_day 1729728925 [08:47:33]quantity*price = 150032 [08:47:33]sum+1 = 150033 [08:47:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 68 23.10.2024 08:47 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188610 ФПД: 161134949270480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188610&fm=161134949270480&tin=02508201610067®Number=0000000000100030&sum=150000 [08:47:34]StoreToDocumentArchive [08:47:34]shift 462 fd 188610 [08:47:34]save to /storage/0462/doc_00188610 [08:47:34]save last doc name /storage/0462/doc_00188610 to /storage/kkm_last_doc_name [08:47:34]save OK [08:47:34]Clear old archive folders... [08:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:34]tlvbuf is 0092C8E0 [08:47:34]SAM_PROTO_ClearQueue [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 09 00 00 [08:47:34]Write to MH i2c: E2 08 00 35 20 80 09 00 00 00 00 00 00 C7 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 35 20 00 90 00 C9 [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]SAM_PROTO_ClearQueue done [08:47:34]KKMCreateOFDPacket [08:47:34]OFDProtocolAddRootSTLVToBuf [08:47:34]FM_MakeSignedData [08:47:34]FM_MakeSignedData [08:47:34]SAM_PROTO_SignData [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 01 02 [08:47:34]Write to MH i2c: E2 08 00 36 20 80 0D 01 02 00 00 00 00 CF [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 36 20 00 90 00 CA [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]wFMCommunicate request_size=255 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 28 B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E0 02 00 35 04 06 00 92 [08:47:34]Write to MH i2c: E2 02 01 37 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 28 B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E0 02 00 35 04 06 00 92 00 00 4D [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 37 20 00 90 00 CB [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]wFMCommunicate request_size=10 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 02 02 05 8D 27 69 83 D0 [08:47:34]Write to MH i2c: E2 0D 00 38 20 80 0D 02 02 05 00 8D 27 69 83 D0 00 00 4C [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 03 02 [08:47:34]Write to MH i2c: E2 08 00 39 20 80 0D 03 02 00 00 00 00 D4 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 0B 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 0B 00 39 20 00 F9 7D F0 AA D6 AA E3 DF 90 00 27 [08:47:34]RAPDU: F9 7D F0 AA D6 AA E3 DF 90 00 [08:47:34]wFMCommunicate OK [08:47:34]SAM_PROTO_SignData done [08:47:34]FM_MakeSignedData done [08:47:34]CreateOFDProtocolMessage [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 11 00 00 [08:47:34]Write to MH i2c: E2 08 00 3A 20 80 11 00 00 00 00 00 00 D4 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 17 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 17 00 3A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [08:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:47:34]wFMCommunicate OK [08:47:34]CreateOFDProtocolMessage done [08:47:34]OFDSenderStorePacket 188610 [08:47:34]StoreOFDPacket docnum=188610 [08:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 41 15 07 01 C4 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 28 B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E0 02 00 35 04 06 00 92 8D 27 69 83 D0 F9 7D F0 AA D6 AA E3 DF [08:47:34]CheckFolder [08:47:34]dirname=/storage/ofd_packets [08:47:34]CheckFolder done [08:47:34]ProducePacketName [08:47:34]name=ofd_packets/00188610 [08:47:34]NVStorageSaveData ofd_packets/00188610 [08:47:34]File name is /storage/ofd_packets/00188610 [08:47:34]Write 301 bytes [08:47:34]NVStorageSaveData done [08:47:34]OFDSenderStorePacket done [08:47:34]KKMCreateOFDPacket done [08:47:34]NVStorageSaveData kkm_last_timestamp [08:47:34]File name is /storage/kkm_last_timestamp [08:47:34]Write 4 bytes [08:47:34]NVStorageSaveData done [08:47:34]ExternCall_PrintAddStr [08:47:34]wPrintStart [08:47:34]Write to MH i2c: 01 00 00 3B 20 5B [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 3B 20 00 00 00 00 00 FF 0F 70 [08:47:34]RasterBufferAndPrint [08:47:34]line Счет N : (1)210670 [08:47:34]line ИНН: 02508201610067 [08:47:34]line Контрольно-Кассовый Чек [08:47:34]line ПРОДАЖА [08:47:34]line ТРК (МРК, ГНК) : 13 [08:47:34]line Товар: 2710124500 [08:47:34]line Аи-95-К-3 [08:47:34]line 20.220 * 74.20 [08:47:34]line = 1500.32 [08:47:34]line НДС 12% НСП 1% [08:47:34]line > о реализуемом товаре [08:47:34]line ОКРУГЛЕНИЕ: -0.32 [08:47:34]line ИТОГО: 1500.00 [08:47:34]line Внесено: 1500.00 [08:47:34]line СДАЧА: 0.00 [08:47:34]line НСП 1% : 13.28 [08:47:34]line НДС 12% : 159.33 [08:47:34]line Наличными: 1500.00 [08:47:34]line Безнал.: 0.00 [08:47:34]line Место: АЗС № 86 "Партнер Нефть" [08:47:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:47:34]line СНО: Общий режим [08:47:34]line Чек 68 23.10.2024 08:47 [08:47:34]line Смена: 462 ФФД: 1.0 [08:47:34]line ЗНМ: 0300000155 [08:47:34]line РНМ: 0000000000100030 [08:47:34]line Версия ККМ: 001 [08:47:34]line ФМ: 0000000000965340 [08:47:34]line ФД: 188610 [08:47:34]line ФПД: 161134949270480 [08:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188610&fm=161134949270480&tin=02508201610067®Number=0000000000100030&sum=150000 [08:47:34]OFD Sender: Processing packet 188610 [packets to send 1062, broken 1061] [08:47:34]ProducePacketName [08:47:34]name=ofd_packets/00188610 [08:47:34]OFD Sender: To server: pG, [08:47:34]CommunicateWithHost lk.salyk.kg:30040 [08:47:34]ConnectInit lk.salyk.kg [08:47:34]written 0, free lines is 4095 [08:47:35]Connected sock=10 [08:47:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 41 15 07 01 C4 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 28 B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E0 02 00 35 04 06 00 92 8D 27 69 83 D0 F9 7D F0 AA D6 AA E3 DF [08:47:35]Write to MH i2c: 01 00 00 66 20 86 [08:47:35]Write i2c OK [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: 01 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: 01 07 00 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: 01 07 00 66 20 00 00 00 00 00 52 0C EB [08:47:35]RasterBufferAndPrint [08:47:35]line [08:47:35]line [08:47:35]line [08:47:35]line [08:47:35]line [08:47:35]written 0, free lines is 3159 [08:47:35]MH_Cut [08:47:35]Write to MH i2c: D1 01 00 6D 20 01 5F [08:47:35]Write i2c OK [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: D1 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: D1 01 00 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: D1 01 00 6D 20 00 5E [08:47:35]Write to MH i2c: 01 00 00 6E 20 8E [08:47:35]Write i2c OK [08:47:35]MH_I2C_Read... [08:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 90 76 47 00 A1 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E0 02 00 F4 03 04 00 13 62 18 67 B6 04 01 00 00 4E 1F 53 D8 DA 5F 64 16 [08:47:35]CommunicateWithHost err = 0 [08:47:35]CheckOFDResponse [08:47:35]1017 (14) - 77093643461234 [08:47:35]1041 (16) - 0000000000965340 [08:47:35]1040 (4) - 188610 [08:47:35]1012 (4) - 23.10.2024 02:40 [08:47:35]1206 (1) - 0 [08:47:35]OFD Sender: Remove packet 188610 [08:47:35]ProducePacketName [08:47:35]name=ofd_packets/00188610 [08:47:35]NVStorageDeleteData [08:47:35]OFD Sender: No OFD packet to send [08:47:36]*** Cut start [08:47:36]*** Partial cut [08:47:36]*** CUTSNS_PIN = 1 [08:47:36]*** CUTSNS_PIN = 0 [08:47:37]*** Brake cut motor [08:47:37]Read from MH i2c: 01 [08:47:37]MH_I2C_Read... [08:47:37]*** Stop cut motor [08:47:37]*** Cut end [08:47:37]Read from MH i2c: 01 07 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: 01 07 00 6E 20 00 00 00 00 00 FF 0F A3 [08:47:37]process_action close_receipt done [08:47:37]requested_data is exist [08:47:37]produce_requested_data [08:47:37]requested_item fm.sn is exist - process it [08:47:37]wFMCommunicate request_size=4 [08:47:37]MH_SAM_APDU [08:47:37]CAPDU: 80 11 00 00 [08:47:37]Write to MH i2c: E2 08 00 6F 20 80 11 00 00 00 00 00 00 09 [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 17 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 17 00 6F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [08:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:47:37]wFMCommunicate OK [08:47:37]requested_item fd.num is exist - process it [08:47:37]SAM_PROTO_GetFieldsCounters [08:47:37]wFMCommunicate request_size=4 [08:47:37]MH_SAM_APDU [08:47:37]CAPDU: 80 13 00 00 [08:47:37]Write to MH i2c: E2 08 00 70 20 80 13 00 00 00 00 00 00 0C [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 62 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 62 00 70 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [08:47:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:37]wFMCommunicate OK [08:47:37]SAM_PROTO_GetFieldsCounters done [08:47:37]requested_item shift.num is exist - process it [08:47:37]requested_item shift.opened is exist - process it [08:47:37]req_shift_opened [08:47:37]FM_GetShiftState [08:47:37]SAM_PROTO_GetShiftState [08:47:37]wFMCommunicate request_size=4 [08:47:37]MH_SAM_APDU [08:47:37]CAPDU: 80 13 01 00 [08:47:37]Write to MH i2c: E2 08 00 71 20 80 13 01 00 00 00 00 00 0E [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 0E 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 0E 00 71 20 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F6 [08:47:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:47:37]wFMCommunicate OK [08:47:37]SAM_PROTO_GetShiftState done [08:47:37]FM_GetShiftState done [08:47:37]req_shift_opened done [08:47:37]requested_item shift.open_date is exist - process it [08:47:37]req_shift_open_date [08:47:37]req_shift_open_date done [08:47:37]produce_requested_data done [08:47:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188610,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:47:37]process_action_free close_receipt [08:47:37]json_value_free [08:47:37]json_value_free done [08:47:37]process_json_proto returns [08:47:37]Send response to host [08:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188610,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:47:37]free response buf [08:47:37]execute_script done [08:47:37]execute_script returns [08:47:37]free content buf [08:47:37]Sock 7.Close socket [08:47:37]Sock 7.Thread stoped [08:47:39]accept exits with 9 [08:47:39]New connection [08:47:39]New thread 3066506596 created [08:47:39]Thread 3066649956 joined [08:47:39]Waiting for new connection... [08:47:39] Sock 9.Parse request [08:47:39]Sock 9.Check first char [08:47:39]Sock 9.First char is OK [08:47:39]request: POST /json_proto HTTP/1.0 [08:47:39]Method: POST [08:47:39]URL: /json_proto [08:47:39]Method is POST - this is cgi request [08:47:39]url: /json_proto [08:47:39]query_string will be loaded in cgi processing [08:47:39]execute_cgi json_proto POST (null) [08:47:39]execute_cgi path=json_proto method=POST [08:47:39]POST find Content-Length [08:47:39]Host: 172.17.42.131:8080 [08:47:39]Content-Length: 800 [08:47:39]Content-Type: application/json [08:47:39] [08:47:39]POST finish read [08:47:39]Found Content-Length = 800 [08:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1675794", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:39]execute_script... [08:47:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1675794", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:39]POST & json_proto [08:47:39]process_json_proto [08:47:39]json parsed OK: [08:47:39]protocol is kg_v1.0 [08:47:39]action value=close_receipt [08:47:39]process_action close_receipt [08:47:39]cmd_close_receipt [08:47:39]MH_GetDate [08:47:39]Write to MH i2c: F0 00 00 72 20 81 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: F0 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: F0 09 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: F0 09 00 72 20 00 2E B8 18 67 A0 18 CA 66 D7 [08:47:39]GetLastDocTimeStamp 1729673256 [08:47:39]current date 1729673262 [08:47:39]FM_GetShiftState [08:47:39]SAM_PROTO_GetShiftState [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 13 01 00 [08:47:39]Write to MH i2c: E2 08 00 73 20 80 13 01 00 00 00 00 00 10 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 0E 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 0E 00 73 20 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F8 [08:47:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:47:39]wFMCommunicate OK [08:47:39]SAM_PROTO_GetShiftState done [08:47:39]FM_GetShiftState done [08:47:39]opened in 1729642525 [08:47:39]opened+sec_in_day 1729728925 [08:47:39]quantity*price = 0 [08:47:39]sum+1 = 1 [08:47:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 69 23.10.2024 08:47 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 1675794 ФМ: 0000000000965340 ФД: 188611 ФПД: 163840654014979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084742&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188611&fm=163840654014979&tin=02508201610067®Number=0000000000100030&sum=0 [08:47:40]StoreToDocumentArchive [08:47:40]shift 462 fd 188611 [08:47:40]save to /storage/0462/doc_00188611 [08:47:40]save last doc name /storage/0462/doc_00188611 to /storage/kkm_last_doc_name [08:47:40]save OK [08:47:40]Clear old archive folders... [08:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:40]tlvbuf is B6E5E7D0 [08:47:40]SAM_PROTO_ClearQueue [08:47:40]wFMCommunicate request_size=4 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 09 00 00 [08:47:40]Write to MH i2c: E2 08 00 80 20 80 09 00 00 00 00 00 00 12 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 03 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 03 00 80 20 00 90 00 14 [08:47:40]RAPDU: 90 00 [08:47:40]wFMCommunicate OK [08:47:40]SAM_PROTO_ClearQueue done [08:47:40]KKMCreateOFDPacket [08:47:40]OFDProtocolAddRootSTLVToBuf [08:47:40]FM_MakeSignedData [08:47:40]FM_MakeSignedData [08:47:40]SAM_PROTO_SignData [08:47:40]wFMCommunicate request_size=4 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 0D 01 02 [08:47:40]Write to MH i2c: E2 08 00 81 20 80 0D 01 02 00 00 00 00 1A [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 03 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [08:47:40]RAPDU: 90 00 [08:47:40]wFMCommunicate OK [08:47:40]wFMCommunicate request_size=255 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2E B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E0 02 00 35 04 06 00 95 [08:47:40]Write to MH i2c: E2 02 01 82 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2E B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E0 02 00 35 04 06 00 95 00 00 2D [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 03 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 03 00 82 20 00 90 00 16 [08:47:40]RAPDU: 90 00 [08:47:40]wFMCommunicate OK [08:47:40]wFMCommunicate request_size=10 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 0D 02 02 05 03 1F FB 7A 03 [08:47:40]Write to MH i2c: E2 0D 00 83 20 80 0D 02 02 05 00 03 1F FB 7A 03 00 00 C1 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 03 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [08:47:40]RAPDU: 90 00 [08:47:40]wFMCommunicate OK [08:47:40]wFMCommunicate request_size=4 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 0D 03 02 [08:47:40]Write to MH i2c: E2 08 00 84 20 80 0D 03 02 00 00 00 00 1F [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 0B 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 0B 00 84 20 00 27 45 6B 43 F9 A2 55 CE 90 00 F8 [08:47:40]RAPDU: 27 45 6B 43 F9 A2 55 CE 90 00 [08:47:40]wFMCommunicate OK [08:47:40]SAM_PROTO_SignData done [08:47:40]FM_MakeSignedData done [08:47:40]CreateOFDProtocolMessage [08:47:40]wFMCommunicate request_size=4 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 11 00 00 [08:47:40]Write to MH i2c: E2 08 00 85 20 80 11 00 00 00 00 00 00 1F [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 17 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 17 00 85 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [08:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:47:40]wFMCommunicate OK [08:47:40]CreateOFDProtocolMessage done [08:47:40]OFDSenderStorePacket 188611 [08:47:40]StoreOFDPacket docnum=188611 [08:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 00 07 01 B7 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2E B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E0 02 00 35 04 06 00 95 03 1F FB 7A 03 27 45 6B 43 F9 A2 55 CE [08:47:40]CheckFolder [08:47:40]dirname=/storage/ofd_packets [08:47:40]CheckFolder done [08:47:40]ProducePacketName [08:47:40]name=ofd_packets/00188611 [08:47:40]NVStorageSaveData ofd_packets/00188611 [08:47:40]File name is /storage/ofd_packets/00188611 [08:47:40]Write 301 bytes [08:47:40]NVStorageSaveData done [08:47:40]OFDSenderStorePacket done [08:47:40]KKMCreateOFDPacket done [08:47:40]NVStorageSaveData kkm_last_timestamp [08:47:40]File name is /storage/kkm_last_timestamp [08:47:40]Write 4 bytes [08:47:40]NVStorageSaveData done [08:47:40]ExternCall_PrintAddStr [08:47:40]wPrintStart [08:47:40]Write to MH i2c: 01 00 00 86 20 A6 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 07 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 07 00 86 20 00 00 00 00 00 FF 0F BB [08:47:40]RasterBufferAndPrint [08:47:40]line Счет N : (1)210671 [08:47:40]line ИНН: 02508201610067 [08:47:40]line Контрольно-Кассовый Чек [08:47:40]line ПРОДАЖА [08:47:40]line ТРК (МРК, ГНК) : 43 [08:47:40]line Товар: 2710124500 [08:47:40]line Аи-95-К-3 [08:47:40]line 20.000 * 0.00 [08:47:40]line = 0.00 [08:47:40]line НДС 12% НСП 1% [08:47:40]line > о реализуемом товаре [08:47:40]line ИТОГО: 0.00 [08:47:40]line НСП 1% : 0.00 [08:47:40]line НДС 12% : 0.00 [08:47:40]line Наличными: 0.00 [08:47:40]line Безнал.: 0.00 [08:47:40]line Место: АЗС № 86 "Партнер Нефть" [08:47:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:47:40]line СНО: Общий режим [08:47:40]line Чек 69 23.10.2024 08:47 [08:47:40]line Смена: 462 ФФД: 1.0 [08:47:40]line ЗНМ: 0300000155 [08:47:40]line РНМ: 0000000000100030 [08:47:40]line Версия ККМ: 001 [08:47:40]line Талоны: Топливные Талоны [08:47:40]line 1675794 [08:47:40]line ФМ: 0000000000965340 [08:47:40]line ФД: 188611 [08:47:40]line ФПД: 163840654014979 [08:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084742&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188611&fm=163840654014979&tin=02508201610067®Number=0000000000100030&sum=0 [08:47:40]written 0, free lines is 4095 [08:47:40]OFD Sender: Processing packet 188611 [packets to send 1062, broken 1061] [08:47:40]ProducePacketName [08:47:40]name=ofd_packets/00188611 [08:47:40]OFD Sender: To server: pG, [08:47:40]CommunicateWithHost lk.salyk.kg:30040 [08:47:40]ConnectInit lk.salyk.kg [08:47:41]Connected sock=10 [08:47:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 00 07 01 B7 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2E B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E0 02 00 35 04 06 00 95 03 1F FB 7A 03 27 45 6B 43 F9 A2 55 CE [08:47:41]Write to MH i2c: 01 00 00 B0 20 D0 [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: 01 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: 01 07 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: 01 07 00 B0 20 00 00 00 00 00 78 0C 5B [08:47:41]RasterBufferAndPrint [08:47:41]line [08:47:41]line [08:47:41]line [08:47:41]line [08:47:41]line [08:47:41]written 0, free lines is 3202 [08:47:41]MH_Cut [08:47:41]Write to MH i2c: D1 01 00 B7 20 01 A9 [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: D1 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: D1 01 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: D1 01 00 B7 20 00 A8 [08:47:41]Write to MH i2c: 01 00 00 B8 20 D8 [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 92 47 00 F3 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E0 02 00 F4 03 04 00 19 62 18 67 B6 04 01 00 00 AB 66 EB BA A1 3C 96 2E [08:47:41]CommunicateWithHost err = 0 [08:47:41]CheckOFDResponse [08:47:41]1017 (14) - 77093643461234 [08:47:41]1041 (16) - 0000000000965340 [08:47:41]1040 (4) - 188611 [08:47:41]1012 (4) - 23.10.2024 02:40 [08:47:41]1206 (1) - 0 [08:47:41]OFD Sender: Remove packet 188611 [08:47:41]ProducePacketName [08:47:41]name=ofd_packets/00188611 [08:47:41]NVStorageDeleteData [08:47:42]OFD Sender: No OFD packet to send [08:47:42]*** Cut start [08:47:42]*** Partial cut [08:47:42]*** CUTSNS_PIN = 1 [08:47:42]*** CUTSNS_PIN = 0 [08:47:42]*** Brake cut motor [08:47:43]Read from MH i2c: 01 [08:47:43]MH_I2C_Read... [08:47:43]*** Stop cut motor [08:47:43]*** Cut end [08:47:43]Read from MH i2c: 01 07 00 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: 01 07 00 B8 20 00 00 00 00 00 FF 0F ED [08:47:43]process_action close_receipt done [08:47:43]requested_data is exist [08:47:43]produce_requested_data [08:47:43]requested_item fm.sn is exist - process it [08:47:43]wFMCommunicate request_size=4 [08:47:43]MH_SAM_APDU [08:47:43]CAPDU: 80 11 00 00 [08:47:43]Write to MH i2c: E2 08 00 B9 20 80 11 00 00 00 00 00 00 53 [08:47:43]Write i2c OK [08:47:43]MH_I2C_Read... [08:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:43]Read from MH i2c: E2 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: E2 17 00 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: E2 17 00 B9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [08:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:47:43]wFMCommunicate OK [08:47:43]requested_item fd.num is exist - process it [08:47:43]SAM_PROTO_GetFieldsCounters [08:47:43]wFMCommunicate request_size=4 [08:47:43]MH_SAM_APDU [08:47:43]CAPDU: 80 13 00 00 [08:47:43]Write to MH i2c: E2 08 00 BA 20 80 13 00 00 00 00 00 00 56 [08:47:43]Write i2c OK [08:47:43]MH_I2C_Read... [08:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:43]Read from MH i2c: E2 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: E2 62 00 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: E2 62 00 BA 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [08:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:43]wFMCommunicate OK [08:47:43]SAM_PROTO_GetFieldsCounters done [08:47:43]requested_item shift.num is exist - process it [08:47:43]requested_item shift.opened is exist - process it [08:47:43]req_shift_opened [08:47:43]FM_GetShiftState [08:47:43]SAM_PROTO_GetShiftState [08:47:43]wFMCommunicate request_size=4 [08:47:43]MH_SAM_APDU [08:47:43]CAPDU: 80 13 01 00 [08:47:43]Write to MH i2c: E2 08 00 BB 20 80 13 01 00 00 00 00 00 58 [08:47:43]Write i2c OK [08:47:43]MH_I2C_Read... [08:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:43]Read from MH i2c: E2 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: E2 0E 00 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: E2 0E 00 BB 20 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 40 [08:47:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:47:43]wFMCommunicate OK [08:47:43]SAM_PROTO_GetShiftState done [08:47:43]FM_GetShiftState done [08:47:43]req_shift_opened done [08:47:43]requested_item shift.open_date is exist - process it [08:47:43]req_shift_open_date [08:47:43]req_shift_open_date done [08:47:43]produce_requested_data done [08:47:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188611,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:47:43]process_action_free close_receipt [08:47:43]json_value_free [08:47:43]json_value_free done [08:47:43]process_json_proto returns [08:47:43]Send response to host [08:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188611,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:47:43]free response buf [08:47:43]execute_script done [08:47:43]execute_script returns [08:47:43]free content buf [08:47:43]Sock 9.Close socket [08:47:43]Sock 9.Thread stoped [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:21]accept exits with 7 [08:48:21]New connection [08:48:21]New thread 3066649956 created [08:48:21]Thread 3066506596 joined [08:48:21]Waiting for new connection... [08:48:21] Sock 7.Parse request [08:48:21]Sock 7.Check first char [08:48:21]Sock 7.First char is OK [08:48:21]request: POST /json_proto HTTP/1.0 [08:48:21]Method: POST [08:48:21]URL: /json_proto [08:48:21]Method is POST - this is cgi request [08:48:21]url: /json_proto [08:48:21]query_string will be loaded in cgi processing [08:48:21]execute_cgi json_proto POST (null) [08:48:21]execute_cgi path=json_proto method=POST [08:48:21]POST find Content-Length [08:48:21]Host: 172.17.42.131:8080 [08:48:21]Content-Length: 769 [08:48:21]Content-Type: application/json [08:48:21] [08:48:21]POST finish read [08:48:21]Found Content-Length = 769 [08:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:21]execute_script... [08:48:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:21]POST & json_proto [08:48:21]process_json_proto [08:48:21]json parsed OK: [08:48:21]protocol is kg_v1.0 [08:48:21]action value=close_receipt [08:48:21]process_action close_receipt [08:48:21]cmd_close_receipt [08:48:21]MH_GetDate [08:48:21]Write to MH i2c: F0 00 00 BC 20 CB [08:48:21]Write i2c OK [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: F0 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: F0 09 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: F0 09 00 BC 20 00 59 B8 18 67 A0 18 CA 66 4C [08:48:21]GetLastDocTimeStamp 1729673262 [08:48:21]current date 1729673305 [08:48:21]FM_GetShiftState [08:48:21]SAM_PROTO_GetShiftState [08:48:21]wFMCommunicate request_size=4 [08:48:21]MH_SAM_APDU [08:48:21]CAPDU: 80 13 01 00 [08:48:21]Write to MH i2c: E2 08 00 BD 20 80 13 01 00 00 00 00 00 5A [08:48:21]Write i2c OK [08:48:21]MH_I2C_Read... [08:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:21]Read from MH i2c: E2 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 0E 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 0E 00 BD 20 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 42 [08:48:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:48:21]wFMCommunicate OK [08:48:21]SAM_PROTO_GetShiftState done [08:48:21]FM_GetShiftState done [08:48:21]opened in 1729642525 [08:48:21]opened+sec_in_day 1729728925 [08:48:21]quantity*price = 200031 [08:48:21]sum+1 = 200032 [08:48:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 70 23.10.2024 08:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188612 ФПД: 74292401638051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084825&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188612&fm=74292401638051&tin=02508201610067®Number=0000000000100030&sum=200031 [08:48:23]StoreToDocumentArchive [08:48:23]shift 462 fd 188612 [08:48:23]save to /storage/0462/doc_00188612 [08:48:23]save last doc name /storage/0462/doc_00188612 to /storage/kkm_last_doc_name [08:48:23]save OK [08:48:23]Clear old archive folders... [08:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:23]tlvbuf is 0090C0B0 [08:48:23]SAM_PROTO_ClearQueue [08:48:23]wFMCommunicate request_size=4 [08:48:23]MH_SAM_APDU [08:48:23]CAPDU: 80 09 00 00 [08:48:23]Write to MH i2c: E2 08 00 CA 20 80 09 00 00 00 00 00 00 5C [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:23]Read from MH i2c: E2 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 03 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 03 00 CA 20 00 90 00 5E [08:48:23]RAPDU: 90 00 [08:48:23]wFMCommunicate OK [08:48:23]SAM_PROTO_ClearQueue done [08:48:23]KKMCreateOFDPacket [08:48:23]OFDProtocolAddRootSTLVToBuf [08:48:23]FM_MakeSignedData [08:48:23]FM_MakeSignedData [08:48:23]SAM_PROTO_SignData [08:48:23]wFMCommunicate request_size=4 [08:48:23]MH_SAM_APDU [08:48:23]CAPDU: 80 0D 01 02 [08:48:23]Write to MH i2c: E2 08 00 CB 20 80 0D 01 02 00 00 00 00 64 [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:23]Read from MH i2c: E2 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 03 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [08:48:23]RAPDU: 90 00 [08:48:23]wFMCommunicate OK [08:48:23]wFMCommunicate request_size=255 [08:48:23]MH_SAM_APDU [08:48:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 59 B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E0 02 00 35 04 06 00 43 [08:48:23]Write to MH i2c: E2 02 01 CC 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 59 B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E0 02 00 35 04 06 00 43 00 00 E5 [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:23]Read from MH i2c: E2 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 03 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [08:48:23]RAPDU: 90 00 [08:48:23]wFMCommunicate OK [08:48:23]wFMCommunicate request_size=10 [08:48:23]MH_SAM_APDU [08:48:23]CAPDU: 80 0D 02 02 05 91 8C 35 8A A3 [08:48:23]Write to MH i2c: E2 0D 00 CD 20 80 0D 02 02 05 00 91 8C 35 8A A3 00 00 F0 [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:23]Read from MH i2c: E2 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 03 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 03 00 CD 20 00 90 00 61 [08:48:23]RAPDU: 90 00 [08:48:23]wFMCommunicate OK [08:48:23]wFMCommunicate request_size=4 [08:48:23]MH_SAM_APDU [08:48:23]CAPDU: 80 0D 03 02 [08:48:23]Write to MH i2c: E2 08 00 CE 20 80 0D 03 02 00 00 00 00 69 [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:23]Read from MH i2c: E2 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 0B 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 0B 00 CE 20 00 F8 E2 92 0E 1A 25 12 4A 90 00 7F [08:48:23]RAPDU: F8 E2 92 0E 1A 25 12 4A 90 00 [08:48:23]wFMCommunicate OK [08:48:23]SAM_PROTO_SignData done [08:48:23]FM_MakeSignedData done [08:48:23]CreateOFDProtocolMessage [08:48:23]wFMCommunicate request_size=4 [08:48:23]MH_SAM_APDU [08:48:23]CAPDU: 80 11 00 00 [08:48:23]Write to MH i2c: E2 08 00 CF 20 80 11 00 00 00 00 00 00 69 [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:23]Read from MH i2c: E2 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 17 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: E2 17 00 CF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [08:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:48:23]wFMCommunicate OK [08:48:23]CreateOFDProtocolMessage done [08:48:23]OFDSenderStorePacket 188612 [08:48:23]StoreOFDPacket docnum=188612 [08:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A F3 07 01 35 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 59 B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E0 02 00 35 04 06 00 43 91 8C 35 8A A3 F8 E2 92 0E 1A 25 12 4A [08:48:23]CheckFolder [08:48:23]dirname=/storage/ofd_packets [08:48:23]CheckFolder done [08:48:23]ProducePacketName [08:48:23]name=ofd_packets/00188612 [08:48:23]NVStorageSaveData ofd_packets/00188612 [08:48:23]File name is /storage/ofd_packets/00188612 [08:48:23]Write 301 bytes [08:48:23]NVStorageSaveData done [08:48:23]OFDSenderStorePacket done [08:48:23]KKMCreateOFDPacket done [08:48:23]NVStorageSaveData kkm_last_timestamp [08:48:23]File name is /storage/kkm_last_timestamp [08:48:23]Write 4 bytes [08:48:23]NVStorageSaveData done [08:48:23]ExternCall_PrintAddStr [08:48:23]wPrintStart [08:48:23]Write to MH i2c: 01 00 00 D0 20 F0 [08:48:23]Write i2c OK [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: 01 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: 01 07 00 [08:48:23]MH_I2C_Read... [08:48:23]Read from MH i2c: 01 07 00 D0 20 00 00 00 00 00 FF 0F 05 [08:48:23]RasterBufferAndPrint [08:48:23]line Счет N : (1)210669 [08:48:23]line ИНН: 02508201610067 [08:48:23]line Контрольно-Кассовый Чек [08:48:23]line ПРОДАЖА [08:48:23]line ТРК (МРК, ГНК) : 32 [08:48:23]line Товар: 2710124130 [08:48:23]line Аи-92-К-3 [08:48:23]line 29.900 * 66.90 [08:48:23]line = 2000.31 [08:48:23]line НДС 12% НСП 1% [08:48:23]line > о реализуемом товаре [08:48:23]line ИТОГО: 2000.31 [08:48:23]line НСП 1% : 17.70 [08:48:23]line НДС 12% : 212.42 [08:48:23]line Наличными: 0.00 [08:48:23]line Безнал.: 2000.31 [08:48:23]line Место: АЗС № 86 "Партнер Нефть" [08:48:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:48:23]line СНО: Общий режим [08:48:23]line Чек 70 23.10.2024 08:48 [08:48:23]line Смена: 462 ФФД: 1.0 [08:48:23]line ЗНМ: 0300000155 [08:48:23]line РНМ: 0000000000100030 [08:48:23]line Версия ККМ: 001 [08:48:23]line Платежная система: Mbank [08:48:23]line ФМ: 0000000000965340 [08:48:23]line ФД: 188612 [08:48:23]line ФПД: 74292401638051 [08:48:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084825&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188612&fm=74292401638051&tin=02508201610067®Number=0000000000100030&sum=200031 [08:48:23]written 0, free lines is 4095 [08:48:23]OFD Sender: Processing packet 188612 [packets to send 1062, broken 1061] [08:48:23]ProducePacketName [08:48:23]name=ofd_packets/00188612 [08:48:23]OFD Sender: To server: pG, [08:48:23]CommunicateWithHost lk.salyk.kg:30040 [08:48:23]ConnectInit lk.salyk.kg [08:48:23]Connected sock=10 [08:48:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A F3 07 01 35 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 59 B8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E0 02 00 35 04 06 00 43 91 8C 35 8A A3 F8 E2 92 0E 1A 25 12 4A [08:48:24]Write to MH i2c: 01 00 00 F9 20 19 [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: 01 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: 01 07 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: 01 07 00 F9 20 00 00 00 00 00 82 0C AE [08:48:24]RasterBufferAndPrint [08:48:24]line [08:48:24]line [08:48:24]line [08:48:24]line [08:48:24]line [08:48:24]written 0, free lines is 3206 [08:48:24]MH_Cut [08:48:24]Write to MH i2c: D1 01 00 00 21 01 F3 [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: D1 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: D1 01 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: D1 01 00 00 21 00 F2 [08:48:24]Write to MH i2c: 01 00 00 01 21 22 [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CA 62 47 00 F0 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E0 02 00 F4 03 04 00 44 62 18 67 B6 04 01 00 00 26 21 E0 30 E4 59 AA 17 [08:48:24]CommunicateWithHost err = 0 [08:48:24]CheckOFDResponse [08:48:24]1017 (14) - 77093643461234 [08:48:24]1041 (16) - 0000000000965340 [08:48:24]1040 (4) - 188612 [08:48:24]1012 (4) - 23.10.2024 02:41 [08:48:24]1206 (1) - 0 [08:48:24]OFD Sender: Remove packet 188612 [08:48:24]ProducePacketName [08:48:24]name=ofd_packets/00188612 [08:48:24]NVStorageDeleteData [08:48:24]OFD Sender: No OFD packet to send [08:48:25]*** Cut start [08:48:25]*** Partial cut [08:48:25]*** CUTSNS_PIN = 1 [08:48:25]*** CUTSNS_PIN = 0 [08:48:25]*** Brake cut motor [08:48:25]Read from MH i2c: 01 [08:48:26]MH_I2C_Read... [08:48:26]*** Stop cut motor [08:48:26]*** Cut end [08:48:26]Read from MH i2c: 01 07 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 01 21 00 00 00 00 00 FF 0F 37 [08:48:26]process_action close_receipt done [08:48:26]requested_data is exist [08:48:26]produce_requested_data [08:48:26]requested_item fm.sn is exist - process it [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 11 00 00 [08:48:26]Write to MH i2c: E2 08 00 02 21 80 11 00 00 00 00 00 00 9D [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:26]Read from MH i2c: E2 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 17 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 17 00 02 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [08:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:48:26]wFMCommunicate OK [08:48:26]requested_item fd.num is exist - process it [08:48:26]SAM_PROTO_GetFieldsCounters [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 13 00 00 [08:48:26]Write to MH i2c: E2 08 00 03 21 80 13 00 00 00 00 00 00 A0 [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:26]Read from MH i2c: E2 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 62 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 62 00 03 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [08:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:26]wFMCommunicate OK [08:48:26]SAM_PROTO_GetFieldsCounters done [08:48:26]requested_item shift.num is exist - process it [08:48:26]requested_item shift.opened is exist - process it [08:48:26]req_shift_opened [08:48:26]FM_GetShiftState [08:48:26]SAM_PROTO_GetShiftState [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 13 01 00 [08:48:26]Write to MH i2c: E2 08 00 04 21 80 13 01 00 00 00 00 00 A2 [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:26]Read from MH i2c: E2 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 0E 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 0E 00 04 21 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8A [08:48:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:48:26]wFMCommunicate OK [08:48:26]SAM_PROTO_GetShiftState done [08:48:26]FM_GetShiftState done [08:48:26]req_shift_opened done [08:48:26]requested_item shift.open_date is exist - process it [08:48:26]req_shift_open_date [08:48:26]req_shift_open_date done [08:48:26]produce_requested_data done [08:48:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188612,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:48:26]process_action_free close_receipt [08:48:26]json_value_free [08:48:26]json_value_free done [08:48:26]process_json_proto returns [08:48:26]Send response to host [08:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188612,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:48:26]free response buf [08:48:26]execute_script done [08:48:26]execute_script returns [08:48:26]free content buf [08:48:26]Sock 7.Close socket [08:48:26]Sock 7.Thread stoped [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:09]accept exits with 9 [08:53:09]New connection [08:53:09]New thread 3066506596 created [08:53:09]Thread 3066649956 joined [08:53:09]Waiting for new connection... [08:53:09] Sock 9.Parse request [08:53:09]Sock 9.Check first char [08:53:09]Sock 9.First char is OK [08:53:09]request: POST /json_proto HTTP/1.0 [08:53:09]Method: POST [08:53:09]URL: /json_proto [08:53:09]Method is POST - this is cgi request [08:53:09]url: /json_proto [08:53:09]query_string will be loaded in cgi processing [08:53:09]execute_cgi json_proto POST (null) [08:53:09]execute_cgi path=json_proto method=POST [08:53:09]POST find Content-Length [08:53:09]Host: 172.17.42.131:8080 [08:53:09]Content-Length: 819 [08:53:09]Content-Type: application/json [08:53:09] [08:53:09]POST finish read [08:53:09]Found Content-Length = 819 [08:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:09]execute_script... [08:53:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:09]POST & json_proto [08:53:09]process_json_proto [08:53:09]json parsed OK: [08:53:09]protocol is kg_v1.0 [08:53:09]action value=close_receipt [08:53:09]process_action close_receipt [08:53:09]cmd_close_receipt [08:53:09]MH_GetDate [08:53:09]Write to MH i2c: F0 00 00 05 21 15 [08:53:09]Write i2c OK [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: F0 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: F0 09 00 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: F0 09 00 05 21 00 79 B9 18 67 A0 18 CA 66 B7 [08:53:09]GetLastDocTimeStamp 1729673305 [08:53:09]current date 1729673593 [08:53:09]FM_GetShiftState [08:53:09]SAM_PROTO_GetShiftState [08:53:09]wFMCommunicate request_size=4 [08:53:09]MH_SAM_APDU [08:53:09]CAPDU: 80 13 01 00 [08:53:09]Write to MH i2c: E2 08 00 06 21 80 13 01 00 00 00 00 00 A4 [08:53:09]Write i2c OK [08:53:09]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 0E 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 0E 00 06 21 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8C [08:53:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:53:10]wFMCommunicate OK [08:53:10]SAM_PROTO_GetShiftState done [08:53:10]FM_GetShiftState done [08:53:10]opened in 1729642525 [08:53:10]opened+sec_in_day 1729728925 [08:53:10]quantity*price = 150056 [08:53:10]sum+1 = 150058 [08:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 71 23.10.2024 08:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188613 ФПД: 154660053246610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188613&fm=154660053246610&tin=02508201610067®Number=0000000000100030&sum=150057 [08:53:11]StoreToDocumentArchive [08:53:11]shift 462 fd 188613 [08:53:11]save to /storage/0462/doc_00188613 [08:53:11]save last doc name /storage/0462/doc_00188613 to /storage/kkm_last_doc_name [08:53:11]save OK [08:53:11]Clear old archive folders... [08:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:11]tlvbuf is 008FC9C0 [08:53:11]SAM_PROTO_ClearQueue [08:53:11]wFMCommunicate request_size=4 [08:53:11]MH_SAM_APDU [08:53:11]CAPDU: 80 09 00 00 [08:53:11]Write to MH i2c: E2 08 00 13 21 80 09 00 00 00 00 00 00 A6 [08:53:11]Write i2c OK [08:53:11]MH_I2C_Read... [08:53:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:11]Read from MH i2c: E2 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 03 00 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 03 00 13 21 00 90 00 A8 [08:53:11]RAPDU: 90 00 [08:53:11]wFMCommunicate OK [08:53:11]SAM_PROTO_ClearQueue done [08:53:11]KKMCreateOFDPacket [08:53:11]OFDProtocolAddRootSTLVToBuf [08:53:11]FM_MakeSignedData [08:53:11]FM_MakeSignedData [08:53:11]SAM_PROTO_SignData [08:53:11]wFMCommunicate request_size=4 [08:53:11]MH_SAM_APDU [08:53:11]CAPDU: 80 0D 01 02 [08:53:11]Write to MH i2c: E2 08 00 14 21 80 0D 01 02 00 00 00 00 AE [08:53:11]Write i2c OK [08:53:11]MH_I2C_Read... [08:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:11]Read from MH i2c: E2 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 03 00 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 03 00 14 21 00 90 00 A9 [08:53:11]RAPDU: 90 00 [08:53:11]wFMCommunicate OK [08:53:11]wFMCommunicate request_size=255 [08:53:11]MH_SAM_APDU [08:53:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 79 B9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E0 02 00 35 04 06 00 8C [08:53:11]Write to MH i2c: E2 02 01 15 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 79 B9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E0 02 00 35 04 06 00 8C 00 00 D8 [08:53:11]Write i2c OK [08:53:11]MH_I2C_Read... [08:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:11]Read from MH i2c: E2 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 03 00 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 03 00 15 21 00 90 00 AA [08:53:11]RAPDU: 90 00 [08:53:11]wFMCommunicate OK [08:53:11]wFMCommunicate request_size=10 [08:53:11]MH_SAM_APDU [08:53:11]CAPDU: 80 0D 02 02 05 A9 99 88 E2 92 [08:53:11]Write to MH i2c: E2 0D 00 16 21 80 0D 02 02 05 00 A9 99 88 E2 92 00 00 F9 [08:53:11]Write i2c OK [08:53:11]MH_I2C_Read... [08:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:11]Read from MH i2c: E2 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 03 00 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [08:53:11]RAPDU: 90 00 [08:53:11]wFMCommunicate OK [08:53:11]wFMCommunicate request_size=4 [08:53:11]MH_SAM_APDU [08:53:11]CAPDU: 80 0D 03 02 [08:53:11]Write to MH i2c: E2 08 00 17 21 80 0D 03 02 00 00 00 00 B3 [08:53:11]Write i2c OK [08:53:11]MH_I2C_Read... [08:53:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:11]Read from MH i2c: E2 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 0B 00 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 0B 00 17 21 00 34 46 D6 FE 26 95 BF 3E 90 00 BA [08:53:11]RAPDU: 34 46 D6 FE 26 95 BF 3E 90 00 [08:53:11]wFMCommunicate OK [08:53:11]SAM_PROTO_SignData done [08:53:11]FM_MakeSignedData done [08:53:11]CreateOFDProtocolMessage [08:53:11]wFMCommunicate request_size=4 [08:53:11]MH_SAM_APDU [08:53:11]CAPDU: 80 11 00 00 [08:53:11]Write to MH i2c: E2 08 00 18 21 80 11 00 00 00 00 00 00 B3 [08:53:11]Write i2c OK [08:53:11]MH_I2C_Read... [08:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:11]Read from MH i2c: E2 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 17 00 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 17 00 18 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [08:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:53:11]wFMCommunicate OK [08:53:11]CreateOFDProtocolMessage done [08:53:11]OFDSenderStorePacket 188613 [08:53:11]StoreOFDPacket docnum=188613 [08:53:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B7 6B 07 01 F4 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 79 B9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E0 02 00 35 04 06 00 8C A9 99 88 E2 92 34 46 D6 FE 26 95 BF 3E [08:53:11]CheckFolder [08:53:11]dirname=/storage/ofd_packets [08:53:11]CheckFolder done [08:53:11]ProducePacketName [08:53:11]name=ofd_packets/00188613 [08:53:11]NVStorageSaveData ofd_packets/00188613 [08:53:11]File name is /storage/ofd_packets/00188613 [08:53:11]Write 301 bytes [08:53:11]NVStorageSaveData done [08:53:11]OFDSenderStorePacket done [08:53:11]KKMCreateOFDPacket done [08:53:11]NVStorageSaveData kkm_last_timestamp [08:53:11]File name is /storage/kkm_last_timestamp [08:53:11]Write 4 bytes [08:53:11]NVStorageSaveData done [08:53:11]ExternCall_PrintAddStr [08:53:11]wPrintStart [08:53:11]Write to MH i2c: 01 00 00 19 21 3A [08:53:11]Write i2c OK [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: 01 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: 01 07 00 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: 01 07 00 19 21 00 00 00 00 00 FF 0F 4F [08:53:11]RasterBufferAndPrint [08:53:11]line Счет N : (1)210672 [08:53:11]line ИНН: 02508201610067 [08:53:11]line Контрольно-Кассовый Чек [08:53:11]line ПРОДАЖА [08:53:11]line ТРК (МРК, ГНК) : 12 [08:53:11]line Товар: 2710124130 [08:53:11]line Аи-92-К-3 [08:53:11]line 22.430 * 66.90 [08:53:11]line = 1500.57 [08:53:11]line НДС 12% НСП 1% [08:53:11]line > о реализуемом товаре [08:53:11]line ИТОГО: 1500.57 [08:53:11]line НСП 1% : 13.28 [08:53:11]line НДС 12% : 159.35 [08:53:11]line Наличными: 0.00 [08:53:11]line Безнал.: 1500.57 [08:53:11]line Место: АЗС № 86 "Партнер Нефть" [08:53:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:53:11]line СНО: Общий режим [08:53:11]line Чек 71 23.10.2024 08:53 [08:53:11]line Смена: 462 ФФД: 1.0 [08:53:11]line ЗНМ: 0300000155 [08:53:11]line РНМ: 0000000000100030 [08:53:11]line Версия ККМ: 001 [08:53:11]line Платежная система: Бакай Банк [08:53:11]line ФМ: 0000000000965340 [08:53:11]line ФД: 188613 [08:53:11]line ФПД: 154660053246610 [08:53:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188613&fm=154660053246610&tin=02508201610067®Number=0000000000100030&sum=150057 [08:53:11]written 0, free lines is 4095 [08:53:11]OFD Sender: Processing packet 188613 [packets to send 1062, broken 1061] [08:53:11]ProducePacketName [08:53:11]name=ofd_packets/00188613 [08:53:11]OFD Sender: To server: pG, [08:53:11]CommunicateWithHost lk.salyk.kg:30040 [08:53:11]ConnectInit lk.salyk.kg [08:53:11]Connected sock=10 [08:53:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B7 6B 07 01 F4 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 79 B9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E0 02 00 35 04 06 00 8C A9 99 88 E2 92 34 46 D6 FE 26 95 BF 3E [08:53:12]Write to MH i2c: 01 00 00 43 21 64 [08:53:12]Write i2c OK [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: 01 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: 01 07 00 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: 01 07 00 43 21 00 00 00 00 00 6E 0C E5 [08:53:12]RasterBufferAndPrint [08:53:12]line [08:53:12]line [08:53:12]line [08:53:12]line [08:53:12]line [08:53:12]written 0, free lines is 3184 [08:53:12]MH_Cut [08:53:12]Write to MH i2c: D1 01 00 4A 21 01 3D [08:53:12]Write i2c OK [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: D1 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: D1 01 00 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: D1 01 00 4A 21 00 3C [08:53:12]Write to MH i2c: 01 00 00 4B 21 6C [08:53:12]Write i2c OK [08:53:12]MH_I2C_Read... [08:53:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 28 85 47 00 85 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E0 02 00 F4 03 04 00 64 63 18 67 B6 04 01 00 00 E0 60 F6 66 46 25 7A 26 [08:53:12]CommunicateWithHost err = 0 [08:53:12]CheckOFDResponse [08:53:12]1017 (14) - 77093643461234 [08:53:12]1041 (16) - 0000000000965340 [08:53:12]1040 (4) - 188613 [08:53:12]1012 (4) - 23.10.2024 02:45 [08:53:12]1206 (1) - 0 [08:53:12]OFD Sender: Remove packet 188613 [08:53:12]ProducePacketName [08:53:12]name=ofd_packets/00188613 [08:53:12]NVStorageDeleteData [08:53:12]OFD Sender: No OFD packet to send [08:53:13]*** Cut start [08:53:13]*** Partial cut [08:53:13]*** CUTSNS_PIN = 1 [08:53:13]*** CUTSNS_PIN = 0 [08:53:13]*** Brake cut motor [08:53:14]Read from MH i2c: 01 [08:53:14]MH_I2C_Read... [08:53:14]*** Stop cut motor [08:53:14]*** Cut end [08:53:14]Read from MH i2c: 01 07 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 07 00 4B 21 00 00 00 00 00 FF 0F 81 [08:53:14]process_action close_receipt done [08:53:14]requested_data is exist [08:53:14]produce_requested_data [08:53:14]requested_item fm.sn is exist - process it [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 11 00 00 [08:53:14]Write to MH i2c: E2 08 00 4C 21 80 11 00 00 00 00 00 00 E7 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 17 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 17 00 4C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [08:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:53:14]wFMCommunicate OK [08:53:14]requested_item fd.num is exist - process it [08:53:14]SAM_PROTO_GetFieldsCounters [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 13 00 00 [08:53:14]Write to MH i2c: E2 08 00 4D 21 80 13 00 00 00 00 00 00 EA [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 62 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 62 00 4D 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [08:53:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:14]wFMCommunicate OK [08:53:14]SAM_PROTO_GetFieldsCounters done [08:53:14]requested_item shift.num is exist - process it [08:53:14]requested_item shift.opened is exist - process it [08:53:14]req_shift_opened [08:53:14]FM_GetShiftState [08:53:14]SAM_PROTO_GetShiftState [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 13 01 00 [08:53:14]Write to MH i2c: E2 08 00 4E 21 80 13 01 00 00 00 00 00 EC [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0E 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0E 00 4E 21 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D4 [08:53:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:53:14]wFMCommunicate OK [08:53:14]SAM_PROTO_GetShiftState done [08:53:14]FM_GetShiftState done [08:53:14]req_shift_opened done [08:53:14]requested_item shift.open_date is exist - process it [08:53:14]req_shift_open_date [08:53:14]req_shift_open_date done [08:53:14]produce_requested_data done [08:53:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188613,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:53:14]process_action_free close_receipt [08:53:14]json_value_free [08:53:14]json_value_free done [08:53:14]process_json_proto returns [08:53:14]Send response to host [08:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188613,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:53:14]free response buf [08:53:14]execute_script done [08:53:14]execute_script returns [08:53:14]free content buf [08:53:14]Sock 9.Close socket [08:53:14]Sock 9.Thread stoped [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:34]accept exits with 7 [08:55:34]New connection [08:55:34]New thread 3066649956 created [08:55:34]Thread 3066506596 joined [08:55:34]Waiting for new connection... [08:55:34] Sock 7.Parse request [08:55:34]Sock 7.Check first char [08:55:34]Sock 7.First char is OK [08:55:34]request: POST /json_proto HTTP/1.0 [08:55:34]Method: POST [08:55:34]URL: /json_proto [08:55:34]Method is POST - this is cgi request [08:55:34]url: /json_proto [08:55:34]query_string will be loaded in cgi processing [08:55:34]execute_cgi json_proto POST (null) [08:55:34]execute_cgi path=json_proto method=POST [08:55:34]POST find Content-Length [08:55:34]Host: 172.17.42.131:8080 [08:55:34]Content-Length: 688 [08:55:34]Content-Type: application/json [08:55:34] [08:55:34]POST finish read [08:55:34]Found Content-Length = 688 [08:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:34]execute_script... [08:55:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:34]POST & json_proto [08:55:34]process_json_proto [08:55:34]json parsed OK: [08:55:34]protocol is kg_v1.0 [08:55:34]action value=close_receipt [08:55:34]process_action close_receipt [08:55:34]cmd_close_receipt [08:55:34]MH_GetDate [08:55:34]Write to MH i2c: F0 00 00 4F 21 5F [08:55:34]Write i2c OK [08:55:34]MH_I2C_Read... [08:55:34]Read from MH i2c: F0 [08:55:34]MH_I2C_Read... [08:55:34]Read from MH i2c: F0 09 00 [08:55:34]MH_I2C_Read... [08:55:34]Read from MH i2c: F0 09 00 4F 21 00 09 BA 18 67 A0 18 CA 66 92 [08:55:34]GetLastDocTimeStamp 1729673593 [08:55:34]current date 1729673737 [08:55:34]FM_GetShiftState [08:55:34]SAM_PROTO_GetShiftState [08:55:34]wFMCommunicate request_size=4 [08:55:34]MH_SAM_APDU [08:55:34]CAPDU: 80 13 01 00 [08:55:34]Write to MH i2c: E2 08 00 50 21 80 13 01 00 00 00 00 00 EE [08:55:34]Write i2c OK [08:55:34]MH_I2C_Read... [08:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:34]Read from MH i2c: E2 [08:55:34]MH_I2C_Read... [08:55:34]Read from MH i2c: E2 0E 00 [08:55:34]MH_I2C_Read... [08:55:34]Read from MH i2c: E2 0E 00 50 21 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D6 [08:55:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:55:34]wFMCommunicate OK [08:55:34]SAM_PROTO_GetShiftState done [08:55:34]FM_GetShiftState done [08:55:34]opened in 1729642525 [08:55:34]opened+sec_in_day 1729728925 [08:55:34]quantity*price = 300076 [08:55:34]sum+1 = 300077 [08:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 72 23.10.2024 08:55 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188614 ФПД: 149852256121085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085537&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188614&fm=149852256121085&tin=02508201610067®Number=0000000000100030&sum=300000 [08:55:35]StoreToDocumentArchive [08:55:35]shift 462 fd 188614 [08:55:35]save to /storage/0462/doc_00188614 [08:55:35]save last doc name /storage/0462/doc_00188614 to /storage/kkm_last_doc_name [08:55:35]save OK [08:55:35]Clear old archive folders... [08:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:55:35]tlvbuf is 0090BF20 [08:55:35]SAM_PROTO_ClearQueue [08:55:35]wFMCommunicate request_size=4 [08:55:35]MH_SAM_APDU [08:55:35]CAPDU: 80 09 00 00 [08:55:35]Write to MH i2c: E2 08 00 5D 21 80 09 00 00 00 00 00 00 F0 [08:55:35]Write i2c OK [08:55:35]MH_I2C_Read... [08:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:35]Read from MH i2c: E2 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 03 00 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [08:55:35]RAPDU: 90 00 [08:55:35]wFMCommunicate OK [08:55:35]SAM_PROTO_ClearQueue done [08:55:35]KKMCreateOFDPacket [08:55:35]OFDProtocolAddRootSTLVToBuf [08:55:35]FM_MakeSignedData [08:55:35]FM_MakeSignedData [08:55:35]SAM_PROTO_SignData [08:55:35]wFMCommunicate request_size=4 [08:55:35]MH_SAM_APDU [08:55:35]CAPDU: 80 0D 01 02 [08:55:35]Write to MH i2c: E2 08 00 5E 21 80 0D 01 02 00 00 00 00 F8 [08:55:35]Write i2c OK [08:55:35]MH_I2C_Read... [08:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:35]Read from MH i2c: E2 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 03 00 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 03 00 5E 21 00 90 00 F3 [08:55:35]RAPDU: 90 00 [08:55:35]wFMCommunicate OK [08:55:35]wFMCommunicate request_size=255 [08:55:35]MH_SAM_APDU [08:55:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 09 BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E0 02 [08:55:35]Write to MH i2c: E2 02 01 5F 21 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 09 BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E0 02 00 00 38 [08:55:35]Write i2c OK [08:55:35]MH_I2C_Read... [08:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:35]Read from MH i2c: E2 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 03 00 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 03 00 5F 21 00 90 00 F4 [08:55:35]RAPDU: 90 00 [08:55:35]wFMCommunicate OK [08:55:35]wFMCommunicate request_size=16 [08:55:35]MH_SAM_APDU [08:55:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 88 4A 32 7E B0 FD [08:55:35]Write to MH i2c: E2 13 00 60 21 80 0D 02 02 0B 00 00 35 04 06 00 88 4A 32 7E B0 FD 00 00 7F [08:55:35]Write i2c OK [08:55:35]MH_I2C_Read... [08:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:35]Read from MH i2c: E2 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 03 00 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 03 00 60 21 00 90 00 F5 [08:55:35]RAPDU: 90 00 [08:55:35]wFMCommunicate OK [08:55:35]wFMCommunicate request_size=4 [08:55:35]MH_SAM_APDU [08:55:35]CAPDU: 80 0D 03 02 [08:55:35]Write to MH i2c: E2 08 00 61 21 80 0D 03 02 00 00 00 00 FD [08:55:35]Write i2c OK [08:55:35]MH_I2C_Read... [08:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:35]Read from MH i2c: E2 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 0B 00 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 0B 00 61 21 00 E1 3B 12 C5 03 A5 B4 9A 90 00 E7 [08:55:35]RAPDU: E1 3B 12 C5 03 A5 B4 9A 90 00 [08:55:35]wFMCommunicate OK [08:55:35]SAM_PROTO_SignData done [08:55:35]FM_MakeSignedData done [08:55:35]CreateOFDProtocolMessage [08:55:35]wFMCommunicate request_size=4 [08:55:35]MH_SAM_APDU [08:55:35]CAPDU: 80 11 00 00 [08:55:35]Write to MH i2c: E2 08 00 62 21 80 11 00 00 00 00 00 00 FD [08:55:35]Write i2c OK [08:55:35]MH_I2C_Read... [08:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:35]Read from MH i2c: E2 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 17 00 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: E2 17 00 62 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [08:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:55:35]wFMCommunicate OK [08:55:35]CreateOFDProtocolMessage done [08:55:35]OFDSenderStorePacket 188614 [08:55:35]StoreOFDPacket docnum=188614 [08:55:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 64 52 0D 01 C9 7D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 09 BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E0 02 00 35 04 06 00 88 4A 32 7E B0 FD E1 3B 12 C5 03 A5 B4 9A [08:55:35]CheckFolder [08:55:35]dirname=/storage/ofd_packets [08:55:35]CheckFolder done [08:55:35]ProducePacketName [08:55:35]name=ofd_packets/00188614 [08:55:35]NVStorageSaveData ofd_packets/00188614 [08:55:35]File name is /storage/ofd_packets/00188614 [08:55:35]Write 307 bytes [08:55:35]NVStorageSaveData done [08:55:35]OFDSenderStorePacket done [08:55:35]KKMCreateOFDPacket done [08:55:35]NVStorageSaveData kkm_last_timestamp [08:55:35]File name is /storage/kkm_last_timestamp [08:55:35]Write 4 bytes [08:55:35]NVStorageSaveData done [08:55:35]ExternCall_PrintAddStr [08:55:35]wPrintStart [08:55:35]Write to MH i2c: 01 00 00 63 21 84 [08:55:35]Write i2c OK [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: 01 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: 01 07 00 [08:55:35]MH_I2C_Read... [08:55:35]Read from MH i2c: 01 07 00 63 21 00 00 00 00 00 FF 0F 99 [08:55:35]RasterBufferAndPrint [08:55:35]line Счет N : (1)210673 [08:55:35]line ИНН: 02508201610067 [08:55:35]line Контрольно-Кассовый Чек [08:55:35]line ПРОДАЖА [08:55:35]line ТРК (МРК, ГНК) : 21 [08:55:35]line Товар: 2710194210 [08:55:35]line D-ENERGY ДТ-К-5 [08:55:35]line 38.870 * 77.20 [08:55:35]line = 3000.76 [08:55:35]line НДС 12% НСП 1% [08:55:35]line > о реализуемом товаре [08:55:35]line ОКРУГЛЕНИЕ: -0.76 [08:55:35]line ИТОГО: 3000.00 [08:55:35]line Внесено: 3000.00 [08:55:35]line СДАЧА: 0.00 [08:55:35]line НСП 1% : 26.55 [08:55:35]line НДС 12% : 318.66 [08:55:35]line Наличными: 3000.00 [08:55:35]line Безнал.: 0.00 [08:55:35]line Место: АЗС № 86 "Партнер Нефть" [08:55:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:55:35]line СНО: Общий режим [08:55:35]line Чек 72 23.10.2024 08:55 [08:55:35]line Смена: 462 ФФД: 1.0 [08:55:35]line ЗНМ: 0300000155 [08:55:35]line РНМ: 0000000000100030 [08:55:35]line Версия ККМ: 001 [08:55:35]line ФМ: 0000000000965340 [08:55:35]line ФД: 188614 [08:55:35]line ФПД: 149852256121085 [08:55:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085537&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188614&fm=149852256121085&tin=02508201610067®Number=0000000000100030&sum=300000 [08:55:35]written 0, free lines is 4095 [08:55:36]OFD Sender: Processing packet 188614 [packets to send 1062, broken 1061] [08:55:36]ProducePacketName [08:55:36]name=ofd_packets/00188614 [08:55:36]OFD Sender: To server: pG, [08:55:36]CommunicateWithHost lk.salyk.kg:30040 [08:55:36]ConnectInit lk.salyk.kg [08:55:36]Connected sock=10 [08:55:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 64 52 0D 01 C9 7D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 09 BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E0 02 00 35 04 06 00 88 4A 32 7E B0 FD E1 3B 12 C5 03 A5 B4 9A [08:55:36]Write to MH i2c: 01 00 00 8E 21 AF [08:55:36]Write i2c OK [08:55:36]MH_I2C_Read... [08:55:36]Read from MH i2c: 01 [08:55:36]MH_I2C_Read... [08:55:36]Read from MH i2c: 01 07 00 [08:55:36]MH_I2C_Read... [08:55:36]Read from MH i2c: 01 07 00 8E 21 00 00 00 00 00 58 0C 1A [08:55:36]RasterBufferAndPrint [08:55:36]line [08:55:36]line [08:55:36]line [08:55:36]line [08:55:36]line [08:55:36]written 0, free lines is 3164 [08:55:36]MH_Cut [08:55:36]Write to MH i2c: D1 01 00 95 21 01 88 [08:55:36]Write i2c OK [08:55:36]MH_I2C_Read... [08:55:36]Read from MH i2c: D1 [08:55:36]MH_I2C_Read... [08:55:36]Read from MH i2c: D1 01 00 [08:55:36]MH_I2C_Read... [08:55:36]Read from MH i2c: D1 01 00 95 21 00 87 [08:55:36]Write to MH i2c: 01 00 00 96 21 B7 [08:55:36]Write i2c OK [08:55:36]MH_I2C_Read... [08:55:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 6B 47 00 13 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E0 02 00 F4 03 04 00 F4 63 18 67 B6 04 01 00 00 43 37 B6 7A 34 13 59 EA [08:55:36]CommunicateWithHost err = 0 [08:55:36]CheckOFDResponse [08:55:36]1017 (14) - 77093643461234 [08:55:36]1041 (16) - 0000000000965340 [08:55:36]1040 (4) - 188614 [08:55:36]1012 (4) - 23.10.2024 02:48 [08:55:36]1206 (1) - 0 [08:55:36]OFD Sender: Remove packet 188614 [08:55:36]ProducePacketName [08:55:36]name=ofd_packets/00188614 [08:55:36]NVStorageDeleteData [08:55:37]OFD Sender: No OFD packet to send [08:55:37]*** Cut start [08:55:37]*** Partial cut [08:55:37]*** CUTSNS_PIN = 1 [08:55:37]*** CUTSNS_PIN = 0 [08:55:37]*** Brake cut motor [08:55:38]Read from MH i2c: 01 [08:55:38]MH_I2C_Read... [08:55:38]*** Stop cut motor [08:55:38]*** Cut end [08:55:38]Read from MH i2c: 01 07 00 [08:55:38]MH_I2C_Read... [08:55:38]Read from MH i2c: 01 07 00 96 21 00 00 00 00 00 FF 0F CC [08:55:38]process_action close_receipt done [08:55:38]requested_data is exist [08:55:38]produce_requested_data [08:55:38]requested_item fm.sn is exist - process it [08:55:38]wFMCommunicate request_size=4 [08:55:38]MH_SAM_APDU [08:55:38]CAPDU: 80 11 00 00 [08:55:38]Write to MH i2c: E2 08 00 97 21 80 11 00 00 00 00 00 00 32 [08:55:38]Write i2c OK [08:55:38]MH_I2C_Read... [08:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:38]Read from MH i2c: E2 [08:55:38]MH_I2C_Read... [08:55:38]Read from MH i2c: E2 17 00 [08:55:38]MH_I2C_Read... [08:55:38]Read from MH i2c: E2 17 00 97 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [08:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:55:38]wFMCommunicate OK [08:55:38]requested_item fd.num is exist - process it [08:55:38]SAM_PROTO_GetFieldsCounters [08:55:38]wFMCommunicate request_size=4 [08:55:38]MH_SAM_APDU [08:55:38]CAPDU: 80 13 00 00 [08:55:38]Write to MH i2c: E2 08 00 98 21 80 13 00 00 00 00 00 00 35 [08:55:38]Write i2c OK [08:55:38]MH_I2C_Read... [08:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:38]Read from MH i2c: E2 [08:55:38]MH_I2C_Read... [08:55:38]Read from MH i2c: E2 62 00 [08:55:38]MH_I2C_Read... [08:55:38]Read from MH i2c: E2 62 00 98 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [08:55:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:38]wFMCommunicate OK [08:55:38]SAM_PROTO_GetFieldsCounters done [08:55:38]requested_item shift.num is exist - process it [08:55:38]requested_item shift.opened is exist - process it [08:55:38]req_shift_opened [08:55:38]FM_GetShiftState [08:55:38]SAM_PROTO_GetShiftState [08:55:38]wFMCommunicate request_size=4 [08:55:38]MH_SAM_APDU [08:55:38]CAPDU: 80 13 01 00 [08:55:38]Write to MH i2c: E2 08 00 99 21 80 13 01 00 00 00 00 00 37 [08:55:38]Write i2c OK [08:55:38]MH_I2C_Read... [08:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:38]Read from MH i2c: E2 [08:55:38]MH_I2C_Read... [08:55:38]Read from MH i2c: E2 0E 00 [08:55:38]MH_I2C_Read... [08:55:38]Read from MH i2c: E2 0E 00 99 21 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1F [08:55:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:55:38]wFMCommunicate OK [08:55:38]SAM_PROTO_GetShiftState done [08:55:38]FM_GetShiftState done [08:55:38]req_shift_opened done [08:55:38]requested_item shift.open_date is exist - process it [08:55:38]req_shift_open_date [08:55:38]req_shift_open_date done [08:55:38]produce_requested_data done [08:55:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188614,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:55:38]process_action_free close_receipt [08:55:38]json_value_free [08:55:38]json_value_free done [08:55:38]process_json_proto returns [08:55:38]Send response to host [08:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188614,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:55:38]free response buf [08:55:38]execute_script done [08:55:38]execute_script returns [08:55:38]free content buf [08:55:38]Sock 7.Close socket [08:55:38]Sock 7.Thread stoped [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:44]accept exits with 9 [08:57:44]New connection [08:57:44]New thread 3066506596 created [08:57:44]Thread 3066649956 joined [08:57:44]Waiting for new connection... [08:57:44] Sock 9.Parse request [08:57:44]Sock 9.Check first char [08:57:44]Sock 9.First char is OK [08:57:44]request: POST /json_proto HTTP/1.0 [08:57:44]Method: POST [08:57:44]URL: /json_proto [08:57:44]Method is POST - this is cgi request [08:57:44]url: /json_proto [08:57:44]query_string will be loaded in cgi processing [08:57:44]execute_cgi json_proto POST (null) [08:57:44]execute_cgi path=json_proto method=POST [08:57:44]POST find Content-Length [08:57:44]Host: 172.17.42.131:8080 [08:57:44]Content-Length: 688 [08:57:44]Content-Type: application/json [08:57:44] [08:57:44]POST finish read [08:57:44]Found Content-Length = 688 [08:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:44]execute_script... [08:57:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:44]POST & json_proto [08:57:44]process_json_proto [08:57:44]json parsed OK: [08:57:44]protocol is kg_v1.0 [08:57:44]action value=close_receipt [08:57:44]process_action close_receipt [08:57:44]cmd_close_receipt [08:57:44]MH_GetDate [08:57:44]Write to MH i2c: F0 00 00 9A 21 AA [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 09 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 09 00 9A 21 00 8B BA 18 67 A0 18 CA 66 5F [08:57:44]GetLastDocTimeStamp 1729673737 [08:57:44]current date 1729673867 [08:57:44]FM_GetShiftState [08:57:44]SAM_PROTO_GetShiftState [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 13 01 00 [08:57:44]Write to MH i2c: E2 08 00 9B 21 80 13 01 00 00 00 00 00 39 [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 9B 21 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 21 [08:57:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:57:44]wFMCommunicate OK [08:57:44]SAM_PROTO_GetShiftState done [08:57:44]FM_GetShiftState done [08:57:44]opened in 1729642525 [08:57:44]opened+sec_in_day 1729728925 [08:57:44]quantity*price = 100051 [08:57:44]sum+1 = 100052 [08:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 73 23.10.2024 08:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188615 ФПД: 171860691971728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188615&fm=171860691971728&tin=02508201610067®Number=0000000000100030&sum=100000 [08:57:45]StoreToDocumentArchive [08:57:45]shift 462 fd 188615 [08:57:45]save to /storage/0462/doc_00188615 [08:57:45]save last doc name /storage/0462/doc_00188615 to /storage/kkm_last_doc_name [08:57:45]save OK [08:57:45]Clear old archive folders... [08:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:57:45]tlvbuf is 008D21A0 [08:57:45]SAM_PROTO_ClearQueue [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 09 00 00 [08:57:45]Write to MH i2c: E2 08 00 A8 21 80 09 00 00 00 00 00 00 3B [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 A8 21 00 90 00 3D [08:57:45]RAPDU: 90 00 [08:57:45]wFMCommunicate OK [08:57:45]SAM_PROTO_ClearQueue done [08:57:45]KKMCreateOFDPacket [08:57:45]OFDProtocolAddRootSTLVToBuf [08:57:45]FM_MakeSignedData [08:57:45]FM_MakeSignedData [08:57:45]SAM_PROTO_SignData [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 0D 01 02 [08:57:45]Write to MH i2c: E2 08 00 A9 21 80 0D 01 02 00 00 00 00 43 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 A9 21 00 90 00 3E [08:57:45]RAPDU: 90 00 [08:57:45]wFMCommunicate OK [08:57:45]wFMCommunicate request_size=255 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8B BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E0 02 [08:57:45]Write to MH i2c: E2 02 01 AA 21 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8B BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E0 02 00 00 25 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 AA 21 00 90 00 3F [08:57:45]RAPDU: 90 00 [08:57:45]wFMCommunicate OK [08:57:45]wFMCommunicate request_size=16 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9C 4E 6F 7E EE 90 [08:57:45]Write to MH i2c: E2 13 00 AB 21 80 0D 02 02 0B 00 00 35 04 06 00 9C 4E 6F 7E EE 90 00 00 F0 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 AB 21 00 90 00 40 [08:57:46]RAPDU: 90 00 [08:57:46]wFMCommunicate OK [08:57:46]wFMCommunicate request_size=4 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 0D 03 02 [08:57:46]Write to MH i2c: E2 08 00 AC 21 80 0D 03 02 00 00 00 00 48 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 0B 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 0B 00 AC 21 00 B1 02 C1 70 72 D8 10 05 90 00 8C [08:57:46]RAPDU: B1 02 C1 70 72 D8 10 05 90 00 [08:57:46]wFMCommunicate OK [08:57:46]SAM_PROTO_SignData done [08:57:46]FM_MakeSignedData done [08:57:46]CreateOFDProtocolMessage [08:57:46]wFMCommunicate request_size=4 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 11 00 00 [08:57:46]Write to MH i2c: E2 08 00 AD 21 80 11 00 00 00 00 00 00 48 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 17 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 17 00 AD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [08:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:46]wFMCommunicate OK [08:57:46]CreateOFDProtocolMessage done [08:57:46]OFDSenderStorePacket 188615 [08:57:46]StoreOFDPacket docnum=188615 [08:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BE 7E 0D 01 6D 80 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8B BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E0 02 00 35 04 06 00 9C 4E 6F 7E EE 90 B1 02 C1 70 72 D8 10 05 [08:57:46]CheckFolder [08:57:46]dirname=/storage/ofd_packets [08:57:46]CheckFolder done [08:57:46]ProducePacketName [08:57:46]name=ofd_packets/00188615 [08:57:46]NVStorageSaveData ofd_packets/00188615 [08:57:46]File name is /storage/ofd_packets/00188615 [08:57:46]Write 307 bytes [08:57:46]NVStorageSaveData done [08:57:46]OFDSenderStorePacket done [08:57:46]KKMCreateOFDPacket done [08:57:46]NVStorageSaveData kkm_last_timestamp [08:57:46]File name is /storage/kkm_last_timestamp [08:57:46]Write 4 bytes [08:57:46]NVStorageSaveData done [08:57:46]ExternCall_PrintAddStr [08:57:46]wPrintStart [08:57:46]Write to MH i2c: 01 00 00 AE 21 CF [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 AE 21 00 00 00 00 00 FF 0F E4 [08:57:46]RasterBufferAndPrint [08:57:46]line Счет N : (1)210674 [08:57:46]line ИНН: 02508201610067 [08:57:46]line Контрольно-Кассовый Чек [08:57:46]line ПРОДАЖА [08:57:46]line ТРК (МРК, ГНК) : 41 [08:57:46]line Товар: 2710194210 [08:57:46]line D-ENERGY ДТ-К-5 [08:57:46]line 12.960 * 77.20 [08:57:46]line = 1000.51 [08:57:46]line НДС 12% НСП 1% [08:57:46]line > о реализуемом товаре [08:57:46]line ОКРУГЛЕНИЕ: -0.51 [08:57:46]line ИТОГО: 1000.00 [08:57:46]line Внесено: 1000.00 [08:57:46]line СДАЧА: 0.00 [08:57:46]line НСП 1% : 8.85 [08:57:46]line НДС 12% : 106.25 [08:57:46]line Наличными: 1000.00 [08:57:46]line Безнал.: 0.00 [08:57:46]line Место: АЗС № 86 "Партнер Нефть" [08:57:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:57:46]line СНО: Общий режим [08:57:46]line Чек 73 23.10.2024 08:57 [08:57:46]line Смена: 462 ФФД: 1.0 [08:57:46]line ЗНМ: 0300000155 [08:57:46]line РНМ: 0000000000100030 [08:57:46]line Версия ККМ: 001 [08:57:46]line ФМ: 0000000000965340 [08:57:46]line ФД: 188615 [08:57:46]line ФПД: 171860691971728 [08:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188615&fm=171860691971728&tin=02508201610067®Number=0000000000100030&sum=100000 [08:57:46]written 0, free lines is 4095 [08:57:46]OFD Sender: Processing packet 188615 [packets to send 1062, broken 1061] [08:57:46]ProducePacketName [08:57:46]name=ofd_packets/00188615 [08:57:46]OFD Sender: To server: pG, [08:57:46]CommunicateWithHost lk.salyk.kg:30040 [08:57:46]ConnectInit lk.salyk.kg [08:57:46]Connected sock=7 [08:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BE 7E 0D 01 6D 80 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8B BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E0 02 00 35 04 06 00 9C 4E 6F 7E EE 90 B1 02 C1 70 72 D8 10 05 [08:57:46]Write to MH i2c: 01 00 00 D9 21 FA [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 D9 21 00 00 00 00 00 5D 0C 6A [08:57:46]RasterBufferAndPrint [08:57:46]line [08:57:46]line [08:57:46]line [08:57:46]line [08:57:46]line [08:57:46]written 0, free lines is 3168 [08:57:46]MH_Cut [08:57:46]Write to MH i2c: D1 01 00 E0 21 01 D3 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: D1 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: D1 01 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: D1 01 00 E0 21 00 D2 [08:57:46]Write to MH i2c: 01 00 00 E1 21 02 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 91 E1 47 00 18 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E0 02 00 F4 03 04 00 76 64 18 67 B6 04 01 00 00 80 03 95 8F 41 2C 57 05 [08:57:46]CommunicateWithHost err = 0 [08:57:46]CheckOFDResponse [08:57:46]1017 (14) - 77093643461234 [08:57:46]1041 (16) - 0000000000965340 [08:57:46]1040 (4) - 188615 [08:57:46]1012 (4) - 23.10.2024 02:50 [08:57:46]1206 (1) - 0 [08:57:46]OFD Sender: Remove packet 188615 [08:57:46]ProducePacketName [08:57:46]name=ofd_packets/00188615 [08:57:46]NVStorageDeleteData [08:57:47]OFD Sender: No OFD packet to send [08:57:47]*** Cut start [08:57:47]*** Partial cut [08:57:47]*** CUTSNS_PIN = 1 [08:57:47]*** CUTSNS_PIN = 0 [08:57:48]*** Brake cut motor [08:57:48]Read from MH i2c: 01 [08:57:48]MH_I2C_Read... [08:57:48]*** Stop cut motor [08:57:48]*** Cut end [08:57:48]Read from MH i2c: 01 07 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: 01 07 00 E1 21 00 00 00 00 00 FF 0F 17 [08:57:48]process_action close_receipt done [08:57:48]requested_data is exist [08:57:48]produce_requested_data [08:57:48]requested_item fm.sn is exist - process it [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 11 00 00 [08:57:48]Write to MH i2c: E2 08 00 E2 21 80 11 00 00 00 00 00 00 7D [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 17 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 17 00 E2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [08:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:48]wFMCommunicate OK [08:57:48]requested_item fd.num is exist - process it [08:57:48]SAM_PROTO_GetFieldsCounters [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 13 00 00 [08:57:48]Write to MH i2c: E2 08 00 E3 21 80 13 00 00 00 00 00 00 80 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 62 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 62 00 E3 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [08:57:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:48]wFMCommunicate OK [08:57:48]SAM_PROTO_GetFieldsCounters done [08:57:48]requested_item shift.num is exist - process it [08:57:48]requested_item shift.opened is exist - process it [08:57:48]req_shift_opened [08:57:48]FM_GetShiftState [08:57:48]SAM_PROTO_GetShiftState [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 13 01 00 [08:57:48]Write to MH i2c: E2 08 00 E4 21 80 13 01 00 00 00 00 00 82 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0E 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0E 00 E4 21 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6A [08:57:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:57:48]wFMCommunicate OK [08:57:48]SAM_PROTO_GetShiftState done [08:57:48]FM_GetShiftState done [08:57:48]req_shift_opened done [08:57:48]requested_item shift.open_date is exist - process it [08:57:48]req_shift_open_date [08:57:48]req_shift_open_date done [08:57:48]produce_requested_data done [08:57:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188615,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:57:48]process_action_free close_receipt [08:57:48]json_value_free [08:57:48]json_value_free done [08:57:48]process_json_proto returns [08:57:48]Send response to host [08:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188615,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:57:48]free response buf [08:57:48]execute_script done [08:57:48]execute_script returns [08:57:48]free content buf [08:57:48]Sock 9.Close socket [08:57:48]Sock 9.Thread stoped [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:26]accept exits with 10 [08:59:26]New connection [08:59:26]New thread 3066649956 created [08:59:26]Thread 3066506596 joined [08:59:26]Waiting for new connection... [08:59:26] Sock 10.Parse request [08:59:26]Sock 10.Check first char [08:59:26]Sock 10.First char is OK [08:59:26]request: POST /json_proto HTTP/1.0 [08:59:26]Method: POST [08:59:26]URL: /json_proto [08:59:26]Method is POST - this is cgi request [08:59:26]url: /json_proto [08:59:26]query_string will be loaded in cgi processing [08:59:26]execute_cgi json_proto POST (null) [08:59:26]execute_cgi path=json_proto method=POST [08:59:26]POST find Content-Length [08:59:26]Host: 172.17.42.131:8080 [08:59:26]Content-Length: 682 [08:59:26]Content-Type: application/json [08:59:26] [08:59:26]POST finish read [08:59:26]Found Content-Length = 682 [08:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:26]execute_script... [08:59:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:26]POST & json_proto [08:59:26]process_json_proto [08:59:26]json parsed OK: [08:59:26]protocol is kg_v1.0 [08:59:26]action value=close_receipt [08:59:26]process_action close_receipt [08:59:26]cmd_close_receipt [08:59:26]MH_GetDate [08:59:26]Write to MH i2c: F0 00 00 E5 21 F5 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: F0 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: F0 09 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: F0 09 00 E5 21 00 F1 BA 18 67 A0 18 CA 66 10 [08:59:26]GetLastDocTimeStamp 1729673867 [08:59:26]current date 1729673969 [08:59:26]FM_GetShiftState [08:59:26]SAM_PROTO_GetShiftState [08:59:26]wFMCommunicate request_size=4 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 13 01 00 [08:59:26]Write to MH i2c: E2 08 00 E6 21 80 13 01 00 00 00 00 00 84 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 0E 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 0E 00 E6 21 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6C [08:59:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:59:26]wFMCommunicate OK [08:59:26]SAM_PROTO_GetShiftState done [08:59:26]FM_GetShiftState done [08:59:26]opened in 1729642525 [08:59:26]opened+sec_in_day 1729728925 [08:59:26]quantity*price = 100015 [08:59:26]sum+1 = 100017 [08:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 74 23.10.2024 08:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188616 ФПД: 133724842722761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085929&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188616&fm=133724842722761&tin=02508201610067®Number=0000000000100030&sum=100000 [08:59:27]StoreToDocumentArchive [08:59:27]shift 462 fd 188616 [08:59:27]save to /storage/0462/doc_00188616 [08:59:27]save last doc name /storage/0462/doc_00188616 to /storage/kkm_last_doc_name [08:59:27]save OK [08:59:27]Clear old archive folders... [08:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:27]tlvbuf is 0092E840 [08:59:27]SAM_PROTO_ClearQueue [08:59:27]wFMCommunicate request_size=4 [08:59:27]MH_SAM_APDU [08:59:27]CAPDU: 80 09 00 00 [08:59:27]Write to MH i2c: E2 08 00 F3 21 80 09 00 00 00 00 00 00 86 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:27]Read from MH i2c: E2 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 03 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 03 00 F3 21 00 90 00 88 [08:59:27]RAPDU: 90 00 [08:59:27]wFMCommunicate OK [08:59:27]SAM_PROTO_ClearQueue done [08:59:27]KKMCreateOFDPacket [08:59:27]OFDProtocolAddRootSTLVToBuf [08:59:27]FM_MakeSignedData [08:59:27]FM_MakeSignedData [08:59:27]SAM_PROTO_SignData [08:59:27]wFMCommunicate request_size=4 [08:59:27]MH_SAM_APDU [08:59:27]CAPDU: 80 0D 01 02 [08:59:27]Write to MH i2c: E2 08 00 F4 21 80 0D 01 02 00 00 00 00 8E [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:27]Read from MH i2c: E2 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 03 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 03 00 F4 21 00 90 00 89 [08:59:27]RAPDU: 90 00 [08:59:27]wFMCommunicate OK [08:59:27]wFMCommunicate request_size=255 [08:59:27]MH_SAM_APDU [08:59:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F1 BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E0 02 00 35 04 06 00 79 [08:59:27]Write to MH i2c: E2 02 01 F5 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F1 BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E0 02 00 35 04 06 00 79 00 00 61 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 F5 21 00 90 00 8A [08:59:28]RAPDU: 90 00 [08:59:28]wFMCommunicate OK [08:59:28]wFMCommunicate request_size=10 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 0D 02 02 05 9F 3D BF 85 C9 [08:59:28]Write to MH i2c: E2 0D 00 F6 21 80 0D 02 02 05 00 9F 3D BF 85 C9 00 00 84 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [08:59:28]RAPDU: 90 00 [08:59:28]wFMCommunicate OK [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 0D 03 02 [08:59:28]Write to MH i2c: E2 08 00 F7 21 80 0D 03 02 00 00 00 00 93 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 0B 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 0B 00 F7 21 00 2E 2E 5D 1F 3F 06 20 6A 90 00 3B [08:59:28]RAPDU: 2E 2E 5D 1F 3F 06 20 6A 90 00 [08:59:28]wFMCommunicate OK [08:59:28]SAM_PROTO_SignData done [08:59:28]FM_MakeSignedData done [08:59:28]CreateOFDProtocolMessage [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 11 00 00 [08:59:28]Write to MH i2c: E2 08 00 F8 21 80 11 00 00 00 00 00 00 93 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 17 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 17 00 F8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [08:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:59:28]wFMCommunicate OK [08:59:28]CreateOFDProtocolMessage done [08:59:28]OFDSenderStorePacket 188616 [08:59:28]StoreOFDPacket docnum=188616 [08:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE E9 07 01 E8 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F1 BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E0 02 00 35 04 06 00 79 9F 3D BF 85 C9 2E 2E 5D 1F 3F 06 20 6A [08:59:28]CheckFolder [08:59:28]dirname=/storage/ofd_packets [08:59:28]CheckFolder done [08:59:28]ProducePacketName [08:59:28]name=ofd_packets/00188616 [08:59:28]NVStorageSaveData ofd_packets/00188616 [08:59:28]File name is /storage/ofd_packets/00188616 [08:59:28]Write 301 bytes [08:59:28]NVStorageSaveData done [08:59:28]OFDSenderStorePacket done [08:59:28]KKMCreateOFDPacket done [08:59:28]NVStorageSaveData kkm_last_timestamp [08:59:28]File name is /storage/kkm_last_timestamp [08:59:28]Write 4 bytes [08:59:28]NVStorageSaveData done [08:59:28]ExternCall_PrintAddStr [08:59:28]wPrintStart [08:59:28]Write to MH i2c: 01 00 00 F9 21 1A [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 F9 21 00 00 00 00 00 FF 0F 2F [08:59:28]RasterBufferAndPrint [08:59:28]line Счет N : (1)210676 [08:59:28]line ИНН: 02508201610067 [08:59:28]line Контрольно-Кассовый Чек [08:59:28]line ПРОДАЖА [08:59:28]line ТРК (МРК, ГНК) : 22 [08:59:28]line Товар: 2710124130 [08:59:28]line Аи-92-К-3 [08:59:28]line 14.950 * 66.90 [08:59:28]line = 1000.16 [08:59:28]line НДС 12% НСП 1% [08:59:28]line > о реализуемом товаре [08:59:28]line ОКРУГЛЕНИЕ: -0.16 [08:59:28]line ИТОГО: 1000.00 [08:59:28]line Внесено: 1000.00 [08:59:28]line СДАЧА: 0.00 [08:59:28]line НСП 1% : 8.85 [08:59:28]line НДС 12% : 106.21 [08:59:28]line Наличными: 1000.00 [08:59:28]line Безнал.: 0.00 [08:59:28]line Место: АЗС № 86 "Партнер Нефть" [08:59:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:59:28]line СНО: Общий режим [08:59:28]line Чек 74 23.10.2024 08:59 [08:59:28]line Смена: 462 ФФД: 1.0 [08:59:28]line ЗНМ: 0300000155 [08:59:28]line РНМ: 0000000000100030 [08:59:28]line Версия ККМ: 001 [08:59:28]line ФМ: 0000000000965340 [08:59:28]line ФД: 188616 [08:59:28]line ФПД: 133724842722761 [08:59:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085929&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188616&fm=133724842722761&tin=02508201610067®Number=0000000000100030&sum=100000 [08:59:28]OFD Sender: Processing packet 188616 [packets to send 1062, broken 1061] [08:59:28]ProducePacketName [08:59:28]name=ofd_packets/00188616 [08:59:28]OFD Sender: To server: pG, [08:59:28]CommunicateWithHost lk.salyk.kg:30040 [08:59:28]ConnectInit lk.salyk.kg [08:59:28]written 0, free lines is 4095 [08:59:28]Connected sock=9 [08:59:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE E9 07 01 E8 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F1 BA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E0 02 00 35 04 06 00 79 9F 3D BF 85 C9 2E 2E 5D 1F 3F 06 20 6A [08:59:28]Write to MH i2c: 01 00 00 24 22 46 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 24 22 00 00 00 00 00 5E 0C B7 [08:59:28]RasterBufferAndPrint [08:59:28]line [08:59:28]line [08:59:28]line [08:59:28]line [08:59:28]line [08:59:28]written 0, free lines is 3168 [08:59:28]MH_Cut [08:59:28]Write to MH i2c: D1 01 00 2B 22 01 1F [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: D1 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: D1 01 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: D1 01 00 2B 22 00 1E [08:59:28]Write to MH i2c: 01 00 00 2C 22 4E [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E8 C2 47 00 B0 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E0 02 00 F4 03 04 00 DC 64 18 67 B6 04 01 00 00 9C CD A0 C7 B6 DE 9F 41 [08:59:28]CommunicateWithHost err = 0 [08:59:28]CheckOFDResponse [08:59:28]1017 (14) - 77093643461234 [08:59:28]1041 (16) - 0000000000965340 [08:59:28]1040 (4) - 188616 [08:59:28]1012 (4) - 23.10.2024 02:52 [08:59:28]1206 (1) - 0 [08:59:28]OFD Sender: Remove packet 188616 [08:59:28]ProducePacketName [08:59:28]name=ofd_packets/00188616 [08:59:28]NVStorageDeleteData [08:59:29]OFD Sender: No OFD packet to send [08:59:30]*** Cut start [08:59:30]*** Partial cut [08:59:30]*** CUTSNS_PIN = 1 [08:59:30]*** CUTSNS_PIN = 0 [08:59:30]*** Brake cut motor [08:59:30]Read from MH i2c: 01 [08:59:30]MH_I2C_Read... [08:59:30]*** Stop cut motor [08:59:30]*** Cut end [08:59:30]Read from MH i2c: 01 07 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: 01 07 00 2C 22 00 00 00 00 00 FF 0F 63 [08:59:30]process_action close_receipt done [08:59:30]requested_data is exist [08:59:30]produce_requested_data [08:59:30]requested_item fm.sn is exist - process it [08:59:30]wFMCommunicate request_size=4 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 11 00 00 [08:59:30]Write to MH i2c: E2 08 00 2D 22 80 11 00 00 00 00 00 00 C9 [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 17 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 17 00 2D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [08:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:59:30]wFMCommunicate OK [08:59:30]requested_item fd.num is exist - process it [08:59:30]SAM_PROTO_GetFieldsCounters [08:59:30]wFMCommunicate request_size=4 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 13 00 00 [08:59:30]Write to MH i2c: E2 08 00 2E 22 80 13 00 00 00 00 00 00 CC [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 62 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 62 00 2E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [08:59:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_GetFieldsCounters done [08:59:31]requested_item shift.num is exist - process it [08:59:31]requested_item shift.opened is exist - process it [08:59:31]req_shift_opened [08:59:31]FM_GetShiftState [08:59:31]SAM_PROTO_GetShiftState [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 13 01 00 [08:59:31]Write to MH i2c: E2 08 00 2F 22 80 13 01 00 00 00 00 00 CE [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0E 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0E 00 2F 22 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B6 [08:59:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_GetShiftState done [08:59:31]FM_GetShiftState done [08:59:31]req_shift_opened done [08:59:31]requested_item shift.open_date is exist - process it [08:59:31]req_shift_open_date [08:59:31]req_shift_open_date done [08:59:31]produce_requested_data done [08:59:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188616,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [08:59:31]process_action_free close_receipt [08:59:31]json_value_free [08:59:31]json_value_free done [08:59:31]process_json_proto returns [08:59:31]Send response to host [08:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188616,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [08:59:31]free response buf [08:59:31]execute_script done [08:59:31]execute_script returns [08:59:31]free content buf [08:59:31]Sock 10.Close socket [08:59:31]Sock 10.Thread stoped [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:27]accept exits with 7 [09:00:27]New connection [09:00:27]New thread 3066506596 created [09:00:27]Thread 3066649956 joined [09:00:27]Waiting for new connection... [09:00:27] Sock 7.Parse request [09:00:27]Sock 7.Check first char [09:00:27]Sock 7.First char is OK [09:00:27]request: POST /json_proto HTTP/1.0 [09:00:27]Method: POST [09:00:27]URL: /json_proto [09:00:27]Method is POST - this is cgi request [09:00:27]url: /json_proto [09:00:27]query_string will be loaded in cgi processing [09:00:27]execute_cgi json_proto POST (null) [09:00:27]execute_cgi path=json_proto method=POST [09:00:27]POST find Content-Length [09:00:27]Host: 172.17.42.131:8080 [09:00:27]Content-Length: 688 [09:00:27]Content-Type: application/json [09:00:27] [09:00:27]POST finish read [09:00:27]Found Content-Length = 688 [09:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:27]execute_script... [09:00:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:27]POST & json_proto [09:00:27]process_json_proto [09:00:27]json parsed OK: [09:00:27]protocol is kg_v1.0 [09:00:27]action value=close_receipt [09:00:27]process_action close_receipt [09:00:27]cmd_close_receipt [09:00:27]MH_GetDate [09:00:27]Write to MH i2c: F0 00 00 30 22 41 [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 09 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 09 00 30 22 00 2E BB 18 67 A0 18 CA 66 9A [09:00:27]GetLastDocTimeStamp 1729673969 [09:00:27]current date 1729674030 [09:00:27]FM_GetShiftState [09:00:27]SAM_PROTO_GetShiftState [09:00:27]wFMCommunicate request_size=4 [09:00:27]MH_SAM_APDU [09:00:27]CAPDU: 80 13 01 00 [09:00:27]Write to MH i2c: E2 08 00 31 22 80 13 01 00 00 00 00 00 D0 [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:27]Read from MH i2c: E2 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 0E 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 0E 00 31 22 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B8 [09:00:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:00:27]wFMCommunicate OK [09:00:27]SAM_PROTO_GetShiftState done [09:00:27]FM_GetShiftState done [09:00:27]opened in 1729642525 [09:00:27]opened+sec_in_day 1729728925 [09:00:27]quantity*price = 100051 [09:00:27]sum+1 = 100052 [09:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 75 23.10.2024 09:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188617 ФПД: 125840627106844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188617&fm=125840627106844&tin=02508201610067®Number=0000000000100030&sum=100000 [09:00:28]StoreToDocumentArchive [09:00:28]shift 462 fd 188617 [09:00:28]save to /storage/0462/doc_00188617 [09:00:28]save last doc name /storage/0462/doc_00188617 to /storage/kkm_last_doc_name [09:00:28]save OK [09:00:28]Clear old archive folders... [09:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:00:28]tlvbuf is B6F0E320 [09:00:28]SAM_PROTO_ClearQueue [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 09 00 00 [09:00:28]Write to MH i2c: E2 08 00 3E 22 80 09 00 00 00 00 00 00 D2 [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 3E 22 00 90 00 D4 [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]SAM_PROTO_ClearQueue done [09:00:28]KKMCreateOFDPacket [09:00:28]OFDProtocolAddRootSTLVToBuf [09:00:28]FM_MakeSignedData [09:00:28]FM_MakeSignedData [09:00:28]SAM_PROTO_SignData [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 01 02 [09:00:28]Write to MH i2c: E2 08 00 3F 22 80 0D 01 02 00 00 00 00 DA [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 3F 22 00 90 00 D5 [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]wFMCommunicate request_size=255 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2E BB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E0 02 [09:00:28]Write to MH i2c: E2 02 01 40 22 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2E BB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E0 02 00 00 64 [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]wFMCommunicate request_size=16 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 72 73 8D E0 84 1C [09:00:28]Write to MH i2c: E2 13 00 41 22 80 0D 02 02 0B 00 00 35 04 06 00 72 73 8D E0 84 1C 00 00 24 [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 41 22 00 90 00 D7 [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 03 02 [09:00:28]Write to MH i2c: E2 08 00 42 22 80 0D 03 02 00 00 00 00 DF [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 0B 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 0B 00 42 22 00 EC 2F 10 54 87 F3 FF FA 90 00 D2 [09:00:28]RAPDU: EC 2F 10 54 87 F3 FF FA 90 00 [09:00:28]wFMCommunicate OK [09:00:28]SAM_PROTO_SignData done [09:00:28]FM_MakeSignedData done [09:00:28]CreateOFDProtocolMessage [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 11 00 00 [09:00:28]Write to MH i2c: E2 08 00 43 22 80 11 00 00 00 00 00 00 DF [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 17 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 17 00 43 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [09:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:00:29]wFMCommunicate OK [09:00:29]CreateOFDProtocolMessage done [09:00:29]OFDSenderStorePacket 188617 [09:00:29]StoreOFDPacket docnum=188617 [09:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4A A4 0D 01 B9 A2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2E BB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E0 02 00 35 04 06 00 72 73 8D E0 84 1C EC 2F 10 54 87 F3 FF FA [09:00:29]CheckFolder [09:00:29]dirname=/storage/ofd_packets [09:00:29]CheckFolder done [09:00:29]ProducePacketName [09:00:29]name=ofd_packets/00188617 [09:00:29]NVStorageSaveData ofd_packets/00188617 [09:00:29]File name is /storage/ofd_packets/00188617 [09:00:29]Write 307 bytes [09:00:29]NVStorageSaveData done [09:00:29]OFDSenderStorePacket done [09:00:29]KKMCreateOFDPacket done [09:00:29]NVStorageSaveData kkm_last_timestamp [09:00:29]File name is /storage/kkm_last_timestamp [09:00:29]Write 4 bytes [09:00:29]NVStorageSaveData done [09:00:29]ExternCall_PrintAddStr [09:00:29]wPrintStart [09:00:29]Write to MH i2c: 01 00 00 44 22 66 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 44 22 00 00 00 00 00 FF 0F 7B [09:00:29]RasterBufferAndPrint [09:00:29]line Счет N : (1)210675 [09:00:29]line ИНН: 02508201610067 [09:00:29]line Контрольно-Кассовый Чек [09:00:29]line ПРОДАЖА [09:00:29]line ТРК (МРК, ГНК) : 31 [09:00:29]line Товар: 2710194210 [09:00:29]line D-ENERGY ДТ-К-5 [09:00:29]line 12.960 * 77.20 [09:00:29]line = 1000.51 [09:00:29]line НДС 12% НСП 1% [09:00:29]line > о реализуемом товаре [09:00:29]line ОКРУГЛЕНИЕ: -0.51 [09:00:29]line ИТОГО: 1000.00 [09:00:29]line Внесено: 1000.00 [09:00:29]line СДАЧА: 0.00 [09:00:29]line НСП 1% : 8.85 [09:00:29]line НДС 12% : 106.25 [09:00:29]line Наличными: 1000.00 [09:00:29]line Безнал.: 0.00 [09:00:29]line Место: АЗС № 86 "Партнер Нефть" [09:00:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:00:29]line СНО: Общий режим [09:00:29]line Чек 75 23.10.2024 09:00 [09:00:29]line Смена: 462 ФФД: 1.0 [09:00:29]line ЗНМ: 0300000155 [09:00:29]line РНМ: 0000000000100030 [09:00:29]line Версия ККМ: 001 [09:00:29]line ФМ: 0000000000965340 [09:00:29]line ФД: 188617 [09:00:29]line ФПД: 125840627106844 [09:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188617&fm=125840627106844&tin=02508201610067®Number=0000000000100030&sum=100000 [09:00:29]written 0, free lines is 4095 [09:00:29]OFD Sender: Processing packet 188617 [packets to send 1062, broken 1061] [09:00:29]ProducePacketName [09:00:29]name=ofd_packets/00188617 [09:00:29]OFD Sender: To server: pG, [09:00:29]CommunicateWithHost lk.salyk.kg:30040 [09:00:29]ConnectInit lk.salyk.kg [09:00:29]Connected sock=11 [09:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4A A4 0D 01 B9 A2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2E BB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E0 02 00 35 04 06 00 72 73 8D E0 84 1C EC 2F 10 54 87 F3 FF FA [09:00:29]Write to MH i2c: 01 00 00 6F 22 91 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 6F 22 00 00 00 00 00 52 0C F6 [09:00:29]RasterBufferAndPrint [09:00:29]line [09:00:29]line [09:00:29]line [09:00:29]line [09:00:29]line [09:00:29]written 0, free lines is 3158 [09:00:29]MH_Cut [09:00:29]Write to MH i2c: D1 01 00 76 22 01 6A [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: D1 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: D1 01 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: D1 01 00 76 22 00 69 [09:00:29]Write to MH i2c: 01 00 00 77 22 99 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 85 05 47 00 F4 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E0 02 00 F4 03 04 00 19 65 18 67 B6 04 01 00 00 42 36 F1 ED 26 8B 0E 67 [09:00:29]CommunicateWithHost err = 0 [09:00:29]CheckOFDResponse [09:00:29]1017 (14) - 77093643461234 [09:00:29]1041 (16) - 0000000000965340 [09:00:29]1040 (4) - 188617 [09:00:29]1012 (4) - 23.10.2024 02:53 [09:00:29]1206 (1) - 0 [09:00:29]OFD Sender: Remove packet 188617 [09:00:29]ProducePacketName [09:00:29]name=ofd_packets/00188617 [09:00:29]NVStorageDeleteData [09:00:30]OFD Sender: No OFD packet to send [09:00:30]*** Cut start [09:00:30]*** Partial cut [09:00:30]*** CUTSNS_PIN = 1 [09:00:30]*** CUTSNS_PIN = 0 [09:00:31]*** Brake cut motor [09:00:31]Read from MH i2c: 01 [09:00:31]MH_I2C_Read... [09:00:31]*** Stop cut motor [09:00:31]*** Cut end [09:00:31]Read from MH i2c: 01 07 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: 01 07 00 77 22 00 00 00 00 00 FF 0F AE [09:00:31]process_action close_receipt done [09:00:31]requested_data is exist [09:00:31]produce_requested_data [09:00:31]requested_item fm.sn is exist - process it [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 11 00 00 [09:00:31]Write to MH i2c: E2 08 00 78 22 80 11 00 00 00 00 00 00 14 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 17 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 17 00 78 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [09:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:00:31]wFMCommunicate OK [09:00:31]requested_item fd.num is exist - process it [09:00:31]SAM_PROTO_GetFieldsCounters [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 13 00 00 [09:00:31]Write to MH i2c: E2 08 00 79 22 80 13 00 00 00 00 00 00 17 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 62 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 62 00 79 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [09:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:31]wFMCommunicate OK [09:00:31]SAM_PROTO_GetFieldsCounters done [09:00:31]requested_item shift.num is exist - process it [09:00:31]requested_item shift.opened is exist - process it [09:00:31]req_shift_opened [09:00:31]FM_GetShiftState [09:00:31]SAM_PROTO_GetShiftState [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 13 01 00 [09:00:31]Write to MH i2c: E2 08 00 7A 22 80 13 01 00 00 00 00 00 19 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 0E 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 0E 00 7A 22 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 01 [09:00:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:00:31]wFMCommunicate OK [09:00:31]SAM_PROTO_GetShiftState done [09:00:31]FM_GetShiftState done [09:00:31]req_shift_opened done [09:00:31]requested_item shift.open_date is exist - process it [09:00:31]req_shift_open_date [09:00:31]req_shift_open_date done [09:00:31]produce_requested_data done [09:00:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188617,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:00:31]process_action_free close_receipt [09:00:31]json_value_free [09:00:31]json_value_free done [09:00:31]process_json_proto returns [09:00:31]Send response to host [09:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188617,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:00:31]free response buf [09:00:31]execute_script done [09:00:31]execute_script returns [09:00:31]free content buf [09:00:31]Sock 7.Close socket [09:00:31]Sock 7.Thread stoped [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:37]accept exits with 9 [09:01:37]New connection [09:01:37]New thread 3066649956 created [09:01:37]Thread 3066506596 joined [09:01:37]Waiting for new connection... [09:01:37] Sock 9.Parse request [09:01:37]Sock 9.Check first char [09:01:37]Sock 9.First char is OK [09:01:37]request: POST /json_proto HTTP/1.0 [09:01:37]Method: POST [09:01:37]URL: /json_proto [09:01:37]Method is POST - this is cgi request [09:01:37]url: /json_proto [09:01:37]query_string will be loaded in cgi processing [09:01:37]execute_cgi json_proto POST (null) [09:01:37]execute_cgi path=json_proto method=POST [09:01:37]POST find Content-Length [09:01:37]Host: 172.17.42.131:8080 [09:01:37]Content-Length: 677 [09:01:37]Content-Type: application/json [09:01:37] [09:01:37]POST finish read [09:01:37]Found Content-Length = 677 [09:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:37]execute_script... [09:01:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:37]POST & json_proto [09:01:37]process_json_proto [09:01:37]json parsed OK: [09:01:37]protocol is kg_v1.0 [09:01:37]action value=close_receipt [09:01:37]process_action close_receipt [09:01:37]cmd_close_receipt [09:01:37]MH_GetDate [09:01:37]Write to MH i2c: F0 00 00 7B 22 8C [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: F0 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: F0 09 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: F0 09 00 7B 22 00 75 BB 18 67 A0 18 CA 66 2C [09:01:37]GetLastDocTimeStamp 1729674030 [09:01:37]current date 1729674101 [09:01:37]FM_GetShiftState [09:01:37]SAM_PROTO_GetShiftState [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 13 01 00 [09:01:37]Write to MH i2c: E2 08 00 7C 22 80 13 01 00 00 00 00 00 1B [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 0E 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 0E 00 7C 22 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 03 [09:01:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:01:37]wFMCommunicate OK [09:01:37]SAM_PROTO_GetShiftState done [09:01:37]FM_GetShiftState done [09:01:37]opened in 1729642525 [09:01:37]opened+sec_in_day 1729728925 [09:01:37]quantity*price = 50041 [09:01:37]sum+1 = 50042 [09:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 76 23.10.2024 09:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188618 ФПД: 150339459210177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090141&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188618&fm=150339459210177&tin=02508201610067®Number=0000000000100030&sum=50000 [09:01:39]StoreToDocumentArchive [09:01:39]shift 462 fd 188618 [09:01:39]save to /storage/0462/doc_00188618 [09:01:39]save last doc name /storage/0462/doc_00188618 to /storage/kkm_last_doc_name [09:01:39]save OK [09:01:39]Clear old archive folders... [09:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:39]tlvbuf is 008FE910 [09:01:39]SAM_PROTO_ClearQueue [09:01:39]wFMCommunicate request_size=4 [09:01:39]MH_SAM_APDU [09:01:39]CAPDU: 80 09 00 00 [09:01:39]Write to MH i2c: E2 08 00 89 22 80 09 00 00 00 00 00 00 1D [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:39]Read from MH i2c: E2 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 89 22 00 90 00 1F [09:01:39]RAPDU: 90 00 [09:01:39]wFMCommunicate OK [09:01:39]SAM_PROTO_ClearQueue done [09:01:39]KKMCreateOFDPacket [09:01:39]OFDProtocolAddRootSTLVToBuf [09:01:39]FM_MakeSignedData [09:01:39]FM_MakeSignedData [09:01:39]SAM_PROTO_SignData [09:01:39]wFMCommunicate request_size=4 [09:01:39]MH_SAM_APDU [09:01:39]CAPDU: 80 0D 01 02 [09:01:39]Write to MH i2c: E2 08 00 8A 22 80 0D 01 02 00 00 00 00 25 [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:39]Read from MH i2c: E2 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [09:01:39]RAPDU: 90 00 [09:01:39]wFMCommunicate OK [09:01:39]wFMCommunicate request_size=255 [09:01:39]MH_SAM_APDU [09:01:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 75 BB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E0 02 00 35 04 06 00 88 [09:01:39]Write to MH i2c: E2 02 01 8B 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 75 BB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E0 02 00 35 04 06 00 88 00 00 96 [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:39]Read from MH i2c: E2 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 8B 22 00 90 00 21 [09:01:39]RAPDU: 90 00 [09:01:39]wFMCommunicate OK [09:01:39]wFMCommunicate request_size=10 [09:01:39]MH_SAM_APDU [09:01:39]CAPDU: 80 0D 02 02 05 BB A2 0F DB C1 [09:01:39]Write to MH i2c: E2 0D 00 8C 22 80 0D 02 02 05 00 BB A2 0F DB C1 00 00 3A [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:39]Read from MH i2c: E2 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 8C 22 00 90 00 22 [09:01:39]RAPDU: 90 00 [09:01:39]wFMCommunicate OK [09:01:39]wFMCommunicate request_size=4 [09:01:39]MH_SAM_APDU [09:01:39]CAPDU: 80 0D 03 02 [09:01:39]Write to MH i2c: E2 08 00 8D 22 80 0D 03 02 00 00 00 00 2A [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:39]Read from MH i2c: E2 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 0B 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 0B 00 8D 22 00 AF 3E 72 BD 6B 1E 9B 02 90 00 6D [09:01:39]RAPDU: AF 3E 72 BD 6B 1E 9B 02 90 00 [09:01:39]wFMCommunicate OK [09:01:39]SAM_PROTO_SignData done [09:01:39]FM_MakeSignedData done [09:01:39]CreateOFDProtocolMessage [09:01:39]wFMCommunicate request_size=4 [09:01:39]MH_SAM_APDU [09:01:39]CAPDU: 80 11 00 00 [09:01:39]Write to MH i2c: E2 08 00 8E 22 80 11 00 00 00 00 00 00 2A [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:39]Read from MH i2c: E2 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 17 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 17 00 8E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [09:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:01:39]wFMCommunicate OK [09:01:39]CreateOFDProtocolMessage done [09:01:39]OFDSenderStorePacket 188618 [09:01:39]StoreOFDPacket docnum=188618 [09:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC BD 07 01 98 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 75 BB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E0 02 00 35 04 06 00 88 BB A2 0F DB C1 AF 3E 72 BD 6B 1E 9B 02 [09:01:39]CheckFolder [09:01:39]dirname=/storage/ofd_packets [09:01:39]CheckFolder done [09:01:39]ProducePacketName [09:01:39]name=ofd_packets/00188618 [09:01:39]NVStorageSaveData ofd_packets/00188618 [09:01:39]File name is /storage/ofd_packets/00188618 [09:01:39]Write 301 bytes [09:01:39]NVStorageSaveData done [09:01:39]OFDSenderStorePacket done [09:01:39]KKMCreateOFDPacket done [09:01:39]NVStorageSaveData kkm_last_timestamp [09:01:39]File name is /storage/kkm_last_timestamp [09:01:39]Write 4 bytes [09:01:39]NVStorageSaveData done [09:01:39]ExternCall_PrintAddStr [09:01:39]wPrintStart [09:01:39]Write to MH i2c: 01 00 00 8F 22 B1 [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: 01 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: 01 07 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: 01 07 00 8F 22 00 00 00 00 00 FF 0F C6 [09:01:39]RasterBufferAndPrint [09:01:39]line Счет N : (1)210677 [09:01:39]line ИНН: 02508201610067 [09:01:39]line Контрольно-Кассовый Чек [09:01:39]line ПРОДАЖА [09:01:39]line ТРК (МРК, ГНК) : 12 [09:01:39]line Товар: 2710124130 [09:01:39]line Аи-92-К-3 [09:01:39]line 7.480 * 66.90 [09:01:39]line = 500.41 [09:01:39]line НДС 12% НСП 1% [09:01:39]line > о реализуемом товаре [09:01:39]line ОКРУГЛЕНИЕ: -0.41 [09:01:39]line ИТОГО: 500.00 [09:01:39]line Внесено: 500.00 [09:01:39]line СДАЧА: 0.00 [09:01:39]line НСП 1% : 4.43 [09:01:39]line НДС 12% : 53.14 [09:01:39]line Наличными: 500.00 [09:01:39]line Безнал.: 0.00 [09:01:39]line Место: АЗС № 86 "Партнер Нефть" [09:01:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:01:39]line СНО: Общий режим [09:01:39]line Чек 76 23.10.2024 09:01 [09:01:39]line Смена: 462 ФФД: 1.0 [09:01:39]line ЗНМ: 0300000155 [09:01:39]line РНМ: 0000000000100030 [09:01:39]line Версия ККМ: 001 [09:01:39]line ФМ: 0000000000965340 [09:01:39]line ФД: 188618 [09:01:39]line ФПД: 150339459210177 [09:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090141&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188618&fm=150339459210177&tin=02508201610067®Number=0000000000100030&sum=50000 [09:01:39]written 0, free lines is 4095 [09:01:39]OFD Sender: Processing packet 188618 [packets to send 1062, broken 1061] [09:01:39]ProducePacketName [09:01:39]name=ofd_packets/00188618 [09:01:39]OFD Sender: To server: pG, [09:01:39]CommunicateWithHost lk.salyk.kg:30040 [09:01:39]ConnectInit lk.salyk.kg [09:01:39]Connected sock=10 [09:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC BD 07 01 98 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 75 BB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E0 02 00 35 04 06 00 88 BB A2 0F DB C1 AF 3E 72 BD 6B 1E 9B 02 [09:01:40]Write to MH i2c: 01 00 00 BA 22 DC [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 07 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 07 00 BA 22 00 00 00 00 00 57 0C 46 [09:01:40]RasterBufferAndPrint [09:01:40]line [09:01:40]line [09:01:40]line [09:01:40]line [09:01:40]line [09:01:40]written 0, free lines is 3162 [09:01:40]MH_Cut [09:01:40]Write to MH i2c: D1 01 00 C1 22 01 B5 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: D1 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: D1 01 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: D1 01 00 C1 22 00 B4 [09:01:40]Write to MH i2c: 01 00 00 C2 22 E4 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F5 2A 47 00 19 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E0 02 00 F4 03 04 00 60 65 18 67 B6 04 01 00 00 4B 8B D1 46 6A 2F DE 37 [09:01:40]CommunicateWithHost err = 0 [09:01:40]CheckOFDResponse [09:01:40]1017 (14) - 77093643461234 [09:01:40]1041 (16) - 0000000000965340 [09:01:40]1040 (4) - 188618 [09:01:40]1012 (4) - 23.10.2024 02:54 [09:01:40]1206 (1) - 0 [09:01:40]OFD Sender: Remove packet 188618 [09:01:40]ProducePacketName [09:01:40]name=ofd_packets/00188618 [09:01:40]NVStorageDeleteData [09:01:40]OFD Sender: No OFD packet to send [09:01:41]*** Cut start [09:01:41]*** Partial cut [09:01:41]*** CUTSNS_PIN = 1 [09:01:41]*** CUTSNS_PIN = 0 [09:01:41]*** Brake cut motor [09:01:42]Read from MH i2c: 01 [09:01:42]MH_I2C_Read... [09:01:42]*** Stop cut motor [09:01:42]*** Cut end [09:01:42]Read from MH i2c: 01 07 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: 01 07 00 C2 22 00 00 00 00 00 FF 0F F9 [09:01:42]process_action close_receipt done [09:01:42]requested_data is exist [09:01:42]produce_requested_data [09:01:42]requested_item fm.sn is exist - process it [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 11 00 00 [09:01:42]Write to MH i2c: E2 08 00 C3 22 80 11 00 00 00 00 00 00 5F [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 17 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 17 00 C3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AD [09:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:01:42]wFMCommunicate OK [09:01:42]requested_item fd.num is exist - process it [09:01:42]SAM_PROTO_GetFieldsCounters [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 13 00 00 [09:01:42]Write to MH i2c: E2 08 00 C4 22 80 13 00 00 00 00 00 00 62 [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 62 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 62 00 C4 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [09:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:42]wFMCommunicate OK [09:01:42]SAM_PROTO_GetFieldsCounters done [09:01:42]requested_item shift.num is exist - process it [09:01:42]requested_item shift.opened is exist - process it [09:01:42]req_shift_opened [09:01:42]FM_GetShiftState [09:01:42]SAM_PROTO_GetShiftState [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 13 01 00 [09:01:42]Write to MH i2c: E2 08 00 C5 22 80 13 01 00 00 00 00 00 64 [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 0E 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 0E 00 C5 22 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4C [09:01:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:01:42]wFMCommunicate OK [09:01:42]SAM_PROTO_GetShiftState done [09:01:42]FM_GetShiftState done [09:01:42]req_shift_opened done [09:01:42]requested_item shift.open_date is exist - process it [09:01:42]req_shift_open_date [09:01:42]req_shift_open_date done [09:01:42]produce_requested_data done [09:01:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188618,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:01:42]process_action_free close_receipt [09:01:42]json_value_free [09:01:42]json_value_free done [09:01:42]process_json_proto returns [09:01:42]Send response to host [09:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188618,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:01:42]free response buf [09:01:42]execute_script done [09:01:42]execute_script returns [09:01:42]free content buf [09:01:42]Sock 9.Close socket [09:01:42]Sock 9.Thread stoped [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02: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:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:46]accept exits with 7 [09:09:46]New connection [09:09:46]New thread 3066506596 created [09:09:46]Thread 3066649956 joined [09:09:46]Waiting for new connection... [09:09:46] Sock 7.Parse request [09:09:46]Sock 7.Check first char [09:09:46]Sock 7.First char is OK [09:09:46]request: POST /json_proto HTTP/1.0 [09:09:46]Method: POST [09:09:46]URL: /json_proto [09:09:46]Method is POST - this is cgi request [09:09:46]url: /json_proto [09:09:46]query_string will be loaded in cgi processing [09:09:46]execute_cgi json_proto POST (null) [09:09:46]execute_cgi path=json_proto method=POST [09:09:46]POST find Content-Length [09:09:46]Host: 172.17.42.131:8080 [09:09:46]Content-Length: 767 [09:09:46]Content-Type: application/json [09:09:46] [09:09:46]POST finish read [09:09:46]Found Content-Length = 767 [09:09:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:46]execute_script... [09:09:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:46]POST & json_proto [09:09:46]process_json_proto [09:09:46]json parsed OK: [09:09:46]protocol is kg_v1.0 [09:09:46]action value=close_receipt [09:09:46]process_action close_receipt [09:09:46]cmd_close_receipt [09:09:46]MH_GetDate [09:09:46]Write to MH i2c: F0 00 00 C6 22 D7 [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 09 00 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 09 00 C6 22 00 5E BD 18 67 A0 18 CA 66 62 [09:09:46]GetLastDocTimeStamp 1729674101 [09:09:46]current date 1729674590 [09:09:46]FM_GetShiftState [09:09:46]SAM_PROTO_GetShiftState [09:09:46]wFMCommunicate request_size=4 [09:09:46]MH_SAM_APDU [09:09:46]CAPDU: 80 13 01 00 [09:09:46]Write to MH i2c: E2 08 00 C7 22 80 13 01 00 00 00 00 00 66 [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:46]Read from MH i2c: E2 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: E2 0E 00 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: E2 0E 00 C7 22 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4E [09:09:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:09:46]wFMCommunicate OK [09:09:46]SAM_PROTO_GetShiftState done [09:09:46]FM_GetShiftState done [09:09:46]opened in 1729642525 [09:09:46]opened+sec_in_day 1729728925 [09:09:46]quantity*price = 80012 [09:09:46]sum+1 = 80013 [09:09:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 77 23.10.2024 09:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188619 ФПД: 170149941793788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188619&fm=170149941793788&tin=02508201610067®Number=0000000000100030&sum=80012 [09:09:48]StoreToDocumentArchive [09:09:48]shift 462 fd 188619 [09:09:48]save to /storage/0462/doc_00188619 [09:09:48]save last doc name /storage/0462/doc_00188619 to /storage/kkm_last_doc_name [09:09:48]save OK [09:09:48]Clear old archive folders... [09:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:48]tlvbuf is B6F0EEF0 [09:09:48]SAM_PROTO_ClearQueue [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 09 00 00 [09:09:48]Write to MH i2c: E2 08 00 D4 22 80 09 00 00 00 00 00 00 68 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 D4 22 00 90 00 6A [09:09:48]RAPDU: 90 00 [09:09:48]wFMCommunicate OK [09:09:48]SAM_PROTO_ClearQueue done [09:09:48]KKMCreateOFDPacket [09:09:48]OFDProtocolAddRootSTLVToBuf [09:09:48]FM_MakeSignedData [09:09:48]FM_MakeSignedData [09:09:48]SAM_PROTO_SignData [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 0D 01 02 [09:09:48]Write to MH i2c: E2 08 00 D5 22 80 0D 01 02 00 00 00 00 70 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 D5 22 00 90 00 6B [09:09:48]RAPDU: 90 00 [09:09:48]wFMCommunicate OK [09:09:48]wFMCommunicate request_size=255 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5E BD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E0 02 00 35 04 06 00 9A [09:09:48]Write to MH i2c: E2 02 01 D6 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5E BD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E0 02 00 35 04 06 00 9A 00 00 E4 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 D6 22 00 90 00 6C [09:09:48]RAPDU: 90 00 [09:09:48]wFMCommunicate OK [09:09:48]wFMCommunicate request_size=10 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 0D 02 02 05 C0 1E D6 D3 FC [09:09:48]Write to MH i2c: E2 0D 00 D7 22 80 0D 02 02 05 00 C0 1E D6 D3 FC 00 00 00 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [09:09:48]RAPDU: 90 00 [09:09:48]wFMCommunicate OK [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 0D 03 02 [09:09:48]Write to MH i2c: E2 08 00 D8 22 80 0D 03 02 00 00 00 00 75 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 0B 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 0B 00 D8 22 00 7A A7 0E DE BE 1F 5B 0F 90 00 CA [09:09:48]RAPDU: 7A A7 0E DE BE 1F 5B 0F 90 00 [09:09:48]wFMCommunicate OK [09:09:48]SAM_PROTO_SignData done [09:09:48]FM_MakeSignedData done [09:09:48]CreateOFDProtocolMessage [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 11 00 00 [09:09:48]Write to MH i2c: E2 08 00 D9 22 80 11 00 00 00 00 00 00 75 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 17 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 17 00 D9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [09:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:09:48]wFMCommunicate OK [09:09:48]CreateOFDProtocolMessage done [09:09:48]OFDSenderStorePacket 188619 [09:09:48]StoreOFDPacket docnum=188619 [09:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 CA 07 01 FA 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5E BD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E0 02 00 35 04 06 00 9A C0 1E D6 D3 FC 7A A7 0E DE BE 1F 5B 0F [09:09:48]CheckFolder [09:09:48]dirname=/storage/ofd_packets [09:09:48]CheckFolder done [09:09:48]ProducePacketName [09:09:48]name=ofd_packets/00188619 [09:09:48]NVStorageSaveData ofd_packets/00188619 [09:09:48]File name is /storage/ofd_packets/00188619 [09:09:48]Write 301 bytes [09:09:48]NVStorageSaveData done [09:09:48]OFDSenderStorePacket done [09:09:48]KKMCreateOFDPacket done [09:09:48]NVStorageSaveData kkm_last_timestamp [09:09:48]File name is /storage/kkm_last_timestamp [09:09:48]Write 4 bytes [09:09:48]NVStorageSaveData done [09:09:48]ExternCall_PrintAddStr [09:09:48]wPrintStart [09:09:48]Write to MH i2c: 01 00 00 DA 22 FC [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 DA 22 00 00 00 00 00 FF 0F 11 [09:09:48]RasterBufferAndPrint [09:09:48]line Счет N : (1)210678 [09:09:48]line ИНН: 02508201610067 [09:09:48]line Контрольно-Кассовый Чек [09:09:48]line ПРОДАЖА [09:09:48]line ТРК (МРК, ГНК) : 32 [09:09:48]line Товар: 2710124130 [09:09:48]line Аи-92-К-3 [09:09:48]line 11.960 * 66.90 [09:09:48]line = 800.12 [09:09:48]line НДС 12% НСП 1% [09:09:48]line > о реализуемом товаре [09:09:48]line ИТОГО: 800.12 [09:09:48]line НСП 1% : 7.08 [09:09:48]line НДС 12% : 84.97 [09:09:48]line Наличными: 0.00 [09:09:48]line Безнал.: 800.12 [09:09:48]line Место: АЗС № 86 "Партнер Нефть" [09:09:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:09:48]line СНО: Общий режим [09:09:48]line Чек 77 23.10.2024 09:09 [09:09:48]line Смена: 462 ФФД: 1.0 [09:09:48]line ЗНМ: 0300000155 [09:09:48]line РНМ: 0000000000100030 [09:09:48]line Версия ККМ: 001 [09:09:48]line Платежная система: Mbank [09:09:48]line ФМ: 0000000000965340 [09:09:48]line ФД: 188619 [09:09:48]line ФПД: 170149941793788 [09:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188619&fm=170149941793788&tin=02508201610067®Number=0000000000100030&sum=80012 [09:09:48]OFD Sender: Processing packet 188619 [packets to send 1062, broken 1061] [09:09:48]ProducePacketName [09:09:48]name=ofd_packets/00188619 [09:09:48]OFD Sender: To server: pG, [09:09:48]CommunicateWithHost lk.salyk.kg:30040 [09:09:48]ConnectInit lk.salyk.kg [09:09:48]written 0, free lines is 4095 [09:09:48]Connected sock=10 [09:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 CA 07 01 FA 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5E BD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E0 02 00 35 04 06 00 9A C0 1E D6 D3 FC 7A A7 0E DE BE 1F 5B 0F [09:09:49]Write to MH i2c: 01 00 00 03 23 26 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 03 23 00 00 00 00 00 88 0C C1 [09:09:49]RasterBufferAndPrint [09:09:49]line [09:09:49]line [09:09:49]line [09:09:49]line [09:09:49]line [09:09:49]written 0, free lines is 3212 [09:09:49]MH_Cut [09:09:49]Write to MH i2c: D1 01 00 0A 23 01 FF [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: D1 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: D1 01 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: D1 01 00 0A 23 00 FE [09:09:49]Write to MH i2c: 01 00 00 0B 23 2E [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D BB 47 00 ED 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E0 02 00 F4 03 04 00 49 67 18 67 B6 04 01 00 00 90 69 8D 48 24 22 C4 34 [09:09:49]CommunicateWithHost err = 0 [09:09:49]CheckOFDResponse [09:09:49]1017 (14) - 77093643461234 [09:09:49]1041 (16) - 0000000000965340 [09:09:49]1040 (4) - 188619 [09:09:49]1012 (4) - 23.10.2024 03:02 [09:09:49]1206 (1) - 0 [09:09:49]OFD Sender: Remove packet 188619 [09:09:49]ProducePacketName [09:09:49]name=ofd_packets/00188619 [09:09:49]NVStorageDeleteData [09:09:49]OFD Sender: No OFD packet to send [09:09:50]*** Cut start [09:09:50]*** Partial cut [09:09:50]*** CUTSNS_PIN = 1 [09:09:50]*** CUTSNS_PIN = 0 [09:09:50]*** Brake cut motor [09:09:50]Read from MH i2c: 01 [09:09:50]MH_I2C_Read... [09:09:50]*** Stop cut motor [09:09:51]*** Cut end [09:09:51]Read from MH i2c: 01 07 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 07 00 0B 23 00 00 00 00 00 FF 0F 43 [09:09:51]process_action close_receipt done [09:09:51]requested_data is exist [09:09:51]produce_requested_data [09:09:51]requested_item fm.sn is exist - process it [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 11 00 00 [09:09:51]Write to MH i2c: E2 08 00 0C 23 80 11 00 00 00 00 00 00 A9 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 0C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [09:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:09:51]wFMCommunicate OK [09:09:51]requested_item fd.num is exist - process it [09:09:51]SAM_PROTO_GetFieldsCounters [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 13 00 00 [09:09:51]Write to MH i2c: E2 08 00 0D 23 80 13 00 00 00 00 00 00 AC [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 62 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 62 00 0D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [09:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_GetFieldsCounters done [09:09:51]requested_item shift.num is exist - process it [09:09:51]requested_item shift.opened is exist - process it [09:09:51]req_shift_opened [09:09:51]FM_GetShiftState [09:09:51]SAM_PROTO_GetShiftState [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 13 01 00 [09:09:51]Write to MH i2c: E2 08 00 0E 23 80 13 01 00 00 00 00 00 AE [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:51]Read from MH i2c: E2 0E 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0E 00 0E 23 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 96 [09:09:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_GetShiftState done [09:09:51]FM_GetShiftState done [09:09:51]req_shift_opened done [09:09:51]requested_item shift.open_date is exist - process it [09:09:51]req_shift_open_date [09:09:51]req_shift_open_date done [09:09:51]produce_requested_data done [09:09:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188619,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:09:51]process_action_free close_receipt [09:09:51]json_value_free [09:09:51]json_value_free done [09:09:51]process_json_proto returns [09:09:51]Send response to host [09:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188619,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:09:51]free response buf [09:09:51]execute_script done [09:09:51]execute_script returns [09:09:51]free content buf [09:09:51]Sock 7.Close socket [09:09:51]Sock 7.Thread stoped [09:09:54]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:21]accept exits with 9 [09:14:21]New connection [09:14:21]New thread 3066649956 created [09:14:21]Thread 3066506596 joined [09:14:21]Waiting for new connection... [09:14:21] Sock 9.Parse request [09:14:21]Sock 9.Check first char [09:14:21]Sock 9.First char is OK [09:14:21]request: POST /json_proto HTTP/1.0 [09:14:21]Method: POST [09:14:21]URL: /json_proto [09:14:21]Method is POST - this is cgi request [09:14:21]url: /json_proto [09:14:21]query_string will be loaded in cgi processing [09:14:21]execute_cgi json_proto POST (null) [09:14:21]execute_cgi path=json_proto method=POST [09:14:21]POST find Content-Length [09:14:21]Host: 172.17.42.131:8080 [09:14:21]Content-Length: 679 [09:14:21]Content-Type: application/json [09:14:21] [09:14:21]POST finish read [09:14:21]Found Content-Length = 679 [09:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:21]execute_script... [09:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:21]POST & json_proto [09:14:21]process_json_proto [09:14:21]json parsed OK: [09:14:21]protocol is kg_v1.0 [09:14:21]action value=close_receipt [09:14:21]process_action close_receipt [09:14:21]cmd_close_receipt [09:14:21]MH_GetDate [09:14:21]Write to MH i2c: F0 00 00 0F 23 21 [09:14:21]Write i2c OK [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: F0 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: F0 09 00 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: F0 09 00 0F 23 00 70 BE 18 67 A0 18 CA 66 BF [09:14:21]GetLastDocTimeStamp 1729674590 [09:14:21]current date 1729674864 [09:14:21]FM_GetShiftState [09:14:21]SAM_PROTO_GetShiftState [09:14:21]wFMCommunicate request_size=4 [09:14:21]MH_SAM_APDU [09:14:21]CAPDU: 80 13 01 00 [09:14:21]Write to MH i2c: E2 08 00 10 23 80 13 01 00 00 00 00 00 B0 [09:14:21]Write i2c OK [09:14:21]MH_I2C_Read... [09:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:21]Read from MH i2c: E2 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 0E 00 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 0E 00 10 23 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 98 [09:14:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:14:21]wFMCommunicate OK [09:14:21]SAM_PROTO_GetShiftState done [09:14:21]FM_GetShiftState done [09:14:21]opened in 1729642525 [09:14:21]opened+sec_in_day 1729728925 [09:14:21]quantity*price = 100050 [09:14:21]sum+1 = 100052 [09:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 78 23.10.2024 09:14 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188620 ФПД: 252021860375384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091424&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188620&fm=252021860375384&tin=02508201610067®Number=0000000000100030&sum=100000 [09:14:22]StoreToDocumentArchive [09:14:22]shift 462 fd 188620 [09:14:22]save to /storage/0462/doc_00188620 [09:14:22]save last doc name /storage/0462/doc_00188620 to /storage/kkm_last_doc_name [09:14:22]save OK [09:14:22]Clear old archive folders... [09:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:14:22]tlvbuf is 0093E710 [09:14:22]SAM_PROTO_ClearQueue [09:14:22]wFMCommunicate request_size=4 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 09 00 00 [09:14:22]Write to MH i2c: E2 08 00 1D 23 80 09 00 00 00 00 00 00 B2 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 1D 23 00 90 00 B4 [09:14:22]RAPDU: 90 00 [09:14:22]wFMCommunicate OK [09:14:22]SAM_PROTO_ClearQueue done [09:14:22]KKMCreateOFDPacket [09:14:22]OFDProtocolAddRootSTLVToBuf [09:14:22]FM_MakeSignedData [09:14:22]FM_MakeSignedData [09:14:22]SAM_PROTO_SignData [09:14:22]wFMCommunicate request_size=4 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 0D 01 02 [09:14:22]Write to MH i2c: E2 08 00 1E 23 80 0D 01 02 00 00 00 00 BA [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 1E 23 00 90 00 B5 [09:14:22]RAPDU: 90 00 [09:14:22]wFMCommunicate OK [09:14:22]wFMCommunicate request_size=255 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 70 BE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E0 02 00 35 04 06 00 E5 36 69 76 [09:14:22]Write to MH i2c: E2 02 01 1F 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 70 BE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E0 02 00 35 04 06 00 E5 36 69 76 00 00 97 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 1F 23 00 90 00 B6 [09:14:22]RAPDU: 90 00 [09:14:22]wFMCommunicate OK [09:14:22]wFMCommunicate request_size=7 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 0D 02 02 02 9B 58 [09:14:22]Write to MH i2c: E2 0A 00 20 23 80 0D 02 02 02 00 9B 58 00 00 B4 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 20 23 00 90 00 B7 [09:14:22]RAPDU: 90 00 [09:14:22]wFMCommunicate OK [09:14:22]wFMCommunicate request_size=4 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 0D 03 02 [09:14:22]Write to MH i2c: E2 08 00 21 23 80 0D 03 02 00 00 00 00 BF [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 0B 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 0B 00 21 23 00 2B 54 8B AE 3D 92 D7 DB 90 00 F9 [09:14:22]RAPDU: 2B 54 8B AE 3D 92 D7 DB 90 00 [09:14:22]wFMCommunicate OK [09:14:22]SAM_PROTO_SignData done [09:14:22]FM_MakeSignedData done [09:14:22]CreateOFDProtocolMessage [09:14:22]wFMCommunicate request_size=4 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 11 00 00 [09:14:22]Write to MH i2c: E2 08 00 22 23 80 11 00 00 00 00 00 00 BF [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:23]Read from MH i2c: E2 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 17 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 17 00 22 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [09:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:14:23]wFMCommunicate OK [09:14:23]CreateOFDProtocolMessage done [09:14:23]OFDSenderStorePacket 188620 [09:14:23]StoreOFDPacket docnum=188620 [09:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 37 53 04 01 29 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 70 BE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E0 02 00 35 04 06 00 E5 36 69 76 9B 58 2B 54 8B AE 3D 92 D7 DB [09:14:23]CheckFolder [09:14:23]dirname=/storage/ofd_packets [09:14:23]CheckFolder done [09:14:23]ProducePacketName [09:14:23]name=ofd_packets/00188620 [09:14:23]NVStorageSaveData ofd_packets/00188620 [09:14:23]File name is /storage/ofd_packets/00188620 [09:14:23]Write 298 bytes [09:14:23]NVStorageSaveData done [09:14:23]OFDSenderStorePacket done [09:14:23]KKMCreateOFDPacket done [09:14:23]NVStorageSaveData kkm_last_timestamp [09:14:23]File name is /storage/kkm_last_timestamp [09:14:23]Write 4 bytes [09:14:23]NVStorageSaveData done [09:14:23]ExternCall_PrintAddStr [09:14:23]wPrintStart [09:14:23]Write to MH i2c: 01 00 00 23 23 46 [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 07 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 07 00 23 23 00 00 00 00 00 FF 0F 5B [09:14:23]RasterBufferAndPrint [09:14:23]line Счет N : (1)210679 [09:14:23]line ИНН: 02508201610067 [09:14:23]line Контрольно-Кассовый Чек [09:14:23]line ПРОДАЖА [09:14:23]line ТРК (МРК, ГНК) : 51 [09:14:23]line Товар: 2710194210 [09:14:23]line ДТ-К-5 [09:14:23]line 13.130 * 76.20 [09:14:23]line = 1000.51 [09:14:23]line НДС 12% НСП 1% [09:14:23]line > о реализуемом товаре [09:14:23]line ОКРУГЛЕНИЕ: -0.51 [09:14:23]line ИТОГО: 1000.00 [09:14:23]line Внесено: 1000.00 [09:14:23]line СДАЧА: 0.00 [09:14:23]line НСП 1% : 8.85 [09:14:23]line НДС 12% : 106.25 [09:14:23]line Наличными: 1000.00 [09:14:23]line Безнал.: 0.00 [09:14:23]line Место: АЗС № 86 "Партнер Нефть" [09:14:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:14:23]line СНО: Общий режим [09:14:23]line Чек 78 23.10.2024 09:14 [09:14:23]line Смена: 462 ФФД: 1.0 [09:14:23]line ЗНМ: 0300000155 [09:14:23]line РНМ: 0000000000100030 [09:14:23]line Версия ККМ: 001 [09:14:23]line ФМ: 0000000000965340 [09:14:23]line ФД: 188620 [09:14:23]line ФПД: 252021860375384 [09:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091424&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188620&fm=252021860375384&tin=02508201610067®Number=0000000000100030&sum=100000 [09:14:23]written 0, free lines is 4095 [09:14:23]OFD Sender: Processing packet 188620 [packets to send 1062, broken 1061] [09:14:23]ProducePacketName [09:14:23]name=ofd_packets/00188620 [09:14:23]OFD Sender: To server: pG, [09:14:23]CommunicateWithHost lk.salyk.kg:30040 [09:14:23]ConnectInit lk.salyk.kg [09:14:23]Connected sock=10 [09:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 37 53 04 01 29 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 70 BE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E0 02 00 35 04 06 00 E5 36 69 76 9B 58 2B 54 8B AE 3D 92 D7 DB [09:14:23]Write to MH i2c: 01 00 00 4E 23 71 [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 07 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 07 00 4E 23 00 00 00 00 00 53 0C D7 [09:14:23]RasterBufferAndPrint [09:14:23]line [09:14:23]line [09:14:23]line [09:14:23]line [09:14:23]line [09:14:23]written 0, free lines is 3160 [09:14:23]MH_Cut [09:14:23]Write to MH i2c: D1 01 00 55 23 01 4A [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: D1 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: D1 01 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: D1 01 00 55 23 00 49 [09:14:23]Write to MH i2c: 01 00 00 56 23 79 [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 94 9F 47 00 B4 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 36 35 33 34 30 10 04 04 00 CC E0 02 00 F4 03 04 00 5B 68 18 67 B6 04 01 00 00 7D 24 58 11 89 79 E2 DE [09:14:23]CommunicateWithHost err = 0 [09:14:23]CheckOFDResponse [09:14:23]1017 (14) - 77093643461234 [09:14:23]1041 (16) - 0000000000965340 [09:14:23]1040 (4) - 188620 [09:14:23]1012 (4) - 23.10.2024 03:07 [09:14:23]1206 (1) - 0 [09:14:23]OFD Sender: Remove packet 188620 [09:14:23]ProducePacketName [09:14:23]name=ofd_packets/00188620 [09:14:23]NVStorageDeleteData [09:14:24]OFD Sender: No OFD packet to send [09:14:24]*** Cut start [09:14:24]*** Partial cut [09:14:24]*** CUTSNS_PIN = 1 [09:14:24]*** CUTSNS_PIN = 0 [09:14:25]*** Brake cut motor [09:14:25]Read from MH i2c: 01 [09:14:25]MH_I2C_Read... [09:14:25]*** Stop cut motor [09:14:25]*** Cut end [09:14:25]Read from MH i2c: 01 07 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: 01 07 00 56 23 00 00 00 00 00 FF 0F 8E [09:14:25]process_action close_receipt done [09:14:25]requested_data is exist [09:14:25]produce_requested_data [09:14:25]requested_item fm.sn is exist - process it [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 11 00 00 [09:14:25]Write to MH i2c: E2 08 00 57 23 80 11 00 00 00 00 00 00 F4 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 17 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 17 00 57 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [09:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:14:25]wFMCommunicate OK [09:14:25]requested_item fd.num is exist - process it [09:14:25]SAM_PROTO_GetFieldsCounters [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 13 00 00 [09:14:25]Write to MH i2c: E2 08 00 58 23 80 13 00 00 00 00 00 00 F7 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 62 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 62 00 58 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [09:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:25]wFMCommunicate OK [09:14:25]SAM_PROTO_GetFieldsCounters done [09:14:25]requested_item shift.num is exist - process it [09:14:25]requested_item shift.opened is exist - process it [09:14:25]req_shift_opened [09:14:25]FM_GetShiftState [09:14:25]SAM_PROTO_GetShiftState [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 13 01 00 [09:14:25]Write to MH i2c: E2 08 00 59 23 80 13 01 00 00 00 00 00 F9 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:25]Read from MH i2c: E2 0E 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 0E 00 59 23 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E1 [09:14:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:14:25]wFMCommunicate OK [09:14:25]SAM_PROTO_GetShiftState done [09:14:25]FM_GetShiftState done [09:14:25]req_shift_opened done [09:14:25]requested_item shift.open_date is exist - process it [09:14:25]req_shift_open_date [09:14:25]req_shift_open_date done [09:14:25]produce_requested_data done [09:14:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188620,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:14:25]process_action_free close_receipt [09:14:25]json_value_free [09:14:25]json_value_free done [09:14:25]process_json_proto returns [09:14:25]Send response to host [09:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188620,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:14:25]free response buf [09:14:25]execute_script done [09:14:25]execute_script returns [09:14:25]free content buf [09:14:25]Sock 9.Close socket [09:14:25]Sock 9.Thread stoped [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]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:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]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:47]accept exits with 7 [09:31:47]New connection [09:31:47]New thread 3066506596 created [09:31:47]Thread 3066649956 joined [09:31:47]Waiting for new connection... [09:31:47] Sock 7.Parse request [09:31:47]Sock 7.Check first char [09:31:47]Sock 7.First char is OK [09:31:47]request: POST /json_proto HTTP/1.0 [09:31:47]Method: POST [09:31:47]URL: /json_proto [09:31:47]Method is POST - this is cgi request [09:31:47]url: /json_proto [09:31:47]query_string will be loaded in cgi processing [09:31:47]execute_cgi json_proto POST (null) [09:31:47]execute_cgi path=json_proto method=POST [09:31:47]POST find Content-Length [09:31:47]Host: 172.17.42.131:8080 [09:31:47]Content-Length: 682 [09:31:47]Content-Type: application/json [09:31:47] [09:31:47]POST finish read [09:31:47]Found Content-Length = 682 [09:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:47]execute_script... [09:31:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:47]POST & json_proto [09:31:47]process_json_proto [09:31:47]json parsed OK: [09:31:47]protocol is kg_v1.0 [09:31:47]action value=close_receipt [09:31:47]process_action close_receipt [09:31:47]cmd_close_receipt [09:31:47]MH_GetDate [09:31:47]Write to MH i2c: F0 00 00 5A 23 6C [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 09 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 09 00 5A 23 00 86 C2 18 67 A0 18 CA 66 24 [09:31:47]GetLastDocTimeStamp 1729674864 [09:31:47]current date 1729675910 [09:31:47]FM_GetShiftState [09:31:47]SAM_PROTO_GetShiftState [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 13 01 00 [09:31:47]Write to MH i2c: E2 08 00 5B 23 80 13 01 00 00 00 00 00 FB [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 5B 23 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E3 [09:31:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_GetShiftState done [09:31:47]FM_GetShiftState done [09:31:47]opened in 1729642525 [09:31:47]opened+sec_in_day 1729728925 [09:31:47]quantity*price = 100021 [09:31:47]sum+1 = 100023 [09:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 79 23.10.2024 09:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188621 ФПД: 61273501712999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188621&fm=61273501712999&tin=02508201610067®Number=0000000000100030&sum=100000 [09:31:48]StoreToDocumentArchive [09:31:48]shift 462 fd 188621 [09:31:48]save to /storage/0462/doc_00188621 [09:31:48]save last doc name /storage/0462/doc_00188621 to /storage/kkm_last_doc_name [09:31:48]save OK [09:31:48]Clear old archive folders... [09:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:48]tlvbuf is B6F0E2E0 [09:31:48]SAM_PROTO_ClearQueue [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 09 00 00 [09:31:48]Write to MH i2c: E2 08 00 68 23 80 09 00 00 00 00 00 00 FD [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 68 23 00 90 00 FF [09:31:48]RAPDU: 90 00 [09:31:48]wFMCommunicate OK [09:31:48]SAM_PROTO_ClearQueue done [09:31:48]KKMCreateOFDPacket [09:31:48]OFDProtocolAddRootSTLVToBuf [09:31:48]FM_MakeSignedData [09:31:48]FM_MakeSignedData [09:31:48]SAM_PROTO_SignData [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 0D 01 02 [09:31:48]Write to MH i2c: E2 08 00 69 23 80 0D 01 02 00 00 00 00 05 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 69 23 00 90 00 00 [09:31:48]RAPDU: 90 00 [09:31:48]wFMCommunicate OK [09:31:48]wFMCommunicate request_size=255 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 86 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E0 02 00 35 04 06 00 37 [09:31:48]Write to MH i2c: E2 02 01 6A 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 86 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E0 02 00 35 04 06 00 37 00 00 60 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]OFD Sender: No OFD packet to send [09:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 6A 23 00 90 00 01 [09:31:48]RAPDU: 90 00 [09:31:48]wFMCommunicate OK [09:31:48]wFMCommunicate request_size=10 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 0D 02 02 05 BA 59 4D C2 67 [09:31:48]Write to MH i2c: E2 0D 00 6B 23 80 0D 02 02 05 00 BA 59 4D C2 67 00 00 9B [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [09:31:48]RAPDU: 90 00 [09:31:48]wFMCommunicate OK [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 0D 03 02 [09:31:48]Write to MH i2c: E2 08 00 6C 23 80 0D 03 02 00 00 00 00 0A [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0B 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0B 00 6C 23 00 D8 F5 E2 39 66 4B 1D A4 90 00 65 [09:31:49]RAPDU: D8 F5 E2 39 66 4B 1D A4 90 00 [09:31:49]wFMCommunicate OK [09:31:49]SAM_PROTO_SignData done [09:31:49]FM_MakeSignedData done [09:31:49]CreateOFDProtocolMessage [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 11 00 00 [09:31:49]Write to MH i2c: E2 08 00 6D 23 80 11 00 00 00 00 00 00 0A [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 17 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 17 00 6D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [09:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:31:49]wFMCommunicate OK [09:31:49]CreateOFDProtocolMessage done [09:31:49]OFDSenderStorePacket 188621 [09:31:49]StoreOFDPacket docnum=188621 [09:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 29 41 07 01 35 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 86 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E0 02 00 35 04 06 00 37 BA 59 4D C2 67 D8 F5 E2 39 66 4B 1D A4 [09:31:49]CheckFolder [09:31:49]dirname=/storage/ofd_packets [09:31:49]CheckFolder done [09:31:49]ProducePacketName [09:31:49]name=ofd_packets/00188621 [09:31:49]NVStorageSaveData ofd_packets/00188621 [09:31:49]File name is /storage/ofd_packets/00188621 [09:31:49]Write 301 bytes [09:31:49]NVStorageSaveData done [09:31:49]OFDSenderStorePacket done [09:31:49]KKMCreateOFDPacket done [09:31:49]NVStorageSaveData kkm_last_timestamp [09:31:49]File name is /storage/kkm_last_timestamp [09:31:49]Write 4 bytes [09:31:49]NVStorageSaveData done [09:31:49]ExternCall_PrintAddStr [09:31:49]wPrintStart [09:31:49]Write to MH i2c: 01 00 00 6E 23 91 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 6E 23 00 00 00 00 00 FF 0F A6 [09:31:49]RasterBufferAndPrint [09:31:49]line Счет N : (1)210681 [09:31:49]line ИНН: 02508201610067 [09:31:49]line Контрольно-Кассовый Чек [09:31:49]line ПРОДАЖА [09:31:49]line ТРК (МРК, ГНК) : 13 [09:31:49]line Товар: 2710124500 [09:31:49]line Аи-95-К-3 [09:31:49]line 13.480 * 74.20 [09:31:49]line = 1000.22 [09:31:49]line НДС 12% НСП 1% [09:31:49]line > о реализуемом товаре [09:31:49]line ОКРУГЛЕНИЕ: -0.22 [09:31:49]line ИТОГО: 1000.00 [09:31:49]line Внесено: 1000.00 [09:31:49]line СДАЧА: 0.00 [09:31:49]line НСП 1% : 8.85 [09:31:49]line НДС 12% : 106.22 [09:31:49]line Наличными: 1000.00 [09:31:49]line Безнал.: 0.00 [09:31:49]line Место: АЗС № 86 "Партнер Нефть" [09:31:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:31:49]line СНО: Общий режим [09:31:49]line Чек 79 23.10.2024 09:31 [09:31:49]line Смена: 462 ФФД: 1.0 [09:31:49]line ЗНМ: 0300000155 [09:31:49]line РНМ: 0000000000100030 [09:31:49]line Версия ККМ: 001 [09:31:49]line ФМ: 0000000000965340 [09:31:49]line ФД: 188621 [09:31:49]line ФПД: 61273501712999 [09:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188621&fm=61273501712999&tin=02508201610067®Number=0000000000100030&sum=100000 [09:31:49]written 0, free lines is 4095 [09:31:49]OFD Sender: Processing packet 188621 [packets to send 1062, broken 1061] [09:31:49]ProducePacketName [09:31:49]name=ofd_packets/00188621 [09:31:49]OFD Sender: To server: pG, [09:31:49]CommunicateWithHost lk.salyk.kg:30040 [09:31:49]ConnectInit lk.salyk.kg [09:31:49]Connected sock=10 [09:31:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 29 41 07 01 35 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 86 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E0 02 00 35 04 06 00 37 BA 59 4D C2 67 D8 F5 E2 39 66 4B 1D A4 [09:31:49]Write to MH i2c: 01 00 00 99 23 BC [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 99 23 00 00 00 00 00 4D 0C 1C [09:31:49]RasterBufferAndPrint [09:31:49]line [09:31:49]line [09:31:49]line [09:31:49]line [09:31:49]line [09:31:49]written 0, free lines is 3153 [09:31:49]MH_Cut [09:31:49]Write to MH i2c: D1 01 00 A0 23 01 95 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: D1 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: D1 01 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: D1 01 00 A0 23 00 94 [09:31:49]Write to MH i2c: 01 00 00 A1 23 C4 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 16 0A 47 00 42 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E0 02 00 F4 03 04 00 71 6C 18 67 B6 04 01 00 00 95 89 D9 38 D3 2C 7E 12 [09:31:49]CommunicateWithHost err = 0 [09:31:49]CheckOFDResponse [09:31:49]1017 (14) - 77093643461234 [09:31:49]1041 (16) - 0000000000965340 [09:31:49]1040 (4) - 188621 [09:31:49]1012 (4) - 23.10.2024 03:24 [09:31:49]1206 (1) - 0 [09:31:49]OFD Sender: Remove packet 188621 [09:31:49]ProducePacketName [09:31:49]name=ofd_packets/00188621 [09:31:49]NVStorageDeleteData [09:31:50]OFD Sender: No OFD packet to send [09:31:50]*** Cut start [09:31:50]*** Partial cut [09:31:50]*** CUTSNS_PIN = 1 [09:31:50]*** CUTSNS_PIN = 0 [09:31:51]*** Brake cut motor [09:31:51]Read from MH i2c: 01 [09:31:51]MH_I2C_Read... [09:31:51]*** Stop cut motor [09:31:51]*** Cut end [09:31:51]Read from MH i2c: 01 07 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 A1 23 00 00 00 00 00 FF 0F D9 [09:31:51]process_action close_receipt done [09:31:51]requested_data is exist [09:31:51]produce_requested_data [09:31:51]requested_item fm.sn is exist - process it [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 11 00 00 [09:31:51]Write to MH i2c: E2 08 00 A2 23 80 11 00 00 00 00 00 00 3F [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:51]Read from MH i2c: E2 17 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 A2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [09:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:31:51]wFMCommunicate OK [09:31:51]requested_item fd.num is exist - process it [09:31:51]SAM_PROTO_GetFieldsCounters [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 13 00 00 [09:31:51]Write to MH i2c: E2 08 00 A3 23 80 13 00 00 00 00 00 00 42 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:51]Read from MH i2c: E2 62 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 62 00 A3 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_GetFieldsCounters done [09:31:51]requested_item shift.num is exist - process it [09:31:51]requested_item shift.opened is exist - process it [09:31:51]req_shift_opened [09:31:51]FM_GetShiftState [09:31:51]SAM_PROTO_GetShiftState [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 13 01 00 [09:31:51]Write to MH i2c: E2 08 00 A4 23 80 13 01 00 00 00 00 00 44 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 A4 23 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2C [09:31:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_GetShiftState done [09:31:51]FM_GetShiftState done [09:31:51]req_shift_opened done [09:31:51]requested_item shift.open_date is exist - process it [09:31:51]req_shift_open_date [09:31:51]req_shift_open_date done [09:31:51]produce_requested_data done [09:31:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188621,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:31:51]process_action_free close_receipt [09:31:51]json_value_free [09:31:51]json_value_free done [09:31:51]process_json_proto returns [09:31:51]Send response to host [09:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188621,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:31:51]free response buf [09:31:51]execute_script done [09:31:51]execute_script returns [09:31:51]free content buf [09:31:51]Sock 7.Close socket [09:31:51]Sock 7.Thread stoped [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:49]accept exits with 9 [09:32:49]New connection [09:32:49]New thread 3066649956 created [09:32:49]Thread 3066506596 joined [09:32:49]Waiting for new connection... [09:32:49] Sock 9.Parse request [09:32:49]Sock 9.Check first char [09:32:49]Sock 9.First char is OK [09:32:49]request: POST /json_proto HTTP/1.0 [09:32:49]Method: POST [09:32:49]URL: /json_proto [09:32:49]Method is POST - this is cgi request [09:32:49]url: /json_proto [09:32:49]query_string will be loaded in cgi processing [09:32:49]execute_cgi json_proto POST (null) [09:32:49]execute_cgi path=json_proto method=POST [09:32:49]POST find Content-Length [09:32:49]Host: 172.17.42.131:8080 [09:32:49]Content-Length: 816 [09:32:49]Content-Type: application/json [09:32:49] [09:32:49]POST finish read [09:32:49]Found Content-Length = 816 [09:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:49]execute_script... [09:32:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:49]POST & json_proto [09:32:49]process_json_proto [09:32:49]json parsed OK: [09:32:49]protocol is kg_v1.0 [09:32:49]action value=close_receipt [09:32:49]process_action close_receipt [09:32:49]cmd_close_receipt [09:32:49]MH_GetDate [09:32:49]Write to MH i2c: F0 00 00 A5 23 B7 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: F0 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: F0 09 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: F0 09 00 A5 23 00 C4 C2 18 67 A0 18 CA 66 AD [09:32:49]GetLastDocTimeStamp 1729675910 [09:32:49]current date 1729675972 [09:32:49]FM_GetShiftState [09:32:49]SAM_PROTO_GetShiftState [09:32:49]wFMCommunicate request_size=4 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 13 01 00 [09:32:49]Write to MH i2c: E2 08 00 A6 23 80 13 01 00 00 00 00 00 46 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 0E 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 0E 00 A6 23 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2E [09:32:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:32:49]wFMCommunicate OK [09:32:49]SAM_PROTO_GetShiftState done [09:32:49]FM_GetShiftState done [09:32:49]opened in 1729642525 [09:32:49]opened+sec_in_day 1729728925 [09:32:49]quantity*price = 50010 [09:32:49]sum+1 = 50012 [09:32:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 80 23.10.2024 09:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188622 ФПД: 105691248672584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093252&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188622&fm=105691248672584&tin=02508201610067®Number=0000000000100030&sum=50011 [09:32:50]StoreToDocumentArchive [09:32:50]shift 462 fd 188622 [09:32:50]save to /storage/0462/doc_00188622 [09:32:50]save last doc name /storage/0462/doc_00188622 to /storage/kkm_last_doc_name [09:32:50]save OK [09:32:50]Clear old archive folders... [09:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:50]tlvbuf is 008FC030 [09:32:50]SAM_PROTO_ClearQueue [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 09 00 00 [09:32:50]Write to MH i2c: E2 08 00 B3 23 80 09 00 00 00 00 00 00 48 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 B3 23 00 90 00 4A [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]SAM_PROTO_ClearQueue done [09:32:50]KKMCreateOFDPacket [09:32:50]OFDProtocolAddRootSTLVToBuf [09:32:50]FM_MakeSignedData [09:32:50]FM_MakeSignedData [09:32:50]SAM_PROTO_SignData [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 01 02 [09:32:50]Write to MH i2c: E2 08 00 B4 23 80 0D 01 02 00 00 00 00 50 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]OFD Sender: No OFD packet to send [09:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 B4 23 00 90 00 4B [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]wFMCommunicate request_size=255 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C4 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E0 02 00 35 04 06 00 60 [09:32:50]Write to MH i2c: E2 02 01 B5 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C4 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E0 02 00 35 04 06 00 60 00 00 E5 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 B5 23 00 90 00 4C [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]wFMCommunicate request_size=10 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 02 02 05 20 29 55 3F 48 [09:32:50]Write to MH i2c: E2 0D 00 B6 23 80 0D 02 02 05 00 20 29 55 3F 48 00 00 82 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 B6 23 00 90 00 4D [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 03 02 [09:32:50]Write to MH i2c: E2 08 00 B7 23 80 0D 03 02 00 00 00 00 55 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 0B 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 0B 00 B7 23 00 D2 65 72 3C E3 7D F8 66 90 00 F9 [09:32:50]RAPDU: D2 65 72 3C E3 7D F8 66 90 00 [09:32:50]wFMCommunicate OK [09:32:50]SAM_PROTO_SignData done [09:32:50]FM_MakeSignedData done [09:32:50]CreateOFDProtocolMessage [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 11 00 00 [09:32:50]Write to MH i2c: E2 08 00 B8 23 80 11 00 00 00 00 00 00 55 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 17 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 17 00 B8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [09:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:50]wFMCommunicate OK [09:32:50]CreateOFDProtocolMessage done [09:32:50]OFDSenderStorePacket 188622 [09:32:50]StoreOFDPacket docnum=188622 [09:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 5D 07 01 3A BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C4 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E0 02 00 35 04 06 00 60 20 29 55 3F 48 D2 65 72 3C E3 7D F8 66 [09:32:50]CheckFolder [09:32:50]dirname=/storage/ofd_packets [09:32:50]CheckFolder done [09:32:50]ProducePacketName [09:32:50]name=ofd_packets/00188622 [09:32:50]NVStorageSaveData ofd_packets/00188622 [09:32:50]File name is /storage/ofd_packets/00188622 [09:32:50]Write 301 bytes [09:32:50]NVStorageSaveData done [09:32:50]OFDSenderStorePacket done [09:32:50]KKMCreateOFDPacket done [09:32:50]NVStorageSaveData kkm_last_timestamp [09:32:50]File name is /storage/kkm_last_timestamp [09:32:50]Write 4 bytes [09:32:50]NVStorageSaveData done [09:32:51]ExternCall_PrintAddStr [09:32:51]wPrintStart [09:32:51]Write to MH i2c: 01 00 00 B9 23 DC [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 B9 23 00 00 00 00 00 FF 0F F1 [09:32:51]RasterBufferAndPrint [09:32:51]line Счет N : (1)210682 [09:32:51]line ИНН: 02508201610067 [09:32:51]line Контрольно-Кассовый Чек [09:32:51]line ПРОДАЖА [09:32:51]line ТРК (МРК, ГНК) : 43 [09:32:51]line Товар: 2710124500 [09:32:51]line Аи-95-К-3 [09:32:51]line 6.740 * 74.20 [09:32:51]line = 500.11 [09:32:51]line НДС 12% НСП 1% [09:32:51]line > о реализуемом товаре [09:32:51]line ИТОГО: 500.11 [09:32:51]line НСП 1% : 4.43 [09:32:51]line НДС 12% : 53.11 [09:32:51]line Наличными: 0.00 [09:32:51]line Безнал.: 500.11 [09:32:51]line Место: АЗС № 86 "Партнер Нефть" [09:32:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:32:51]line СНО: Общий режим [09:32:51]line Чек 80 23.10.2024 09:32 [09:32:51]line Смена: 462 ФФД: 1.0 [09:32:51]line ЗНМ: 0300000155 [09:32:51]line РНМ: 0000000000100030 [09:32:51]line Версия ККМ: 001 [09:32:51]line Платежная система: Бакай Банк [09:32:51]line ФМ: 0000000000965340 [09:32:51]line ФД: 188622 [09:32:51]line ФПД: 105691248672584 [09:32:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093252&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188622&fm=105691248672584&tin=02508201610067®Number=0000000000100030&sum=50011 [09:32:51]written 0, free lines is 4095 [09:32:51]OFD Sender: Processing packet 188622 [packets to send 1062, broken 1061] [09:32:51]ProducePacketName [09:32:51]name=ofd_packets/00188622 [09:32:51]OFD Sender: To server: pG, [09:32:51]CommunicateWithHost lk.salyk.kg:30040 [09:32:51]ConnectInit lk.salyk.kg [09:32:51]Connected sock=10 [09:32:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 5D 07 01 3A BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C4 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E0 02 00 35 04 06 00 60 20 29 55 3F 48 D2 65 72 3C E3 7D F8 66 [09:32:51]Write to MH i2c: 01 00 00 E3 23 06 [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 E3 23 00 00 00 00 00 6F 0C 88 [09:32:51]RasterBufferAndPrint [09:32:51]line [09:32:51]line [09:32:51]line [09:32:51]line [09:32:51]line [09:32:51]written 0, free lines is 3187 [09:32:51]MH_Cut [09:32:51]Write to MH i2c: D1 01 00 EA 23 01 DF [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: D1 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: D1 01 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: D1 01 00 EA 23 00 DE [09:32:51]Write to MH i2c: 01 00 00 EB 23 0E [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AE 28 47 00 E7 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E0 02 00 F4 03 04 00 AF 6C 18 67 B6 04 01 00 00 17 93 01 A5 43 E3 9C 06 [09:32:51]CommunicateWithHost err = 0 [09:32:51]CheckOFDResponse [09:32:51]1017 (14) - 77093643461234 [09:32:51]1041 (16) - 0000000000965340 [09:32:51]1040 (4) - 188622 [09:32:51]1012 (4) - 23.10.2024 03:25 [09:32:51]1206 (1) - 0 [09:32:51]OFD Sender: Remove packet 188622 [09:32:51]ProducePacketName [09:32:51]name=ofd_packets/00188622 [09:32:51]NVStorageDeleteData [09:32:52]OFD Sender: No OFD packet to send [09:32:52]*** Cut start [09:32:52]*** Partial cut [09:32:52]*** CUTSNS_PIN = 1 [09:32:52]*** CUTSNS_PIN = 0 [09:32:53]*** Brake cut motor [09:32:53]Read from MH i2c: 01 [09:32:53]MH_I2C_Read... [09:32:53]*** Stop cut motor [09:32:53]*** Cut end [09:32:53]Read from MH i2c: 01 07 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: 01 07 00 EB 23 00 00 00 00 00 FF 0F 23 [09:32:53]process_action close_receipt done [09:32:53]requested_data is exist [09:32:53]produce_requested_data [09:32:53]requested_item fm.sn is exist - process it [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 11 00 00 [09:32:53]Write to MH i2c: E2 08 00 EC 23 80 11 00 00 00 00 00 00 89 [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:53]Read from MH i2c: E2 17 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 17 00 EC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [09:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:53]wFMCommunicate OK [09:32:53]requested_item fd.num is exist - process it [09:32:53]SAM_PROTO_GetFieldsCounters [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 13 00 00 [09:32:53]Write to MH i2c: E2 08 00 ED 23 80 13 00 00 00 00 00 00 8C [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:53]Read from MH i2c: E2 62 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 62 00 ED 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [09:32:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:53]wFMCommunicate OK [09:32:53]SAM_PROTO_GetFieldsCounters done [09:32:53]requested_item shift.num is exist - process it [09:32:53]requested_item shift.opened is exist - process it [09:32:53]req_shift_opened [09:32:53]FM_GetShiftState [09:32:53]SAM_PROTO_GetShiftState [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 13 01 00 [09:32:53]Write to MH i2c: E2 08 00 EE 23 80 13 01 00 00 00 00 00 8E [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 0E 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 0E 00 EE 23 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 76 [09:32:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:32:53]wFMCommunicate OK [09:32:53]SAM_PROTO_GetShiftState done [09:32:53]FM_GetShiftState done [09:32:53]req_shift_opened done [09:32:53]requested_item shift.open_date is exist - process it [09:32:53]req_shift_open_date [09:32:53]req_shift_open_date done [09:32:53]produce_requested_data done [09:32:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188622,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:32:53]process_action_free close_receipt [09:32:53]json_value_free [09:32:53]json_value_free done [09:32:53]process_json_proto returns [09:32:53]Send response to host [09:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188622,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:32:53]free response buf [09:32:53]execute_script done [09:32:53]execute_script returns [09:32:53]free content buf [09:32:53]Sock 9.Close socket [09:32:53]Sock 9.Thread stoped [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]accept exits with 7 [09:33:22]New connection [09:33:22]New thread 3066506596 created [09:33:22]Thread 3066649956 joined [09:33:22]Waiting for new connection... [09:33:22] Sock 7.Parse request [09:33:22]Sock 7.Check first char [09:33:22]Sock 7.First char is OK [09:33:22]request: POST /json_proto HTTP/1.0 [09:33:22]Method: POST [09:33:22]URL: /json_proto [09:33:22]Method is POST - this is cgi request [09:33:22]url: /json_proto [09:33:22]query_string will be loaded in cgi processing [09:33:22]execute_cgi json_proto POST (null) [09:33:22]execute_cgi path=json_proto method=POST [09:33:22]POST find Content-Length [09:33:22]Host: 172.17.42.131:8080 [09:33:22]Content-Length: 688 [09:33:22]Content-Type: application/json [09:33:22] [09:33:22]POST finish read [09:33:22]Found Content-Length = 688 [09:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 16.710, "sum" : 1290.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1290.00, "total" : 1290.00, "payments": [ { "type": 0, "sum" : 1290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:22]execute_script... [09:33:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 16.710, "sum" : 1290.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1290.00, "total" : 1290.00, "payments": [ { "type": 0, "sum" : 1290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:22]POST & json_proto [09:33:22]process_json_proto [09:33:22]json parsed OK: [09:33:22]protocol is kg_v1.0 [09:33:22]action value=close_receipt [09:33:22]process_action close_receipt [09:33:22]cmd_close_receipt [09:33:22]MH_GetDate [09:33:22]Write to MH i2c: F0 00 00 EF 23 01 [09:33:22]Write i2c OK [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 09 00 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 09 00 EF 23 00 E5 C2 18 67 A0 18 CA 66 18 [09:33:22]GetLastDocTimeStamp 1729675972 [09:33:22]current date 1729676005 [09:33:22]FM_GetShiftState [09:33:22]SAM_PROTO_GetShiftState [09:33:22]wFMCommunicate request_size=4 [09:33:22]MH_SAM_APDU [09:33:22]CAPDU: 80 13 01 00 [09:33:22]Write to MH i2c: E2 08 00 F0 23 80 13 01 00 00 00 00 00 90 [09:33:22]Write i2c OK [09:33:22]MH_I2C_Read... [09:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:22]OFD Sender: No OFD packet to send [09:33:22]Read from MH i2c: E2 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: E2 0E 00 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: E2 0E 00 F0 23 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 78 [09:33:22]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:33:22]wFMCommunicate OK [09:33:22]SAM_PROTO_GetShiftState done [09:33:22]FM_GetShiftState done [09:33:22]opened in 1729642525 [09:33:22]opened+sec_in_day 1729728925 [09:33:22]quantity*price = 129001 [09:33:22]sum+1 = 129002 [09:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1290.00 Внесено: 1290.00 СДАЧА: 0.00 НСП 1% : 11.42 НДС 12% : 136.99 Наличными: 1290.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 81 23.10.2024 09:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188623 ФПД: 2501330516549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093325&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188623&fm=2501330516549&tin=02508201610067®Number=0000000000100030&sum=129000 [09:33:23]StoreToDocumentArchive [09:33:23]shift 462 fd 188623 [09:33:23]save to /storage/0462/doc_00188623 [09:33:23]save last doc name /storage/0462/doc_00188623 to /storage/kkm_last_doc_name [09:33:23]save OK [09:33:23]Clear old archive folders... [09:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:33:23]tlvbuf is 0092EB00 [09:33:23]SAM_PROTO_ClearQueue [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 09 00 00 [09:33:23]Write to MH i2c: E2 08 00 FD 23 80 09 00 00 00 00 00 00 92 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 FD 23 00 90 00 94 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]SAM_PROTO_ClearQueue done [09:33:23]KKMCreateOFDPacket [09:33:23]OFDProtocolAddRootSTLVToBuf [09:33:23]FM_MakeSignedData [09:33:23]FM_MakeSignedData [09:33:23]SAM_PROTO_SignData [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 0D 01 02 [09:33:23]Write to MH i2c: E2 08 00 FE 23 80 0D 01 02 00 00 00 00 9A [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 FE 23 00 90 00 95 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]wFMCommunicate request_size=255 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 F7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 35 00 00 00 00 07 04 06 00 E8 F7 01 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 E5 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E0 02 [09:33:23]Write to MH i2c: E2 02 01 FF 23 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 F7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 35 00 00 00 00 07 04 06 00 E8 F7 01 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 E5 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E0 02 00 00 AC [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 FF 23 00 90 00 96 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]wFMCommunicate request_size=16 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 02 46 62 EA BA 45 [09:33:23]Write to MH i2c: E2 13 00 00 24 80 0D 02 02 0B 00 00 35 04 06 00 02 46 62 EA BA 45 00 00 86 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 00 24 00 90 00 98 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 0D 03 02 [09:33:23]Write to MH i2c: E2 08 00 01 24 80 0D 03 02 00 00 00 00 A0 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 0B 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 0B 00 01 24 00 29 FD 53 98 99 F7 F7 DB 90 00 14 [09:33:23]RAPDU: 29 FD 53 98 99 F7 F7 DB 90 00 [09:33:23]wFMCommunicate OK [09:33:23]SAM_PROTO_SignData done [09:33:23]FM_MakeSignedData done [09:33:23]CreateOFDProtocolMessage [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 11 00 00 [09:33:23]Write to MH i2c: E2 08 00 02 24 80 11 00 00 00 00 00 00 A0 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 17 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 17 00 02 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [09:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:33:23]wFMCommunicate OK [09:33:23]CreateOFDProtocolMessage done [09:33:23]OFDSenderStorePacket 188623 [09:33:23]StoreOFDPacket docnum=188623 [09:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 24 06 0D 01 FB E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 F7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 35 00 00 00 00 07 04 06 00 E8 F7 01 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 E5 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E0 02 00 35 04 06 00 02 46 62 EA BA 45 29 FD 53 98 99 F7 F7 DB [09:33:23]CheckFolder [09:33:23]dirname=/storage/ofd_packets [09:33:23]CheckFolder done [09:33:23]ProducePacketName [09:33:23]name=ofd_packets/00188623 [09:33:23]NVStorageSaveData ofd_packets/00188623 [09:33:23]File name is /storage/ofd_packets/00188623 [09:33:23]Write 307 bytes [09:33:23]NVStorageSaveData done [09:33:23]OFDSenderStorePacket done [09:33:23]KKMCreateOFDPacket done [09:33:23]NVStorageSaveData kkm_last_timestamp [09:33:23]File name is /storage/kkm_last_timestamp [09:33:23]Write 4 bytes [09:33:23]NVStorageSaveData done [09:33:23]ExternCall_PrintAddStr [09:33:23]wPrintStart [09:33:23]Write to MH i2c: 01 00 00 03 24 27 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: 01 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: 01 07 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: 01 07 00 03 24 00 00 00 00 00 FF 0F 3C [09:33:23]RasterBufferAndPrint [09:33:23]line Счет N : (1)210683 [09:33:23]line ИНН: 02508201610067 [09:33:23]line Контрольно-Кассовый Чек [09:33:23]line ПРОДАЖА [09:33:23]line ТРК (МРК, ГНК) : 31 [09:33:23]line Товар: 2710194210 [09:33:23]line D-ENERGY ДТ-К-5 [09:33:23]line 16.710 * 77.20 [09:33:23]line = 1290.01 [09:33:23]line НДС 12% НСП 1% [09:33:23]line > о реализуемом товаре [09:33:23]line ОКРУГЛЕНИЕ: -0.01 [09:33:23]line ИТОГО: 1290.00 [09:33:23]line Внесено: 1290.00 [09:33:23]line СДАЧА: 0.00 [09:33:23]line НСП 1% : 11.42 [09:33:23]line НДС 12% : 136.99 [09:33:23]line Наличными: 1290.00 [09:33:23]line Безнал.: 0.00 [09:33:23]line Место: АЗС № 86 "Партнер Нефть" [09:33:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:33:23]line СНО: Общий режим [09:33:23]line Чек 81 23.10.2024 09:33 [09:33:23]line Смена: 462 ФФД: 1.0 [09:33:24]line ЗНМ: 0300000155 [09:33:24]line РНМ: 0000000000100030 [09:33:24]line Версия ККМ: 001 [09:33:24]line ФМ: 0000000000965340 [09:33:24]line ФД: 188623 [09:33:24]line ФПД: 2501330516549 [09:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093325&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188623&fm=2501330516549&tin=02508201610067®Number=0000000000100030&sum=129000 [09:33:24]written 0, free lines is 4095 [09:33:24]OFD Sender: Processing packet 188623 [packets to send 1062, broken 1061] [09:33:24]ProducePacketName [09:33:24]name=ofd_packets/00188623 [09:33:24]OFD Sender: To server: pG, [09:33:24]CommunicateWithHost lk.salyk.kg:30040 [09:33:24]ConnectInit lk.salyk.kg [09:33:24]Connected sock=10 [09:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 24 06 0D 01 FB E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 F7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 35 00 00 00 00 07 04 06 00 E8 F7 01 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 E5 C2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E0 02 00 35 04 06 00 02 46 62 EA BA 45 29 FD 53 98 99 F7 F7 DB [09:33:24]Write to MH i2c: 01 00 00 2E 24 52 [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 2E 24 00 00 00 00 00 4F 0C B4 [09:33:24]RasterBufferAndPrint [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]written 0, free lines is 3155 [09:33:24]MH_Cut [09:33:24]Write to MH i2c: D1 01 00 35 24 01 2B [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: D1 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: D1 01 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: D1 01 00 35 24 00 2A [09:33:24]Write to MH i2c: 01 00 00 36 24 5A [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2F F6 47 00 85 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E0 02 00 F4 03 04 00 D0 6C 18 67 B6 04 01 00 00 3C 97 FD B9 35 B5 59 05 [09:33:24]CommunicateWithHost err = 0 [09:33:24]CheckOFDResponse [09:33:24]1017 (14) - 77093643461234 [09:33:24]1041 (16) - 0000000000965340 [09:33:24]1040 (4) - 188623 [09:33:24]1012 (4) - 23.10.2024 03:26 [09:33:24]1206 (1) - 0 [09:33:24]OFD Sender: Remove packet 188623 [09:33:24]ProducePacketName [09:33:24]name=ofd_packets/00188623 [09:33:24]NVStorageDeleteData [09:33:25]OFD Sender: No OFD packet to send [09:33:25]*** Cut start [09:33:25]*** Partial cut [09:33:25]*** CUTSNS_PIN = 1 [09:33:25]*** CUTSNS_PIN = 0 [09:33:26]*** Brake cut motor [09:33:26]Read from MH i2c: 01 [09:33:26]MH_I2C_Read... [09:33:26]*** Stop cut motor [09:33:26]*** Cut end [09:33:26]Read from MH i2c: 01 07 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: 01 07 00 36 24 00 00 00 00 00 FF 0F 6F [09:33:26]process_action close_receipt done [09:33:26]requested_data is exist [09:33:26]produce_requested_data [09:33:26]requested_item fm.sn is exist - process it [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 11 00 00 [09:33:26]Write to MH i2c: E2 08 00 37 24 80 11 00 00 00 00 00 00 D5 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 17 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 17 00 37 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [09:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:33:26]wFMCommunicate OK [09:33:26]requested_item fd.num is exist - process it [09:33:26]SAM_PROTO_GetFieldsCounters [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 13 00 00 [09:33:26]Write to MH i2c: E2 08 00 38 24 80 13 00 00 00 00 00 00 D8 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 62 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 62 00 38 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [09:33:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:26]wFMCommunicate OK [09:33:26]SAM_PROTO_GetFieldsCounters done [09:33:26]requested_item shift.num is exist - process it [09:33:26]requested_item shift.opened is exist - process it [09:33:26]req_shift_opened [09:33:26]FM_GetShiftState [09:33:26]SAM_PROTO_GetShiftState [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 13 01 00 [09:33:26]Write to MH i2c: E2 08 00 39 24 80 13 01 00 00 00 00 00 DA [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 0E 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 0E 00 39 24 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C2 [09:33:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:33:26]wFMCommunicate OK [09:33:26]SAM_PROTO_GetShiftState done [09:33:26]FM_GetShiftState done [09:33:26]req_shift_opened done [09:33:26]requested_item shift.open_date is exist - process it [09:33:26]req_shift_open_date [09:33:26]req_shift_open_date done [09:33:26]produce_requested_data done [09:33:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188623,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:33:26]process_action_free close_receipt [09:33:26]json_value_free [09:33:26]json_value_free done [09:33:26]process_json_proto returns [09:33:26]Send response to host [09:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188623,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:33:26]free response buf [09:33:26]execute_script done [09:33:26]execute_script returns [09:33:26]free content buf [09:33:26]Sock 7.Close socket [09:33:26]Sock 7.Thread stoped [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36: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:44]accept exits with 9 [09:37:44]New connection [09:37:44]New thread 3066649956 created [09:37:44]Thread 3066506596 joined [09:37:44]Waiting for new connection... [09:37:44] Sock 9.Parse request [09:37:44]Sock 9.Check first char [09:37:44]Sock 9.First char is OK [09:37:44]request: POST /json_proto HTTP/1.0 [09:37:44]Method: POST [09:37:44]URL: /json_proto [09:37:44]Method is POST - this is cgi request [09:37:44]url: /json_proto [09:37:44]query_string will be loaded in cgi processing [09:37:44]execute_cgi json_proto POST (null) [09:37:44]execute_cgi path=json_proto method=POST [09:37:44]POST find Content-Length [09:37:44]Host: 172.17.42.131:8080 [09:37:44]Content-Length: 682 [09:37:44]Content-Type: application/json [09:37:44] [09:37:44]POST finish read [09:37:44]Found Content-Length = 682 [09:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:44]execute_script... [09:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:44]POST & json_proto [09:37:44]process_json_proto [09:37:44]json parsed OK: [09:37:44]protocol is kg_v1.0 [09:37:44]action value=close_receipt [09:37:44]process_action close_receipt [09:37:44]cmd_close_receipt [09:37:44]MH_GetDate [09:37:44]Write to MH i2c: F0 00 00 3A 24 4D [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 09 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 09 00 3A 24 00 EB C3 18 67 A0 18 CA 66 6B [09:37:44]GetLastDocTimeStamp 1729676005 [09:37:44]current date 1729676267 [09:37:44]FM_GetShiftState [09:37:44]SAM_PROTO_GetShiftState [09:37:44]wFMCommunicate request_size=4 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 13 01 00 [09:37:44]Write to MH i2c: E2 08 00 3B 24 80 13 01 00 00 00 00 00 DC [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 0E 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 0E 00 3B 24 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C4 [09:37:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:37:44]wFMCommunicate OK [09:37:44]SAM_PROTO_GetShiftState done [09:37:44]FM_GetShiftState done [09:37:44]opened in 1729642525 [09:37:44]opened+sec_in_day 1729728925 [09:37:44]quantity*price = 100015 [09:37:44]sum+1 = 100017 [09:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 82 23.10.2024 09:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188624 ФПД: 209251796930435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188624&fm=209251796930435&tin=02508201610067®Number=0000000000100030&sum=100000 [09:37:45]StoreToDocumentArchive [09:37:45]shift 462 fd 188624 [09:37:45]save to /storage/0462/doc_00188624 [09:37:45]save last doc name /storage/0462/doc_00188624 to /storage/kkm_last_doc_name [09:37:45]save OK [09:37:45]Clear old archive folders... [09:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:45]tlvbuf is 0096F9B0 [09:37:45]SAM_PROTO_ClearQueue [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 09 00 00 [09:37:45]Write to MH i2c: E2 08 00 48 24 80 09 00 00 00 00 00 00 DE [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 48 24 00 90 00 E0 [09:37:45]RAPDU: 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_ClearQueue done [09:37:45]KKMCreateOFDPacket [09:37:45]OFDProtocolAddRootSTLVToBuf [09:37:45]FM_MakeSignedData [09:37:45]FM_MakeSignedData [09:37:45]SAM_PROTO_SignData [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 0D 01 02 [09:37:45]Write to MH i2c: E2 08 00 49 24 80 0D 01 02 00 00 00 00 E6 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [09:37:45]RAPDU: 90 00 [09:37:45]wFMCommunicate OK [09:37:45]wFMCommunicate request_size=255 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 EB C3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E0 02 00 35 04 06 00 BE [09:37:45]Write to MH i2c: E2 02 01 4A 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 EB C3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E0 02 00 35 04 06 00 BE 00 00 11 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [09:37:45]RAPDU: 90 00 [09:37:45]wFMCommunicate OK [09:37:45]wFMCommunicate request_size=10 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 0D 02 02 05 50 3B 06 4F 83 [09:37:45]Write to MH i2c: E2 0D 00 4B 24 80 0D 02 02 05 00 50 3B 06 4F 83 00 00 56 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [09:37:45]RAPDU: 90 00 [09:37:45]wFMCommunicate OK [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 0D 03 02 [09:37:45]Write to MH i2c: E2 08 00 4C 24 80 0D 03 02 00 00 00 00 EB [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0B 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0B 00 4C 24 00 1C 2E 7B 28 8A 3F F3 F5 90 00 8A [09:37:45]RAPDU: 1C 2E 7B 28 8A 3F F3 F5 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_SignData done [09:37:45]FM_MakeSignedData done [09:37:45]CreateOFDProtocolMessage [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 11 00 00 [09:37:45]Write to MH i2c: E2 08 00 4D 24 80 11 00 00 00 00 00 00 EB [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 17 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 17 00 4D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [09:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:37:45]wFMCommunicate OK [09:37:45]CreateOFDProtocolMessage done [09:37:45]OFDSenderStorePacket 188624 [09:37:45]StoreOFDPacket docnum=188624 [09:37:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 83 CA 07 01 F6 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 EB C3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E0 02 00 35 04 06 00 BE 50 3B 06 4F 83 1C 2E 7B 28 8A 3F F3 F5 [09:37:45]CheckFolder [09:37:45]dirname=/storage/ofd_packets [09:37:45]CheckFolder done [09:37:45]ProducePacketName [09:37:45]name=ofd_packets/00188624 [09:37:45]NVStorageSaveData ofd_packets/00188624 [09:37:45]File name is /storage/ofd_packets/00188624 [09:37:45]Write 301 bytes [09:37:45]NVStorageSaveData done [09:37:45]OFDSenderStorePacket done [09:37:45]KKMCreateOFDPacket done [09:37:45]NVStorageSaveData kkm_last_timestamp [09:37:45]File name is /storage/kkm_last_timestamp [09:37:45]Write 4 bytes [09:37:45]NVStorageSaveData done [09:37:45]ExternCall_PrintAddStr [09:37:45]wPrintStart [09:37:45]Write to MH i2c: 01 00 00 4E 24 72 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [09:37:45]RasterBufferAndPrint [09:37:45]line Счет N : (1)210684 [09:37:45]line ИНН: 02508201610067 [09:37:45]line Контрольно-Кассовый Чек [09:37:45]line ПРОДАЖА [09:37:45]line ТРК (МРК, ГНК) : 42 [09:37:45]line Товар: 2710124130 [09:37:45]line Аи-92-К-3 [09:37:45]line 14.950 * 66.90 [09:37:45]line = 1000.16 [09:37:45]line НДС 12% НСП 1% [09:37:45]line > о реализуемом товаре [09:37:45]line ОКРУГЛЕНИЕ: -0.16 [09:37:45]line ИТОГО: 1000.00 [09:37:45]line Внесено: 1000.00 [09:37:45]line СДАЧА: 0.00 [09:37:45]line НСП 1% : 8.85 [09:37:45]line НДС 12% : 106.21 [09:37:45]line Наличными: 1000.00 [09:37:45]line Безнал.: 0.00 [09:37:45]line Место: АЗС № 86 "Партнер Нефть" [09:37:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:37:45]line СНО: Общий режим [09:37:45]line Чек 82 23.10.2024 09:37 [09:37:45]line Смена: 462 ФФД: 1.0 [09:37:45]line ЗНМ: 0300000155 [09:37:45]line РНМ: 0000000000100030 [09:37:45]line Версия ККМ: 001 [09:37:45]line ФМ: 0000000000965340 [09:37:45]line ФД: 188624 [09:37:45]line ФПД: 209251796930435 [09:37:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188624&fm=209251796930435&tin=02508201610067®Number=0000000000100030&sum=100000 [09:37:45]written 0, free lines is 4095 [09:37:45]OFD Sender: Processing packet 188624 [packets to send 1062, broken 1061] [09:37:45]ProducePacketName [09:37:45]name=ofd_packets/00188624 [09:37:45]OFD Sender: To server: pG, [09:37:45]CommunicateWithHost lk.salyk.kg:30040 [09:37:45]ConnectInit lk.salyk.kg [09:37:46]Connected sock=10 [09:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 83 CA 07 01 F6 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 EB C3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E0 02 00 35 04 06 00 BE 50 3B 06 4F 83 1C 2E 7B 28 8A 3F F3 F5 [09:37:46]Write to MH i2c: 01 00 00 79 24 9D [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 79 24 00 00 00 00 00 5C 0C 0C [09:37:46]RasterBufferAndPrint [09:37:46]line [09:37:46]line [09:37:46]line [09:37:46]line [09:37:46]line [09:37:46]written 0, free lines is 3167 [09:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 04 BB 47 00 6D C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E0 02 00 F4 03 04 00 D6 6D 18 67 B6 04 01 00 00 CF EF ED 5F 0C E9 7D 8C [09:37:46]CommunicateWithHost err = 0 [09:37:46]CheckOFDResponse [09:37:46]1017 (14) - 77093643461234 [09:37:46]1041 (16) - 0000000000965340 [09:37:46]1040 (4) - 188624 [09:37:46]1012 (4) - 23.10.2024 03:30 [09:37:46]1206 (1) - 0 [09:37:46]OFD Sender: Remove packet 188624 [09:37:46]ProducePacketName [09:37:46]name=ofd_packets/00188624 [09:37:46]NVStorageDeleteData [09:37:46]MH_Cut [09:37:46]Write to MH i2c: D1 01 00 80 24 01 76 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: D1 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: D1 01 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: D1 01 00 80 24 00 75 [09:37:46]Write to MH i2c: 01 00 00 81 24 A5 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]OFD Sender: No OFD packet to send [09:37:47]*** Cut start [09:37:47]*** Partial cut [09:37:47]*** CUTSNS_PIN = 1 [09:37:47]*** CUTSNS_PIN = 0 [09:37:47]*** Brake cut motor [09:37:48]Read from MH i2c: 01 [09:37:48]MH_I2C_Read... [09:37:48]*** Stop cut motor [09:37:48]*** Cut end [09:37:48]Read from MH i2c: 01 07 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: 01 07 00 81 24 00 00 00 00 00 FF 0F BA [09:37:48]process_action close_receipt done [09:37:48]requested_data is exist [09:37:48]produce_requested_data [09:37:48]requested_item fm.sn is exist - process it [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 11 00 00 [09:37:48]Write to MH i2c: E2 08 00 82 24 80 11 00 00 00 00 00 00 20 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 17 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 17 00 82 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [09:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:37:48]wFMCommunicate OK [09:37:48]requested_item fd.num is exist - process it [09:37:48]SAM_PROTO_GetFieldsCounters [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 00 00 [09:37:48]Write to MH i2c: E2 08 00 83 24 80 13 00 00 00 00 00 00 23 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 62 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 62 00 83 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [09:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetFieldsCounters done [09:37:48]requested_item shift.num is exist - process it [09:37:48]requested_item shift.opened is exist - process it [09:37:48]req_shift_opened [09:37:48]FM_GetShiftState [09:37:48]SAM_PROTO_GetShiftState [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 01 00 [09:37:48]Write to MH i2c: E2 08 00 84 24 80 13 01 00 00 00 00 00 25 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 84 24 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0D [09:37:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetShiftState done [09:37:48]FM_GetShiftState done [09:37:48]req_shift_opened done [09:37:48]requested_item shift.open_date is exist - process it [09:37:48]req_shift_open_date [09:37:48]req_shift_open_date done [09:37:48]produce_requested_data done [09:37:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188624,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:37:48]process_action_free close_receipt [09:37:48]json_value_free [09:37:48]json_value_free done [09:37:48]process_json_proto returns [09:37:48]Send response to host [09:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188624,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:37:48]free response buf [09:37:48]execute_script done [09:37:48]execute_script returns [09:37:48]free content buf [09:37:48]Sock 9.Close socket [09:37:48]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]accept exits with 7 [09:39:42]New connection [09:39:42]New thread 3066506596 created [09:39:42]Thread 3066649956 joined [09:39:42]Waiting for new connection... [09:39:42] Sock 7.Parse request [09:39:42]Sock 7.Check first char [09:39:42]Sock 7.First char is OK [09:39:42]request: POST /json_proto HTTP/1.0 [09:39:42]Method: POST [09:39:42]URL: /json_proto [09:39:42]Method is POST - this is cgi request [09:39:42]url: /json_proto [09:39:42]query_string will be loaded in cgi processing [09:39:42]execute_cgi json_proto POST (null) [09:39:42]execute_cgi path=json_proto method=POST [09:39:42]POST find Content-Length [09:39:42]Host: 172.17.42.131:8080 [09:39:42]Content-Length: 819 [09:39:42]Content-Type: application/json [09:39:42] [09:39:42]POST finish read [09:39:42]Found Content-Length = 819 [09:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:42]execute_script... [09:39:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:42]POST & json_proto [09:39:42]process_json_proto [09:39:42]json parsed OK: [09:39:42]protocol is kg_v1.0 [09:39:42]action value=close_receipt [09:39:42]process_action close_receipt [09:39:42]cmd_close_receipt [09:39:42]MH_GetDate [09:39:42]Write to MH i2c: F0 00 00 85 24 98 [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: F0 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: F0 09 00 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: F0 09 00 85 24 00 61 C4 18 67 A0 18 CA 66 2D [09:39:42]GetLastDocTimeStamp 1729676267 [09:39:42]current date 1729676385 [09:39:42]FM_GetShiftState [09:39:42]SAM_PROTO_GetShiftState [09:39:42]wFMCommunicate request_size=4 [09:39:42]MH_SAM_APDU [09:39:42]CAPDU: 80 13 01 00 [09:39:42]Write to MH i2c: E2 08 00 86 24 80 13 01 00 00 00 00 00 27 [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:42]Read from MH i2c: E2 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: E2 0E 00 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: E2 0E 00 86 24 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0F [09:39:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:39:42]wFMCommunicate OK [09:39:42]SAM_PROTO_GetShiftState done [09:39:42]FM_GetShiftState done [09:39:42]opened in 1729642525 [09:39:42]opened+sec_in_day 1729728925 [09:39:42]quantity*price = 150056 [09:39:42]sum+1 = 150058 [09:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 83 23.10.2024 09:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188625 ФПД: 39908967939657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093945&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188625&fm=39908967939657&tin=02508201610067®Number=0000000000100030&sum=150057 [09:39:43]StoreToDocumentArchive [09:39:43]shift 462 fd 188625 [09:39:43]save to /storage/0462/doc_00188625 [09:39:43]save last doc name /storage/0462/doc_00188625 to /storage/kkm_last_doc_name [09:39:43]save OK [09:39:43]Clear old archive folders... [09:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:43]tlvbuf is B6F0B430 [09:39:43]SAM_PROTO_ClearQueue [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 09 00 00 [09:39:43]Write to MH i2c: E2 08 00 93 24 80 09 00 00 00 00 00 00 29 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 93 24 00 90 00 2B [09:39:43]RAPDU: 90 00 [09:39:43]wFMCommunicate OK [09:39:43]SAM_PROTO_ClearQueue done [09:39:43]KKMCreateOFDPacket [09:39:43]OFDProtocolAddRootSTLVToBuf [09:39:43]FM_MakeSignedData [09:39:43]FM_MakeSignedData [09:39:43]SAM_PROTO_SignData [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 0D 01 02 [09:39:43]Write to MH i2c: E2 08 00 94 24 80 0D 01 02 00 00 00 00 31 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 94 24 00 90 00 2C [09:39:43]RAPDU: 90 00 [09:39:43]wFMCommunicate OK [09:39:43]wFMCommunicate request_size=255 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 61 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E0 02 00 35 04 06 00 24 [09:39:43]Write to MH i2c: E2 02 01 95 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 61 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E0 02 00 35 04 06 00 24 00 00 FE [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 95 24 00 90 00 2D [09:39:43]RAPDU: 90 00 [09:39:43]wFMCommunicate OK [09:39:43]wFMCommunicate request_size=10 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 0D 02 02 05 4C 07 DB 7E 49 [09:39:43]Write to MH i2c: E2 0D 00 96 24 80 0D 02 02 05 00 4C 07 DB 7E 49 00 00 33 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 03 00 96 24 00 90 00 2E [09:39:43]RAPDU: 90 00 [09:39:43]wFMCommunicate OK [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 0D 03 02 [09:39:43]Write to MH i2c: E2 08 00 97 24 80 0D 03 02 00 00 00 00 36 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0B 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0B 00 97 24 00 47 F2 7A 54 2C E2 1D FB 90 00 64 [09:39:43]RAPDU: 47 F2 7A 54 2C E2 1D FB 90 00 [09:39:43]wFMCommunicate OK [09:39:43]SAM_PROTO_SignData done [09:39:43]FM_MakeSignedData done [09:39:43]CreateOFDProtocolMessage [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 11 00 00 [09:39:43]Write to MH i2c: E2 08 00 98 24 80 11 00 00 00 00 00 00 36 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 17 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 17 00 98 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [09:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:39:43]wFMCommunicate OK [09:39:43]CreateOFDProtocolMessage done [09:39:43]OFDSenderStorePacket 188625 [09:39:43]StoreOFDPacket docnum=188625 [09:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0A AB 07 01 CC A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 61 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E0 02 00 35 04 06 00 24 4C 07 DB 7E 49 47 F2 7A 54 2C E2 1D FB [09:39:43]CheckFolder [09:39:43]dirname=/storage/ofd_packets [09:39:43]CheckFolder done [09:39:43]ProducePacketName [09:39:43]name=ofd_packets/00188625 [09:39:43]NVStorageSaveData ofd_packets/00188625 [09:39:43]File name is /storage/ofd_packets/00188625 [09:39:43]Write 301 bytes [09:39:43]NVStorageSaveData done [09:39:43]OFDSenderStorePacket done [09:39:43]KKMCreateOFDPacket done [09:39:43]NVStorageSaveData kkm_last_timestamp [09:39:43]File name is /storage/kkm_last_timestamp [09:39:43]Write 4 bytes [09:39:43]NVStorageSaveData done [09:39:43]ExternCall_PrintAddStr [09:39:43]wPrintStart [09:39:43]Write to MH i2c: 01 00 00 99 24 BD [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: 01 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: 01 07 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: 01 07 00 99 24 00 00 00 00 00 FF 0F D2 [09:39:43]RasterBufferAndPrint [09:39:43]line Счет N : (1)210685 [09:39:43]line ИНН: 02508201610067 [09:39:43]line Контрольно-Кассовый Чек [09:39:43]line ПРОДАЖА [09:39:43]line ТРК (МРК, ГНК) : 12 [09:39:43]line Товар: 2710124130 [09:39:43]line Аи-92-К-3 [09:39:43]line 22.430 * 66.90 [09:39:43]line = 1500.57 [09:39:43]line НДС 12% НСП 1% [09:39:43]line > о реализуемом товаре [09:39:43]line ИТОГО: 1500.57 [09:39:43]line НСП 1% : 13.28 [09:39:43]line НДС 12% : 159.35 [09:39:43]line Наличными: 0.00 [09:39:43]line Безнал.: 1500.57 [09:39:43]line Место: АЗС № 86 "Партнер Нефть" [09:39:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:39:43]line СНО: Общий режим [09:39:43]line Чек 83 23.10.2024 09:39 [09:39:43]line Смена: 462 ФФД: 1.0 [09:39:43]line ЗНМ: 0300000155 [09:39:43]line РНМ: 0000000000100030 [09:39:43]line Версия ККМ: 001 [09:39:43]line Платежная система: Бакай Банк [09:39:43]line ФМ: 0000000000965340 [09:39:43]line ФД: 188625 [09:39:43]line ФПД: 39908967939657 [09:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093945&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188625&fm=39908967939657&tin=02508201610067®Number=0000000000100030&sum=150057 [09:39:43]written 0, free lines is 4095 [09:39:43]OFD Sender: Processing packet 188625 [packets to send 1062, broken 1061] [09:39:43]ProducePacketName [09:39:43]name=ofd_packets/00188625 [09:39:43]OFD Sender: To server: pG, [09:39:43]CommunicateWithHost lk.salyk.kg:30040 [09:39:43]ConnectInit lk.salyk.kg [09:39:44]Write to MH i2c: 01 00 00 C3 24 E7 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 C3 24 00 00 00 00 00 6E 0C 68 [09:39:44]RasterBufferAndPrint [09:39:44]line [09:39:44]line [09:39:44]line [09:39:44]line [09:39:44]line [09:39:44]written 0, free lines is 3187 [09:39:44]MH_Cut [09:39:44]Write to MH i2c: D1 01 00 CA 24 01 C0 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D1 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D1 01 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D1 01 00 CA 24 00 BF [09:39:44]Write to MH i2c: 01 00 00 CB 24 EF [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Connected sock=10 [09:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0A AB 07 01 CC A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 61 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E0 02 00 35 04 06 00 24 4C 07 DB 7E 49 47 F2 7A 54 2C E2 1D FB [09:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4A 50 47 00 54 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 36 35 33 34 30 10 04 04 00 D1 E0 02 00 F4 03 04 00 4C 6E 18 67 B6 04 01 00 00 05 7D C0 84 93 9C E0 94 [09:39:44]CommunicateWithHost err = 0 [09:39:44]CheckOFDResponse [09:39:44]1017 (14) - 77093643461234 [09:39:44]1041 (16) - 0000000000965340 [09:39:44]1040 (4) - 188625 [09:39:44]1012 (4) - 23.10.2024 03:32 [09:39:44]1206 (1) - 0 [09:39:44]OFD Sender: Remove packet 188625 [09:39:44]ProducePacketName [09:39:44]name=ofd_packets/00188625 [09:39:44]NVStorageDeleteData [09:39:45]OFD Sender: No OFD packet to send [09:39:45]*** Cut start [09:39:45]*** Partial cut [09:39:45]*** CUTSNS_PIN = 1 [09:39:45]*** CUTSNS_PIN = 0 [09:39:45]*** Brake cut motor [09:39:46]Read from MH i2c: 01 [09:39:46]MH_I2C_Read... [09:39:46]*** Stop cut motor [09:39:46]*** Cut end [09:39:46]Read from MH i2c: 01 07 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: 01 07 00 CB 24 00 00 00 00 00 FF 0F 04 [09:39:46]process_action close_receipt done [09:39:46]requested_data is exist [09:39:46]produce_requested_data [09:39:46]requested_item fm.sn is exist - process it [09:39:46]wFMCommunicate request_size=4 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 11 00 00 [09:39:46]Write to MH i2c: E2 08 00 CC 24 80 11 00 00 00 00 00 00 6A [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 17 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 17 00 CC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [09:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:39:46]wFMCommunicate OK [09:39:46]requested_item fd.num is exist - process it [09:39:46]SAM_PROTO_GetFieldsCounters [09:39:46]wFMCommunicate request_size=4 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 13 00 00 [09:39:46]Write to MH i2c: E2 08 00 CD 24 80 13 00 00 00 00 00 00 6D [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 62 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 62 00 CD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [09:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:46]wFMCommunicate OK [09:39:46]SAM_PROTO_GetFieldsCounters done [09:39:46]requested_item shift.num is exist - process it [09:39:46]requested_item shift.opened is exist - process it [09:39:46]req_shift_opened [09:39:46]FM_GetShiftState [09:39:46]SAM_PROTO_GetShiftState [09:39:46]wFMCommunicate request_size=4 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 13 01 00 [09:39:46]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 0E 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 0E 00 CE 24 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 57 [09:39:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:39:46]wFMCommunicate OK [09:39:46]SAM_PROTO_GetShiftState done [09:39:46]FM_GetShiftState done [09:39:46]req_shift_opened done [09:39:46]requested_item shift.open_date is exist - process it [09:39:46]req_shift_open_date [09:39:46]req_shift_open_date done [09:39:46]produce_requested_data done [09:39:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188625,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:39:46]process_action_free close_receipt [09:39:46]json_value_free [09:39:46]json_value_free done [09:39:46]process_json_proto returns [09:39:46]Send response to host [09:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188625,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:39:46]free response buf [09:39:46]execute_script done [09:39:46]execute_script returns [09:39:46]free content buf [09:39:46]Sock 7.Close socket [09:39:46]Sock 7.Thread stoped [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]accept exits with 9 [09:40:40]New connection [09:40:40]New thread 3066649956 created [09:40:40]Thread 3066506596 joined [09:40:40]Waiting for new connection... [09:40:40] Sock 9.Parse request [09:40:40]Sock 9.Check first char [09:40:40]Sock 9.First char is OK [09:40:40]request: POST /json_proto HTTP/1.0 [09:40:40]Method: POST [09:40:40]URL: /json_proto [09:40:40]Method is POST - this is cgi request [09:40:40]url: /json_proto [09:40:40]query_string will be loaded in cgi processing [09:40:40]execute_cgi json_proto POST (null) [09:40:40]execute_cgi path=json_proto method=POST [09:40:40]POST find Content-Length [09:40:40]Host: 172.17.42.131:8080 [09:40:40]Content-Length: 679 [09:40:40]Content-Type: application/json [09:40:40] [09:40:40]POST finish read [09:40:40]Found Content-Length = 679 [09:40:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:40]execute_script... [09:40:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:40]POST & json_proto [09:40:40]process_json_proto [09:40:40]json parsed OK: [09:40:40]protocol is kg_v1.0 [09:40:40]action value=close_receipt [09:40:40]process_action close_receipt [09:40:40]cmd_close_receipt [09:40:40]MH_GetDate [09:40:40]Write to MH i2c: F0 00 00 CF 24 E2 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: F0 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: F0 09 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: F0 09 00 CF 24 00 9B C4 18 67 A0 18 CA 66 B1 [09:40:40]GetLastDocTimeStamp 1729676385 [09:40:40]current date 1729676443 [09:40:40]FM_GetShiftState [09:40:40]SAM_PROTO_GetShiftState [09:40:40]wFMCommunicate request_size=4 [09:40:40]MH_SAM_APDU [09:40:40]CAPDU: 80 13 01 00 [09:40:40]Write to MH i2c: E2 08 00 D0 24 80 13 01 00 00 00 00 00 71 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:40]Read from MH i2c: E2 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 0E 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 0E 00 D0 24 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 59 [09:40:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:40:40]wFMCommunicate OK [09:40:40]SAM_PROTO_GetShiftState done [09:40:40]FM_GetShiftState done [09:40:40]opened in 1729642525 [09:40:40]opened+sec_in_day 1729728925 [09:40:40]quantity*price = 300075 [09:40:40]sum+1 = 300077 [09:40:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 84 23.10.2024 09:40 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188626 ФПД: 109041667325790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094043&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188626&fm=109041667325790&tin=02508201610067®Number=0000000000100030&sum=300000 [09:40:41]StoreToDocumentArchive [09:40:41]shift 462 fd 188626 [09:40:41]save to /storage/0462/doc_00188626 [09:40:41]save last doc name /storage/0462/doc_00188626 to /storage/kkm_last_doc_name [09:40:41]save OK [09:40:41]Clear old archive folders... [09:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:41]tlvbuf is 00931060 [09:40:41]SAM_PROTO_ClearQueue [09:40:41]wFMCommunicate request_size=4 [09:40:41]MH_SAM_APDU [09:40:41]CAPDU: 80 09 00 00 [09:40:41]Write to MH i2c: E2 08 00 DD 24 80 09 00 00 00 00 00 00 73 [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:41]Read from MH i2c: E2 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 03 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 03 00 DD 24 00 90 00 75 [09:40:41]RAPDU: 90 00 [09:40:41]wFMCommunicate OK [09:40:41]SAM_PROTO_ClearQueue done [09:40:41]KKMCreateOFDPacket [09:40:41]OFDProtocolAddRootSTLVToBuf [09:40:41]FM_MakeSignedData [09:40:41]FM_MakeSignedData [09:40:41]SAM_PROTO_SignData [09:40:41]wFMCommunicate request_size=4 [09:40:41]MH_SAM_APDU [09:40:41]CAPDU: 80 0D 01 02 [09:40:41]Write to MH i2c: E2 08 00 DE 24 80 0D 01 02 00 00 00 00 7B [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:41]Read from MH i2c: E2 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 03 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 03 00 DE 24 00 90 00 76 [09:40:41]RAPDU: 90 00 [09:40:41]wFMCommunicate OK [09:40:41]wFMCommunicate request_size=255 [09:40:41]MH_SAM_APDU [09:40:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9B C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E0 02 00 35 04 06 00 63 2C 3D D8 [09:40:41]Write to MH i2c: E2 02 01 DF 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9B C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E0 02 00 35 04 06 00 63 2C 3D D8 00 00 76 [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 DF 24 00 90 00 77 [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=7 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 02 02 02 BF 5E [09:40:42]Write to MH i2c: E2 0A 00 E0 24 80 0D 02 02 02 00 BF 5E 00 00 9F [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 E0 24 00 90 00 78 [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 03 02 [09:40:42]Write to MH i2c: E2 08 00 E1 24 80 0D 03 02 00 00 00 00 80 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 0B 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 0B 00 E1 24 00 01 03 FC 9C 03 3C 8F FF 90 00 EA [09:40:42]RAPDU: 01 03 FC 9C 03 3C 8F FF 90 00 [09:40:42]wFMCommunicate OK [09:40:42]SAM_PROTO_SignData done [09:40:42]FM_MakeSignedData done [09:40:42]CreateOFDProtocolMessage [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 11 00 00 [09:40:42]Write to MH i2c: E2 08 00 E2 24 80 11 00 00 00 00 00 00 80 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 17 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 17 00 E2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [09:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:40:42]wFMCommunicate OK [09:40:42]CreateOFDProtocolMessage done [09:40:42]OFDSenderStorePacket 188626 [09:40:42]StoreOFDPacket docnum=188626 [09:40:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 76 00 04 01 28 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9B C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E0 02 00 35 04 06 00 63 2C 3D D8 BF 5E 01 03 FC 9C 03 3C 8F FF [09:40:42]CheckFolder [09:40:42]dirname=/storage/ofd_packets [09:40:42]CheckFolder done [09:40:42]ProducePacketName [09:40:42]name=ofd_packets/00188626 [09:40:42]NVStorageSaveData ofd_packets/00188626 [09:40:42]File name is /storage/ofd_packets/00188626 [09:40:42]Write 298 bytes [09:40:42]NVStorageSaveData done [09:40:42]OFDSenderStorePacket done [09:40:42]KKMCreateOFDPacket done [09:40:42]NVStorageSaveData kkm_last_timestamp [09:40:42]File name is /storage/kkm_last_timestamp [09:40:42]Write 4 bytes [09:40:42]NVStorageSaveData done [09:40:42]ExternCall_PrintAddStr [09:40:42]wPrintStart [09:40:42]Write to MH i2c: 01 00 00 E3 24 07 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 07 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 FF 0F 1C [09:40:42]RasterBufferAndPrint [09:40:42]line Счет N : (1)210686 [09:40:42]line ИНН: 02508201610067 [09:40:42]line Контрольно-Кассовый Чек [09:40:42]line ПРОДАЖА [09:40:42]line ТРК (МРК, ГНК) : 51 [09:40:42]line Товар: 2710194210 [09:40:42]line ДТ-К-5 [09:40:42]line 39.380 * 76.20 [09:40:42]line = 3000.76 [09:40:42]line НДС 12% НСП 1% [09:40:42]line > о реализуемом товаре [09:40:42]line ОКРУГЛЕНИЕ: -0.76 [09:40:42]line ИТОГО: 3000.00 [09:40:42]line Внесено: 3000.00 [09:40:42]line СДАЧА: 0.00 [09:40:42]line НСП 1% : 26.55 [09:40:42]line НДС 12% : 318.66 [09:40:42]line Наличными: 3000.00 [09:40:42]line Безнал.: 0.00 [09:40:42]line Место: АЗС № 86 "Партнер Нефть" [09:40:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:40:42]line СНО: Общий режим [09:40:42]line Чек 84 23.10.2024 09:40 [09:40:42]line Смена: 462 ФФД: 1.0 [09:40:42]line ЗНМ: 0300000155 [09:40:42]line РНМ: 0000000000100030 [09:40:42]line Версия ККМ: 001 [09:40:42]line ФМ: 0000000000965340 [09:40:42]line ФД: 188626 [09:40:42]line ФПД: 109041667325790 [09:40:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094043&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188626&fm=109041667325790&tin=02508201610067®Number=0000000000100030&sum=300000 [09:40:42]written 0, free lines is 4095 [09:40:42]OFD Sender: Processing packet 188626 [packets to send 1062, broken 1061] [09:40:42]ProducePacketName [09:40:42]name=ofd_packets/00188626 [09:40:42]OFD Sender: To server: pG, [09:40:42]CommunicateWithHost lk.salyk.kg:30040 [09:40:42]ConnectInit lk.salyk.kg [09:40:42]Connected sock=10 [09:40:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 76 00 04 01 28 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9B C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E0 02 00 35 04 06 00 63 2C 3D D8 BF 5E 01 03 FC 9C 03 3C 8F FF [09:40:42]Write to MH i2c: 01 00 00 0E 25 33 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 07 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 07 00 0E 25 00 00 00 00 00 59 0C 9F [09:40:42]RasterBufferAndPrint [09:40:42]line [09:40:42]line [09:40:42]line [09:40:42]line [09:40:42]line [09:40:42]written 0, free lines is 3165 [09:40:42]MH_Cut [09:40:42]Write to MH i2c: D1 01 00 15 25 01 0C [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: D1 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: D1 01 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: D1 01 00 15 25 00 0B [09:40:42]Write to MH i2c: 01 00 00 16 25 3B [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 2C 47 00 22 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E0 02 00 F4 03 04 00 86 6E 18 67 B6 04 01 00 00 4D DB 7E AE DD E9 3B B2 [09:40:42]CommunicateWithHost err = 0 [09:40:42]CheckOFDResponse [09:40:42]1017 (14) - 77093643461234 [09:40:42]1041 (16) - 0000000000965340 [09:40:42]1040 (4) - 188626 [09:40:42]1012 (4) - 23.10.2024 03:33 [09:40:42]1206 (1) - 0 [09:40:42]OFD Sender: Remove packet 188626 [09:40:42]ProducePacketName [09:40:42]name=ofd_packets/00188626 [09:40:42]NVStorageDeleteData [09:40:43]OFD Sender: No OFD packet to send [09:40:43]*** Cut start [09:40:43]*** Partial cut [09:40:43]*** CUTSNS_PIN = 1 [09:40:43]*** CUTSNS_PIN = 0 [09:40:44]*** Brake cut motor [09:40:44]Read from MH i2c: 01 [09:40:44]MH_I2C_Read... [09:40:44]*** Stop cut motor [09:40:44]*** Cut end [09:40:44]Read from MH i2c: 01 07 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: 01 07 00 16 25 00 00 00 00 00 FF 0F 50 [09:40:44]process_action close_receipt done [09:40:44]requested_data is exist [09:40:44]produce_requested_data [09:40:44]requested_item fm.sn is exist - process it [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 11 00 00 [09:40:44]Write to MH i2c: E2 08 00 17 25 80 11 00 00 00 00 00 00 B6 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 17 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 17 00 17 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [09:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:40:44]wFMCommunicate OK [09:40:44]requested_item fd.num is exist - process it [09:40:44]SAM_PROTO_GetFieldsCounters [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 13 00 00 [09:40:44]Write to MH i2c: E2 08 00 18 25 80 13 00 00 00 00 00 00 B9 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 62 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 62 00 18 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [09:40:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:44]wFMCommunicate OK [09:40:44]SAM_PROTO_GetFieldsCounters done [09:40:44]requested_item shift.num is exist - process it [09:40:44]requested_item shift.opened is exist - process it [09:40:44]req_shift_opened [09:40:44]FM_GetShiftState [09:40:44]SAM_PROTO_GetShiftState [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 13 01 00 [09:40:44]Write to MH i2c: E2 08 00 19 25 80 13 01 00 00 00 00 00 BB [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 0E 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 0E 00 19 25 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A3 [09:40:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:40:44]wFMCommunicate OK [09:40:44]SAM_PROTO_GetShiftState done [09:40:44]FM_GetShiftState done [09:40:44]req_shift_opened done [09:40:44]requested_item shift.open_date is exist - process it [09:40:44]req_shift_open_date [09:40:44]req_shift_open_date done [09:40:44]produce_requested_data done [09:40:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188626,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:40:44]process_action_free close_receipt [09:40:44]json_value_free [09:40:44]json_value_free done [09:40:44]process_json_proto returns [09:40:44]Send response to host [09:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188626,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:40:44]free response buf [09:40:44]execute_script done [09:40:44]execute_script returns [09:40:44]free content buf [09:40:44]Sock 9.Close socket [09:40:44]Sock 9.Thread stoped [09:40:45]accept exits with 7 [09:40:45]New connection [09:40:45]New thread 3066506596 created [09:40:45]Thread 3066649956 joined [09:40:45]Waiting for new connection... [09:40:45] Sock 7.Parse request [09:40:45]Sock 7.Check first char [09:40:45]Sock 7.First char is OK [09:40:45]request: POST /json_proto HTTP/1.0 [09:40:45]Method: POST [09:40:45]URL: /json_proto [09:40:45]Method is POST - this is cgi request [09:40:45]url: /json_proto [09:40:45]query_string will be loaded in cgi processing [09:40:45]execute_cgi json_proto POST (null) [09:40:45]execute_cgi path=json_proto method=POST [09:40:45]POST find Content-Length [09:40:45]Host: 172.17.42.131:8080 [09:40:45]Content-Length: 816 [09:40:45]Content-Type: application/json [09:40:45] [09:40:45]POST finish read [09:40:45]Found Content-Length = 816 [09:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:45]execute_script... [09:40:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:45]POST & json_proto [09:40:45]process_json_proto [09:40:45]json parsed OK: [09:40:45]protocol is kg_v1.0 [09:40:45]action value=close_receipt [09:40:45]process_action close_receipt [09:40:45]cmd_close_receipt [09:40:45]MH_GetDate [09:40:45]Write to MH i2c: F0 00 00 1A 25 2E [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: F0 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: F0 09 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: F0 09 00 1A 25 00 A0 C4 18 67 A0 18 CA 66 02 [09:40:45]GetLastDocTimeStamp 1729676443 [09:40:45]current date 1729676448 [09:40:45]FM_GetShiftState [09:40:45]SAM_PROTO_GetShiftState [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 13 01 00 [09:40:45]Write to MH i2c: E2 08 00 1B 25 80 13 01 00 00 00 00 00 BD [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0E 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0E 00 1B 25 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A5 [09:40:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:40:45]wFMCommunicate OK [09:40:45]SAM_PROTO_GetShiftState done [09:40:45]FM_GetShiftState done [09:40:45]opened in 1729642525 [09:40:45]opened+sec_in_day 1729728925 [09:40:45]quantity*price = 50010 [09:40:45]sum+1 = 50012 [09:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 85 23.10.2024 09:40 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188627 ФПД: 228403953091715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094048&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188627&fm=228403953091715&tin=02508201610067®Number=0000000000100030&sum=50011 [09:40:46]StoreToDocumentArchive [09:40:46]shift 462 fd 188627 [09:40:46]save to /storage/0462/doc_00188627 [09:40:46]save last doc name /storage/0462/doc_00188627 to /storage/kkm_last_doc_name [09:40:46]save OK [09:40:46]Clear old archive folders... [09:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:46]tlvbuf is 009A9260 [09:40:46]SAM_PROTO_ClearQueue [09:40:46]wFMCommunicate request_size=4 [09:40:46]MH_SAM_APDU [09:40:46]CAPDU: 80 09 00 00 [09:40:46]Write to MH i2c: E2 08 00 28 25 80 09 00 00 00 00 00 00 BF [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:46]Read from MH i2c: E2 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 03 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [09:40:46]RAPDU: 90 00 [09:40:46]wFMCommunicate OK [09:40:46]SAM_PROTO_ClearQueue done [09:40:46]KKMCreateOFDPacket [09:40:46]OFDProtocolAddRootSTLVToBuf [09:40:46]FM_MakeSignedData [09:40:46]FM_MakeSignedData [09:40:46]SAM_PROTO_SignData [09:40:46]wFMCommunicate request_size=4 [09:40:46]MH_SAM_APDU [09:40:46]CAPDU: 80 0D 01 02 [09:40:46]Write to MH i2c: E2 08 00 29 25 80 0D 01 02 00 00 00 00 C7 [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:46]Read from MH i2c: E2 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 03 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 03 00 29 25 00 90 00 C2 [09:40:46]RAPDU: 90 00 [09:40:46]wFMCommunicate OK [09:40:46]wFMCommunicate request_size=255 [09:40:46]MH_SAM_APDU [09:40:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A0 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E0 02 00 35 04 06 00 CF [09:40:46]Write to MH i2c: E2 02 01 2A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A0 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E0 02 00 35 04 06 00 CF 00 00 B3 [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 2A 25 00 90 00 C3 [09:40:47]RAPDU: 90 00 [09:40:47]wFMCommunicate OK [09:40:47]wFMCommunicate request_size=10 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 0D 02 02 05 BB 70 7D 44 83 [09:40:47]Write to MH i2c: E2 0D 00 2B 25 80 0D 02 02 05 00 BB 70 7D 44 83 00 00 43 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 2B 25 00 90 00 C4 [09:40:47]RAPDU: 90 00 [09:40:47]wFMCommunicate OK [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 0D 03 02 [09:40:47]Write to MH i2c: E2 08 00 2C 25 80 0D 03 02 00 00 00 00 CC [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 0B 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 0B 00 2C 25 00 DB 12 12 F2 E8 68 54 D2 90 00 34 [09:40:47]RAPDU: DB 12 12 F2 E8 68 54 D2 90 00 [09:40:47]wFMCommunicate OK [09:40:47]SAM_PROTO_SignData done [09:40:47]FM_MakeSignedData done [09:40:47]CreateOFDProtocolMessage [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 11 00 00 [09:40:47]Write to MH i2c: E2 08 00 2D 25 80 11 00 00 00 00 00 00 CC [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 17 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 17 00 2D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [09:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:40:47]wFMCommunicate OK [09:40:47]CreateOFDProtocolMessage done [09:40:47]OFDSenderStorePacket 188627 [09:40:47]StoreOFDPacket docnum=188627 [09:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D 1E 07 01 67 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A0 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E0 02 00 35 04 06 00 CF BB 70 7D 44 83 DB 12 12 F2 E8 68 54 D2 [09:40:47]CheckFolder [09:40:47]dirname=/storage/ofd_packets [09:40:47]CheckFolder done [09:40:47]ProducePacketName [09:40:47]name=ofd_packets/00188627 [09:40:47]NVStorageSaveData ofd_packets/00188627 [09:40:47]File name is /storage/ofd_packets/00188627 [09:40:47]Write 301 bytes [09:40:47]NVStorageSaveData done [09:40:47]OFDSenderStorePacket done [09:40:47]KKMCreateOFDPacket done [09:40:47]NVStorageSaveData kkm_last_timestamp [09:40:47]File name is /storage/kkm_last_timestamp [09:40:47]Write 4 bytes [09:40:47]NVStorageSaveData done [09:40:47]ExternCall_PrintAddStr [09:40:47]wPrintStart [09:40:47]Write to MH i2c: 01 00 00 2E 25 53 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: 01 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: 01 07 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 FF 0F 68 [09:40:47]RasterBufferAndPrint [09:40:47]line Счет N : (1)210687 [09:40:47]line ИНН: 02508201610067 [09:40:47]line Контрольно-Кассовый Чек [09:40:47]line ПРОДАЖА [09:40:47]line ТРК (МРК, ГНК) : 43 [09:40:47]line Товар: 2710124500 [09:40:47]line Аи-95-К-3 [09:40:47]line 6.740 * 74.20 [09:40:47]line = 500.11 [09:40:47]line НДС 12% НСП 1% [09:40:47]line > о реализуемом товаре [09:40:47]line ИТОГО: 500.11 [09:40:47]line НСП 1% : 4.43 [09:40:47]line НДС 12% : 53.11 [09:40:47]line Наличными: 0.00 [09:40:47]line Безнал.: 500.11 [09:40:47]line Место: АЗС № 86 "Партнер Нефть" [09:40:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:40:47]line СНО: Общий режим [09:40:47]line Чек 85 23.10.2024 09:40 [09:40:47]line Смена: 462 ФФД: 1.0 [09:40:47]line ЗНМ: 0300000155 [09:40:47]line РНМ: 0000000000100030 [09:40:47]line Версия ККМ: 001 [09:40:47]line Платежная система: Бакай Банк [09:40:47]line ФМ: 0000000000965340 [09:40:47]line ФД: 188627 [09:40:47]line ФПД: 228403953091715 [09:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094048&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188627&fm=228403953091715&tin=02508201610067®Number=0000000000100030&sum=50011 [09:40:47]written 0, free lines is 4095 [09:40:47]OFD Sender: Processing packet 188627 [packets to send 1062, broken 1061] [09:40:47]ProducePacketName [09:40:47]name=ofd_packets/00188627 [09:40:47]OFD Sender: To server: pG, [09:40:47]CommunicateWithHost lk.salyk.kg:30040 [09:40:47]ConnectInit lk.salyk.kg [09:40:47]Connected sock=10 [09:40:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D 1E 07 01 67 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A0 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E0 02 00 35 04 06 00 CF BB 70 7D 44 83 DB 12 12 F2 E8 68 54 D2 [09:40:47]Write to MH i2c: 01 00 00 58 25 7D [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: 01 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: 01 07 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: 01 07 00 58 25 00 00 00 00 00 77 0C 07 [09:40:47]RasterBufferAndPrint [09:40:47]line [09:40:47]line [09:40:47]line [09:40:47]line [09:40:47]line [09:40:47]written 0, free lines is 3199 [09:40:47]MH_Cut [09:40:47]Write to MH i2c: D1 01 00 5F 25 01 56 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: D1 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: D1 01 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: D1 01 00 5F 25 00 55 [09:40:47]Write to MH i2c: 01 00 00 60 25 85 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A D1 47 00 82 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 36 35 33 34 30 10 04 04 00 D3 E0 02 00 F4 03 04 00 8B 6E 18 67 B6 04 01 00 00 FB F1 2E B1 C4 05 DD 39 [09:40:47]CommunicateWithHost err = 0 [09:40:47]CheckOFDResponse [09:40:47]1017 (14) - 77093643461234 [09:40:47]1041 (16) - 0000000000965340 [09:40:47]1040 (4) - 188627 [09:40:47]1012 (4) - 23.10.2024 03:33 [09:40:47]1206 (1) - 0 [09:40:47]OFD Sender: Remove packet 188627 [09:40:47]ProducePacketName [09:40:47]name=ofd_packets/00188627 [09:40:47]NVStorageDeleteData [09:40:48]OFD Sender: No OFD packet to send [09:40:48]*** Cut start [09:40:48]*** Partial cut [09:40:48]*** CUTSNS_PIN = 1 [09:40:48]*** CUTSNS_PIN = 0 [09:40:49]*** Brake cut motor [09:40:49]Read from MH i2c: 01 [09:40:49]MH_I2C_Read... [09:40:49]*** Stop cut motor [09:40:49]*** Cut end [09:40:49]Read from MH i2c: 01 07 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 07 00 60 25 00 00 00 00 00 FF 0F 9A [09:40:49]process_action close_receipt done [09:40:49]requested_data is exist [09:40:49]produce_requested_data [09:40:49]requested_item fm.sn is exist - process it [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 11 00 00 [09:40:49]Write to MH i2c: E2 08 00 61 25 80 11 00 00 00 00 00 00 00 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 17 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 17 00 61 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [09:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:40:49]wFMCommunicate OK [09:40:49]requested_item fd.num is exist - process it [09:40:49]SAM_PROTO_GetFieldsCounters [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 13 00 00 [09:40:49]Write to MH i2c: E2 08 00 62 25 80 13 00 00 00 00 00 00 03 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 62 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 62 00 62 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [09:40:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:49]wFMCommunicate OK [09:40:49]SAM_PROTO_GetFieldsCounters done [09:40:49]requested_item shift.num is exist - process it [09:40:49]requested_item shift.opened is exist - process it [09:40:49]req_shift_opened [09:40:49]FM_GetShiftState [09:40:49]SAM_PROTO_GetShiftState [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 13 01 00 [09:40:49]Write to MH i2c: E2 08 00 63 25 80 13 01 00 00 00 00 00 05 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 0E 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 0E 00 63 25 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 ED [09:40:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:40:49]wFMCommunicate OK [09:40:49]SAM_PROTO_GetShiftState done [09:40:49]FM_GetShiftState done [09:40:49]req_shift_opened done [09:40:49]requested_item shift.open_date is exist - process it [09:40:49]req_shift_open_date [09:40:49]req_shift_open_date done [09:40:49]produce_requested_data done [09:40:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188627,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:40:49]process_action_free close_receipt [09:40:49]json_value_free [09:40:49]json_value_free done [09:40:49]process_json_proto returns [09:40:49]Send response to host [09:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188627,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:40:49]free response buf [09:40:49]execute_script done [09:40:49]execute_script returns [09:40:49]free content buf [09:40:49]Sock 7.Close socket [09:40:49]Sock 7.Thread stoped [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:20]accept exits with 9 [09:41:20]New connection [09:41:20]New thread 3066649956 created [09:41:20]Thread 3066506596 joined [09:41:20]Waiting for new connection... [09:41:20] Sock 9.Parse request [09:41:20]Sock 9.Check first char [09:41:20]Sock 9.First char is OK [09:41:20]request: POST /json_proto HTTP/1.0 [09:41:20]Method: POST [09:41:20]URL: /json_proto [09:41:20]Method is POST - this is cgi request [09:41:20]url: /json_proto [09:41:20]query_string will be loaded in cgi processing [09:41:20]execute_cgi json_proto POST (null) [09:41:20]execute_cgi path=json_proto method=POST [09:41:20]POST find Content-Length [09:41:20]Host: 172.17.42.131:8080 [09:41:20]Content-Length: 677 [09:41:20]Content-Type: application/json [09:41:20] [09:41:20]POST finish read [09:41:20]Found Content-Length = 677 [09:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 2.300, "sum" : 170.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:20]execute_script... [09:41:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 2.300, "sum" : 170.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:20]POST & json_proto [09:41:20]process_json_proto [09:41:20]json parsed OK: [09:41:20]protocol is kg_v1.0 [09:41:20]action value=close_receipt [09:41:20]process_action close_receipt [09:41:20]cmd_close_receipt [09:41:20]MH_GetDate [09:41:20]Write to MH i2c: F0 00 00 64 25 78 [09:41:20]Write i2c OK [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: F0 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: F0 09 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: F0 09 00 64 25 00 C3 C4 18 67 A0 18 CA 66 6F [09:41:20]GetLastDocTimeStamp 1729676448 [09:41:20]current date 1729676483 [09:41:20]FM_GetShiftState [09:41:20]SAM_PROTO_GetShiftState [09:41:20]wFMCommunicate request_size=4 [09:41:20]MH_SAM_APDU [09:41:20]CAPDU: 80 13 01 00 [09:41:20]Write to MH i2c: E2 08 00 65 25 80 13 01 00 00 00 00 00 07 [09:41:20]Write i2c OK [09:41:20]MH_I2C_Read... [09:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:20]Read from MH i2c: E2 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 0E 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 0E 00 65 25 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EF [09:41:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:41:20]wFMCommunicate OK [09:41:20]SAM_PROTO_GetShiftState done [09:41:20]FM_GetShiftState done [09:41:20]opened in 1729642525 [09:41:20]opened+sec_in_day 1729728925 [09:41:20]quantity*price = 17066 [09:41:20]sum+1 = 17067 [09:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.12 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 86 23.10.2024 09:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188628 ФПД: 111959022386900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094123&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188628&fm=111959022386900&tin=02508201610067®Number=0000000000100030&sum=17000 [09:41:21]StoreToDocumentArchive [09:41:21]shift 462 fd 188628 [09:41:21]save to /storage/0462/doc_00188628 [09:41:21]save last doc name /storage/0462/doc_00188628 to /storage/kkm_last_doc_name [09:41:21]save OK [09:41:21]Clear old archive folders... [09:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:21]tlvbuf is B6F0B810 [09:41:21]SAM_PROTO_ClearQueue [09:41:21]wFMCommunicate request_size=4 [09:41:21]MH_SAM_APDU [09:41:21]CAPDU: 80 09 00 00 [09:41:21]Write to MH i2c: E2 08 00 72 25 80 09 00 00 00 00 00 00 09 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:21]Read from MH i2c: E2 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 03 00 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 03 00 72 25 00 90 00 0B [09:41:21]RAPDU: 90 00 [09:41:21]wFMCommunicate OK [09:41:21]SAM_PROTO_ClearQueue done [09:41:21]KKMCreateOFDPacket [09:41:21]OFDProtocolAddRootSTLVToBuf [09:41:21]FM_MakeSignedData [09:41:21]FM_MakeSignedData [09:41:21]SAM_PROTO_SignData [09:41:21]wFMCommunicate request_size=4 [09:41:21]MH_SAM_APDU [09:41:21]CAPDU: 80 0D 01 02 [09:41:21]Write to MH i2c: E2 08 00 73 25 80 0D 01 02 00 00 00 00 11 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:21]Read from MH i2c: E2 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 03 00 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 03 00 73 25 00 90 00 0C [09:41:21]RAPDU: 90 00 [09:41:21]wFMCommunicate OK [09:41:21]wFMCommunicate request_size=255 [09:41:21]MH_SAM_APDU [09:41:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 08 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AA 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 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 56 00 00 00 F4 03 04 00 C3 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E0 02 00 35 04 06 00 65 [09:41:21]Write to MH i2c: E2 02 01 74 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 08 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AA 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 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 56 00 00 00 F4 03 04 00 C3 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E0 02 00 35 04 06 00 65 00 00 57 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 74 25 00 90 00 0D [09:41:22]RAPDU: 90 00 [09:41:22]wFMCommunicate OK [09:41:22]wFMCommunicate request_size=10 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 0D 02 02 05 D3 7D C2 3E D4 [09:41:22]Write to MH i2c: E2 0D 00 75 25 80 0D 02 02 05 00 D3 7D C2 3E D4 00 00 42 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 75 25 00 90 00 0E [09:41:22]RAPDU: 90 00 [09:41:22]wFMCommunicate OK [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 0D 03 02 [09:41:22]Write to MH i2c: E2 08 00 76 25 80 0D 03 02 00 00 00 00 16 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 0B 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 0B 00 76 25 00 C3 B9 39 28 27 4D AB D7 90 00 EA [09:41:22]RAPDU: C3 B9 39 28 27 4D AB D7 90 00 [09:41:22]wFMCommunicate OK [09:41:22]SAM_PROTO_SignData done [09:41:22]FM_MakeSignedData done [09:41:22]CreateOFDProtocolMessage [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 11 00 00 [09:41:22]Write to MH i2c: E2 08 00 77 25 80 11 00 00 00 00 00 00 16 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 17 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 17 00 77 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [09:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:22]wFMCommunicate OK [09:41:22]CreateOFDProtocolMessage done [09:41:22]OFDSenderStorePacket 188628 [09:41:22]StoreOFDPacket docnum=188628 [09:41:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0F 19 07 01 75 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 08 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AA 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 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 56 00 00 00 F4 03 04 00 C3 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E0 02 00 35 04 06 00 65 D3 7D C2 3E D4 C3 B9 39 28 27 4D AB D7 [09:41:22]CheckFolder [09:41:22]dirname=/storage/ofd_packets [09:41:22]CheckFolder done [09:41:22]ProducePacketName [09:41:22]name=ofd_packets/00188628 [09:41:22]NVStorageSaveData ofd_packets/00188628 [09:41:22]File name is /storage/ofd_packets/00188628 [09:41:22]Write 301 bytes [09:41:22]NVStorageSaveData done [09:41:22]OFDSenderStorePacket done [09:41:22]KKMCreateOFDPacket done [09:41:22]NVStorageSaveData kkm_last_timestamp [09:41:22]File name is /storage/kkm_last_timestamp [09:41:22]Write 4 bytes [09:41:22]NVStorageSaveData done [09:41:22]ExternCall_PrintAddStr [09:41:22]wPrintStart [09:41:22]Write to MH i2c: 01 00 00 78 25 9D [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 07 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 07 00 78 25 00 00 00 00 00 FF 0F B2 [09:41:22]RasterBufferAndPrint [09:41:22]line Счет N : (1)210688 [09:41:22]line ИНН: 02508201610067 [09:41:22]line Контрольно-Кассовый Чек [09:41:22]line ПРОДАЖА [09:41:22]line ТРК (МРК, ГНК) : 43 [09:41:22]line Товар: 2710124500 [09:41:22]line Аи-95-К-3 [09:41:22]line 2.300 * 74.20 [09:41:22]line = 170.66 [09:41:22]line НДС 12% НСП 1% [09:41:22]line > о реализуемом товаре [09:41:22]line ОКРУГЛЕНИЕ: -0.66 [09:41:22]line ИТОГО: 170.00 [09:41:22]line Внесено: 170.00 [09:41:22]line СДАЧА: 0.00 [09:41:22]line НСП 1% : 1.51 [09:41:22]line НДС 12% : 18.12 [09:41:22]line Наличными: 170.00 [09:41:22]line Безнал.: 0.00 [09:41:22]line Место: АЗС № 86 "Партнер Нефть" [09:41:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:41:22]line СНО: Общий режим [09:41:22]line Чек 86 23.10.2024 09:41 [09:41:22]line Смена: 462 ФФД: 1.0 [09:41:22]line ЗНМ: 0300000155 [09:41:22]line РНМ: 0000000000100030 [09:41:22]line Версия ККМ: 001 [09:41:22]line ФМ: 0000000000965340 [09:41:22]line ФД: 188628 [09:41:22]line ФПД: 111959022386900 [09:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094123&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188628&fm=111959022386900&tin=02508201610067®Number=0000000000100030&sum=17000 [09:41:22]OFD Sender: Processing packet 188628 [packets to send 1062, broken 1061] [09:41:22]ProducePacketName [09:41:22]name=ofd_packets/00188628 [09:41:22]OFD Sender: To server: pG, [09:41:22]CommunicateWithHost lk.salyk.kg:30040 [09:41:22]ConnectInit lk.salyk.kg [09:41:22]written 0, free lines is 4095 [09:41:22]Connected sock=10 [09:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0F 19 07 01 75 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 08 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AA 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 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 56 00 00 00 F4 03 04 00 C3 C4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E0 02 00 35 04 06 00 65 D3 7D C2 3E D4 C3 B9 39 28 27 4D AB D7 [09:41:23]Write to MH i2c: 01 00 00 A3 25 C8 [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: 01 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: 01 07 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: 01 07 00 A3 25 00 00 00 00 00 61 0C 3C [09:41:23]RasterBufferAndPrint [09:41:23]line [09:41:23]line [09:41:23]line [09:41:23]line [09:41:23]line [09:41:23]written 0, free lines is 3172 [09:41:23]MH_Cut [09:41:23]Write to MH i2c: D1 01 00 AA 25 01 A1 [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: D1 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: D1 01 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: D1 01 00 AA 25 00 A0 [09:41:23]Write to MH i2c: 01 00 00 AB 25 D0 [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6E 03 47 00 11 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 36 35 33 34 30 10 04 04 00 D4 E0 02 00 F4 03 04 00 AF 6E 18 67 B6 04 01 00 00 D7 B6 2E 5B 5E 25 E1 BA [09:41:23]CommunicateWithHost err = 0 [09:41:23]CheckOFDResponse [09:41:23]1017 (14) - 77093643461234 [09:41:23]1041 (16) - 0000000000965340 [09:41:23]1040 (4) - 188628 [09:41:23]1012 (4) - 23.10.2024 03:34 [09:41:23]1206 (1) - 0 [09:41:23]OFD Sender: Remove packet 188628 [09:41:23]ProducePacketName [09:41:23]name=ofd_packets/00188628 [09:41:23]NVStorageDeleteData [09:41:23]OFD Sender: No OFD packet to send [09:41:24]*** Cut start [09:41:24]*** Partial cut [09:41:24]*** CUTSNS_PIN = 1 [09:41:24]*** CUTSNS_PIN = 0 [09:41:24]*** Brake cut motor [09:41:24]Read from MH i2c: 01 [09:41:24]MH_I2C_Read... [09:41:24]*** Stop cut motor [09:41:24]*** Cut end [09:41:24]Read from MH i2c: 01 07 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: 01 07 00 AB 25 00 00 00 00 00 FF 0F E5 [09:41:24]process_action close_receipt done [09:41:24]requested_data is exist [09:41:24]produce_requested_data [09:41:24]requested_item fm.sn is exist - process it [09:41:24]wFMCommunicate request_size=4 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 11 00 00 [09:41:24]Write to MH i2c: E2 08 00 AC 25 80 11 00 00 00 00 00 00 4B [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:24]Read from MH i2c: E2 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 17 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 17 00 AC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [09:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:24]wFMCommunicate OK [09:41:24]requested_item fd.num is exist - process it [09:41:24]SAM_PROTO_GetFieldsCounters [09:41:24]wFMCommunicate request_size=4 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 13 00 00 [09:41:24]Write to MH i2c: E2 08 00 AD 25 80 13 00 00 00 00 00 00 4E [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 62 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 62 00 AD 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [09:41:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:25]wFMCommunicate OK [09:41:25]SAM_PROTO_GetFieldsCounters done [09:41:25]requested_item shift.num is exist - process it [09:41:25]requested_item shift.opened is exist - process it [09:41:25]req_shift_opened [09:41:25]FM_GetShiftState [09:41:25]SAM_PROTO_GetShiftState [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 13 01 00 [09:41:25]Write to MH i2c: E2 08 00 AE 25 80 13 01 00 00 00 00 00 50 [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 0E 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 0E 00 AE 25 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 38 [09:41:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:41:25]wFMCommunicate OK [09:41:25]SAM_PROTO_GetShiftState done [09:41:25]FM_GetShiftState done [09:41:25]req_shift_opened done [09:41:25]requested_item shift.open_date is exist - process it [09:41:25]req_shift_open_date [09:41:25]req_shift_open_date done [09:41:25]produce_requested_data done [09:41:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188628,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:41:25]process_action_free close_receipt [09:41:25]json_value_free [09:41:25]json_value_free done [09:41:25]process_json_proto returns [09:41:25]Send response to host [09:41:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188628,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:41:25]free response buf [09:41:25]execute_script done [09:41:25]execute_script returns [09:41:25]free content buf [09:41:25]Sock 9.Close socket [09:41:25]Sock 9.Thread stoped [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:35]accept exits with 7 [09:42:35]New connection [09:42:35]New thread 3066506596 created [09:42:35]Thread 3066649956 joined [09:42:35]Waiting for new connection... [09:42:35] Sock 7.Parse request [09:42:35]Sock 7.Check first char [09:42:35]Sock 7.First char is OK [09:42:35]request: POST /json_proto HTTP/1.0 [09:42:35]Method: POST [09:42:35]URL: /json_proto [09:42:35]Method is POST - this is cgi request [09:42:35]url: /json_proto [09:42:35]query_string will be loaded in cgi processing [09:42:35]execute_cgi json_proto POST (null) [09:42:35]execute_cgi path=json_proto method=POST [09:42:35]POST find Content-Length [09:42:35]Host: 172.17.42.131:8080 [09:42:35]Content-Length: 816 [09:42:35]Content-Type: application/json [09:42:35] [09:42:35]POST finish read [09:42:35]Found Content-Length = 816 [09:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:35]execute_script... [09:42:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:35]POST & json_proto [09:42:35]process_json_proto [09:42:35]json parsed OK: [09:42:35]protocol is kg_v1.0 [09:42:35]action value=close_receipt [09:42:35]process_action close_receipt [09:42:35]cmd_close_receipt [09:42:35]MH_GetDate [09:42:35]Write to MH i2c: F0 00 00 AF 25 C3 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 09 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 09 00 AF 25 00 0F C5 18 67 A0 18 CA 66 07 [09:42:35]GetLastDocTimeStamp 1729676483 [09:42:35]current date 1729676559 [09:42:35]FM_GetShiftState [09:42:35]SAM_PROTO_GetShiftState [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 13 01 00 [09:42:35]Write to MH i2c: E2 08 00 B0 25 80 13 01 00 00 00 00 00 52 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 0E 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 0E 00 B0 25 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3A [09:42:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:42:35]wFMCommunicate OK [09:42:35]SAM_PROTO_GetShiftState done [09:42:35]FM_GetShiftState done [09:42:35]opened in 1729642525 [09:42:35]opened+sec_in_day 1729728925 [09:42:35]quantity*price = 50041 [09:42:35]sum+1 = 50042 [09:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 87 23.10.2024 09:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188629 ФПД: 27209084312892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094239&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188629&fm=27209084312892&tin=02508201610067®Number=0000000000100030&sum=50041 [09:42:37]StoreToDocumentArchive [09:42:37]shift 462 fd 188629 [09:42:37]save to /storage/0462/doc_00188629 [09:42:37]save last doc name /storage/0462/doc_00188629 to /storage/kkm_last_doc_name [09:42:37]save OK [09:42:37]Clear old archive folders... [09:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:37]tlvbuf is 0095C2F0 [09:42:37]SAM_PROTO_ClearQueue [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 09 00 00 [09:42:37]Write to MH i2c: E2 08 00 BD 25 80 09 00 00 00 00 00 00 54 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 BD 25 00 90 00 56 [09:42:37]RAPDU: 90 00 [09:42:37]wFMCommunicate OK [09:42:37]SAM_PROTO_ClearQueue done [09:42:37]KKMCreateOFDPacket [09:42:37]OFDProtocolAddRootSTLVToBuf [09:42:37]FM_MakeSignedData [09:42:37]FM_MakeSignedData [09:42:37]SAM_PROTO_SignData [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 0D 01 02 [09:42:37]Write to MH i2c: E2 08 00 BE 25 80 0D 01 02 00 00 00 00 5C [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 BE 25 00 90 00 57 [09:42:37]RAPDU: 90 00 [09:42:37]wFMCommunicate OK [09:42:37]wFMCommunicate request_size=255 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 0F C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E0 02 00 35 04 06 00 18 [09:42:37]Write to MH i2c: E2 02 01 BF 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 0F C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E0 02 00 35 04 06 00 18 00 00 69 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 BF 25 00 90 00 58 [09:42:37]RAPDU: 90 00 [09:42:37]wFMCommunicate OK [09:42:37]wFMCommunicate request_size=10 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 0D 02 02 05 BF 1B CE 1D 3C [09:42:37]Write to MH i2c: E2 0D 00 C0 25 80 0D 02 02 05 00 BF 1B CE 1D 3C 00 00 6A [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 C0 25 00 90 00 59 [09:42:37]RAPDU: 90 00 [09:42:37]wFMCommunicate OK [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 0D 03 02 [09:42:37]Write to MH i2c: E2 08 00 C1 25 80 0D 03 02 00 00 00 00 61 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 0B 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 0B 00 C1 25 00 1A 39 4A CB B7 0C 6A 7E 90 00 75 [09:42:37]RAPDU: 1A 39 4A CB B7 0C 6A 7E 90 00 [09:42:37]wFMCommunicate OK [09:42:37]SAM_PROTO_SignData done [09:42:37]FM_MakeSignedData done [09:42:37]CreateOFDProtocolMessage [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 11 00 00 [09:42:37]Write to MH i2c: E2 08 00 C2 25 80 11 00 00 00 00 00 00 61 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 17 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 17 00 C2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [09:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:42:37]wFMCommunicate OK [09:42:37]CreateOFDProtocolMessage done [09:42:37]OFDSenderStorePacket 188629 [09:42:37]StoreOFDPacket docnum=188629 [09:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D7 76 07 01 D0 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 0F C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E0 02 00 35 04 06 00 18 BF 1B CE 1D 3C 1A 39 4A CB B7 0C 6A 7E [09:42:37]CheckFolder [09:42:37]dirname=/storage/ofd_packets [09:42:37]CheckFolder done [09:42:37]ProducePacketName [09:42:37]name=ofd_packets/00188629 [09:42:37]NVStorageSaveData ofd_packets/00188629 [09:42:37]File name is /storage/ofd_packets/00188629 [09:42:37]Write 301 bytes [09:42:37]NVStorageSaveData done [09:42:37]OFDSenderStorePacket done [09:42:37]KKMCreateOFDPacket done [09:42:37]NVStorageSaveData kkm_last_timestamp [09:42:37]File name is /storage/kkm_last_timestamp [09:42:37]Write 4 bytes [09:42:37]NVStorageSaveData done [09:42:37]ExternCall_PrintAddStr [09:42:37]wPrintStart [09:42:37]Write to MH i2c: 01 00 00 C3 25 E8 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 C3 25 00 00 00 00 00 FF 0F FD [09:42:37]RasterBufferAndPrint [09:42:37]line Счет N : (1)210689 [09:42:37]line ИНН: 02508201610067 [09:42:37]line Контрольно-Кассовый Чек [09:42:37]line ПРОДАЖА [09:42:37]line ТРК (МРК, ГНК) : 32 [09:42:37]line Товар: 2710124130 [09:42:37]line Аи-92-К-3 [09:42:37]line 7.480 * 66.90 [09:42:37]line = 500.41 [09:42:37]line НДС 12% НСП 1% [09:42:37]line > о реализуемом товаре [09:42:37]line ИТОГО: 500.41 [09:42:37]line НСП 1% : 4.43 [09:42:37]line НДС 12% : 53.14 [09:42:37]line Наличными: 0.00 [09:42:37]line Безнал.: 500.41 [09:42:37]line Место: АЗС № 86 "Партнер Нефть" [09:42:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:42:37]line СНО: Общий режим [09:42:37]line Чек 87 23.10.2024 09:42 [09:42:37]line Смена: 462 ФФД: 1.0 [09:42:37]line ЗНМ: 0300000155 [09:42:37]line РНМ: 0000000000100030 [09:42:37]line Версия ККМ: 001 [09:42:37]line Платежная система: Бакай Банк [09:42:37]line ФМ: 0000000000965340 [09:42:37]line ФД: 188629 [09:42:37]line ФПД: 27209084312892 [09:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094239&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188629&fm=27209084312892&tin=02508201610067®Number=0000000000100030&sum=50041 [09:42:37]OFD Sender: Processing packet 188629 [packets to send 1062, broken 1061] [09:42:37]ProducePacketName [09:42:37]name=ofd_packets/00188629 [09:42:37]OFD Sender: To server: pG, [09:42:37]CommunicateWithHost lk.salyk.kg:30040 [09:42:37]ConnectInit lk.salyk.kg [09:42:37]written 0, free lines is 4095 [09:42:37]Connected sock=10 [09:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D7 76 07 01 D0 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 0F C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E0 02 00 35 04 06 00 18 BF 1B CE 1D 3C 1A 39 4A CB B7 0C 6A 7E [09:42:38]Write to MH i2c: 01 00 00 ED 25 12 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 07 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 07 00 ED 25 00 00 00 00 00 73 0C 98 [09:42:38]RasterBufferAndPrint [09:42:38]line [09:42:38]line [09:42:38]line [09:42:38]line [09:42:38]line [09:42:38]written 0, free lines is 3191 [09:42:38]MH_Cut [09:42:38]Write to MH i2c: D1 01 00 F4 25 01 EB [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: D1 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: D1 01 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: D1 01 00 F4 25 00 EA [09:42:38]Write to MH i2c: 01 00 00 F5 25 1A [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6F D3 47 00 C5 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E0 02 00 F4 03 04 00 FA 6E 18 67 B6 04 01 00 00 7F 56 4B 81 A2 0D 2B 1D [09:42:38]CommunicateWithHost err = 0 [09:42:38]CheckOFDResponse [09:42:38]1017 (14) - 77093643461234 [09:42:38]1041 (16) - 0000000000965340 [09:42:38]1040 (4) - 188629 [09:42:38]1012 (4) - 23.10.2024 03:35 [09:42:38]1206 (1) - 0 [09:42:38]OFD Sender: Remove packet 188629 [09:42:38]ProducePacketName [09:42:38]name=ofd_packets/00188629 [09:42:38]NVStorageDeleteData [09:42:38]OFD Sender: No OFD packet to send [09:42:39]*** Cut start [09:42:39]*** Partial cut [09:42:39]*** CUTSNS_PIN = 1 [09:42:39]*** CUTSNS_PIN = 0 [09:42:39]*** Brake cut motor [09:42:40]Read from MH i2c: 01 [09:42:40]MH_I2C_Read... [09:42:40]*** Stop cut motor [09:42:40]*** Cut end [09:42:40]Read from MH i2c: 01 07 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 F5 25 00 00 00 00 00 FF 0F 2F [09:42:40]process_action close_receipt done [09:42:40]requested_data is exist [09:42:40]produce_requested_data [09:42:40]requested_item fm.sn is exist - process it [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 11 00 00 [09:42:40]Write to MH i2c: E2 08 00 F6 25 80 11 00 00 00 00 00 00 95 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 F6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [09:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:42:40]wFMCommunicate OK [09:42:40]requested_item fd.num is exist - process it [09:42:40]SAM_PROTO_GetFieldsCounters [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 13 00 00 [09:42:40]Write to MH i2c: E2 08 00 F7 25 80 13 00 00 00 00 00 00 98 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 62 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 62 00 F7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_GetFieldsCounters done [09:42:40]requested_item shift.num is exist - process it [09:42:40]requested_item shift.opened is exist - process it [09:42:40]req_shift_opened [09:42:40]FM_GetShiftState [09:42:40]SAM_PROTO_GetShiftState [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 13 01 00 [09:42:40]Write to MH i2c: E2 08 00 F8 25 80 13 01 00 00 00 00 00 9A [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0E 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0E 00 F8 25 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 82 [09:42:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_GetShiftState done [09:42:40]FM_GetShiftState done [09:42:40]req_shift_opened done [09:42:40]requested_item shift.open_date is exist - process it [09:42:40]req_shift_open_date [09:42:40]req_shift_open_date done [09:42:40]produce_requested_data done [09:42:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188629,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:42:40]process_action_free close_receipt [09:42:40]json_value_free [09:42:40]json_value_free done [09:42:40]process_json_proto returns [09:42:40]Send response to host [09:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188629,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:42:40]free response buf [09:42:40]execute_script done [09:42:40]execute_script returns [09:42:40]free content buf [09:42:40]Sock 7.Close socket [09:42:40]Sock 7.Thread stoped [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:09]accept exits with 9 [09:43:09]New connection [09:43:09]New thread 3066649956 created [09:43:09]Thread 3066506596 joined [09:43:09]Waiting for new connection... [09:43:09] Sock 9.Parse request [09:43:09]Sock 9.Check first char [09:43:09]Sock 9.First char is OK [09:43:09]request: POST /json_proto HTTP/1.0 [09:43:09]Method: POST [09:43:09]URL: /json_proto [09:43:09]Method is POST - this is cgi request [09:43:09]url: /json_proto [09:43:09]query_string will be loaded in cgi processing [09:43:09]execute_cgi json_proto POST (null) [09:43:09]execute_cgi path=json_proto method=POST [09:43:09]POST find Content-Length [09:43:09]Host: 172.17.42.131:8080 [09:43:09]Content-Length: 682 [09:43:09]Content-Type: application/json [09:43:09] [09:43:09]POST finish read [09:43:09]Found Content-Length = 682 [09:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:09]execute_script... [09:43:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:09]POST & json_proto [09:43:09]process_json_proto [09:43:09]json parsed OK: [09:43:09]protocol is kg_v1.0 [09:43:09]action value=close_receipt [09:43:09]process_action close_receipt [09:43:09]cmd_close_receipt [09:43:09]MH_GetDate [09:43:09]Write to MH i2c: F0 00 00 F9 25 0D [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: F0 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: F0 09 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: F0 09 00 F9 25 00 31 C5 18 67 A0 18 CA 66 73 [09:43:09]GetLastDocTimeStamp 1729676559 [09:43:09]current date 1729676593 [09:43:09]FM_GetShiftState [09:43:09]SAM_PROTO_GetShiftState [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 13 01 00 [09:43:09]Write to MH i2c: E2 08 00 FA 25 80 13 01 00 00 00 00 00 9C [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 0E 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 0E 00 FA 25 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 84 [09:43:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:43:09]wFMCommunicate OK [09:43:09]SAM_PROTO_GetShiftState done [09:43:09]FM_GetShiftState done [09:43:09]opened in 1729642525 [09:43:09]opened+sec_in_day 1729728925 [09:43:09]quantity*price = 100015 [09:43:09]sum+1 = 100017 [09:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 88 23.10.2024 09:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188630 ФПД: 259977245862034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188630&fm=259977245862034&tin=02508201610067®Number=0000000000100030&sum=100000 [09:43:10]StoreToDocumentArchive [09:43:10]shift 462 fd 188630 [09:43:10]save to /storage/0462/doc_00188630 [09:43:10]save last doc name /storage/0462/doc_00188630 to /storage/kkm_last_doc_name [09:43:10]save OK [09:43:10]Clear old archive folders... [09:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:10]tlvbuf is B6E904B0 [09:43:10]SAM_PROTO_ClearQueue [09:43:10]wFMCommunicate request_size=4 [09:43:10]MH_SAM_APDU [09:43:10]CAPDU: 80 09 00 00 [09:43:10]Write to MH i2c: E2 08 00 07 26 80 09 00 00 00 00 00 00 9F [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:10]Read from MH i2c: E2 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 03 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 03 00 07 26 00 90 00 A1 [09:43:10]RAPDU: 90 00 [09:43:10]wFMCommunicate OK [09:43:10]SAM_PROTO_ClearQueue done [09:43:10]KKMCreateOFDPacket [09:43:10]OFDProtocolAddRootSTLVToBuf [09:43:10]FM_MakeSignedData [09:43:10]FM_MakeSignedData [09:43:10]SAM_PROTO_SignData [09:43:10]wFMCommunicate request_size=4 [09:43:10]MH_SAM_APDU [09:43:10]CAPDU: 80 0D 01 02 [09:43:10]Write to MH i2c: E2 08 00 08 26 80 0D 01 02 00 00 00 00 A7 [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 08 26 00 90 00 A2 [09:43:11]RAPDU: 90 00 [09:43:11]wFMCommunicate OK [09:43:11]wFMCommunicate request_size=255 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 31 C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E0 02 00 35 04 06 00 EC [09:43:11]Write to MH i2c: E2 02 01 09 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 31 C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E0 02 00 35 04 06 00 EC 00 00 54 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 09 26 00 90 00 A3 [09:43:11]RAPDU: 90 00 [09:43:11]wFMCommunicate OK [09:43:11]wFMCommunicate request_size=10 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 0D 02 02 05 72 AB 63 A8 92 [09:43:11]Write to MH i2c: E2 0D 00 0A 26 80 0D 02 02 05 00 72 AB 63 A8 92 00 00 6E [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 0A 26 00 90 00 A4 [09:43:11]RAPDU: 90 00 [09:43:11]wFMCommunicate OK [09:43:11]wFMCommunicate request_size=4 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 0D 03 02 [09:43:11]Write to MH i2c: E2 08 00 0B 26 80 0D 03 02 00 00 00 00 AC [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 0B 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 0B 00 0B 26 00 FC CD 77 ED CC A8 CA 5B 90 00 73 [09:43:11]RAPDU: FC CD 77 ED CC A8 CA 5B 90 00 [09:43:11]wFMCommunicate OK [09:43:11]SAM_PROTO_SignData done [09:43:11]FM_MakeSignedData done [09:43:11]CreateOFDProtocolMessage [09:43:11]wFMCommunicate request_size=4 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 11 00 00 [09:43:11]Write to MH i2c: E2 08 00 0C 26 80 11 00 00 00 00 00 00 AC [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 17 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 17 00 0C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [09:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:43:11]wFMCommunicate OK [09:43:11]CreateOFDProtocolMessage done [09:43:11]OFDSenderStorePacket 188630 [09:43:11]StoreOFDPacket docnum=188630 [09:43:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D D6 07 01 FE C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 31 C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E0 02 00 35 04 06 00 EC 72 AB 63 A8 92 FC CD 77 ED CC A8 CA 5B [09:43:11]CheckFolder [09:43:11]dirname=/storage/ofd_packets [09:43:11]CheckFolder done [09:43:11]ProducePacketName [09:43:11]name=ofd_packets/00188630 [09:43:11]NVStorageSaveData ofd_packets/00188630 [09:43:11]File name is /storage/ofd_packets/00188630 [09:43:11]Write 301 bytes [09:43:11]NVStorageSaveData done [09:43:11]OFDSenderStorePacket done [09:43:11]KKMCreateOFDPacket done [09:43:11]NVStorageSaveData kkm_last_timestamp [09:43:11]File name is /storage/kkm_last_timestamp [09:43:11]Write 4 bytes [09:43:11]NVStorageSaveData done [09:43:11]ExternCall_PrintAddStr [09:43:11]wPrintStart [09:43:11]Write to MH i2c: 01 00 00 0D 26 33 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 07 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 07 00 0D 26 00 00 00 00 00 FF 0F 48 [09:43:11]RasterBufferAndPrint [09:43:11]line Счет N : (1)210690 [09:43:11]line ИНН: 02508201610067 [09:43:11]line Контрольно-Кассовый Чек [09:43:11]line ПРОДАЖА [09:43:11]line ТРК (МРК, ГНК) : 12 [09:43:11]line Товар: 2710124130 [09:43:11]line Аи-92-К-3 [09:43:11]line 14.950 * 66.90 [09:43:11]line = 1000.16 [09:43:11]line НДС 12% НСП 1% [09:43:11]line > о реализуемом товаре [09:43:11]line ОКРУГЛЕНИЕ: -0.16 [09:43:11]line ИТОГО: 1000.00 [09:43:11]line Внесено: 1000.00 [09:43:11]line СДАЧА: 0.00 [09:43:11]line НСП 1% : 8.85 [09:43:11]line НДС 12% : 106.21 [09:43:11]line Наличными: 1000.00 [09:43:11]line Безнал.: 0.00 [09:43:11]line Место: АЗС № 86 "Партнер Нефть" [09:43:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:43:11]line СНО: Общий режим [09:43:11]line Чек 88 23.10.2024 09:43 [09:43:11]line Смена: 462 ФФД: 1.0 [09:43:11]line ЗНМ: 0300000155 [09:43:11]line РНМ: 0000000000100030 [09:43:11]line Версия ККМ: 001 [09:43:11]line ФМ: 0000000000965340 [09:43:11]line ФД: 188630 [09:43:11]line ФПД: 259977245862034 [09:43:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188630&fm=259977245862034&tin=02508201610067®Number=0000000000100030&sum=100000 [09:43:11]written 0, free lines is 4095 [09:43:11]OFD Sender: Processing packet 188630 [packets to send 1062, broken 1061] [09:43:11]ProducePacketName [09:43:11]name=ofd_packets/00188630 [09:43:11]OFD Sender: To server: pG, [09:43:11]CommunicateWithHost lk.salyk.kg:30040 [09:43:11]ConnectInit lk.salyk.kg [09:43:11]Connected sock=11 [09:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D D6 07 01 FE C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 31 C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E0 02 00 35 04 06 00 EC 72 AB 63 A8 92 FC CD 77 ED CC A8 CA 5B [09:43:11]Write to MH i2c: 01 00 00 38 26 5E [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 07 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 07 00 38 26 00 00 00 00 00 57 0C C8 [09:43:11]RasterBufferAndPrint [09:43:11]line [09:43:11]line [09:43:11]line [09:43:11]line [09:43:11]line [09:43:11]written 0, free lines is 3162 [09:43:11]MH_Cut [09:43:11]Write to MH i2c: D1 01 00 3F 26 01 37 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: D1 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: D1 01 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: D1 01 00 3F 26 00 36 [09:43:11]Write to MH i2c: 01 00 00 40 26 66 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 25 17 47 00 F7 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E0 02 00 F4 03 04 00 1C 6F 18 67 B6 04 01 00 00 DC 7F 57 15 7F 0C 3B 78 [09:43:12]CommunicateWithHost err = 0 [09:43:12]CheckOFDResponse [09:43:12]1017 (14) - 77093643461234 [09:43:12]1041 (16) - 0000000000965340 [09:43:12]1040 (4) - 188630 [09:43:12]1012 (4) - 23.10.2024 03:35 [09:43:12]1206 (1) - 0 [09:43:12]OFD Sender: Remove packet 188630 [09:43:12]ProducePacketName [09:43:12]name=ofd_packets/00188630 [09:43:12]NVStorageDeleteData [09:43:12]OFD Sender: No OFD packet to send [09:43:13]*** Cut start [09:43:13]*** Partial cut [09:43:13]*** CUTSNS_PIN = 1 [09:43:13]*** CUTSNS_PIN = 0 [09:43:13]*** Brake cut motor [09:43:13]Read from MH i2c: 01 [09:43:13]MH_I2C_Read... [09:43:13]*** Stop cut motor [09:43:13]*** Cut end [09:43:13]Read from MH i2c: 01 07 00 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: 01 07 00 40 26 00 00 00 00 00 FF 0F 7B [09:43:13]process_action close_receipt done [09:43:13]requested_data is exist [09:43:13]produce_requested_data [09:43:13]requested_item fm.sn is exist - process it [09:43:13]wFMCommunicate request_size=4 [09:43:13]MH_SAM_APDU [09:43:13]CAPDU: 80 11 00 00 [09:43:13]Write to MH i2c: E2 08 00 41 26 80 11 00 00 00 00 00 00 E1 [09:43:13]Write i2c OK [09:43:13]MH_I2C_Read... [09:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:13]Read from MH i2c: E2 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 17 00 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 17 00 41 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [09:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:43:13]wFMCommunicate OK [09:43:13]requested_item fd.num is exist - process it [09:43:13]SAM_PROTO_GetFieldsCounters [09:43:13]wFMCommunicate request_size=4 [09:43:13]MH_SAM_APDU [09:43:13]CAPDU: 80 13 00 00 [09:43:13]Write to MH i2c: E2 08 00 42 26 80 13 00 00 00 00 00 00 E4 [09:43:13]Write i2c OK [09:43:13]MH_I2C_Read... [09:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:14]Read from MH i2c: E2 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 62 00 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 62 00 42 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [09:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:14]wFMCommunicate OK [09:43:14]SAM_PROTO_GetFieldsCounters done [09:43:14]requested_item shift.num is exist - process it [09:43:14]requested_item shift.opened is exist - process it [09:43:14]req_shift_opened [09:43:14]FM_GetShiftState [09:43:14]SAM_PROTO_GetShiftState [09:43:14]wFMCommunicate request_size=4 [09:43:14]MH_SAM_APDU [09:43:14]CAPDU: 80 13 01 00 [09:43:14]Write to MH i2c: E2 08 00 43 26 80 13 01 00 00 00 00 00 E6 [09:43:14]Write i2c OK [09:43:14]MH_I2C_Read... [09:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:14]Read from MH i2c: E2 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 0E 00 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 0E 00 43 26 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CE [09:43:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:43:14]wFMCommunicate OK [09:43:14]SAM_PROTO_GetShiftState done [09:43:14]FM_GetShiftState done [09:43:14]req_shift_opened done [09:43:14]requested_item shift.open_date is exist - process it [09:43:14]req_shift_open_date [09:43:14]req_shift_open_date done [09:43:14]produce_requested_data done [09:43:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188630,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:43:14]process_action_free close_receipt [09:43:14]json_value_free [09:43:14]json_value_free done [09:43:14]process_json_proto returns [09:43:14]Send response to host [09:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188630,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:43:14]free response buf [09:43:14]execute_script done [09:43:14]execute_script returns [09:43:14]free content buf [09:43:14]Sock 9.Close socket [09:43:14]Sock 9.Thread stoped [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:03]accept exits with 7 [09:46:03]New connection [09:46:03]New thread 3066506596 created [09:46:03]Thread 3066649956 joined [09:46:03]Waiting for new connection... [09:46:03] Sock 7.Parse request [09:46:03]Sock 7.Check first char [09:46:03]Sock 7.First char is OK [09:46:03]request: POST /json_proto HTTP/1.0 [09:46:03]Method: POST [09:46:03]URL: /json_proto [09:46:03]Method is POST - this is cgi request [09:46:03]url: /json_proto [09:46:03]query_string will be loaded in cgi processing [09:46:03]execute_cgi json_proto POST (null) [09:46:03]execute_cgi path=json_proto method=POST [09:46:03]POST find Content-Length [09:46:03]Host: 172.17.42.131:8080 [09:46:03]Content-Length: 682 [09:46:03]Content-Type: application/json [09:46:03] [09:46:03]POST finish read [09:46:03]Found Content-Length = 682 [09:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:03]execute_script... [09:46:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:03]POST & json_proto [09:46:03]process_json_proto [09:46:03]json parsed OK: [09:46:03]protocol is kg_v1.0 [09:46:03]action value=close_receipt [09:46:03]process_action close_receipt [09:46:03]cmd_close_receipt [09:46:03]MH_GetDate [09:46:03]Write to MH i2c: F0 00 00 44 26 59 [09:46:03]Write i2c OK [09:46:03]MH_I2C_Read... [09:46:03]Read from MH i2c: F0 [09:46:03]MH_I2C_Read... [09:46:03]Read from MH i2c: F0 09 00 [09:46:03]MH_I2C_Read... [09:46:03]Read from MH i2c: F0 09 00 44 26 00 DE C5 18 67 A0 18 CA 66 6C [09:46:03]GetLastDocTimeStamp 1729676593 [09:46:03]current date 1729676766 [09:46:03]FM_GetShiftState [09:46:03]SAM_PROTO_GetShiftState [09:46:03]wFMCommunicate request_size=4 [09:46:03]MH_SAM_APDU [09:46:03]CAPDU: 80 13 01 00 [09:46:03]Write to MH i2c: E2 08 00 45 26 80 13 01 00 00 00 00 00 E8 [09:46:03]Write i2c OK [09:46:03]MH_I2C_Read... [09:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:03]Read from MH i2c: E2 [09:46:03]MH_I2C_Read... [09:46:03]Read from MH i2c: E2 0E 00 [09:46:03]MH_I2C_Read... [09:46:03]Read from MH i2c: E2 0E 00 45 26 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D0 [09:46:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:46:03]wFMCommunicate OK [09:46:03]SAM_PROTO_GetShiftState done [09:46:03]FM_GetShiftState done [09:46:03]opened in 1729642525 [09:46:03]opened+sec_in_day 1729728925 [09:46:03]quantity*price = 100015 [09:46:03]sum+1 = 100017 [09:46:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 89 23.10.2024 09:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188631 ФПД: 143476438793456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094607&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188631&fm=143476438793456&tin=02508201610067®Number=0000000000100030&sum=100000 [09:46:04]StoreToDocumentArchive [09:46:04]shift 462 fd 188631 [09:46:04]save to /storage/0462/doc_00188631 [09:46:04]save last doc name /storage/0462/doc_00188631 to /storage/kkm_last_doc_name [09:46:04]save OK [09:46:04]Clear old archive folders... [09:46:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:04]tlvbuf is B6F0E3A0 [09:46:04]SAM_PROTO_ClearQueue [09:46:04]wFMCommunicate request_size=4 [09:46:04]MH_SAM_APDU [09:46:04]CAPDU: 80 09 00 00 [09:46:04]Write to MH i2c: E2 08 00 52 26 80 09 00 00 00 00 00 00 EA [09:46:04]Write i2c OK [09:46:04]MH_I2C_Read... [09:46:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:04]Read from MH i2c: E2 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 03 00 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 03 00 52 26 00 90 00 EC [09:46:04]RAPDU: 90 00 [09:46:04]wFMCommunicate OK [09:46:04]SAM_PROTO_ClearQueue done [09:46:04]KKMCreateOFDPacket [09:46:04]OFDProtocolAddRootSTLVToBuf [09:46:04]FM_MakeSignedData [09:46:04]FM_MakeSignedData [09:46:04]SAM_PROTO_SignData [09:46:04]wFMCommunicate request_size=4 [09:46:04]MH_SAM_APDU [09:46:04]CAPDU: 80 0D 01 02 [09:46:04]Write to MH i2c: E2 08 00 53 26 80 0D 01 02 00 00 00 00 F2 [09:46:04]Write i2c OK [09:46:04]MH_I2C_Read... [09:46:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:04]Read from MH i2c: E2 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 03 00 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 03 00 53 26 00 90 00 ED [09:46:04]RAPDU: 90 00 [09:46:04]wFMCommunicate OK [09:46:04]wFMCommunicate request_size=255 [09:46:04]MH_SAM_APDU [09:46:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DF C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E0 02 00 35 04 06 00 82 [09:46:04]Write to MH i2c: E2 02 01 54 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DF C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E0 02 00 35 04 06 00 82 00 00 E5 [09:46:04]Write i2c OK [09:46:04]MH_I2C_Read... [09:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:05]Read from MH i2c: E2 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: E2 03 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: E2 03 00 54 26 00 90 00 EE [09:46:05]RAPDU: 90 00 [09:46:05]wFMCommunicate OK [09:46:05]wFMCommunicate request_size=10 [09:46:05]MH_SAM_APDU [09:46:05]CAPDU: 80 0D 02 02 05 7D B6 2A FC F0 [09:46:05]Write to MH i2c: E2 0D 00 55 26 80 0D 02 02 05 00 7D B6 2A FC F0 00 00 48 [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:05]Read from MH i2c: E2 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: E2 03 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: E2 03 00 55 26 00 90 00 EF [09:46:05]RAPDU: 90 00 [09:46:05]wFMCommunicate OK [09:46:05]wFMCommunicate request_size=4 [09:46:05]MH_SAM_APDU [09:46:05]CAPDU: 80 0D 03 02 [09:46:05]Write to MH i2c: E2 08 00 56 26 80 0D 03 02 00 00 00 00 F7 [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:05]Read from MH i2c: E2 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: E2 0B 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: E2 0B 00 56 26 00 3E 7D D8 73 95 02 0B 3F 90 00 DF [09:46:05]RAPDU: 3E 7D D8 73 95 02 0B 3F 90 00 [09:46:05]wFMCommunicate OK [09:46:05]SAM_PROTO_SignData done [09:46:05]FM_MakeSignedData done [09:46:05]CreateOFDProtocolMessage [09:46:05]wFMCommunicate request_size=4 [09:46:05]MH_SAM_APDU [09:46:05]CAPDU: 80 11 00 00 [09:46:05]Write to MH i2c: E2 08 00 57 26 80 11 00 00 00 00 00 00 F7 [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:05]Read from MH i2c: E2 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: E2 17 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: E2 17 00 57 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [09:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:46:05]wFMCommunicate OK [09:46:05]CreateOFDProtocolMessage done [09:46:05]OFDSenderStorePacket 188631 [09:46:05]StoreOFDPacket docnum=188631 [09:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 85 A0 07 01 29 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DF C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E0 02 00 35 04 06 00 82 7D B6 2A FC F0 3E 7D D8 73 95 02 0B 3F [09:46:05]CheckFolder [09:46:05]dirname=/storage/ofd_packets [09:46:05]CheckFolder done [09:46:05]ProducePacketName [09:46:05]name=ofd_packets/00188631 [09:46:05]NVStorageSaveData ofd_packets/00188631 [09:46:05]File name is /storage/ofd_packets/00188631 [09:46:05]Write 301 bytes [09:46:05]NVStorageSaveData done [09:46:05]OFDSenderStorePacket done [09:46:05]KKMCreateOFDPacket done [09:46:05]NVStorageSaveData kkm_last_timestamp [09:46:05]File name is /storage/kkm_last_timestamp [09:46:05]Write 4 bytes [09:46:05]NVStorageSaveData done [09:46:05]ExternCall_PrintAddStr [09:46:05]wPrintStart [09:46:05]Write to MH i2c: 01 00 00 58 26 7E [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 07 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 07 00 58 26 00 00 00 00 00 FF 0F 93 [09:46:05]RasterBufferAndPrint [09:46:05]line Счет N : (1)210692 [09:46:05]line ИНН: 02508201610067 [09:46:05]line Контрольно-Кассовый Чек [09:46:05]line ПРОДАЖА [09:46:05]line ТРК (МРК, ГНК) : 32 [09:46:05]line Товар: 2710124130 [09:46:05]line Аи-92-К-3 [09:46:05]line 14.950 * 66.90 [09:46:05]line = 1000.16 [09:46:05]line НДС 12% НСП 1% [09:46:05]line > о реализуемом товаре [09:46:05]line ОКРУГЛЕНИЕ: -0.16 [09:46:05]line ИТОГО: 1000.00 [09:46:05]line Внесено: 1000.00 [09:46:05]line СДАЧА: 0.00 [09:46:05]line НСП 1% : 8.85 [09:46:05]line НДС 12% : 106.21 [09:46:05]line Наличными: 1000.00 [09:46:05]line Безнал.: 0.00 [09:46:05]line Место: АЗС № 86 "Партнер Нефть" [09:46:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:46:05]line СНО: Общий режим [09:46:05]line Чек 89 23.10.2024 09:46 [09:46:05]line Смена: 462 ФФД: 1.0 [09:46:05]line ЗНМ: 0300000155 [09:46:05]line РНМ: 0000000000100030 [09:46:05]line Версия ККМ: 001 [09:46:05]line ФМ: 0000000000965340 [09:46:05]line ФД: 188631 [09:46:05]line ФПД: 143476438793456 [09:46:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094607&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188631&fm=143476438793456&tin=02508201610067®Number=0000000000100030&sum=100000 [09:46:05]written 0, free lines is 4095 [09:46:05]OFD Sender: Processing packet 188631 [packets to send 1062, broken 1061] [09:46:05]ProducePacketName [09:46:05]name=ofd_packets/00188631 [09:46:05]OFD Sender: To server: pG, [09:46:05]CommunicateWithHost lk.salyk.kg:30040 [09:46:05]ConnectInit lk.salyk.kg [09:46:05]Connected sock=10 [09:46:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 85 A0 07 01 29 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DF C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E0 02 00 35 04 06 00 82 7D B6 2A FC F0 3E 7D D8 73 95 02 0B 3F [09:46:05]Write to MH i2c: 01 00 00 83 26 A9 [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 07 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: 01 07 00 83 26 00 00 00 00 00 56 0C 12 [09:46:05]RasterBufferAndPrint [09:46:05]line [09:46:05]line [09:46:05]line [09:46:05]line [09:46:05]line [09:46:05]written 0, free lines is 3162 [09:46:05]MH_Cut [09:46:05]Write to MH i2c: D1 01 00 8A 26 01 82 [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: D1 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: D1 01 00 [09:46:05]MH_I2C_Read... [09:46:05]Read from MH i2c: D1 01 00 8A 26 00 81 [09:46:05]Write to MH i2c: 01 00 00 8B 26 B1 [09:46:05]Write i2c OK [09:46:05]MH_I2C_Read... [09:46:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D5 9F 47 00 E0 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E0 02 00 F4 03 04 00 C9 6F 18 67 B6 04 01 00 00 A1 82 65 C4 49 45 EF 54 [09:46:05]CommunicateWithHost err = 0 [09:46:05]CheckOFDResponse [09:46:05]1017 (14) - 77093643461234 [09:46:05]1041 (16) - 0000000000965340 [09:46:05]1040 (4) - 188631 [09:46:05]1012 (4) - 23.10.2024 03:38 [09:46:05]1206 (1) - 0 [09:46:05]OFD Sender: Remove packet 188631 [09:46:05]ProducePacketName [09:46:05]name=ofd_packets/00188631 [09:46:05]NVStorageDeleteData [09:46:06]OFD Sender: No OFD packet to send [09:46:07]*** Cut start [09:46:07]*** Partial cut [09:46:07]*** CUTSNS_PIN = 1 [09:46:07]*** CUTSNS_PIN = 0 [09:46:07]*** Brake cut motor [09:46:07]Read from MH i2c: 01 [09:46:07]MH_I2C_Read... [09:46:07]*** Stop cut motor [09:46:07]*** Cut end [09:46:07]Read from MH i2c: 01 07 00 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: 01 07 00 8B 26 00 00 00 00 00 FF 0F C6 [09:46:07]process_action close_receipt done [09:46:07]requested_data is exist [09:46:07]produce_requested_data [09:46:07]requested_item fm.sn is exist - process it [09:46:07]wFMCommunicate request_size=4 [09:46:07]MH_SAM_APDU [09:46:07]CAPDU: 80 11 00 00 [09:46:07]Write to MH i2c: E2 08 00 8C 26 80 11 00 00 00 00 00 00 2C [09:46:07]Write i2c OK [09:46:07]MH_I2C_Read... [09:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:07]Read from MH i2c: E2 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 17 00 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 17 00 8C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [09:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:46:07]wFMCommunicate OK [09:46:07]requested_item fd.num is exist - process it [09:46:07]SAM_PROTO_GetFieldsCounters [09:46:07]wFMCommunicate request_size=4 [09:46:07]MH_SAM_APDU [09:46:07]CAPDU: 80 13 00 00 [09:46:07]Write to MH i2c: E2 08 00 8D 26 80 13 00 00 00 00 00 00 2F [09:46:07]Write i2c OK [09:46:07]MH_I2C_Read... [09:46:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:07]Read from MH i2c: E2 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 62 00 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 62 00 8D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:46:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:07]wFMCommunicate OK [09:46:07]SAM_PROTO_GetFieldsCounters done [09:46:07]requested_item shift.num is exist - process it [09:46:07]requested_item shift.opened is exist - process it [09:46:07]req_shift_opened [09:46:07]FM_GetShiftState [09:46:07]SAM_PROTO_GetShiftState [09:46:07]wFMCommunicate request_size=4 [09:46:07]MH_SAM_APDU [09:46:07]CAPDU: 80 13 01 00 [09:46:07]Write to MH i2c: E2 08 00 8E 26 80 13 01 00 00 00 00 00 31 [09:46:07]Write i2c OK [09:46:07]MH_I2C_Read... [09:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:07]Read from MH i2c: E2 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 0E 00 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 0E 00 8E 26 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 19 [09:46:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:46:07]wFMCommunicate OK [09:46:07]SAM_PROTO_GetShiftState done [09:46:07]FM_GetShiftState done [09:46:07]req_shift_opened done [09:46:07]requested_item shift.open_date is exist - process it [09:46:07]req_shift_open_date [09:46:07]req_shift_open_date done [09:46:07]produce_requested_data done [09:46:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188631,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:46:07]process_action_free close_receipt [09:46:07]json_value_free [09:46:07]json_value_free done [09:46:07]process_json_proto returns [09:46:07]Send response to host [09:46:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188631,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:46:07]free response buf [09:46:07]execute_script done [09:46:07]execute_script returns [09:46:07]free content buf [09:46:07]Sock 7.Close socket [09:46:07]Sock 7.Thread stoped [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:28]accept exits with 9 [09:46:28]New connection [09:46:28]New thread 3066649956 created [09:46:28]Thread 3066506596 joined [09:46:28]Waiting for new connection... [09:46:28] Sock 9.Parse request [09:46:28]Sock 9.Check first char [09:46:28]Sock 9.First char is OK [09:46:28]request: POST /json_proto HTTP/1.0 [09:46:28]Method: POST [09:46:28]URL: /json_proto [09:46:28]Method is POST - this is cgi request [09:46:28]url: /json_proto [09:46:28]query_string will be loaded in cgi processing [09:46:28]execute_cgi json_proto POST (null) [09:46:28]execute_cgi path=json_proto method=POST [09:46:28]POST find Content-Length [09:46:28]Host: 172.17.42.131:8080 [09:46:28]Content-Length: 983 [09:46:28]Content-Type: application/json [09:46:28] [09:46:28]POST finish read [09:46:28]Found Content-Length = 983 [09:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:28]execute_script... [09:46:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:28]POST & json_proto [09:46:28]process_json_proto [09:46:28]json parsed OK: [09:46:28]protocol is kg_v1.0 [09:46:28]action value=close_receipt [09:46:28]process_action close_receipt [09:46:28]cmd_close_receipt [09:46:28]MH_GetDate [09:46:28]Write to MH i2c: F0 00 00 8F 26 A4 [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: F0 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: F0 09 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: F0 09 00 8F 26 00 F7 C5 18 67 A0 18 CA 66 D0 [09:46:28]GetLastDocTimeStamp 1729676767 [09:46:28]current date 1729676791 [09:46:28]FM_GetShiftState [09:46:28]SAM_PROTO_GetShiftState [09:46:28]wFMCommunicate request_size=4 [09:46:28]MH_SAM_APDU [09:46:28]CAPDU: 80 13 01 00 [09:46:28]Write to MH i2c: E2 08 00 90 26 80 13 01 00 00 00 00 00 33 [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:28]Read from MH i2c: E2 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 0E 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 0E 00 90 26 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1B [09:46:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:46:28]wFMCommunicate OK [09:46:28]SAM_PROTO_GetShiftState done [09:46:28]FM_GetShiftState done [09:46:28]opened in 1729642525 [09:46:28]opened+sec_in_day 1729728925 [09:46:28]quantity*price = 200006 [09:46:28]sum+1 = 200008 [09:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 90 23.10.2024 09:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 188632 ФПД: 100515440201012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094632&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188632&fm=100515440201012&tin=02508201610067®Number=0000000000100030&sum=200000 [09:46:29]StoreToDocumentArchive [09:46:29]shift 462 fd 188632 [09:46:29]save to /storage/0462/doc_00188632 [09:46:29]save last doc name /storage/0462/doc_00188632 to /storage/kkm_last_doc_name [09:46:29]save OK [09:46:29]Clear old archive folders... [09:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:29]tlvbuf is 009845B0 [09:46:29]SAM_PROTO_ClearQueue [09:46:29]wFMCommunicate request_size=4 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 09 00 00 [09:46:29]Write to MH i2c: E2 08 00 9D 26 80 09 00 00 00 00 00 00 35 [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:29]Read from MH i2c: E2 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 03 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 03 00 9D 26 00 90 00 37 [09:46:29]RAPDU: 90 00 [09:46:29]wFMCommunicate OK [09:46:29]SAM_PROTO_ClearQueue done [09:46:29]KKMCreateOFDPacket [09:46:29]OFDProtocolAddRootSTLVToBuf [09:46:29]FM_MakeSignedData [09:46:29]FM_MakeSignedData [09:46:29]SAM_PROTO_SignData [09:46:29]wFMCommunicate request_size=4 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 0D 01 02 [09:46:29]Write to MH i2c: E2 08 00 9E 26 80 0D 01 02 00 00 00 00 3D [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:29]Read from MH i2c: E2 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 03 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 03 00 9E 26 00 90 00 38 [09:46:29]RAPDU: 90 00 [09:46:29]wFMCommunicate OK [09:46:29]wFMCommunicate request_size=255 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F8 C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E0 02 00 35 04 06 00 5B [09:46:29]Write to MH i2c: E2 02 01 9F 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F8 C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E0 02 00 35 04 06 00 5B 00 00 B1 [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 9F 26 00 90 00 39 [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=10 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 02 02 05 6B 13 1B 8D 34 [09:46:30]Write to MH i2c: E2 0D 00 A0 26 80 0D 02 02 05 00 6B 13 1B 8D 34 00 00 A4 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 A0 26 00 90 00 3A [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 03 02 [09:46:30]Write to MH i2c: E2 08 00 A1 26 80 0D 03 02 00 00 00 00 42 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 0B 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 0B 00 A1 26 00 A6 3B FE 82 96 6D 07 99 90 00 47 [09:46:30]RAPDU: A6 3B FE 82 96 6D 07 99 90 00 [09:46:30]wFMCommunicate OK [09:46:30]SAM_PROTO_SignData done [09:46:30]FM_MakeSignedData done [09:46:30]CreateOFDProtocolMessage [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 11 00 00 [09:46:30]Write to MH i2c: E2 08 00 A2 26 80 11 00 00 00 00 00 00 42 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 17 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 17 00 A2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [09:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:46:30]wFMCommunicate OK [09:46:30]CreateOFDProtocolMessage done [09:46:30]OFDSenderStorePacket 188632 [09:46:30]StoreOFDPacket docnum=188632 [09:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 C3 07 01 83 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F8 C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E0 02 00 35 04 06 00 5B 6B 13 1B 8D 34 A6 3B FE 82 96 6D 07 99 [09:46:30]CheckFolder [09:46:30]dirname=/storage/ofd_packets [09:46:30]CheckFolder done [09:46:30]ProducePacketName [09:46:30]name=ofd_packets/00188632 [09:46:30]NVStorageSaveData ofd_packets/00188632 [09:46:30]File name is /storage/ofd_packets/00188632 [09:46:30]Write 301 bytes [09:46:30]NVStorageSaveData done [09:46:30]OFDSenderStorePacket done [09:46:30]KKMCreateOFDPacket done [09:46:30]NVStorageSaveData kkm_last_timestamp [09:46:30]File name is /storage/kkm_last_timestamp [09:46:30]Write 4 bytes [09:46:30]NVStorageSaveData done [09:46:30]ExternCall_PrintAddStr [09:46:30]wPrintStart [09:46:30]Write to MH i2c: 01 00 00 A3 26 C9 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 A3 26 00 00 00 00 00 FF 0F DE [09:46:30]RasterBufferAndPrint [09:46:30]line Счет N : (1)210691 [09:46:30]line ИНН: 02508201610067 [09:46:30]line Контрольно-Кассовый Чек [09:46:30]line ПРОДАЖА [09:46:30]line ТРК (МРК, ГНК) : 22 [09:46:30]line Товар: 2710124130 [09:46:30]line Аи-92-К-3 [09:46:30]line 30.350 * 65.90 [09:46:30]line = 2000.07 [09:46:30]line НДС 12% НСП 1% [09:46:30]line > о реализуемом товаре [09:46:30]line ОКРУГЛЕНИЕ: -0.07 [09:46:30]line ИТОГО: 2000.00 [09:46:30]line Внесено: 2000.00 [09:46:30]line СДАЧА: 0.00 [09:46:30]line НСП 1% : 17.70 [09:46:30]line НДС 12% : 212.40 [09:46:30]line Наличными: 2000.00 [09:46:30]line Безнал.: 0.00 [09:46:30]line Место: АЗС № 86 "Партнер Нефть" [09:46:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:46:30]line СНО: Общий режим [09:46:30]line Чек 90 23.10.2024 09:46 [09:46:30]line Смена: 462 ФФД: 1.0 [09:46:30]line ЗНМ: 0300000155 [09:46:30]line РНМ: 0000000000100030 [09:46:30]line Версия ККМ: 001 [09:46:30]line [09:46:30]line Дисконтная программа [09:46:30]line АИ-92 [09:46:30]line номер 86 [09:46:30]line сэкономлено 30.35 сом [09:46:30]line ФМ: 0000000000965340 [09:46:30]line ФД: 188632 [09:46:30]line ФПД: 100515440201012 [09:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094632&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188632&fm=100515440201012&tin=02508201610067®Number=0000000000100030&sum=200000 [09:46:30]written 0, free lines is 4095 [09:46:30]OFD Sender: Processing packet 188632 [packets to send 1062, broken 1061] [09:46:30]ProducePacketName [09:46:30]name=ofd_packets/00188632 [09:46:30]OFD Sender: To server: pG, [09:46:30]CommunicateWithHost lk.salyk.kg:30040 [09:46:30]ConnectInit lk.salyk.kg [09:46:30]Connected sock=7 [09:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 C3 07 01 83 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F8 C5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E0 02 00 35 04 06 00 5B 6B 13 1B 8D 34 A6 3B FE 82 96 6D 07 99 [09:46:30]Write to MH i2c: 01 00 00 D3 26 F9 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 D3 26 00 00 00 00 00 E3 0B EE [09:46:30]RasterBufferAndPrint [09:46:30]line [09:46:30]line [09:46:30]line [09:46:30]line [09:46:30]line [09:46:30]written 0, free lines is 3046 [09:46:30]MH_Cut [09:46:30]Write to MH i2c: D1 01 00 DA 26 01 D2 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: D1 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: D1 01 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: D1 01 00 DA 26 00 D1 [09:46:30]Write to MH i2c: 01 00 00 DB 26 01 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4B EF 47 00 D2 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E0 02 00 F4 03 04 00 E2 6F 18 67 B6 04 01 00 00 AA 0E 77 A8 7E A3 50 DD [09:46:30]CommunicateWithHost err = 0 [09:46:30]CheckOFDResponse [09:46:30]1017 (14) - 77093643461234 [09:46:30]1041 (16) - 0000000000965340 [09:46:30]1040 (4) - 188632 [09:46:30]1012 (4) - 23.10.2024 03:39 [09:46:30]1206 (1) - 0 [09:46:30]OFD Sender: Remove packet 188632 [09:46:30]ProducePacketName [09:46:30]name=ofd_packets/00188632 [09:46:30]NVStorageDeleteData [09:46:31]OFD Sender: No OFD packet to send [09:46:32]*** Cut start [09:46:32]*** Partial cut [09:46:32]*** CUTSNS_PIN = 1 [09:46:32]*** CUTSNS_PIN = 0 [09:46:32]*** Brake cut motor [09:46:32]Read from MH i2c: 01 [09:46:32]MH_I2C_Read... [09:46:32]*** Stop cut motor [09:46:32]*** Cut end [09:46:32]Read from MH i2c: 01 07 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: 01 07 00 DB 26 00 00 00 00 00 FF 0F 16 [09:46:32]process_action close_receipt done [09:46:32]requested_data is exist [09:46:32]produce_requested_data [09:46:32]requested_item fm.sn is exist - process it [09:46:32]wFMCommunicate request_size=4 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 11 00 00 [09:46:32]Write to MH i2c: E2 08 00 DC 26 80 11 00 00 00 00 00 00 7C [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:32]Read from MH i2c: E2 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 17 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 17 00 DC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [09:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:46:32]wFMCommunicate OK [09:46:32]requested_item fd.num is exist - process it [09:46:32]SAM_PROTO_GetFieldsCounters [09:46:32]wFMCommunicate request_size=4 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 13 00 00 [09:46:32]Write to MH i2c: E2 08 00 DD 26 80 13 00 00 00 00 00 00 7F [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 62 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 62 00 DD 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:33]wFMCommunicate OK [09:46:33]SAM_PROTO_GetFieldsCounters done [09:46:33]requested_item shift.num is exist - process it [09:46:33]requested_item shift.opened is exist - process it [09:46:33]req_shift_opened [09:46:33]FM_GetShiftState [09:46:33]SAM_PROTO_GetShiftState [09:46:33]wFMCommunicate request_size=4 [09:46:33]MH_SAM_APDU [09:46:33]CAPDU: 80 13 01 00 [09:46:33]Write to MH i2c: E2 08 00 DE 26 80 13 01 00 00 00 00 00 81 [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 0E 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 0E 00 DE 26 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 69 [09:46:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:46:33]wFMCommunicate OK [09:46:33]SAM_PROTO_GetShiftState done [09:46:33]FM_GetShiftState done [09:46:33]req_shift_opened done [09:46:33]requested_item shift.open_date is exist - process it [09:46:33]req_shift_open_date [09:46:33]req_shift_open_date done [09:46:33]produce_requested_data done [09:46:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188632,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:46:33]process_action_free close_receipt [09:46:33]json_value_free [09:46:33]json_value_free done [09:46:33]process_json_proto returns [09:46:33]Send response to host [09:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188632,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:46:33]free response buf [09:46:33]execute_script done [09:46:33]execute_script returns [09:46:33]free content buf [09:46:33]Sock 9.Close socket [09:46:33]Sock 9.Thread stoped [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]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:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:47]accept exits with 10 [09:52:47]New connection [09:52:47]New thread 3066506596 created [09:52:47]Thread 3066649956 joined [09:52:47]Waiting for new connection... [09:52:47] Sock 10.Parse request [09:52:47]Sock 10.Check first char [09:52:47]Sock 10.First char is OK [09:52:47]request: POST /json_proto HTTP/1.0 [09:52:47]Method: POST [09:52:47]URL: /json_proto [09:52:47]Method is POST - this is cgi request [09:52:47]url: /json_proto [09:52:47]query_string will be loaded in cgi processing [09:52:47]execute_cgi json_proto POST (null) [09:52:47]execute_cgi path=json_proto method=POST [09:52:47]POST find Content-Length [09:52:47]Host: 172.17.42.131:8080 [09:52:47]Content-Length: 983 [09:52:47]Content-Type: application/json [09:52:47] [09:52:47]POST finish read [09:52:47]Found Content-Length = 983 [09:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 45.530, "sum" : 3000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 45.53 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:47]execute_script... [09:52:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 45.530, "sum" : 3000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 45.53 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:47]POST & json_proto [09:52:47]process_json_proto [09:52:47]json parsed OK: [09:52:47]protocol is kg_v1.0 [09:52:47]action value=close_receipt [09:52:47]process_action close_receipt [09:52:47]cmd_close_receipt [09:52:47]MH_GetDate [09:52:47]Write to MH i2c: F0 00 00 DF 26 F4 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 09 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 09 00 DF 26 00 72 C7 18 67 A0 18 CA 66 9D [09:52:47]GetLastDocTimeStamp 1729676792 [09:52:47]current date 1729677170 [09:52:47]FM_GetShiftState [09:52:47]SAM_PROTO_GetShiftState [09:52:47]wFMCommunicate request_size=4 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 13 01 00 [09:52:47]Write to MH i2c: E2 08 00 E0 26 80 13 01 00 00 00 00 00 83 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:47]Read from MH i2c: E2 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 0E 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 0E 00 E0 26 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6B [09:52:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:52:47]wFMCommunicate OK [09:52:47]SAM_PROTO_GetShiftState done [09:52:47]FM_GetShiftState done [09:52:47]opened in 1729642525 [09:52:47]opened+sec_in_day 1729728925 [09:52:47]quantity*price = 300042 [09:52:47]sum+1 = 300044 [09:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 91 23.10.2024 09:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 45.53 сом ФМ: 0000000000965340 ФД: 188633 ФПД: 270113893915552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188633&fm=270113893915552&tin=02508201610067®Number=0000000000100030&sum=300000 [09:52:48]StoreToDocumentArchive [09:52:48]shift 462 fd 188633 [09:52:48]save to /storage/0462/doc_00188633 [09:52:48]save last doc name /storage/0462/doc_00188633 to /storage/kkm_last_doc_name [09:52:48]save OK [09:52:48]Clear old archive folders... [09:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:48]tlvbuf is 0095C8D0 [09:52:48]SAM_PROTO_ClearQueue [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 09 00 00 [09:52:48]Write to MH i2c: E2 08 00 ED 26 80 09 00 00 00 00 00 00 85 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 ED 26 00 90 00 87 [09:52:48]RAPDU: 90 00 [09:52:48]wFMCommunicate OK [09:52:48]SAM_PROTO_ClearQueue done [09:52:48]KKMCreateOFDPacket [09:52:48]OFDProtocolAddRootSTLVToBuf [09:52:48]FM_MakeSignedData [09:52:48]FM_MakeSignedData [09:52:48]SAM_PROTO_SignData [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 0D 01 02 [09:52:48]Write to MH i2c: E2 08 00 EE 26 80 0D 01 02 00 00 00 00 8D [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 EE 26 00 90 00 88 [09:52:48]RAPDU: 90 00 [09:52:48]wFMCommunicate OK [09:52:48]wFMCommunicate request_size=255 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 72 C7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E0 02 00 35 04 06 00 F5 [09:52:48]Write to MH i2c: E2 02 01 EF 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 72 C7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E0 02 00 35 04 06 00 F5 00 00 5C [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 EF 26 00 90 00 89 [09:52:48]RAPDU: 90 00 [09:52:48]wFMCommunicate OK [09:52:48]wFMCommunicate request_size=10 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 0D 02 02 05 AA CA B2 1B A0 [09:52:48]Write to MH i2c: E2 0D 00 F0 26 80 0D 02 02 05 00 AA CA B2 1B A0 00 00 7B [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 F0 26 00 90 00 8A [09:52:48]RAPDU: 90 00 [09:52:48]wFMCommunicate OK [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 0D 03 02 [09:52:48]Write to MH i2c: E2 08 00 F1 26 80 0D 03 02 00 00 00 00 92 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 0B 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 0B 00 F1 26 00 60 17 12 99 34 E9 9C 62 90 00 D0 [09:52:49]RAPDU: 60 17 12 99 34 E9 9C 62 90 00 [09:52:49]wFMCommunicate OK [09:52:49]SAM_PROTO_SignData done [09:52:49]FM_MakeSignedData done [09:52:49]CreateOFDProtocolMessage [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 11 00 00 [09:52:49]Write to MH i2c: E2 08 00 F2 26 80 11 00 00 00 00 00 00 92 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 17 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 17 00 F2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E0 [09:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:52:49]wFMCommunicate OK [09:52:49]CreateOFDProtocolMessage done [09:52:49]OFDSenderStorePacket 188633 [09:52:49]StoreOFDPacket docnum=188633 [09:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 7A 07 01 AE 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 72 C7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E0 02 00 35 04 06 00 F5 AA CA B2 1B A0 60 17 12 99 34 E9 9C 62 [09:52:49]CheckFolder [09:52:49]dirname=/storage/ofd_packets [09:52:49]CheckFolder done [09:52:49]ProducePacketName [09:52:49]name=ofd_packets/00188633 [09:52:49]NVStorageSaveData ofd_packets/00188633 [09:52:49]File name is /storage/ofd_packets/00188633 [09:52:49]Write 301 bytes [09:52:49]NVStorageSaveData done [09:52:49]OFDSenderStorePacket done [09:52:49]KKMCreateOFDPacket done [09:52:49]NVStorageSaveData kkm_last_timestamp [09:52:49]File name is /storage/kkm_last_timestamp [09:52:49]Write 4 bytes [09:52:49]NVStorageSaveData done [09:52:49]ExternCall_PrintAddStr [09:52:49]wPrintStart [09:52:49]Write to MH i2c: 01 00 00 F3 26 19 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 F3 26 00 00 00 00 00 FF 0F 2E [09:52:49]RasterBufferAndPrint [09:52:49]line Счет N : (1)210693 [09:52:49]line ИНН: 02508201610067 [09:52:49]line Контрольно-Кассовый Чек [09:52:49]line ПРОДАЖА [09:52:49]line ТРК (МРК, ГНК) : 32 [09:52:49]line Товар: 2710124130 [09:52:49]line Аи-92-К-3 [09:52:49]line 45.530 * 65.90 [09:52:49]line = 3000.43 [09:52:49]line НДС 12% НСП 1% [09:52:49]line > о реализуемом товаре [09:52:49]line ОКРУГЛЕНИЕ: -0.43 [09:52:49]line ИТОГО: 3000.00 [09:52:49]line Внесено: 3000.00 [09:52:49]line СДАЧА: 0.00 [09:52:49]line НСП 1% : 26.55 [09:52:49]line НДС 12% : 318.63 [09:52:49]line Наличными: 3000.00 [09:52:49]line Безнал.: 0.00 [09:52:49]line Место: АЗС № 86 "Партнер Нефть" [09:52:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:52:49]line СНО: Общий режим [09:52:49]line Чек 91 23.10.2024 09:52 [09:52:49]line Смена: 462 ФФД: 1.0 [09:52:49]line ЗНМ: 0300000155 [09:52:49]line РНМ: 0000000000100030 [09:52:49]line Версия ККМ: 001 [09:52:49]line [09:52:49]line Дисконтная программа [09:52:49]line АИ-92 [09:52:49]line номер 86 [09:52:49]line сэкономлено 45.53 сом [09:52:49]line ФМ: 0000000000965340 [09:52:49]line ФД: 188633 [09:52:49]line ФПД: 270113893915552 [09:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188633&fm=270113893915552&tin=02508201610067®Number=0000000000100030&sum=300000 [09:52:49]OFD Sender: Processing packet 188633 [packets to send 1062, broken 1061] [09:52:49]ProducePacketName [09:52:49]name=ofd_packets/00188633 [09:52:49]OFD Sender: To server: pG, [09:52:49]CommunicateWithHost lk.salyk.kg:30040 [09:52:49]ConnectInit lk.salyk.kg [09:52:49]written 0, free lines is 4095 [09:52:49]Connected sock=9 [09:52:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 7A 07 01 AE 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 72 C7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E0 02 00 35 04 06 00 F5 AA CA B2 1B A0 60 17 12 99 34 E9 9C 62 [09:52:49]Write to MH i2c: 01 00 00 23 27 4A [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 23 27 00 00 00 00 00 E4 0B 40 [09:52:49]RasterBufferAndPrint [09:52:49]line [09:52:49]line [09:52:49]line [09:52:49]line [09:52:49]line [09:52:49]written 0, free lines is 3047 [09:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A 5E 47 00 BA 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 36 35 33 34 30 10 04 04 00 D9 E0 02 00 F4 03 04 00 5D 71 18 67 B6 04 01 00 00 F4 CE 8E F1 02 60 9F 9E [09:52:49]CommunicateWithHost err = 0 [09:52:49]CheckOFDResponse [09:52:49]1017 (14) - 77093643461234 [09:52:49]1041 (16) - 0000000000965340 [09:52:49]1040 (4) - 188633 [09:52:49]1012 (4) - 23.10.2024 03:45 [09:52:49]1206 (1) - 0 [09:52:49]OFD Sender: Remove packet 188633 [09:52:49]ProducePacketName [09:52:49]name=ofd_packets/00188633 [09:52:49]NVStorageDeleteData [09:52:49]MH_Cut [09:52:49]Write to MH i2c: D1 01 00 2A 27 01 23 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: D1 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: D1 01 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: D1 01 00 2A 27 00 22 [09:52:49]Write to MH i2c: 01 00 00 2B 27 52 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:50]OFD Sender: No OFD packet to send [09:52:51]*** Cut start [09:52:51]*** Partial cut [09:52:51]*** CUTSNS_PIN = 1 [09:52:51]*** CUTSNS_PIN = 0 [09:52:51]*** Brake cut motor [09:52:51]Read from MH i2c: 01 [09:52:51]MH_I2C_Read... [09:52:51]*** Stop cut motor [09:52:51]*** Cut end [09:52:51]Read from MH i2c: 01 07 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: 01 07 00 2B 27 00 00 00 00 00 FF 0F 67 [09:52:51]process_action close_receipt done [09:52:51]requested_data is exist [09:52:51]produce_requested_data [09:52:51]requested_item fm.sn is exist - process it [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 11 00 00 [09:52:51]Write to MH i2c: E2 08 00 2C 27 80 11 00 00 00 00 00 00 CD [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 17 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 17 00 2C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [09:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:52:51]wFMCommunicate OK [09:52:51]requested_item fd.num is exist - process it [09:52:51]SAM_PROTO_GetFieldsCounters [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 13 00 00 [09:52:51]Write to MH i2c: E2 08 00 2D 27 80 13 00 00 00 00 00 00 D0 [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 62 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 62 00 2D 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [09:52:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:51]wFMCommunicate OK [09:52:51]SAM_PROTO_GetFieldsCounters done [09:52:51]requested_item shift.num is exist - process it [09:52:51]requested_item shift.opened is exist - process it [09:52:51]req_shift_opened [09:52:51]FM_GetShiftState [09:52:51]SAM_PROTO_GetShiftState [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 13 01 00 [09:52:51]Write to MH i2c: E2 08 00 2E 27 80 13 01 00 00 00 00 00 D2 [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 0E 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 0E 00 2E 27 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BA [09:52:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [09:52:51]wFMCommunicate OK [09:52:51]SAM_PROTO_GetShiftState done [09:52:51]FM_GetShiftState done [09:52:51]req_shift_opened done [09:52:51]requested_item shift.open_date is exist - process it [09:52:51]req_shift_open_date [09:52:51]req_shift_open_date done [09:52:51]produce_requested_data done [09:52:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188633,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [09:52:51]process_action_free close_receipt [09:52:51]json_value_free [09:52:51]json_value_free done [09:52:51]process_json_proto returns [09:52:51]Send response to host [09:52:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188633,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [09:52:51]free response buf [09:52:51]execute_script done [09:52:51]execute_script returns [09:52:51]free content buf [09:52:51]Sock 10.Close socket [09:52:51]Sock 10.Thread stoped [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]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:15]accept exits with 7 [10:00:15]New connection [10:00:15]New thread 3066649956 created [10:00:15]Thread 3066506596 joined [10:00:15]Waiting for new connection... [10:00:15] Sock 7.Parse request [10:00:15]Sock 7.Check first char [10:00:15]Sock 7.First char is OK [10:00:15]request: POST /json_proto HTTP/1.0 [10:00:15]Method: POST [10:00:15]URL: /json_proto [10:00:15]Method is POST - this is cgi request [10:00:15]url: /json_proto [10:00:15]query_string will be loaded in cgi processing [10:00:15]execute_cgi json_proto POST (null) [10:00:15]execute_cgi path=json_proto method=POST [10:00:15]POST find Content-Length [10:00:15]Host: 172.17.42.131:8080 [10:00:15]Content-Length: 678 [10:00:15]Content-Type: application/json [10:00:15] [10:00:15]POST finish read [10:00:15]Found Content-Length = 678 [10:00:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:15]execute_script... [10:00:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:15]POST & json_proto [10:00:15]process_json_proto [10:00:15]json parsed OK: [10:00:15]protocol is kg_v1.0 [10:00:15]action value=close_receipt [10:00:15]process_action close_receipt [10:00:15]cmd_close_receipt [10:00:15]MH_GetDate [10:00:15]Write to MH i2c: F0 00 00 2F 27 45 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 09 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 09 00 2F 27 00 33 C9 18 67 A0 18 CA 66 B1 [10:00:15]GetLastDocTimeStamp 1729677170 [10:00:15]current date 1729677619 [10:00:15]FM_GetShiftState [10:00:15]SAM_PROTO_GetShiftState [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 13 01 00 [10:00:15]Write to MH i2c: E2 08 00 30 27 80 13 01 00 00 00 00 00 D4 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0E 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0E 00 30 27 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BC [10:00:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:00:15]wFMCommunicate OK [10:00:15]SAM_PROTO_GetShiftState done [10:00:15]FM_GetShiftState done [10:00:15]opened in 1729642525 [10:00:15]opened+sec_in_day 1729728925 [10:00:15]quantity*price = 70044 [10:00:15]sum+1 = 70045 [10:00:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 92 23.10.2024 10:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188634 ФПД: 11614792077245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100019&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188634&fm=11614792077245&tin=02508201610067®Number=0000000000100030&sum=70000 [10:00:16]StoreToDocumentArchive [10:00:16]shift 462 fd 188634 [10:00:16]save to /storage/0462/doc_00188634 [10:00:16]save last doc name /storage/0462/doc_00188634 to /storage/kkm_last_doc_name [10:00:16]save OK [10:00:16]Clear old archive folders... [10:00:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:16]tlvbuf is 009CBC20 [10:00:16]SAM_PROTO_ClearQueue [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 09 00 00 [10:00:16]Write to MH i2c: E2 08 00 3D 27 80 09 00 00 00 00 00 00 D6 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]SAM_PROTO_ClearQueue done [10:00:16]KKMCreateOFDPacket [10:00:16]OFDProtocolAddRootSTLVToBuf [10:00:16]FM_MakeSignedData [10:00:16]FM_MakeSignedData [10:00:16]SAM_PROTO_SignData [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 01 02 [10:00:16]Write to MH i2c: E2 08 00 3E 27 80 0D 01 02 00 00 00 00 DE [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 3E 27 00 90 00 D9 [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]wFMCommunicate request_size=255 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 33 C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E0 02 00 35 04 06 00 0A [10:00:16]Write to MH i2c: E2 02 01 3F 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 33 C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E0 02 00 35 04 06 00 0A 00 00 CD [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:17]OFD Sender: No OFD packet to send [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [10:00:17]RAPDU: 90 00 [10:00:17]wFMCommunicate OK [10:00:17]wFMCommunicate request_size=10 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 0D 02 02 05 90 47 8E 4F BD [10:00:17]Write to MH i2c: E2 0D 00 40 27 80 0D 02 02 05 00 90 47 8E 4F BD 00 00 5C [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 40 27 00 90 00 DB [10:00:17]RAPDU: 90 00 [10:00:17]wFMCommunicate OK [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 0D 03 02 [10:00:17]Write to MH i2c: E2 08 00 41 27 80 0D 03 02 00 00 00 00 E3 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 0B 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 0B 00 41 27 00 37 40 FC 0F BC 6A 76 D6 90 00 D8 [10:00:17]RAPDU: 37 40 FC 0F BC 6A 76 D6 90 00 [10:00:17]wFMCommunicate OK [10:00:17]SAM_PROTO_SignData done [10:00:17]FM_MakeSignedData done [10:00:17]CreateOFDProtocolMessage [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 11 00 00 [10:00:17]Write to MH i2c: E2 08 00 42 27 80 11 00 00 00 00 00 00 E3 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 42 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [10:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:00:17]wFMCommunicate OK [10:00:17]CreateOFDProtocolMessage done [10:00:17]OFDSenderStorePacket 188634 [10:00:17]StoreOFDPacket docnum=188634 [10:00:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E9 6C 07 01 9F B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 33 C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E0 02 00 35 04 06 00 0A 90 47 8E 4F BD 37 40 FC 0F BC 6A 76 D6 [10:00:17]CheckFolder [10:00:17]dirname=/storage/ofd_packets [10:00:17]CheckFolder done [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00188634 [10:00:17]NVStorageSaveData ofd_packets/00188634 [10:00:17]File name is /storage/ofd_packets/00188634 [10:00:17]Write 301 bytes [10:00:17]NVStorageSaveData done [10:00:17]OFDSenderStorePacket done [10:00:17]KKMCreateOFDPacket done [10:00:17]NVStorageSaveData kkm_last_timestamp [10:00:17]File name is /storage/kkm_last_timestamp [10:00:17]Write 4 bytes [10:00:17]NVStorageSaveData done [10:00:17]ExternCall_PrintAddStr [10:00:17]wPrintStart [10:00:17]Write to MH i2c: 01 00 00 43 27 6A [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 43 27 00 00 00 00 00 FF 0F 7F [10:00:17]RasterBufferAndPrint [10:00:17]line Счет N : (1)210694 [10:00:17]line ИНН: 02508201610067 [10:00:17]line Контрольно-Кассовый Чек [10:00:17]line ПРОДАЖА [10:00:17]line ТРК (МРК, ГНК) : 42 [10:00:17]line Товар: 2710124130 [10:00:17]line Аи-92-К-3 [10:00:17]line 10.470 * 66.90 [10:00:17]line = 700.44 [10:00:17]line НДС 12% НСП 1% [10:00:17]line > о реализуемом товаре [10:00:17]line ОКРУГЛЕНИЕ: -0.44 [10:00:17]line ИТОГО: 700.00 [10:00:17]line Внесено: 700.00 [10:00:17]line СДАЧА: 0.00 [10:00:17]line НСП 1% : 6.20 [10:00:17]line НДС 12% : 74.38 [10:00:17]line Наличными: 700.00 [10:00:17]line Безнал.: 0.00 [10:00:17]line Место: АЗС № 86 "Партнер Нефть" [10:00:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:00:17]line СНО: Общий режим [10:00:17]line Чек 92 23.10.2024 10:00 [10:00:17]line Смена: 462 ФФД: 1.0 [10:00:17]line ЗНМ: 0300000155 [10:00:17]line РНМ: 0000000000100030 [10:00:17]line Версия ККМ: 001 [10:00:17]line ФМ: 0000000000965340 [10:00:17]line ФД: 188634 [10:00:17]line ФПД: 11614792077245 [10:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100019&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188634&fm=11614792077245&tin=02508201610067®Number=0000000000100030&sum=70000 [10:00:17]written 0, free lines is 4095 [10:00:17]OFD Sender: Processing packet 188634 [packets to send 1062, broken 1061] [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00188634 [10:00:17]OFD Sender: To server: pG, [10:00:17]CommunicateWithHost lk.salyk.kg:30040 [10:00:17]ConnectInit lk.salyk.kg [10:00:17]Connected sock=10 [10:00:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E9 6C 07 01 9F B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 33 C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E0 02 00 35 04 06 00 0A 90 47 8E 4F BD 37 40 FC 0F BC 6A 76 D6 [10:00:17]Write to MH i2c: 01 00 00 6E 27 95 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 51 0C F9 [10:00:17]RasterBufferAndPrint [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]written 0, free lines is 3156 [10:00:17]MH_Cut [10:00:17]Write to MH i2c: D1 01 00 75 27 01 6E [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 01 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 01 00 75 27 00 6D [10:00:17]Write to MH i2c: 01 00 00 76 27 9D [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B8 3B 47 00 88 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E0 02 00 F4 03 04 00 1E 73 18 67 B6 04 01 00 00 37 A7 6E 0F DC CF CA 5D [10:00:17]CommunicateWithHost err = 0 [10:00:17]CheckOFDResponse [10:00:17]1017 (14) - 77093643461234 [10:00:17]1041 (16) - 0000000000965340 [10:00:17]1040 (4) - 188634 [10:00:17]1012 (4) - 23.10.2024 03:53 [10:00:17]1206 (1) - 0 [10:00:17]OFD Sender: Remove packet 188634 [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00188634 [10:00:17]NVStorageDeleteData [10:00:18]OFD Sender: No OFD packet to send [10:00:19]*** Cut start [10:00:19]*** Partial cut [10:00:19]*** CUTSNS_PIN = 1 [10:00:19]*** CUTSNS_PIN = 0 [10:00:19]*** Brake cut motor [10:00:19]Read from MH i2c: 01 [10:00:19]MH_I2C_Read... [10:00:19]*** Stop cut motor [10:00:19]*** Cut end [10:00:19]Read from MH i2c: 01 07 00 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: 01 07 00 76 27 00 00 00 00 00 FF 0F B2 [10:00:19]process_action close_receipt done [10:00:19]requested_data is exist [10:00:19]produce_requested_data [10:00:19]requested_item fm.sn is exist - process it [10:00:19]wFMCommunicate request_size=4 [10:00:19]MH_SAM_APDU [10:00:19]CAPDU: 80 11 00 00 [10:00:19]Write to MH i2c: E2 08 00 77 27 80 11 00 00 00 00 00 00 18 [10:00:19]Write i2c OK [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: E2 [10:00:19]MH_I2C_Read... [10:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:19]Read from MH i2c: E2 17 00 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: E2 17 00 77 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [10:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:00:19]wFMCommunicate OK [10:00:19]requested_item fd.num is exist - process it [10:00:19]SAM_PROTO_GetFieldsCounters [10:00:19]wFMCommunicate request_size=4 [10:00:19]MH_SAM_APDU [10:00:19]CAPDU: 80 13 00 00 [10:00:19]Write to MH i2c: E2 08 00 78 27 80 13 00 00 00 00 00 00 1B [10:00:19]Write i2c OK [10:00:19]MH_I2C_Read... [10:00:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:19]Read from MH i2c: E2 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: E2 62 00 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: E2 62 00 78 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:00:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:19]wFMCommunicate OK [10:00:19]SAM_PROTO_GetFieldsCounters done [10:00:19]requested_item shift.num is exist - process it [10:00:19]requested_item shift.opened is exist - process it [10:00:19]req_shift_opened [10:00:19]FM_GetShiftState [10:00:19]SAM_PROTO_GetShiftState [10:00:19]wFMCommunicate request_size=4 [10:00:19]MH_SAM_APDU [10:00:19]CAPDU: 80 13 01 00 [10:00:19]Write to MH i2c: E2 08 00 79 27 80 13 01 00 00 00 00 00 1D [10:00:19]Write i2c OK [10:00:19]MH_I2C_Read... [10:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:19]Read from MH i2c: E2 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: E2 0E 00 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: E2 0E 00 79 27 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 05 [10:00:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:00:19]wFMCommunicate OK [10:00:19]SAM_PROTO_GetShiftState done [10:00:19]FM_GetShiftState done [10:00:19]req_shift_opened done [10:00:19]requested_item shift.open_date is exist - process it [10:00:19]req_shift_open_date [10:00:19]req_shift_open_date done [10:00:19]produce_requested_data done [10:00:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188634,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:00:19]process_action_free close_receipt [10:00:19]json_value_free [10:00:20]json_value_free done [10:00:20]process_json_proto returns [10:00:20]Send response to host [10:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188634,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:00:20]free response buf [10:00:20]execute_script done [10:00:20]execute_script returns [10:00:20]free content buf [10:00:20]Sock 7.Close socket [10:00:20]Sock 7.Thread stoped [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:06]accept exits with 9 [10:01:06]New connection [10:01:06]New thread 3066506596 created [10:01:06]Thread 3066649956 joined [10:01:06]Waiting for new connection... [10:01:06] Sock 9.Parse request [10:01:06]Sock 9.Check first char [10:01:06]Sock 9.First char is OK [10:01:06]request: POST /json_proto HTTP/1.0 [10:01:06]Method: POST [10:01:06]URL: /json_proto [10:01:06]Method is POST - this is cgi request [10:01:06]url: /json_proto [10:01:06]query_string will be loaded in cgi processing [10:01:06]execute_cgi json_proto POST (null) [10:01:06]execute_cgi path=json_proto method=POST [10:01:06]POST find Content-Length [10:01:06]Host: 172.17.42.131:8080 [10:01:06]Content-Length: 678 [10:01:06]Content-Type: application/json [10:01:06] [10:01:06]POST finish read [10:01:06]Found Content-Length = 678 [10:01:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 11.800, "sum" : 875.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:06]execute_script... [10:01:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 11.800, "sum" : 875.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:06]POST & json_proto [10:01:06]process_json_proto [10:01:06]json parsed OK: [10:01:06]protocol is kg_v1.0 [10:01:06]action value=close_receipt [10:01:06]process_action close_receipt [10:01:06]cmd_close_receipt [10:01:06]MH_GetDate [10:01:06]Write to MH i2c: F0 00 00 7A 27 90 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: F0 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: F0 09 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: F0 09 00 7A 27 00 66 C9 18 67 A0 18 CA 66 2F [10:01:06]GetLastDocTimeStamp 1729677619 [10:01:06]current date 1729677670 [10:01:06]FM_GetShiftState [10:01:06]SAM_PROTO_GetShiftState [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 13 01 00 [10:01:06]Write to MH i2c: E2 08 00 7B 27 80 13 01 00 00 00 00 00 1F [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0E 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0E 00 7B 27 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 07 [10:01:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_GetShiftState done [10:01:06]FM_GetShiftState done [10:01:06]opened in 1729642525 [10:01:06]opened+sec_in_day 1729728925 [10:01:06]quantity*price = 87556 [10:01:06]sum+1 = 87557 [10:01:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 875.00 Внесено: 875.00 СДАЧА: 0.00 НСП 1% : 7.75 НДС 12% : 92.98 Наличными: 875.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 93 23.10.2024 10:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188635 ФПД: 118635634524794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100110&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188635&fm=118635634524794&tin=02508201610067®Number=0000000000100030&sum=87500 [10:01:07]StoreToDocumentArchive [10:01:07]shift 462 fd 188635 [10:01:07]save to /storage/0462/doc_00188635 [10:01:07]save last doc name /storage/0462/doc_00188635 to /storage/kkm_last_doc_name [10:01:07]save OK [10:01:07]Clear old archive folders... [10:01:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:07]tlvbuf is B6E90BC0 [10:01:07]SAM_PROTO_ClearQueue [10:01:07]wFMCommunicate request_size=4 [10:01:07]MH_SAM_APDU [10:01:07]CAPDU: 80 09 00 00 [10:01:07]Write to MH i2c: E2 08 00 88 27 80 09 00 00 00 00 00 00 21 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:07]Read from MH i2c: E2 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 03 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 03 00 88 27 00 90 00 23 [10:01:07]RAPDU: 90 00 [10:01:07]wFMCommunicate OK [10:01:07]SAM_PROTO_ClearQueue done [10:01:07]KKMCreateOFDPacket [10:01:07]OFDProtocolAddRootSTLVToBuf [10:01:07]FM_MakeSignedData [10:01:07]FM_MakeSignedData [10:01:07]SAM_PROTO_SignData [10:01:07]wFMCommunicate request_size=4 [10:01:07]MH_SAM_APDU [10:01:07]CAPDU: 80 0D 01 02 [10:01:07]Write to MH i2c: E2 08 00 89 27 80 0D 01 02 00 00 00 00 29 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:07]Read from MH i2c: E2 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 03 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 03 00 89 27 00 90 00 24 [10:01:07]RAPDU: 90 00 [10:01:07]wFMCommunicate OK [10:01:07]wFMCommunicate request_size=255 [10:01:07]MH_SAM_APDU [10:01:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 04 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 66 C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E0 02 00 35 04 06 00 6B [10:01:07]Write to MH i2c: E2 02 01 8A 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 04 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 66 C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E0 02 00 35 04 06 00 6B 00 00 9A [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 8A 27 00 90 00 25 [10:01:08]RAPDU: 90 00 [10:01:08]wFMCommunicate OK [10:01:08]wFMCommunicate request_size=10 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 0D 02 02 05 E6 02 DA 82 7A [10:01:08]Write to MH i2c: E2 0D 00 8B 27 80 0D 02 02 05 00 E6 02 DA 82 7A 00 00 F4 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 8B 27 00 90 00 26 [10:01:08]RAPDU: 90 00 [10:01:08]wFMCommunicate OK [10:01:08]wFMCommunicate request_size=4 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 0D 03 02 [10:01:08]Write to MH i2c: E2 08 00 8C 27 80 0D 03 02 00 00 00 00 2E [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 0B 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 0B 00 8C 27 00 79 C7 0B 87 11 83 5E 16 90 00 09 [10:01:08]RAPDU: 79 C7 0B 87 11 83 5E 16 90 00 [10:01:08]wFMCommunicate OK [10:01:08]SAM_PROTO_SignData done [10:01:08]FM_MakeSignedData done [10:01:08]CreateOFDProtocolMessage [10:01:08]wFMCommunicate request_size=4 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 11 00 00 [10:01:08]Write to MH i2c: E2 08 00 8D 27 80 11 00 00 00 00 00 00 2E [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 17 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 17 00 8D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7C [10:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:08]wFMCommunicate OK [10:01:08]CreateOFDProtocolMessage done [10:01:08]OFDSenderStorePacket 188635 [10:01:08]StoreOFDPacket docnum=188635 [10:01:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4C CF 07 01 83 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 04 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 66 C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E0 02 00 35 04 06 00 6B E6 02 DA 82 7A 79 C7 0B 87 11 83 5E 16 [10:01:08]CheckFolder [10:01:08]dirname=/storage/ofd_packets [10:01:08]CheckFolder done [10:01:08]ProducePacketName [10:01:08]name=ofd_packets/00188635 [10:01:08]NVStorageSaveData ofd_packets/00188635 [10:01:08]File name is /storage/ofd_packets/00188635 [10:01:08]Write 301 bytes [10:01:08]NVStorageSaveData done [10:01:08]OFDSenderStorePacket done [10:01:08]KKMCreateOFDPacket done [10:01:08]NVStorageSaveData kkm_last_timestamp [10:01:08]File name is /storage/kkm_last_timestamp [10:01:08]Write 4 bytes [10:01:08]NVStorageSaveData done [10:01:08]ExternCall_PrintAddStr [10:01:08]wPrintStart [10:01:08]Write to MH i2c: 01 00 00 8E 27 B5 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 07 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 07 00 8E 27 00 00 00 00 00 FF 0F CA [10:01:08]RasterBufferAndPrint [10:01:08]line Счет N : (1)210695 [10:01:08]line ИНН: 02508201610067 [10:01:08]line Контрольно-Кассовый Чек [10:01:08]line ПРОДАЖА [10:01:08]line ТРК (МРК, ГНК) : 23 [10:01:08]line Товар: 2710124500 [10:01:08]line Аи-95-К-3 [10:01:08]line 11.800 * 74.20 [10:01:08]line = 875.56 [10:01:08]line НДС 12% НСП 1% [10:01:08]line > о реализуемом товаре [10:01:08]line ОКРУГЛЕНИЕ: -0.56 [10:01:08]line ИТОГО: 875.00 [10:01:08]line Внесено: 875.00 [10:01:08]line СДАЧА: 0.00 [10:01:08]line НСП 1% : 7.75 [10:01:08]line НДС 12% : 92.98 [10:01:08]line Наличными: 875.00 [10:01:08]line Безнал.: 0.00 [10:01:08]line Место: АЗС № 86 "Партнер Нефть" [10:01:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:01:08]line СНО: Общий режим [10:01:08]line Чек 93 23.10.2024 10:01 [10:01:08]line Смена: 462 ФФД: 1.0 [10:01:08]line ЗНМ: 0300000155 [10:01:08]line РНМ: 0000000000100030 [10:01:08]line Версия ККМ: 001 [10:01:08]line ФМ: 0000000000965340 [10:01:08]line ФД: 188635 [10:01:08]line ФПД: 118635634524794 [10:01:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100110&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188635&fm=118635634524794&tin=02508201610067®Number=0000000000100030&sum=87500 [10:01:08]written 0, free lines is 4095 [10:01:08]OFD Sender: Processing packet 188635 [packets to send 1062, broken 1061] [10:01:08]ProducePacketName [10:01:08]name=ofd_packets/00188635 [10:01:08]OFD Sender: To server: pG, [10:01:08]CommunicateWithHost lk.salyk.kg:30040 [10:01:08]ConnectInit lk.salyk.kg [10:01:08]Connected sock=10 [10:01:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4C CF 07 01 83 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 04 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 66 C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E0 02 00 35 04 06 00 6B E6 02 DA 82 7A 79 C7 0B 87 11 83 5E 16 [10:01:08]Write to MH i2c: 01 00 00 B9 27 E0 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 07 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 07 00 B9 27 00 00 00 00 00 56 0C 49 [10:01:08]RasterBufferAndPrint [10:01:08]line [10:01:08]line [10:01:08]line [10:01:08]line [10:01:08]line [10:01:08]written 0, free lines is 3161 [10:01:08]MH_Cut [10:01:08]Write to MH i2c: D1 01 00 C0 27 01 B9 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: D1 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: D1 01 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: D1 01 00 C0 27 00 B8 [10:01:08]Write to MH i2c: 01 00 00 C1 27 E8 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E 3C 47 00 14 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 36 35 33 34 30 10 04 04 00 DB E0 02 00 F4 03 04 00 51 73 18 67 B6 04 01 00 00 55 08 65 84 91 C1 BA 58 [10:01:08]CommunicateWithHost err = 0 [10:01:08]CheckOFDResponse [10:01:08]1017 (14) - 77093643461234 [10:01:08]1041 (16) - 0000000000965340 [10:01:08]1040 (4) - 188635 [10:01:08]1012 (4) - 23.10.2024 03:53 [10:01:08]1206 (1) - 0 [10:01:08]OFD Sender: Remove packet 188635 [10:01:08]ProducePacketName [10:01:08]name=ofd_packets/00188635 [10:01:08]NVStorageDeleteData [10:01:09]OFD Sender: No OFD packet to send [10:01:10]*** Cut start [10:01:10]*** Partial cut [10:01:10]*** CUTSNS_PIN = 1 [10:01:10]*** CUTSNS_PIN = 0 [10:01:10]*** Brake cut motor [10:01:10]Read from MH i2c: 01 [10:01:10]MH_I2C_Read... [10:01:10]*** Stop cut motor [10:01:10]*** Cut end [10:01:10]Read from MH i2c: 01 07 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 FF 0F FD [10:01:10]process_action close_receipt done [10:01:10]requested_data is exist [10:01:10]produce_requested_data [10:01:10]requested_item fm.sn is exist - process it [10:01:10]wFMCommunicate request_size=4 [10:01:10]MH_SAM_APDU [10:01:10]CAPDU: 80 11 00 00 [10:01:10]Write to MH i2c: E2 08 00 C2 27 80 11 00 00 00 00 00 00 63 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:10]Read from MH i2c: E2 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 17 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 17 00 C2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [10:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:10]wFMCommunicate OK [10:01:10]requested_item fd.num is exist - process it [10:01:10]SAM_PROTO_GetFieldsCounters [10:01:10]wFMCommunicate request_size=4 [10:01:10]MH_SAM_APDU [10:01:10]CAPDU: 80 13 00 00 [10:01:10]Write to MH i2c: E2 08 00 C3 27 80 13 00 00 00 00 00 00 66 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:10]Read from MH i2c: E2 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 62 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 62 00 C3 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:01:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:11]wFMCommunicate OK [10:01:11]SAM_PROTO_GetFieldsCounters done [10:01:11]requested_item shift.num is exist - process it [10:01:11]requested_item shift.opened is exist - process it [10:01:11]req_shift_opened [10:01:11]FM_GetShiftState [10:01:11]SAM_PROTO_GetShiftState [10:01:11]wFMCommunicate request_size=4 [10:01:11]MH_SAM_APDU [10:01:11]CAPDU: 80 13 01 00 [10:01:11]Write to MH i2c: E2 08 00 C4 27 80 13 01 00 00 00 00 00 68 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:11]Read from MH i2c: E2 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 C4 27 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 50 [10:01:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:01:11]wFMCommunicate OK [10:01:11]SAM_PROTO_GetShiftState done [10:01:11]FM_GetShiftState done [10:01:11]req_shift_opened done [10:01:11]requested_item shift.open_date is exist - process it [10:01:11]req_shift_open_date [10:01:11]req_shift_open_date done [10:01:11]produce_requested_data done [10:01:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188635,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:01:11]process_action_free close_receipt [10:01:11]json_value_free [10:01:11]json_value_free done [10:01:11]process_json_proto returns [10:01:11]Send response to host [10:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188635,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:01:11]free response buf [10:01:11]execute_script done [10:01:11]execute_script returns [10:01:11]free content buf [10:01:11]Sock 9.Close socket [10:01:11]Sock 9.Thread stoped [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:42]accept exits with 7 [10:01:42]New connection [10:01:42]New thread 3066649956 created [10:01:42]Thread 3066506596 joined [10:01:42]Waiting for new connection... [10:01:42] Sock 7.Parse request [10:01:42]Sock 7.Check first char [10:01:42]Sock 7.First char is OK [10:01:42]request: POST /json_proto HTTP/1.0 [10:01:42]Method: POST [10:01:42]URL: /json_proto [10:01:42]Method is POST - this is cgi request [10:01:42]url: /json_proto [10:01:42]query_string will be loaded in cgi processing [10:01:42]execute_cgi json_proto POST (null) [10:01:42]execute_cgi path=json_proto method=POST [10:01:42]POST find Content-Length [10:01:42]Host: 172.17.42.131:8080 [10:01:42]Content-Length: 682 [10:01:42]Content-Type: application/json [10:01:42] [10:01:42]POST finish read [10:01:42]Found Content-Length = 682 [10:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:42]execute_script... [10:01:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:42]POST & json_proto [10:01:42]process_json_proto [10:01:42]json parsed OK: [10:01:42]protocol is kg_v1.0 [10:01:42]action value=close_receipt [10:01:42]process_action close_receipt [10:01:42]cmd_close_receipt [10:01:42]MH_GetDate [10:01:42]Write to MH i2c: F0 00 00 C5 27 DB [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: F0 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: F0 09 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: F0 09 00 C5 27 00 8A C9 18 67 A0 18 CA 66 9E [10:01:42]GetLastDocTimeStamp 1729677670 [10:01:42]current date 1729677706 [10:01:42]FM_GetShiftState [10:01:42]SAM_PROTO_GetShiftState [10:01:42]wFMCommunicate request_size=4 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 13 01 00 [10:01:42]Write to MH i2c: E2 08 00 C6 27 80 13 01 00 00 00 00 00 6A [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 0E 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 0E 00 C6 27 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 52 [10:01:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:01:42]wFMCommunicate OK [10:01:42]SAM_PROTO_GetShiftState done [10:01:42]FM_GetShiftState done [10:01:42]opened in 1729642525 [10:01:42]opened+sec_in_day 1729728925 [10:01:42]quantity*price = 100021 [10:01:42]sum+1 = 100023 [10:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 94 23.10.2024 10:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188636 ФПД: 91417422892780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100146&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188636&fm=91417422892780&tin=02508201610067®Number=0000000000100030&sum=100000 [10:01:43]StoreToDocumentArchive [10:01:43]shift 462 fd 188636 [10:01:43]save to /storage/0462/doc_00188636 [10:01:43]save last doc name /storage/0462/doc_00188636 to /storage/kkm_last_doc_name [10:01:43]save OK [10:01:43]Clear old archive folders... [10:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:43]tlvbuf is B6D5E010 [10:01:43]SAM_PROTO_ClearQueue [10:01:43]wFMCommunicate request_size=4 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 09 00 00 [10:01:43]Write to MH i2c: E2 08 00 D3 27 80 09 00 00 00 00 00 00 6C [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:43]Read from MH i2c: E2 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 03 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 03 00 D3 27 00 90 00 6E [10:01:43]RAPDU: 90 00 [10:01:43]wFMCommunicate OK [10:01:43]SAM_PROTO_ClearQueue done [10:01:43]KKMCreateOFDPacket [10:01:43]OFDProtocolAddRootSTLVToBuf [10:01:43]FM_MakeSignedData [10:01:43]FM_MakeSignedData [10:01:43]SAM_PROTO_SignData [10:01:43]wFMCommunicate request_size=4 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 0D 01 02 [10:01:43]Write to MH i2c: E2 08 00 D4 27 80 0D 01 02 00 00 00 00 74 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:43]Read from MH i2c: E2 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 03 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 03 00 D4 27 00 90 00 6F [10:01:43]RAPDU: 90 00 [10:01:43]wFMCommunicate OK [10:01:43]wFMCommunicate request_size=255 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 8A C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E0 02 00 35 04 06 00 53 [10:01:43]Write to MH i2c: E2 02 01 D5 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 8A C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E0 02 00 35 04 06 00 53 00 00 14 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 03 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [10:01:44]RAPDU: 90 00 [10:01:44]wFMCommunicate OK [10:01:44]wFMCommunicate request_size=10 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 0D 02 02 05 24 C7 04 8E EC [10:01:44]Write to MH i2c: E2 0D 00 D6 27 80 0D 02 02 05 00 24 C7 04 8E EC 00 00 EA [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 03 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 03 00 D6 27 00 90 00 71 [10:01:44]RAPDU: 90 00 [10:01:44]wFMCommunicate OK [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 0D 03 02 [10:01:44]Write to MH i2c: E2 08 00 D7 27 80 0D 03 02 00 00 00 00 79 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0B 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0B 00 D7 27 00 3C 7D 51 89 C9 D0 D6 E7 90 00 63 [10:01:44]RAPDU: 3C 7D 51 89 C9 D0 D6 E7 90 00 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_SignData done [10:01:44]FM_MakeSignedData done [10:01:44]CreateOFDProtocolMessage [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 11 00 00 [10:01:44]Write to MH i2c: E2 08 00 D8 27 80 11 00 00 00 00 00 00 79 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 17 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 17 00 D8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C7 [10:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:44]wFMCommunicate OK [10:01:44]CreateOFDProtocolMessage done [10:01:44]OFDSenderStorePacket 188636 [10:01:44]StoreOFDPacket docnum=188636 [10:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF 2E 07 01 1D EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 8A C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E0 02 00 35 04 06 00 53 24 C7 04 8E EC 3C 7D 51 89 C9 D0 D6 E7 [10:01:44]CheckFolder [10:01:44]dirname=/storage/ofd_packets [10:01:44]CheckFolder done [10:01:44]ProducePacketName [10:01:44]name=ofd_packets/00188636 [10:01:44]NVStorageSaveData ofd_packets/00188636 [10:01:44]File name is /storage/ofd_packets/00188636 [10:01:44]Write 301 bytes [10:01:44]NVStorageSaveData done [10:01:44]OFDSenderStorePacket done [10:01:44]KKMCreateOFDPacket done [10:01:44]NVStorageSaveData kkm_last_timestamp [10:01:44]File name is /storage/kkm_last_timestamp [10:01:44]Write 4 bytes [10:01:44]NVStorageSaveData done [10:01:44]ExternCall_PrintAddStr [10:01:44]wPrintStart [10:01:44]Write to MH i2c: 01 00 00 D9 27 00 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: 01 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: 01 07 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: 01 07 00 D9 27 00 00 00 00 00 FF 0F 15 [10:01:44]RasterBufferAndPrint [10:01:44]line Счет N : (1)210696 [10:01:44]line ИНН: 02508201610067 [10:01:44]line Контрольно-Кассовый Чек [10:01:44]line ПРОДАЖА [10:01:44]line ТРК (МРК, ГНК) : 13 [10:01:44]line Товар: 2710124500 [10:01:44]line Аи-95-К-3 [10:01:44]line 13.480 * 74.20 [10:01:44]line = 1000.22 [10:01:44]line НДС 12% НСП 1% [10:01:44]line > о реализуемом товаре [10:01:44]line ОКРУГЛЕНИЕ: -0.22 [10:01:44]line ИТОГО: 1000.00 [10:01:44]line Внесено: 1000.00 [10:01:44]line СДАЧА: 0.00 [10:01:44]line НСП 1% : 8.85 [10:01:44]line НДС 12% : 106.22 [10:01:44]line Наличными: 1000.00 [10:01:44]line Безнал.: 0.00 [10:01:44]line Место: АЗС № 86 "Партнер Нефть" [10:01:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:01:44]line СНО: Общий режим [10:01:44]line Чек 94 23.10.2024 10:01 [10:01:44]line Смена: 462 ФФД: 1.0 [10:01:44]line ЗНМ: 0300000155 [10:01:44]line РНМ: 0000000000100030 [10:01:44]line Версия ККМ: 001 [10:01:44]line ФМ: 0000000000965340 [10:01:44]line ФД: 188636 [10:01:44]line ФПД: 91417422892780 [10:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100146&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188636&fm=91417422892780&tin=02508201610067®Number=0000000000100030&sum=100000 [10:01:44]OFD Sender: Processing packet 188636 [packets to send 1062, broken 1061] [10:01:44]ProducePacketName [10:01:44]name=ofd_packets/00188636 [10:01:44]OFD Sender: To server: pG, [10:01:44]CommunicateWithHost lk.salyk.kg:30040 [10:01:44]ConnectInit lk.salyk.kg [10:01:44]written 0, free lines is 4095 [10:01:44]Connected sock=10 [10:01:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF 2E 07 01 1D EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 8A C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E0 02 00 35 04 06 00 53 24 C7 04 8E EC 3C 7D 51 89 C9 D0 D6 E7 [10:01:44]Write to MH i2c: 01 00 00 04 28 2C [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: 01 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: 01 07 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: 01 07 00 04 28 00 00 00 00 00 57 0C 96 [10:01:44]RasterBufferAndPrint [10:01:44]line [10:01:44]line [10:01:44]line [10:01:44]line [10:01:44]line [10:01:44]written 0, free lines is 3163 [10:01:44]MH_Cut [10:01:44]Write to MH i2c: D1 01 00 0B 28 01 05 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: D1 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: D1 01 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: D1 01 00 0B 28 00 04 [10:01:44]Write to MH i2c: 01 00 00 0C 28 34 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B5 C5 47 00 5C 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E0 02 00 F4 03 04 00 74 73 18 67 B6 04 01 00 00 1E 79 3B B4 45 FE C1 FC [10:01:44]CommunicateWithHost err = 0 [10:01:44]CheckOFDResponse [10:01:44]1017 (14) - 77093643461234 [10:01:44]1041 (16) - 0000000000965340 [10:01:44]1040 (4) - 188636 [10:01:44]1012 (4) - 23.10.2024 03:54 [10:01:44]1206 (1) - 0 [10:01:44]OFD Sender: Remove packet 188636 [10:01:44]ProducePacketName [10:01:44]name=ofd_packets/00188636 [10:01:44]NVStorageDeleteData [10:01:45]OFD Sender: No OFD packet to send [10:01:46]*** Cut start [10:01:46]*** Partial cut [10:01:46]*** CUTSNS_PIN = 1 [10:01:46]*** CUTSNS_PIN = 0 [10:01:46]*** Brake cut motor [10:01:46]Read from MH i2c: 01 [10:01:46]MH_I2C_Read... [10:01:46]*** Stop cut motor [10:01:46]*** Cut end [10:01:46]Read from MH i2c: 01 07 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: 01 07 00 0C 28 00 00 00 00 00 FF 0F 49 [10:01:46]process_action close_receipt done [10:01:46]requested_data is exist [10:01:46]produce_requested_data [10:01:46]requested_item fm.sn is exist - process it [10:01:46]wFMCommunicate request_size=4 [10:01:46]MH_SAM_APDU [10:01:46]CAPDU: 80 11 00 00 [10:01:46]Write to MH i2c: E2 08 00 0D 28 80 11 00 00 00 00 00 00 AF [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:46]Read from MH i2c: E2 17 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 17 00 0D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [10:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:46]wFMCommunicate OK [10:01:46]requested_item fd.num is exist - process it [10:01:46]SAM_PROTO_GetFieldsCounters [10:01:46]wFMCommunicate request_size=4 [10:01:46]MH_SAM_APDU [10:01:46]CAPDU: 80 13 00 00 [10:01:46]Write to MH i2c: E2 08 00 0E 28 80 13 00 00 00 00 00 00 B2 [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 62 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 62 00 0E 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [10:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:46]wFMCommunicate OK [10:01:46]SAM_PROTO_GetFieldsCounters done [10:01:46]requested_item shift.num is exist - process it [10:01:46]requested_item shift.opened is exist - process it [10:01:46]req_shift_opened [10:01:46]FM_GetShiftState [10:01:46]SAM_PROTO_GetShiftState [10:01:46]wFMCommunicate request_size=4 [10:01:46]MH_SAM_APDU [10:01:46]CAPDU: 80 13 01 00 [10:01:46]Write to MH i2c: E2 08 00 0F 28 80 13 01 00 00 00 00 00 B4 [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 0E 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 0E 00 0F 28 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9C [10:01:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:01:46]wFMCommunicate OK [10:01:46]SAM_PROTO_GetShiftState done [10:01:46]FM_GetShiftState done [10:01:46]req_shift_opened done [10:01:46]requested_item shift.open_date is exist - process it [10:01:46]req_shift_open_date [10:01:46]req_shift_open_date done [10:01:46]produce_requested_data done [10:01:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188636,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:01:46]process_action_free close_receipt [10:01:46]json_value_free [10:01:46]json_value_free done [10:01:46]process_json_proto returns [10:01:46]Send response to host [10:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188636,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:01:46]free response buf [10:01:46]execute_script done [10:01:46]execute_script returns [10:01:46]free content buf [10:01:46]Sock 7.Close socket [10:01:46]Sock 7.Thread stoped [10:01:47]accept exits with 9 [10:01:47]New connection [10:01:47]New thread 3066506596 created [10:01:47]Thread 3066649956 joined [10:01:47]Waiting for new connection... [10:01:47] Sock 9.Parse request [10:01:47]Sock 9.Check first char [10:01:47]Sock 9.First char is OK [10:01:47]request: POST /json_proto HTTP/1.0 [10:01:47]Method: POST [10:01:47]URL: /json_proto [10:01:47]Method is POST - this is cgi request [10:01:47]url: /json_proto [10:01:47]query_string will be loaded in cgi processing [10:01:47]execute_cgi json_proto POST (null) [10:01:47]execute_cgi path=json_proto method=POST [10:01:47]POST find Content-Length [10:01:47]Host: 172.17.42.131:8080 [10:01:47]Content-Length: 677 [10:01:47]Content-Type: application/json [10:01:47] [10:01:47]POST finish read [10:01:47]Found Content-Length = 677 [10:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:47]execute_script... [10:01:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:47]POST & json_proto [10:01:47]process_json_proto [10:01:47]json parsed OK: [10:01:47]protocol is kg_v1.0 [10:01:47]action value=close_receipt [10:01:47]process_action close_receipt [10:01:47]cmd_close_receipt [10:01:47]MH_GetDate [10:01:47]Write to MH i2c: F0 00 00 10 28 27 [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: F0 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: F0 09 00 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: F0 09 00 10 28 00 8E C9 18 67 A0 18 CA 66 EE [10:01:47]GetLastDocTimeStamp 1729677706 [10:01:47]current date 1729677710 [10:01:47]FM_GetShiftState [10:01:47]SAM_PROTO_GetShiftState [10:01:47]wFMCommunicate request_size=4 [10:01:47]MH_SAM_APDU [10:01:47]CAPDU: 80 13 01 00 [10:01:47]Write to MH i2c: E2 08 00 11 28 80 13 01 00 00 00 00 00 B6 [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:47]Read from MH i2c: E2 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: E2 0E 00 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: E2 0E 00 11 28 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9E [10:01:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:01:47]wFMCommunicate OK [10:01:47]SAM_PROTO_GetShiftState done [10:01:47]FM_GetShiftState done [10:01:47]opened in 1729642525 [10:01:47]opened+sec_in_day 1729728925 [10:01:47]quantity*price = 60027 [10:01:47]sum+1 = 60029 [10:01:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 95 23.10.2024 10:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188637 ФПД: 30705210463995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188637&fm=30705210463995&tin=02508201610067®Number=0000000000100030&sum=60000 [10:01:48]StoreToDocumentArchive [10:01:48]shift 462 fd 188637 [10:01:48]save to /storage/0462/doc_00188637 [10:01:48]save last doc name /storage/0462/doc_00188637 to /storage/kkm_last_doc_name [10:01:48]save OK [10:01:48]Clear old archive folders... [10:01:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:48]tlvbuf is 009C0590 [10:01:48]SAM_PROTO_ClearQueue [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 09 00 00 [10:01:48]Write to MH i2c: E2 08 00 1E 28 80 09 00 00 00 00 00 00 B8 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]SAM_PROTO_ClearQueue done [10:01:48]KKMCreateOFDPacket [10:01:48]OFDProtocolAddRootSTLVToBuf [10:01:48]FM_MakeSignedData [10:01:48]FM_MakeSignedData [10:01:48]SAM_PROTO_SignData [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 01 02 [10:01:48]Write to MH i2c: E2 08 00 1F 28 80 0D 01 02 00 00 00 00 C0 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 1F 28 00 90 00 BB [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]wFMCommunicate request_size=255 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8E C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E0 02 00 35 04 06 00 1B [10:01:48]Write to MH i2c: E2 02 01 20 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8E C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E0 02 00 35 04 06 00 1B 00 00 6F [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [10:01:49]RAPDU: 90 00 [10:01:49]wFMCommunicate OK [10:01:49]wFMCommunicate request_size=10 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 0D 02 02 05 ED 1D 29 96 FB [10:01:49]Write to MH i2c: E2 0D 00 21 28 80 0D 02 02 05 00 ED 1D 29 96 FB 00 00 91 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 03 00 21 28 00 90 00 BD [10:01:49]RAPDU: 90 00 [10:01:49]wFMCommunicate OK [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 0D 03 02 [10:01:49]Write to MH i2c: E2 08 00 22 28 80 0D 03 02 00 00 00 00 C5 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0B 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0B 00 22 28 00 1F 64 E3 68 55 19 FD F8 90 00 F7 [10:01:49]RAPDU: 1F 64 E3 68 55 19 FD F8 90 00 [10:01:49]wFMCommunicate OK [10:01:49]SAM_PROTO_SignData done [10:01:49]FM_MakeSignedData done [10:01:49]CreateOFDProtocolMessage [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 11 00 00 [10:01:49]Write to MH i2c: E2 08 00 23 28 80 11 00 00 00 00 00 00 C5 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 17 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 17 00 23 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [10:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:49]wFMCommunicate OK [10:01:49]CreateOFDProtocolMessage done [10:01:49]OFDSenderStorePacket 188637 [10:01:49]StoreOFDPacket docnum=188637 [10:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 24 1A 07 01 23 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8E C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E0 02 00 35 04 06 00 1B ED 1D 29 96 FB 1F 64 E3 68 55 19 FD F8 [10:01:49]CheckFolder [10:01:49]dirname=/storage/ofd_packets [10:01:49]CheckFolder done [10:01:49]ProducePacketName [10:01:49]name=ofd_packets/00188637 [10:01:49]NVStorageSaveData ofd_packets/00188637 [10:01:49]File name is /storage/ofd_packets/00188637 [10:01:49]Write 301 bytes [10:01:49]NVStorageSaveData done [10:01:49]OFDSenderStorePacket done [10:01:49]KKMCreateOFDPacket done [10:01:49]NVStorageSaveData kkm_last_timestamp [10:01:49]File name is /storage/kkm_last_timestamp [10:01:49]Write 4 bytes [10:01:49]NVStorageSaveData done [10:01:49]ExternCall_PrintAddStr [10:01:49]wPrintStart [10:01:49]Write to MH i2c: 01 00 00 24 28 4C [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 24 28 00 00 00 00 00 FF 0F 61 [10:01:49]RasterBufferAndPrint [10:01:49]line Счет N : (1)210697 [10:01:49]line ИНН: 02508201610067 [10:01:49]line Контрольно-Кассовый Чек [10:01:49]line ПРОДАЖА [10:01:49]line ТРК (МРК, ГНК) : 33 [10:01:49]line Товар: 2710124500 [10:01:49]line Аи-95-К-3 [10:01:49]line 8.090 * 74.20 [10:01:49]line = 600.28 [10:01:49]line НДС 12% НСП 1% [10:01:49]line > о реализуемом товаре [10:01:49]line ОКРУГЛЕНИЕ: -0.28 [10:01:49]line ИТОГО: 600.00 [10:01:49]line Внесено: 600.00 [10:01:49]line СДАЧА: 0.00 [10:01:49]line НСП 1% : 5.31 [10:01:49]line НДС 12% : 63.75 [10:01:49]line Наличными: 600.00 [10:01:49]line Безнал.: 0.00 [10:01:49]line Место: АЗС № 86 "Партнер Нефть" [10:01:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:01:49]line СНО: Общий режим [10:01:49]line Чек 95 23.10.2024 10:01 [10:01:49]line Смена: 462 ФФД: 1.0 [10:01:49]line ЗНМ: 0300000155 [10:01:49]line РНМ: 0000000000100030 [10:01:49]line Версия ККМ: 001 [10:01:49]line ФМ: 0000000000965340 [10:01:49]line ФД: 188637 [10:01:49]line ФПД: 30705210463995 [10:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188637&fm=30705210463995&tin=02508201610067®Number=0000000000100030&sum=60000 [10:01:49]OFD Sender: Processing packet 188637 [packets to send 1062, broken 1061] [10:01:49]ProducePacketName [10:01:49]name=ofd_packets/00188637 [10:01:49]OFD Sender: To server: pG, [10:01:49]CommunicateWithHost lk.salyk.kg:30040 [10:01:49]ConnectInit lk.salyk.kg [10:01:49]written 0, free lines is 4095 [10:01:49]Connected sock=10 [10:01:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 24 1A 07 01 23 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8E C9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E0 02 00 35 04 06 00 1B ED 1D 29 96 FB 1F 64 E3 68 55 19 FD F8 [10:01:50]Write to MH i2c: 01 00 00 4F 28 77 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 07 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 07 00 4F 28 00 00 00 00 00 65 0C EF [10:01:50]RasterBufferAndPrint [10:01:50]line [10:01:50]line [10:01:50]line [10:01:50]line [10:01:50]line [10:01:50]written 0, free lines is 3181 [10:01:50]MH_Cut [10:01:50]Write to MH i2c: D1 01 00 56 28 01 50 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: D1 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: D1 01 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: D1 01 00 56 28 00 4F [10:01:50]Write to MH i2c: 01 00 00 57 28 7F [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 62 56 47 00 6E 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E0 02 00 F4 03 04 00 7A 73 18 67 B6 04 01 00 00 EB 48 0B 72 2D B5 82 50 [10:01:50]CommunicateWithHost err = 0 [10:01:50]CheckOFDResponse [10:01:50]1017 (14) - 77093643461234 [10:01:50]1041 (16) - 0000000000965340 [10:01:50]1040 (4) - 188637 [10:01:50]1012 (4) - 23.10.2024 03:54 [10:01:50]1206 (1) - 0 [10:01:50]OFD Sender: Remove packet 188637 [10:01:50]ProducePacketName [10:01:50]name=ofd_packets/00188637 [10:01:50]NVStorageDeleteData [10:01:50]OFD Sender: No OFD packet to send [10:01:51]*** Cut start [10:01:51]*** Partial cut [10:01:51]*** CUTSNS_PIN = 1 [10:01:51]*** CUTSNS_PIN = 0 [10:01:51]*** Brake cut motor [10:01:52]Read from MH i2c: 01 [10:01:52]MH_I2C_Read... [10:01:52]*** Stop cut motor [10:01:52]*** Cut end [10:01:52]Read from MH i2c: 01 07 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: 01 07 00 57 28 00 00 00 00 00 FF 0F 94 [10:01:52]process_action close_receipt done [10:01:52]requested_data is exist [10:01:52]produce_requested_data [10:01:52]requested_item fm.sn is exist - process it [10:01:52]wFMCommunicate request_size=4 [10:01:52]MH_SAM_APDU [10:01:52]CAPDU: 80 11 00 00 [10:01:52]Write to MH i2c: E2 08 00 58 28 80 11 00 00 00 00 00 00 FA [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:52]Read from MH i2c: E2 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 17 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 17 00 58 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [10:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:52]wFMCommunicate OK [10:01:52]requested_item fd.num is exist - process it [10:01:52]SAM_PROTO_GetFieldsCounters [10:01:52]wFMCommunicate request_size=4 [10:01:52]MH_SAM_APDU [10:01:52]CAPDU: 80 13 00 00 [10:01:52]Write to MH i2c: E2 08 00 59 28 80 13 00 00 00 00 00 00 FD [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:52]Read from MH i2c: E2 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 62 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 62 00 59 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [10:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:52]wFMCommunicate OK [10:01:52]SAM_PROTO_GetFieldsCounters done [10:01:52]requested_item shift.num is exist - process it [10:01:52]requested_item shift.opened is exist - process it [10:01:52]req_shift_opened [10:01:52]FM_GetShiftState [10:01:52]SAM_PROTO_GetShiftState [10:01:52]wFMCommunicate request_size=4 [10:01:52]MH_SAM_APDU [10:01:52]CAPDU: 80 13 01 00 [10:01:52]Write to MH i2c: E2 08 00 5A 28 80 13 01 00 00 00 00 00 FF [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:52]Read from MH i2c: E2 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 0E 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 0E 00 5A 28 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E7 [10:01:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:01:52]wFMCommunicate OK [10:01:52]SAM_PROTO_GetShiftState done [10:01:52]FM_GetShiftState done [10:01:52]req_shift_opened done [10:01:52]requested_item shift.open_date is exist - process it [10:01:52]req_shift_open_date [10:01:52]req_shift_open_date done [10:01:52]produce_requested_data done [10:01:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188637,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:01:52]process_action_free close_receipt [10:01:52]json_value_free [10:01:52]json_value_free done [10:01:52]process_json_proto returns [10:01:52]Send response to host [10:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188637,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:01:52]free response buf [10:01:52]execute_script done [10:01:52]execute_script returns [10:01:52]free content buf [10:01:52]Sock 9.Close socket [10:01:52]Sock 9.Thread stoped [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:15]accept exits with 7 [10:06:15]New connection [10:06:15]New thread 3066649956 created [10:06:15]Thread 3066506596 joined [10:06:15]Waiting for new connection... [10:06:15] Sock 7.Parse request [10:06:15]Sock 7.Check first char [10:06:15]Sock 7.First char is OK [10:06:15]request: POST /json_proto HTTP/1.0 [10:06:15]Method: POST [10:06:15]URL: /json_proto [10:06:15]Method is POST - this is cgi request [10:06:15]url: /json_proto [10:06:15]query_string will be loaded in cgi processing [10:06:15]execute_cgi json_proto POST (null) [10:06:15]execute_cgi path=json_proto method=POST [10:06:15]POST find Content-Length [10:06:15]Host: 172.17.42.131:8080 [10:06:15]Content-Length: 825 [10:06:15]Content-Type: application/json [10:06:15] [10:06:15]POST finish read [10:06:15]Found Content-Length = 825 [10:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:15]execute_script... [10:06:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:15]POST & json_proto [10:06:15]process_json_proto [10:06:15]json parsed OK: [10:06:15]protocol is kg_v1.0 [10:06:15]action value=close_receipt [10:06:15]process_action close_receipt [10:06:15]cmd_close_receipt [10:06:15]MH_GetDate [10:06:15]Write to MH i2c: F0 00 00 5B 28 72 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: F0 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: F0 09 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: F0 09 00 5B 28 00 9B CA 18 67 A0 18 CA 66 47 [10:06:15]GetLastDocTimeStamp 1729677710 [10:06:15]current date 1729677979 [10:06:15]FM_GetShiftState [10:06:15]SAM_PROTO_GetShiftState [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 13 01 00 [10:06:15]Write to MH i2c: E2 08 00 5C 28 80 13 01 00 00 00 00 00 01 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:16]Read from MH i2c: E2 [10:06:16]MH_I2C_Read... [10:06:16]Read from MH i2c: E2 0E 00 [10:06:16]MH_I2C_Read... [10:06:16]Read from MH i2c: E2 0E 00 5C 28 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E9 [10:06:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:06:16]wFMCommunicate OK [10:06:16]SAM_PROTO_GetShiftState done [10:06:16]FM_GetShiftState done [10:06:16]opened in 1729642525 [10:06:16]opened+sec_in_day 1729728925 [10:06:16]quantity*price = 300076 [10:06:16]sum+1 = 300077 [10:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 96 23.10.2024 10:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188638 ФПД: 234211969952396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188638&fm=234211969952396&tin=02508201610067®Number=0000000000100030&sum=300076 [10:06:17]StoreToDocumentArchive [10:06:17]shift 462 fd 188638 [10:06:17]save to /storage/0462/doc_00188638 [10:06:17]save last doc name /storage/0462/doc_00188638 to /storage/kkm_last_doc_name [10:06:17]save OK [10:06:17]Clear old archive folders... [10:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:06:17]tlvbuf is 00970290 [10:06:17]SAM_PROTO_ClearQueue [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 09 00 00 [10:06:17]Write to MH i2c: E2 08 00 69 28 80 09 00 00 00 00 00 00 03 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 69 28 00 90 00 05 [10:06:17]RAPDU: 90 00 [10:06:17]wFMCommunicate OK [10:06:17]SAM_PROTO_ClearQueue done [10:06:17]KKMCreateOFDPacket [10:06:17]OFDProtocolAddRootSTLVToBuf [10:06:17]FM_MakeSignedData [10:06:17]FM_MakeSignedData [10:06:17]SAM_PROTO_SignData [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 0D 01 02 [10:06:17]Write to MH i2c: E2 08 00 6A 28 80 0D 01 02 00 00 00 00 0B [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 6A 28 00 90 00 06 [10:06:17]RAPDU: 90 00 [10:06:17]wFMCommunicate OK [10:06:17]wFMCommunicate request_size=255 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9B CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E0 02 [10:06:17]Write to MH i2c: E2 02 01 6B 28 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9B CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E0 02 00 00 B7 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 6B 28 00 90 00 07 [10:06:17]RAPDU: 90 00 [10:06:17]wFMCommunicate OK [10:06:17]wFMCommunicate request_size=16 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D5 03 B9 45 6A 8C [10:06:17]Write to MH i2c: E2 13 00 6C 28 80 0D 02 02 0B 00 00 35 04 06 00 D5 03 B9 45 6A 8C 00 00 2F [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 6C 28 00 90 00 08 [10:06:17]RAPDU: 90 00 [10:06:17]wFMCommunicate OK [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 0D 03 02 [10:06:17]Write to MH i2c: E2 08 00 6D 28 80 0D 03 02 00 00 00 00 10 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 0B 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 0B 00 6D 28 00 D7 C2 8F C0 79 B1 96 11 90 00 CA [10:06:17]RAPDU: D7 C2 8F C0 79 B1 96 11 90 00 [10:06:17]wFMCommunicate OK [10:06:17]SAM_PROTO_SignData done [10:06:17]FM_MakeSignedData done [10:06:17]CreateOFDProtocolMessage [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 11 00 00 [10:06:17]Write to MH i2c: E2 08 00 6E 28 80 11 00 00 00 00 00 00 10 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 17 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 17 00 6E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [10:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:06:17]wFMCommunicate OK [10:06:17]CreateOFDProtocolMessage done [10:06:17]OFDSenderStorePacket 188638 [10:06:17]StoreOFDPacket docnum=188638 [10:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7F 9B 0D 01 C4 3E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9B CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E0 02 00 35 04 06 00 D5 03 B9 45 6A 8C D7 C2 8F C0 79 B1 96 11 [10:06:17]CheckFolder [10:06:17]dirname=/storage/ofd_packets [10:06:17]CheckFolder done [10:06:17]ProducePacketName [10:06:17]name=ofd_packets/00188638 [10:06:17]NVStorageSaveData ofd_packets/00188638 [10:06:17]File name is /storage/ofd_packets/00188638 [10:06:17]Write 307 bytes [10:06:17]NVStorageSaveData done [10:06:17]OFDSenderStorePacket done [10:06:17]KKMCreateOFDPacket done [10:06:17]NVStorageSaveData kkm_last_timestamp [10:06:17]File name is /storage/kkm_last_timestamp [10:06:17]Write 4 bytes [10:06:17]NVStorageSaveData done [10:06:17]ExternCall_PrintAddStr [10:06:17]wPrintStart [10:06:17]Write to MH i2c: 01 00 00 6F 28 97 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: 01 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: 01 07 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: 01 07 00 6F 28 00 00 00 00 00 FF 0F AC [10:06:17]RasterBufferAndPrint [10:06:17]line Счет N : (1)210698 [10:06:17]line ИНН: 02508201610067 [10:06:17]line Контрольно-Кассовый Чек [10:06:17]line ПРОДАЖА [10:06:17]line ТРК (МРК, ГНК) : 41 [10:06:17]line Товар: 2710194210 [10:06:17]line D-ENERGY ДТ-К-5 [10:06:17]line 38.870 * 77.20 [10:06:17]line = 3000.76 [10:06:17]line НДС 12% НСП 1% [10:06:17]line > о реализуемом товаре [10:06:17]line ИТОГО: 3000.76 [10:06:17]line НСП 1% : 26.55 [10:06:17]line НДС 12% : 318.66 [10:06:17]line Наличными: 0.00 [10:06:17]line Безнал.: 3000.76 [10:06:17]line Место: АЗС № 86 "Партнер Нефть" [10:06:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:06:17]line СНО: Общий режим [10:06:17]line Чек 96 23.10.2024 10:06 [10:06:17]line Смена: 462 ФФД: 1.0 [10:06:17]line ЗНМ: 0300000155 [10:06:17]line РНМ: 0000000000100030 [10:06:17]line Версия ККМ: 001 [10:06:17]line Платежная система: Бакай Банк [10:06:17]line ФМ: 0000000000965340 [10:06:17]line ФД: 188638 [10:06:17]line ФПД: 234211969952396 [10:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188638&fm=234211969952396&tin=02508201610067®Number=0000000000100030&sum=300076 [10:06:17]written 0, free lines is 4095 [10:06:17]OFD Sender: Processing packet 188638 [packets to send 1062, broken 1061] [10:06:17]ProducePacketName [10:06:17]name=ofd_packets/00188638 [10:06:17]OFD Sender: To server: pG, [10:06:17]CommunicateWithHost lk.salyk.kg:30040 [10:06:17]ConnectInit lk.salyk.kg [10:06:18]Connected sock=10 [10:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7F 9B 0D 01 C4 3E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9B CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E0 02 00 35 04 06 00 D5 03 B9 45 6A 8C D7 C2 8F C0 79 B1 96 11 [10:06:18]Write to MH i2c: 01 00 00 99 28 C1 [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: 01 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: 01 07 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: 01 07 00 99 28 00 00 00 00 00 74 0C 48 [10:06:18]RasterBufferAndPrint [10:06:18]line [10:06:18]line [10:06:18]line [10:06:18]line [10:06:18]line [10:06:18]written 0, free lines is 3191 [10:06:18]MH_Cut [10:06:18]Write to MH i2c: D1 01 00 A0 28 01 9A [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: D1 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: D1 01 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: D1 01 00 A0 28 00 99 [10:06:18]Write to MH i2c: 01 00 00 A1 28 C9 [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F8 35 47 00 45 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E0 02 00 F4 03 04 00 86 74 18 67 B6 04 01 00 00 65 E1 E4 66 EE F1 FF E0 [10:06:18]CommunicateWithHost err = 0 [10:06:18]CheckOFDResponse [10:06:18]1017 (14) - 77093643461234 [10:06:18]1041 (16) - 0000000000965340 [10:06:18]1040 (4) - 188638 [10:06:18]1012 (4) - 23.10.2024 03:59 [10:06:18]1206 (1) - 0 [10:06:18]OFD Sender: Remove packet 188638 [10:06:18]ProducePacketName [10:06:18]name=ofd_packets/00188638 [10:06:18]NVStorageDeleteData [10:06:18]OFD Sender: No OFD packet to send [10:06:19]*** Cut start [10:06:19]*** Partial cut [10:06:19]*** CUTSNS_PIN = 1 [10:06:19]*** CUTSNS_PIN = 0 [10:06:19]*** Brake cut motor [10:06:20]Read from MH i2c: 01 [10:06:20]MH_I2C_Read... [10:06:20]*** Stop cut motor [10:06:20]*** Cut end [10:06:20]Read from MH i2c: 01 07 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: 01 07 00 A1 28 00 00 00 00 00 FF 0F DE [10:06:20]process_action close_receipt done [10:06:20]requested_data is exist [10:06:20]produce_requested_data [10:06:20]requested_item fm.sn is exist - process it [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 11 00 00 [10:06:20]Write to MH i2c: E2 08 00 A2 28 80 11 00 00 00 00 00 00 44 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 17 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 17 00 A2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [10:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:06:20]wFMCommunicate OK [10:06:20]requested_item fd.num is exist - process it [10:06:20]SAM_PROTO_GetFieldsCounters [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 13 00 00 [10:06:20]Write to MH i2c: E2 08 00 A3 28 80 13 00 00 00 00 00 00 47 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 62 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 62 00 A3 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [10:06:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:20]wFMCommunicate OK [10:06:20]SAM_PROTO_GetFieldsCounters done [10:06:20]requested_item shift.num is exist - process it [10:06:20]requested_item shift.opened is exist - process it [10:06:20]req_shift_opened [10:06:20]FM_GetShiftState [10:06:20]SAM_PROTO_GetShiftState [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 13 01 00 [10:06:20]Write to MH i2c: E2 08 00 A4 28 80 13 01 00 00 00 00 00 49 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 0E 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 0E 00 A4 28 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 31 [10:06:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:06:20]wFMCommunicate OK [10:06:20]SAM_PROTO_GetShiftState done [10:06:20]FM_GetShiftState done [10:06:20]req_shift_opened done [10:06:20]requested_item shift.open_date is exist - process it [10:06:20]req_shift_open_date [10:06:20]req_shift_open_date done [10:06:20]produce_requested_data done [10:06:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188638,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:06:20]process_action_free close_receipt [10:06:20]json_value_free [10:06:20]json_value_free done [10:06:20]process_json_proto returns [10:06:20]Send response to host [10:06:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188638,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:06:20]free response buf [10:06:20]execute_script done [10:06:20]execute_script returns [10:06:20]free content buf [10:06:20]Sock 7.Close socket [10:06:20]Sock 7.Thread stoped [10:06:23]OFD Sender: No OFD packet to send [10:06:27]accept exits with 9 [10:06:27]New connection [10:06:27]New thread 3066506596 created [10:06:27]Thread 3066649956 joined [10:06:27]Waiting for new connection... [10:06:27] Sock 9.Parse request [10:06:27]Sock 9.Check first char [10:06:27]Sock 9.First char is OK [10:06:27]request: POST /json_proto HTTP/1.0 [10:06:27]Method: POST [10:06:27]URL: /json_proto [10:06:27]Method is POST - this is cgi request [10:06:27]url: /json_proto [10:06:27]query_string will be loaded in cgi processing [10:06:27]execute_cgi json_proto POST (null) [10:06:27]execute_cgi path=json_proto method=POST [10:06:27]POST find Content-Length [10:06:27]Host: 172.17.42.131:8080 [10:06:27]Content-Length: 766 [10:06:27]Content-Type: application/json [10:06:27] [10:06:27]POST finish read [10:06:27]Found Content-Length = 766 [10:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 550.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:27]execute_script... [10:06:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 550.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:27]POST & json_proto [10:06:27]process_json_proto [10:06:27]json parsed OK: [10:06:27]protocol is kg_v1.0 [10:06:27]action value=close_receipt [10:06:27]process_action close_receipt [10:06:27]cmd_close_receipt [10:06:27]MH_GetDate [10:06:27]Write to MH i2c: F0 00 00 A5 28 BC [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: F0 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: F0 09 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: F0 09 00 A5 28 00 A7 CA 18 67 A0 18 CA 66 9D [10:06:27]GetLastDocTimeStamp 1729677979 [10:06:27]current date 1729677991 [10:06:27]FM_GetShiftState [10:06:27]SAM_PROTO_GetShiftState [10:06:27]wFMCommunicate request_size=4 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 13 01 00 [10:06:27]Write to MH i2c: E2 08 00 A6 28 80 13 01 00 00 00 00 00 4B [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 0E 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 0E 00 A6 28 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 33 [10:06:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:06:27]wFMCommunicate OK [10:06:27]SAM_PROTO_GetShiftState done [10:06:27]FM_GetShiftState done [10:06:27]opened in 1729642525 [10:06:27]opened+sec_in_day 1729728925 [10:06:27]quantity*price = 55058 [10:06:27]sum+1 = 55060 [10:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.59 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 0.00 Безнал.: 550.59 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 97 23.10.2024 10:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188639 ФПД: 101218758216561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100631&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188639&fm=101218758216561&tin=02508201610067®Number=0000000000100030&sum=55059 [10:06:29]StoreToDocumentArchive [10:06:29]shift 462 fd 188639 [10:06:29]save to /storage/0462/doc_00188639 [10:06:29]save last doc name /storage/0462/doc_00188639 to /storage/kkm_last_doc_name [10:06:29]save OK [10:06:29]Clear old archive folders... [10:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:29]tlvbuf is 0095C9B0 [10:06:29]SAM_PROTO_ClearQueue [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 09 00 00 [10:06:29]Write to MH i2c: E2 08 00 B3 28 80 09 00 00 00 00 00 00 4D [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 B3 28 00 90 00 4F [10:06:29]RAPDU: 90 00 [10:06:29]wFMCommunicate OK [10:06:29]SAM_PROTO_ClearQueue done [10:06:29]KKMCreateOFDPacket [10:06:29]OFDProtocolAddRootSTLVToBuf [10:06:29]FM_MakeSignedData [10:06:29]FM_MakeSignedData [10:06:29]SAM_PROTO_SignData [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 0D 01 02 [10:06:29]Write to MH i2c: E2 08 00 B4 28 80 0D 01 02 00 00 00 00 55 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 B4 28 00 90 00 50 [10:06:29]RAPDU: 90 00 [10:06:29]wFMCommunicate OK [10:06:29]wFMCommunicate request_size=255 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A7 CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E0 02 00 35 04 06 00 5C [10:06:29]Write to MH i2c: E2 02 01 B5 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A7 CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E0 02 00 35 04 06 00 5C 00 00 95 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 B5 28 00 90 00 51 [10:06:29]RAPDU: 90 00 [10:06:29]wFMCommunicate OK [10:06:29]wFMCommunicate request_size=10 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 0D 02 02 05 0E D4 20 CB 71 [10:06:29]Write to MH i2c: E2 0D 00 B6 28 80 0D 02 02 05 00 0E D4 20 CB 71 00 00 A0 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 B6 28 00 90 00 52 [10:06:29]RAPDU: 90 00 [10:06:29]wFMCommunicate OK [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 0D 03 02 [10:06:29]Write to MH i2c: E2 08 00 B7 28 80 0D 03 02 00 00 00 00 5A [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 0B 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 0B 00 B7 28 00 08 8A D9 B8 18 C7 2F 94 90 00 20 [10:06:29]RAPDU: 08 8A D9 B8 18 C7 2F 94 90 00 [10:06:29]wFMCommunicate OK [10:06:29]SAM_PROTO_SignData done [10:06:29]FM_MakeSignedData done [10:06:29]CreateOFDProtocolMessage [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 11 00 00 [10:06:29]Write to MH i2c: E2 08 00 B8 28 80 11 00 00 00 00 00 00 5A [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 17 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 17 00 B8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [10:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:06:29]wFMCommunicate OK [10:06:29]CreateOFDProtocolMessage done [10:06:29]OFDSenderStorePacket 188639 [10:06:29]StoreOFDPacket docnum=188639 [10:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6E BD 07 01 B9 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A7 CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E0 02 00 35 04 06 00 5C 0E D4 20 CB 71 08 8A D9 B8 18 C7 2F 94 [10:06:29]CheckFolder [10:06:29]dirname=/storage/ofd_packets [10:06:29]CheckFolder done [10:06:29]ProducePacketName [10:06:29]name=ofd_packets/00188639 [10:06:29]NVStorageSaveData ofd_packets/00188639 [10:06:29]File name is /storage/ofd_packets/00188639 [10:06:29]Write 301 bytes [10:06:29]NVStorageSaveData done [10:06:29]OFDSenderStorePacket done [10:06:29]KKMCreateOFDPacket done [10:06:29]NVStorageSaveData kkm_last_timestamp [10:06:29]File name is /storage/kkm_last_timestamp [10:06:29]Write 4 bytes [10:06:29]NVStorageSaveData done [10:06:29]ExternCall_PrintAddStr [10:06:29]wPrintStart [10:06:29]Write to MH i2c: 01 00 00 B9 28 E1 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 B9 28 00 00 00 00 00 FF 0F F6 [10:06:29]RasterBufferAndPrint [10:06:29]line Счет N : (1)210699 [10:06:29]line ИНН: 02508201610067 [10:06:29]line Контрольно-Кассовый Чек [10:06:29]line ПРОДАЖА [10:06:29]line ТРК (МРК, ГНК) : 12 [10:06:29]line Товар: 2710124130 [10:06:29]line Аи-92-К-3 [10:06:29]line 8.230 * 66.90 [10:06:29]line = 550.59 [10:06:29]line НДС 12% НСП 1% [10:06:29]line > о реализуемом товаре [10:06:29]line ИТОГО: 550.59 [10:06:29]line НСП 1% : 4.87 [10:06:29]line НДС 12% : 58.47 [10:06:29]line Наличными: 0.00 [10:06:29]line Безнал.: 550.59 [10:06:29]line Место: АЗС № 86 "Партнер Нефть" [10:06:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:06:29]line СНО: Общий режим [10:06:29]line Чек 97 23.10.2024 10:06 [10:06:29]line Смена: 462 ФФД: 1.0 [10:06:29]line ЗНМ: 0300000155 [10:06:29]line РНМ: 0000000000100030 [10:06:29]line Версия ККМ: 001 [10:06:29]line Платежная система: Mbank [10:06:29]line ФМ: 0000000000965340 [10:06:29]line ФД: 188639 [10:06:29]line ФПД: 101218758216561 [10:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100631&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188639&fm=101218758216561&tin=02508201610067®Number=0000000000100030&sum=55059 [10:06:29]written 0, free lines is 4095 [10:06:29]OFD Sender: Processing packet 188639 [packets to send 1062, broken 1061] [10:06:29]ProducePacketName [10:06:29]name=ofd_packets/00188639 [10:06:29]OFD Sender: To server: pG, [10:06:29]CommunicateWithHost lk.salyk.kg:30040 [10:06:29]ConnectInit lk.salyk.kg [10:06:29]Connected sock=10 [10:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6E BD 07 01 B9 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A7 CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E0 02 00 35 04 06 00 5C 0E D4 20 CB 71 08 8A D9 B8 18 C7 2F 94 [10:06:30]Write to MH i2c: 01 00 00 E2 28 0A [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: 01 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: 01 07 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: 01 07 00 E2 28 00 00 00 00 00 83 0C A0 [10:06:30]RasterBufferAndPrint [10:06:30]line [10:06:30]line [10:06:30]line [10:06:30]line [10:06:30]line [10:06:30]written 0, free lines is 3211 [10:06:30]MH_Cut [10:06:30]Write to MH i2c: D1 01 00 E9 28 01 E3 [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: D1 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: D1 01 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: D1 01 00 E9 28 00 E2 [10:06:30]Write to MH i2c: 01 00 00 EA 28 12 [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DA C9 47 00 CF 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E0 02 00 F4 03 04 00 92 74 18 67 B6 04 01 00 00 18 B6 7D 93 97 DA DB 31 [10:06:30]CommunicateWithHost err = 0 [10:06:30]CheckOFDResponse [10:06:30]1017 (14) - 77093643461234 [10:06:30]1041 (16) - 0000000000965340 [10:06:30]1040 (4) - 188639 [10:06:30]1012 (4) - 23.10.2024 03:59 [10:06:30]1206 (1) - 0 [10:06:30]OFD Sender: Remove packet 188639 [10:06:30]ProducePacketName [10:06:30]name=ofd_packets/00188639 [10:06:30]NVStorageDeleteData [10:06:30]OFD Sender: No OFD packet to send [10:06:31]*** Cut start [10:06:31]*** Partial cut [10:06:31]*** CUTSNS_PIN = 1 [10:06:31]*** CUTSNS_PIN = 0 [10:06:31]*** Brake cut motor [10:06:32]Read from MH i2c: 01 [10:06:32]MH_I2C_Read... [10:06:32]*** Stop cut motor [10:06:32]*** Cut end [10:06:32]Read from MH i2c: 01 07 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: 01 07 00 EA 28 00 00 00 00 00 FF 0F 27 [10:06:32]process_action close_receipt done [10:06:32]requested_data is exist [10:06:32]produce_requested_data [10:06:32]requested_item fm.sn is exist - process it [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 11 00 00 [10:06:32]Write to MH i2c: E2 08 00 EB 28 80 11 00 00 00 00 00 00 8D [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 17 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 17 00 EB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [10:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:06:32]wFMCommunicate OK [10:06:32]requested_item fd.num is exist - process it [10:06:32]SAM_PROTO_GetFieldsCounters [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 13 00 00 [10:06:32]Write to MH i2c: E2 08 00 EC 28 80 13 00 00 00 00 00 00 90 [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 62 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 62 00 EC 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [10:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:32]wFMCommunicate OK [10:06:32]SAM_PROTO_GetFieldsCounters done [10:06:32]requested_item shift.num is exist - process it [10:06:32]requested_item shift.opened is exist - process it [10:06:32]req_shift_opened [10:06:32]FM_GetShiftState [10:06:32]SAM_PROTO_GetShiftState [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 13 01 00 [10:06:32]Write to MH i2c: E2 08 00 ED 28 80 13 01 00 00 00 00 00 92 [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 0E 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 0E 00 ED 28 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7A [10:06:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:06:32]wFMCommunicate OK [10:06:32]SAM_PROTO_GetShiftState done [10:06:32]FM_GetShiftState done [10:06:32]req_shift_opened done [10:06:32]requested_item shift.open_date is exist - process it [10:06:32]req_shift_open_date [10:06:32]req_shift_open_date done [10:06:32]produce_requested_data done [10:06:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188639,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:06:32]process_action_free close_receipt [10:06:32]json_value_free [10:06:32]json_value_free done [10:06:32]process_json_proto returns [10:06:32]Send response to host [10:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188639,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:06:32]free response buf [10:06:32]execute_script done [10:06:32]execute_script returns [10:06:32]free content buf [10:06:32]Sock 9.Close socket [10:06:32]Sock 9.Thread stoped [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:46]accept exits with 7 [10:07:46]New connection [10:07:46]New thread 3066649956 created [10:07:46]Thread 3066506596 joined [10:07:46]Waiting for new connection... [10:07:46] Sock 7.Parse request [10:07:46]Sock 7.Check first char [10:07:46]Sock 7.First char is OK [10:07:46]request: POST /json_proto HTTP/1.0 [10:07:46]Method: POST [10:07:46]URL: /json_proto [10:07:46]Method is POST - this is cgi request [10:07:46]url: /json_proto [10:07:46]query_string will be loaded in cgi processing [10:07:46]execute_cgi json_proto POST (null) [10:07:46]execute_cgi path=json_proto method=POST [10:07:46]POST find Content-Length [10:07:46]Host: 172.17.42.131:8080 [10:07:46]Content-Length: 677 [10:07:46]Content-Type: application/json [10:07:46] [10:07:46]POST finish read [10:07:46]Found Content-Length = 677 [10:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:46]execute_script... [10: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 : (1)210701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:46]POST & json_proto [10:07:46]process_json_proto [10:07:46]json parsed OK: [10:07:46]protocol is kg_v1.0 [10:07:46]action value=close_receipt [10:07:46]process_action close_receipt [10:07:46]cmd_close_receipt [10:07:46]MH_GetDate [10:07:46]Write to MH i2c: F0 00 00 EE 28 05 [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: F0 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: F0 09 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: F0 09 00 EE 28 00 F5 CA 18 67 A0 18 CA 66 34 [10:07:46]GetLastDocTimeStamp 1729677991 [10:07:46]current date 1729678069 [10:07:46]FM_GetShiftState [10:07:46]SAM_PROTO_GetShiftState [10:07:46]wFMCommunicate request_size=4 [10:07:46]MH_SAM_APDU [10:07:46]CAPDU: 80 13 01 00 [10:07:46]Write to MH i2c: E2 08 00 EF 28 80 13 01 00 00 00 00 00 94 [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:46]Read from MH i2c: E2 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 0E 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 0E 00 EF 28 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7C [10:07:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:07:46]wFMCommunicate OK [10:07:46]SAM_PROTO_GetShiftState done [10:07:46]FM_GetShiftState done [10:07:46]opened in 1729642525 [10:07:46]opened+sec_in_day 1729728925 [10:07:46]quantity*price = 30038 [10:07:46]sum+1 = 30039 [10:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 98 23.10.2024 10:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188640 ФПД: 216170759036758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100749&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188640&fm=216170759036758&tin=02508201610067®Number=0000000000100030&sum=30000 [10:07:47]StoreToDocumentArchive [10:07:47]shift 462 fd 188640 [10:07:47]save to /storage/0462/doc_00188640 [10:07:47]save last doc name /storage/0462/doc_00188640 to /storage/kkm_last_doc_name [10:07:47]save OK [10:07:47]Clear old archive folders... [10:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:47]tlvbuf is 00960420 [10:07:47]SAM_PROTO_ClearQueue [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 09 00 00 [10:07:47]Write to MH i2c: E2 08 00 FC 28 80 09 00 00 00 00 00 00 96 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 03 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 03 00 FC 28 00 90 00 98 [10:07:47]RAPDU: 90 00 [10:07:47]wFMCommunicate OK [10:07:47]SAM_PROTO_ClearQueue done [10:07:47]KKMCreateOFDPacket [10:07:47]OFDProtocolAddRootSTLVToBuf [10:07:47]FM_MakeSignedData [10:07:47]FM_MakeSignedData [10:07:47]SAM_PROTO_SignData [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 0D 01 02 [10:07:47]Write to MH i2c: E2 08 00 FD 28 80 0D 01 02 00 00 00 00 9E [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 03 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 03 00 FD 28 00 90 00 99 [10:07:47]RAPDU: 90 00 [10:07:47]wFMCommunicate OK [10:07:47]wFMCommunicate request_size=255 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F5 CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E0 02 00 35 04 06 00 C4 [10:07:47]Write to MH i2c: E2 02 01 FE 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F5 CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E0 02 00 35 04 06 00 C4 00 00 FA [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 03 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 03 00 FE 28 00 90 00 9A [10:07:47]RAPDU: 90 00 [10:07:47]wFMCommunicate OK [10:07:47]wFMCommunicate request_size=10 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 0D 02 02 05 9B 2D 4D 9F 56 [10:07:47]Write to MH i2c: E2 0D 00 FF 28 80 0D 02 02 05 00 9B 2D 4D 9F 56 00 00 B5 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 03 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 03 00 FF 28 00 90 00 9B [10:07:47]RAPDU: 90 00 [10:07:47]wFMCommunicate OK [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 0D 03 02 [10:07:47]Write to MH i2c: E2 08 00 00 29 80 0D 03 02 00 00 00 00 A4 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 0B 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 0B 00 00 29 00 C9 B4 C7 C3 B3 84 10 6B 90 00 5E [10:07:47]RAPDU: C9 B4 C7 C3 B3 84 10 6B 90 00 [10:07:47]wFMCommunicate OK [10:07:47]SAM_PROTO_SignData done [10:07:47]FM_MakeSignedData done [10:07:47]CreateOFDProtocolMessage [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 11 00 00 [10:07:47]Write to MH i2c: E2 08 00 01 29 80 11 00 00 00 00 00 00 A4 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 17 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 17 00 01 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [10:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:07:47]wFMCommunicate OK [10:07:47]CreateOFDProtocolMessage done [10:07:47]OFDSenderStorePacket 188640 [10:07:47]StoreOFDPacket docnum=188640 [10:07:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F8 93 07 01 1A 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F5 CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E0 02 00 35 04 06 00 C4 9B 2D 4D 9F 56 C9 B4 C7 C3 B3 84 10 6B [10:07:47]CheckFolder [10:07:47]dirname=/storage/ofd_packets [10:07:47]CheckFolder done [10:07:47]ProducePacketName [10:07:47]name=ofd_packets/00188640 [10:07:47]NVStorageSaveData ofd_packets/00188640 [10:07:47]File name is /storage/ofd_packets/00188640 [10:07:47]Write 301 bytes [10:07:47]NVStorageSaveData done [10:07:47]OFDSenderStorePacket done [10:07:47]KKMCreateOFDPacket done [10:07:47]NVStorageSaveData kkm_last_timestamp [10:07:47]File name is /storage/kkm_last_timestamp [10:07:47]Write 4 bytes [10:07:47]NVStorageSaveData done [10:07:47]ExternCall_PrintAddStr [10:07:47]wPrintStart [10:07:47]Write to MH i2c: 01 00 00 02 29 2B [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 02 29 00 00 00 00 00 FF 0F 40 [10:07:47]RasterBufferAndPrint [10:07:47]line Счет N : (1)210701 [10:07:47]line ИНН: 02508201610067 [10:07:47]line Контрольно-Кассовый Чек [10:07:47]line ПРОДАЖА [10:07:47]line ТРК (МРК, ГНК) : 12 [10:07:47]line Товар: 2710124130 [10:07:47]line Аи-92-К-3 [10:07:47]line 4.490 * 66.90 [10:07:47]line = 300.38 [10:07:47]line НДС 12% НСП 1% [10:07:47]line > о реализуемом товаре [10:07:47]line ОКРУГЛЕНИЕ: -0.38 [10:07:47]line ИТОГО: 300.00 [10:07:47]line Внесено: 300.00 [10:07:47]line СДАЧА: 0.00 [10:07:47]line НСП 1% : 2.66 [10:07:47]line НДС 12% : 31.90 [10:07:47]line Наличными: 300.00 [10:07:47]line Безнал.: 0.00 [10:07:47]line Место: АЗС № 86 "Партнер Нефть" [10:07:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:07:47]line СНО: Общий режим [10:07:47]line Чек 98 23.10.2024 10:07 [10:07:47]line Смена: 462 ФФД: 1.0 [10:07:47]line ЗНМ: 0300000155 [10:07:47]line РНМ: 0000000000100030 [10:07:47]line Версия ККМ: 001 [10:07:47]line ФМ: 0000000000965340 [10:07:47]line ФД: 188640 [10:07:47]line ФПД: 216170759036758 [10:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100749&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188640&fm=216170759036758&tin=02508201610067®Number=0000000000100030&sum=30000 [10:07:48]OFD Sender: Processing packet 188640 [packets to send 1062, broken 1061] [10:07:48]ProducePacketName [10:07:48]name=ofd_packets/00188640 [10:07:48]OFD Sender: To server: pG, [10:07:48]CommunicateWithHost lk.salyk.kg:30040 [10:07:48]ConnectInit lk.salyk.kg [10:07:48]written 0, free lines is 4095 [10:07:48]Connected sock=10 [10:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F8 93 07 01 1A 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F5 CA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E0 02 00 35 04 06 00 C4 9B 2D 4D 9F 56 C9 B4 C7 C3 B3 84 10 6B [10:07:48]Write to MH i2c: 01 00 00 2D 29 56 [10:07:48]Write i2c OK [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: 01 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: 01 07 00 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: 01 07 00 2D 29 00 00 00 00 00 59 0C C2 [10:07:48]RasterBufferAndPrint [10:07:48]line [10:07:48]line [10:07:48]line [10:07:48]line [10:07:48]line [10:07:48]written 0, free lines is 3165 [10:07:48]MH_Cut [10:07:48]Write to MH i2c: D1 01 00 34 29 01 2F [10:07:48]Write i2c OK [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: D1 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: D1 01 00 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: D1 01 00 34 29 00 2E [10:07:48]Write to MH i2c: 01 00 00 35 29 5E [10:07:48]Write i2c OK [10:07:48]MH_I2C_Read... [10:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9B 0F 47 00 85 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E0 02 00 F4 03 04 00 E0 74 18 67 B6 04 01 00 00 A9 43 44 F8 3D 86 8B 6F [10:07:48]CommunicateWithHost err = 0 [10:07:48]CheckOFDResponse [10:07:48]1017 (14) - 77093643461234 [10:07:48]1041 (16) - 0000000000965340 [10:07:48]1040 (4) - 188640 [10:07:48]1012 (4) - 23.10.2024 04:00 [10:07:48]1206 (1) - 0 [10:07:48]OFD Sender: Remove packet 188640 [10:07:48]ProducePacketName [10:07:48]name=ofd_packets/00188640 [10:07:48]NVStorageDeleteData [10:07:49]OFD Sender: No OFD packet to send [10:07:49]*** Cut start [10:07:49]*** Partial cut [10:07:49]*** CUTSNS_PIN = 1 [10:07:50]*** CUTSNS_PIN = 0 [10:07:50]*** Brake cut motor [10:07:50]Read from MH i2c: 01 [10:07:50]MH_I2C_Read... [10:07:50]*** Stop cut motor [10:07:50]*** Cut end [10:07:50]Read from MH i2c: 01 07 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: 01 07 00 35 29 00 00 00 00 00 FF 0F 73 [10:07:50]process_action close_receipt done [10:07:50]requested_data is exist [10:07:50]produce_requested_data [10:07:50]requested_item fm.sn is exist - process it [10:07:50]wFMCommunicate request_size=4 [10:07:50]MH_SAM_APDU [10:07:50]CAPDU: 80 11 00 00 [10:07:50]Write to MH i2c: E2 08 00 36 29 80 11 00 00 00 00 00 00 D9 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:50]Read from MH i2c: E2 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 17 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 17 00 36 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [10:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:07:50]wFMCommunicate OK [10:07:50]requested_item fd.num is exist - process it [10:07:50]SAM_PROTO_GetFieldsCounters [10:07:50]wFMCommunicate request_size=4 [10:07:50]MH_SAM_APDU [10:07:50]CAPDU: 80 13 00 00 [10:07:50]Write to MH i2c: E2 08 00 37 29 80 13 00 00 00 00 00 00 DC [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:50]Read from MH i2c: E2 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 62 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 62 00 37 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:50]wFMCommunicate OK [10:07:50]SAM_PROTO_GetFieldsCounters done [10:07:50]requested_item shift.num is exist - process it [10:07:50]requested_item shift.opened is exist - process it [10:07:50]req_shift_opened [10:07:50]FM_GetShiftState [10:07:50]SAM_PROTO_GetShiftState [10:07:50]wFMCommunicate request_size=4 [10:07:50]MH_SAM_APDU [10:07:50]CAPDU: 80 13 01 00 [10:07:50]Write to MH i2c: E2 08 00 38 29 80 13 01 00 00 00 00 00 DE [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:50]Read from MH i2c: E2 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 0E 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 0E 00 38 29 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C6 [10:07:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:07:50]wFMCommunicate OK [10:07:50]SAM_PROTO_GetShiftState done [10:07:50]FM_GetShiftState done [10:07:50]req_shift_opened done [10:07:50]requested_item shift.open_date is exist - process it [10:07:50]req_shift_open_date [10:07:50]req_shift_open_date done [10:07:50]produce_requested_data done [10:07:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188640,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:07:50]process_action_free close_receipt [10:07:50]json_value_free [10:07:50]json_value_free done [10:07:50]process_json_proto returns [10:07:50]Send response to host [10:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188640,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:07:50]free response buf [10:07:50]execute_script done [10:07:50]execute_script returns [10:07:50]free content buf [10:07:50]Sock 7.Close socket [10:07:50]Sock 7.Thread stoped [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:09]accept exits with 9 [10:08:09]New connection [10:08:09]New thread 3066506596 created [10:08:09]Thread 3066649956 joined [10:08:09]Waiting for new connection... [10:08:09] Sock 9.Parse request [10:08:09]Sock 9.Check first char [10:08:09]Sock 9.First char is OK [10:08:09]request: POST /json_proto HTTP/1.0 [10:08:09]Method: POST [10:08:09]URL: /json_proto [10:08:09]Method is POST - this is cgi request [10:08:09]url: /json_proto [10:08:09]query_string will be loaded in cgi processing [10:08:09]execute_cgi json_proto POST (null) [10:08:09]execute_cgi path=json_proto method=POST [10:08:09]POST find Content-Length [10:08:09]Host: 172.17.42.131:8080 [10:08:09]Content-Length: 688 [10:08:09]Content-Type: application/json [10:08:09] [10:08:09]POST finish read [10:08:09]Found Content-Length = 688 [10:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:09]execute_script... [10:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:09]POST & json_proto [10:08:09]process_json_proto [10:08:09]json parsed OK: [10:08:09]protocol is kg_v1.0 [10:08:09]action value=close_receipt [10:08:09]process_action close_receipt [10:08:09]cmd_close_receipt [10:08:09]MH_GetDate [10:08:09]Write to MH i2c: F0 00 00 39 29 51 [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: F0 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: F0 09 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: F0 09 00 39 29 00 0D CB 18 67 A0 18 CA 66 99 [10:08:09]GetLastDocTimeStamp 1729678069 [10:08:09]current date 1729678093 [10:08:09]FM_GetShiftState [10:08:09]SAM_PROTO_GetShiftState [10:08:09]wFMCommunicate request_size=4 [10:08:09]MH_SAM_APDU [10:08:09]CAPDU: 80 13 01 00 [10:08:09]Write to MH i2c: E2 08 00 3A 29 80 13 01 00 00 00 00 00 E0 [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:09]Read from MH i2c: E2 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 0E 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 0E 00 3A 29 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C8 [10:08:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:08:09]wFMCommunicate OK [10:08:09]SAM_PROTO_GetShiftState done [10:08:09]FM_GetShiftState done [10:08:09]opened in 1729642525 [10:08:09]opened+sec_in_day 1729728925 [10:08:09]quantity*price = 100051 [10:08:09]sum+1 = 100052 [10:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 99 23.10.2024 10:08 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188641 ФПД: 111722021328105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100813&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188641&fm=111722021328105&tin=02508201610067®Number=0000000000100030&sum=100000 [10:08:10]StoreToDocumentArchive [10:08:10]shift 462 fd 188641 [10:08:10]save to /storage/0462/doc_00188641 [10:08:10]save last doc name /storage/0462/doc_00188641 to /storage/kkm_last_doc_name [10:08:10]save OK [10:08:10]Clear old archive folders... [10:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:08:10]tlvbuf is B6F0E230 [10:08:10]SAM_PROTO_ClearQueue [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 09 00 00 [10:08:10]Write to MH i2c: E2 08 00 47 29 80 09 00 00 00 00 00 00 E2 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 47 29 00 90 00 E4 [10:08:10]RAPDU: 90 00 [10:08:10]wFMCommunicate OK [10:08:10]SAM_PROTO_ClearQueue done [10:08:10]KKMCreateOFDPacket [10:08:10]OFDProtocolAddRootSTLVToBuf [10:08:10]FM_MakeSignedData [10:08:10]FM_MakeSignedData [10:08:10]SAM_PROTO_SignData [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 0D 01 02 [10:08:10]Write to MH i2c: E2 08 00 48 29 80 0D 01 02 00 00 00 00 EA [10:08:10]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 48 29 00 90 00 E5 [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]wFMCommunicate request_size=255 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0D CB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E0 02 [10:08:11]Write to MH i2c: E2 02 01 49 29 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0D CB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E0 02 00 00 93 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 49 29 00 90 00 E6 [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]wFMCommunicate request_size=16 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 65 9C 4F 65 14 E9 [10:08:11]Write to MH i2c: E2 13 00 4A 29 80 0D 02 02 0B 00 00 35 04 06 00 65 9C 4F 65 14 E9 00 00 F4 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 4A 29 00 90 00 E7 [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 03 02 [10:08:11]Write to MH i2c: E2 08 00 4B 29 80 0D 03 02 00 00 00 00 EF [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 0B 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 0B 00 4B 29 00 AB 4B 9A C0 19 1D A3 4D 90 00 66 [10:08:11]RAPDU: AB 4B 9A C0 19 1D A3 4D 90 00 [10:08:11]wFMCommunicate OK [10:08:11]SAM_PROTO_SignData done [10:08:11]FM_MakeSignedData done [10:08:11]CreateOFDProtocolMessage [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 11 00 00 [10:08:11]Write to MH i2c: E2 08 00 4C 29 80 11 00 00 00 00 00 00 EF [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 17 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 17 00 4C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [10:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:08:11]wFMCommunicate OK [10:08:11]CreateOFDProtocolMessage done [10:08:11]OFDSenderStorePacket 188641 [10:08:11]StoreOFDPacket docnum=188641 [10:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B4 AC 0D 01 82 F2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0D CB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E0 02 00 35 04 06 00 65 9C 4F 65 14 E9 AB 4B 9A C0 19 1D A3 4D [10:08:11]CheckFolder [10:08:11]dirname=/storage/ofd_packets [10:08:11]CheckFolder done [10:08:11]ProducePacketName [10:08:11]name=ofd_packets/00188641 [10:08:11]NVStorageSaveData ofd_packets/00188641 [10:08:11]File name is /storage/ofd_packets/00188641 [10:08:11]Write 307 bytes [10:08:11]NVStorageSaveData done [10:08:11]OFDSenderStorePacket done [10:08:11]KKMCreateOFDPacket done [10:08:11]NVStorageSaveData kkm_last_timestamp [10:08:11]File name is /storage/kkm_last_timestamp [10:08:11]Write 4 bytes [10:08:11]NVStorageSaveData done [10:08:11]ExternCall_PrintAddStr [10:08:11]wPrintStart [10:08:11]Write to MH i2c: 01 00 00 4D 29 76 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 4D 29 00 00 00 00 00 FF 0F 8B [10:08:11]RasterBufferAndPrint [10:08:11]line Счет N : (1)210700 [10:08:11]line ИНН: 02508201610067 [10:08:11]line Контрольно-Кассовый Чек [10:08:11]line ПРОДАЖА [10:08:11]line ТРК (МРК, ГНК) : 21 [10:08:11]line Товар: 2710194210 [10:08:11]line D-ENERGY ДТ-К-5 [10:08:11]line 12.960 * 77.20 [10:08:11]line = 1000.51 [10:08:11]line НДС 12% НСП 1% [10:08:11]line > о реализуемом товаре [10:08:11]line ОКРУГЛЕНИЕ: -0.51 [10:08:11]line ИТОГО: 1000.00 [10:08:11]line Внесено: 1000.00 [10:08:11]line СДАЧА: 0.00 [10:08:11]line НСП 1% : 8.85 [10:08:11]line НДС 12% : 106.25 [10:08:11]line Наличными: 1000.00 [10:08:11]line Безнал.: 0.00 [10:08:11]line Место: АЗС № 86 "Партнер Нефть" [10:08:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:08:11]line СНО: Общий режим [10:08:11]line Чек 99 23.10.2024 10:08 [10:08:11]line Смена: 462 ФФД: 1.0 [10:08:11]line ЗНМ: 0300000155 [10:08:11]line РНМ: 0000000000100030 [10:08:11]line Версия ККМ: 001 [10:08:11]line ФМ: 0000000000965340 [10:08:11]line ФД: 188641 [10:08:11]line ФПД: 111722021328105 [10:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100813&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188641&fm=111722021328105&tin=02508201610067®Number=0000000000100030&sum=100000 [10:08:11]written 0, free lines is 4095 [10:08:11]OFD Sender: Processing packet 188641 [packets to send 1062, broken 1061] [10:08:11]ProducePacketName [10:08:11]name=ofd_packets/00188641 [10:08:11]OFD Sender: To server: pG, [10:08:11]CommunicateWithHost lk.salyk.kg:30040 [10:08:11]ConnectInit lk.salyk.kg [10:08:11]Connected sock=7 [10:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B4 AC 0D 01 82 F2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0D CB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E0 02 00 35 04 06 00 65 9C 4F 65 14 E9 AB 4B 9A C0 19 1D A3 4D [10:08:11]Write to MH i2c: 01 00 00 78 29 A1 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 78 29 00 00 00 00 00 55 0C 09 [10:08:11]RasterBufferAndPrint [10:08:11]line [10:08:11]line [10:08:11]line [10:08:11]line [10:08:11]line [10:08:11]written 0, free lines is 3161 [10:08:11]MH_Cut [10:08:11]Write to MH i2c: D1 01 00 7F 29 01 7A [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: D1 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: D1 01 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: D1 01 00 7F 29 00 79 [10:08:11]Write to MH i2c: 01 00 00 80 29 A9 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E9 D8 47 00 04 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E0 02 00 F4 03 04 00 F8 74 18 67 B6 04 01 00 00 4D 65 19 D2 D0 EF 3A 2F [10:08:12]CommunicateWithHost err = 0 [10:08:12]CheckOFDResponse [10:08:12]1017 (14) - 77093643461234 [10:08:12]1041 (16) - 0000000000965340 [10:08:12]1040 (4) - 188641 [10:08:12]1012 (4) - 23.10.2024 04:00 [10:08:12]1206 (1) - 0 [10:08:12]OFD Sender: Remove packet 188641 [10:08:12]ProducePacketName [10:08:12]name=ofd_packets/00188641 [10:08:12]NVStorageDeleteData [10:08:12]OFD Sender: No OFD packet to send [10:08:13]*** Cut start [10:08:13]*** Partial cut [10:08:13]*** CUTSNS_PIN = 1 [10:08:13]*** CUTSNS_PIN = 0 [10:08:13]*** Brake cut motor [10:08:13]Read from MH i2c: 01 [10:08:13]MH_I2C_Read... [10:08:13]*** Stop cut motor [10:08:13]*** Cut end [10:08:13]Read from MH i2c: 01 07 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: 01 07 00 80 29 00 00 00 00 00 FF 0F BE [10:08:13]process_action close_receipt done [10:08:13]requested_data is exist [10:08:13]produce_requested_data [10:08:13]requested_item fm.sn is exist - process it [10:08:13]wFMCommunicate request_size=4 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 11 00 00 [10:08:13]Write to MH i2c: E2 08 00 81 29 80 11 00 00 00 00 00 00 24 [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 17 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 17 00 81 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [10:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:08:13]wFMCommunicate OK [10:08:13]requested_item fd.num is exist - process it [10:08:13]SAM_PROTO_GetFieldsCounters [10:08:13]wFMCommunicate request_size=4 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 13 00 00 [10:08:13]Write to MH i2c: E2 08 00 82 29 80 13 00 00 00 00 00 00 27 [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:14]Read from MH i2c: E2 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: E2 62 00 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: E2 62 00 82 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:14]wFMCommunicate OK [10:08:14]SAM_PROTO_GetFieldsCounters done [10:08:14]requested_item shift.num is exist - process it [10:08:14]requested_item shift.opened is exist - process it [10:08:14]req_shift_opened [10:08:14]FM_GetShiftState [10:08:14]SAM_PROTO_GetShiftState [10:08:14]wFMCommunicate request_size=4 [10:08:14]MH_SAM_APDU [10:08:14]CAPDU: 80 13 01 00 [10:08:14]Write to MH i2c: E2 08 00 83 29 80 13 01 00 00 00 00 00 29 [10:08:14]Write i2c OK [10:08:14]MH_I2C_Read... [10:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:14]Read from MH i2c: E2 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: E2 0E 00 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: E2 0E 00 83 29 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 11 [10:08:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:08:14]wFMCommunicate OK [10:08:14]SAM_PROTO_GetShiftState done [10:08:14]FM_GetShiftState done [10:08:14]req_shift_opened done [10:08:14]requested_item shift.open_date is exist - process it [10:08:14]req_shift_open_date [10:08:14]req_shift_open_date done [10:08:14]produce_requested_data done [10:08:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188641,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:08:14]process_action_free close_receipt [10:08:14]json_value_free [10:08:14]json_value_free done [10:08:14]process_json_proto returns [10:08:14]Send response to host [10:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188641,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:08:14]free response buf [10:08:14]execute_script done [10:08:14]execute_script returns [10:08:14]free content buf [10:08:14]Sock 9.Close socket [10:08:14]Sock 9.Thread stoped [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]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:21]accept exits with 10 [10:12:21]New connection [10:12:21]New thread 3066649956 created [10:12:21]Thread 3066506596 joined [10:12:21]Waiting for new connection... [10:12:21] Sock 10.Parse request [10:12:21]Sock 10.Check first char [10:12:21]Sock 10.First char is OK [10:12:21]request: POST /json_proto HTTP/1.0 [10:12:21]Method: POST [10:12:21]URL: /json_proto [10:12:21]Method is POST - this is cgi request [10:12:21]url: /json_proto [10:12:21]query_string will be loaded in cgi processing [10:12:21]execute_cgi json_proto POST (null) [10:12:21]execute_cgi path=json_proto method=POST [10:12:21]POST find Content-Length [10:12:21]Host: 172.17.42.131:8080 [10:12:21]Content-Length: 769 [10:12:21]Content-Type: application/json [10:12:21] [10:12:21]POST finish read [10:12:21]Found Content-Length = 769 [10:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:21]execute_script... [10:12:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:21]POST & json_proto [10:12:21]process_json_proto [10:12:21]json parsed OK: [10:12:21]protocol is kg_v1.0 [10:12:21]action value=close_receipt [10:12:21]process_action close_receipt [10:12:21]cmd_close_receipt [10:12:21]MH_GetDate [10:12:21]Write to MH i2c: F0 00 00 84 29 9C [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: F0 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: F0 09 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: F0 09 00 84 29 00 08 CC 18 67 A0 18 CA 66 E0 [10:12:21]GetLastDocTimeStamp 1729678093 [10:12:21]current date 1729678344 [10:12:21]FM_GetShiftState [10:12:21]SAM_PROTO_GetShiftState [10:12:21]wFMCommunicate request_size=4 [10:12:21]MH_SAM_APDU [10:12:21]CAPDU: 80 13 01 00 [10:12:21]Write to MH i2c: E2 08 00 85 29 80 13 01 00 00 00 00 00 2B [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 0E 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 0E 00 85 29 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 13 [10:12:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:12:21]wFMCommunicate OK [10:12:21]SAM_PROTO_GetShiftState done [10:12:21]FM_GetShiftState done [10:12:21]opened in 1729642525 [10:12:21]opened+sec_in_day 1729728925 [10:12:21]quantity*price = 300064 [10:12:21]sum+1 = 300066 [10:12:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 100 23.10.2024 10:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188642 ФПД: 174333539513015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101225&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188642&fm=174333539513015&tin=02508201610067®Number=0000000000100030&sum=300065 [10:12:22]StoreToDocumentArchive [10:12:22]shift 462 fd 188642 [10:12:22]save to /storage/0462/doc_00188642 [10:12:22]save last doc name /storage/0462/doc_00188642 to /storage/kkm_last_doc_name [10:12:22]save OK [10:12:22]Clear old archive folders... [10:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:22]tlvbuf is 0096F950 [10:12:22]SAM_PROTO_ClearQueue [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 09 00 00 [10:12:22]Write to MH i2c: E2 08 00 92 29 80 09 00 00 00 00 00 00 2D [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 92 29 00 90 00 2F [10:12:22]RAPDU: 90 00 [10:12:22]wFMCommunicate OK [10:12:22]SAM_PROTO_ClearQueue done [10:12:22]KKMCreateOFDPacket [10:12:22]OFDProtocolAddRootSTLVToBuf [10:12:22]FM_MakeSignedData [10:12:22]FM_MakeSignedData [10:12:22]SAM_PROTO_SignData [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 0D 01 02 [10:12:22]Write to MH i2c: E2 08 00 93 29 80 0D 01 02 00 00 00 00 35 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 93 29 00 90 00 30 [10:12:22]RAPDU: 90 00 [10:12:22]wFMCommunicate OK [10:12:22]wFMCommunicate request_size=255 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 09 CC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E0 02 00 35 04 06 00 9E [10:12:22]Write to MH i2c: E2 02 01 94 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 09 CC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E0 02 00 35 04 06 00 9E 00 00 46 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 94 29 00 90 00 31 [10:12:23]RAPDU: 90 00 [10:12:23]wFMCommunicate OK [10:12:23]wFMCommunicate request_size=10 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 0D 02 02 05 8E 30 B1 F2 B7 [10:12:23]Write to MH i2c: E2 0D 00 95 29 80 0D 02 02 05 00 8E 30 B1 F2 B7 00 00 5A [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 95 29 00 90 00 32 [10:12:23]RAPDU: 90 00 [10:12:23]wFMCommunicate OK [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 0D 03 02 [10:12:23]Write to MH i2c: E2 08 00 96 29 80 0D 03 02 00 00 00 00 3A [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 0B 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 0B 00 96 29 00 18 FD 95 38 1C 0A 10 F8 90 00 4B [10:12:23]RAPDU: 18 FD 95 38 1C 0A 10 F8 90 00 [10:12:23]wFMCommunicate OK [10:12:23]SAM_PROTO_SignData done [10:12:23]FM_MakeSignedData done [10:12:23]CreateOFDProtocolMessage [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 11 00 00 [10:12:23]Write to MH i2c: E2 08 00 97 29 80 11 00 00 00 00 00 00 3A [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 17 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 17 00 97 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [10:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:12:23]wFMCommunicate OK [10:12:23]CreateOFDProtocolMessage done [10:12:23]OFDSenderStorePacket 188642 [10:12:23]StoreOFDPacket docnum=188642 [10:12:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C 0F 07 01 59 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 09 CC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E0 02 00 35 04 06 00 9E 8E 30 B1 F2 B7 18 FD 95 38 1C 0A 10 F8 [10:12:23]CheckFolder [10:12:23]dirname=/storage/ofd_packets [10:12:23]CheckFolder done [10:12:23]ProducePacketName [10:12:23]name=ofd_packets/00188642 [10:12:23]NVStorageSaveData ofd_packets/00188642 [10:12:23]File name is /storage/ofd_packets/00188642 [10:12:23]Write 301 bytes [10:12:23]NVStorageSaveData done [10:12:23]OFDSenderStorePacket done [10:12:23]KKMCreateOFDPacket done [10:12:23]NVStorageSaveData kkm_last_timestamp [10:12:23]File name is /storage/kkm_last_timestamp [10:12:23]Write 4 bytes [10:12:23]NVStorageSaveData done [10:12:23]ExternCall_PrintAddStr [10:12:23]wPrintStart [10:12:23]Write to MH i2c: 01 00 00 98 29 C1 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 07 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 07 00 98 29 00 00 00 00 00 FF 0F D6 [10:12:23]RasterBufferAndPrint [10:12:23]line Счет N : (1)210702 [10:12:23]line ИНН: 02508201610067 [10:12:23]line Контрольно-Кассовый Чек [10:12:23]line ПРОДАЖА [10:12:23]line ТРК (МРК, ГНК) : 33 [10:12:23]line Товар: 2710124500 [10:12:23]line Аи-95-К-3 [10:12:23]line 40.440 * 74.20 [10:12:23]line = 3000.65 [10:12:23]line НДС 12% НСП 1% [10:12:23]line > о реализуемом товаре [10:12:23]line ИТОГО: 3000.65 [10:12:23]line НСП 1% : 26.55 [10:12:23]line НДС 12% : 318.65 [10:12:23]line Наличными: 0.00 [10:12:23]line Безнал.: 3000.65 [10:12:23]line Место: АЗС № 86 "Партнер Нефть" [10:12:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:12:23]line СНО: Общий режим [10:12:23]line Чек 100 23.10.2024 10:12 [10:12:23]line Смена: 462 ФФД: 1.0 [10:12:23]line ЗНМ: 0300000155 [10:12:23]line РНМ: 0000000000100030 [10:12:23]line Версия ККМ: 001 [10:12:23]line Платежная система: Mbank [10:12:23]OFD Sender: Processing packet 188642 [packets to send 1062, broken 1061] [10:12:23]line ФМ: 0000000000965340 [10:12:23]line ФД: 188642 [10:12:23]line ФПД: 174333539513015 [10:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101225&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188642&fm=174333539513015&tin=02508201610067®Number=0000000000100030&sum=300065 [10:12:23]ProducePacketName [10:12:23]name=ofd_packets/00188642 [10:12:23]OFD Sender: To server: pG, [10:12:23]CommunicateWithHost lk.salyk.kg:30040 [10:12:23]ConnectInit lk.salyk.kg [10:12:23]written 0, free lines is 4095 [10:12:23]Connected sock=9 [10:12:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C 0F 07 01 59 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 09 CC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E0 02 00 35 04 06 00 9E 8E 30 B1 F2 B7 18 FD 95 38 1C 0A 10 F8 [10:12:23]Write to MH i2c: 01 00 00 C1 29 EA [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 07 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 07 00 C1 29 00 00 00 00 00 8A 0C 87 [10:12:23]RasterBufferAndPrint [10:12:23]line [10:12:23]line [10:12:23]line [10:12:23]line [10:12:23]line [10:12:23]written 0, free lines is 3214 [10:12:23]MH_Cut [10:12:23]Write to MH i2c: D1 01 00 C8 29 01 C3 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: D1 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: D1 01 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: D1 01 00 C8 29 00 C2 [10:12:23]Write to MH i2c: 01 00 00 C9 29 F2 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 36 5E 47 00 56 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E0 02 00 F4 03 04 00 F3 75 18 67 B6 04 01 00 00 B9 FD 4D 42 A8 28 D0 E7 [10:12:23]CommunicateWithHost err = 0 [10:12:23]CheckOFDResponse [10:12:23]1017 (14) - 77093643461234 [10:12:23]1041 (16) - 0000000000965340 [10:12:23]1040 (4) - 188642 [10:12:23]1012 (4) - 23.10.2024 04:05 [10:12:23]1206 (1) - 0 [10:12:23]OFD Sender: Remove packet 188642 [10:12:23]ProducePacketName [10:12:23]name=ofd_packets/00188642 [10:12:23]NVStorageDeleteData [10:12:24]OFD Sender: No OFD packet to send [10:12:24]*** Cut start [10:12:24]*** Partial cut [10:12:24]*** CUTSNS_PIN = 1 [10:12:25]*** CUTSNS_PIN = 0 [10:12:25]*** Brake cut motor [10:12:25]Read from MH i2c: 01 [10:12:25]MH_I2C_Read... [10:12:25]*** Stop cut motor [10:12:25]*** Cut end [10:12:25]Read from MH i2c: 01 07 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 C9 29 00 00 00 00 00 FF 0F 07 [10:12:25]process_action close_receipt done [10:12:25]requested_data is exist [10:12:25]produce_requested_data [10:12:25]requested_item fm.sn is exist - process it [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 11 00 00 [10:12:25]Write to MH i2c: E2 08 00 CA 29 80 11 00 00 00 00 00 00 6D [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 17 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 17 00 CA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [10:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:12:25]wFMCommunicate OK [10:12:25]requested_item fd.num is exist - process it [10:12:25]SAM_PROTO_GetFieldsCounters [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 13 00 00 [10:12:25]Write to MH i2c: E2 08 00 CB 29 80 13 00 00 00 00 00 00 70 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 62 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 62 00 CB 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [10:12:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:25]wFMCommunicate OK [10:12:25]SAM_PROTO_GetFieldsCounters done [10:12:25]requested_item shift.num is exist - process it [10:12:25]requested_item shift.opened is exist - process it [10:12:25]req_shift_opened [10:12:25]FM_GetShiftState [10:12:25]SAM_PROTO_GetShiftState [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 13 01 00 [10:12:25]Write to MH i2c: E2 08 00 CC 29 80 13 01 00 00 00 00 00 72 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0E 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0E 00 CC 29 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5A [10:12:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:12:25]wFMCommunicate OK [10:12:25]SAM_PROTO_GetShiftState done [10:12:25]FM_GetShiftState done [10:12:25]req_shift_opened done [10:12:25]requested_item shift.open_date is exist - process it [10:12:25]req_shift_open_date [10:12:25]req_shift_open_date done [10:12:25]produce_requested_data done [10:12:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188642,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:12:25]process_action_free close_receipt [10:12:25]json_value_free [10:12:25]json_value_free done [10:12:25]process_json_proto returns [10:12:25]Send response to host [10:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188642,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:12:25]free response buf [10:12:25]execute_script done [10:12:25]execute_script returns [10:12:25]free content buf [10:12:25]Sock 10.Close socket [10:12:25]Sock 10.Thread stoped [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]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]accept exits with 7 [10:14:59]New connection [10:14:59]New thread 3066506596 created [10:14:59]Thread 3066649956 joined [10:14:59]Waiting for new connection... [10:14:59] Sock 7.Parse request [10:14:59]Sock 7.Check first char [10:14:59]Sock 7.First char is OK [10:14:59]request: POST /json_proto HTTP/1.0 [10:14:59]Method: POST [10:14:59]URL: /json_proto [10:14:59]Method is POST - this is cgi request [10:14:59]url: /json_proto [10:14:59]query_string will be loaded in cgi processing [10:14:59]execute_cgi json_proto POST (null) [10:14:59]execute_cgi path=json_proto method=POST [10:14:59]POST find Content-Length [10:14:59]Host: 172.17.42.131:8080 [10:14:59]Content-Length: 682 [10:14:59]Content-Type: application/json [10:14:59] [10:14:59]POST finish read [10:14:59]Found Content-Length = 682 [10:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:59]execute_script... [10:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:59]POST & json_proto [10:14:59]process_json_proto [10:14:59]json parsed OK: [10:14:59]protocol is kg_v1.0 [10:14:59]action value=close_receipt [10:14:59]process_action close_receipt [10:14:59]cmd_close_receipt [10:14:59]MH_GetDate [10:14:59]Write to MH i2c: F0 00 00 CD 29 E5 [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: F0 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: F0 09 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: F0 09 00 CD 29 00 A6 CC 18 67 A0 18 CA 66 C7 [10:14:59]GetLastDocTimeStamp 1729678345 [10:14:59]current date 1729678502 [10:14:59]FM_GetShiftState [10:14:59]SAM_PROTO_GetShiftState [10:14:59]wFMCommunicate request_size=4 [10:14:59]MH_SAM_APDU [10:14:59]CAPDU: 80 13 01 00 [10:14:59]Write to MH i2c: E2 08 00 CE 29 80 13 01 00 00 00 00 00 74 [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:59]Read from MH i2c: E2 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 0E 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 0E 00 CE 29 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5C [10:14:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:14:59]wFMCommunicate OK [10:14:59]SAM_PROTO_GetShiftState done [10:14:59]FM_GetShiftState done [10:14:59]opened in 1729642525 [10:14:59]opened+sec_in_day 1729728925 [10:14:59]quantity*price = 100021 [10:14:59]sum+1 = 100023 [10:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 101 23.10.2024 10:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188643 ФПД: 72756059719080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101502&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188643&fm=72756059719080&tin=02508201610067®Number=0000000000100030&sum=100000 [10:15:00]StoreToDocumentArchive [10:15:00]shift 462 fd 188643 [10:15:00]save to /storage/0462/doc_00188643 [10:15:00]save last doc name /storage/0462/doc_00188643 to /storage/kkm_last_doc_name [10:15:00]save OK [10:15:00]Clear old archive folders... [10:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:00]tlvbuf is 009CBC20 [10:15:00]SAM_PROTO_ClearQueue [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 09 00 00 [10:15:00]Write to MH i2c: E2 08 00 DB 29 80 09 00 00 00 00 00 00 76 [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 DB 29 00 90 00 78 [10:15:00]RAPDU: 90 00 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_ClearQueue done [10:15:00]KKMCreateOFDPacket [10:15:00]OFDProtocolAddRootSTLVToBuf [10:15:00]FM_MakeSignedData [10:15:00]FM_MakeSignedData [10:15:00]SAM_PROTO_SignData [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 0D 01 02 [10:15:00]Write to MH i2c: E2 08 00 DC 29 80 0D 01 02 00 00 00 00 7E [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 DC 29 00 90 00 79 [10:15:00]RAPDU: 90 00 [10:15:00]wFMCommunicate OK [10:15:00]wFMCommunicate request_size=255 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A6 CC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E0 02 00 35 04 06 00 42 [10:15:00]Write to MH i2c: E2 02 01 DD 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A6 CC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E0 02 00 35 04 06 00 42 00 00 3A [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 DD 29 00 90 00 7A [10:15:00]RAPDU: 90 00 [10:15:00]wFMCommunicate OK [10:15:00]wFMCommunicate request_size=10 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 0D 02 02 05 2B D7 18 45 A8 [10:15:00]Write to MH i2c: E2 0D 00 DE 29 80 0D 02 02 05 00 2B D7 18 45 A8 00 00 92 [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 DE 29 00 90 00 7B [10:15:00]RAPDU: 90 00 [10:15:00]wFMCommunicate OK [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 0D 03 02 [10:15:00]Write to MH i2c: E2 08 00 DF 29 80 0D 03 02 00 00 00 00 83 [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 0B 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 0B 00 DF 29 00 CA 9D 30 00 9D B2 7A F8 90 00 DC [10:15:00]RAPDU: CA 9D 30 00 9D B2 7A F8 90 00 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_SignData done [10:15:00]FM_MakeSignedData done [10:15:00]CreateOFDProtocolMessage [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 11 00 00 [10:15:00]Write to MH i2c: E2 08 00 E0 29 80 11 00 00 00 00 00 00 83 [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 17 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 17 00 E0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [10:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:15:00]wFMCommunicate OK [10:15:00]CreateOFDProtocolMessage done [10:15:00]OFDSenderStorePacket 188643 [10:15:00]StoreOFDPacket docnum=188643 [10:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 82 BC 07 01 61 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A6 CC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E0 02 00 35 04 06 00 42 2B D7 18 45 A8 CA 9D 30 00 9D B2 7A F8 [10:15:00]CheckFolder [10:15:00]dirname=/storage/ofd_packets [10:15:00]CheckFolder done [10:15:00]ProducePacketName [10:15:00]name=ofd_packets/00188643 [10:15:00]NVStorageSaveData ofd_packets/00188643 [10:15:00]File name is /storage/ofd_packets/00188643 [10:15:00]Write 301 bytes [10:15:00]NVStorageSaveData done [10:15:00]OFDSenderStorePacket done [10:15:00]KKMCreateOFDPacket done [10:15:00]NVStorageSaveData kkm_last_timestamp [10:15:00]File name is /storage/kkm_last_timestamp [10:15:00]Write 4 bytes [10:15:00]NVStorageSaveData done [10:15:00]ExternCall_PrintAddStr [10:15:00]wPrintStart [10:15:00]Write to MH i2c: 01 00 00 E1 29 0A [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: 01 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: 01 07 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: 01 07 00 E1 29 00 00 00 00 00 FF 0F 1F [10:15:00]RasterBufferAndPrint [10:15:00]line Счет N : (1)210703 [10:15:00]line ИНН: 02508201610067 [10:15:00]line Контрольно-Кассовый Чек [10:15:00]line ПРОДАЖА [10:15:00]line ТРК (МРК, ГНК) : 13 [10:15:00]line Товар: 2710124500 [10:15:00]line Аи-95-К-3 [10:15:00]line 13.480 * 74.20 [10:15:00]line = 1000.22 [10:15:00]line НДС 12% НСП 1% [10:15:00]line > о реализуемом товаре [10:15:00]line ОКРУГЛЕНИЕ: -0.22 [10:15:00]line ИТОГО: 1000.00 [10:15:00]line Внесено: 1000.00 [10:15:00]line СДАЧА: 0.00 [10:15:00]line НСП 1% : 8.85 [10:15:00]line НДС 12% : 106.22 [10:15:00]line Наличными: 1000.00 [10:15:00]line Безнал.: 0.00 [10:15:00]line Место: АЗС № 86 "Партнер Нефть" [10:15:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:15:00]line СНО: Общий режим [10:15:00]line Чек 101 23.10.2024 10:15 [10:15:00]line Смена: 462 ФФД: 1.0 [10:15:00]line ЗНМ: 0300000155 [10:15:00]line РНМ: 0000000000100030 [10:15:00]line Версия ККМ: 001 [10:15:00]line ФМ: 0000000000965340 [10:15:00]line ФД: 188643 [10:15:00]line ФПД: 72756059719080 [10:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101502&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188643&fm=72756059719080&tin=02508201610067®Number=0000000000100030&sum=100000 [10:15:01]written 0, free lines is 4095 [10:15:01]OFD Sender: Processing packet 188643 [packets to send 1062, broken 1061] [10:15:01]ProducePacketName [10:15:01]name=ofd_packets/00188643 [10:15:01]OFD Sender: To server: pG, [10:15:01]CommunicateWithHost lk.salyk.kg:30040 [10:15:01]ConnectInit lk.salyk.kg [10:15:01]Connected sock=10 [10:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 82 BC 07 01 61 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A6 CC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E0 02 00 35 04 06 00 42 2B D7 18 45 A8 CA 9D 30 00 9D B2 7A F8 [10:15:01]Write to MH i2c: 01 00 00 0C 2A 36 [10:15:01]Write i2c OK [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: 01 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: 01 07 00 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: 01 07 00 0C 2A 00 00 00 00 00 56 0C 9F [10:15:01]RasterBufferAndPrint [10:15:01]line [10:15:01]line [10:15:01]line [10:15:01]line [10:15:01]line [10:15:01]written 0, free lines is 3161 [10:15:01]MH_Cut [10:15:01]Write to MH i2c: D1 01 00 13 2A 01 0F [10:15:01]Write i2c OK [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: D1 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: D1 01 00 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: D1 01 00 13 2A 00 0E [10:15:01]Write to MH i2c: 01 00 00 14 2A 3E [10:15:01]Write i2c OK [10:15:01]MH_I2C_Read... [10:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 45 47 00 9A CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E0 02 00 F4 03 04 00 91 76 18 67 B6 04 01 00 00 CE E4 BE B3 D6 16 B3 BF [10:15:01]CommunicateWithHost err = 0 [10:15:01]CheckOFDResponse [10:15:01]1017 (14) - 77093643461234 [10:15:01]1041 (16) - 0000000000965340 [10:15:01]1040 (4) - 188643 [10:15:01]1012 (4) - 23.10.2024 04:07 [10:15:01]1206 (1) - 0 [10:15:01]OFD Sender: Remove packet 188643 [10:15:01]ProducePacketName [10:15:01]name=ofd_packets/00188643 [10:15:01]NVStorageDeleteData [10:15:02]OFD Sender: No OFD packet to send [10:15:02]*** Cut start [10:15:02]*** Partial cut [10:15:02]*** CUTSNS_PIN = 1 [10:15:02]*** CUTSNS_PIN = 0 [10:15:03]*** Brake cut motor [10:15:03]Read from MH i2c: 01 [10:15:03]MH_I2C_Read... [10:15:03]*** Stop cut motor [10:15:03]*** Cut end [10:15:03]Read from MH i2c: 01 07 00 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: 01 07 00 14 2A 00 00 00 00 00 FF 0F 53 [10:15:03]process_action close_receipt done [10:15:03]requested_data is exist [10:15:03]produce_requested_data [10:15:03]requested_item fm.sn is exist - process it [10:15:03]wFMCommunicate request_size=4 [10:15:03]MH_SAM_APDU [10:15:03]CAPDU: 80 11 00 00 [10:15:03]Write to MH i2c: E2 08 00 15 2A 80 11 00 00 00 00 00 00 B9 [10:15:03]Write i2c OK [10:15:03]MH_I2C_Read... [10:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:03]Read from MH i2c: E2 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: E2 17 00 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: E2 17 00 15 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [10:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:15:03]wFMCommunicate OK [10:15:03]requested_item fd.num is exist - process it [10:15:03]SAM_PROTO_GetFieldsCounters [10:15:03]wFMCommunicate request_size=4 [10:15:03]MH_SAM_APDU [10:15:03]CAPDU: 80 13 00 00 [10:15:03]Write to MH i2c: E2 08 00 16 2A 80 13 00 00 00 00 00 00 BC [10:15:03]Write i2c OK [10:15:03]MH_I2C_Read... [10:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:03]Read from MH i2c: E2 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: E2 62 00 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: E2 62 00 16 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [10:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:03]wFMCommunicate OK [10:15:03]SAM_PROTO_GetFieldsCounters done [10:15:03]requested_item shift.num is exist - process it [10:15:03]requested_item shift.opened is exist - process it [10:15:03]req_shift_opened [10:15:03]FM_GetShiftState [10:15:03]SAM_PROTO_GetShiftState [10:15:03]wFMCommunicate request_size=4 [10:15:03]MH_SAM_APDU [10:15:03]CAPDU: 80 13 01 00 [10:15:03]Write to MH i2c: E2 08 00 17 2A 80 13 01 00 00 00 00 00 BE [10:15:03]Write i2c OK [10:15:03]MH_I2C_Read... [10:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:03]Read from MH i2c: E2 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: E2 0E 00 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: E2 0E 00 17 2A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A6 [10:15:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:15:03]wFMCommunicate OK [10:15:03]SAM_PROTO_GetShiftState done [10:15:03]FM_GetShiftState done [10:15:03]req_shift_opened done [10:15:03]requested_item shift.open_date is exist - process it [10:15:03]req_shift_open_date [10:15:03]req_shift_open_date done [10:15:03]produce_requested_data done [10:15:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188643,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:15:03]process_action_free close_receipt [10:15:03]json_value_free [10:15:03]json_value_free done [10:15:03]process_json_proto returns [10:15:03]Send response to host [10:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188643,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:15:03]free response buf [10:15:03]execute_script done [10:15:03]execute_script returns [10:15:03]free content buf [10:15:03]Sock 7.Close socket [10:15:03]Sock 7.Thread stoped [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:30]accept exits with 9 [10:19:30]New connection [10:19:30]New thread 3066649956 created [10:19:30]Thread 3066506596 joined [10:19:30]Waiting for new connection... [10:19:30] Sock 9.Parse request [10:19:30]Sock 9.Check first char [10:19:30]Sock 9.First char is OK [10:19:30]request: POST /json_proto HTTP/1.0 [10:19:30]Method: POST [10:19:30]URL: /json_proto [10:19:30]Method is POST - this is cgi request [10:19:30]url: /json_proto [10:19:30]query_string will be loaded in cgi processing [10:19:30]execute_cgi json_proto POST (null) [10:19:30]execute_cgi path=json_proto method=POST [10:19:30]POST find Content-Length [10:19:30]Host: 172.17.42.131:8080 [10:19:30]Content-Length: 688 [10:19:30]Content-Type: application/json [10:19:30] [10:19:30]POST finish read [10:19:30]Found Content-Length = 688 [10:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:30]execute_script... [10:19:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:30]POST & json_proto [10:19:30]process_json_proto [10:19:30]json parsed OK: [10:19:30]protocol is kg_v1.0 [10:19:30]action value=close_receipt [10:19:30]process_action close_receipt [10:19:30]cmd_close_receipt [10:19:30]MH_GetDate [10:19:30]Write to MH i2c: F0 00 00 18 2A 31 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 09 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 09 00 18 2A 00 B5 CD 18 67 A0 18 CA 66 23 [10:19:30]GetLastDocTimeStamp 1729678502 [10:19:30]current date 1729678773 [10:19:30]FM_GetShiftState [10:19:30]SAM_PROTO_GetShiftState [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 13 01 00 [10:19:30]Write to MH i2c: E2 08 00 19 2A 80 13 01 00 00 00 00 00 C0 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0E 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0E 00 19 2A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A8 [10:19:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:19:30]wFMCommunicate OK [10:19:30]SAM_PROTO_GetShiftState done [10:19:30]FM_GetShiftState done [10:19:30]opened in 1729642525 [10:19:30]opened+sec_in_day 1729728925 [10:19:30]quantity*price = 150076 [10:19:30]sum+1 = 150078 [10:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 102 23.10.2024 10:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188644 ФПД: 221139935711742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101933&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188644&fm=221139935711742&tin=02508201610067®Number=0000000000100030&sum=150000 [10:19:31]StoreToDocumentArchive [10:19:31]shift 462 fd 188644 [10:19:31]save to /storage/0462/doc_00188644 [10:19:31]save last doc name /storage/0462/doc_00188644 to /storage/kkm_last_doc_name [10:19:31]save OK [10:19:31]Clear old archive folders... [10:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:19:31]tlvbuf is 008D1C00 [10:19:31]SAM_PROTO_ClearQueue [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 09 00 00 [10:19:31]Write to MH i2c: E2 08 00 26 2A 80 09 00 00 00 00 00 00 C2 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 26 2A 00 90 00 C4 [10:19:31]RAPDU: 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_ClearQueue done [10:19:31]KKMCreateOFDPacket [10:19:31]OFDProtocolAddRootSTLVToBuf [10:19:31]FM_MakeSignedData [10:19:31]FM_MakeSignedData [10:19:31]SAM_PROTO_SignData [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 0D 01 02 [10:19:31]Write to MH i2c: E2 08 00 27 2A 80 0D 01 02 00 00 00 00 CA [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 27 2A 00 90 00 C5 [10:19:31]RAPDU: 90 00 [10:19:31]wFMCommunicate OK [10:19:31]wFMCommunicate request_size=255 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 B5 CD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E0 02 [10:19:31]Write to MH i2c: E2 02 01 28 2A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 B5 CD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E0 02 00 00 75 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 28 2A 00 90 00 C6 [10:19:31]RAPDU: 90 00 [10:19:31]wFMCommunicate OK [10:19:31]wFMCommunicate request_size=16 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C9 20 27 50 51 FE [10:19:31]Write to MH i2c: E2 13 00 29 2A 80 0D 02 02 0B 00 00 35 04 06 00 C9 20 27 50 51 FE 00 00 D1 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 29 2A 00 90 00 C7 [10:19:31]RAPDU: 90 00 [10:19:31]wFMCommunicate OK [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 0D 03 02 [10:19:31]Write to MH i2c: E2 08 00 2A 2A 80 0D 03 02 00 00 00 00 CF [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0B 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0B 00 2A 2A 00 3D 34 C7 D0 D3 3B DB 13 90 00 D4 [10:19:31]RAPDU: 3D 34 C7 D0 D3 3B DB 13 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_SignData done [10:19:31]FM_MakeSignedData done [10:19:31]CreateOFDProtocolMessage [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 11 00 00 [10:19:31]Write to MH i2c: E2 08 00 2B 2A 80 11 00 00 00 00 00 00 CF [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 17 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 17 00 2B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [10:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:19:31]wFMCommunicate OK [10:19:31]CreateOFDProtocolMessage done [10:19:31]OFDSenderStorePacket 188644 [10:19:31]StoreOFDPacket docnum=188644 [10:19:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9E 9D 0D 01 D1 7F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 B5 CD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E0 02 00 35 04 06 00 C9 20 27 50 51 FE 3D 34 C7 D0 D3 3B DB 13 [10:19:31]CheckFolder [10:19:31]dirname=/storage/ofd_packets [10:19:31]CheckFolder done [10:19:31]ProducePacketName [10:19:31]name=ofd_packets/00188644 [10:19:31]NVStorageSaveData ofd_packets/00188644 [10:19:31]File name is /storage/ofd_packets/00188644 [10:19:31]Write 307 bytes [10:19:31]NVStorageSaveData done [10:19:31]OFDSenderStorePacket done [10:19:31]KKMCreateOFDPacket done [10:19:31]NVStorageSaveData kkm_last_timestamp [10:19:31]File name is /storage/kkm_last_timestamp [10:19:31]Write 4 bytes [10:19:31]NVStorageSaveData done [10:19:31]ExternCall_PrintAddStr [10:19:31]wPrintStart [10:19:31]Write to MH i2c: 01 00 00 2C 2A 56 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 07 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 07 00 2C 2A 00 00 00 00 00 FF 0F 6B [10:19:31]RasterBufferAndPrint [10:19:31]line Счет N : (1)210704 [10:19:31]line ИНН: 02508201610067 [10:19:31]line Контрольно-Кассовый Чек [10:19:31]line ПРОДАЖА [10:19:31]line ТРК (МРК, ГНК) : 31 [10:19:31]line Товар: 2710194210 [10:19:31]line D-ENERGY ДТ-К-5 [10:19:31]line 19.440 * 77.20 [10:19:31]line = 1500.77 [10:19:31]line НДС 12% НСП 1% [10:19:31]line > о реализуемом товаре [10:19:31]line ОКРУГЛЕНИЕ: -0.77 [10:19:31]line ИТОГО: 1500.00 [10:19:31]line Внесено: 1500.00 [10:19:31]line СДАЧА: 0.00 [10:19:31]line НСП 1% : 13.28 [10:19:31]line НДС 12% : 159.37 [10:19:31]line Наличными: 1500.00 [10:19:31]line Безнал.: 0.00 [10:19:31]line Место: АЗС № 86 "Партнер Нефть" [10:19:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:19:31]line СНО: Общий режим [10:19:31]line Чек 102 23.10.2024 10:19 [10:19:31]line Смена: 462 ФФД: 1.0 [10:19:31]line ЗНМ: 0300000155 [10:19:31]line РНМ: 0000000000100030 [10:19:31]line Версия ККМ: 001 [10:19:31]line ФМ: 0000000000965340 [10:19:31]line ФД: 188644 [10:19:31]line ФПД: 221139935711742 [10:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101933&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188644&fm=221139935711742&tin=02508201610067®Number=0000000000100030&sum=150000 [10:19:31]written 0, free lines is 4095 [10:19:31]OFD Sender: Processing packet 188644 [packets to send 1062, broken 1061] [10:19:31]ProducePacketName [10:19:31]name=ofd_packets/00188644 [10:19:31]OFD Sender: To server: pG, [10:19:31]CommunicateWithHost lk.salyk.kg:30040 [10:19:31]ConnectInit lk.salyk.kg [10:19:32]Connected sock=10 [10:19:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9E 9D 0D 01 D1 7F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 B5 CD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E0 02 00 35 04 06 00 C9 20 27 50 51 FE 3D 34 C7 D0 D3 3B DB 13 [10:19:32]Write to MH i2c: 01 00 00 57 2A 81 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 57 2A 00 00 00 00 00 56 0C EA [10:19:32]RasterBufferAndPrint [10:19:32]line [10:19:32]line [10:19:32]line [10:19:32]line [10:19:32]line [10:19:32]written 0, free lines is 3162 [10:19:32]MH_Cut [10:19:32]Write to MH i2c: D1 01 00 5E 2A 01 5A [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: D1 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: D1 01 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: D1 01 00 5E 2A 00 59 [10:19:32]Write to MH i2c: 01 00 00 5F 2A 89 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 48 B0 47 00 0E 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 36 35 33 34 30 10 04 04 00 E4 E0 02 00 F4 03 04 00 A0 77 18 67 B6 04 01 00 00 B9 9E 38 4A C9 2F 57 FC [10:19:32]CommunicateWithHost err = 0 [10:19:32]CheckOFDResponse [10:19:32]1017 (14) - 77093643461234 [10:19:32]1041 (16) - 0000000000965340 [10:19:32]1040 (4) - 188644 [10:19:32]1012 (4) - 23.10.2024 04:12 [10:19:32]1206 (1) - 0 [10:19:32]OFD Sender: Remove packet 188644 [10:19:32]ProducePacketName [10:19:32]name=ofd_packets/00188644 [10:19:32]NVStorageDeleteData [10:19:32]OFD Sender: No OFD packet to send [10:19:33]*** Cut start [10:19:33]*** Partial cut [10:19:33]*** CUTSNS_PIN = 1 [10:19:33]*** CUTSNS_PIN = 0 [10:19:33]*** Brake cut motor [10:19:34]Read from MH i2c: 01 [10:19:34]MH_I2C_Read... [10:19:34]*** Stop cut motor [10:19:34]*** Cut end [10:19:34]Read from MH i2c: 01 07 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: 01 07 00 5F 2A 00 00 00 00 00 FF 0F 9E [10:19:34]process_action close_receipt done [10:19:34]requested_data is exist [10:19:34]produce_requested_data [10:19:34]requested_item fm.sn is exist - process it [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 11 00 00 [10:19:34]Write to MH i2c: E2 08 00 60 2A 80 11 00 00 00 00 00 00 04 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 17 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 17 00 60 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [10:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:19:34]wFMCommunicate OK [10:19:34]requested_item fd.num is exist - process it [10:19:34]SAM_PROTO_GetFieldsCounters [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 13 00 00 [10:19:34]Write to MH i2c: E2 08 00 61 2A 80 13 00 00 00 00 00 00 07 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 62 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 62 00 61 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [10:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:34]wFMCommunicate OK [10:19:34]SAM_PROTO_GetFieldsCounters done [10:19:34]requested_item shift.num is exist - process it [10:19:34]requested_item shift.opened is exist - process it [10:19:34]req_shift_opened [10:19:34]FM_GetShiftState [10:19:34]SAM_PROTO_GetShiftState [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 13 01 00 [10:19:34]Write to MH i2c: E2 08 00 62 2A 80 13 01 00 00 00 00 00 09 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 0E 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 0E 00 62 2A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F1 [10:19:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [10:19:34]wFMCommunicate OK [10:19:34]SAM_PROTO_GetShiftState done [10:19:34]FM_GetShiftState done [10:19:34]req_shift_opened done [10:19:34]requested_item shift.open_date is exist - process it [10:19:34]req_shift_open_date [10:19:34]req_shift_open_date done [10:19:34]produce_requested_data done [10:19:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188644,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [10:19:34]process_action_free close_receipt [10:19:34]json_value_free [10:19:34]json_value_free done [10:19:34]process_json_proto returns [10:19:34]Send response to host [10:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188644,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [10:19:34]free response buf [10:19:34]execute_script done [10:19:34]execute_script returns [10:19:34]free content buf [10:19:34]Sock 9.Close socket [10:19:34]Sock 9.Thread stoped [10:19:37]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [11:08:02]ConnectInit Can't connect to host [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:35]accept exits with 6 [11:08:35]New connection [11:08:35]New thread 3067211108 created [11:08:35]Waiting for new connection... [11:08:35] Sock 6.Parse request [11:08:35]Sock 6.Check first char [11:08:35]Sock 6.First char is OK [11:08:35]request: POST /json_proto HTTP/1.0 [11:08:35]Method: POST [11:08:35]URL: /json_proto [11:08:35]Method is POST - this is cgi request [11:08:35]url: /json_proto [11:08:35]query_string will be loaded in cgi processing [11:08:35]execute_cgi json_proto POST (null) [11:08:35]execute_cgi path=json_proto method=POST [11:08:35]POST find Content-Length [11:08:35]Host: 172.17.42.131:8080 [11:08:35]Content-Length: 215 [11:08:35]Content-Type: application/json [11:08:35] [11:08:35]POST finish read [11:08:35]Found Content-Length = 215 [11:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:35]execute_script... [11:08:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:35]POST & json_proto [11:08:35]process_json_proto [11:08:35]json parsed OK: [11:08:35]protocol is kg_v1.0 [11:08:35]action value=get_value [11:08:35]process_action get_value [11:08:35]cmd_get_value [11:08:35]process_action get_value done [11:08:35]requested_data is exist [11:08:35]produce_requested_data [11:08:35]requested_item kkm.sn is exist - process it [11:08:35]requested_item kkm.ver is exist - process it [11:08:35]requested_item fm.sn is exist - process it [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 11 00 00 [11:08:35]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 17 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [11:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:08:35]wFMCommunicate OK [11:08:35]requested_item fd.num is exist - process it [11:08:35]SAM_PROTO_GetFieldsCounters [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 13 00 00 [11:08:35]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 62 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [11:08:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_GetFieldsCounters done [11:08:35]requested_item shift.num is exist - process it [11:08:35]requested_item shift.opened is exist - process it [11:08:35]req_shift_opened [11:08:35]FM_GetShiftState [11:08:35]SAM_PROTO_GetShiftState [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 13 01 00 [11:08:35]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 0E 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 77 [11:08:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:08:36]wFMCommunicate OK [11:08:36]SAM_PROTO_GetShiftState done [11:08:36]FM_GetShiftState done [11:08:36]req_shift_opened done [11:08:36]requested_item shift.open_date is exist - process it [11:08:36]req_shift_open_date [11:08:36]req_shift_open_date done [11:08:36]produce_requested_data done [11:08:36]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188644,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:08:36]process_action_free get_value [11:08:36]json_value_free [11:08:36]json_value_free done [11:08:36]process_json_proto returns [11:08:36]Send response to host [11:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188644,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:08:36]free response buf [11:08:36]execute_script done [11:08:36]execute_script returns [11:08:36]free content buf [11:08:36]Sock 6.Close socket [11:08:36]Sock 6.Thread stoped [11:08:36]accept exits with 10 [11:08:36]New connection [11:08:36]New thread 3067067748 created [11:08:36]Thread 3067211108 joined [11:08:36]Waiting for new connection... [11:08:36] Sock 10.Parse request [11:08:36]Sock 10.Check first char [11:08:36]Sock 10.First char is OK [11:08:36]request: POST /json_proto HTTP/1.0 [11:08:36]Method: POST [11:08:36]URL: /json_proto [11:08:36]Method is POST - this is cgi request [11:08:36]url: /json_proto [11:08:36]query_string will be loaded in cgi processing [11:08:36]execute_cgi json_proto POST (null) [11:08:36]execute_cgi path=json_proto method=POST [11:08:36]POST find Content-Length [11:08:36]Host: 172.17.42.131:8080 [11:08:36]Content-Length: 331 [11:08:36]Content-Type: application/json [11:08:36] [11:08:36]POST finish read [11:08:36]Found Content-Length = 331 [11:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:08:36]execute_script... [11:08:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:08:36]POST & json_proto [11:08:36]process_json_proto [11:08:36]json parsed OK: [11:08:36]protocol is kg_v1.0 [11:08:36]action value=get_value [11:08:36]process_action get_value [11:08:36]cmd_get_value [11:08:36]process_action get_value done [11:08:36]requested_data is exist [11:08:36]produce_requested_data [11:08:36]requested_item fm.sale.total is exist - process it [11:08:36]SAM_PROTO_GetFMData [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 13 03 00 [11:08:36]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 FD 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 48 DD 02 00 69 04 A4 00 6F 04 04 00 B9 DC 02 00 B1 04 05 00 89 5A 1A BE 06 70 04 05 00 04 C8 D6 A3 04 72 04 05 00 85 92 43 1A 02 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 95 75 56 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 95 FA 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 36 17 90 00 F3 [11:08:36]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 48 DD 02 00 69 04 A4 00 6F 04 04 00 B9 DC 02 00 B1 04 05 00 89 5A 1A BE 06 70 04 05 00 04 C8 D6 A3 04 72 04 05 00 85 92 43 1A 02 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 95 75 56 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 95 FA 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 36 17 90 00 [11:08:36]wFMCommunicate OK [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 17 00 00 [11:08:36]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 FD 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 FD 00 14 00 00 7B 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [11:08:36]RAPDU: 7B 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:08:36]wFMCommunicate OK [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 17 00 00 [11:08:36]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 FD 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [11:08:37]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:08:37]wFMCommunicate OK [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 17 00 00 [11:08:37]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 FD 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [11:08:37]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:08:37]wFMCommunicate OK [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 17 00 00 [11:08:37]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 E8 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 E8 00 17 00 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 75 [11:08:37]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:08:37]wFMCommunicate OK [11:08:37]SAM_PROTO_GetFMData done [11:08:37]requested_item fm.sale_refund.total is exist - process it [11:08:37]requested_item fm.buy.total is exist - process it [11:08:37]requested_item shift.sale.total is exist - process it [11:08:37]SAM_PROTO_GetShiftData [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 13 02 00 [11:08:37]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 FD 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 66 00 00 00 69 04 9C 00 6F 04 04 00 66 00 00 00 B1 04 03 00 3E C6 EA 70 04 03 00 C4 EE A6 72 04 03 00 7A D7 43 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D EF 18 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 EE 13 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 B3 [11:08:38]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 66 00 00 00 69 04 9C 00 6F 04 04 00 66 00 00 00 B1 04 03 00 3E C6 EA 70 04 03 00 C4 EE A6 72 04 03 00 7A D7 43 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9D EF 18 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 EE 13 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [11:08:38]wFMCommunicate OK [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 17 00 00 [11:08:38]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]OFD Sender: No OFD packet to send [11:08:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 FD 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [11:08:38]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [11:08:38]wFMCommunicate OK [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 17 00 00 [11:08:38]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 FD 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [11:08:38]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [11:08:38]wFMCommunicate OK [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 17 00 00 [11:08:38]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:39]Read from MH i2c: E2 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: E2 FD 00 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [11:08:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [11:08:39]wFMCommunicate OK [11:08:39]wFMCommunicate request_size=4 [11:08:39]MH_SAM_APDU [11:08:39]CAPDU: 80 17 00 00 [11:08:39]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:08:39]Write i2c OK [11:08:39]MH_I2C_Read... [11:08:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:08:39]Read from MH i2c: E2 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: E2 CC 00 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [11:08:39]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:08:39]wFMCommunicate OK [11:08:39]SAM_PROTO_GetShiftData done [11:08:39]requested_item shift.sale.total_cash is exist - process it [11:08:39]requested_item shift.sale_refund.total is exist - process it [11:08:39]requested_item shift.sale_refund.total_cash is exist - process it [11:08:39]requested_item shift.buy.total is exist - process it [11:08:39]requested_item shift.buy.total_cash is exist - process it [11:08:39]produce_requested_data done [11:08:39]produce_requested_data return {"fm.sale.total":289592019.29,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":153861.74,"shift.sale.total_cash":109401.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} [11:08:39]process_action_free get_value [11:08:39]json_value_free [11:08:39]json_value_free done [11:08:39]process_json_proto returns [11:08:39]Send response to host [11:08:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289592019.29,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":153861.74,"shift.sale.total_cash":109401.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}}} [11:08:39]free response buf [11:08:39]execute_script done [11:08:39]execute_script returns [11:08:39]free content buf [11:08:39]Sock 10.Close socket [11:08:39]Sock 10.Thread stoped [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]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:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:55]accept exits with 6 [11:11:55]New connection [11:11:55]New thread 3067211108 created [11:11:55]Thread 3067067748 joined [11:11:55]Waiting for new connection... [11:11:55] Sock 6.Parse request [11:11:55]Sock 6.Check first char [11:11:55]Sock 6.First char is OK [11:11:55]request: POST /json_proto HTTP/1.0 [11:11:55]Method: POST [11:11:55]URL: /json_proto [11:11:55]Method is POST - this is cgi request [11:11:55]url: /json_proto [11:11:55]query_string will be loaded in cgi processing [11:11:55]execute_cgi json_proto POST (null) [11:11:55]execute_cgi path=json_proto method=POST [11:11:55]POST find Content-Length [11:11:55]Host: 172.17.42.131:8080 [11:11:55]Content-Length: 677 [11:11:55]Content-Type: application/json [11:11:55] [11:11:55]POST finish read [11:11:55]Found Content-Length = 677 [11:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:55]execute_script... [11:11:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:55]POST & json_proto [11:11:55]process_json_proto [11:11:55]json parsed OK: [11:11:55]protocol is kg_v1.0 [11:11:55]action value=close_receipt [11:11:55]process_action close_receipt [11:11:55]cmd_close_receipt [11:11:55]MH_GetDate [11:11:55]Write to MH i2c: F0 00 00 1D 00 0C [11:11:55]Write i2c OK [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: F0 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: F0 09 00 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: F0 09 00 1D 00 00 FC D9 18 67 A0 18 CA 66 51 [11:11:55]GetLastDocTimeStamp 1729678773 [11:11:55]current date 1729681916 [11:11:55]FM_GetShiftState [11:11:55]SAM_PROTO_GetShiftState [11:11:55]wFMCommunicate request_size=4 [11:11:55]MH_SAM_APDU [11:11:55]CAPDU: 80 13 01 00 [11:11:55]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:11:55]Write i2c OK [11:11:55]MH_I2C_Read... [11:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:55]Read from MH i2c: E2 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: E2 0E 00 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 83 [11:11:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:11:55]wFMCommunicate OK [11:11:55]SAM_PROTO_GetShiftState done [11:11:55]FM_GetShiftState done [11:11:55]opened in 1729642525 [11:11:55]opened+sec_in_day 1729728925 [11:11:55]quantity*price = 37062 [11:11:55]sum+1 = 37064 [11:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 103 23.10.2024 11:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188645 ФПД: 58930200936001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188645&fm=58930200936001&tin=02508201610067®Number=0000000000100030&sum=37000 [11:11:56]StoreToDocumentArchive [11:11:56]shift 462 fd 188645 [11:11:56]save to /storage/0462/doc_00188645 [11:11:56]save last doc name /storage/0462/doc_00188645 to /storage/kkm_last_doc_name [11:11:56]save OK [11:11:56]Clear old archive folders... [11:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:56]tlvbuf is 02083A20 [11:11:56]SAM_PROTO_ClearQueue [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 09 00 00 [11:11:56]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:11:56]RAPDU: 90 00 [11:11:56]wFMCommunicate OK [11:11:56]SAM_PROTO_ClearQueue done [11:11:56]KKMCreateOFDPacket [11:11:56]OFDProtocolAddRootSTLVToBuf [11:11:56]FM_MakeSignedData [11:11:56]FM_MakeSignedData [11:11:56]SAM_PROTO_SignData [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 0D 01 02 [11:11:56]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:11:56]RAPDU: 90 00 [11:11:56]wFMCommunicate OK [11:11:56]wFMCommunicate request_size=255 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 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 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 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 67 00 00 00 F4 03 04 00 FC D9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E0 02 00 35 04 06 00 35 [11:11:56]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 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 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 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 67 00 00 00 F4 03 04 00 FC D9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E0 02 00 35 04 06 00 35 00 00 4D [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:11:56]RAPDU: 90 00 [11:11:56]wFMCommunicate OK [11:11:56]wFMCommunicate request_size=10 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 0D 02 02 05 98 C1 B1 7E 41 [11:11:56]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 98 C1 B1 7E 41 00 00 7B [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:11:56]RAPDU: 90 00 [11:11:56]wFMCommunicate OK [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 0D 03 02 [11:11:56]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 0B 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 0B 00 2F 00 00 1D E3 4B BE 50 DE E8 B3 90 00 7D [11:11:56]RAPDU: 1D E3 4B BE 50 DE E8 B3 90 00 [11:11:56]wFMCommunicate OK [11:11:56]SAM_PROTO_SignData done [11:11:56]FM_MakeSignedData done [11:11:56]CreateOFDProtocolMessage [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 11 00 00 [11:11:56]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 17 00 [11:11:56]MH_I2C_Read... [11:11:56]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 36 35 33 34 30 90 00 F8 [11:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:11:56]wFMCommunicate OK [11:11:56]CreateOFDProtocolMessage done [11:11:56]OFDSenderStorePacket 188645 [11:11:56]StoreOFDPacket docnum=188645 [11:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE 76 07 01 6C B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 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 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 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 67 00 00 00 F4 03 04 00 FC D9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E0 02 00 35 04 06 00 35 98 C1 B1 7E 41 1D E3 4B BE 50 DE E8 B3 [11:11:56]CheckFolder [11:11:56]dirname=/storage/ofd_packets [11:11:56]CheckFolder done [11:11:56]ProducePacketName [11:11:56]name=ofd_packets/00188645 [11:11:56]NVStorageSaveData ofd_packets/00188645 [11:11:56]File name is /storage/ofd_packets/00188645 [11:11:56]Write 301 bytes [11:11:56]NVStorageSaveData done [11:11:56]OFDSenderStorePacket done [11:11:56]KKMCreateOFDPacket done [11:11:56]NVStorageSaveData kkm_last_timestamp [11:11:56]File name is /storage/kkm_last_timestamp [11:11:56]Write 4 bytes [11:11:56]NVStorageSaveData done [11:11:56]ExternCall_PrintAddStr [11:11:56]wPrintStart [11:11:56]Write to MH i2c: 01 00 00 31 00 31 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: 01 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: 01 07 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:11:56]RasterBufferAndPrint [11:11:56]line Счет N : (1)210706 [11:11:56]line ИНН: 02508201610067 [11:11:56]line Контрольно-Кассовый Чек [11:11:56]line ПРОДАЖА [11:11:56]line ТРК (МРК, ГНК) : 12 [11:11:56]line Товар: 2710124130 [11:11:56]line Аи-92-К-3 [11:11:56]line 5.540 * 66.90 [11:11:56]line = 370.63 [11:11:56]line НДС 12% НСП 1% [11:11:56]line > о реализуемом товаре [11:11:56]line ОКРУГЛЕНИЕ: -0.63 [11:11:56]line ИТОГО: 370.00 [11:11:56]line Внесено: 370.00 [11:11:56]line СДАЧА: 0.00 [11:11:56]line НСП 1% : 3.28 [11:11:56]line НДС 12% : 39.36 [11:11:56]line Наличными: 370.00 [11:11:56]line Безнал.: 0.00 [11:11:56]line Место: АЗС № 86 "Партнер Нефть" [11:11:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:11:56]line СНО: Общий режим [11:11:56]line Чек 103 23.10.2024 11:11 [11:11:56]line Смена: 462 ФФД: 1.0 [11:11:56]line ЗНМ: 0300000155 [11:11:56]line РНМ: 0000000000100030 [11:11:56]line Версия ККМ: 001 [11:11:56]line ФМ: 0000000000965340 [11:11:56]line ФД: 188645 [11:11:56]line ФПД: 58930200936001 [11:11:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188645&fm=58930200936001&tin=02508201610067®Number=0000000000100030&sum=37000 [11:11:56]written 0, free lines is 4095 [11:11:56]OFD Sender: Processing packet 188645 [packets to send 1062, broken 1061] [11:11:56]ProducePacketName [11:11:56]name=ofd_packets/00188645 [11:11:56]OFD Sender: To server: pG, [11:11:56]CommunicateWithHost lk.salyk.kg:30040 [11:11:56]ConnectInit lk.salyk.kg [11:11:57]Connected sock=10 [11:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE 76 07 01 6C B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 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 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 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 67 00 00 00 F4 03 04 00 FC D9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E0 02 00 35 04 06 00 35 98 C1 B1 7E 41 1D E3 4B BE 50 DE E8 B3 [11:11:57]Write to MH i2c: 01 00 00 5C 00 5C [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: 01 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: 01 07 00 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 45 0C B4 [11:11:57]RasterBufferAndPrint [11:11:57]line [11:11:57]line [11:11:57]line [11:11:57]line [11:11:57]line [11:11:57]written 0, free lines is 3146 [11:11:57]MH_Cut [11:11:57]Write to MH i2c: D1 01 00 63 00 01 35 [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: D1 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: D1 01 00 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: D1 01 00 63 00 00 34 [11:11:57]Write to MH i2c: 01 00 00 64 00 64 [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 50 47 00 4C 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E0 02 00 F4 03 04 00 E6 83 18 67 B6 04 01 00 00 5C 81 81 BA 5F A6 43 2D [11:11:57]CommunicateWithHost err = 0 [11:11:57]CheckOFDResponse [11:11:57]1017 (14) - 77093643461234 [11:11:57]1041 (16) - 0000000000965340 [11:11:57]1040 (4) - 188645 [11:11:57]1012 (4) - 23.10.2024 05:04 [11:11:57]1206 (1) - 0 [11:11:57]OFD Sender: Remove packet 188645 [11:11:57]ProducePacketName [11:11:57]name=ofd_packets/00188645 [11:11:57]NVStorageDeleteData [11:11:57]OFD Sender: No OFD packet to send [11:11:58]*** Cut start [11:11:58]*** Partial cut [11:11:58]*** CUTSNS_PIN = 1 [11:11:58]*** CUTSNS_PIN = 0 [11:11:58]*** Brake cut motor [11:11:59]Read from MH i2c: 01 [11:11:59]MH_I2C_Read... [11:11:59]*** Stop cut motor [11:11:59]*** Cut end [11:11:59]Read from MH i2c: 01 07 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:11:59]process_action close_receipt done [11:11:59]requested_data is exist [11:11:59]produce_requested_data [11:11:59]requested_item fm.sn is exist - process it [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 11 00 00 [11:11:59]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 17 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [11:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:11:59]wFMCommunicate OK [11:11:59]requested_item fd.num is exist - process it [11:11:59]SAM_PROTO_GetFieldsCounters [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 13 00 00 [11:11:59]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 62 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [11:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_GetFieldsCounters done [11:11:59]requested_item shift.num is exist - process it [11:11:59]requested_item shift.opened is exist - process it [11:11:59]req_shift_opened [11:11:59]FM_GetShiftState [11:11:59]SAM_PROTO_GetShiftState [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 13 01 00 [11:11:59]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 0E 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CC [11:11:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_GetShiftState done [11:11:59]FM_GetShiftState done [11:11:59]req_shift_opened done [11:11:59]requested_item shift.open_date is exist - process it [11:11:59]req_shift_open_date [11:11:59]req_shift_open_date done [11:11:59]produce_requested_data done [11:11:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188645,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:11:59]process_action_free close_receipt [11:11:59]json_value_free [11:11:59]json_value_free done [11:11:59]process_json_proto returns [11:11:59]Send response to host [11:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188645,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:11:59]free response buf [11:11:59]execute_script done [11:11:59]execute_script returns [11:11:59]free content buf [11:11:59]Sock 6.Close socket [11:11:59]Sock 6.Thread stoped [11:11:59]accept exits with 9 [11:11:59]New connection [11:11:59]New thread 3067067748 created [11:11:59]Thread 3067211108 joined [11:11:59]Waiting for new connection... [11:11:59] Sock 9.Parse request [11:11:59]Sock 9.Check first char [11:11:59]Sock 9.First char is OK [11:11:59]request: POST /json_proto HTTP/1.0 [11:11:59]Method: POST [11:11:59]URL: /json_proto [11:11:59]Method is POST - this is cgi request [11:11:59]url: /json_proto [11:11:59]query_string will be loaded in cgi processing [11:11:59]execute_cgi json_proto POST (null) [11:11:59]execute_cgi path=json_proto method=POST [11:11:59]POST find Content-Length [11:11:59]Host: 172.17.42.131:8080 [11:11:59]Content-Length: 754 [11:11:59]Content-Type: application/json [11:11:59] [11:11:59]POST finish read [11:11:59]Found Content-Length = 754 [11:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:59]execute_script... [11:11:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:59]POST & json_proto [11:11:59]process_json_proto [11:11:59]json parsed OK: [11:11:59]protocol is kg_v1.0 [11:11:59]action value=close_receipt [11:11:59]process_action close_receipt [11:11:59]cmd_close_receipt [11:11:59]MH_GetDate [11:11:59]Write to MH i2c: F0 00 00 68 00 57 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: F0 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: F0 09 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: F0 09 00 68 00 00 00 DA 18 67 A0 18 CA 66 A1 [11:11:59]GetLastDocTimeStamp 1729681916 [11:11:59]current date 1729681920 [11:11:59]FM_GetShiftState [11:11:59]SAM_PROTO_GetShiftState [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 13 01 00 [11:11:59]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 0E 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CE [11:11:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_GetShiftState done [11:11:59]FM_GetShiftState done [11:11:59]opened in 1729642525 [11:11:59]opened+sec_in_day 1729728925 [11:11:59]quantity*price = 0 [11:11:59]sum+1 = 1 [11:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 104 23.10.2024 11:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30053393 ФМ: 0000000000965340 ФД: 188646 ФПД: 59081831955675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188646&fm=59081831955675&tin=02508201610067®Number=0000000000100030&sum=0 [11:12:01]StoreToDocumentArchive [11:12:01]shift 462 fd 188646 [11:12:01]save to /storage/0462/doc_00188646 [11:12:01]save last doc name /storage/0462/doc_00188646 to /storage/kkm_last_doc_name [11:12:01]save OK [11:12:01]Clear old archive folders... [11:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:01]tlvbuf is 02088200 [11:12:01]SAM_PROTO_ClearQueue [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 09 00 00 [11:12:01]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:12:01]RAPDU: 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_ClearQueue done [11:12:01]KKMCreateOFDPacket [11:12:01]OFDProtocolAddRootSTLVToBuf [11:12:01]FM_MakeSignedData [11:12:01]FM_MakeSignedData [11:12:01]SAM_PROTO_SignData [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 0D 01 02 [11:12:01]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:12:01]RAPDU: 90 00 [11:12:01]wFMCommunicate OK [11:12:01]wFMCommunicate request_size=255 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 00 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E0 02 00 35 04 06 00 35 [11:12:01]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 00 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E0 02 00 35 04 06 00 35 00 00 A2 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:12:01]RAPDU: 90 00 [11:12:01]wFMCommunicate OK [11:12:01]wFMCommunicate request_size=10 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 0D 02 02 05 BC 0F 9B 3C DB [11:12:01]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 BC 0F 9B 3C DB 00 00 7A [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:12:01]RAPDU: 90 00 [11:12:01]wFMCommunicate OK [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 0D 03 02 [11:12:01]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0B 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0B 00 7A 00 00 26 A7 27 DC 6F 66 CF 17 90 00 81 [11:12:01]RAPDU: 26 A7 27 DC 6F 66 CF 17 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_SignData done [11:12:01]FM_MakeSignedData done [11:12:01]CreateOFDProtocolMessage [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 11 00 00 [11:12:01]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 17 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [11:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:12:01]wFMCommunicate OK [11:12:01]CreateOFDProtocolMessage done [11:12:01]OFDSenderStorePacket 188646 [11:12:01]StoreOFDPacket docnum=188646 [11:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C0 0D 07 01 59 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 00 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E0 02 00 35 04 06 00 35 BC 0F 9B 3C DB 26 A7 27 DC 6F 66 CF 17 [11:12:01]CheckFolder [11:12:01]dirname=/storage/ofd_packets [11:12:01]CheckFolder done [11:12:01]ProducePacketName [11:12:01]name=ofd_packets/00188646 [11:12:01]NVStorageSaveData ofd_packets/00188646 [11:12:01]File name is /storage/ofd_packets/00188646 [11:12:01]Write 301 bytes [11:12:01]NVStorageSaveData done [11:12:01]OFDSenderStorePacket done [11:12:01]KKMCreateOFDPacket done [11:12:01]NVStorageSaveData kkm_last_timestamp [11:12:01]File name is /storage/kkm_last_timestamp [11:12:01]Write 4 bytes [11:12:01]NVStorageSaveData done [11:12:01]ExternCall_PrintAddStr [11:12:01]wPrintStart [11:12:01]Write to MH i2c: 01 00 00 7C 00 7C [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 07 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [11:12:01]RasterBufferAndPrint [11:12:01]line Счет N : (1)210705 [11:12:01]line ИНН: 02508201610067 [11:12:01]line Контрольно-Кассовый Чек [11:12:02]line ПРОДАЖА [11:12:02]line ТРК (МРК, ГНК) : 22 [11:12:02]line Товар: 2710124130 [11:12:02]line Аи-92-К-3 [11:12:02]line 10.000 * 0.00 [11:12:02]line = 0.00 [11:12:02]line НДС 12% НСП 1% [11:12:02]line > о реализуемом товаре [11:12:02]line ИТОГО: 0.00 [11:12:02]line НСП 1% : 0.00 [11:12:02]line НДС 12% : 0.00 [11:12:02]line Наличными: 0.00 [11:12:02]line Безнал.: 0.00 [11:12:02]line Место: АЗС № 86 "Партнер Нефть" [11:12:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:12:02]line СНО: Общий режим [11:12:02]line Чек 104 23.10.2024 11:12 [11:12:02]line Смена: 462 ФФД: 1.0 [11:12:02]line ЗНМ: 0300000155 [11:12:02]line РНМ: 0000000000100030 [11:12:02]line Версия ККМ: 001 [11:12:02]line Талоны: ТК ГПНА Online [11:12:02]line 30053393 [11:12:02]line ФМ: 0000000000965340 [11:12:02]line ФД: 188646 [11:12:02]line ФПД: 59081831955675 [11:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188646&fm=59081831955675&tin=02508201610067®Number=0000000000100030&sum=0 [11:12:02]OFD Sender: Processing packet 188646 [packets to send 1062, broken 1061] [11:12:02]ProducePacketName [11:12:02]name=ofd_packets/00188646 [11:12:02]OFD Sender: To server: pG, [11:12:02]CommunicateWithHost lk.salyk.kg:30040 [11:12:02]ConnectInit lk.salyk.kg [11:12:02]written 0, free lines is 4095 [11:12:02]Connected sock=8 [11:12:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C0 0D 07 01 59 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 00 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E0 02 00 35 04 06 00 35 BC 0F 9B 3C DB 26 A7 27 DC 6F 66 CF 17 [11:12:02]Write to MH i2c: 01 00 00 A6 00 A6 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 71 0C 2A [11:12:02]RasterBufferAndPrint [11:12:02]line [11:12:02]line [11:12:02]line [11:12:02]line [11:12:02]line [11:12:02]written 0, free lines is 3194 [11:12:02]MH_Cut [11:12:02]Write to MH i2c: D1 01 00 AD 00 01 7F [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: D1 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: D1 01 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: D1 01 00 AD 00 00 7E [11:12:02]Write to MH i2c: 01 00 00 AE 00 AE [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 F5 47 00 FC 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 36 35 33 34 30 10 04 04 00 E6 E0 02 00 F4 03 04 00 EC 83 18 67 B6 04 01 00 00 B1 68 5B 66 E5 D6 0A D1 [11:12:02]CommunicateWithHost err = 0 [11:12:02]CheckOFDResponse [11:12:02]1017 (14) - 77093643461234 [11:12:02]1041 (16) - 0000000000965340 [11:12:02]1040 (4) - 188646 [11:12:02]1012 (4) - 23.10.2024 05:04 [11:12:02]1206 (1) - 0 [11:12:02]OFD Sender: Remove packet 188646 [11:12:02]ProducePacketName [11:12:02]name=ofd_packets/00188646 [11:12:02]NVStorageDeleteData [11:12:03]OFD Sender: No OFD packet to send [11:12:04]*** Cut start [11:12:04]*** Partial cut [11:12:04]*** CUTSNS_PIN = 1 [11:12:04]*** CUTSNS_PIN = 0 [11:12:04]*** Brake cut motor [11:12:04]Read from MH i2c: 01 *** Stop cut motor [11:12:04] [11:12:04]*** Cut end [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: 01 07 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [11:12:04]process_action close_receipt done [11:12:04]requested_data is exist [11:12:04]produce_requested_data [11:12:04]requested_item fm.sn is exist - process it [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 11 00 00 [11:12:04]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 17 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [11:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:12:04]wFMCommunicate OK [11:12:04]requested_item fd.num is exist - process it [11:12:04]SAM_PROTO_GetFieldsCounters [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 13 00 00 [11:12:04]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 62 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [11:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_GetFieldsCounters done [11:12:04]requested_item shift.num is exist - process it [11:12:04]requested_item shift.opened is exist - process it [11:12:04]req_shift_opened [11:12:04]FM_GetShiftState [11:12:04]SAM_PROTO_GetShiftState [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 13 01 00 [11:12:04]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0E 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 16 [11:12:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_GetShiftState done [11:12:04]FM_GetShiftState done [11:12:04]req_shift_opened done [11:12:04]requested_item shift.open_date is exist - process it [11:12:04]req_shift_open_date [11:12:04]req_shift_open_date done [11:12:04]produce_requested_data done [11:12:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188646,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:12:04]process_action_free close_receipt [11:12:04]json_value_free [11:12:04]json_value_free done [11:12:04]process_json_proto returns [11:12:04]Send response to host [11:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188646,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:12:04]free response buf [11:12:04]execute_script done [11:12:04]execute_script returns [11:12:04]free content buf [11:12:04]Sock 9.Close socket [11:12:04]Sock 9.Thread stoped [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:40]accept exits with 10 [11:13:40]New connection [11:13:40]New thread 3067211108 created [11:13:40]Thread 3067067748 joined [11:13:40]Waiting for new connection... [11:13:40] Sock 10.Parse request [11:13:40]Sock 10.Check first char [11:13:40]Sock 10.First char is OK [11:13:40]request: POST /json_proto HTTP/1.0 [11:13:40]Method: POST [11:13:40]URL: /json_proto [11:13:40]Method is POST - this is cgi request [11:13:40]url: /json_proto [11:13:40]query_string will be loaded in cgi processing [11:13:40]execute_cgi json_proto POST (null) [11:13:40]execute_cgi path=json_proto method=POST [11:13:40]POST find Content-Length [11:13:40]Host: 172.17.42.131:8080 [11:13:40]Content-Length: 775 [11:13:40]Content-Type: application/json [11:13:40] [11:13:40]POST finish read [11:13:40]Found Content-Length = 775 [11:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:40]execute_script... [11:13:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:40]POST & json_proto [11:13:40]process_json_proto [11:13:40]json parsed OK: [11:13:40]protocol is kg_v1.0 [11:13:40]action value=close_receipt [11:13:40]process_action close_receipt [11:13:40]cmd_close_receipt [11:13:40]MH_GetDate [11:13:40]Write to MH i2c: F0 00 00 B2 00 A1 [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: F0 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: F0 09 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: F0 09 00 B2 00 00 65 DA 18 67 A0 18 CA 66 50 [11:13:40]GetLastDocTimeStamp 1729681920 [11:13:40]current date 1729682021 [11:13:40]FM_GetShiftState [11:13:40]SAM_PROTO_GetShiftState [11:13:40]wFMCommunicate request_size=4 [11:13:40]MH_SAM_APDU [11:13:40]CAPDU: 80 13 01 00 [11:13:40]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:40]Read from MH i2c: E2 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 0E 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 18 [11:13:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:13:40]wFMCommunicate OK [11:13:40]SAM_PROTO_GetShiftState done [11:13:40]FM_GetShiftState done [11:13:40]opened in 1729642525 [11:13:40]opened+sec_in_day 1729728925 [11:13:40]quantity*price = 100051 [11:13:40]sum+1 = 100052 [11:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 105 23.10.2024 11:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188647 ФПД: 18395668190690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188647&fm=18395668190690&tin=02508201610067®Number=0000000000100030&sum=100051 [11:13:42]StoreToDocumentArchive [11:13:42]shift 462 fd 188647 [11:13:42]save to /storage/0462/doc_00188647 [11:13:42]save last doc name /storage/0462/doc_00188647 to /storage/kkm_last_doc_name [11:13:42]save OK [11:13:42]Clear old archive folders... [11:13:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:13:42]tlvbuf is 020945A0 [11:13:42]SAM_PROTO_ClearQueue [11:13:42]wFMCommunicate request_size=4 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 09 00 00 [11:13:42]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [11:13:42]RAPDU: 90 00 [11:13:42]wFMCommunicate OK [11:13:42]SAM_PROTO_ClearQueue done [11:13:42]KKMCreateOFDPacket [11:13:42]OFDProtocolAddRootSTLVToBuf [11:13:42]FM_MakeSignedData [11:13:42]FM_MakeSignedData [11:13:42]SAM_PROTO_SignData [11:13:42]wFMCommunicate request_size=4 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 0D 01 02 [11:13:42]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:13:42]RAPDU: 90 00 [11:13:42]wFMCommunicate OK [11:13:42]wFMCommunicate request_size=255 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 65 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E0 02 [11:13:42]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 65 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E0 02 00 00 BC [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:13:42]RAPDU: 90 00 [11:13:42]wFMCommunicate OK [11:13:42]wFMCommunicate request_size=16 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 10 BB 13 44 95 E2 [11:13:42]Write to MH i2c: E2 13 00 C3 00 80 0D 02 02 0B 00 00 35 04 06 00 10 BB 13 44 95 E2 00 00 2B [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:13:42]RAPDU: 90 00 [11:13:42]wFMCommunicate OK [11:13:42]wFMCommunicate request_size=4 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 0D 03 02 [11:13:42]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 0B 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 0B 00 C4 00 00 F1 EB 4F 1A A4 89 DB 88 90 00 15 [11:13:42]RAPDU: F1 EB 4F 1A A4 89 DB 88 90 00 [11:13:42]wFMCommunicate OK [11:13:42]SAM_PROTO_SignData done [11:13:42]FM_MakeSignedData done [11:13:42]CreateOFDProtocolMessage [11:13:42]wFMCommunicate request_size=4 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 11 00 00 [11:13:42]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 17 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [11:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:13:42]wFMCommunicate OK [11:13:42]CreateOFDProtocolMessage done [11:13:42]OFDSenderStorePacket 188647 [11:13:42]StoreOFDPacket docnum=188647 [11:13:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8A 20 0D 01 EE 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 65 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E0 02 00 35 04 06 00 10 BB 13 44 95 E2 F1 EB 4F 1A A4 89 DB 88 [11:13:42]CheckFolder [11:13:42]dirname=/storage/ofd_packets [11:13:42]CheckFolder done [11:13:42]ProducePacketName [11:13:42]name=ofd_packets/00188647 [11:13:42]NVStorageSaveData ofd_packets/00188647 [11:13:42]File name is /storage/ofd_packets/00188647 [11:13:42]Write 307 bytes [11:13:42]NVStorageSaveData done [11:13:42]OFDSenderStorePacket done [11:13:42]KKMCreateOFDPacket done [11:13:42]NVStorageSaveData kkm_last_timestamp [11:13:42]File name is /storage/kkm_last_timestamp [11:13:42]Write 4 bytes [11:13:42]NVStorageSaveData done [11:13:42]ExternCall_PrintAddStr [11:13:42]wPrintStart [11:13:42]Write to MH i2c: 01 00 00 C6 00 C6 [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: 01 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: 01 07 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [11:13:42]RasterBufferAndPrint [11:13:42]line Счет N : (1)210707 [11:13:42]line ИНН: 02508201610067 [11:13:42]line Контрольно-Кассовый Чек [11:13:42]line ПРОДАЖА [11:13:42]line ТРК (МРК, ГНК) : 31 [11:13:42]line Товар: 2710194210 [11:13:42]line D-ENERGY ДТ-К-5 [11:13:42]line 12.960 * 77.20 [11:13:42]line = 1000.51 [11:13:42]line НДС 12% НСП 1% [11:13:42]line > о реализуемом товаре [11:13:42]line ИТОГО: 1000.51 [11:13:42]line НСП 1% : 8.85 [11:13:42]line НДС 12% : 106.25 [11:13:42]line Наличными: 0.00 [11:13:42]line Безнал.: 1000.51 [11:13:42]line Место: АЗС № 86 "Партнер Нефть" [11:13:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:13:42]line СНО: Общий режим [11:13:42]line Чек 105 23.10.2024 11:13 [11:13:42]line Смена: 462 ФФД: 1.0 [11:13:42]line ЗНМ: 0300000155 [11:13:42]line РНМ: 0000000000100030 [11:13:42]line Версия ККМ: 001 [11:13:42]line Платежная система: Mbank [11:13:42]line ФМ: 0000000000965340 [11:13:42]line ФД: 188647 [11:13:42]line ФПД: 18395668190690 [11:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188647&fm=18395668190690&tin=02508201610067®Number=0000000000100030&sum=100051 [11:13:42]written 0, free lines is 4095 [11:13:42]OFD Sender: Processing packet 188647 [packets to send 1062, broken 1061] [11:13:42]ProducePacketName [11:13:42]name=ofd_packets/00188647 [11:13:42]OFD Sender: To server: pG, [11:13:42]CommunicateWithHost lk.salyk.kg:30040 [11:13:42]ConnectInit lk.salyk.kg [11:13:42]Connected sock=11 [11:13:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8A 20 0D 01 EE 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 65 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E0 02 00 35 04 06 00 10 BB 13 44 95 E2 F1 EB 4F 1A A4 89 DB 88 [11:13:43]Write to MH i2c: 01 00 00 EF 00 EF [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 6E 0C 70 [11:13:43]RasterBufferAndPrint [11:13:43]line [11:13:43]line [11:13:43]line [11:13:43]line [11:13:43]line [11:13:43]written 0, free lines is 3186 [11:13:43]MH_Cut [11:13:43]Write to MH i2c: D1 01 00 F6 00 01 C8 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: D1 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: D1 01 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: D1 01 00 F6 00 00 C7 [11:13:43]Write to MH i2c: 01 00 00 F7 00 F7 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AE 28 47 00 E7 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E0 02 00 F4 03 04 00 50 84 18 67 B6 04 01 00 00 F9 2F 03 DD 93 35 F5 3B [11:13:43]CommunicateWithHost err = 0 [11:13:43]CheckOFDResponse [11:13:43]1017 (14) - 77093643461234 [11:13:43]1041 (16) - 0000000000965340 [11:13:43]1040 (4) - 188647 [11:13:43]1012 (4) - 23.10.2024 05:06 [11:13:43]1206 (1) - 0 [11:13:43]OFD Sender: Remove packet 188647 [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00188647 [11:13:43]NVStorageDeleteData [11:13:43]OFD Sender: No OFD packet to send [11:13:44]*** Cut start [11:13:44]*** Partial cut [11:13:44]*** CUTSNS_PIN = 1 [11:13:44]*** CUTSNS_PIN = 0 [11:13:44]*** Brake cut motor [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]*** Stop cut motor [11:13:45]*** Cut end [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [11:13:45]process_action close_receipt done [11:13:45]requested_data is exist [11:13:45]produce_requested_data [11:13:45]requested_item fm.sn is exist - process it [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 11 00 00 [11:13:45]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [11:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:13:45]wFMCommunicate OK [11:13:45]requested_item fd.num is exist - process it [11:13:45]SAM_PROTO_GetFieldsCounters [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 00 00 [11:13:45]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [11:13:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetFieldsCounters done [11:13:45]requested_item shift.num is exist - process it [11:13:45]requested_item shift.opened is exist - process it [11:13:45]req_shift_opened [11:13:45]FM_GetShiftState [11:13:45]SAM_PROTO_GetShiftState [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 01 00 [11:13:45]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5F [11:13:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetShiftState done [11:13:45]FM_GetShiftState done [11:13:45]req_shift_opened done [11:13:45]requested_item shift.open_date is exist - process it [11:13:45]req_shift_open_date [11:13:45]req_shift_open_date done [11:13:45]produce_requested_data done [11:13:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188647,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:13:45]process_action_free close_receipt [11:13:45]json_value_free [11:13:45]json_value_free done [11:13:45]process_json_proto returns [11:13:45]Send response to host [11:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188647,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:13:45]free response buf [11:13:45]execute_script done [11:13:45]execute_script returns [11:13:45]free content buf [11:13:45]Sock 10.Close socket [11:13:45]Sock 10.Thread stoped [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:40]accept exits with 8 [11:14:40]New connection [11:14:40]New thread 3067067748 created [11:14:40]Thread 3067211108 joined [11:14:40]Waiting for new connection... [11:14:40] Sock 8.Parse request [11:14:40]Sock 8.Check first char [11:14:40]Sock 8.First char is OK [11:14:40]request: POST /json_proto HTTP/1.0 [11:14:40]Method: POST [11:14:40]URL: /json_proto [11:14:40]Method is POST - this is cgi request [11:14:40]url: /json_proto [11:14:40]query_string will be loaded in cgi processing [11:14:40]execute_cgi json_proto POST (null) [11:14:40]execute_cgi path=json_proto method=POST [11:14:40]POST find Content-Length [11:14:40]Host: 172.17.42.131:8080 [11:14:40]Content-Length: 983 [11:14:40]Content-Type: application/json [11:14:40] [11:14:40]POST finish read [11:14:40]Found Content-Length = 983 [11:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:40]execute_script... [11:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:40]POST & json_proto [11:14:40]process_json_proto [11:14:40]json parsed OK: [11:14:40]protocol is kg_v1.0 [11:14:40]action value=close_receipt [11:14:40]process_action close_receipt [11:14:40]cmd_close_receipt [11:14:40]MH_GetDate [11:14:40]Write to MH i2c: F0 00 00 FB 00 EA [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 09 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 09 00 FB 00 00 A1 DA 18 67 A0 18 CA 66 D5 [11:14:40]GetLastDocTimeStamp 1729682021 [11:14:40]current date 1729682081 [11:14:40]FM_GetShiftState [11:14:40]SAM_PROTO_GetShiftState [11:14:40]wFMCommunicate request_size=4 [11:14:40]MH_SAM_APDU [11:14:40]CAPDU: 80 13 01 00 [11:14:40]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:40]Read from MH i2c: E2 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 0E 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 61 [11:14:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:14:40]wFMCommunicate OK [11:14:40]SAM_PROTO_GetShiftState done [11:14:40]FM_GetShiftState done [11:14:40]opened in 1729642525 [11:14:40]opened+sec_in_day 1729728925 [11:14:40]quantity*price = 200006 [11:14:40]sum+1 = 200008 [11:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 106 23.10.2024 11:14 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 188648 ФПД: 272774219129629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111441&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188648&fm=272774219129629&tin=02508201610067®Number=0000000000100030&sum=200000 [11:14:41]StoreToDocumentArchive [11:14:41]shift 462 fd 188648 [11:14:41]save to /storage/0462/doc_00188648 [11:14:41]save last doc name /storage/0462/doc_00188648 to /storage/kkm_last_doc_name [11:14:41]save OK [11:14:41]Clear old archive folders... [11:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:41]tlvbuf is 02094170 [11:14:41]SAM_PROTO_ClearQueue [11:14:41]wFMCommunicate request_size=4 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 09 00 00 [11:14:41]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:41]Read from MH i2c: E2 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [11:14:41]RAPDU: 90 00 [11:14:41]wFMCommunicate OK [11:14:41]SAM_PROTO_ClearQueue done [11:14:41]KKMCreateOFDPacket [11:14:41]OFDProtocolAddRootSTLVToBuf [11:14:41]FM_MakeSignedData [11:14:41]FM_MakeSignedData [11:14:41]SAM_PROTO_SignData [11:14:41]wFMCommunicate request_size=4 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 0D 01 02 [11:14:41]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:41]Read from MH i2c: E2 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [11:14:41]RAPDU: 90 00 [11:14:41]wFMCommunicate OK [11:14:41]wFMCommunicate request_size=255 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 A1 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E0 02 00 35 04 06 00 F8 [11:14:41]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 A1 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E0 02 00 35 04 06 00 F8 00 00 73 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:14:42]RAPDU: 90 00 [11:14:42]wFMCommunicate OK [11:14:42]wFMCommunicate request_size=10 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 0D 02 02 05 16 32 6F 63 1D [11:14:42]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 16 32 6F 63 1D 00 00 C8 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:14:42]RAPDU: 90 00 [11:14:42]wFMCommunicate OK [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 0D 03 02 [11:14:42]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 0B 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 0B 00 0D 01 00 CE 49 65 01 B9 A9 57 C1 90 00 81 [11:14:42]RAPDU: CE 49 65 01 B9 A9 57 C1 90 00 [11:14:42]wFMCommunicate OK [11:14:42]SAM_PROTO_SignData done [11:14:42]FM_MakeSignedData done [11:14:42]CreateOFDProtocolMessage [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 11 00 00 [11:14:42]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [11:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:14:42]wFMCommunicate OK [11:14:42]CreateOFDProtocolMessage done [11:14:42]OFDSenderStorePacket 188648 [11:14:42]StoreOFDPacket docnum=188648 [11:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E9 56 07 01 02 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 A1 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E0 02 00 35 04 06 00 F8 16 32 6F 63 1D CE 49 65 01 B9 A9 57 C1 [11:14:42]CheckFolder [11:14:42]dirname=/storage/ofd_packets [11:14:42]CheckFolder done [11:14:42]ProducePacketName [11:14:42]name=ofd_packets/00188648 [11:14:42]NVStorageSaveData ofd_packets/00188648 [11:14:42]File name is /storage/ofd_packets/00188648 [11:14:42]Write 301 bytes [11:14:42]NVStorageSaveData done [11:14:42]OFDSenderStorePacket done [11:14:42]KKMCreateOFDPacket done [11:14:42]NVStorageSaveData kkm_last_timestamp [11:14:42]File name is /storage/kkm_last_timestamp [11:14:42]Write 4 bytes [11:14:42]NVStorageSaveData done [11:14:42]ExternCall_PrintAddStr [11:14:42]wPrintStart [11:14:42]Write to MH i2c: 01 00 00 0F 01 10 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [11:14:42]RasterBufferAndPrint [11:14:42]line Счет N : (1)210708 [11:14:42]line ИНН: 02508201610067 [11:14:42]line Контрольно-Кассовый Чек [11:14:42]line ПРОДАЖА [11:14:42]line ТРК (МРК, ГНК) : 42 [11:14:42]line Товар: 2710124130 [11:14:42]line Аи-92-К-3 [11:14:42]line 30.350 * 65.90 [11:14:42]line = 2000.07 [11:14:42]line НДС 12% НСП 1% [11:14:42]line > о реализуемом товаре [11:14:42]line ОКРУГЛЕНИЕ: -0.07 [11:14:42]line ИТОГО: 2000.00 [11:14:42]line Внесено: 2000.00 [11:14:42]line СДАЧА: 0.00 [11:14:42]line НСП 1% : 17.70 [11:14:42]line НДС 12% : 212.40 [11:14:42]line Наличными: 2000.00 [11:14:42]line Безнал.: 0.00 [11:14:42]line Место: АЗС № 86 "Партнер Нефть" [11:14:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:14:42]line СНО: Общий режим [11:14:42]line Чек 106 23.10.2024 11:14 [11:14:42]line Смена: 462 ФФД: 1.0 [11:14:42]line ЗНМ: 0300000155 [11:14:42]line РНМ: 0000000000100030 [11:14:42]line Версия ККМ: 001 [11:14:42]line [11:14:42]line Дисконтная программа [11:14:42]line АИ-92 [11:14:42]line номер 86 [11:14:42]line сэкономлено 30.35 сом [11:14:42]line ФМ: 0000000000965340 [11:14:42]line ФД: 188648 [11:14:42]line ФПД: 272774219129629 [11:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111441&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188648&fm=272774219129629&tin=02508201610067®Number=0000000000100030&sum=200000 [11:14:42]OFD Sender: Processing packet 188648 [packets to send 1062, broken 1061] [11:14:42]ProducePacketName [11:14:42]name=ofd_packets/00188648 [11:14:42]OFD Sender: To server: pG, [11:14:42]CommunicateWithHost lk.salyk.kg:30040 [11:14:42]ConnectInit lk.salyk.kg [11:14:42]written 0, free lines is 4095 [11:14:42]Connected sock=10 [11:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E9 56 07 01 02 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 A1 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E0 02 00 35 04 06 00 F8 16 32 6F 63 1D CE 49 65 01 B9 A9 57 C1 [11:14:43]Write to MH i2c: 01 00 00 3F 01 40 [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 07 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 DA 0B 2C [11:14:43]RasterBufferAndPrint [11:14:43]line [11:14:43]line [11:14:43]line [11:14:43]line [11:14:43]line [11:14:43]written 0, free lines is 3035 [11:14:43]MH_Cut [11:14:43]Write to MH i2c: D1 01 00 46 01 01 19 [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: D1 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: D1 01 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: D1 01 00 46 01 00 18 [11:14:43]Write to MH i2c: 01 00 00 47 01 48 [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5B 0F 47 00 9B 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E0 02 00 F4 03 04 00 8C 84 18 67 B6 04 01 00 00 DB 0C FB DA 78 FD 9D 68 [11:14:43]CommunicateWithHost err = 0 [11:14:43]CheckOFDResponse [11:14:43]1017 (14) - 77093643461234 [11:14:43]1041 (16) - 0000000000965340 [11:14:43]1040 (4) - 188648 [11:14:43]1012 (4) - 23.10.2024 05:07 [11:14:43]1206 (1) - 0 [11:14:43]OFD Sender: Remove packet 188648 [11:14:43]ProducePacketName [11:14:43]name=ofd_packets/00188648 [11:14:43]NVStorageDeleteData [11:14:43]OFD Sender: No OFD packet to send [11:14:44]*** Cut start [11:14:44]*** Partial cut [11:14:44]*** CUTSNS_PIN = 1 [11:14:44]*** CUTSNS_PIN = 0 [11:14:44]*** Brake cut motor [11:14:45]Read from MH i2c: 01 [11:14:45]MH_I2C_Read... [11:14:45]*** Stop cut motor [11:14:45]*** Cut end [11:14:45]Read from MH i2c: 01 07 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: 01 07 00 47 01 00 00 00 00 00 FF 0F 5D [11:14:45]process_action close_receipt done [11:14:45]requested_data is exist [11:14:45]produce_requested_data [11:14:45]requested_item fm.sn is exist - process it [11:14:45]wFMCommunicate request_size=4 [11:14:45]MH_SAM_APDU [11:14:45]CAPDU: 80 11 00 00 [11:14:45]Write to MH i2c: E2 08 00 48 01 80 11 00 00 00 00 00 00 C3 [11:14:45]Write i2c OK [11:14:45]MH_I2C_Read... [11:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:45]Read from MH i2c: E2 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 17 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 17 00 48 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [11:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:14:45]wFMCommunicate OK [11:14:45]requested_item fd.num is exist - process it [11:14:45]SAM_PROTO_GetFieldsCounters [11:14:45]wFMCommunicate request_size=4 [11:14:45]MH_SAM_APDU [11:14:45]CAPDU: 80 13 00 00 [11:14:45]Write to MH i2c: E2 08 00 49 01 80 13 00 00 00 00 00 00 C6 [11:14:45]Write i2c OK [11:14:45]MH_I2C_Read... [11:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:45]Read from MH i2c: E2 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 62 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 62 00 49 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [11:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:45]wFMCommunicate OK [11:14:45]SAM_PROTO_GetFieldsCounters done [11:14:45]requested_item shift.num is exist - process it [11:14:45]requested_item shift.opened is exist - process it [11:14:45]req_shift_opened [11:14:45]FM_GetShiftState [11:14:45]SAM_PROTO_GetShiftState [11:14:45]wFMCommunicate request_size=4 [11:14:45]MH_SAM_APDU [11:14:45]CAPDU: 80 13 01 00 [11:14:45]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [11:14:45]Write i2c OK [11:14:45]MH_I2C_Read... [11:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:45]Read from MH i2c: E2 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 0E 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B0 [11:14:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:14:45]wFMCommunicate OK [11:14:45]SAM_PROTO_GetShiftState done [11:14:45]FM_GetShiftState done [11:14:45]req_shift_opened done [11:14:45]requested_item shift.open_date is exist - process it [11:14:45]req_shift_open_date [11:14:45]req_shift_open_date done [11:14:45]produce_requested_data done [11:14:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188648,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:14:45]process_action_free close_receipt [11:14:45]json_value_free [11:14:45]json_value_free done [11:14:45]process_json_proto returns [11:14:45]Send response to host [11:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188648,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:14:45]free response buf [11:14:45]execute_script done [11:14:45]execute_script returns [11:14:45]free content buf [11:14:45]Sock 8.Close socket [11:14:45]Sock 8.Thread stoped [11:14:48]OFD Sender: No OFD packet to send [11:14:50]accept exits with 9 [11:14:50]New connection [11:14:50]New thread 3067211108 created [11:14:50]Thread 3067067748 joined [11:14:50]Waiting for new connection... [11:14:50] Sock 9.Parse request [11:14:50]Sock 9.Check first char [11:14:50]Sock 9.First char is OK [11:14:50]request: POST /json_proto HTTP/1.0 [11:14:50]Method: POST [11:14:50]URL: /json_proto [11:14:50]Method is POST - this is cgi request [11:14:50]url: /json_proto [11:14:50]query_string will be loaded in cgi processing [11:14:50]execute_cgi json_proto POST (null) [11:14:50]execute_cgi path=json_proto method=POST [11:14:50]POST find Content-Length [11:14:50]Host: 172.17.42.131:8080 [11:14:50]Content-Length: 678 [11:14:50]Content-Type: application/json [11:14:50] [11:14:50]POST finish read [11:14:50]Found Content-Length = 678 [11:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 12.650, "sum" : 846.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 846.00, "total" : 846.00, "payments": [ { "type": 0, "sum" : 846.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:50]execute_script... [11:14:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 12.650, "sum" : 846.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 846.00, "total" : 846.00, "payments": [ { "type": 0, "sum" : 846.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:50]POST & json_proto [11:14:50]process_json_proto [11:14:50]json parsed OK: [11:14:50]protocol is kg_v1.0 [11:14:50]action value=close_receipt [11:14:50]process_action close_receipt [11:14:50]cmd_close_receipt [11:14:50]MH_GetDate [11:14:50]Write to MH i2c: F0 00 00 4B 01 3B [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 09 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 09 00 4B 01 00 AB DA 18 67 A0 18 CA 66 30 [11:14:50]GetLastDocTimeStamp 1729682081 [11:14:50]current date 1729682091 [11:14:50]FM_GetShiftState [11:14:50]SAM_PROTO_GetShiftState [11:14:50]wFMCommunicate request_size=4 [11:14:50]MH_SAM_APDU [11:14:50]CAPDU: 80 13 01 00 [11:14:50]Write to MH i2c: E2 08 00 4C 01 80 13 01 00 00 00 00 00 CA [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:50]Read from MH i2c: E2 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 0E 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 0E 00 4C 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B2 [11:14:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:14:50]wFMCommunicate OK [11:14:50]SAM_PROTO_GetShiftState done [11:14:50]FM_GetShiftState done [11:14:50]opened in 1729642525 [11:14:50]opened+sec_in_day 1729728925 [11:14:50]quantity*price = 84628 [11:14:50]sum+1 = 84630 [11:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 846.00 Внесено: 846.00 СДАЧА: 0.00 НСП 1% : 7.49 НДС 12% : 89.87 Наличными: 846.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 107 23.10.2024 11:14 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188649 ФПД: 20129456726829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188649&fm=20129456726829&tin=02508201610067®Number=0000000000100030&sum=84600 [11:14:51]StoreToDocumentArchive [11:14:51]shift 462 fd 188649 [11:14:51]save to /storage/0462/doc_00188649 [11:14:51]save last doc name /storage/0462/doc_00188649 to /storage/kkm_last_doc_name [11:14:51]save OK [11:14:51]Clear old archive folders... [11:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:51]tlvbuf is 0206EDE0 [11:14:51]SAM_PROTO_ClearQueue [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 09 00 00 [11:14:51]Write to MH i2c: E2 08 00 59 01 80 09 00 00 00 00 00 00 CC [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [11:14:51]RAPDU: 90 00 [11:14:51]wFMCommunicate OK [11:14:51]SAM_PROTO_ClearQueue done [11:14:51]KKMCreateOFDPacket [11:14:51]OFDProtocolAddRootSTLVToBuf [11:14:51]FM_MakeSignedData [11:14:51]FM_MakeSignedData [11:14:51]SAM_PROTO_SignData [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 0D 01 02 [11:14:51]Write to MH i2c: E2 08 00 5A 01 80 0D 01 02 00 00 00 00 D4 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [11:14:51]RAPDU: 90 00 [11:14:51]wFMCommunicate OK [11:14:51]wFMCommunicate request_size=255 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 6A 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 4A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 23 00 00 00 00 07 04 06 00 78 4A 01 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 AB DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E0 02 00 35 04 06 00 12 [11:14:51]Write to MH i2c: E2 02 01 5B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 6A 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 4A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 23 00 00 00 00 07 04 06 00 78 4A 01 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 AB DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E0 02 00 35 04 06 00 12 00 00 47 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [11:14:52]RAPDU: 90 00 [11:14:52]wFMCommunicate OK [11:14:52]wFMCommunicate request_size=10 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 0D 02 02 05 4E C1 1E 23 2D [11:14:52]Write to MH i2c: E2 0D 00 5C 01 80 0D 02 02 05 00 4E C1 1E 23 2D 00 00 5E [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [11:14:52]RAPDU: 90 00 [11:14:52]wFMCommunicate OK [11:14:52]wFMCommunicate request_size=4 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 0D 03 02 [11:14:52]Write to MH i2c: E2 08 00 5D 01 80 0D 03 02 00 00 00 00 D9 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 0B 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 0B 00 5D 01 00 2E 73 4B 53 FF F8 2D 03 90 00 40 [11:14:52]RAPDU: 2E 73 4B 53 FF F8 2D 03 90 00 [11:14:52]wFMCommunicate OK [11:14:52]SAM_PROTO_SignData done [11:14:52]FM_MakeSignedData done [11:14:52]CreateOFDProtocolMessage [11:14:52]wFMCommunicate request_size=4 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 11 00 00 [11:14:52]Write to MH i2c: E2 08 00 5E 01 80 11 00 00 00 00 00 00 D9 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 17 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 17 00 5E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [11:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:14:52]wFMCommunicate OK [11:14:52]CreateOFDProtocolMessage done [11:14:52]OFDSenderStorePacket 188649 [11:14:52]StoreOFDPacket docnum=188649 [11:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CB 33 07 01 5D C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 6A 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 4A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 23 00 00 00 00 07 04 06 00 78 4A 01 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 AB DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E0 02 00 35 04 06 00 12 4E C1 1E 23 2D 2E 73 4B 53 FF F8 2D 03 [11:14:52]CheckFolder [11:14:52]dirname=/storage/ofd_packets [11:14:52]CheckFolder done [11:14:52]ProducePacketName [11:14:52]name=ofd_packets/00188649 [11:14:52]NVStorageSaveData ofd_packets/00188649 [11:14:52]File name is /storage/ofd_packets/00188649 [11:14:52]Write 301 bytes [11:14:52]NVStorageSaveData done [11:14:52]OFDSenderStorePacket done [11:14:52]KKMCreateOFDPacket done [11:14:52]NVStorageSaveData kkm_last_timestamp [11:14:52]File name is /storage/kkm_last_timestamp [11:14:52]Write 4 bytes [11:14:52]NVStorageSaveData done [11:14:52]ExternCall_PrintAddStr [11:14:52]wPrintStart [11:14:52]Write to MH i2c: 01 00 00 5F 01 60 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 5F 01 00 00 00 00 00 FF 0F 75 [11:14:52]RasterBufferAndPrint [11:14:52]line Счет N : (1)210710 [11:14:52]line ИНН: 02508201610067 [11:14:52]line Контрольно-Кассовый Чек [11:14:52]line ПРОДАЖА [11:14:52]line ТРК (МРК, ГНК) : 22 [11:14:52]line Товар: 2710124130 [11:14:52]line Аи-92-К-3 [11:14:52]line 12.650 * 66.90 [11:14:52]line = 846.29 [11:14:52]line НДС 12% НСП 1% [11:14:52]line > о реализуемом товаре [11:14:52]line ОКРУГЛЕНИЕ: -0.29 [11:14:52]line ИТОГО: 846.00 [11:14:52]line Внесено: 846.00 [11:14:52]line СДАЧА: 0.00 [11:14:52]line НСП 1% : 7.49 [11:14:52]line НДС 12% : 89.87 [11:14:52]line Наличными: 846.00 [11:14:52]line Безнал.: 0.00 [11:14:52]line Место: АЗС № 86 "Партнер Нефть" [11:14:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:14:52]line СНО: Общий режим [11:14:52]line Чек 107 23.10.2024 11:14 [11:14:52]line Смена: 462 ФФД: 1.0 [11:14:52]line ЗНМ: 0300000155 [11:14:52]line РНМ: 0000000000100030 [11:14:52]line Версия ККМ: 001 [11:14:52]line ФМ: 0000000000965340 [11:14:52]line ФД: 188649 [11:14:52]line ФПД: 20129456726829 [11:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188649&fm=20129456726829&tin=02508201610067®Number=0000000000100030&sum=84600 [11:14:52]written 0, free lines is 4095 [11:14:52]OFD Sender: Processing packet 188649 [packets to send 1062, broken 1061] [11:14:52]ProducePacketName [11:14:52]name=ofd_packets/00188649 [11:14:52]OFD Sender: To server: pG, [11:14:52]CommunicateWithHost lk.salyk.kg:30040 [11:14:52]ConnectInit lk.salyk.kg [11:14:52]Connected sock=10 [11:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CB 33 07 01 5D C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 6A 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 4A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 23 00 00 00 00 07 04 06 00 78 4A 01 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 AB DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E0 02 00 35 04 06 00 12 4E C1 1E 23 2D 2E 73 4B 53 FF F8 2D 03 [11:14:52]Write to MH i2c: 01 00 00 8A 01 8B [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 52 0C F0 [11:14:52]RasterBufferAndPrint [11:14:52]line [11:14:52]line [11:14:52]line [11:14:52]line [11:14:52]line [11:14:52]written 0, free lines is 3160 [11:14:52]MH_Cut [11:14:52]Write to MH i2c: D1 01 00 91 01 01 64 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: D1 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: D1 01 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: D1 01 00 91 01 00 63 [11:14:52]Write to MH i2c: 01 00 00 92 01 93 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 79 9C 47 00 05 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E0 02 00 F4 03 04 00 96 84 18 67 B6 04 01 00 00 76 40 C4 6D 00 51 98 88 [11:14:52]CommunicateWithHost err = 0 [11:14:52]CheckOFDResponse [11:14:52]1017 (14) - 77093643461234 [11:14:52]1041 (16) - 0000000000965340 [11:14:52]1040 (4) - 188649 [11:14:52]1012 (4) - 23.10.2024 05:07 [11:14:52]1206 (1) - 0 [11:14:52]OFD Sender: Remove packet 188649 [11:14:52]ProducePacketName [11:14:52]name=ofd_packets/00188649 [11:14:52]NVStorageDeleteData [11:14:53]OFD Sender: No OFD packet to send [11:14:54]*** Cut start [11:14:54]*** Partial cut [11:14:54]*** CUTSNS_PIN = 1 [11:14:54]*** CUTSNS_PIN = 0 [11:14:54]*** Brake cut motor [11:14:54]Read from MH i2c: 01 [11:14:54]MH_I2C_Read... [11:14:54]*** Stop cut motor [11:14:54]*** Cut end [11:14:54]Read from MH i2c: 01 07 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [11:14:54]process_action close_receipt done [11:14:54]requested_data is exist [11:14:54]produce_requested_data [11:14:54]requested_item fm.sn is exist - process it [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 11 00 00 [11:14:54]Write to MH i2c: E2 08 00 93 01 80 11 00 00 00 00 00 00 0E [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 17 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 17 00 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5C [11:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:14:54]wFMCommunicate OK [11:14:54]requested_item fd.num is exist - process it [11:14:54]SAM_PROTO_GetFieldsCounters [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 13 00 00 [11:14:54]Write to MH i2c: E2 08 00 94 01 80 13 00 00 00 00 00 00 11 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 62 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 62 00 94 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [11:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_GetFieldsCounters done [11:14:54]requested_item shift.num is exist - process it [11:14:54]requested_item shift.opened is exist - process it [11:14:54]req_shift_opened [11:14:54]FM_GetShiftState [11:14:54]SAM_PROTO_GetShiftState [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 13 01 00 [11:14:54]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FB [11:14:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_GetShiftState done [11:14:55]FM_GetShiftState done [11:14:55]req_shift_opened done [11:14:55]requested_item shift.open_date is exist - process it [11:14:55]req_shift_open_date [11:14:55]req_shift_open_date done [11:14:55]produce_requested_data done [11:14:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188649,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:14:55]process_action_free close_receipt [11:14:55]json_value_free [11:14:55]json_value_free done [11:14:55]process_json_proto returns [11:14:55]Send response to host [11:14:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188649,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:14:55]free response buf [11:14:55]execute_script done [11:14:55]execute_script returns [11:14:55]free content buf [11:14:55]Sock 9.Close socket [11:14:55]Sock 9.Thread stoped [11:14:58]OFD Sender: No OFD packet to send [11:15:02]accept exits with 8 [11:15:02]New connection [11:15:02]New thread 3067067748 created [11:15:02]Thread 3067211108 joined [11:15:02]Waiting for new connection... [11:15:02] Sock 8.Parse request [11:15:02]Sock 8.Check first char [11:15:02]Sock 8.First char is OK [11:15:02]request: POST /json_proto HTTP/1.0 [11:15:02]Method: POST [11:15:02]URL: /json_proto [11:15:02]Method is POST - this is cgi request [11:15:02]url: /json_proto [11:15:02]query_string will be loaded in cgi processing [11:15:02]execute_cgi json_proto POST (null) [11:15:02]execute_cgi path=json_proto method=POST [11:15:02]POST find Content-Length [11:15:02]Host: 172.17.42.131:8080 [11:15:02]Content-Length: 754 [11:15:02]Content-Type: application/json [11:15:02] [11:15:02]POST finish read [11:15:02]Found Content-Length = 754 [11:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30108916", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:02]execute_script... [11:15:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30108916", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:02]POST & json_proto [11:15:02]process_json_proto [11:15:02]json parsed OK: [11:15:02]protocol is kg_v1.0 [11:15:02]action value=close_receipt [11:15:02]process_action close_receipt [11:15:02]cmd_close_receipt [11:15:02]MH_GetDate [11:15:02]Write to MH i2c: F0 00 00 96 01 86 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: F0 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: F0 09 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: F0 09 00 96 01 00 B7 DA 18 67 A0 18 CA 66 87 [11:15:02]GetLastDocTimeStamp 1729682091 [11:15:02]current date 1729682103 [11:15:02]FM_GetShiftState [11:15:02]SAM_PROTO_GetShiftState [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 13 01 00 [11:15:02]Write to MH i2c: E2 08 00 97 01 80 13 01 00 00 00 00 00 15 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 0E 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 0E 00 97 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FD [11:15:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:15:02]wFMCommunicate OK [11:15:02]SAM_PROTO_GetShiftState done [11:15:02]FM_GetShiftState done [11:15:02]opened in 1729642525 [11:15:02]opened+sec_in_day 1729728925 [11:15:02]quantity*price = 0 [11:15:02]sum+1 = 1 [11:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 108 23.10.2024 11:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30108916 ФМ: 0000000000965340 ФД: 188650 ФПД: 111793256174845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188650&fm=111793256174845&tin=02508201610067®Number=0000000000100030&sum=0 [11:15:03]StoreToDocumentArchive [11:15:03]shift 462 fd 188650 [11:15:03]save to /storage/0462/doc_00188650 [11:15:03]save last doc name /storage/0462/doc_00188650 to /storage/kkm_last_doc_name [11:15:03]save OK [11:15:03]Clear old archive folders... [11:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:03]tlvbuf is 0206EDC0 [11:15:03]SAM_PROTO_ClearQueue [11:15:03]wFMCommunicate request_size=4 [11:15:03]MH_SAM_APDU [11:15:03]CAPDU: 80 09 00 00 [11:15:03]Write to MH i2c: E2 08 00 A4 01 80 09 00 00 00 00 00 00 17 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 03 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [11:15:04]RAPDU: 90 00 [11:15:04]wFMCommunicate OK [11:15:04]SAM_PROTO_ClearQueue done [11:15:04]KKMCreateOFDPacket [11:15:04]OFDProtocolAddRootSTLVToBuf [11:15:04]FM_MakeSignedData [11:15:04]FM_MakeSignedData [11:15:04]SAM_PROTO_SignData [11:15:04]wFMCommunicate request_size=4 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 0D 01 02 [11:15:04]Write to MH i2c: E2 08 00 A5 01 80 0D 01 02 00 00 00 00 1F [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 03 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [11:15:04]RAPDU: 90 00 [11:15:04]wFMCommunicate OK [11:15:04]wFMCommunicate request_size=255 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B7 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E0 02 00 35 04 06 00 65 [11:15:04]Write to MH i2c: E2 02 01 A6 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B7 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E0 02 00 35 04 06 00 65 00 00 2E [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 03 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [11:15:04]RAPDU: 90 00 [11:15:04]wFMCommunicate OK [11:15:04]wFMCommunicate request_size=10 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 0D 02 02 05 AC E5 52 94 FD [11:15:04]Write to MH i2c: E2 0D 00 A7 01 80 0D 02 02 05 00 AC E5 52 94 FD 00 00 A0 [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 03 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [11:15:04]RAPDU: 90 00 [11:15:04]wFMCommunicate OK [11:15:04]wFMCommunicate request_size=4 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 0D 03 02 [11:15:04]Write to MH i2c: E2 08 00 A8 01 80 0D 03 02 00 00 00 00 24 [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 0B 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 0B 00 A8 01 00 E5 A1 BC BB B3 B9 E2 53 90 00 C3 [11:15:04]RAPDU: E5 A1 BC BB B3 B9 E2 53 90 00 [11:15:04]wFMCommunicate OK [11:15:04]SAM_PROTO_SignData done [11:15:04]FM_MakeSignedData done [11:15:04]CreateOFDProtocolMessage [11:15:04]wFMCommunicate request_size=4 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 11 00 00 [11:15:04]Write to MH i2c: E2 08 00 A9 01 80 11 00 00 00 00 00 00 24 [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 17 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 17 00 A9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [11:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:15:04]wFMCommunicate OK [11:15:04]CreateOFDProtocolMessage done [11:15:04]OFDSenderStorePacket 188650 [11:15:04]StoreOFDPacket docnum=188650 [11:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 99 E9 07 01 F0 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B7 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E0 02 00 35 04 06 00 65 AC E5 52 94 FD E5 A1 BC BB B3 B9 E2 53 [11:15:04]CheckFolder [11:15:04]dirname=/storage/ofd_packets [11:15:04]CheckFolder done [11:15:04]ProducePacketName [11:15:04]name=ofd_packets/00188650 [11:15:04]NVStorageSaveData ofd_packets/00188650 [11:15:04]File name is /storage/ofd_packets/00188650 [11:15:04]Write 301 bytes [11:15:04]NVStorageSaveData done [11:15:04]OFDSenderStorePacket done [11:15:04]KKMCreateOFDPacket done [11:15:04]NVStorageSaveData kkm_last_timestamp [11:15:04]File name is /storage/kkm_last_timestamp [11:15:04]Write 4 bytes [11:15:04]NVStorageSaveData done [11:15:04]ExternCall_PrintAddStr [11:15:04]wPrintStart [11:15:04]Write to MH i2c: 01 00 00 AA 01 AB [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: 01 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: 01 07 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: 01 07 00 AA 01 00 00 00 00 00 FF 0F C0 [11:15:04]RasterBufferAndPrint [11:15:04]line Счет N : (1)210709 [11:15:04]line ИНН: 02508201610067 [11:15:04]line Контрольно-Кассовый Чек [11:15:04]line ПРОДАЖА [11:15:04]line ТРК (МРК, ГНК) : 12 [11:15:04]line Товар: 2710124130 [11:15:04]line Аи-92-К-3 [11:15:04]line 30.000 * 0.00 [11:15:04]line = 0.00 [11:15:04]line НДС 12% НСП 1% [11:15:04]line > о реализуемом товаре [11:15:04]line ИТОГО: 0.00 [11:15:04]line НСП 1% : 0.00 [11:15:04]line НДС 12% : 0.00 [11:15:04]line Наличными: 0.00 [11:15:04]line Безнал.: 0.00 [11:15:04]line Место: АЗС № 86 "Партнер Нефть" [11:15:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:15:04]line СНО: Общий режим [11:15:04]line Чек 108 23.10.2024 11:15 [11:15:04]line Смена: 462 ФФД: 1.0 [11:15:04]line ЗНМ: 0300000155 [11:15:04]line РНМ: 0000000000100030 [11:15:04]line Версия ККМ: 001 [11:15:04]line Талоны: ТК ГПНА Online [11:15:04]line 30108916 [11:15:04]line ФМ: 0000000000965340 [11:15:04]line ФД: 188650 [11:15:04]line ФПД: 111793256174845 [11:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188650&fm=111793256174845&tin=02508201610067®Number=0000000000100030&sum=0 [11:15:04]written 0, free lines is 4095 [11:15:04]OFD Sender: Processing packet 188650 [packets to send 1062, broken 1061] [11:15:04]ProducePacketName [11:15:04]name=ofd_packets/00188650 [11:15:04]OFD Sender: To server: pG, [11:15:04]CommunicateWithHost lk.salyk.kg:30040 [11:15:04]ConnectInit lk.salyk.kg [11:15:04]Connected sock=10 [11:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 99 E9 07 01 F0 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B7 DA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E0 02 00 35 04 06 00 65 AC E5 52 94 FD E5 A1 BC BB B3 B9 E2 53 [11:15:04]Write to MH i2c: 01 00 00 D4 01 D5 [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: 01 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: 01 07 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 6D 0C 55 [11:15:04]RasterBufferAndPrint [11:15:04]line [11:15:04]line [11:15:04]line [11:15:04]line [11:15:04]line [11:15:04]written 0, free lines is 3188 [11:15:04]MH_Cut [11:15:04]Write to MH i2c: D1 01 00 DB 01 01 AE [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: D1 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: D1 01 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: D1 01 00 DB 01 00 AD [11:15:04]Write to MH i2c: 01 00 00 DC 01 DD [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C B5 47 00 2C 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E0 02 00 F4 03 04 00 A2 84 18 67 B6 04 01 00 00 96 65 F6 FD 9D 6D 36 F3 [11:15:05]CommunicateWithHost err = 0 [11:15:05]CheckOFDResponse [11:15:05]1017 (14) - 77093643461234 [11:15:05]1041 (16) - 0000000000965340 [11:15:05]1040 (4) - 188650 [11:15:05]1012 (4) - 23.10.2024 05:07 [11:15:05]1206 (1) - 0 [11:15:05]OFD Sender: Remove packet 188650 [11:15:05]ProducePacketName [11:15:05]name=ofd_packets/00188650 [11:15:05]NVStorageDeleteData [11:15:05]OFD Sender: No OFD packet to send [11:15:06]*** Cut start [11:15:06]*** Partial cut [11:15:06]*** CUTSNS_PIN = 1 [11:15:06]*** CUTSNS_PIN = 0 [11:15:06]*** Brake cut motor [11:15:06]Read from MH i2c: 01 [11:15:06]MH_I2C_Read... [11:15:06]*** Stop cut motor [11:15:06]*** Cut end [11:15:06]Read from MH i2c: 01 07 00 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [11:15:06]process_action close_receipt done [11:15:06]requested_data is exist [11:15:06]produce_requested_data [11:15:06]requested_item fm.sn is exist - process it [11:15:06]wFMCommunicate request_size=4 [11:15:06]MH_SAM_APDU [11:15:06]CAPDU: 80 11 00 00 [11:15:06]Write to MH i2c: E2 08 00 DD 01 80 11 00 00 00 00 00 00 58 [11:15:06]Write i2c OK [11:15:06]MH_I2C_Read... [11:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:06]Read from MH i2c: E2 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: E2 17 00 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: E2 17 00 DD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [11:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:15:06]wFMCommunicate OK [11:15:06]requested_item fd.num is exist - process it [11:15:06]SAM_PROTO_GetFieldsCounters [11:15:06]wFMCommunicate request_size=4 [11:15:06]MH_SAM_APDU [11:15:06]CAPDU: 80 13 00 00 [11:15:06]Write to MH i2c: E2 08 00 DE 01 80 13 00 00 00 00 00 00 5B [11:15:06]Write i2c OK [11:15:06]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 62 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 62 00 DE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:07]wFMCommunicate OK [11:15:07]SAM_PROTO_GetFieldsCounters done [11:15:07]requested_item shift.num is exist - process it [11:15:07]requested_item shift.opened is exist - process it [11:15:07]req_shift_opened [11:15:07]FM_GetShiftState [11:15:07]SAM_PROTO_GetShiftState [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 13 01 00 [11:15:07]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 0E 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 45 [11:15:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:15:07]wFMCommunicate OK [11:15:07]SAM_PROTO_GetShiftState done [11:15:07]FM_GetShiftState done [11:15:07]req_shift_opened done [11:15:07]requested_item shift.open_date is exist - process it [11:15:07]req_shift_open_date [11:15:07]req_shift_open_date done [11:15:07]produce_requested_data done [11:15:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188650,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:15:07]process_action_free close_receipt [11:15:07]json_value_free [11:15:07]json_value_free done [11:15:07]process_json_proto returns [11:15:07]Send response to host [11:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188650,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:15:07]free response buf [11:15:07]execute_script done [11:15:07]execute_script returns [11:15:07]free content buf [11:15:07]Sock 8.Close socket [11:15:07]Sock 8.Thread stoped [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:51]accept exits with 9 [11:16:51]New connection [11:16:51]New thread 3067211108 created [11:16:51]Thread 3067067748 joined [11:16:51]Waiting for new connection... [11:16:51] Sock 9.Parse request [11:16:51]Sock 9.Check first char [11:16:51]Sock 9.First char is OK [11:16:51]request: POST /json_proto HTTP/1.0 [11:16:51]Method: POST [11:16:51]URL: /json_proto [11:16:51]Method is POST - this is cgi request [11:16:51]url: /json_proto [11:16:51]query_string will be loaded in cgi processing [11:16:51]execute_cgi json_proto POST (null) [11:16:51]execute_cgi path=json_proto method=POST [11:16:51]POST find Content-Length [11:16:51]Host: 172.17.42.131:8080 [11:16:51]Content-Length: 688 [11:16:51]Content-Type: application/json [11:16:51] [11:16:51]POST finish read [11:16:51]Found Content-Length = 688 [11:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:51]execute_script... [11:16:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:51]POST & json_proto [11:16:51]process_json_proto [11:16:51]json parsed OK: [11:16:51]protocol is kg_v1.0 [11:16:51]action value=close_receipt [11:16:51]process_action close_receipt [11:16:51]cmd_close_receipt [11:16:51]MH_GetDate [11:16:51]Write to MH i2c: F0 00 00 E0 01 D0 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: F0 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: F0 09 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: F0 09 00 E0 01 00 24 DB 18 67 A0 18 CA 66 3F [11:16:51]GetLastDocTimeStamp 1729682103 [11:16:51]current date 1729682212 [11:16:51]FM_GetShiftState [11:16:51]SAM_PROTO_GetShiftState [11:16:51]wFMCommunicate request_size=4 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 13 01 00 [11:16:51]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0E 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 47 [11:16:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:16:51]wFMCommunicate OK [11:16:51]SAM_PROTO_GetShiftState done [11:16:51]FM_GetShiftState done [11:16:51]opened in 1729642525 [11:16:51]opened+sec_in_day 1729728925 [11:16:51]quantity*price = 140040 [11:16:51]sum+1 = 140042 [11:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 109 23.10.2024 11:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188651 ФПД: 37299697356797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111652&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188651&fm=37299697356797&tin=02508201610067®Number=0000000000100030&sum=140000 [11:16:52]StoreToDocumentArchive [11:16:52]shift 462 fd 188651 [11:16:52]save to /storage/0462/doc_00188651 [11:16:52]save last doc name /storage/0462/doc_00188651 to /storage/kkm_last_doc_name [11:16:52]save OK [11:16:52]Clear old archive folders... [11:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:16:52]tlvbuf is B6F978E0 [11:16:52]SAM_PROTO_ClearQueue [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 09 00 00 [11:16:52]Write to MH i2c: E2 08 00 EE 01 80 09 00 00 00 00 00 00 61 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]SAM_PROTO_ClearQueue done [11:16:52]KKMCreateOFDPacket [11:16:52]OFDProtocolAddRootSTLVToBuf [11:16:52]FM_MakeSignedData [11:16:52]FM_MakeSignedData [11:16:52]SAM_PROTO_SignData [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 01 02 [11:16:52]Write to MH i2c: E2 08 00 EF 01 80 0D 01 02 00 00 00 00 69 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]wFMCommunicate request_size=255 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 24 DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E0 02 [11:16:52]Write to MH i2c: E2 02 01 F0 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 24 DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E0 02 00 00 36 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]wFMCommunicate request_size=16 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 21 EC 83 36 0F FD [11:16:52]Write to MH i2c: E2 13 00 F1 01 80 0D 02 02 0B 00 00 35 04 06 00 21 EC 83 36 0F FD 00 00 93 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 03 02 [11:16:52]Write to MH i2c: E2 08 00 F2 01 80 0D 03 02 00 00 00 00 6E [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0B 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0B 00 F2 01 00 F7 A7 32 61 04 8D 36 3D 90 00 A4 [11:16:52]RAPDU: F7 A7 32 61 04 8D 36 3D 90 00 [11:16:52]wFMCommunicate OK [11:16:52]SAM_PROTO_SignData done [11:16:52]FM_MakeSignedData done [11:16:52]CreateOFDProtocolMessage [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 11 00 00 [11:16:52]Write to MH i2c: E2 08 00 F3 01 80 11 00 00 00 00 00 00 6E [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 17 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 17 00 F3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [11:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:16:52]wFMCommunicate OK [11:16:52]CreateOFDProtocolMessage done [11:16:52]OFDSenderStorePacket 188651 [11:16:52]StoreOFDPacket docnum=188651 [11:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EB E8 0D 01 90 FC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 24 DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E0 02 00 35 04 06 00 21 EC 83 36 0F FD F7 A7 32 61 04 8D 36 3D [11:16:52]CheckFolder [11:16:52]dirname=/storage/ofd_packets [11:16:52]CheckFolder done [11:16:52]ProducePacketName [11:16:52]name=ofd_packets/00188651 [11:16:52]NVStorageSaveData ofd_packets/00188651 [11:16:52]File name is /storage/ofd_packets/00188651 [11:16:52]Write 307 bytes [11:16:52]NVStorageSaveData done [11:16:52]OFDSenderStorePacket done [11:16:52]KKMCreateOFDPacket done [11:16:52]NVStorageSaveData kkm_last_timestamp [11:16:52]File name is /storage/kkm_last_timestamp [11:16:52]Write 4 bytes [11:16:52]NVStorageSaveData done [11:16:52]ExternCall_PrintAddStr [11:16:52]wPrintStart [11:16:52]Write to MH i2c: 01 00 00 F4 01 F5 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 07 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 07 00 F4 01 00 00 00 00 00 FF 0F 0A [11:16:52]RasterBufferAndPrint [11:16:52]line Счет N : (1)210712 [11:16:52]line ИНН: 02508201610067 [11:16:52]line Контрольно-Кассовый Чек [11:16:52]line ПРОДАЖА [11:16:52]line ТРК (МРК, ГНК) : 31 [11:16:52]line Товар: 2710194210 [11:16:52]line D-ENERGY ДТ-К-5 [11:16:52]line 18.140 * 77.20 [11:16:52]line = 1400.41 [11:16:52]line НДС 12% НСП 1% [11:16:52]line > о реализуемом товаре [11:16:52]line ОКРУГЛЕНИЕ: -0.41 [11:16:52]line ИТОГО: 1400.00 [11:16:52]line Внесено: 1400.00 [11:16:52]line СДАЧА: 0.00 [11:16:52]line НСП 1% : 12.39 [11:16:52]line НДС 12% : 148.72 [11:16:52]line Наличными: 1400.00 [11:16:52]line Безнал.: 0.00 [11:16:52]line Место: АЗС № 86 "Партнер Нефть" [11:16:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:16:52]line СНО: Общий режим [11:16:52]line Чек 109 23.10.2024 11:16 [11:16:52]line Смена: 462 ФФД: 1.0 [11:16:52]line ЗНМ: 0300000155 [11:16:52]line РНМ: 0000000000100030 [11:16:52]line Версия ККМ: 001 [11:16:52]line ФМ: 0000000000965340 [11:16:52]line ФД: 188651 [11:16:52]line ФПД: 37299697356797 [11:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111652&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188651&fm=37299697356797&tin=02508201610067®Number=0000000000100030&sum=140000 [11:16:53]OFD Sender: Processing packet 188651 [packets to send 1062, broken 1061] [11:16:53]ProducePacketName [11:16:53]name=ofd_packets/00188651 [11:16:53]OFD Sender: To server: pG, [11:16:53]CommunicateWithHost lk.salyk.kg:30040 [11:16:53]ConnectInit lk.salyk.kg [11:16:53]written 0, free lines is 4095 [11:16:53]Connected sock=10 [11:16:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EB E8 0D 01 90 FC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 24 DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E0 02 00 35 04 06 00 21 EC 83 36 0F FD F7 A7 32 61 04 8D 36 3D [11:16:53]Write to MH i2c: 01 00 00 1F 02 21 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 47 0C 7B [11:16:53]RasterBufferAndPrint [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]written 0, free lines is 3147 [11:16:53]MH_Cut [11:16:53]Write to MH i2c: D1 01 00 26 02 01 FA [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 01 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 01 00 26 02 00 F9 [11:16:53]Write to MH i2c: 01 00 00 27 02 29 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 85 47 00 CD 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E0 02 00 F4 03 04 00 0F 85 18 67 B6 04 01 00 00 33 45 26 1A 52 A0 9E E5 [11:16:53]CommunicateWithHost err = 0 [11:16:53]CheckOFDResponse [11:16:53]1017 (14) - 77093643461234 [11:16:53]1041 (16) - 0000000000965340 [11:16:53]1040 (4) - 188651 [11:16:53]1012 (4) - 23.10.2024 05:09 [11:16:53]1206 (1) - 0 [11:16:53]OFD Sender: Remove packet 188651 [11:16:53]ProducePacketName [11:16:53]name=ofd_packets/00188651 [11:16:53]NVStorageDeleteData [11:16:54]OFD Sender: No OFD packet to send [11:16:54]*** Cut start [11:16:54]*** Partial cut [11:16:54]*** CUTSNS_PIN = 1 [11:16:55]*** CUTSNS_PIN = 0 [11:16:55]*** Brake cut motor [11:16:55]Read from MH i2c: 01 [11:16:55]MH_I2C_Read... [11:16:55]*** Stop cut motor [11:16:55]Read from MH i2c: 01 07 00 [11:16:55]MH_I2C_Read... [11:16:55]*** Cut end [11:16:55]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [11:16:55]process_action close_receipt done [11:16:55]requested_data is exist [11:16:55]produce_requested_data [11:16:55]requested_item fm.sn is exist - process it [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 11 00 00 [11:16:55]Write to MH i2c: E2 08 00 28 02 80 11 00 00 00 00 00 00 A4 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 28 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [11:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:16:55]wFMCommunicate OK [11:16:55]requested_item fd.num is exist - process it [11:16:55]SAM_PROTO_GetFieldsCounters [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 13 00 00 [11:16:55]Write to MH i2c: E2 08 00 29 02 80 13 00 00 00 00 00 00 A7 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 62 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 62 00 29 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [11:16:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_GetFieldsCounters done [11:16:55]requested_item shift.num is exist - process it [11:16:55]requested_item shift.opened is exist - process it [11:16:55]req_shift_opened [11:16:55]FM_GetShiftState [11:16:55]SAM_PROTO_GetShiftState [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 13 01 00 [11:16:55]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0E 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 91 [11:16:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_GetShiftState done [11:16:55]FM_GetShiftState done [11:16:55]req_shift_opened done [11:16:55]requested_item shift.open_date is exist - process it [11:16:55]req_shift_open_date [11:16:55]req_shift_open_date done [11:16:55]produce_requested_data done [11:16:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188651,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:16:55]process_action_free close_receipt [11:16:55]json_value_free [11:16:55]json_value_free done [11:16:55]process_json_proto returns [11:16:55]Send response to host [11:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188651,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:16:55]free response buf [11:16:55]execute_script done [11:16:55]execute_script returns [11:16:55]free content buf [11:16:55]Sock 9.Close socket [11:16:55]Sock 9.Thread stoped [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:48]accept exits with 8 [11:17:48]New connection [11:17:48]New thread 3067067748 created [11:17:48]Thread 3067211108 joined [11:17:48]Waiting for new connection... [11:17:48] Sock 8.Parse request [11:17:48]Sock 8.Check first char [11:17:48]Sock 8.First char is OK [11:17:48]request: POST /json_proto HTTP/1.0 [11:17:48]Method: POST [11:17:48]URL: /json_proto [11:17:48]Method is POST - this is cgi request [11:17:48]url: /json_proto [11:17:48]query_string will be loaded in cgi processing [11:17:48]execute_cgi json_proto POST (null) [11:17:48]execute_cgi path=json_proto method=POST [11:17:48]POST find Content-Length [11:17:48]Host: 172.17.42.131:8080 [11:17:48]Content-Length: 678 [11:17:48]Content-Type: application/json [11:17:48] [11:17:48]POST finish read [11:17:48]Found Content-Length = 678 [11:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:48]execute_script... [11:17:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:48]POST & json_proto [11:17:48]process_json_proto [11:17:48]json parsed OK: [11:17:48]protocol is kg_v1.0 [11:17:48]action value=close_receipt [11:17:48]process_action close_receipt [11:17:48]cmd_close_receipt [11:17:48]MH_GetDate [11:17:48]Write to MH i2c: F0 00 00 2B 02 1C [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 09 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 09 00 2B 02 00 5D DB 18 67 A0 18 CA 66 C4 [11:17:48]GetLastDocTimeStamp 1729682212 [11:17:48]current date 1729682269 [11:17:48]FM_GetShiftState [11:17:48]SAM_PROTO_GetShiftState [11:17:48]wFMCommunicate request_size=4 [11:17:48]MH_SAM_APDU [11:17:48]CAPDU: 80 13 01 00 [11:17:48]Write to MH i2c: E2 08 00 2C 02 80 13 01 00 00 00 00 00 AB [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:48]Read from MH i2c: E2 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 2C 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 93 [11:17:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:17:48]wFMCommunicate OK [11:17:48]SAM_PROTO_GetShiftState done [11:17:48]FM_GetShiftState done [11:17:48]opened in 1729642525 [11:17:48]opened+sec_in_day 1729728925 [11:17:48]quantity*price = 70044 [11:17:48]sum+1 = 70045 [11:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 110 23.10.2024 11:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188652 ФПД: 118268636673807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111749&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188652&fm=118268636673807&tin=02508201610067®Number=0000000000100030&sum=70000 [11:17:49]StoreToDocumentArchive [11:17:49]shift 462 fd 188652 [11:17:49]save to /storage/0462/doc_00188652 [11:17:49]save last doc name /storage/0462/doc_00188652 to /storage/kkm_last_doc_name [11:17:49]save OK [11:17:49]Clear old archive folders... [11:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:49]tlvbuf is B6F94010 [11:17:49]SAM_PROTO_ClearQueue [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 09 00 00 [11:17:49]Write to MH i2c: E2 08 00 39 02 80 09 00 00 00 00 00 00 AD [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]OFD Sender: No OFD packet to send [11:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]SAM_PROTO_ClearQueue done [11:17:49]KKMCreateOFDPacket [11:17:49]OFDProtocolAddRootSTLVToBuf [11:17:49]FM_MakeSignedData [11:17:49]FM_MakeSignedData [11:17:49]SAM_PROTO_SignData [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 01 02 [11:17:49]Write to MH i2c: E2 08 00 3A 02 80 0D 01 02 00 00 00 00 B5 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]wFMCommunicate request_size=255 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5D DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E0 02 00 35 04 06 00 6B [11:17:49]Write to MH i2c: E2 02 01 3B 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5D DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E0 02 00 35 04 06 00 6B 00 00 65 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]wFMCommunicate request_size=10 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 02 02 05 90 90 13 B7 0F [11:17:49]Write to MH i2c: E2 0D 00 3C 02 80 0D 02 02 05 00 90 90 13 B7 0F 00 00 BB [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 03 02 [11:17:49]Write to MH i2c: E2 08 00 3D 02 80 0D 03 02 00 00 00 00 BA [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 0B 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 0B 00 3D 02 00 D7 02 F5 B2 4A 75 34 6C 90 00 9A [11:17:49]RAPDU: D7 02 F5 B2 4A 75 34 6C 90 00 [11:17:49]wFMCommunicate OK [11:17:49]SAM_PROTO_SignData done [11:17:49]FM_MakeSignedData done [11:17:49]CreateOFDProtocolMessage [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 11 00 00 [11:17:49]Write to MH i2c: E2 08 00 3E 02 80 11 00 00 00 00 00 00 BA [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 17 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 17 00 3E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [11:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:17:49]wFMCommunicate OK [11:17:49]CreateOFDProtocolMessage done [11:17:49]OFDSenderStorePacket 188652 [11:17:49]StoreOFDPacket docnum=188652 [11:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 CE 07 01 92 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5D DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E0 02 00 35 04 06 00 6B 90 90 13 B7 0F D7 02 F5 B2 4A 75 34 6C [11:17:49]CheckFolder [11:17:49]dirname=/storage/ofd_packets [11:17:49]CheckFolder done [11:17:49]ProducePacketName [11:17:49]name=ofd_packets/00188652 [11:17:49]NVStorageSaveData ofd_packets/00188652 [11:17:49]File name is /storage/ofd_packets/00188652 [11:17:49]Write 301 bytes [11:17:49]NVStorageSaveData done [11:17:49]OFDSenderStorePacket done [11:17:49]KKMCreateOFDPacket done [11:17:49]NVStorageSaveData kkm_last_timestamp [11:17:49]File name is /storage/kkm_last_timestamp [11:17:49]Write 4 bytes [11:17:49]NVStorageSaveData done [11:17:50]ExternCall_PrintAddStr [11:17:50]wPrintStart [11:17:50]Write to MH i2c: 01 00 00 3F 02 41 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 FF 0F 56 [11:17:50]RasterBufferAndPrint [11:17:50]line Счет N : (1)210711 [11:17:50]line ИНН: 02508201610067 [11:17:50]line Контрольно-Кассовый Чек [11:17:50]line ПРОДАЖА [11:17:50]line ТРК (МРК, ГНК) : 42 [11:17:50]line Товар: 2710124130 [11:17:50]line Аи-92-К-3 [11:17:50]line 10.470 * 66.90 [11:17:50]line = 700.44 [11:17:50]line НДС 12% НСП 1% [11:17:50]line > о реализуемом товаре [11:17:50]line ОКРУГЛЕНИЕ: -0.44 [11:17:50]line ИТОГО: 700.00 [11:17:50]line Внесено: 700.00 [11:17:50]line СДАЧА: 0.00 [11:17:50]line НСП 1% : 6.20 [11:17:50]line НДС 12% : 74.38 [11:17:50]line Наличными: 700.00 [11:17:50]line Безнал.: 0.00 [11:17:50]line Место: АЗС № 86 "Партнер Нефть" [11:17:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:17:50]line СНО: Общий режим [11:17:50]line Чек 110 23.10.2024 11:17 [11:17:50]line Смена: 462 ФФД: 1.0 [11:17:50]line ЗНМ: 0300000155 [11:17:50]line РНМ: 0000000000100030 [11:17:50]line Версия ККМ: 001 [11:17:50]line ФМ: 0000000000965340 [11:17:50]line ФД: 188652 [11:17:50]line ФПД: 118268636673807 [11:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111749&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188652&fm=118268636673807&tin=02508201610067®Number=0000000000100030&sum=70000 [11:17:50]written 0, free lines is 4095 [11:17:50]OFD Sender: Processing packet 188652 [packets to send 1062, broken 1061] [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00188652 [11:17:50]OFD Sender: To server: pG, [11:17:50]CommunicateWithHost lk.salyk.kg:30040 [11:17:50]ConnectInit lk.salyk.kg [11:17:50]Connected sock=10 [11:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 CE 07 01 92 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5D DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E0 02 00 35 04 06 00 6B 90 90 13 B7 0F D7 02 F5 B2 4A 75 34 6C [11:17:50]Write to MH i2c: 01 00 00 6A 02 6C [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 47 0C C6 [11:17:50]RasterBufferAndPrint [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]written 0, free lines is 3147 [11:17:50]MH_Cut [11:17:50]Write to MH i2c: D1 01 00 71 02 01 45 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 01 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 01 00 71 02 00 44 [11:17:50]Write to MH i2c: 01 00 00 72 02 74 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 71 67 47 00 02 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E0 02 00 F4 03 04 00 48 85 18 67 B6 04 01 00 00 49 94 10 F6 8E 78 13 F9 [11:17:50]CommunicateWithHost err = 0 [11:17:50]CheckOFDResponse [11:17:50]1017 (14) - 77093643461234 [11:17:50]1041 (16) - 0000000000965340 [11:17:50]1040 (4) - 188652 [11:17:50]1012 (4) - 23.10.2024 05:10 [11:17:50]1206 (1) - 0 [11:17:50]OFD Sender: Remove packet 188652 [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00188652 [11:17:50]NVStorageDeleteData [11:17:51]OFD Sender: No OFD packet to send [11:17:51]*** Cut start [11:17:51]*** Partial cut [11:17:51]*** CUTSNS_PIN = 1 [11:17:51]*** CUTSNS_PIN = 0 [11:17:52]*** Brake cut motor [11:17:52]Read from MH i2c: 01 [11:17:52]MH_I2C_Read... [11:17:52]*** Stop cut motor [11:17:52]*** Cut end [11:17:52]Read from MH i2c: 01 07 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [11:17:52]process_action close_receipt done [11:17:52]requested_data is exist [11:17:52]produce_requested_data [11:17:52]requested_item fm.sn is exist - process it [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 11 00 00 [11:17:52]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 17 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [11:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:17:52]wFMCommunicate OK [11:17:52]requested_item fd.num is exist - process it [11:17:52]SAM_PROTO_GetFieldsCounters [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 13 00 00 [11:17:52]Write to MH i2c: E2 08 00 74 02 80 13 00 00 00 00 00 00 F2 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 62 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 62 00 74 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:17:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:52]wFMCommunicate OK [11:17:52]SAM_PROTO_GetFieldsCounters done [11:17:52]requested_item shift.num is exist - process it [11:17:52]requested_item shift.opened is exist - process it [11:17:52]req_shift_opened [11:17:52]FM_GetShiftState [11:17:52]SAM_PROTO_GetShiftState [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 13 01 00 [11:17:52]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 0E 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DC [11:17:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:17:52]wFMCommunicate OK [11:17:52]SAM_PROTO_GetShiftState done [11:17:52]FM_GetShiftState done [11:17:52]req_shift_opened done [11:17:52]requested_item shift.open_date is exist - process it [11:17:52]req_shift_open_date [11:17:52]req_shift_open_date done [11:17:52]produce_requested_data done [11:17:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188652,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:17:52]process_action_free close_receipt [11:17:52]json_value_free [11:17:52]json_value_free done [11:17:52]process_json_proto returns [11:17:52]Send response to host [11:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188652,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:17:52]free response buf [11:17:52]execute_script done [11:17:52]execute_script returns [11:17:52]free content buf [11:17:52]Sock 8.Close socket [11:17:52]Sock 8.Thread stoped [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:08]accept exits with 9 [11:19:08]New connection [11:19:08]New thread 3067211108 created [11:19:08]Thread 3067067748 joined [11:19:08]Waiting for new connection... [11:19:08] Sock 9.Parse request [11:19:08]Sock 9.Check first char [11:19:08]Sock 9.First char is OK [11:19:08]request: POST /json_proto HTTP/1.0 [11:19:08]Method: POST [11:19:08]URL: /json_proto [11:19:08]Method is POST - this is cgi request [11:19:08]url: /json_proto [11:19:08]query_string will be loaded in cgi processing [11:19:08]execute_cgi json_proto POST (null) [11:19:08]execute_cgi path=json_proto method=POST [11:19:08]POST find Content-Length [11:19:08]Host: 172.17.42.131:8080 [11:19:08]Content-Length: 772 [11:19:08]Content-Type: application/json [11:19:08] [11:19:08]POST finish read [11:19:08]Found Content-Length = 772 [11:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:08]execute_script... [11:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:08]POST & json_proto [11:19:08]process_json_proto [11:19:08]json parsed OK: [11:19:08]protocol is kg_v1.0 [11:19:08]action value=close_receipt [11:19:08]process_action close_receipt [11:19:08]cmd_close_receipt [11:19:08]MH_GetDate [11:19:08]Write to MH i2c: F0 00 00 76 02 67 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 09 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 09 00 76 02 00 AD DB 18 67 A0 18 CA 66 5F [11:19:08]GetLastDocTimeStamp 1729682269 [11:19:08]current date 1729682349 [11:19:08]FM_GetShiftState [11:19:08]SAM_PROTO_GetShiftState [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 13 01 00 [11:19:08]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0E 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DE [11:19:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:19:08]wFMCommunicate OK [11:19:08]SAM_PROTO_GetShiftState done [11:19:08]FM_GetShiftState done [11:19:08]opened in 1729642525 [11:19:08]opened+sec_in_day 1729728925 [11:19:08]quantity*price = 50025 [11:19:08]sum+1 = 50027 [11:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 111 23.10.2024 11:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188653 ФПД: 62662328716783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111909&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188653&fm=62662328716783&tin=02508201610067®Number=0000000000100030&sum=50026 [11:19:09]StoreToDocumentArchive [11:19:09]shift 462 fd 188653 [11:19:09]save to /storage/0462/doc_00188653 [11:19:09]save last doc name /storage/0462/doc_00188653 to /storage/kkm_last_doc_name [11:19:09]save OK [11:19:09]Clear old archive folders... [11:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:19:09]tlvbuf is 020D4F90 [11:19:09]SAM_PROTO_ClearQueue [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 09 00 00 [11:19:09]Write to MH i2c: E2 08 00 84 02 80 09 00 00 00 00 00 00 F8 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]SAM_PROTO_ClearQueue done [11:19:09]KKMCreateOFDPacket [11:19:09]OFDProtocolAddRootSTLVToBuf [11:19:09]FM_MakeSignedData [11:19:09]FM_MakeSignedData [11:19:09]SAM_PROTO_SignData [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 0D 01 02 [11:19:09]Write to MH i2c: E2 08 00 85 02 80 0D 01 02 00 00 00 00 00 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]wFMCommunicate request_size=255 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AD DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E0 02 [11:19:09]Write to MH i2c: E2 02 01 86 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AD DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E0 02 00 00 55 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 03 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [11:19:10]RAPDU: 90 00 [11:19:10]wFMCommunicate OK [11:19:10]wFMCommunicate request_size=16 [11:19:10]MH_SAM_APDU [11:19:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 38 FD B5 D8 0D EF [11:19:10]Write to MH i2c: E2 13 00 87 02 80 0D 02 02 0B 00 00 35 04 06 00 38 FD B5 D8 0D EF 00 00 16 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 03 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [11:19:10]RAPDU: 90 00 [11:19:10]wFMCommunicate OK [11:19:10]wFMCommunicate request_size=4 [11:19:10]MH_SAM_APDU [11:19:10]CAPDU: 80 0D 03 02 [11:19:10]Write to MH i2c: E2 08 00 88 02 80 0D 03 02 00 00 00 00 05 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 0B 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 0B 00 88 02 00 2D 57 7E FD 72 E9 C5 B5 90 00 DA [11:19:10]RAPDU: 2D 57 7E FD 72 E9 C5 B5 90 00 [11:19:10]wFMCommunicate OK [11:19:10]SAM_PROTO_SignData done [11:19:10]FM_MakeSignedData done [11:19:10]CreateOFDProtocolMessage [11:19:10]wFMCommunicate request_size=4 [11:19:10]MH_SAM_APDU [11:19:10]CAPDU: 80 11 00 00 [11:19:10]Write to MH i2c: E2 08 00 89 02 80 11 00 00 00 00 00 00 05 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 17 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 17 00 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [11:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:19:10]wFMCommunicate OK [11:19:10]CreateOFDProtocolMessage done [11:19:10]OFDSenderStorePacket 188653 [11:19:10]StoreOFDPacket docnum=188653 [11:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 19 CE 0D 01 22 07 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AD DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E0 02 00 35 04 06 00 38 FD B5 D8 0D EF 2D 57 7E FD 72 E9 C5 B5 [11:19:10]CheckFolder [11:19:10]dirname=/storage/ofd_packets [11:19:10]CheckFolder done [11:19:10]ProducePacketName [11:19:10]name=ofd_packets/00188653 [11:19:10]NVStorageSaveData ofd_packets/00188653 [11:19:10]File name is /storage/ofd_packets/00188653 [11:19:10]Write 307 bytes [11:19:10]NVStorageSaveData done [11:19:10]OFDSenderStorePacket done [11:19:10]KKMCreateOFDPacket done [11:19:10]NVStorageSaveData kkm_last_timestamp [11:19:10]File name is /storage/kkm_last_timestamp [11:19:10]Write 4 bytes [11:19:10]NVStorageSaveData done [11:19:10]ExternCall_PrintAddStr [11:19:10]wPrintStart [11:19:10]Write to MH i2c: 01 00 00 8A 02 8C [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [11:19:10]RasterBufferAndPrint [11:19:10]line Счет N : (1)210714 [11:19:10]line ИНН: 02508201610067 [11:19:10]line Контрольно-Кассовый Чек [11:19:10]line ПРОДАЖА [11:19:10]line ТРК (МРК, ГНК) : 11 [11:19:10]line Товар: 2710194210 [11:19:10]line D-ENERGY ДТ-К-5 [11:19:10]line 6.480 * 77.20 [11:19:10]line = 500.26 [11:19:10]line НДС 12% НСП 1% [11:19:10]line > о реализуемом товаре [11:19:10]line ИТОГО: 500.26 [11:19:10]line НСП 1% : 4.43 [11:19:10]line НДС 12% : 53.12 [11:19:10]line Наличными: 0.00 [11:19:10]line Безнал.: 500.26 [11:19:10]line Место: АЗС № 86 "Партнер Нефть" [11:19:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:19:10]line СНО: Общий режим [11:19:10]line Чек 111 23.10.2024 11:19 [11:19:10]line Смена: 462 ФФД: 1.0 [11:19:10]line ЗНМ: 0300000155 [11:19:10]line РНМ: 0000000000100030 [11:19:10]line Версия ККМ: 001 [11:19:10]line Платежная система: Mbank [11:19:10]line ФМ: 0000000000965340 [11:19:10]line ФД: 188653 [11:19:10]line ФПД: 62662328716783 [11:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111909&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188653&fm=62662328716783&tin=02508201610067®Number=0000000000100030&sum=50026 [11:19:10]written 0, free lines is 4095 [11:19:10]OFD Sender: Processing packet 188653 [packets to send 1062, broken 1061] [11:19:10]ProducePacketName [11:19:10]name=ofd_packets/00188653 [11:19:10]OFD Sender: To server: pG, [11:19:10]CommunicateWithHost lk.salyk.kg:30040 [11:19:10]ConnectInit lk.salyk.kg [11:19:10]Connected sock=10 [11:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 19 CE 0D 01 22 07 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AD DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E0 02 00 35 04 06 00 38 FD B5 D8 0D EF 2D 57 7E FD 72 E9 C5 B5 [11:19:10]Write to MH i2c: 01 00 00 B3 02 B5 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 72 0C 3A [11:19:10]RasterBufferAndPrint [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]written 0, free lines is 3192 [11:19:10]MH_Cut [11:19:10]Write to MH i2c: D1 01 00 BA 02 01 8E [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 01 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 01 00 BA 02 00 8D [11:19:10]Write to MH i2c: 01 00 00 BB 02 BD [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 18 9B 47 00 60 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E0 02 00 F4 03 04 00 98 85 18 67 B6 04 01 00 00 2D 5E 57 06 2B F1 F4 90 [11:19:10]CommunicateWithHost err = 0 [11:19:10]CheckOFDResponse [11:19:10]1017 (14) - 77093643461234 [11:19:10]1041 (16) - 0000000000965340 [11:19:10]1040 (4) - 188653 [11:19:10]1012 (4) - 23.10.2024 05:11 [11:19:10]1206 (1) - 0 [11:19:10]OFD Sender: Remove packet 188653 [11:19:10]ProducePacketName [11:19:10]name=ofd_packets/00188653 [11:19:10]NVStorageDeleteData [11:19:11]OFD Sender: No OFD packet to send [11:19:12]*** Cut start [11:19:12]*** Partial cut [11:19:12]*** CUTSNS_PIN = 1 [11:19:12]*** CUTSNS_PIN = 0 [11:19:12]*** Brake cut motor [11:19:12]Read from MH i2c: 01 [11:19:12]MH_I2C_Read... [11:19:12]*** Stop cut motor [11:19:12]*** Cut end [11:19:12]Read from MH i2c: 01 07 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [11:19:12]process_action close_receipt done [11:19:12]requested_data is exist [11:19:12]produce_requested_data [11:19:12]requested_item fm.sn is exist - process it [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 11 00 00 [11:19:12]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 17 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [11:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:19:12]wFMCommunicate OK [11:19:12]requested_item fd.num is exist - process it [11:19:12]SAM_PROTO_GetFieldsCounters [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 13 00 00 [11:19:12]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 62 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [11:19:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_GetFieldsCounters done [11:19:13]requested_item shift.num is exist - process it [11:19:13]requested_item shift.opened is exist - process it [11:19:13]req_shift_opened [11:19:13]FM_GetShiftState [11:19:13]SAM_PROTO_GetShiftState [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 13 01 00 [11:19:13]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0E 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 25 [11:19:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_GetShiftState done [11:19:13]FM_GetShiftState done [11:19:13]req_shift_opened done [11:19:13]requested_item shift.open_date is exist - process it [11:19:13]req_shift_open_date [11:19:13]req_shift_open_date done [11:19:13]produce_requested_data done [11:19:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188653,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:19:13]process_action_free close_receipt [11:19:13]json_value_free [11:19:13]json_value_free done [11:19:13]process_json_proto returns [11:19:13]Send response to host [11:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188653,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:19:13]free response buf [11:19:13]execute_script done [11:19:13]execute_script returns [11:19:13]free content buf [11:19:13]Sock 9.Close socket [11:19:13]Sock 9.Thread stoped [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:30]accept exits with 8 [11:19:30]New connection [11:19:30]New thread 3067067748 created [11:19:30]Thread 3067211108 joined [11:19:30]Waiting for new connection... [11:19:30] Sock 8.Parse request [11:19:30]Sock 8.Check first char [11:19:30]Sock 8.First char is OK [11:19:30]request: POST /json_proto HTTP/1.0 [11:19:30]Method: POST [11:19:30]URL: /json_proto [11:19:30]Method is POST - this is cgi request [11:19:30]url: /json_proto [11:19:30]query_string will be loaded in cgi processing [11:19:30]execute_cgi json_proto POST (null) [11:19:30]execute_cgi path=json_proto method=POST [11:19:30]POST find Content-Length [11:19:30]Host: 172.17.42.131:8080 [11:19:30]Content-Length: 792 [11:19:30]Content-Type: application/json [11:19:30] [11:19:30]POST finish read [11:19:30]Found Content-Length = 792 [11:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A72671", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:30]execute_script... [11:19:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A72671", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:30]POST & json_proto [11:19:30]process_json_proto [11:19:30]json parsed OK: [11:19:30]protocol is kg_v1.0 [11:19:30]action value=close_receipt [11:19:30]process_action close_receipt [11:19:30]cmd_close_receipt [11:19:30]MH_GetDate [11:19:30]Write to MH i2c: F0 00 00 BF 02 B0 [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: F0 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: F0 09 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: F0 09 00 BF 02 00 C3 DB 18 67 A0 18 CA 66 BE [11:19:30]GetLastDocTimeStamp 1729682349 [11:19:30]current date 1729682371 [11:19:30]FM_GetShiftState [11:19:30]SAM_PROTO_GetShiftState [11:19:30]wFMCommunicate request_size=4 [11:19:30]MH_SAM_APDU [11:19:30]CAPDU: 80 13 01 00 [11:19:30]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:30]Read from MH i2c: E2 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 0E 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 27 [11:19:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:19:30]wFMCommunicate OK [11:19:30]SAM_PROTO_GetShiftState done [11:19:30]FM_GetShiftState done [11:19:30]opened in 1729642525 [11:19:30]opened+sec_in_day 1729728925 [11:19:30]quantity*price = 0 [11:19:30]sum+1 = 1 [11:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 112 23.10.2024 11:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 72671 ФМ: 0000000000965340 ФД: 188654 ФПД: 205427281490456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111931&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188654&fm=205427281490456&tin=02508201610067®Number=0000000000100030&sum=0 [11:19:31]StoreToDocumentArchive [11:19:31]shift 462 fd 188654 [11:19:31]save to /storage/0462/doc_00188654 [11:19:31]save last doc name /storage/0462/doc_00188654 to /storage/kkm_last_doc_name [11:19:31]save OK [11:19:31]Clear old archive folders... [11:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:31]tlvbuf is 020CF0D0 [11:19:31]SAM_PROTO_ClearQueue [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 09 00 00 [11:19:31]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 03 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [11:19:31]RAPDU: 90 00 [11:19:31]wFMCommunicate OK [11:19:31]SAM_PROTO_ClearQueue done [11:19:31]KKMCreateOFDPacket [11:19:31]OFDProtocolAddRootSTLVToBuf [11:19:31]FM_MakeSignedData [11:19:31]FM_MakeSignedData [11:19:31]SAM_PROTO_SignData [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 0D 01 02 [11:19:31]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 03 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [11:19:31]RAPDU: 90 00 [11:19:31]wFMCommunicate OK [11:19:31]wFMCommunicate request_size=255 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C3 DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E0 02 00 35 04 06 00 BA [11:19:31]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C3 DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E0 02 00 35 04 06 00 BA 00 00 30 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]OFD Sender: No OFD packet to send [11:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 03 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [11:19:31]RAPDU: 90 00 [11:19:31]wFMCommunicate OK [11:19:31]wFMCommunicate request_size=10 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 0D 02 02 05 D5 C4 23 F2 18 [11:19:31]Write to MH i2c: E2 0D 00 D0 02 80 0D 02 02 05 00 D5 C4 23 F2 18 00 00 1C [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 03 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [11:19:31]RAPDU: 90 00 [11:19:31]wFMCommunicate OK [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 0D 03 02 [11:19:31]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 0B 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 0B 00 D1 02 00 83 10 7C 5D 51 04 E6 10 90 00 06 [11:19:31]RAPDU: 83 10 7C 5D 51 04 E6 10 90 00 [11:19:31]wFMCommunicate OK [11:19:31]SAM_PROTO_SignData done [11:19:31]FM_MakeSignedData done [11:19:31]CreateOFDProtocolMessage [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 11 00 00 [11:19:31]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 17 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [11:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:19:31]wFMCommunicate OK [11:19:31]CreateOFDProtocolMessage done [11:19:31]OFDSenderStorePacket 188654 [11:19:31]StoreOFDPacket docnum=188654 [11:19:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 80 66 07 01 A4 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C3 DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E0 02 00 35 04 06 00 BA D5 C4 23 F2 18 83 10 7C 5D 51 04 E6 10 [11:19:31]CheckFolder [11:19:31]dirname=/storage/ofd_packets [11:19:31]CheckFolder done [11:19:31]ProducePacketName [11:19:31]name=ofd_packets/00188654 [11:19:31]NVStorageSaveData ofd_packets/00188654 [11:19:31]File name is /storage/ofd_packets/00188654 [11:19:31]Write 301 bytes [11:19:31]NVStorageSaveData done [11:19:31]OFDSenderStorePacket done [11:19:31]KKMCreateOFDPacket done [11:19:31]NVStorageSaveData kkm_last_timestamp [11:19:31]File name is /storage/kkm_last_timestamp [11:19:31]Write 4 bytes [11:19:31]NVStorageSaveData done [11:19:31]ExternCall_PrintAddStr [11:19:31]wPrintStart [11:19:31]Write to MH i2c: 01 00 00 D3 02 D5 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 07 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [11:19:31]RasterBufferAndPrint [11:19:31]line Счет N : (1)210713 [11:19:31]line ИНН: 02508201610067 [11:19:31]line Контрольно-Кассовый Чек [11:19:31]line ПРОДАЖА [11:19:31]line ТРК (МРК, ГНК) : 22 [11:19:31]line Товар: 2710124130 [11:19:31]line Аи-92-К-3 [11:19:31]line 50.000 * 0.00 [11:19:31]line = 0.00 [11:19:31]line НДС 12% НСП 1% [11:19:31]line > о реализуемом товаре [11:19:31]line ИТОГО: 0.00 [11:19:31]line НСП 1% : 0.00 [11:19:31]line НДС 12% : 0.00 [11:19:31]line Наличными: 0.00 [11:19:31]line Безнал.: 0.00 [11:19:31]line Место: АЗС № 86 "Партнер Нефть" [11:19:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:19:31]line СНО: Общий режим [11:19:31]line Чек 112 23.10.2024 11:19 [11:19:31]line Смена: 462 ФФД: 1.0 [11:19:31]line ЗНМ: 0300000155 [11:19:31]line РНМ: 0000000000100030 [11:19:31]line Версия ККМ: 001 [11:19:31]line Талоны: Топливная Карта [11:19:31]line 72671 [11:19:31]line ФМ: 0000000000965340 [11:19:31]line ФД: 188654 [11:19:31]line ФПД: 205427281490456 [11:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111931&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188654&fm=205427281490456&tin=02508201610067®Number=0000000000100030&sum=0 [11:19:31]written 0, free lines is 4095 [11:19:31]OFD Sender: Processing packet 188654 [packets to send 1062, broken 1061] [11:19:31]ProducePacketName [11:19:31]name=ofd_packets/00188654 [11:19:31]OFD Sender: To server: pG, [11:19:31]CommunicateWithHost lk.salyk.kg:30040 [11:19:31]ConnectInit lk.salyk.kg [11:19:32]Connected sock=10 [11:19:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 80 66 07 01 A4 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C3 DB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E0 02 00 35 04 06 00 BA D5 C4 23 F2 18 83 10 7C 5D 51 04 E6 10 [11:19:32]Write to MH i2c: 01 00 00 FD 02 FF [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 07 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 73 0C 85 [11:19:32]RasterBufferAndPrint [11:19:32]line [11:19:32]line [11:19:32]line [11:19:32]line [11:19:32]line [11:19:32]written 0, free lines is 3192 [11:19:32]MH_Cut [11:19:32]Write to MH i2c: D1 01 00 04 03 01 D9 [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: D1 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: D1 01 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: D1 01 00 04 03 00 D8 [11:19:32]Write to MH i2c: 01 00 00 05 03 08 [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4C 55 47 00 23 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E0 02 00 F4 03 04 00 AD 85 18 67 B6 04 01 00 00 F4 00 83 1B 48 F0 C7 54 [11:19:32]CommunicateWithHost err = 0 [11:19:32]CheckOFDResponse [11:19:32]1017 (14) - 77093643461234 [11:19:32]1041 (16) - 0000000000965340 [11:19:32]1040 (4) - 188654 [11:19:32]1012 (4) - 23.10.2024 05:12 [11:19:32]1206 (1) - 0 [11:19:32]OFD Sender: Remove packet 188654 [11:19:32]ProducePacketName [11:19:32]name=ofd_packets/00188654 [11:19:32]NVStorageDeleteData [11:19:32]OFD Sender: No OFD packet to send [11:19:33]*** Cut start [11:19:33]*** Partial cut [11:19:33]*** CUTSNS_PIN = 1 [11:19:33]*** CUTSNS_PIN = 0 [11:19:33]*** Brake cut motor [11:19:34]Read from MH i2c: 01 [11:19:34]MH_I2C_Read... [11:19:34]*** Stop cut motor [11:19:34]*** Cut end [11:19:34]Read from MH i2c: 01 07 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [11:19:34]process_action close_receipt done [11:19:34]requested_data is exist [11:19:34]produce_requested_data [11:19:34]requested_item fm.sn is exist - process it [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 11 00 00 [11:19:34]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 17 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [11:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:19:34]wFMCommunicate OK [11:19:34]requested_item fd.num is exist - process it [11:19:34]SAM_PROTO_GetFieldsCounters [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 13 00 00 [11:19:34]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 62 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:34]wFMCommunicate OK [11:19:34]SAM_PROTO_GetFieldsCounters done [11:19:34]requested_item shift.num is exist - process it [11:19:34]requested_item shift.opened is exist - process it [11:19:34]req_shift_opened [11:19:34]FM_GetShiftState [11:19:34]SAM_PROTO_GetShiftState [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 13 01 00 [11:19:34]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 0E 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 70 [11:19:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:19:34]wFMCommunicate OK [11:19:34]SAM_PROTO_GetShiftState done [11:19:34]FM_GetShiftState done [11:19:34]req_shift_opened done [11:19:34]requested_item shift.open_date is exist - process it [11:19:34]req_shift_open_date [11:19:34]req_shift_open_date done [11:19:34]produce_requested_data done [11:19:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188654,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:19:34]process_action_free close_receipt [11:19:34]json_value_free [11:19:34]json_value_free done [11:19:34]process_json_proto returns [11:19:34]Send response to host [11:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188654,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:19:34]free response buf [11:19:34]execute_script done [11:19:34]execute_script returns [11:19:34]free content buf [11:19:34]Sock 8.Close socket [11:19:34]Sock 8.Thread stoped [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:54]accept exits with 9 [11:21:54]New connection [11:21:54]New thread 3067211108 created [11:21:54]Thread 3067067748 joined [11:21:54]Waiting for new connection... [11:21:54] Sock 9.Parse request [11:21:54]Sock 9.Check first char [11:21:54]Sock 9.First char is OK [11:21:54]request: POST /json_proto HTTP/1.0 [11:21:54]Method: POST [11:21:54]URL: /json_proto [11:21:54]Method is POST - this is cgi request [11:21:54]url: /json_proto [11:21:54]query_string will be loaded in cgi processing [11:21:54]execute_cgi json_proto POST (null) [11:21:54]execute_cgi path=json_proto method=POST [11:21:54]POST find Content-Length [11:21:54]Host: 172.17.42.131:8080 [11:21:54]Content-Length: 819 [11:21:54]Content-Type: application/json [11:21:54] [11:21:54]POST finish read [11:21:54]Found Content-Length = 819 [11:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:54]execute_script... [11:21:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:54]POST & json_proto [11:21:54]process_json_proto [11:21:54]json parsed OK: [11:21:54]protocol is kg_v1.0 [11:21:54]action value=close_receipt [11:21:54]process_action close_receipt [11:21:54]cmd_close_receipt [11:21:54]MH_GetDate [11:21:54]Write to MH i2c: F0 00 00 09 03 FB [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: F0 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: F0 09 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: F0 09 00 09 03 00 53 DC 18 67 A0 18 CA 66 9A [11:21:54]GetLastDocTimeStamp 1729682371 [11:21:54]current date 1729682515 [11:21:54]FM_GetShiftState [11:21:54]SAM_PROTO_GetShiftState [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 13 01 00 [11:21:54]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 0E 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 72 [11:21:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:21:54]wFMCommunicate OK [11:21:54]SAM_PROTO_GetShiftState done [11:21:54]FM_GetShiftState done [11:21:54]opened in 1729642525 [11:21:54]opened+sec_in_day 1729728925 [11:21:54]quantity*price = 200043 [11:21:54]sum+1 = 200044 [11:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 113 23.10.2024 11:21 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188655 ФПД: 170927549219816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188655&fm=170927549219816&tin=02508201610067®Number=0000000000100030&sum=200043 [11:21:55]StoreToDocumentArchive [11:21:55]shift 462 fd 188655 [11:21:55]save to /storage/0462/doc_00188655 [11:21:55]save last doc name /storage/0462/doc_00188655 to /storage/kkm_last_doc_name [11:21:55]save OK [11:21:55]Clear old archive folders... [11:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:55]tlvbuf is 020D2200 [11:21:55]SAM_PROTO_ClearQueue [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 09 00 00 [11:21:55]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [11:21:55]RAPDU: 90 00 [11:21:55]wFMCommunicate OK [11:21:55]SAM_PROTO_ClearQueue done [11:21:55]KKMCreateOFDPacket [11:21:55]OFDProtocolAddRootSTLVToBuf [11:21:55]FM_MakeSignedData [11:21:55]FM_MakeSignedData [11:21:55]SAM_PROTO_SignData [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 0D 01 02 [11:21:55]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [11:21:55]RAPDU: 90 00 [11:21:55]wFMCommunicate OK [11:21:55]wFMCommunicate request_size=255 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 53 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E0 02 00 35 04 06 00 9B [11:21:55]Write to MH i2c: E2 02 01 19 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 53 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E0 02 00 35 04 06 00 9B 00 00 5F [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [11:21:55]RAPDU: 90 00 [11:21:55]wFMCommunicate OK [11:21:55]wFMCommunicate request_size=10 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 0D 02 02 05 75 2B DA 83 E8 [11:21:55]Write to MH i2c: E2 0D 00 1A 03 80 0D 02 02 05 00 75 2B DA 83 E8 00 00 86 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [11:21:55]RAPDU: 90 00 [11:21:55]wFMCommunicate OK [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 0D 03 02 [11:21:55]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 0B 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 0B 00 1B 03 00 83 F3 0B 21 CD 76 95 35 90 00 49 [11:21:55]RAPDU: 83 F3 0B 21 CD 76 95 35 90 00 [11:21:55]wFMCommunicate OK [11:21:55]SAM_PROTO_SignData done [11:21:55]FM_MakeSignedData done [11:21:55]CreateOFDProtocolMessage [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 11 00 00 [11:21:55]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 17 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [11:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:21:55]wFMCommunicate OK [11:21:55]CreateOFDProtocolMessage done [11:21:55]OFDSenderStorePacket 188655 [11:21:55]StoreOFDPacket docnum=188655 [11:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 00 25 07 01 D1 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 53 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E0 02 00 35 04 06 00 9B 75 2B DA 83 E8 83 F3 0B 21 CD 76 95 35 [11:21:55]CheckFolder [11:21:55]dirname=/storage/ofd_packets [11:21:55]CheckFolder done [11:21:55]ProducePacketName [11:21:55]name=ofd_packets/00188655 [11:21:55]NVStorageSaveData ofd_packets/00188655 [11:21:55]File name is /storage/ofd_packets/00188655 [11:21:55]Write 301 bytes [11:21:55]NVStorageSaveData done [11:21:55]OFDSenderStorePacket done [11:21:55]KKMCreateOFDPacket done [11:21:55]NVStorageSaveData kkm_last_timestamp [11:21:55]File name is /storage/kkm_last_timestamp [11:21:55]Write 4 bytes [11:21:55]NVStorageSaveData done [11:21:55]ExternCall_PrintAddStr [11:21:55]wPrintStart [11:21:55]Write to MH i2c: 01 00 00 1D 03 20 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [11:21:55]RasterBufferAndPrint [11:21:55]line Счет N : (1)210715 [11:21:55]line ИНН: 02508201610067 [11:21:55]line Контрольно-Кассовый Чек [11:21:55]line ПРОДАЖА [11:21:55]line ТРК (МРК, ГНК) : 33 [11:21:55]line Товар: 2710124500 [11:21:55]line Аи-95-К-3 [11:21:55]line 26.960 * 74.20 [11:21:55]line = 2000.43 [11:21:55]line НДС 12% НСП 1% [11:21:55]line > о реализуемом товаре [11:21:55]line ИТОГО: 2000.43 [11:21:55]line НСП 1% : 17.70 [11:21:55]line НДС 12% : 212.43 [11:21:55]line Наличными: 0.00 [11:21:55]line Безнал.: 2000.43 [11:21:55]line Место: АЗС № 86 "Партнер Нефть" [11:21:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:21:55]line СНО: Общий режим [11:21:55]line Чек 113 23.10.2024 11:21 [11:21:55]line Смена: 462 ФФД: 1.0 [11:21:55]line ЗНМ: 0300000155 [11:21:55]line РНМ: 0000000000100030 [11:21:55]line Версия ККМ: 001 [11:21:55]line Платежная система: Бакай Банк [11:21:55]line ФМ: 0000000000965340 [11:21:55]line ФД: 188655 [11:21:55]line ФПД: 170927549219816 [11:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188655&fm=170927549219816&tin=02508201610067®Number=0000000000100030&sum=200043 [11:21:55]written 0, free lines is 4095 [11:21:55]OFD Sender: Processing packet 188655 [packets to send 1062, broken 1061] [11:21:55]ProducePacketName [11:21:55]name=ofd_packets/00188655 [11:21:55]OFD Sender: To server: pG, [11:21:55]CommunicateWithHost lk.salyk.kg:30040 [11:21:55]ConnectInit lk.salyk.kg [11:21:56]Connected sock=10 [11:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 00 25 07 01 D1 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 53 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E0 02 00 35 04 06 00 9B 75 2B DA 83 E8 83 F3 0B 21 CD 76 95 35 [11:21:56]Write to MH i2c: 01 00 00 47 03 4A [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 07 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 61 0C BE [11:21:56]RasterBufferAndPrint [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]written 0, free lines is 3174 [11:21:56]MH_Cut [11:21:56]Write to MH i2c: D1 01 00 4E 03 01 23 [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 01 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 01 00 4E 03 00 22 [11:21:56]Write to MH i2c: 01 00 00 4F 03 52 [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B1 64 47 00 E8 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 36 35 33 34 30 10 04 04 00 EF E0 02 00 F4 03 04 00 3D 86 18 67 B6 04 01 00 00 5A 6F B0 05 6B 6D 43 5C [11:21:56]CommunicateWithHost err = 0 [11:21:56]CheckOFDResponse [11:21:56]1017 (14) - 77093643461234 [11:21:56]1041 (16) - 0000000000965340 [11:21:56]1040 (4) - 188655 [11:21:56]1012 (4) - 23.10.2024 05:14 [11:21:56]1206 (1) - 0 [11:21:56]OFD Sender: Remove packet 188655 [11:21:56]ProducePacketName [11:21:56]name=ofd_packets/00188655 [11:21:56]NVStorageDeleteData [11:21:56]OFD Sender: No OFD packet to send [11:21:57]*** Cut start [11:21:57]*** Partial cut [11:21:57]*** CUTSNS_PIN = 1 [11:21:57]*** CUTSNS_PIN = 0 [11:21:58]*** Brake cut motor [11:21:58]Read from MH i2c: 01 [11:21:58]MH_I2C_Read... [11:21:58]*** Stop cut motor [11:21:58]*** Cut end [11:21:58]Read from MH i2c: 01 07 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [11:21:58]process_action close_receipt done [11:21:58]requested_data is exist [11:21:58]produce_requested_data [11:21:58]requested_item fm.sn is exist - process it [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 11 00 00 [11:21:58]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 17 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [11:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:21:58]wFMCommunicate OK [11:21:58]requested_item fd.num is exist - process it [11:21:58]SAM_PROTO_GetFieldsCounters [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 13 00 00 [11:21:58]Write to MH i2c: E2 08 00 51 03 80 13 00 00 00 00 00 00 D0 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 62 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 62 00 51 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [11:21:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:58]wFMCommunicate OK [11:21:58]SAM_PROTO_GetFieldsCounters done [11:21:58]requested_item shift.num is exist - process it [11:21:58]requested_item shift.opened is exist - process it [11:21:58]req_shift_opened [11:21:58]FM_GetShiftState [11:21:58]SAM_PROTO_GetShiftState [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 13 01 00 [11:21:58]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0E 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BA [11:21:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:21:58]wFMCommunicate OK [11:21:58]SAM_PROTO_GetShiftState done [11:21:58]FM_GetShiftState done [11:21:58]req_shift_opened done [11:21:58]requested_item shift.open_date is exist - process it [11:21:58]req_shift_open_date [11:21:58]req_shift_open_date done [11:21:58]produce_requested_data done [11:21:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188655,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:21:58]process_action_free close_receipt [11:21:58]json_value_free [11:21:58]json_value_free done [11:21:58]process_json_proto returns [11:21:58]Send response to host [11:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188655,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:21:58]free response buf [11:21:58]execute_script done [11:21:58]execute_script returns [11:21:58]free content buf [11:21:58]Sock 9.Close socket [11:21:58]Sock 9.Thread stoped [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]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:48]accept exits with 8 [11:22:48]New connection [11:22:48]New thread 3067067748 created [11:22:48]Thread 3067211108 joined [11:22:48]Waiting for new connection... [11:22:48] Sock 8.Parse request [11:22:48]Sock 8.Check first char [11:22:48]Sock 8.First char is OK [11:22:48]request: POST /json_proto HTTP/1.0 [11:22:48]Method: POST [11:22:48]URL: /json_proto [11:22:48]Method is POST - this is cgi request [11:22:48]url: /json_proto [11:22:48]query_string will be loaded in cgi processing [11:22:48]execute_cgi json_proto POST (null) [11:22:48]execute_cgi path=json_proto method=POST [11:22:48]POST find Content-Length [11:22:48]Host: 172.17.42.131:8080 [11:22:48]Content-Length: 819 [11:22:48]Content-Type: application/json [11:22:48] [11:22:48]POST finish read [11:22:48]Found Content-Length = 819 [11:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:48]execute_script... [11:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:48]POST & json_proto [11:22:48]process_json_proto [11:22:48]json parsed OK: [11:22:48]protocol is kg_v1.0 [11:22:48]action value=close_receipt [11:22:48]process_action close_receipt [11:22:48]cmd_close_receipt [11:22:48]MH_GetDate [11:22:48]Write to MH i2c: F0 00 00 53 03 45 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 09 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 09 00 53 03 00 89 DC 18 67 A0 18 CA 66 1A [11:22:48]GetLastDocTimeStamp 1729682515 [11:22:48]current date 1729682569 [11:22:48]FM_GetShiftState [11:22:48]SAM_PROTO_GetShiftState [11:22:48]wFMCommunicate request_size=4 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 13 01 00 [11:22:48]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0E 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BC [11:22:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:22:48]wFMCommunicate OK [11:22:48]SAM_PROTO_GetShiftState done [11:22:48]FM_GetShiftState done [11:22:48]opened in 1729642525 [11:22:48]opened+sec_in_day 1729728925 [11:22:48]quantity*price = 200043 [11:22:48]sum+1 = 200044 [11:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 114 23.10.2024 11:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188656 ФПД: 56523094732518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112249&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188656&fm=56523094732518&tin=02508201610067®Number=0000000000100030&sum=200043 [11:22:49]StoreToDocumentArchive [11:22:49]shift 462 fd 188656 [11:22:49]save to /storage/0462/doc_00188656 [11:22:49]save last doc name /storage/0462/doc_00188656 to /storage/kkm_last_doc_name [11:22:49]save OK [11:22:49]Clear old archive folders... [11:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:49]tlvbuf is 020D3E20 [11:22:49]SAM_PROTO_ClearQueue [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 09 00 00 [11:22:49]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]SAM_PROTO_ClearQueue done [11:22:49]KKMCreateOFDPacket [11:22:49]OFDProtocolAddRootSTLVToBuf [11:22:49]FM_MakeSignedData [11:22:49]FM_MakeSignedData [11:22:49]SAM_PROTO_SignData [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 0D 01 02 [11:22:49]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]wFMCommunicate request_size=255 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E0 02 00 35 04 06 00 33 [11:22:50]Write to MH i2c: E2 02 01 63 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E0 02 00 35 04 06 00 33 00 00 79 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]wFMCommunicate request_size=10 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 02 02 05 68 4E FB AE E6 [11:22:50]Write to MH i2c: E2 0D 00 64 03 80 0D 02 02 05 00 68 4E FB AE E6 00 00 30 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 03 02 [11:22:50]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0B 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0B 00 65 03 00 CE 8A 66 1E 81 39 2D 82 90 00 29 [11:22:50]RAPDU: CE 8A 66 1E 81 39 2D 82 90 00 [11:22:50]wFMCommunicate OK [11:22:50]SAM_PROTO_SignData done [11:22:50]FM_MakeSignedData done [11:22:50]CreateOFDProtocolMessage [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 11 00 00 [11:22:50]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [11:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:22:50]wFMCommunicate OK [11:22:50]CreateOFDProtocolMessage done [11:22:50]OFDSenderStorePacket 188656 [11:22:50]StoreOFDPacket docnum=188656 [11:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 61 33 07 01 A7 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E0 02 00 35 04 06 00 33 68 4E FB AE E6 CE 8A 66 1E 81 39 2D 82 [11:22:50]CheckFolder [11:22:50]dirname=/storage/ofd_packets [11:22:50]CheckFolder done [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00188656 [11:22:50]NVStorageSaveData ofd_packets/00188656 [11:22:50]File name is /storage/ofd_packets/00188656 [11:22:50]Write 301 bytes [11:22:50]NVStorageSaveData done [11:22:50]OFDSenderStorePacket done [11:22:50]KKMCreateOFDPacket done [11:22:50]NVStorageSaveData kkm_last_timestamp [11:22:50]File name is /storage/kkm_last_timestamp [11:22:50]Write 4 bytes [11:22:50]NVStorageSaveData done [11:22:50]ExternCall_PrintAddStr [11:22:50]wPrintStart [11:22:50]Write to MH i2c: 01 00 00 67 03 6A [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [11:22:50]RasterBufferAndPrint [11:22:50]line Счет N : (1)210716 [11:22:50]line ИНН: 02508201610067 [11:22:50]line Контрольно-Кассовый Чек [11:22:50]line ПРОДАЖА [11:22:50]line ТРК (МРК, ГНК) : 43 [11:22:50]line Товар: 2710124500 [11:22:50]line Аи-95-К-3 [11:22:50]line 26.960 * 74.20 [11:22:50]line = 2000.43 [11:22:50]line НДС 12% НСП 1% [11:22:50]line > о реализуемом товаре [11:22:50]line ИТОГО: 2000.43 [11:22:50]line НСП 1% : 17.70 [11:22:50]line НДС 12% : 212.43 [11:22:50]line Наличными: 0.00 [11:22:50]line Безнал.: 2000.43 [11:22:50]line Место: АЗС № 86 "Партнер Нефть" [11:22:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:22:50]line СНО: Общий режим [11:22:50]line Чек 114 23.10.2024 11:22 [11:22:50]line Смена: 462 ФФД: 1.0 [11:22:50]line ЗНМ: 0300000155 [11:22:50]line РНМ: 0000000000100030 [11:22:50]line Версия ККМ: 001 [11:22:50]line Платежная система: Бакай Банк [11:22:50]line ФМ: 0000000000965340 [11:22:50]line ФД: 188656 [11:22:50]line ФПД: 56523094732518 [11:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112249&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188656&fm=56523094732518&tin=02508201610067®Number=0000000000100030&sum=200043 [11:22:50]written 0, free lines is 4095 [11:22:50]OFD Sender: Processing packet 188656 [packets to send 1062, broken 1061] [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00188656 [11:22:50]OFD Sender: To server: pG, [11:22:50]CommunicateWithHost lk.salyk.kg:30040 [11:22:50]ConnectInit lk.salyk.kg [11:22:50]Connected sock=10 [11:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 61 33 07 01 A7 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E0 02 00 35 04 06 00 33 68 4E FB AE E6 CE 8A 66 1E 81 39 2D 82 [11:22:50]Write to MH i2c: 01 00 00 91 03 94 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 6D 0C 14 [11:22:50]RasterBufferAndPrint [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]written 0, free lines is 3184 [11:22:50]MH_Cut [11:22:50]Write to MH i2c: D1 01 00 98 03 01 6D [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 01 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 01 00 98 03 00 6C [11:22:50]Write to MH i2c: 01 00 00 99 03 9C [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C 8A 47 00 8C F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E0 02 00 F4 03 04 00 74 86 18 67 B6 04 01 00 00 D8 DC A5 5E 4E 2A 68 30 [11:22:51]CommunicateWithHost err = 0 [11:22:51]CheckOFDResponse [11:22:51]1017 (14) - 77093643461234 [11:22:51]1041 (16) - 0000000000965340 [11:22:51]1040 (4) - 188656 [11:22:51]1012 (4) - 23.10.2024 05:15 [11:22:51]1206 (1) - 0 [11:22:51]OFD Sender: Remove packet 188656 [11:22:51]ProducePacketName [11:22:51]name=ofd_packets/00188656 [11:22:51]NVStorageDeleteData [11:22:51]OFD Sender: No OFD packet to send [11:22:52]*** Cut start [11:22:52]*** Partial cut [11:22:52]*** CUTSNS_PIN = 1 [11:22:52]*** CUTSNS_PIN = 0 [11:22:52]*** Brake cut motor [11:22:52]Read from MH i2c: 01 [11:22:52]MH_I2C_Read... [11:22:52]*** Stop cut motor [11:22:52]*** Cut end [11:22:52]Read from MH i2c: 01 07 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [11:22:52]process_action close_receipt done [11:22:52]requested_data is exist [11:22:52]produce_requested_data [11:22:52]requested_item fm.sn is exist - process it [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 11 00 00 [11:22:52]Write to MH i2c: E2 08 00 9A 03 80 11 00 00 00 00 00 00 17 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 9A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [11:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:22:52]wFMCommunicate OK [11:22:52]requested_item fd.num is exist - process it [11:22:52]SAM_PROTO_GetFieldsCounters [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 13 00 00 [11:22:52]Write to MH i2c: E2 08 00 9B 03 80 13 00 00 00 00 00 00 1A [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:53]Read from MH i2c: E2 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: E2 62 00 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: E2 62 00 9B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [11: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:53]wFMCommunicate OK [11:22:53]SAM_PROTO_GetFieldsCounters done [11:22:53]requested_item shift.num is exist - process it [11:22:53]requested_item shift.opened is exist - process it [11:22:53]req_shift_opened [11:22:53]FM_GetShiftState [11:22:53]SAM_PROTO_GetShiftState [11:22:53]wFMCommunicate request_size=4 [11:22:53]MH_SAM_APDU [11:22:53]CAPDU: 80 13 01 00 [11:22:53]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [11:22:53]Write i2c OK [11:22:53]MH_I2C_Read... [11:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:53]Read from MH i2c: E2 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: E2 0E 00 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 04 [11:22:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:22:53]wFMCommunicate OK [11:22:53]SAM_PROTO_GetShiftState done [11:22:53]FM_GetShiftState done [11:22:53]req_shift_opened done [11:22:53]requested_item shift.open_date is exist - process it [11:22:53]req_shift_open_date [11:22:53]req_shift_open_date done [11:22:53]produce_requested_data done [11:22:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188656,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:22:53]process_action_free close_receipt [11:22:53]json_value_free [11:22:53]json_value_free done [11:22:53]process_json_proto returns [11:22:53]Send response to host [11:22:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188656,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:22:53]free response buf [11:22:53]execute_script done [11:22:53]execute_script returns [11:22:53]free content buf [11:22:53]Sock 8.Close socket [11:22:53]Sock 8.Thread stoped [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]accept exits with 9 [11:23:41]New connection [11:23:41]New thread 3067211108 created [11:23:41]Thread 3067067748 joined [11:23:41]Waiting for new connection... [11:23:41] Sock 9.Parse request [11:23:41]Sock 9.Check first char [11:23:41]Sock 9.First char is OK [11:23:41]request: POST /json_proto HTTP/1.0 [11:23:41]Method: POST [11:23:41]URL: /json_proto [11:23:41]Method is POST - this is cgi request [11:23:41]url: /json_proto [11:23:41]query_string will be loaded in cgi processing [11:23:41]execute_cgi json_proto POST (null) [11:23:41]execute_cgi path=json_proto method=POST [11:23:41]POST find Content-Length [11:23:41]Host: 172.17.42.131:8080 [11:23:41]Content-Length: 688 [11:23:41]Content-Type: application/json [11:23:41] [11:23:41]POST finish read [11:23:41]Found Content-Length = 688 [11:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:41]execute_script... [11:23:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:41]POST & json_proto [11:23:41]process_json_proto [11:23:41]json parsed OK: [11:23:41]protocol is kg_v1.0 [11:23:41]action value=close_receipt [11:23:41]process_action close_receipt [11:23:41]cmd_close_receipt [11:23:41]MH_GetDate [11:23:41]Write to MH i2c: F0 00 00 9D 03 8F [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: F0 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: F0 09 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: F0 09 00 9D 03 00 BE DC 18 67 A0 18 CA 66 99 [11:23:41]GetLastDocTimeStamp 1729682569 [11:23:41]current date 1729682622 [11:23:41]FM_GetShiftState [11:23:41]SAM_PROTO_GetShiftState [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 13 01 00 [11:23:41]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0E 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 06 [11:23:41]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:23:41]wFMCommunicate OK [11:23:41]SAM_PROTO_GetShiftState done [11:23:41]FM_GetShiftState done [11:23:41]opened in 1729642525 [11:23:41]opened+sec_in_day 1729728925 [11:23:41]quantity*price = 200025 [11:23:41]sum+1 = 200026 [11:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 115 23.10.2024 11:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188657 ФПД: 118046807578838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112342&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188657&fm=118046807578838&tin=02508201610067®Number=0000000000100030&sum=200000 [11:23:42]StoreToDocumentArchive [11:23:42]shift 462 fd 188657 [11:23:42]save to /storage/0462/doc_00188657 [11:23:42]save last doc name /storage/0462/doc_00188657 to /storage/kkm_last_doc_name [11:23:42]save OK [11:23:42]Clear old archive folders... [11:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:23:42]tlvbuf is 020CE060 [11:23:42]SAM_PROTO_ClearQueue [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 09 00 00 [11:23:42]Write to MH i2c: E2 08 00 AB 03 80 09 00 00 00 00 00 00 20 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]SAM_PROTO_ClearQueue done [11:23:42]KKMCreateOFDPacket [11:23:42]OFDProtocolAddRootSTLVToBuf [11:23:42]FM_MakeSignedData [11:23:42]FM_MakeSignedData [11:23:42]SAM_PROTO_SignData [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 01 02 [11:23:42]Write to MH i2c: E2 08 00 AC 03 80 0D 01 02 00 00 00 00 28 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]wFMCommunicate request_size=255 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 BE DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E0 02 [11:23:42]Write to MH i2c: E2 02 01 AD 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 BE DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E0 02 00 00 F7 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]wFMCommunicate request_size=16 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6B 5C EA 08 58 D6 [11:23:42]Write to MH i2c: E2 13 00 AE 03 80 0D 02 02 0B 00 00 35 04 06 00 6B 5C EA 08 58 D6 00 00 67 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 03 02 [11:23:42]Write to MH i2c: E2 08 00 AF 03 80 0D 03 02 00 00 00 00 2D [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 0B 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 0B 00 AF 03 00 4C 43 3E 0D 5D 87 79 8D 90 00 F2 [11:23:42]RAPDU: 4C 43 3E 0D 5D 87 79 8D 90 00 [11:23:42]wFMCommunicate OK [11:23:42]SAM_PROTO_SignData done [11:23:42]FM_MakeSignedData done [11:23:42]CreateOFDProtocolMessage [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 11 00 00 [11:23:42]Write to MH i2c: E2 08 00 B0 03 80 11 00 00 00 00 00 00 2D [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 17 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 17 00 B0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [11:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:23:42]wFMCommunicate OK [11:23:42]CreateOFDProtocolMessage done [11:23:42]OFDSenderStorePacket 188657 [11:23:42]StoreOFDPacket docnum=188657 [11:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DA 4A 0D 01 D0 45 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 BE DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E0 02 00 35 04 06 00 6B 5C EA 08 58 D6 4C 43 3E 0D 5D 87 79 8D [11:23:42]CheckFolder [11:23:42]dirname=/storage/ofd_packets [11:23:42]CheckFolder done [11:23:42]ProducePacketName [11:23:42]name=ofd_packets/00188657 [11:23:42]NVStorageSaveData ofd_packets/00188657 [11:23:42]File name is /storage/ofd_packets/00188657 [11:23:42]Write 307 bytes [11:23:42]NVStorageSaveData done [11:23:42]OFDSenderStorePacket done [11:23:42]KKMCreateOFDPacket done [11:23:42]NVStorageSaveData kkm_last_timestamp [11:23:42]File name is /storage/kkm_last_timestamp [11:23:42]Write 4 bytes [11:23:42]NVStorageSaveData done [11:23:42]ExternCall_PrintAddStr [11:23:42]wPrintStart [11:23:42]Write to MH i2c: 01 00 00 B1 03 B4 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [11:23:42]RasterBufferAndPrint [11:23:42]line Счет N : (1)210718 [11:23:42]line ИНН: 02508201610067 [11:23:42]line Контрольно-Кассовый Чек [11:23:42]line ПРОДАЖА [11:23:42]line ТРК (МРК, ГНК) : 31 [11:23:42]line Товар: 2710194210 [11:23:42]line D-ENERGY ДТ-К-5 [11:23:42]line 25.910 * 77.20 [11:23:42]line = 2000.25 [11:23:42]line НДС 12% НСП 1% [11:23:42]line > о реализуемом товаре [11:23:42]line ОКРУГЛЕНИЕ: -0.25 [11:23:42]line ИТОГО: 2000.00 [11:23:42]line Внесено: 2000.00 [11:23:42]line СДАЧА: 0.00 [11:23:42]line НСП 1% : 17.70 [11:23:42]line НДС 12% : 212.42 [11:23:42]line Наличными: 2000.00 [11:23:42]line Безнал.: 0.00 [11:23:42]line Место: АЗС № 86 "Партнер Нефть" [11:23:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:23:42]line СНО: Общий режим [11:23:42]line Чек 115 23.10.2024 11:23 [11:23:42]line Смена: 462 ФФД: 1.0 [11:23:42]line ЗНМ: 0300000155 [11:23:42]line РНМ: 0000000000100030 [11:23:42]line Версия ККМ: 001 [11:23:42]line ФМ: 0000000000965340 [11:23:42]line ФД: 188657 [11:23:42]line ФПД: 118046807578838 [11:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112342&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188657&fm=118046807578838&tin=02508201610067®Number=0000000000100030&sum=200000 [11:23:42]OFD Sender: Processing packet 188657 [packets to send 1062, broken 1061] [11:23:42]ProducePacketName [11:23:42]name=ofd_packets/00188657 [11:23:42]OFD Sender: To server: pG, [11:23:42]CommunicateWithHost lk.salyk.kg:30040 [11:23:42]ConnectInit lk.salyk.kg [11:23:42]written 0, free lines is 4095 [11:23:42]Connected sock=10 [11:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DA 4A 0D 01 D0 45 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 BE DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E0 02 00 35 04 06 00 6B 5C EA 08 58 D6 4C 43 3E 0D 5D 87 79 8D [11:23:43]Write to MH i2c: 01 00 00 DC 03 DF [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: 01 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: 01 07 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 57 0C 49 [11:23:43]RasterBufferAndPrint [11:23:43]line [11:23:43]line [11:23:43]line [11:23:43]line [11:23:43]line [11:23:43]written 0, free lines is 3163 [11:23:43]MH_Cut [11:23:43]Write to MH i2c: D1 01 00 E3 03 01 B8 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: D1 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: D1 01 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: D1 01 00 E3 03 00 B7 [11:23:43]Write to MH i2c: 01 00 00 E4 03 E7 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A DD 47 00 FC 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E0 02 00 F4 03 04 00 A8 86 18 67 B6 04 01 00 00 F8 07 52 54 D1 ED 9F 3B [11:23:43]CommunicateWithHost err = 0 [11:23:43]CheckOFDResponse [11:23:43]1017 (14) - 77093643461234 [11:23:43]1041 (16) - 0000000000965340 [11:23:43]1040 (4) - 188657 [11:23:43]1012 (4) - 23.10.2024 05:16 [11:23:43]1206 (1) - 0 [11:23:43]OFD Sender: Remove packet 188657 [11:23:43]ProducePacketName [11:23:43]name=ofd_packets/00188657 [11:23:43]NVStorageDeleteData [11:23:43]OFD Sender: No OFD packet to send [11:23:44]*** Cut start [11:23:44]*** Partial cut [11:23:44]*** CUTSNS_PIN = 1 [11:23:44]*** CUTSNS_PIN = 0 [11:23:44]*** Brake cut motor [11:23:45]Read from MH i2c: 01 [11:23:45]MH_I2C_Read... [11:23:45]*** Stop cut motor [11:23:45]*** Cut end [11:23:45]Read from MH i2c: 01 07 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [11:23:45]process_action close_receipt done [11:23:45]requested_data is exist [11:23:45]produce_requested_data [11:23:45]requested_item fm.sn is exist - process it [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 11 00 00 [11:23:45]Write to MH i2c: E2 08 00 E5 03 80 11 00 00 00 00 00 00 62 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 17 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 17 00 E5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [11:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:23:45]wFMCommunicate OK [11:23:45]requested_item fd.num is exist - process it [11:23:45]SAM_PROTO_GetFieldsCounters [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 13 00 00 [11:23:45]Write to MH i2c: E2 08 00 E6 03 80 13 00 00 00 00 00 00 65 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 62 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 62 00 E6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [11:23:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_GetFieldsCounters done [11:23:45]requested_item shift.num is exist - process it [11:23:45]requested_item shift.opened is exist - process it [11:23:45]req_shift_opened [11:23:45]FM_GetShiftState [11:23:45]SAM_PROTO_GetShiftState [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 13 01 00 [11:23:45]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0E 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4F [11:23:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_GetShiftState done [11:23:45]FM_GetShiftState done [11:23:45]req_shift_opened done [11:23:45]requested_item shift.open_date is exist - process it [11:23:45]req_shift_open_date [11:23:45]req_shift_open_date done [11:23:45]produce_requested_data done [11:23:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188657,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:23:45]process_action_free close_receipt [11:23:45]json_value_free [11:23:45]json_value_free done [11:23:45]process_json_proto returns [11:23:45]Send response to host [11:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188657,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:23:45]free response buf [11:23:45]execute_script done [11:23:45]execute_script returns [11:23:45]free content buf [11:23:45]Sock 9.Close socket [11:23:45]Sock 9.Thread stoped [11:23:45]accept exits with 8 [11:23:45]New connection [11:23:45]New thread 3067067748 created [11:23:45]Thread 3067211108 joined [11:23:45]Waiting for new connection... [11:23:45] Sock 8.Parse request [11:23:45]Sock 8.Check first char [11:23:45]Sock 8.First char is OK [11:23:45]request: POST /json_proto HTTP/1.0 [11:23:45]Method: POST [11:23:45]URL: /json_proto [11:23:45]Method is POST - this is cgi request [11:23:45]url: /json_proto [11:23:45]query_string will be loaded in cgi processing [11:23:45]execute_cgi json_proto POST (null) [11:23:45]execute_cgi path=json_proto method=POST [11:23:45]POST find Content-Length [11:23:45]Host: 172.17.42.131:8080 [11:23:45]Content-Length: 983 [11:23:45]Content-Type: application/json [11:23:45] [11:23:45]POST finish read [11:23:45]Found Content-Length = 983 [11:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:45]execute_script... [11:23:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:45]POST & json_proto [11:23:45]process_json_proto [11:23:45]json parsed OK: [11:23:45]protocol is kg_v1.0 [11:23:45]action value=close_receipt [11:23:45]process_action close_receipt [11:23:45]cmd_close_receipt [11:23:45]MH_GetDate [11:23:45]Write to MH i2c: F0 00 00 E8 03 DA [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: F0 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: F0 09 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: F0 09 00 E8 03 00 C2 DC 18 67 A0 18 CA 66 E8 [11:23:45]GetLastDocTimeStamp 1729682622 [11:23:45]current date 1729682626 [11:23:45]FM_GetShiftState [11:23:45]SAM_PROTO_GetShiftState [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 13 01 00 [11:23:45]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:45]Read from MH i2c: E2 0E 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 51 [11:23:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_GetShiftState done [11:23:45]FM_GetShiftState done [11:23:45]opened in 1729642525 [11:23:45]opened+sec_in_day 1729728925 [11:23:45]quantity*price = 150054 [11:23:45]sum+1 = 150055 [11:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 116 23.10.2024 11:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 188658 ФПД: 7499555501726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112346&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188658&fm=7499555501726&tin=02508201610067®Number=0000000000100030&sum=150000 [11:23:47]StoreToDocumentArchive [11:23:47]shift 462 fd 188658 [11:23:47]save to /storage/0462/doc_00188658 [11:23:47]save last doc name /storage/0462/doc_00188658 to /storage/kkm_last_doc_name [11:23:47]save OK [11:23:47]Clear old archive folders... [11:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:47]tlvbuf is 0207C3C0 [11:23:47]SAM_PROTO_ClearQueue [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 09 00 00 [11:23:47]Write to MH i2c: E2 08 00 F6 03 80 09 00 00 00 00 00 00 6B [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]SAM_PROTO_ClearQueue done [11:23:47]KKMCreateOFDPacket [11:23:47]OFDProtocolAddRootSTLVToBuf [11:23:47]FM_MakeSignedData [11:23:47]FM_MakeSignedData [11:23:47]SAM_PROTO_SignData [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 01 02 [11:23:47]Write to MH i2c: E2 08 00 F7 03 80 0D 01 02 00 00 00 00 73 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]wFMCommunicate request_size=255 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C2 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E0 02 00 35 04 06 00 06 [11:23:47]Write to MH i2c: E2 02 01 F8 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C2 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E0 02 00 35 04 06 00 06 00 00 56 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]wFMCommunicate request_size=10 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 02 02 05 D2 20 57 76 9E [11:23:47]Write to MH i2c: E2 0D 00 F9 03 80 0D 02 02 05 00 D2 20 57 76 9E 00 00 DD [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 03 02 [11:23:47]Write to MH i2c: E2 08 00 FA 03 80 0D 03 02 00 00 00 00 78 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 0B 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 0B 00 FA 03 00 3D 2B 9E C0 1C 5E 60 0B 90 00 24 [11:23:47]RAPDU: 3D 2B 9E C0 1C 5E 60 0B 90 00 [11:23:47]wFMCommunicate OK [11:23:47]SAM_PROTO_SignData done [11:23:47]FM_MakeSignedData done [11:23:47]CreateOFDProtocolMessage [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 11 00 00 [11:23:47]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 17 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 17 00 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [11:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:23:47]wFMCommunicate OK [11:23:47]CreateOFDProtocolMessage done [11:23:47]OFDSenderStorePacket 188658 [11:23:47]StoreOFDPacket docnum=188658 [11:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 01 07 01 42 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C2 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E0 02 00 35 04 06 00 06 D2 20 57 76 9E 3D 2B 9E C0 1C 5E 60 0B [11:23:47]CheckFolder [11:23:47]dirname=/storage/ofd_packets [11:23:47]CheckFolder done [11:23:47]ProducePacketName [11:23:47]name=ofd_packets/00188658 [11:23:47]NVStorageSaveData ofd_packets/00188658 [11:23:47]File name is /storage/ofd_packets/00188658 [11:23:47]Write 301 bytes [11:23:47]NVStorageSaveData done [11:23:47]OFDSenderStorePacket done [11:23:47]KKMCreateOFDPacket done [11:23:47]NVStorageSaveData kkm_last_timestamp [11:23:47]File name is /storage/kkm_last_timestamp [11:23:47]Write 4 bytes [11:23:47]NVStorageSaveData done [11:23:47]ExternCall_PrintAddStr [11:23:47]wPrintStart [11:23:47]Write to MH i2c: 01 00 00 FC 03 FF [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 07 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 FF 0F 14 [11:23:47]RasterBufferAndPrint [11:23:47]line Счет N : (1)210717 [11:23:47]line ИНН: 02508201610067 [11:23:47]line Контрольно-Кассовый Чек [11:23:47]line ПРОДАЖА [11:23:47]line ТРК (МРК, ГНК) : 22 [11:23:47]line Товар: 2710124130 [11:23:47]line Аи-92-К-3 [11:23:47]line 22.770 * 65.90 [11:23:47]line = 1500.54 [11:23:47]line НДС 12% НСП 1% [11:23:47]line > о реализуемом товаре [11:23:47]line ОКРУГЛЕНИЕ: -0.54 [11:23:47]line ИТОГО: 1500.00 [11:23:47]line Внесено: 1500.00 [11:23:47]line СДАЧА: 0.00 [11:23:47]line НСП 1% : 13.28 [11:23:47]line НДС 12% : 159.35 [11:23:47]line Наличными: 1500.00 [11:23:47]line Безнал.: 0.00 [11:23:47]line Место: АЗС № 86 "Партнер Нефть" [11:23:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:23:47]line СНО: Общий режим [11:23:47]line Чек 116 23.10.2024 11:23 [11:23:47]line Смена: 462 ФФД: 1.0 [11:23:47]line ЗНМ: 0300000155 [11:23:47]line РНМ: 0000000000100030 [11:23:48]line Версия ККМ: 001 [11:23:48]line [11:23:48]line Дисконтная программа [11:23:48]line АИ-92 [11:23:48]line номер 86 [11:23:48]line сэкономлено 22.77 сом [11:23:48]line ФМ: 0000000000965340 [11:23:48]line ФД: 188658 [11:23:48]line ФПД: 7499555501726 [11:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112346&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188658&fm=7499555501726&tin=02508201610067®Number=0000000000100030&sum=150000 [11:23:48]OFD Sender: Processing packet 188658 [packets to send 1062, broken 1061] [11:23:48]ProducePacketName [11:23:48]name=ofd_packets/00188658 [11:23:48]OFD Sender: To server: pG, [11:23:48]CommunicateWithHost lk.salyk.kg:30040 [11:23:48]ConnectInit lk.salyk.kg [11:23:48]written 0, free lines is 4095 [11:23:48]Connected sock=10 [11:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 01 07 01 42 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C2 DC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E0 02 00 35 04 06 00 06 D2 20 57 76 9E 3D 2B 9E C0 1C 5E 60 0B [11:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 26 47 00 90 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 36 35 33 34 30 10 04 04 00 F2 E0 02 00 F4 03 04 00 AE 86 18 67 B6 04 01 00 00 00 C2 F7 06 ED E7 E4 00 [11:23:48]CommunicateWithHost err = 0 [11:23:48]CheckOFDResponse [11:23:48]1017 (14) - 77093643461234 [11:23:48]1041 (16) - 0000000000965340 [11:23:48]1040 (4) - 188658 [11:23:48]1012 (4) - 23.10.2024 05:16 [11:23:48]1206 (1) - 0 [11:23:48]OFD Sender: Remove packet 188658 [11:23:48]ProducePacketName [11:23:48]name=ofd_packets/00188658 [11:23:48]NVStorageDeleteData [11:23:48]Write to MH i2c: 01 00 00 2C 04 30 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 07 0C 4A [11:23:48]RasterBufferAndPrint [11:23:48]line [11:23:48]line [11:23:48]line [11:23:48]line [11:23:48]line [11:23:48]written 0, free lines is 3089 [11:23:48]MH_Cut [11:23:48]Write to MH i2c: D1 01 00 33 04 01 09 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: D1 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: D1 01 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: D1 01 00 33 04 00 08 [11:23:48]Write to MH i2c: 01 00 00 34 04 38 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:49]OFD Sender: No OFD packet to send [11:23:50]*** Cut start [11:23:50]*** Partial cut [11:23:50]*** CUTSNS_PIN = 1 [11:23:50]*** CUTSNS_PIN = 0 [11:23:50]*** Brake cut motor [11:23:50]Read from MH i2c: 01 [11:23:50]MH_I2C_Read... [11:23:50]*** Stop cut motor [11:23:50]*** Cut end [11:23:50]Read from MH i2c: 01 07 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 FF 0F 4D [11:23:50]process_action close_receipt done [11:23:50]requested_data is exist [11:23:50]produce_requested_data [11:23:50]requested_item fm.sn is exist - process it [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 11 00 00 [11:23:50]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:50]Read from MH i2c: E2 17 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [11:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:23:50]wFMCommunicate OK [11:23:50]requested_item fd.num is exist - process it [11:23:50]SAM_PROTO_GetFieldsCounters [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 13 00 00 [11:23:50]Write to MH i2c: E2 08 00 36 04 80 13 00 00 00 00 00 00 B6 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 62 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 62 00 36 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [11:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:51]wFMCommunicate OK [11:23:51]SAM_PROTO_GetFieldsCounters done [11:23:51]requested_item shift.num is exist - process it [11:23:51]requested_item shift.opened is exist - process it [11:23:51]req_shift_opened [11:23:51]FM_GetShiftState [11:23:51]SAM_PROTO_GetShiftState [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 13 01 00 [11:23:51]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 0E 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A0 [11:23:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:23:51]wFMCommunicate OK [11:23:51]SAM_PROTO_GetShiftState done [11:23:51]FM_GetShiftState done [11:23:51]req_shift_opened done [11:23:51]requested_item shift.open_date is exist - process it [11:23:51]req_shift_open_date [11:23:51]req_shift_open_date done [11:23:51]produce_requested_data done [11:23:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188658,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:23:51]process_action_free close_receipt [11:23:51]json_value_free [11:23:51]json_value_free done [11:23:51]process_json_proto returns [11:23:51]Send response to host [11:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188658,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:23:51]free response buf [11:23:51]execute_script done [11:23:51]execute_script returns [11:23:51]free content buf [11:23:51]Sock 8.Close socket [11:23:51]Sock 8.Thread stoped [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:31]accept exits with 9 [11:25:31]New connection [11:25:31]New thread 3067211108 created [11:25:31]Thread 3067067748 joined [11:25:31]Waiting for new connection... [11:25:31] Sock 9.Parse request [11:25:31]Sock 9.Check first char [11:25:31]Sock 9.First char is OK [11:25:31]request: POST /json_proto HTTP/1.0 [11:25:31]Method: POST [11:25:31]URL: /json_proto [11:25:31]Method is POST - this is cgi request [11:25:31]url: /json_proto [11:25:31]query_string will be loaded in cgi processing [11:25:31]execute_cgi json_proto POST (null) [11:25:31]execute_cgi path=json_proto method=POST [11:25:31]POST find Content-Length [11:25:31]Host: 172.17.42.131:8080 [11:25:31]Content-Length: 678 [11:25:31]Content-Type: application/json [11:25:31] [11:25:31]POST finish read [11:25:31]Found Content-Length = 678 [11:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:31]execute_script... [11:25:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:31]POST & json_proto [11:25:31]process_json_proto [11:25:31]json parsed OK: [11:25:31]protocol is kg_v1.0 [11:25:31]action value=close_receipt [11:25:31]process_action close_receipt [11:25:31]cmd_close_receipt [11:25:31]MH_GetDate [11:25:31]Write to MH i2c: F0 00 00 38 04 2B [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: F0 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: F0 09 00 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: F0 09 00 38 04 00 2C DD 18 67 A0 18 CA 66 A4 [11:25:31]GetLastDocTimeStamp 1729682626 [11:25:31]current date 1729682732 [11:25:31]FM_GetShiftState [11:25:31]SAM_PROTO_GetShiftState [11:25:31]wFMCommunicate request_size=4 [11:25:31]MH_SAM_APDU [11:25:31]CAPDU: 80 13 01 00 [11:25:31]Write to MH i2c: E2 08 00 39 04 80 13 01 00 00 00 00 00 BA [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:31]Read from MH i2c: E2 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: E2 0E 00 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: E2 0E 00 39 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A2 [11:25:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:25:31]wFMCommunicate OK [11:25:31]SAM_PROTO_GetShiftState done [11:25:31]FM_GetShiftState done [11:25:31]opened in 1729642525 [11:25:31]opened+sec_in_day 1729728925 [11:25:31]quantity*price = 80012 [11:25:31]sum+1 = 80013 [11:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 117 23.10.2024 11:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188659 ФПД: 202480077379480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112532&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188659&fm=202480077379480&tin=02508201610067®Number=0000000000100030&sum=80000 [11:25:32]StoreToDocumentArchive [11:25:32]shift 462 fd 188659 [11:25:32]save to /storage/0462/doc_00188659 [11:25:32]save last doc name /storage/0462/doc_00188659 to /storage/kkm_last_doc_name [11:25:32]save OK [11:25:32]Clear old archive folders... [11:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:32]tlvbuf is 02098E40 [11:25:32]SAM_PROTO_ClearQueue [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 09 00 00 [11:25:32]Write to MH i2c: E2 08 00 46 04 80 09 00 00 00 00 00 00 BC [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [11:25:32]RAPDU: 90 00 [11:25:32]wFMCommunicate OK [11:25:32]SAM_PROTO_ClearQueue done [11:25:32]KKMCreateOFDPacket [11:25:32]OFDProtocolAddRootSTLVToBuf [11:25:32]FM_MakeSignedData [11:25:32]FM_MakeSignedData [11:25:32]SAM_PROTO_SignData [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 0D 01 02 [11:25:32]Write to MH i2c: E2 08 00 47 04 80 0D 01 02 00 00 00 00 C4 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [11:25:32]RAPDU: 90 00 [11:25:32]wFMCommunicate OK [11:25:32]wFMCommunicate request_size=255 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2C DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E0 02 00 35 04 06 00 B8 [11:25:32]Write to MH i2c: E2 02 01 48 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2C DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E0 02 00 35 04 06 00 B8 00 00 7C [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 48 04 00 90 00 C0 [11:25:32]RAPDU: 90 00 [11:25:32]wFMCommunicate OK [11:25:32]wFMCommunicate request_size=10 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 0D 02 02 05 27 91 16 17 98 [11:25:32]Write to MH i2c: E2 0D 00 49 04 80 0D 02 02 05 00 27 91 16 17 98 00 00 4E [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [11:25:32]RAPDU: 90 00 [11:25:32]wFMCommunicate OK [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 0D 03 02 [11:25:32]Write to MH i2c: E2 08 00 4A 04 80 0D 03 02 00 00 00 00 C9 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 0B 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 0B 00 4A 04 00 70 35 D5 32 C1 21 8F 8C 90 00 73 [11:25:32]RAPDU: 70 35 D5 32 C1 21 8F 8C 90 00 [11:25:32]wFMCommunicate OK [11:25:32]SAM_PROTO_SignData done [11:25:32]FM_MakeSignedData done [11:25:32]CreateOFDProtocolMessage [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 11 00 00 [11:25:32]Write to MH i2c: E2 08 00 4B 04 80 11 00 00 00 00 00 00 C9 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 17 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 17 00 4B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [11:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:25:32]wFMCommunicate OK [11:25:32]CreateOFDProtocolMessage done [11:25:32]OFDSenderStorePacket 188659 [11:25:32]StoreOFDPacket docnum=188659 [11:25:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 63 EA 07 01 7C A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2C DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E0 02 00 35 04 06 00 B8 27 91 16 17 98 70 35 D5 32 C1 21 8F 8C [11:25:32]CheckFolder [11:25:32]dirname=/storage/ofd_packets [11:25:32]CheckFolder done [11:25:32]ProducePacketName [11:25:32]name=ofd_packets/00188659 [11:25:32]NVStorageSaveData ofd_packets/00188659 [11:25:32]File name is /storage/ofd_packets/00188659 [11:25:32]Write 301 bytes [11:25:32]NVStorageSaveData done [11:25:32]OFDSenderStorePacket done [11:25:32]KKMCreateOFDPacket done [11:25:32]NVStorageSaveData kkm_last_timestamp [11:25:32]File name is /storage/kkm_last_timestamp [11:25:32]Write 4 bytes [11:25:32]NVStorageSaveData done [11:25:32]ExternCall_PrintAddStr [11:25:32]wPrintStart [11:25:32]Write to MH i2c: 01 00 00 4C 04 50 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: 01 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: 01 07 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 FF 0F 65 [11:25:32]RasterBufferAndPrint [11:25:32]line Счет N : (1)210720 [11:25:32]line ИНН: 02508201610067 [11:25:32]line Контрольно-Кассовый Чек [11:25:32]line ПРОДАЖА [11:25:32]line ТРК (МРК, ГНК) : 12 [11:25:32]line Товар: 2710124130 [11:25:32]line Аи-92-К-3 [11:25:32]line 11.960 * 66.90 [11:25:32]line = 800.12 [11:25:32]line НДС 12% НСП 1% [11:25:32]line > о реализуемом товаре [11:25:32]line ОКРУГЛЕНИЕ: -0.12 [11:25:32]line ИТОГО: 800.00 [11:25:32]line Внесено: 800.00 [11:25:32]line СДАЧА: 0.00 [11:25:32]line НСП 1% : 7.08 [11:25:32]line НДС 12% : 84.97 [11:25:32]line Наличными: 800.00 [11:25:32]line Безнал.: 0.00 [11:25:32]line Место: АЗС № 86 "Партнер Нефть" [11:25:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:25:32]line СНО: Общий режим [11:25:32]line Чек 117 23.10.2024 11:25 [11:25:32]line Смена: 462 ФФД: 1.0 [11:25:32]line ЗНМ: 0300000155 [11:25:32]line РНМ: 0000000000100030 [11:25:32]line Версия ККМ: 001 [11:25:32]line ФМ: 0000000000965340 [11:25:32]line ФД: 188659 [11:25:32]line ФПД: 202480077379480 [11:25:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112532&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188659&fm=202480077379480&tin=02508201610067®Number=0000000000100030&sum=80000 [11:25:32]written 0, free lines is 4095 [11:25:32]OFD Sender: Processing packet 188659 [packets to send 1062, broken 1061] [11:25:32]ProducePacketName [11:25:32]name=ofd_packets/00188659 [11:25:32]OFD Sender: To server: pG, [11:25:32]CommunicateWithHost lk.salyk.kg:30040 [11:25:32]ConnectInit lk.salyk.kg [11:25:33]Connected sock=10 [11:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 63 EA 07 01 7C A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2C DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E0 02 00 35 04 06 00 B8 27 91 16 17 98 70 35 D5 32 C1 21 8F 8C [11:25:33]Write to MH i2c: 01 00 00 77 04 7B [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 07 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 59 0C E7 [11:25:33]RasterBufferAndPrint [11:25:33]line [11:25:33]line [11:25:33]line [11:25:33]line [11:25:33]line [11:25:33]written 0, free lines is 3165 [11:25:33]MH_Cut [11:25:33]Write to MH i2c: D1 01 00 7E 04 01 54 [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: D1 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: D1 01 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: D1 01 00 7E 04 00 53 [11:25:33]Write to MH i2c: 01 00 00 7F 04 83 [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A B3 47 00 0A 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E0 02 00 F4 03 04 00 16 87 18 67 B6 04 01 00 00 B1 89 7F 58 64 41 0D 58 [11:25:33]CommunicateWithHost err = 0 [11:25:33]CheckOFDResponse [11:25:33]1017 (14) - 77093643461234 [11:25:33]1041 (16) - 0000000000965340 [11:25:33]1040 (4) - 188659 [11:25:33]1012 (4) - 23.10.2024 05:18 [11:25:33]1206 (1) - 0 [11:25:33]OFD Sender: Remove packet 188659 [11:25:33]ProducePacketName [11:25:33]name=ofd_packets/00188659 [11:25:33]NVStorageDeleteData [11:25:33]OFD Sender: No OFD packet to send [11:25:34]*** Cut start [11:25:34]*** Partial cut [11:25:34]*** CUTSNS_PIN = 1 [11:25:34]*** CUTSNS_PIN = 0 [11:25:34]*** Brake cut motor [11:25:35]Read from MH i2c: 01 [11:25:35]MH_I2C_Read... [11:25:35]*** Stop cut motor [11:25:35]*** Cut end [11:25:35]Read from MH i2c: 01 07 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 FF 0F 98 [11:25:35]process_action close_receipt done [11:25:35]requested_data is exist [11:25:35]produce_requested_data [11:25:35]requested_item fm.sn is exist - process it [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 11 00 00 [11:25:35]Write to MH i2c: E2 08 00 80 04 80 11 00 00 00 00 00 00 FE [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 17 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 17 00 80 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4C [11:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:25:35]wFMCommunicate OK [11:25:35]requested_item fd.num is exist - process it [11:25:35]SAM_PROTO_GetFieldsCounters [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 13 00 00 [11:25:35]Write to MH i2c: E2 08 00 81 04 80 13 00 00 00 00 00 00 01 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 62 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 62 00 81 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11:25:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:35]wFMCommunicate OK [11:25:35]SAM_PROTO_GetFieldsCounters done [11:25:35]requested_item shift.num is exist - process it [11:25:35]requested_item shift.opened is exist - process it [11:25:35]req_shift_opened [11:25:35]FM_GetShiftState [11:25:35]SAM_PROTO_GetShiftState [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 13 01 00 [11:25:35]Write to MH i2c: E2 08 00 82 04 80 13 01 00 00 00 00 00 03 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0E 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0E 00 82 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EB [11:25:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:25:35]wFMCommunicate OK [11:25:35]SAM_PROTO_GetShiftState done [11:25:35]FM_GetShiftState done [11:25:35]req_shift_opened done [11:25:35]requested_item shift.open_date is exist - process it [11:25:35]req_shift_open_date [11:25:35]req_shift_open_date done [11:25:35]produce_requested_data done [11:25:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188659,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:25:35]process_action_free close_receipt [11:25:35]json_value_free [11:25:35]json_value_free done [11:25:35]process_json_proto returns [11:25:35]Send response to host [11:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188659,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:25:35]free response buf [11:25:35]execute_script done [11:25:35]execute_script returns [11:25:35]free content buf [11:25:35]Sock 9.Close socket [11:25:35]Sock 9.Thread stoped [11:25:37]accept exits with 8 [11:25:37]New connection [11:25:37]New thread 3067067748 created [11:25:37]Thread 3067211108 joined [11:25:37]Waiting for new connection... [11:25:37] Sock 8.Parse request [11:25:37]Sock 8.Check first char [11:25:37]Sock 8.First char is OK [11:25:37]request: POST /json_proto HTTP/1.0 [11:25:37]Method: POST [11:25:37]URL: /json_proto [11:25:37]Method is POST - this is cgi request [11:25:37]url: /json_proto [11:25:37]query_string will be loaded in cgi processing [11:25:37]execute_cgi json_proto POST (null) [11:25:37]execute_cgi path=json_proto method=POST [11:25:37]POST find Content-Length [11:25:37]Host: 172.17.42.131:8080 [11:25:37]Content-Length: 816 [11:25:37]Content-Type: application/json [11:25:37] [11:25:37]POST finish read [11:25:37]Found Content-Length = 816 [11:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:37]execute_script... [11:25:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:37]POST & json_proto [11:25:37]process_json_proto [11:25:37]json parsed OK: [11:25:37]protocol is kg_v1.0 [11:25:37]action value=close_receipt [11:25:37]process_action close_receipt [11:25:37]cmd_close_receipt [11:25:37]MH_GetDate [11:25:37]Write to MH i2c: F0 00 00 83 04 76 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 09 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 09 00 83 04 00 32 DD 18 67 A0 18 CA 66 F5 [11:25:37]GetLastDocTimeStamp 1729682732 [11:25:37]current date 1729682738 [11:25:37]FM_GetShiftState [11:25:37]SAM_PROTO_GetShiftState [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 13 01 00 [11:25:37]Write to MH i2c: E2 08 00 84 04 80 13 01 00 00 00 00 00 05 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0E 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0E 00 84 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 ED [11:25:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:25:37]wFMCommunicate OK [11:25:37]SAM_PROTO_GetShiftState done [11:25:37]FM_GetShiftState done [11:25:37]opened in 1729642525 [11:25:37]opened+sec_in_day 1729728925 [11:25:37]quantity*price = 50010 [11:25:37]sum+1 = 50012 [11:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 118 23.10.2024 11:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188660 ФПД: 280875665188111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112538&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188660&fm=280875665188111&tin=02508201610067®Number=0000000000100030&sum=50011 [11:25:38]StoreToDocumentArchive [11:25:38]shift 462 fd 188660 [11:25:38]save to /storage/0462/doc_00188660 [11:25:38]save last doc name /storage/0462/doc_00188660 to /storage/kkm_last_doc_name [11:25:38]save OK [11:25:38]Clear old archive folders... [11:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:39]tlvbuf is 02079A10 [11:25:39]SAM_PROTO_ClearQueue [11:25:39]wFMCommunicate request_size=4 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 09 00 00 [11:25:39]Write to MH i2c: E2 08 00 91 04 80 09 00 00 00 00 00 00 07 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [11:25:39]RAPDU: 90 00 [11:25:39]wFMCommunicate OK [11:25:39]SAM_PROTO_ClearQueue done [11:25:39]KKMCreateOFDPacket [11:25:39]OFDProtocolAddRootSTLVToBuf [11:25:39]FM_MakeSignedData [11:25:39]FM_MakeSignedData [11:25:39]SAM_PROTO_SignData [11:25:39]wFMCommunicate request_size=4 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 0D 01 02 [11:25:39]Write to MH i2c: E2 08 00 92 04 80 0D 01 02 00 00 00 00 0F [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [11:25:39]RAPDU: 90 00 [11:25:39]wFMCommunicate OK [11:25:39]wFMCommunicate request_size=255 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 32 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E0 02 00 35 04 06 00 FF [11:25:39]Write to MH i2c: E2 02 01 93 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 32 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E0 02 00 35 04 06 00 FF 00 00 18 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [11:25:39]RAPDU: 90 00 [11:25:39]wFMCommunicate OK [11:25:39]wFMCommunicate request_size=10 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 0D 02 02 05 74 76 3F E5 0F [11:25:39]Write to MH i2c: E2 0D 00 94 04 80 0D 02 02 05 00 74 76 3F E5 0F 00 00 39 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [11:25:39]RAPDU: 90 00 [11:25:39]wFMCommunicate OK [11:25:39]wFMCommunicate request_size=4 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 0D 03 02 [11:25:39]Write to MH i2c: E2 08 00 95 04 80 0D 03 02 00 00 00 00 14 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 0B 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 0B 00 95 04 00 F8 45 93 2E B2 D0 AE 65 90 00 A8 [11:25:39]RAPDU: F8 45 93 2E B2 D0 AE 65 90 00 [11:25:39]wFMCommunicate OK [11:25:39]SAM_PROTO_SignData done [11:25:39]FM_MakeSignedData done [11:25:39]CreateOFDProtocolMessage [11:25:39]wFMCommunicate request_size=4 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 11 00 00 [11:25:39]Write to MH i2c: E2 08 00 96 04 80 11 00 00 00 00 00 00 14 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 17 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 17 00 96 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [11:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:25:39]wFMCommunicate OK [11:25:39]CreateOFDProtocolMessage done [11:25:39]OFDSenderStorePacket 188660 [11:25:39]StoreOFDPacket docnum=188660 [11:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C2 CF 07 01 34 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 32 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E0 02 00 35 04 06 00 FF 74 76 3F E5 0F F8 45 93 2E B2 D0 AE 65 [11:25:39]CheckFolder [11:25:39]dirname=/storage/ofd_packets [11:25:39]CheckFolder done [11:25:39]ProducePacketName [11:25:39]name=ofd_packets/00188660 [11:25:39]NVStorageSaveData ofd_packets/00188660 [11:25:39]File name is /storage/ofd_packets/00188660 [11:25:39]Write 301 bytes [11:25:39]NVStorageSaveData done [11:25:39]OFDSenderStorePacket done [11:25:39]KKMCreateOFDPacket done [11:25:39]NVStorageSaveData kkm_last_timestamp [11:25:39]File name is /storage/kkm_last_timestamp [11:25:39]Write 4 bytes [11:25:39]NVStorageSaveData done [11:25:39]ExternCall_PrintAddStr [11:25:39]wPrintStart [11:25:39]Write to MH i2c: 01 00 00 97 04 9B [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 07 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 07 00 97 04 00 00 00 00 00 FF 0F B0 [11:25:39]RasterBufferAndPrint [11:25:39]line Счет N : (1)210719 [11:25:39]line ИНН: 02508201610067 [11:25:39]line Контрольно-Кассовый Чек [11:25:39]line ПРОДАЖА [11:25:39]line ТРК (МРК, ГНК) : 43 [11:25:39]line Товар: 2710124500 [11:25:39]line Аи-95-К-3 [11:25:39]line 6.740 * 74.20 [11:25:39]line = 500.11 [11:25:39]line НДС 12% НСП 1% [11:25:39]line > о реализуемом товаре [11:25:39]line ИТОГО: 500.11 [11:25:39]line НСП 1% : 4.43 [11:25:39]line НДС 12% : 53.11 [11:25:39]line Наличными: 0.00 [11:25:39]line Безнал.: 500.11 [11:25:39]line Место: АЗС № 86 "Партнер Нефть" [11:25:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:25:39]line СНО: Общий режим [11:25:39]line Чек 118 23.10.2024 11:25 [11:25:39]line Смена: 462 ФФД: 1.0 [11:25:39]line ЗНМ: 0300000155 [11:25:39]line РНМ: 0000000000100030 [11:25:39]line Версия ККМ: 001 [11:25:39]line Платежная система: Бакай Банк [11:25:39]line ФМ: 0000000000965340 [11:25:39]line ФД: 188660 [11:25:39]line ФПД: 280875665188111 [11:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112538&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188660&fm=280875665188111&tin=02508201610067®Number=0000000000100030&sum=50011 [11:25:39]written 0, free lines is 4095 [11:25:39]OFD Sender: Processing packet 188660 [packets to send 1062, broken 1061] [11:25:39]ProducePacketName [11:25:39]name=ofd_packets/00188660 [11:25:39]OFD Sender: To server: pG, [11:25:39]CommunicateWithHost lk.salyk.kg:30040 [11:25:39]ConnectInit lk.salyk.kg [11:25:39]Connected sock=10 [11:25:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C2 CF 07 01 34 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 32 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E0 02 00 35 04 06 00 FF 74 76 3F E5 0F F8 45 93 2E B2 D0 AE 65 [11:25:40]Write to MH i2c: 01 00 00 C1 04 C5 [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 C1 04 00 00 00 00 00 75 0C 4D [11:25:40]RasterBufferAndPrint [11:25:40]line [11:25:40]line [11:25:40]line [11:25:40]line [11:25:40]line [11:25:40]written 0, free lines is 3194 [11:25:40]MH_Cut [11:25:40]Write to MH i2c: D1 01 00 C8 04 01 9E [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: D1 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: D1 01 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: D1 01 00 C8 04 00 9D [11:25:40]Write to MH i2c: 01 00 00 C9 04 CD [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E 77 47 00 24 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E0 02 00 F4 03 04 00 1D 87 18 67 B6 04 01 00 00 44 7F 97 F3 F5 78 61 1E [11:25:40]CommunicateWithHost err = 0 [11:25:40]CheckOFDResponse [11:25:40]1017 (14) - 77093643461234 [11:25:40]1041 (16) - 0000000000965340 [11:25:40]1040 (4) - 188660 [11:25:40]1012 (4) - 23.10.2024 05:18 [11:25:40]1206 (1) - 0 [11:25:40]OFD Sender: Remove packet 188660 [11:25:40]ProducePacketName [11:25:40]name=ofd_packets/00188660 [11:25:40]NVStorageDeleteData [11:25:40]OFD Sender: No OFD packet to send [11:25:41]*** Cut start [11:25:41]*** Partial cut [11:25:41]*** CUTSNS_PIN = 1 [11:25:41]*** CUTSNS_PIN = 0 [11:25:41]*** Brake cut motor [11:25:41]Read from MH i2c: 01 [11:25:41]MH_I2C_Read... [11:25:41]*** Stop cut motor [11:25:41]*** Cut end [11:25:41]Read from MH i2c: 01 07 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: 01 07 00 C9 04 00 00 00 00 00 FF 0F E2 [11:25:41]process_action close_receipt done [11:25:41]requested_data is exist [11:25:41]produce_requested_data [11:25:41]requested_item fm.sn is exist - process it [11:25:41]wFMCommunicate request_size=4 [11:25:41]MH_SAM_APDU [11:25:41]CAPDU: 80 11 00 00 [11:25:41]Write to MH i2c: E2 08 00 CA 04 80 11 00 00 00 00 00 00 48 [11:25:41]Write i2c OK [11:25:41]MH_I2C_Read... [11:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:42]Read from MH i2c: E2 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 17 00 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 17 00 CA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [11:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:25:42]wFMCommunicate OK [11:25:42]requested_item fd.num is exist - process it [11:25:42]SAM_PROTO_GetFieldsCounters [11:25:42]wFMCommunicate request_size=4 [11:25:42]MH_SAM_APDU [11:25:42]CAPDU: 80 13 00 00 [11:25:42]Write to MH i2c: E2 08 00 CB 04 80 13 00 00 00 00 00 00 4B [11:25:42]Write i2c OK [11:25:42]MH_I2C_Read... [11:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:42]Read from MH i2c: E2 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 62 00 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 62 00 CB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [11:25:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:42]wFMCommunicate OK [11:25:42]SAM_PROTO_GetFieldsCounters done [11:25:42]requested_item shift.num is exist - process it [11:25:42]requested_item shift.opened is exist - process it [11:25:42]req_shift_opened [11:25:42]FM_GetShiftState [11:25:42]SAM_PROTO_GetShiftState [11:25:42]wFMCommunicate request_size=4 [11:25:42]MH_SAM_APDU [11:25:42]CAPDU: 80 13 01 00 [11:25:42]Write to MH i2c: E2 08 00 CC 04 80 13 01 00 00 00 00 00 4D [11:25:42]Write i2c OK [11:25:42]MH_I2C_Read... [11:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:42]Read from MH i2c: E2 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 0E 00 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 0E 00 CC 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 35 [11:25:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:25:42]wFMCommunicate OK [11:25:42]SAM_PROTO_GetShiftState done [11:25:42]FM_GetShiftState done [11:25:42]req_shift_opened done [11:25:42]requested_item shift.open_date is exist - process it [11:25:42]req_shift_open_date [11:25:42]req_shift_open_date done [11:25:42]produce_requested_data done [11:25:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188660,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:25:42]process_action_free close_receipt [11:25:42]json_value_free [11:25:42]json_value_free done [11:25:42]process_json_proto returns [11:25:42]Send response to host [11:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188660,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:25:42]free response buf [11:25:42]execute_script done [11:25:42]execute_script returns [11:25:42]free content buf [11:25:42]Sock 8.Close socket [11:25:42]Sock 8.Thread stoped [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:48]accept exits with 9 [11:26:48]New connection [11:26:48]New thread 3067211108 created [11:26:48]Thread 3067067748 joined [11:26:48]Waiting for new connection... [11:26:48] Sock 9.Parse request [11:26:48]Sock 9.Check first char [11:26:48]Sock 9.First char is OK [11:26:48]request: POST /json_proto HTTP/1.0 [11:26:48]Method: POST [11:26:48]URL: /json_proto [11:26:48]Method is POST - this is cgi request [11:26:48]url: /json_proto [11:26:48]query_string will be loaded in cgi processing [11:26:48]execute_cgi json_proto POST (null) [11:26:48]execute_cgi path=json_proto method=POST [11:26:48]POST find Content-Length [11:26:48]Host: 172.17.42.131:8080 [11:26:48]Content-Length: 678 [11:26:48]Content-Type: application/json [11:26:48] [11:26:48]POST finish read [11:26:48]Found Content-Length = 678 [11:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:48]execute_script... [11:26:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:48]POST & json_proto [11:26:48]process_json_proto [11:26:48]json parsed OK: [11:26:48]protocol is kg_v1.0 [11:26:48]action value=close_receipt [11:26:48]process_action close_receipt [11:26:48]cmd_close_receipt [11:26:48]MH_GetDate [11:26:48]Write to MH i2c: F0 00 00 CD 04 C0 [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 09 00 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 09 00 CD 04 00 79 DD 18 67 A0 18 CA 66 86 [11:26:48]GetLastDocTimeStamp 1729682738 [11:26:48]current date 1729682809 [11:26:48]FM_GetShiftState [11:26:48]SAM_PROTO_GetShiftState [11:26:48]wFMCommunicate request_size=4 [11:26:48]MH_SAM_APDU [11:26:48]CAPDU: 80 13 01 00 [11:26:48]Write to MH i2c: E2 08 00 CE 04 80 13 01 00 00 00 00 00 4F [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:48]Read from MH i2c: E2 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: E2 0E 00 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: E2 0E 00 CE 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 37 [11:26:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:26:48]wFMCommunicate OK [11:26:48]SAM_PROTO_GetShiftState done [11:26:48]FM_GetShiftState done [11:26:48]opened in 1729642525 [11:26:48]opened+sec_in_day 1729728925 [11:26:48]quantity*price = 70044 [11:26:48]sum+1 = 70045 [11:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 119 23.10.2024 11:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188661 ФПД: 74682349171852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112649&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188661&fm=74682349171852&tin=02508201610067®Number=0000000000100030&sum=70000 [11:26:49]StoreToDocumentArchive [11:26:49]shift 462 fd 188661 [11:26:49]save to /storage/0462/doc_00188661 [11:26:49]save last doc name /storage/0462/doc_00188661 to /storage/kkm_last_doc_name [11:26:49]save OK [11:26:49]Clear old archive folders... [11:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:49]tlvbuf is 020C5E70 [11:26:49]SAM_PROTO_ClearQueue [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 09 00 00 [11:26:49]Write to MH i2c: E2 08 00 DB 04 80 09 00 00 00 00 00 00 51 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [11:26:49]RAPDU: 90 00 [11:26:49]wFMCommunicate OK [11:26:49]SAM_PROTO_ClearQueue done [11:26:49]KKMCreateOFDPacket [11:26:49]OFDProtocolAddRootSTLVToBuf [11:26:49]FM_MakeSignedData [11:26:49]FM_MakeSignedData [11:26:49]SAM_PROTO_SignData [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 0D 01 02 [11:26:49]Write to MH i2c: E2 08 00 DC 04 80 0D 01 02 00 00 00 00 59 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [11:26:49]RAPDU: 90 00 [11:26:49]wFMCommunicate OK [11:26:49]wFMCommunicate request_size=255 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 79 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E0 02 00 35 04 06 00 43 [11:26:49]Write to MH i2c: E2 02 01 DD 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 79 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E0 02 00 35 04 06 00 43 00 00 11 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [11:26:49]RAPDU: 90 00 [11:26:49]wFMCommunicate OK [11:26:49]wFMCommunicate request_size=10 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 0D 02 02 05 EC 56 E4 B4 8C [11:26:49]Write to MH i2c: E2 0D 00 DE 04 80 0D 02 02 05 00 EC 56 E4 B4 8C 00 00 CC [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [11:26:49]RAPDU: 90 00 [11:26:49]wFMCommunicate OK [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 0D 03 02 [11:26:49]Write to MH i2c: E2 08 00 DF 04 80 0D 03 02 00 00 00 00 5E [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 0B 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 0B 00 DF 04 00 8C 68 57 9E 88 DA 98 8E 90 00 D0 [11:26:49]RAPDU: 8C 68 57 9E 88 DA 98 8E 90 00 [11:26:49]wFMCommunicate OK [11:26:49]SAM_PROTO_SignData done [11:26:49]FM_MakeSignedData done [11:26:49]CreateOFDProtocolMessage [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 11 00 00 [11:26:49]Write to MH i2c: E2 08 00 E0 04 80 11 00 00 00 00 00 00 5E [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 17 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 17 00 E0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [11:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:26:49]wFMCommunicate OK [11:26:49]CreateOFDProtocolMessage done [11:26:49]OFDSenderStorePacket 188661 [11:26:49]StoreOFDPacket docnum=188661 [11:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 5F 07 01 78 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 79 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E0 02 00 35 04 06 00 43 EC 56 E4 B4 8C 8C 68 57 9E 88 DA 98 8E [11:26:49]CheckFolder [11:26:49]dirname=/storage/ofd_packets [11:26:49]CheckFolder done [11:26:49]ProducePacketName [11:26:49]name=ofd_packets/00188661 [11:26:49]NVStorageSaveData ofd_packets/00188661 [11:26:49]File name is /storage/ofd_packets/00188661 [11:26:49]Write 301 bytes [11:26:49]NVStorageSaveData done [11:26:49]OFDSenderStorePacket done [11:26:49]KKMCreateOFDPacket done [11:26:49]NVStorageSaveData kkm_last_timestamp [11:26:49]File name is /storage/kkm_last_timestamp [11:26:49]Write 4 bytes [11:26:49]NVStorageSaveData done [11:26:49]ExternCall_PrintAddStr [11:26:49]wPrintStart [11:26:49]Write to MH i2c: 01 00 00 E1 04 E5 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: 01 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: 01 07 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 FF 0F FA [11:26:49]RasterBufferAndPrint [11:26:49]line Счет N : (1)210722 [11:26:49]line ИНН: 02508201610067 [11:26:49]line Контрольно-Кассовый Чек [11:26:49]line ПРОДАЖА [11:26:49]line ТРК (МРК, ГНК) : 32 [11:26:49]line Товар: 2710124130 [11:26:49]line Аи-92-К-3 [11:26:49]line 10.470 * 66.90 [11:26:49]line = 700.44 [11:26:49]line НДС 12% НСП 1% [11:26:49]line > о реализуемом товаре [11:26:49]line ОКРУГЛЕНИЕ: -0.44 [11:26:49]line ИТОГО: 700.00 [11:26:49]line Внесено: 700.00 [11:26:49]line СДАЧА: 0.00 [11:26:49]line НСП 1% : 6.20 [11:26:49]line НДС 12% : 74.38 [11:26:49]line Наличными: 700.00 [11:26:49]line Безнал.: 0.00 [11:26:49]line Место: АЗС № 86 "Партнер Нефть" [11:26:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:26:49]line СНО: Общий режим [11:26:49]line Чек 119 23.10.2024 11:26 [11:26:49]line Смена: 462 ФФД: 1.0 [11:26:49]line ЗНМ: 0300000155 [11:26:49]line РНМ: 0000000000100030 [11:26:49]line Версия ККМ: 001 [11:26:49]line ФМ: 0000000000965340 [11:26:49]line ФД: 188661 [11:26:49]line ФПД: 74682349171852 [11:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112649&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188661&fm=74682349171852&tin=02508201610067®Number=0000000000100030&sum=70000 [11:26:49]written 0, free lines is 4095 [11:26:49]OFD Sender: Processing packet 188661 [packets to send 1062, broken 1061] [11:26:49]ProducePacketName [11:26:49]name=ofd_packets/00188661 [11:26:49]OFD Sender: To server: pG, [11:26:49]CommunicateWithHost lk.salyk.kg:30040 [11:26:49]ConnectInit lk.salyk.kg [11:26:50]Connected sock=11 [11:26:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 5F 07 01 78 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 79 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E0 02 00 35 04 06 00 43 EC 56 E4 B4 8C 8C 68 57 9E 88 DA 98 8E [11:26:50]Write to MH i2c: 01 00 00 0C 05 11 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 07 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 4F 0C 73 [11:26:50]RasterBufferAndPrint [11:26:50]line [11:26:50]line [11:26:50]line [11:26:50]line [11:26:50]line [11:26:50]written 0, free lines is 3153 [11:26:50]MH_Cut [11:26:50]Write to MH i2c: D1 01 00 13 05 01 EA [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: D1 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: D1 01 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: D1 01 00 13 05 00 E9 [11:26:50]Write to MH i2c: 01 00 00 14 05 19 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 1B 47 00 CA 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 36 35 33 34 30 10 04 04 00 F5 E0 02 00 F4 03 04 00 63 87 18 67 B6 04 01 00 00 B9 95 DF 77 ED 7A 13 23 [11:26:50]CommunicateWithHost err = 0 [11:26:50]CheckOFDResponse [11:26:50]1017 (14) - 77093643461234 [11:26:50]1041 (16) - 0000000000965340 [11:26:50]1040 (4) - 188661 [11:26:50]1012 (4) - 23.10.2024 05:19 [11:26:50]1206 (1) - 0 [11:26:50]OFD Sender: Remove packet 188661 [11:26:50]ProducePacketName [11:26:50]name=ofd_packets/00188661 [11:26:50]NVStorageDeleteData [11:26:50]OFD Sender: No OFD packet to send [11:26:51]*** Cut start [11:26:51]*** Partial cut [11:26:51]*** CUTSNS_PIN = 1 [11:26:51]*** CUTSNS_PIN = 0 [11:26:51]*** Brake cut motor [11:26:52]Read from MH i2c: 01 [11:26:52]MH_I2C_Read... [11:26:52]*** Stop cut motor [11:26:52]*** Cut end [11:26:52]Read from MH i2c: 01 07 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: 01 07 00 14 05 00 00 00 00 00 FF 0F 2E [11:26:52]process_action close_receipt done [11:26:52]requested_data is exist [11:26:52]produce_requested_data [11:26:52]requested_item fm.sn is exist - process it [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 11 00 00 [11:26:52]Write to MH i2c: E2 08 00 15 05 80 11 00 00 00 00 00 00 94 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 17 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 17 00 15 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [11:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:26:52]wFMCommunicate OK [11:26:52]requested_item fd.num is exist - process it [11:26:52]SAM_PROTO_GetFieldsCounters [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 13 00 00 [11:26:52]Write to MH i2c: E2 08 00 16 05 80 13 00 00 00 00 00 00 97 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 62 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 62 00 16 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:26:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_GetFieldsCounters done [11:26:52]requested_item shift.num is exist - process it [11:26:52]requested_item shift.opened is exist - process it [11:26:52]req_shift_opened [11:26:52]FM_GetShiftState [11:26:52]SAM_PROTO_GetShiftState [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 13 01 00 [11:26:52]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 0E 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 81 [11:26:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_GetShiftState done [11:26:52]FM_GetShiftState done [11:26:52]req_shift_opened done [11:26:52]requested_item shift.open_date is exist - process it [11:26:52]req_shift_open_date [11:26:52]req_shift_open_date done [11:26:52]produce_requested_data done [11:26:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188661,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:26:52]process_action_free close_receipt [11:26:52]json_value_free [11:26:52]json_value_free done [11:26:52]process_json_proto returns [11:26:52]Send response to host [11:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188661,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:26:52]free response buf [11:26:52]execute_script done [11:26:52]execute_script returns [11:26:52]free content buf [11:26:52]Sock 9.Close socket [11:26:52]Sock 9.Thread stoped [11:26:55]accept exits with 8 [11:26:55]New connection [11:26:55]New thread 3067067748 created [11:26:55]Thread 3067211108 joined [11:26:55]Waiting for new connection... [11:26:55] Sock 8.Parse request [11:26:55]Sock 8.Check first char [11:26:55]Sock 8.First char is OK [11:26:55]request: POST /json_proto HTTP/1.0 [11:26:55]Method: POST [11:26:55]URL: /json_proto [11:26:55]Method is POST - this is cgi request [11:26:55]url: /json_proto [11:26:55]query_string will be loaded in cgi processing [11:26:55]execute_cgi json_proto POST (null) [11:26:55]execute_cgi path=json_proto method=POST [11:26:55]POST find Content-Length [11:26:55]Host: 172.17.42.131:8080 [11:26:55]Content-Length: 677 [11:26:55]Content-Type: application/json [11:26:55] [11:26:55]POST finish read [11:26:55]Found Content-Length = 677 [11:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.170, "sum" : 680.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:55]execute_script... [11:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.170, "sum" : 680.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:55]POST & json_proto [11:26:55]process_json_proto [11:26:55]json parsed OK: [11:26:55]protocol is kg_v1.0 [11:26:55]action value=close_receipt [11:26:55]process_action close_receipt [11:26:55]cmd_close_receipt [11:26:55]MH_GetDate [11:26:55]Write to MH i2c: F0 00 00 18 05 0C [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: F0 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: F0 09 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: F0 09 00 18 05 00 80 DD 18 67 A0 18 CA 66 D9 [11:26:55]GetLastDocTimeStamp 1729682809 [11:26:55]current date 1729682816 [11:26:55]FM_GetShiftState [11:26:55]SAM_PROTO_GetShiftState [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 13 01 00 [11:26:55]Write to MH i2c: E2 08 00 19 05 80 13 01 00 00 00 00 00 9B [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0E 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0E 00 19 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 83 [11:26:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:26:55]wFMCommunicate OK [11:26:55]SAM_PROTO_GetShiftState done [11:26:55]FM_GetShiftState done [11:26:55]opened in 1729642525 [11:26:55]opened+sec_in_day 1729728925 [11:26:55]quantity*price = 68041 [11:26:55]sum+1 = 68042 [11:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.26 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 120 23.10.2024 11:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188662 ФПД: 185260725672059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188662&fm=185260725672059&tin=02508201610067®Number=0000000000100030&sum=68000 [11:26:56]StoreToDocumentArchive [11:26:56]shift 462 fd 188662 [11:26:56]save to /storage/0462/doc_00188662 [11:26:56]save last doc name /storage/0462/doc_00188662 to /storage/kkm_last_doc_name [11:26:56]save OK [11:26:56]Clear old archive folders... [11:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:56]tlvbuf is 020928A0 [11:26:56]SAM_PROTO_ClearQueue [11:26:56]wFMCommunicate request_size=4 [11:26:56]MH_SAM_APDU [11:26:56]CAPDU: 80 09 00 00 [11:26:56]Write to MH i2c: E2 08 00 26 05 80 09 00 00 00 00 00 00 9D [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:56]Read from MH i2c: E2 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 03 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [11:26:56]RAPDU: 90 00 [11:26:56]wFMCommunicate OK [11:26:56]SAM_PROTO_ClearQueue done [11:26:56]KKMCreateOFDPacket [11:26:56]OFDProtocolAddRootSTLVToBuf [11:26:56]FM_MakeSignedData [11:26:56]FM_MakeSignedData [11:26:56]SAM_PROTO_SignData [11:26:56]wFMCommunicate request_size=4 [11:26:56]MH_SAM_APDU [11:26:56]CAPDU: 80 0D 01 02 [11:26:56]Write to MH i2c: E2 08 00 27 05 80 0D 01 02 00 00 00 00 A5 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:56]Read from MH i2c: E2 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 03 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [11:26:56]RAPDU: 90 00 [11:26:56]wFMCommunicate OK [11:26:56]wFMCommunicate request_size=255 [11:26:56]MH_SAM_APDU [11:26:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C9 09 01 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 3A 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 78 00 00 00 F4 03 04 00 80 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E0 02 00 35 04 06 00 A8 [11:26:56]Write to MH i2c: E2 02 01 28 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C9 09 01 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 3A 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 78 00 00 00 F4 03 04 00 80 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E0 02 00 35 04 06 00 A8 00 00 20 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:56]Read from MH i2c: E2 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 03 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [11:26:56]RAPDU: 90 00 [11:26:56]wFMCommunicate OK [11:26:56]wFMCommunicate request_size=10 [11:26:56]MH_SAM_APDU [11:26:56]CAPDU: 80 0D 02 02 05 7E 5F BE 98 7B [11:26:56]Write to MH i2c: E2 0D 00 29 05 80 0D 02 02 05 00 7E 5F BE 98 7B 00 00 60 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:56]Read from MH i2c: E2 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 03 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [11:26:56]RAPDU: 90 00 [11:26:56]wFMCommunicate OK [11:26:56]wFMCommunicate request_size=4 [11:26:56]MH_SAM_APDU [11:26:56]CAPDU: 80 0D 03 02 [11:26:56]Write to MH i2c: E2 08 00 2A 05 80 0D 03 02 00 00 00 00 AA [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:56]Read from MH i2c: E2 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 0B 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 0B 00 2A 05 00 2D E9 E4 D0 E8 22 5B 37 90 00 11 [11:26:56]RAPDU: 2D E9 E4 D0 E8 22 5B 37 90 00 [11:26:56]wFMCommunicate OK [11:26:56]SAM_PROTO_SignData done [11:26:56]FM_MakeSignedData done [11:26:56]CreateOFDProtocolMessage [11:26:56]wFMCommunicate request_size=4 [11:26:56]MH_SAM_APDU [11:26:56]CAPDU: 80 11 00 00 [11:26:56]Write to MH i2c: E2 08 00 2B 05 80 11 00 00 00 00 00 00 AA [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:56]Read from MH i2c: E2 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 17 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 17 00 2B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [11:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:26:56]wFMCommunicate OK [11:26:56]CreateOFDProtocolMessage done [11:26:56]OFDSenderStorePacket 188662 [11:26:56]StoreOFDPacket docnum=188662 [11:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D9 0F 07 01 08 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C9 09 01 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 3A 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 78 00 00 00 F4 03 04 00 80 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E0 02 00 35 04 06 00 A8 7E 5F BE 98 7B 2D E9 E4 D0 E8 22 5B 37 [11:26:56]CheckFolder [11:26:56]dirname=/storage/ofd_packets [11:26:56]CheckFolder done [11:26:56]ProducePacketName [11:26:56]name=ofd_packets/00188662 [11:26:56]NVStorageSaveData ofd_packets/00188662 [11:26:56]File name is /storage/ofd_packets/00188662 [11:26:56]Write 301 bytes [11:26:56]NVStorageSaveData done [11:26:56]OFDSenderStorePacket done [11:26:56]KKMCreateOFDPacket done [11:26:56]NVStorageSaveData kkm_last_timestamp [11:26:56]File name is /storage/kkm_last_timestamp [11:26:56]Write 4 bytes [11:26:56]NVStorageSaveData done [11:26:56]ExternCall_PrintAddStr [11:26:56]wPrintStart [11:26:56]Write to MH i2c: 01 00 00 2C 05 31 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 07 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 07 00 2C 05 00 00 00 00 00 FF 0F 46 [11:26:56]RasterBufferAndPrint [11:26:56]line Счет N : (1)210721 [11:26:56]line ИНН: 02508201610067 [11:26:56]line Контрольно-Кассовый Чек [11:26:56]line ПРОДАЖА [11:26:56]line ТРК (МРК, ГНК) : 23 [11:26:56]line Товар: 2710124500 [11:26:56]line Аи-95-К-3 [11:26:56]line 9.170 * 74.20 [11:26:56]line = 680.41 [11:26:56]line НДС 12% НСП 1% [11:26:56]line > о реализуемом товаре [11:26:56]line ОКРУГЛЕНИЕ: -0.41 [11:26:56]line ИТОГО: 680.00 [11:26:56]line Внесено: 680.00 [11:26:56]line СДАЧА: 0.00 [11:26:56]line НСП 1% : 6.02 [11:26:56]line НДС 12% : 72.26 [11:26:56]line Наличными: 680.00 [11:26:56]line Безнал.: 0.00 [11:26:56]line Место: АЗС № 86 "Партнер Нефть" [11:26:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:26:56]line СНО: Общий режим [11:26:56]line Чек 120 23.10.2024 11:26 [11:26:56]line Смена: 462 ФФД: 1.0 [11:26:56]line ЗНМ: 0300000155 [11:26:56]line РНМ: 0000000000100030 [11:26:56]line Версия ККМ: 001 [11:26:56]line ФМ: 0000000000965340 [11:26:56]line ФД: 188662 [11:26:56]line ФПД: 185260725672059 [11:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188662&fm=185260725672059&tin=02508201610067®Number=0000000000100030&sum=68000 [11:26:56]written 0, free lines is 4095 [11:26:56]OFD Sender: Processing packet 188662 [packets to send 1062, broken 1061] [11:26:56]ProducePacketName [11:26:56]name=ofd_packets/00188662 [11:26:56]OFD Sender: To server: pG, [11:26:56]CommunicateWithHost lk.salyk.kg:30040 [11:26:56]ConnectInit lk.salyk.kg [11:26:56]Connected sock=10 [11:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D9 0F 07 01 08 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 23 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C9 09 01 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 3A 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 78 00 00 00 F4 03 04 00 80 DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E0 02 00 35 04 06 00 A8 7E 5F BE 98 7B 2D E9 E4 D0 E8 22 5B 37 [11:26:57]Write to MH i2c: 01 00 00 57 05 5C [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: 01 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: 01 07 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: 01 07 00 57 05 00 00 00 00 00 61 0C D0 [11:26:57]RasterBufferAndPrint [11:26:57]line [11:26:57]line [11:26:57]line [11:26:57]line [11:26:57]line [11:26:57]written 0, free lines is 3174 [11:26:57]MH_Cut [11:26:57]Write to MH i2c: D1 01 00 5E 05 01 35 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: D1 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: D1 01 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: D1 01 00 5E 05 00 34 [11:26:57]Write to MH i2c: 01 00 00 5F 05 64 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F6 75 47 00 E6 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E0 02 00 F4 03 04 00 6A 87 18 67 B6 04 01 00 00 90 9F 63 7D 90 7A 61 AF [11:26:57]CommunicateWithHost err = 0 [11:26:57]CheckOFDResponse [11:26:57]1017 (14) - 77093643461234 [11:26:57]1041 (16) - 0000000000965340 [11:26:57]1040 (4) - 188662 [11:26:57]1012 (4) - 23.10.2024 05:19 [11:26:57]1206 (1) - 0 [11:26:57]OFD Sender: Remove packet 188662 [11:26:57]ProducePacketName [11:26:57]name=ofd_packets/00188662 [11:26:57]NVStorageDeleteData [11:26:57]OFD Sender: No OFD packet to send [11:26:58]*** Cut start [11:26:58]*** Partial cut [11:26:58]*** CUTSNS_PIN = 1 [11:26:58]*** CUTSNS_PIN = 0 [11:26:58]*** Brake cut motor [11:26:59]Read from MH i2c: 01 [11:26:59]MH_I2C_Read... [11:26:59]*** Stop cut motor [11:26:59]*** Cut end [11:26:59]Read from MH i2c: 01 07 00 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 FF 0F 79 [11:26:59]process_action close_receipt done [11:26:59]requested_data is exist [11:26:59]produce_requested_data [11:26:59]requested_item fm.sn is exist - process it [11:26:59]wFMCommunicate request_size=4 [11:26:59]MH_SAM_APDU [11:26:59]CAPDU: 80 11 00 00 [11:26:59]Write to MH i2c: E2 08 00 60 05 80 11 00 00 00 00 00 00 DF [11:26:59]Write i2c OK [11:26:59]MH_I2C_Read... [11:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:59]Read from MH i2c: E2 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 17 00 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 17 00 60 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [11:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:26:59]wFMCommunicate OK [11:26:59]requested_item fd.num is exist - process it [11:26:59]SAM_PROTO_GetFieldsCounters [11:26:59]wFMCommunicate request_size=4 [11:26:59]MH_SAM_APDU [11:26:59]CAPDU: 80 13 00 00 [11:26:59]Write to MH i2c: E2 08 00 61 05 80 13 00 00 00 00 00 00 E2 [11:26:59]Write i2c OK [11:26:59]MH_I2C_Read... [11:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:59]Read from MH i2c: E2 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 62 00 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 62 00 61 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [11:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:59]wFMCommunicate OK [11:26:59]SAM_PROTO_GetFieldsCounters done [11:26:59]requested_item shift.num is exist - process it [11:26:59]requested_item shift.opened is exist - process it [11:26:59]req_shift_opened [11:26:59]FM_GetShiftState [11:26:59]SAM_PROTO_GetShiftState [11:26:59]wFMCommunicate request_size=4 [11:26:59]MH_SAM_APDU [11:26:59]CAPDU: 80 13 01 00 [11:26:59]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [11:26:59]Write i2c OK [11:26:59]MH_I2C_Read... [11:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:59]Read from MH i2c: E2 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 0E 00 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CC [11:26:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:26:59]wFMCommunicate OK [11:26:59]SAM_PROTO_GetShiftState done [11:26:59]FM_GetShiftState done [11:26:59]req_shift_opened done [11:26:59]requested_item shift.open_date is exist - process it [11:26:59]req_shift_open_date [11:26:59]req_shift_open_date done [11:26:59]produce_requested_data done [11:26:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188662,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:26:59]process_action_free close_receipt [11:26:59]json_value_free [11:26:59]json_value_free done [11:26:59]process_json_proto returns [11:26:59]Send response to host [11:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188662,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:26:59]free response buf [11:26:59]execute_script done [11:26:59]execute_script returns [11:26:59]free content buf [11:26:59]Sock 8.Close socket [11:26:59]Sock 8.Thread stoped [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:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:28]accept exits with 9 [11:28:28]New connection [11:28:28]New thread 3067211108 created [11:28:28]Thread 3067067748 joined [11:28:28]Waiting for new connection... [11:28:28] Sock 9.Parse request [11:28:28]Sock 9.Check first char [11:28:28]Sock 9.First char is OK [11:28:28]request: POST /json_proto HTTP/1.0 [11:28:28]Method: POST [11:28:28]URL: /json_proto [11:28:28]Method is POST - this is cgi request [11:28:28]url: /json_proto [11:28:28]query_string will be loaded in cgi processing [11:28:28]execute_cgi json_proto POST (null) [11:28:28]execute_cgi path=json_proto method=POST [11:28:28]POST find Content-Length [11:28:28]Host: 172.17.42.131:8080 [11:28:28]Content-Length: 677 [11:28:28]Content-Type: application/json [11:28:28] [11:28:28]POST finish read [11:28:28]Found Content-Length = 677 [11:28:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:28]execute_script... [11:28:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:28]POST & json_proto [11:28:28]process_json_proto [11:28:28]json parsed OK: [11:28:28]protocol is kg_v1.0 [11:28:28]action value=close_receipt [11:28:28]process_action close_receipt [11:28:28]cmd_close_receipt [11:28:28]MH_GetDate [11:28:28]Write to MH i2c: F0 00 00 63 05 57 [11:28:28]Write i2c OK [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: F0 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: F0 09 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: F0 09 00 63 05 00 DD DD 18 67 A0 18 CA 66 81 [11:28:28]GetLastDocTimeStamp 1729682816 [11:28:28]current date 1729682909 [11:28:28]FM_GetShiftState [11:28:28]SAM_PROTO_GetShiftState [11:28:28]wFMCommunicate request_size=4 [11:28:28]MH_SAM_APDU [11:28:28]CAPDU: 80 13 01 00 [11:28:28]Write to MH i2c: E2 08 00 64 05 80 13 01 00 00 00 00 00 E6 [11:28:28]Write i2c OK [11:28:28]MH_I2C_Read... [11:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:28]Read from MH i2c: E2 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 0E 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 0E 00 64 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CE [11:28:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:28:28]wFMCommunicate OK [11:28:28]SAM_PROTO_GetShiftState done [11:28:28]FM_GetShiftState done [11:28:28]opened in 1729642525 [11:28:28]opened+sec_in_day 1729728925 [11:28:28]quantity*price = 20003 [11:28:28]sum+1 = 20004 [11:28:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 121 23.10.2024 11:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188663 ФПД: 69668036264482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112829&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188663&fm=69668036264482&tin=02508201610067®Number=0000000000100030&sum=20000 [11:28:29]StoreToDocumentArchive [11:28:29]shift 462 fd 188663 [11:28:29]save to /storage/0462/doc_00188663 [11:28:29]save last doc name /storage/0462/doc_00188663 to /storage/kkm_last_doc_name [11:28:29]save OK [11:28:29]Clear old archive folders... [11:28:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:29]tlvbuf is 0208C940 [11:28:29]SAM_PROTO_ClearQueue [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 09 00 00 [11:28:29]Write to MH i2c: E2 08 00 71 05 80 09 00 00 00 00 00 00 E8 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [11:28:29]RAPDU: 90 00 [11:28:29]wFMCommunicate OK [11:28:29]SAM_PROTO_ClearQueue done [11:28:29]KKMCreateOFDPacket [11:28:29]OFDProtocolAddRootSTLVToBuf [11:28:29]FM_MakeSignedData [11:28:29]FM_MakeSignedData [11:28:29]SAM_PROTO_SignData [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 0D 01 02 [11:28:29]Write to MH i2c: E2 08 00 72 05 80 0D 01 02 00 00 00 00 F0 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [11:28:29]RAPDU: 90 00 [11:28:29]wFMCommunicate OK [11:28:29]wFMCommunicate request_size=255 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DD DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E0 02 00 35 04 06 00 3F [11:28:29]Write to MH i2c: E2 02 01 73 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DD DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E0 02 00 35 04 06 00 3F 00 00 BE [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [11:28:29]RAPDU: 90 00 [11:28:29]wFMCommunicate OK [11:28:29]wFMCommunicate request_size=10 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 0D 02 02 05 5C DA 8D C2 22 [11:28:29]Write to MH i2c: E2 0D 00 74 05 80 0D 02 02 05 00 5C DA 8D C2 22 00 00 A4 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:29]Read from MH i2c: E2 03 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [11:28:29]RAPDU: 90 00 [11:28:29]wFMCommunicate OK [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 0D 03 02 [11:28:29]Write to MH i2c: E2 08 00 75 05 80 0D 03 02 00 00 00 00 F5 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 0B 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 0B 00 75 05 00 A8 C0 82 44 4D 2E 92 C6 90 00 F7 [11:28:29]RAPDU: A8 C0 82 44 4D 2E 92 C6 90 00 [11:28:29]wFMCommunicate OK [11:28:29]SAM_PROTO_SignData done [11:28:29]FM_MakeSignedData done [11:28:29]CreateOFDProtocolMessage [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 11 00 00 [11:28:29]Write to MH i2c: E2 08 00 76 05 80 11 00 00 00 00 00 00 F5 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 17 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 17 00 76 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [11:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:28:29]wFMCommunicate OK [11:28:29]CreateOFDProtocolMessage done [11:28:29]OFDSenderStorePacket 188663 [11:28:29]StoreOFDPacket docnum=188663 [11:28:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FC 3D 07 01 94 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DD DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E0 02 00 35 04 06 00 3F 5C DA 8D C2 22 A8 C0 82 44 4D 2E 92 C6 [11:28:29]CheckFolder [11:28:29]dirname=/storage/ofd_packets [11:28:29]CheckFolder done [11:28:29]ProducePacketName [11:28:29]name=ofd_packets/00188663 [11:28:29]NVStorageSaveData ofd_packets/00188663 [11:28:29]File name is /storage/ofd_packets/00188663 [11:28:29]Write 301 bytes [11:28:29]NVStorageSaveData done [11:28:29]OFDSenderStorePacket done [11:28:29]KKMCreateOFDPacket done [11:28:29]NVStorageSaveData kkm_last_timestamp [11:28:29]File name is /storage/kkm_last_timestamp [11:28:29]Write 4 bytes [11:28:29]NVStorageSaveData done [11:28:30]ExternCall_PrintAddStr [11:28:30]wPrintStart [11:28:30]Write to MH i2c: 01 00 00 77 05 7C [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 07 00 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 07 00 77 05 00 00 00 00 00 FF 0F 91 [11:28:30]RasterBufferAndPrint [11:28:30]line Счет N : (1)210723 [11:28:30]line ИНН: 02508201610067 [11:28:30]line Контрольно-Кассовый Чек [11:28:30]line ПРОДАЖА [11:28:30]line ТРК (МРК, ГНК) : 12 [11:28:30]line Товар: 2710124130 [11:28:30]line Аи-92-К-3 [11:28:30]line 2.990 * 66.90 [11:28:30]line = 200.03 [11:28:30]line НДС 12% НСП 1% [11:28:30]line > о реализуемом товаре [11:28:30]line ОКРУГЛЕНИЕ: -0.03 [11:28:30]line ИТОГО: 200.00 [11:28:30]line Внесено: 200.00 [11:28:30]line СДАЧА: 0.00 [11:28:30]line НСП 1% : 1.77 [11:28:30]line НДС 12% : 21.24 [11:28:30]line Наличными: 200.00 [11:28:30]line Безнал.: 0.00 [11:28:30]line Место: АЗС № 86 "Партнер Нефть" [11:28:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:28:30]line СНО: Общий режим [11:28:30]line Чек 121 23.10.2024 11:28 [11:28:30]line Смена: 462 ФФД: 1.0 [11:28:30]line ЗНМ: 0300000155 [11:28:30]line РНМ: 0000000000100030 [11:28:30]line Версия ККМ: 001 [11:28:30]line ФМ: 0000000000965340 [11:28:30]line ФД: 188663 [11:28:30]line ФПД: 69668036264482 [11:28:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112829&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188663&fm=69668036264482&tin=02508201610067®Number=0000000000100030&sum=20000 [11:28:30]written 0, free lines is 4095 [11:28:30]OFD Sender: Processing packet 188663 [packets to send 1062, broken 1061] [11:28:30]ProducePacketName [11:28:30]name=ofd_packets/00188663 [11:28:30]OFD Sender: To server: pG, [11:28:30]CommunicateWithHost lk.salyk.kg:30040 [11:28:30]ConnectInit lk.salyk.kg [11:28:30]Connected sock=10 [11:28:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FC 3D 07 01 94 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DD DD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E0 02 00 35 04 06 00 3F 5C DA 8D C2 22 A8 C0 82 44 4D 2E 92 C6 [11:28:30]Write to MH i2c: 01 00 00 A2 05 A7 [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 07 00 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 5A 0C 14 [11:28:30]RasterBufferAndPrint [11:28:30]line [11:28:30]line [11:28:30]line [11:28:30]line [11:28:30]line [11:28:30]written 0, free lines is 3166 [11:28:30]MH_Cut [11:28:30]Write to MH i2c: D1 01 00 A9 05 01 80 [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: D1 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: D1 01 00 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: D1 01 00 A9 05 00 7F [11:28:30]Write to MH i2c: 01 00 00 AA 05 AF [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE 81 47 00 48 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E0 02 00 F4 03 04 00 C8 87 18 67 B6 04 01 00 00 EA 34 11 FB D9 44 81 50 [11:28:30]CommunicateWithHost err = 0 [11:28:30]CheckOFDResponse [11:28:30]1017 (14) - 77093643461234 [11:28:30]1041 (16) - 0000000000965340 [11:28:30]1040 (4) - 188663 [11:28:30]1012 (4) - 23.10.2024 05:21 [11:28:30]1206 (1) - 0 [11:28:30]OFD Sender: Remove packet 188663 [11:28:30]ProducePacketName [11:28:30]name=ofd_packets/00188663 [11:28:30]NVStorageDeleteData [11:28:31]OFD Sender: No OFD packet to send [11:28:31]*** Cut start [11:28:31]*** Partial cut [11:28:31]*** CUTSNS_PIN = 1 [11:28:31]*** CUTSNS_PIN = 0 [11:28:32]*** Brake cut motor [11:28:32]Read from MH i2c: 01 [11:28:32]MH_I2C_Read... [11:28:32]*** Stop cut motor [11:28:32]*** Cut end [11:28:32]Read from MH i2c: 01 07 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: 01 07 00 AA 05 00 00 00 00 00 FF 0F C4 [11:28:32]process_action close_receipt done [11:28:32]requested_data is exist [11:28:32]produce_requested_data [11:28:32]requested_item fm.sn is exist - process it [11:28:32]wFMCommunicate request_size=4 [11:28:32]MH_SAM_APDU [11:28:32]CAPDU: 80 11 00 00 [11:28:32]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 17 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [11:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:28:32]wFMCommunicate OK [11:28:32]requested_item fd.num is exist - process it [11:28:32]SAM_PROTO_GetFieldsCounters [11:28:32]wFMCommunicate request_size=4 [11:28:32]MH_SAM_APDU [11:28:32]CAPDU: 80 13 00 00 [11:28:32]Write to MH i2c: E2 08 00 AC 05 80 13 00 00 00 00 00 00 2D [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 62 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 62 00 AC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [11:28:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:32]wFMCommunicate OK [11:28:32]SAM_PROTO_GetFieldsCounters done [11:28:32]requested_item shift.num is exist - process it [11:28:32]requested_item shift.opened is exist - process it [11:28:32]req_shift_opened [11:28:32]FM_GetShiftState [11:28:32]SAM_PROTO_GetShiftState [11:28:32]wFMCommunicate request_size=4 [11:28:32]MH_SAM_APDU [11:28:32]CAPDU: 80 13 01 00 [11:28:32]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 0E 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 17 [11:28:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:28:32]wFMCommunicate OK [11:28:32]SAM_PROTO_GetShiftState done [11:28:32]FM_GetShiftState done [11:28:32]req_shift_opened done [11:28:32]requested_item shift.open_date is exist - process it [11:28:32]req_shift_open_date [11:28:32]req_shift_open_date done [11:28:32]produce_requested_data done [11:28:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188663,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:28:32]process_action_free close_receipt [11:28:32]json_value_free [11:28:32]json_value_free done [11:28:32]process_json_proto returns [11:28:32]Send response to host [11:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188663,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:28:32]free response buf [11:28:32]execute_script done [11:28:32]execute_script returns [11:28:32]free content buf [11:28:32]Sock 9.Close socket [11:28:32]Sock 9.Thread stoped [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]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:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:18]accept exits with 8 [11:33:18]New connection [11:33:18]New thread 3067067748 created [11:33:18]Thread 3067211108 joined [11:33:18]Waiting for new connection... [11:33:18] Sock 8.Parse request [11:33:18]Sock 8.Check first char [11:33:18]Sock 8.First char is OK [11:33:18]request: POST /json_proto HTTP/1.0 [11:33:18]Method: POST [11:33:18]URL: /json_proto [11:33:18]Method is POST - this is cgi request [11:33:18]url: /json_proto [11:33:18]query_string will be loaded in cgi processing [11:33:18]execute_cgi json_proto POST (null) [11:33:18]execute_cgi path=json_proto method=POST [11:33:18]POST find Content-Length [11:33:18]Host: 172.17.42.131:8080 [11:33:18]Content-Length: 678 [11:33:18]Content-Type: application/json [11:33:18] [11:33:18]POST finish read [11:33:18]Found Content-Length = 678 [11:33:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:18]execute_script... [11:33:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:18]POST & json_proto [11:33:18]process_json_proto [11:33:18]json parsed OK: [11:33:18]protocol is kg_v1.0 [11:33:18]action value=close_receipt [11:33:18]process_action close_receipt [11:33:18]cmd_close_receipt [11:33:18]MH_GetDate [11:33:18]Write to MH i2c: F0 00 00 AE 05 A2 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: F0 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: F0 09 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: F0 09 00 AE 05 00 FF DE 18 67 A0 18 CA 66 EF [11:33:18]GetLastDocTimeStamp 1729682909 [11:33:18]current date 1729683199 [11:33:18]FM_GetShiftState [11:33:18]SAM_PROTO_GetShiftState [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 13 01 00 [11:33:18]Write to MH i2c: E2 08 00 AF 05 80 13 01 00 00 00 00 00 31 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 0E 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 0E 00 AF 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 19 [11:33:18]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:33:18]wFMCommunicate OK [11:33:18]SAM_PROTO_GetShiftState done [11:33:18]FM_GetShiftState done [11:33:18]opened in 1729642525 [11:33:18]opened+sec_in_day 1729728925 [11:33:18]quantity*price = 80012 [11:33:18]sum+1 = 80013 [11:33:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 122 23.10.2024 11:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188664 ФПД: 223710754629359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188664&fm=223710754629359&tin=02508201610067®Number=0000000000100030&sum=80000 [11:33:19]StoreToDocumentArchive [11:33:19]shift 462 fd 188664 [11:33:19]save to /storage/0462/doc_00188664 [11:33:19]save last doc name /storage/0462/doc_00188664 to /storage/kkm_last_doc_name [11:33:19]save OK [11:33:19]Clear old archive folders... [11:33:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:19]tlvbuf is 0208C680 [11:33:19]SAM_PROTO_ClearQueue [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 09 00 00 [11:33:19]Write to MH i2c: E2 08 00 BC 05 80 09 00 00 00 00 00 00 33 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [11:33:19]RAPDU: 90 00 [11:33:19]wFMCommunicate OK [11:33:19]SAM_PROTO_ClearQueue done [11:33:19]KKMCreateOFDPacket [11:33:19]OFDProtocolAddRootSTLVToBuf [11:33:19]FM_MakeSignedData [11:33:19]FM_MakeSignedData [11:33:19]SAM_PROTO_SignData [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 0D 01 02 [11:33:19]Write to MH i2c: E2 08 00 BD 05 80 0D 01 02 00 00 00 00 3B [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [11:33:19]RAPDU: 90 00 [11:33:19]wFMCommunicate OK [11:33:19]wFMCommunicate request_size=255 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 FF DE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E0 02 00 35 04 06 00 CB [11:33:19]Write to MH i2c: E2 02 01 BE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 FF DE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E0 02 00 35 04 06 00 CB 00 00 E4 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [11:33:20]RAPDU: 90 00 [11:33:20]wFMCommunicate OK [11:33:20]wFMCommunicate request_size=10 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 0D 02 02 05 76 B8 0F E6 EF [11:33:20]Write to MH i2c: E2 0D 00 BF 05 80 0D 02 02 05 00 76 B8 0F E6 EF 00 00 5A [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [11:33:20]RAPDU: 90 00 [11:33:20]wFMCommunicate OK [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 0D 03 02 [11:33:20]Write to MH i2c: E2 08 00 C0 05 80 0D 03 02 00 00 00 00 40 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 0B 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 0B 00 C0 05 00 A9 17 55 3E 47 1E F5 17 90 00 05 [11:33:20]RAPDU: A9 17 55 3E 47 1E F5 17 90 00 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_SignData done [11:33:20]FM_MakeSignedData done [11:33:20]CreateOFDProtocolMessage [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 11 00 00 [11:33:20]Write to MH i2c: E2 08 00 C1 05 80 11 00 00 00 00 00 00 40 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 17 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 17 00 C1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [11:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:33:20]wFMCommunicate OK [11:33:20]CreateOFDProtocolMessage done [11:33:20]OFDSenderStorePacket 188664 [11:33:20]StoreOFDPacket docnum=188664 [11:33:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 4F 07 01 2C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 FF DE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E0 02 00 35 04 06 00 CB 76 B8 0F E6 EF A9 17 55 3E 47 1E F5 17 [11:33:20]CheckFolder [11:33:20]dirname=/storage/ofd_packets [11:33:20]CheckFolder done [11:33:20]ProducePacketName [11:33:20]name=ofd_packets/00188664 [11:33:20]NVStorageSaveData ofd_packets/00188664 [11:33:20]File name is /storage/ofd_packets/00188664 [11:33:20]Write 301 bytes [11:33:20]NVStorageSaveData done [11:33:20]OFDSenderStorePacket done [11:33:20]KKMCreateOFDPacket done [11:33:20]NVStorageSaveData kkm_last_timestamp [11:33:20]File name is /storage/kkm_last_timestamp [11:33:20]Write 4 bytes [11:33:20]NVStorageSaveData done [11:33:20]ExternCall_PrintAddStr [11:33:20]wPrintStart [11:33:20]Write to MH i2c: 01 00 00 C2 05 C7 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 07 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 FF 0F DC [11:33:20]RasterBufferAndPrint [11:33:20]line Счет N : (1)210724 [11:33:20]line ИНН: 02508201610067 [11:33:20]line Контрольно-Кассовый Чек [11:33:20]line ПРОДАЖА [11:33:20]line ТРК (МРК, ГНК) : 12 [11:33:20]line Товар: 2710124130 [11:33:20]line Аи-92-К-3 [11:33:20]line 11.960 * 66.90 [11:33:20]line = 800.12 [11:33:20]line НДС 12% НСП 1% [11:33:20]line > о реализуемом товаре [11:33:20]line ОКРУГЛЕНИЕ: -0.12 [11:33:20]line ИТОГО: 800.00 [11:33:20]line Внесено: 800.00 [11:33:20]line СДАЧА: 0.00 [11:33:20]line НСП 1% : 7.08 [11:33:20]line НДС 12% : 84.97 [11:33:20]line Наличными: 800.00 [11:33:20]line Безнал.: 0.00 [11:33:20]line Место: АЗС № 86 "Партнер Нефть" [11:33:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:33:20]line СНО: Общий режим [11:33:20]line Чек 122 23.10.2024 11:33 [11:33:20]line Смена: 462 ФФД: 1.0 [11:33:20]line ЗНМ: 0300000155 [11:33:20]line РНМ: 0000000000100030 [11:33:20]line Версия ККМ: 001 [11:33:20]line ФМ: 0000000000965340 [11:33:20]line ФД: 188664 [11:33:20]line ФПД: 223710754629359 [11:33:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188664&fm=223710754629359&tin=02508201610067®Number=0000000000100030&sum=80000 [11:33:20]written 0, free lines is 4095 [11:33:20]OFD Sender: Processing packet 188664 [packets to send 1062, broken 1061] [11:33:20]ProducePacketName [11:33:20]name=ofd_packets/00188664 [11:33:20]OFD Sender: To server: pG, [11:33:20]CommunicateWithHost lk.salyk.kg:30040 [11:33:20]ConnectInit lk.salyk.kg [11:33:20]Connected sock=10 [11:33:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 4F 07 01 2C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 FF DE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E0 02 00 35 04 06 00 CB 76 B8 0F E6 EF A9 17 55 3E 47 1E F5 17 [11:33:20]Write to MH i2c: 01 00 00 ED 05 F2 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 07 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 59 0C 5E [11:33:20]RasterBufferAndPrint [11:33:20]line [11:33:20]line [11:33:20]line [11:33:20]line [11:33:20]line [11:33:20]written 0, free lines is 3165 [11:33:20]MH_Cut [11:33:20]Write to MH i2c: D1 01 00 F4 05 01 CB [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: D1 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: D1 01 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: D1 01 00 F4 05 00 CA [11:33:20]Write to MH i2c: 01 00 00 F5 05 FA [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CA 98 47 00 99 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 F8 E0 02 00 F4 03 04 00 EA 88 18 67 B6 04 01 00 00 E8 B7 95 2E A8 A0 F5 12 [11:33:20]CommunicateWithHost err = 0 [11:33:20]CheckOFDResponse [11:33:20]1017 (14) - 77093643461234 [11:33:20]1041 (16) - 0000000000965340 [11:33:20]1040 (4) - 188664 [11:33:20]1012 (4) - 23.10.2024 05:26 [11:33:20]1206 (1) - 0 [11:33:20]OFD Sender: Remove packet 188664 [11:33:20]ProducePacketName [11:33:20]name=ofd_packets/00188664 [11:33:20]NVStorageDeleteData [11:33:21]OFD Sender: No OFD packet to send [11:33:22]*** Cut start [11:33:22]*** Partial cut [11:33:22]*** CUTSNS_PIN = 1 [11:33:22]*** CUTSNS_PIN = 0 [11:33:22]*** Brake cut motor [11:33:22]Read from MH i2c: 01 [11:33:22]MH_I2C_Read... [11:33:22]*** Stop cut motor [11:33:22]*** Cut end [11:33:22]Read from MH i2c: 01 07 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: 01 07 00 F5 05 00 00 00 00 00 FF 0F 0F [11:33:22]process_action close_receipt done [11:33:22]requested_data is exist [11:33:22]produce_requested_data [11:33:22]requested_item fm.sn is exist - process it [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 11 00 00 [11:33:22]Write to MH i2c: E2 08 00 F6 05 80 11 00 00 00 00 00 00 75 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 17 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 17 00 F6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [11:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:33:22]wFMCommunicate OK [11:33:22]requested_item fd.num is exist - process it [11:33:22]SAM_PROTO_GetFieldsCounters [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 13 00 00 [11:33:22]Write to MH i2c: E2 08 00 F7 05 80 13 00 00 00 00 00 00 78 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:23]Read from MH i2c: E2 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 62 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 62 00 F7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [11:33:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:23]wFMCommunicate OK [11:33:23]SAM_PROTO_GetFieldsCounters done [11:33:23]requested_item shift.num is exist - process it [11:33:23]requested_item shift.opened is exist - process it [11:33:23]req_shift_opened [11:33:23]FM_GetShiftState [11:33:23]SAM_PROTO_GetShiftState [11:33:23]wFMCommunicate request_size=4 [11:33:23]MH_SAM_APDU [11:33:23]CAPDU: 80 13 01 00 [11:33:23]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:23]Read from MH i2c: E2 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 0E 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 62 [11:33:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:33:23]wFMCommunicate OK [11:33:23]SAM_PROTO_GetShiftState done [11:33:23]FM_GetShiftState done [11:33:23]req_shift_opened done [11:33:23]requested_item shift.open_date is exist - process it [11:33:23]req_shift_open_date [11:33:23]req_shift_open_date done [11:33:23]produce_requested_data done [11:33:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188664,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:33:23]process_action_free close_receipt [11:33:23]json_value_free [11:33:23]json_value_free done [11:33:23]process_json_proto returns [11:33:23]Send response to host [11:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188664,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:33:23]free response buf [11:33:23]execute_script done [11:33:23]execute_script returns [11:33:23]free content buf [11:33:23]Sock 8.Close socket [11:33:23]Sock 8.Thread stoped [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:34:49]ConnectInit Can't connect to host [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:48]accept exits with 9 [11:35:48]New connection [11:35:48]New thread 3067161956 created [11:35:48]Waiting for new connection... [11:35:48] Sock 9.Parse request [11:35:48]Sock 9.Check first char [11:35:48]Sock 9.First char is OK [11:35:48]request: POST /json_proto HTTP/1.0 [11:35:48]Method: POST [11:35:48]URL: /json_proto [11:35:48]Method is POST - this is cgi request [11:35:48]url: /json_proto [11:35:48]query_string will be loaded in cgi processing [11:35:48]execute_cgi json_proto POST (null) [11:35:48]execute_cgi path=json_proto method=POST [11:35:48]POST find Content-Length [11:35:48]Host: 172.17.42.131:8080 [11:35:48]Content-Length: 215 [11:35:48]Content-Type: application/json [11:35:48] [11:35:48]POST finish read [11:35:48]Found Content-Length = 215 [11:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:48]execute_script... [11:35:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:48]POST & json_proto [11:35:48]process_json_proto [11:35:48]json parsed OK: [11:35:48]protocol is kg_v1.0 [11:35:48]action value=get_value [11:35:48]process_action get_value [11:35:48]cmd_get_value [11:35:48]process_action get_value done [11:35:48]requested_data is exist [11:35:48]produce_requested_data [11:35:48]requested_item kkm.sn is exist - process it [11:35:48]requested_item kkm.ver is exist - process it [11:35:48]requested_item fm.sn is exist - process it [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 10 00 80 11 00 00 00 00 00 00 8A [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 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [11:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:35:48]wFMCommunicate OK [11:35:48]requested_item fd.num is exist - process it [11:35:48]SAM_PROTO_GetFieldsCounters [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 13 00 00 [11:35:48]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 62 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [11:35:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:49]wFMCommunicate OK [11:35:49]SAM_PROTO_GetFieldsCounters done [11:35:49]requested_item shift.num is exist - process it [11:35:49]requested_item shift.opened is exist - process it [11:35:49]req_shift_opened [11:35:49]FM_GetShiftState [11:35:49]SAM_PROTO_GetShiftState [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 13 01 00 [11:35:49]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0E 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 77 [11:35:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:35:49]wFMCommunicate OK [11:35:49]SAM_PROTO_GetShiftState done [11:35:49]FM_GetShiftState done [11:35:49]req_shift_opened done [11:35:49]requested_item shift.open_date is exist - process it [11:35:49]req_shift_open_date [11:35:49]req_shift_open_date done [11:35:49]produce_requested_data done [11:35:49]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188664,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:35:49]process_action_free get_value [11:35:49]json_value_free [11:35:49]json_value_free done [11:35:49]process_json_proto returns [11:35:49]Send response to host [11:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188664,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:35:49]free response buf [11:35:49]execute_script done [11:35:49]execute_script returns [11:35:49]free content buf [11:35:49]Sock 9.Close socket [11:35:49]Sock 9.Thread stoped [11:35:49]accept exits with 7 [11:35:49]New connection [11:35:49]New thread 3067018596 created [11:35:49]Thread 3067161956 joined [11:35:49]Waiting for new connection... [11:35:49] Sock 7.Parse request [11:35:49]Sock 7.Check first char [11:35:49]Sock 7.First char is OK [11:35:49]request: POST /json_proto HTTP/1.0 [11:35:49]Method: POST [11:35:49]URL: /json_proto [11:35:49]Method is POST - this is cgi request [11:35:49]url: /json_proto [11:35:49]query_string will be loaded in cgi processing [11:35:49]execute_cgi json_proto POST (null) [11:35:49]execute_cgi path=json_proto method=POST [11:35:49]POST find Content-Length [11:35:49]Host: 172.17.42.131:8080 [11:35:49]Content-Length: 331 [11:35:49]Content-Type: application/json [11:35:49] [11:35:49]POST finish read [11:35:49]Found Content-Length = 331 [11:35:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:35:49]execute_script... [11:35:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:35:49]POST & json_proto [11:35:49]process_json_proto [11:35:49]json parsed OK: [11:35:49]protocol is kg_v1.0 [11:35:49]action value=get_value [11:35:49]process_action get_value [11:35:49]cmd_get_value [11:35:49]process_action get_value done [11:35:49]requested_data is exist [11:35:49]produce_requested_data [11:35:49]requested_item fm.sale.total is exist - process it [11:35:49]SAM_PROTO_GetFMData [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 13 03 00 [11:35:49]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:35:49]Read from MH i2c: E2 FD 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 5C DD 02 00 69 04 A4 00 6F 04 04 00 CD DC 02 00 B1 04 05 00 E7 D0 35 BE 06 70 04 05 00 F4 15 E9 A3 04 72 04 05 00 F3 BA 4C 1A 02 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 60 59 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CF 38 47 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 36 17 90 00 1E [11:35:49]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 5C DD 02 00 69 04 A4 00 6F 04 04 00 CD DC 02 00 B1 04 05 00 E7 D0 35 BE 06 70 04 05 00 F4 15 E9 A3 04 72 04 05 00 F3 BA 4C 1A 02 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 60 59 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CF 38 47 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 36 17 90 00 [11:35:49]wFMCommunicate OK [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 17 00 00 [11:35:49]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 FD 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 FD 00 14 00 00 7B 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [11:35:50]RAPDU: 7B 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:35:50]wFMCommunicate OK [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 17 00 00 [11:35:50]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 FD 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [11:35:50]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:35:50]wFMCommunicate OK [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 17 00 00 [11:35:50]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 FD 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [11:35:50]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:35:50]wFMCommunicate OK [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 17 00 00 [11:35:50]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 E8 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 E8 00 17 00 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 75 [11:35:50]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:35:50]wFMCommunicate OK [11:35:50]SAM_PROTO_GetFMData done [11:35:50]requested_item fm.sale_refund.total is exist - process it [11:35:50]requested_item fm.buy.total is exist - process it [11:35:50]requested_item shift.sale.total is exist - process it [11:35:50]SAM_PROTO_GetShiftData [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 13 02 00 [11:35:50]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:35:51]Read from MH i2c: E2 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 FD 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 FD 00 18 00 00 B0 04 AA 04 AC 04 6E 04 04 00 7A 00 00 00 69 04 9D 00 6F 04 04 00 7A 00 00 00 B1 04 04 00 9C 3C 06 01 70 04 03 00 B4 3C B9 72 04 03 00 E8 FF 4C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5B DA 1B 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 28 52 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E4 [11:35:51]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 7A 00 00 00 69 04 9D 00 6F 04 04 00 7A 00 00 00 B1 04 04 00 9C 3C 06 01 70 04 03 00 B4 3C B9 72 04 03 00 E8 FF 4C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5B DA 1B 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 28 52 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:35:51]wFMCommunicate OK [11:35:51]wFMCommunicate request_size=4 [11:35:51]MH_SAM_APDU [11:35:51]CAPDU: 80 17 00 00 [11:35:51]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:51]OFD Sender: No OFD packet to send [11:35:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:51]Read from MH i2c: E2 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 FD 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 FD 00 19 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 B3 [11:35:51]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:35:51]wFMCommunicate OK [11:35:51]wFMCommunicate request_size=4 [11:35:51]MH_SAM_APDU [11:35:51]CAPDU: 80 17 00 00 [11:35:51]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:51]Read from MH i2c: E2 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 FD 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 FD 00 1A 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [11:35:51]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:35:51]wFMCommunicate OK [11:35:51]wFMCommunicate request_size=4 [11:35:51]MH_SAM_APDU [11:35:51]CAPDU: 80 17 00 00 [11:35:51]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 FD 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0E [11:35:52]RAPDU: 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 90 00 [11:35:52]wFMCommunicate OK [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 17 00 00 [11:35:52]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 CD 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 CD 00 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 80 [11:35:52]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:35:52]wFMCommunicate OK [11:35:52]SAM_PROTO_GetShiftData done [11:35:52]requested_item shift.sale.total_cash is exist - process it [11:35:52]requested_item shift.sale_refund.total is exist - process it [11:35:52]requested_item shift.sale_refund.total_cash is exist - process it [11:35:52]requested_item shift.buy.total is exist - process it [11:35:52]requested_item shift.buy.total_cash is exist - process it [11:35:52]produce_requested_data done [11:35:52]produce_requested_data return {"fm.sale.total":289610017.03,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":171859.48,"shift.sale.total_cash":121397.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} [11:35:52]process_action_free get_value [11:35:52]json_value_free [11:35:52]json_value_free done [11:35:52]process_json_proto returns [11:35:52]Send response to host [11:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289610017.03,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":171859.48,"shift.sale.total_cash":121397.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}}} [11:35:52]free response buf [11:35:52]execute_script done [11:35:52]execute_script returns [11:35:52]free content buf [11:35:52]Sock 7.Close socket [11:35:52]Sock 7.Thread stoped [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:13]accept exits with 10 [11:38:13]New connection [11:38:13]New thread 3067161956 created [11:38:13]Thread 3067018596 joined [11:38:13]Waiting for new connection... [11:38:13] Sock 10.Parse request [11:38:13]Sock 10.Check first char [11:38:13]Sock 10.First char is OK [11:38:13]request: POST /json_proto HTTP/1.0 [11:38:13]Method: POST [11:38:13]URL: /json_proto [11:38:13]Method is POST - this is cgi request [11:38:13]url: /json_proto [11:38:13]query_string will be loaded in cgi processing [11:38:13]execute_cgi json_proto POST (null) [11:38:13]execute_cgi path=json_proto method=POST [11:38:13]POST find Content-Length [11:38:13]Host: 172.17.42.131:8080 [11:38:13]Content-Length: 983 [11:38:13]Content-Type: application/json [11:38:13] [11:38:13]POST finish read [11:38:13]Found Content-Length = 983 [11:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:13]execute_script... [11:38:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:13]POST & json_proto [11:38:13]process_json_proto [11:38:13]json parsed OK: [11:38:13]protocol is kg_v1.0 [11:38:13]action value=close_receipt [11:38:13]process_action close_receipt [11:38:13]cmd_close_receipt [11:38:13]MH_GetDate [11:38:13]Write to MH i2c: F0 00 00 1D 00 0C [11:38:13]Write i2c OK [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: F0 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: F0 09 00 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: F0 09 00 1D 00 00 26 E0 18 67 A0 18 CA 66 82 [11:38:13]GetLastDocTimeStamp 97 [11:38:13]current date 1729683494 [11:38:13]FM_GetShiftState [11:38:13]SAM_PROTO_GetShiftState [11:38:13]wFMCommunicate request_size=4 [11:38:13]MH_SAM_APDU [11:38:13]CAPDU: 80 13 01 00 [11:38:13]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:38:13]Write i2c OK [11:38:13]MH_I2C_Read... [11:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:13]Read from MH i2c: E2 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: E2 0E 00 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 83 [11:38:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:38:13]wFMCommunicate OK [11:38:13]SAM_PROTO_GetShiftState done [11:38:13]FM_GetShiftState done [11:38:13]opened in 1729642525 [11:38:13]opened+sec_in_day 1729728925 [11:38:13]quantity*price = 200006 [11:38:13]sum+1 = 200008 [11:38:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 123 23.10.2024 11:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 188665 ФПД: 202455165585971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113814&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188665&fm=202455165585971&tin=02508201610067®Number=0000000000100030&sum=200000 [11:38:14]StoreToDocumentArchive [11:38:14]shift 462 fd 188665 [11:38:14]save to /storage/0462/doc_00188665 [11:38:14]save last doc name /storage/0462/doc_00188665 to /storage/kkm_last_doc_name [11:38:14]save OK [11:38:14]Clear old archive folders... [11:38:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:15]tlvbuf is 01C0D100 [11:38:15]SAM_PROTO_ClearQueue [11:38:15]wFMCommunicate request_size=4 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 09 00 00 [11:38:15]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:38:15]RAPDU: 90 00 [11:38:15]wFMCommunicate OK [11:38:15]SAM_PROTO_ClearQueue done [11:38:15]KKMCreateOFDPacket [11:38:15]OFDProtocolAddRootSTLVToBuf [11:38:15]FM_MakeSignedData [11:38:15]FM_MakeSignedData [11:38:15]SAM_PROTO_SignData [11:38:15]wFMCommunicate request_size=4 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 0D 01 02 [11:38:15]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:38:15]RAPDU: 90 00 [11:38:15]wFMCommunicate OK [11:38:15]wFMCommunicate request_size=255 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 26 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 E0 02 00 35 04 06 00 B8 [11:38:15]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 26 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 E0 02 00 35 04 06 00 B8 00 00 01 [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:38:15]RAPDU: 90 00 [11:38:15]wFMCommunicate OK [11:38:15]wFMCommunicate request_size=10 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 0D 02 02 05 21 C4 3A 4A 33 [11:38:15]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 21 C4 3A 4A 33 00 00 4E [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:38:15]RAPDU: 90 00 [11:38:15]wFMCommunicate OK [11:38:15]wFMCommunicate request_size=4 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 0D 03 02 [11:38:15]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 0B 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 0B 00 2F 00 00 AB 70 CD 8D AD 56 07 7B 90 00 A5 [11:38:15]RAPDU: AB 70 CD 8D AD 56 07 7B 90 00 [11:38:15]wFMCommunicate OK [11:38:15]SAM_PROTO_SignData done [11:38:15]FM_MakeSignedData done [11:38:15]CreateOFDProtocolMessage [11:38:15]wFMCommunicate request_size=4 [11:38:15]MH_SAM_APDU [11:38:15]CAPDU: 80 11 00 00 [11:38:15]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:15]Read from MH i2c: E2 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 17 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [11:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:38:15]wFMCommunicate OK [11:38:15]CreateOFDProtocolMessage done [11:38:15]OFDSenderStorePacket 188665 [11:38:15]StoreOFDPacket docnum=188665 [11:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD C7 07 01 DC 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 26 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 E0 02 00 35 04 06 00 B8 21 C4 3A 4A 33 AB 70 CD 8D AD 56 07 7B [11:38:15]CheckFolder [11:38:15]dirname=/storage/ofd_packets [11:38:15]CheckFolder done [11:38:15]ProducePacketName [11:38:15]name=ofd_packets/00188665 [11:38:15]NVStorageSaveData ofd_packets/00188665 [11:38:15]File name is /storage/ofd_packets/00188665 [11:38:15]Write 301 bytes [11:38:15]NVStorageSaveData done [11:38:15]OFDSenderStorePacket done [11:38:15]KKMCreateOFDPacket done [11:38:15]NVStorageSaveData kkm_last_timestamp [11:38:15]File name is /storage/kkm_last_timestamp [11:38:15]Write 4 bytes [11:38:15]NVStorageSaveData done [11:38:15]ExternCall_PrintAddStr [11:38:15]wPrintStart [11:38:15]Write to MH i2c: 01 00 00 31 00 31 [11:38:15]Write i2c OK [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: 01 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: 01 07 00 [11:38:15]MH_I2C_Read... [11:38:15]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:38:15]RasterBufferAndPrint [11:38:15]line Счет N : (1)210725 [11:38:15]line ИНН: 02508201610067 [11:38:15]line Контрольно-Кассовый Чек [11:38:15]line ПРОДАЖА [11:38:15]line ТРК (МРК, ГНК) : 42 [11:38:15]line Товар: 2710124130 [11:38:15]line Аи-92-К-3 [11:38:15]line 30.350 * 65.90 [11:38:15]line = 2000.07 [11:38:15]line НДС 12% НСП 1% [11:38:15]line > о реализуемом товаре [11:38:15]line ОКРУГЛЕНИЕ: -0.07 [11:38:15]line ИТОГО: 2000.00 [11:38:15]line Внесено: 2000.00 [11:38:15]line СДАЧА: 0.00 [11:38:15]line НСП 1% : 17.70 [11:38:15]line НДС 12% : 212.40 [11:38:15]line Наличными: 2000.00 [11:38:15]line Безнал.: 0.00 [11:38:15]line Место: АЗС № 86 "Партнер Нефть" [11:38:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:38:15]line СНО: Общий режим [11:38:15]line Чек 123 23.10.2024 11:38 [11:38:15]line Смена: 462 ФФД: 1.0 [11:38:15]line ЗНМ: 0300000155 [11:38:15]line РНМ: 0000000000100030 [11:38:15]line Версия ККМ: 001 [11:38:15]line [11:38:15]line Дисконтная программа [11:38:15]line АИ-92 [11:38:15]line номер 86 [11:38:15]line сэкономлено 30.35 сом [11:38:15]line ФМ: 0000000000965340 [11:38:15]line ФД: 188665 [11:38:15]line ФПД: 202455165585971 [11:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113814&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188665&fm=202455165585971&tin=02508201610067®Number=0000000000100030&sum=200000 [11:38:15]written 0, free lines is 4095 [11:38:15]OFD Sender: Processing packet 188665 [packets to send 1062, broken 1061] [11:38:15]ProducePacketName [11:38:15]name=ofd_packets/00188665 [11:38:15]OFD Sender: To server: pG, [11:38:15]CommunicateWithHost lk.salyk.kg:30040 [11:38:15]ConnectInit lk.salyk.kg [11:38:15]Connected sock=9 [11:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD C7 07 01 DC 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 26 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 E0 02 00 35 04 06 00 B8 21 C4 3A 4A 33 AB 70 CD 8D AD 56 07 7B [11:38:16]Write to MH i2c: 01 00 00 61 00 61 [11:38:16]Write i2c OK [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: 01 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: 01 07 00 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 E1 0B 54 [11:38:16]RasterBufferAndPrint [11:38:16]line [11:38:16]line [11:38:16]line [11:38:16]line [11:38:16]line [11:38:16]written 0, free lines is 3043 [11:38:16]MH_Cut [11:38:16]Write to MH i2c: D1 01 00 68 00 01 3A [11:38:16]Write i2c OK [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: D1 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: D1 01 00 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: D1 01 00 68 00 00 39 [11:38:16]Write to MH i2c: 01 00 00 69 00 69 [11:38:16]Write i2c OK [11:38:16]MH_I2C_Read... [11:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FB 69 47 00 08 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 36 35 33 34 30 10 04 04 00 F9 E0 02 00 F4 03 04 00 11 8A 18 67 B6 04 01 00 00 1F 22 36 6E 26 2F 87 AE [11:38:16]CommunicateWithHost err = 0 [11:38:16]CheckOFDResponse [11:38:16]1017 (14) - 77093643461234 [11:38:16]1041 (16) - 0000000000965340 [11:38:16]1040 (4) - 188665 [11:38:16]1012 (4) - 23.10.2024 05:30 [11:38:16]1206 (1) - 0 [11:38:16]OFD Sender: Remove packet 188665 [11:38:16]ProducePacketName [11:38:16]name=ofd_packets/00188665 [11:38:16]NVStorageDeleteData [11:38:16]OFD Sender: No OFD packet to send [11:38:17]*** Cut start [11:38:17]*** Partial cut [11:38:17]*** CUTSNS_PIN = 1 [11:38:17]*** CUTSNS_PIN = 0 [11:38:17]*** Brake cut motor [11:38:18]Read from MH i2c: 01 [11:38:18]MH_I2C_Read... [11:38:18]*** Stop cut motor [11:38:18]*** Cut end [11:38:18]Read from MH i2c: 01 07 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 FF 0F 7E [11:38:18]process_action close_receipt done [11:38:18]requested_data is exist [11:38:18]produce_requested_data [11:38:18]requested_item fm.sn is exist - process it [11:38:18]wFMCommunicate request_size=4 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 11 00 00 [11:38:18]Write to MH i2c: E2 08 00 6A 00 80 11 00 00 00 00 00 00 E4 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 17 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 17 00 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [11:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:38:18]wFMCommunicate OK [11:38:18]requested_item fd.num is exist - process it [11:38:18]SAM_PROTO_GetFieldsCounters [11:38:18]wFMCommunicate request_size=4 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 13 00 00 [11:38:18]Write to MH i2c: E2 08 00 6B 00 80 13 00 00 00 00 00 00 E7 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 62 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 62 00 6B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [11:38:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:18]wFMCommunicate OK [11:38:18]SAM_PROTO_GetFieldsCounters done [11:38:18]requested_item shift.num is exist - process it [11:38:18]requested_item shift.opened is exist - process it [11:38:18]req_shift_opened [11:38:18]FM_GetShiftState [11:38:18]SAM_PROTO_GetShiftState [11:38:18]wFMCommunicate request_size=4 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 13 01 00 [11:38:18]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 0E 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D1 [11:38:18]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:38:18]wFMCommunicate OK [11:38:18]SAM_PROTO_GetShiftState done [11:38:18]FM_GetShiftState done [11:38:18]req_shift_opened done [11:38:18]requested_item shift.open_date is exist - process it [11:38:18]req_shift_open_date [11:38:18]req_shift_open_date done [11:38:18]produce_requested_data done [11:38:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188665,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:38:18]process_action_free close_receipt [11:38:18]json_value_free [11:38:18]json_value_free done [11:38:18]process_json_proto returns [11:38:18]Send response to host [11:38:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188665,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:38:18]free response buf [11:38:18]execute_script done [11:38:18]execute_script returns [11:38:18]free content buf [11:38:18]Sock 10.Close socket [11:38:18]Sock 10.Thread stoped [11:38:21]OFD Sender: No OFD packet to send [11:38:23]accept exits with 7 [11:38:23]New connection [11:38:23]New thread 3067018596 created [11:38:23]Thread 3067161956 joined [11:38:23]Waiting for new connection... [11:38:23] Sock 7.Parse request [11:38:23]Sock 7.Check first char [11:38:23]Sock 7.First char is OK [11:38:23]request: POST /json_proto HTTP/1.0 [11:38:23]Method: POST [11:38:23]URL: /json_proto [11:38:23]Method is POST - this is cgi request [11:38:23]url: /json_proto [11:38:23]query_string will be loaded in cgi processing [11:38:23]execute_cgi json_proto POST (null) [11:38:23]execute_cgi path=json_proto method=POST [11:38:23]POST find Content-Length [11:38:23]Host: 172.17.42.131:8080 [11:38:23]Content-Length: 683 [11:38:23]Content-Type: application/json [11:38:23] [11:38:23]POST finish read [11:38:23]Found Content-Length = 683 [11:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 2.600, "sum" : 200.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:23]execute_script... [11: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 : (1)210726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 2.600, "sum" : 200.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:23]POST & json_proto [11:38:23]process_json_proto [11:38:23]json parsed OK: [11:38:23]protocol is kg_v1.0 [11:38:23]action value=close_receipt [11:38:23]process_action close_receipt [11:38:23]cmd_close_receipt [11:38:23]MH_GetDate [11:38:23]Write to MH i2c: F0 00 00 6D 00 5C [11:38:23]Write i2c OK [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: F0 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: F0 09 00 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: F0 09 00 6D 00 00 2F E0 18 67 A0 18 CA 66 DB [11:38:23]GetLastDocTimeStamp 1729683494 [11:38:23]current date 1729683503 [11:38:23]FM_GetShiftState [11:38:23]SAM_PROTO_GetShiftState [11:38:23]wFMCommunicate request_size=4 [11:38:23]MH_SAM_APDU [11:38:23]CAPDU: 80 13 01 00 [11:38:23]Write to MH i2c: E2 08 00 6E 00 80 13 01 00 00 00 00 00 EB [11:38:23]Write i2c OK [11:38:23]MH_I2C_Read... [11:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:23]Read from MH i2c: E2 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: E2 0E 00 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: E2 0E 00 6E 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D3 [11:38:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:38:23]wFMCommunicate OK [11:38:23]SAM_PROTO_GetShiftState done [11:38:23]FM_GetShiftState done [11:38:23]opened in 1729642525 [11:38:23]opened+sec_in_day 1729728925 [11:38:23]quantity*price = 20072 [11:38:23]sum+1 = 20073 [11:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.78 НДС 12% : 21.31 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 124 23.10.2024 11:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188666 ФПД: 4719739382091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113823&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188666&fm=4719739382091&tin=02508201610067®Number=0000000000100030&sum=20000 [11:38:24]StoreToDocumentArchive [11:38:24]shift 462 fd 188666 [11:38:24]save to /storage/0462/doc_00188666 [11:38:24]save last doc name /storage/0462/doc_00188666 to /storage/kkm_last_doc_name [11:38:24]save OK [11:38:24]Clear old archive folders... [11:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:38:24]tlvbuf is 01C15230 [11:38:24]SAM_PROTO_ClearQueue [11:38:24]wFMCommunicate request_size=4 [11:38:24]MH_SAM_APDU [11:38:24]CAPDU: 80 09 00 00 [11:38:24]Write to MH i2c: E2 08 00 7B 00 80 09 00 00 00 00 00 00 ED [11:38:24]Write i2c OK [11:38:24]MH_I2C_Read... [11:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:24]Read from MH i2c: E2 [11:38:24]MH_I2C_Read... [11:38:24]Read from MH i2c: E2 03 00 [11:38:24]MH_I2C_Read... [11:38:24]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [11:38:24]RAPDU: 90 00 [11:38:24]wFMCommunicate OK [11:38:24]SAM_PROTO_ClearQueue done [11:38:24]KKMCreateOFDPacket [11:38:24]OFDProtocolAddRootSTLVToBuf [11:38:24]FM_MakeSignedData [11:38:24]FM_MakeSignedData [11:38:24]SAM_PROTO_SignData [11:38:24]wFMCommunicate request_size=4 [11:38:24]MH_SAM_APDU [11:38:24]CAPDU: 80 0D 01 02 [11:38:24]Write to MH i2c: E2 08 00 7C 00 80 0D 01 02 00 00 00 00 F5 [11:38:24]Write i2c OK [11:38:24]MH_I2C_Read... [11:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:24]Read from MH i2c: E2 [11:38:24]MH_I2C_Read... [11:38:24]Read from MH i2c: E2 03 00 [11:38:24]MH_I2C_Read... [11:38:24]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [11:38:24]RAPDU: 90 00 [11:38:24]wFMCommunicate OK [11:38:24]wFMCommunicate request_size=255 [11:38:24]MH_SAM_APDU [11:38:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 7C 00 00 00 F4 03 04 00 2F E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA E0 02 [11:38:24]Write to MH i2c: E2 02 01 7D 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 7C 00 00 00 F4 03 04 00 2F E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA E0 02 00 00 3C [11:38:24]Write i2c OK [11:38:24]MH_I2C_Read... [11:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:25]Read from MH i2c: E2 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 03 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [11:38:25]RAPDU: 90 00 [11:38:25]wFMCommunicate OK [11:38:25]wFMCommunicate request_size=16 [11:38:25]MH_SAM_APDU [11:38:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 04 4A E6 63 A9 4B [11:38:25]Write to MH i2c: E2 13 00 7E 00 80 0D 02 02 0B 00 00 35 04 06 00 04 4A E6 63 A9 4B 00 00 D8 [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:25]Read from MH i2c: E2 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 03 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [11:38:25]RAPDU: 90 00 [11:38:25]wFMCommunicate OK [11:38:25]wFMCommunicate request_size=4 [11:38:25]MH_SAM_APDU [11:38:25]CAPDU: 80 0D 03 02 [11:38:25]Write to MH i2c: E2 08 00 7F 00 80 0D 03 02 00 00 00 00 FA [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:25]Read from MH i2c: E2 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 0B 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 0B 00 7F 00 00 5C 20 C4 A3 AA A1 03 27 90 00 53 [11:38:25]RAPDU: 5C 20 C4 A3 AA A1 03 27 90 00 [11:38:25]wFMCommunicate OK [11:38:25]SAM_PROTO_SignData done [11:38:25]FM_MakeSignedData done [11:38:25]CreateOFDProtocolMessage [11:38:25]wFMCommunicate request_size=4 [11:38:25]MH_SAM_APDU [11:38:25]CAPDU: 80 11 00 00 [11:38:25]Write to MH i2c: E2 08 00 80 00 80 11 00 00 00 00 00 00 FA [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:25]Read from MH i2c: E2 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 17 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 17 00 80 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [11:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:38:25]wFMCommunicate OK [11:38:25]CreateOFDProtocolMessage done [11:38:25]OFDSenderStorePacket 188666 [11:38:25]StoreOFDPacket docnum=188666 [11:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B5 E6 0D 01 F3 55 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 7C 00 00 00 F4 03 04 00 2F E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA E0 02 00 35 04 06 00 04 4A E6 63 A9 4B 5C 20 C4 A3 AA A1 03 27 [11:38:25]CheckFolder [11:38:25]dirname=/storage/ofd_packets [11:38:25]CheckFolder done [11:38:25]ProducePacketName [11:38:25]name=ofd_packets/00188666 [11:38:25]NVStorageSaveData ofd_packets/00188666 [11:38:25]File name is /storage/ofd_packets/00188666 [11:38:25]Write 307 bytes [11:38:25]NVStorageSaveData done [11:38:25]OFDSenderStorePacket done [11:38:25]KKMCreateOFDPacket done [11:38:25]NVStorageSaveData kkm_last_timestamp [11:38:25]File name is /storage/kkm_last_timestamp [11:38:25]Write 4 bytes [11:38:25]NVStorageSaveData done [11:38:25]ExternCall_PrintAddStr [11:38:25]wPrintStart [11:38:25]Write to MH i2c: 01 00 00 81 00 81 [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: 01 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: 01 07 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: 01 07 00 81 00 00 00 00 00 00 FF 0F 96 [11:38:25]RasterBufferAndPrint [11:38:25]line Счет N : (1)210726 [11:38:25]line ИНН: 02508201610067 [11:38:25]line Контрольно-Кассовый Чек [11:38:25]line ПРОДАЖА [11:38:25]line ТРК (МРК, ГНК) : 11 [11:38:25]line Товар: 2710194210 [11:38:25]line D-ENERGY ДТ-К-5 [11:38:25]line 2.600 * 77.20 [11:38:25]line = 200.72 [11:38:25]line НДС 12% НСП 1% [11:38:25]line > о реализуемом товаре [11:38:25]line ОКРУГЛЕНИЕ: -0.72 [11:38:25]line ИТОГО: 200.00 [11:38:25]line Внесено: 200.00 [11:38:25]line СДАЧА: 0.00 [11:38:25]line НСП 1% : 1.78 [11:38:25]line НДС 12% : 21.31 [11:38:25]line Наличными: 200.00 [11:38:25]line Безнал.: 0.00 [11:38:25]line Место: АЗС № 86 "Партнер Нефть" [11:38:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:38:25]line СНО: Общий режим [11:38:25]line Чек 124 23.10.2024 11:38 [11:38:25]line Смена: 462 ФФД: 1.0 [11:38:25]line ЗНМ: 0300000155 [11:38:25]line РНМ: 0000000000100030 [11:38:25]line Версия ККМ: 001 [11:38:25]line ФМ: 0000000000965340 [11:38:25]line ФД: 188666 [11:38:25]line ФПД: 4719739382091 [11:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113823&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188666&fm=4719739382091&tin=02508201610067®Number=0000000000100030&sum=20000 [11:38:25]written 0, free lines is 4095 [11:38:25]OFD Sender: Processing packet 188666 [packets to send 1062, broken 1061] [11:38:25]ProducePacketName [11:38:25]name=ofd_packets/00188666 [11:38:25]OFD Sender: To server: pG, [11:38:25]CommunicateWithHost lk.salyk.kg:30040 [11:38:25]ConnectInit lk.salyk.kg [11:38:25]Connected sock=10 [11:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B5 E6 0D 01 F3 55 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 7C 00 00 00 F4 03 04 00 2F E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA E0 02 00 35 04 06 00 04 4A E6 63 A9 4B 5C 20 C4 A3 AA A1 03 27 [11:38:25]Write to MH i2c: 01 00 00 AC 00 AC [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: 01 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: 01 07 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 65 0C 24 [11:38:25]RasterBufferAndPrint [11:38:25]line [11:38:25]line [11:38:25]line [11:38:25]line [11:38:25]line [11:38:25]written 0, free lines is 3177 [11:38:25]MH_Cut [11:38:25]Write to MH i2c: D1 01 00 B3 00 01 85 [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: D1 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: D1 01 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: D1 01 00 B3 00 00 84 [11:38:25]Write to MH i2c: 01 00 00 B4 00 B4 [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BA 41 47 00 06 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 36 35 33 34 30 10 04 04 00 FA E0 02 00 F4 03 04 00 1A 8A 18 67 B6 04 01 00 00 2C 90 3B 68 F7 BB 3F 9B [11:38:25]CommunicateWithHost err = 0 [11:38:25]CheckOFDResponse [11:38:25]1017 (14) - 77093643461234 [11:38:25]1041 (16) - 0000000000965340 [11:38:25]1040 (4) - 188666 [11:38:25]1012 (4) - 23.10.2024 05:31 [11:38:25]1206 (1) - 0 [11:38:25]OFD Sender: Remove packet 188666 [11:38:25]ProducePacketName [11:38:25]name=ofd_packets/00188666 [11:38:25]NVStorageDeleteData [11:38:26]OFD Sender: No OFD packet to send [11:38:26]*** Cut start [11:38:26]*** Partial cut [11:38:26]*** CUTSNS_PIN = 1 [11:38:27]*** CUTSNS_PIN = 0 [11:38:27]*** Brake cut motor [11:38:27]Read from MH i2c: 01 [11:38:27]MH_I2C_Read... [11:38:27]*** Stop cut motor [11:38:27]*** Cut end [11:38:27]Read from MH i2c: 01 07 00 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: 01 07 00 B4 00 00 00 00 00 00 FF 0F C9 [11:38:27]process_action close_receipt done [11:38:27]requested_data is exist [11:38:27]produce_requested_data [11:38:27]requested_item fm.sn is exist - process it [11:38:27]wFMCommunicate request_size=4 [11:38:27]MH_SAM_APDU [11:38:27]CAPDU: 80 11 00 00 [11:38:27]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [11:38:27]Write i2c OK [11:38:27]MH_I2C_Read... [11:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:27]Read from MH i2c: E2 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: E2 17 00 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [11:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:38:27]wFMCommunicate OK [11:38:27]requested_item fd.num is exist - process it [11:38:27]SAM_PROTO_GetFieldsCounters [11:38:27]wFMCommunicate request_size=4 [11:38:27]MH_SAM_APDU [11:38:27]CAPDU: 80 13 00 00 [11:38:27]Write to MH i2c: E2 08 00 B6 00 80 13 00 00 00 00 00 00 32 [11:38:27]Write i2c OK [11:38:27]MH_I2C_Read... [11:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:27]Read from MH i2c: E2 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: E2 62 00 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: E2 62 00 B6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [11: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:27]wFMCommunicate OK [11:38:27]SAM_PROTO_GetFieldsCounters done [11:38:27]requested_item shift.num is exist - process it [11:38:27]requested_item shift.opened is exist - process it [11:38:27]req_shift_opened [11:38:27]FM_GetShiftState [11:38:27]SAM_PROTO_GetShiftState [11:38:27]wFMCommunicate request_size=4 [11:38:27]MH_SAM_APDU [11:38:27]CAPDU: 80 13 01 00 [11:38:27]Write to MH i2c: E2 08 00 B7 00 80 13 01 00 00 00 00 00 34 [11:38:27]Write i2c OK [11:38:27]MH_I2C_Read... [11:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:27]Read from MH i2c: E2 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: E2 0E 00 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: E2 0E 00 B7 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1C [11:38:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:38:27]wFMCommunicate OK [11:38:27]SAM_PROTO_GetShiftState done [11:38:27]FM_GetShiftState done [11:38:27]req_shift_opened done [11:38:27]requested_item shift.open_date is exist - process it [11:38:27]req_shift_open_date [11:38:27]req_shift_open_date done [11:38:27]produce_requested_data done [11:38:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188666,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:38:27]process_action_free close_receipt [11:38:27]json_value_free [11:38:27]json_value_free done [11:38:27]process_json_proto returns [11:38:27]Send response to host [11:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188666,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:38:27]free response buf [11:38:27]execute_script done [11:38:27]execute_script returns [11:38:27]free content buf [11:38:27]Sock 7.Close socket [11:38:27]Sock 7.Thread stoped [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:02]accept exits with 9 [11:39:02]New connection [11:39:02]New thread 3067161956 created [11:39:02]Thread 3067018596 joined [11:39:02]Waiting for new connection... [11:39:02] Sock 9.Parse request [11:39:02]Sock 9.Check first char [11:39:02]Sock 9.First char is OK [11:39:02]request: POST /json_proto HTTP/1.0 [11:39:02]Method: POST [11:39:02]URL: /json_proto [11:39:02]Method is POST - this is cgi request [11:39:02]url: /json_proto [11:39:02]query_string will be loaded in cgi processing [11:39:02]execute_cgi json_proto POST (null) [11:39:02]execute_cgi path=json_proto method=POST [11:39:02]POST find Content-Length [11:39:02]Host: 172.17.42.131:8080 [11:39:02]Content-Length: 682 [11:39:02]Content-Type: application/json [11:39:02] [11:39:02]POST finish read [11:39:02]Found Content-Length = 682 [11:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:02]execute_script... [11:39:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:02]POST & json_proto [11:39:02]process_json_proto [11:39:02]json parsed OK: [11:39:02]protocol is kg_v1.0 [11:39:02]action value=close_receipt [11:39:02]process_action close_receipt [11:39:02]cmd_close_receipt [11:39:02]MH_GetDate [11:39:02]Write to MH i2c: F0 00 00 B8 00 A7 [11:39:02]Write i2c OK [11:39:02]MH_I2C_Read... [11:39:02]Read from MH i2c: F0 [11:39:02]MH_I2C_Read... [11:39:02]Read from MH i2c: F0 09 00 [11:39:02]MH_I2C_Read... [11:39:02]Read from MH i2c: F0 09 00 B8 00 00 56 E0 18 67 A0 18 CA 66 4D [11:39:02]GetLastDocTimeStamp 1729683503 [11:39:02]current date 1729683542 [11:39:02]FM_GetShiftState [11:39:02]SAM_PROTO_GetShiftState [11:39:02]wFMCommunicate request_size=4 [11:39:02]MH_SAM_APDU [11:39:02]CAPDU: 80 13 01 00 [11:39:02]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [11:39:02]Write i2c OK [11:39:02]MH_I2C_Read... [11:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:02]Read from MH i2c: E2 [11:39:02]MH_I2C_Read... [11:39:02]Read from MH i2c: E2 0E 00 [11:39:02]MH_I2C_Read... [11:39:02]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1E [11:39:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:39:02]wFMCommunicate OK [11:39:02]SAM_PROTO_GetShiftState done [11:39:02]FM_GetShiftState done [11:39:02]opened in 1729642525 [11:39:02]opened+sec_in_day 1729728925 [11:39:02]quantity*price = 100015 [11:39:02]sum+1 = 100017 [11:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 125 23.10.2024 11:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188667 ФПД: 24352098927177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113902&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188667&fm=24352098927177&tin=02508201610067®Number=0000000000100030&sum=100000 [11:39:03]StoreToDocumentArchive [11:39:03]shift 462 fd 188667 [11:39:03]save to /storage/0462/doc_00188667 [11:39:03]save last doc name /storage/0462/doc_00188667 to /storage/kkm_last_doc_name [11:39:03]save OK [11:39:03]Clear old archive folders... [11:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:03]tlvbuf is 01BFBAC0 [11:39:03]SAM_PROTO_ClearQueue [11:39:03]wFMCommunicate request_size=4 [11:39:03]MH_SAM_APDU [11:39:03]CAPDU: 80 09 00 00 [11:39:03]Write to MH i2c: E2 08 00 C6 00 80 09 00 00 00 00 00 00 38 [11:39:03]Write i2c OK [11:39:03]MH_I2C_Read... [11:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:03]Read from MH i2c: E2 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 03 00 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [11:39:03]RAPDU: 90 00 [11:39:03]wFMCommunicate OK [11:39:03]SAM_PROTO_ClearQueue done [11:39:03]KKMCreateOFDPacket [11:39:03]OFDProtocolAddRootSTLVToBuf [11:39:03]FM_MakeSignedData [11:39:03]FM_MakeSignedData [11:39:03]SAM_PROTO_SignData [11:39:03]wFMCommunicate request_size=4 [11:39:03]MH_SAM_APDU [11:39:03]CAPDU: 80 0D 01 02 [11:39:03]Write to MH i2c: E2 08 00 C7 00 80 0D 01 02 00 00 00 00 40 [11:39:03]Write i2c OK [11:39:03]MH_I2C_Read... [11:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:03]Read from MH i2c: E2 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 03 00 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [11:39:03]RAPDU: 90 00 [11:39:03]wFMCommunicate OK [11:39:03]wFMCommunicate request_size=255 [11:39:03]MH_SAM_APDU [11:39:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 56 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E0 02 00 35 04 06 00 16 [11:39:03]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 56 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E0 02 00 35 04 06 00 16 00 00 A1 [11:39:03]Write i2c OK [11:39:03]MH_I2C_Read... [11:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:03]Read from MH i2c: E2 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 03 00 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [11:39:03]RAPDU: 90 00 [11:39:03]wFMCommunicate OK [11:39:03]wFMCommunicate request_size=10 [11:39:03]MH_SAM_APDU [11:39:03]CAPDU: 80 0D 02 02 05 25 EA 34 C2 49 [11:39:03]Write to MH i2c: E2 0D 00 C9 00 80 0D 02 02 05 00 25 EA 34 C2 49 00 00 9B [11:39:03]Write i2c OK [11:39:03]MH_I2C_Read... [11:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:03]Read from MH i2c: E2 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 03 00 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [11:39:03]RAPDU: 90 00 [11:39:03]wFMCommunicate OK [11:39:03]wFMCommunicate request_size=4 [11:39:03]MH_SAM_APDU [11:39:03]CAPDU: 80 0D 03 02 [11:39:03]Write to MH i2c: E2 08 00 CA 00 80 0D 03 02 00 00 00 00 45 [11:39:03]Write i2c OK [11:39:03]MH_I2C_Read... [11:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:03]Read from MH i2c: E2 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 0B 00 [11:39:03]MH_I2C_Read... [11:39:03]Read from MH i2c: E2 0B 00 CA 00 00 37 41 1D 2D 2F 72 1D 4D 90 00 13 [11:39:03]RAPDU: 37 41 1D 2D 2F 72 1D 4D 90 00 [11:39:03]wFMCommunicate OK [11:39:03]SAM_PROTO_SignData done [11:39:03]FM_MakeSignedData done [11:39:03]CreateOFDProtocolMessage [11:39:03]wFMCommunicate request_size=4 [11:39:03]MH_SAM_APDU [11:39:03]CAPDU: 80 11 00 00 [11:39:03]Write to MH i2c: E2 08 00 CB 00 80 11 00 00 00 00 00 00 45 [11:39:03]Write i2c OK [11:39:03]MH_I2C_Read... [11:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:04]Read from MH i2c: E2 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: E2 17 00 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: E2 17 00 CB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [11:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:39:04]wFMCommunicate OK [11:39:04]CreateOFDProtocolMessage done [11:39:04]OFDSenderStorePacket 188667 [11:39:04]StoreOFDPacket docnum=188667 [11:39:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 80 07 01 6E 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 56 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E0 02 00 35 04 06 00 16 25 EA 34 C2 49 37 41 1D 2D 2F 72 1D 4D [11:39:04]CheckFolder [11:39:04]dirname=/storage/ofd_packets [11:39:04]CheckFolder done [11:39:04]ProducePacketName [11:39:04]name=ofd_packets/00188667 [11:39:04]NVStorageSaveData ofd_packets/00188667 [11:39:04]File name is /storage/ofd_packets/00188667 [11:39:04]Write 301 bytes [11:39:04]NVStorageSaveData done [11:39:04]OFDSenderStorePacket done [11:39:04]KKMCreateOFDPacket done [11:39:04]NVStorageSaveData kkm_last_timestamp [11:39:04]File name is /storage/kkm_last_timestamp [11:39:04]Write 4 bytes [11:39:04]NVStorageSaveData done [11:39:04]ExternCall_PrintAddStr [11:39:04]wPrintStart [11:39:04]Write to MH i2c: 01 00 00 CC 00 CC [11:39:04]Write i2c OK [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: 01 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: 01 07 00 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: 01 07 00 CC 00 00 00 00 00 00 FF 0F E1 [11:39:04]RasterBufferAndPrint [11:39:04]line Счет N : (1)210728 [11:39:04]line ИНН: 02508201610067 [11:39:04]line Контрольно-Кассовый Чек [11:39:04]line ПРОДАЖА [11:39:04]line ТРК (МРК, ГНК) : 32 [11:39:04]line Товар: 2710124130 [11:39:04]line Аи-92-К-3 [11:39:04]line 14.950 * 66.90 [11:39:04]line = 1000.16 [11:39:04]line НДС 12% НСП 1% [11:39:04]line > о реализуемом товаре [11:39:04]line ОКРУГЛЕНИЕ: -0.16 [11:39:04]line ИТОГО: 1000.00 [11:39:04]line Внесено: 1000.00 [11:39:04]line СДАЧА: 0.00 [11:39:04]line НСП 1% : 8.85 [11:39:04]line НДС 12% : 106.21 [11:39:04]line Наличными: 1000.00 [11:39:04]line Безнал.: 0.00 [11:39:04]line Место: АЗС № 86 "Партнер Нефть" [11:39:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:39:04]line СНО: Общий режим [11:39:04]line Чек 125 23.10.2024 11:39 [11:39:04]line Смена: 462 ФФД: 1.0 [11:39:04]line ЗНМ: 0300000155 [11:39:04]line РНМ: 0000000000100030 [11:39:04]line Версия ККМ: 001 [11:39:04]line ФМ: 0000000000965340 [11:39:04]line ФД: 188667 [11:39:04]line ФПД: 24352098927177 [11:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113902&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188667&fm=24352098927177&tin=02508201610067®Number=0000000000100030&sum=100000 [11:39:04]written 0, free lines is 4095 [11:39:04]OFD Sender: Processing packet 188667 [packets to send 1062, broken 1061] [11:39:04]ProducePacketName [11:39:04]name=ofd_packets/00188667 [11:39:04]OFD Sender: To server: pG, [11:39:04]CommunicateWithHost lk.salyk.kg:30040 [11:39:04]ConnectInit lk.salyk.kg [11:39:04]Connected sock=10 [11:39:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 80 07 01 6E 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 56 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E0 02 00 35 04 06 00 16 25 EA 34 C2 49 37 41 1D 2D 2F 72 1D 4D [11:39:04]Write to MH i2c: 01 00 00 F7 00 F7 [11:39:04]Write i2c OK [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: 01 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: 01 07 00 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 51 0C 5B [11:39:04]RasterBufferAndPrint [11:39:04]line [11:39:04]line [11:39:04]line [11:39:04]line [11:39:04]line [11:39:04]written 0, free lines is 3158 [11:39:04]MH_Cut [11:39:04]Write to MH i2c: D1 01 00 FE 00 01 D0 [11:39:04]Write i2c OK [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: D1 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: D1 01 00 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: D1 01 00 FE 00 00 CF [11:39:04]Write to MH i2c: 01 00 00 FF 00 FF [11:39:04]Write i2c OK [11:39:04]MH_I2C_Read... [11:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5D D8 47 00 99 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E0 02 00 F4 03 04 00 41 8A 18 67 B6 04 01 00 00 20 61 37 5B E1 70 28 61 [11:39:04]CommunicateWithHost err = 0 [11:39:04]CheckOFDResponse [11:39:04]1017 (14) - 77093643461234 [11:39:04]1041 (16) - 0000000000965340 [11:39:04]1040 (4) - 188667 [11:39:04]1012 (4) - 23.10.2024 05:31 [11:39:04]1206 (1) - 0 [11:39:04]OFD Sender: Remove packet 188667 [11:39:04]ProducePacketName [11:39:04]name=ofd_packets/00188667 [11:39:04]NVStorageDeleteData [11:39:05]OFD Sender: No OFD packet to send [11:39:05]*** Cut start [11:39:05]*** Partial cut [11:39:05]*** CUTSNS_PIN = 1 [11:39:05]*** CUTSNS_PIN = 0 [11:39:06]*** Brake cut motor [11:39:06]Read from MH i2c: 01 [11:39:06]MH_I2C_Read... [11:39:06]*** Stop cut motor [11:39:06]*** Cut end [11:39:06]Read from MH i2c: 01 07 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 FF 0F 14 [11:39:06]process_action close_receipt done [11:39:06]requested_data is exist [11:39:06]produce_requested_data [11:39:06]requested_item fm.sn is exist - process it [11:39:06]wFMCommunicate request_size=4 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 11 00 00 [11:39:06]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 17 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [11:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:39:06]wFMCommunicate OK [11:39:06]requested_item fd.num is exist - process it [11:39:06]SAM_PROTO_GetFieldsCounters [11:39:06]wFMCommunicate request_size=4 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 13 00 00 [11:39:06]Write to MH i2c: E2 08 00 01 01 80 13 00 00 00 00 00 00 7E [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 62 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 62 00 01 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [11:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:06]wFMCommunicate OK [11:39:06]SAM_PROTO_GetFieldsCounters done [11:39:06]requested_item shift.num is exist - process it [11:39:06]requested_item shift.opened is exist - process it [11:39:06]req_shift_opened [11:39:06]FM_GetShiftState [11:39:06]SAM_PROTO_GetShiftState [11:39:06]wFMCommunicate request_size=4 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 13 01 00 [11:39:06]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 0E 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 68 [11:39:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:39:06]wFMCommunicate OK [11:39:06]SAM_PROTO_GetShiftState done [11:39:06]FM_GetShiftState done [11:39:06]req_shift_opened done [11:39:06]requested_item shift.open_date is exist - process it [11:39:06]req_shift_open_date [11:39:06]req_shift_open_date done [11:39:06]produce_requested_data done [11:39:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188667,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:39:06]process_action_free close_receipt [11:39:06]json_value_free [11:39:06]json_value_free done [11:39:06]process_json_proto returns [11:39:06]Send response to host [11:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188667,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:39:06]free response buf [11:39:06]execute_script done [11:39:06]execute_script returns [11:39:06]free content buf [11:39:06]Sock 9.Close socket [11:39:06]Sock 9.Thread stoped [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:21]accept exits with 7 [11:40:21]New connection [11:40:21]New thread 3067018596 created [11:40:21]Thread 3067161956 joined [11:40:21]Waiting for new connection... [11:40:21] Sock 7.Parse request [11:40:21]Sock 7.Check first char [11:40:21]Sock 7.First char is OK [11:40:21]request: POST /json_proto HTTP/1.0 [11:40:21]Method: POST [11:40:21]URL: /json_proto [11:40:21]Method is POST - this is cgi request [11:40:21]url: /json_proto [11:40:21]query_string will be loaded in cgi processing [11:40:21]execute_cgi json_proto POST (null) [11:40:21]execute_cgi path=json_proto method=POST [11:40:21]POST find Content-Length [11:40:21]Host: 172.17.42.131:8080 [11:40:21]Content-Length: 754 [11:40:21]Content-Type: application/json [11:40:21] [11:40:21]POST finish read [11:40:21]Found Content-Length = 754 [11:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159091", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:21]execute_script... [11:40:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159091", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:21]POST & json_proto [11:40:21]process_json_proto [11:40:21]json parsed OK: [11:40:21]protocol is kg_v1.0 [11:40:21]action value=close_receipt [11:40:21]process_action close_receipt [11:40:21]cmd_close_receipt [11:40:21]MH_GetDate [11:40:21]Write to MH i2c: F0 00 00 03 01 F3 [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: F0 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: F0 09 00 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: F0 09 00 03 01 00 A5 E0 18 67 A0 18 CA 66 E8 [11:40:21]GetLastDocTimeStamp 1729683542 [11:40:21]current date 1729683621 [11:40:21]FM_GetShiftState [11:40:21]SAM_PROTO_GetShiftState [11:40:21]wFMCommunicate request_size=4 [11:40:21]MH_SAM_APDU [11:40:21]CAPDU: 80 13 01 00 [11:40:21]Write to MH i2c: E2 08 00 04 01 80 13 01 00 00 00 00 00 82 [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:21]Read from MH i2c: E2 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: E2 0E 00 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: E2 0E 00 04 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6A [11:40:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:40:21]wFMCommunicate OK [11:40:21]SAM_PROTO_GetShiftState done [11:40:21]FM_GetShiftState done [11:40:21]opened in 1729642525 [11:40:21]opened+sec_in_day 1729728925 [11:40:21]quantity*price = 0 [11:40:21]sum+1 = 1 [11:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 126 23.10.2024 11:40 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30159091 ФМ: 0000000000965340 ФД: 188668 ФПД: 137151416579359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114021&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188668&fm=137151416579359&tin=02508201610067®Number=0000000000100030&sum=0 [11:40:22]StoreToDocumentArchive [11:40:22]shift 462 fd 188668 [11:40:22]save to /storage/0462/doc_00188668 [11:40:22]save last doc name /storage/0462/doc_00188668 to /storage/kkm_last_doc_name [11:40:22]save OK [11:40:22]Clear old archive folders... [11:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:22]tlvbuf is 01BFF5C0 [11:40:22]SAM_PROTO_ClearQueue [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 09 00 00 [11:40:22]Write to MH i2c: E2 08 00 11 01 80 09 00 00 00 00 00 00 84 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [11:40:22]RAPDU: 90 00 [11:40:22]wFMCommunicate OK [11:40:22]SAM_PROTO_ClearQueue done [11:40:22]KKMCreateOFDPacket [11:40:22]OFDProtocolAddRootSTLVToBuf [11:40:22]FM_MakeSignedData [11:40:22]FM_MakeSignedData [11:40:22]SAM_PROTO_SignData [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 0D 01 02 [11:40:22]Write to MH i2c: E2 08 00 12 01 80 0D 01 02 00 00 00 00 8C [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [11:40:22]RAPDU: 90 00 [11:40:22]wFMCommunicate OK [11:40:22]wFMCommunicate request_size=255 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 A5 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E0 02 00 35 04 06 00 7C [11:40:22]Write to MH i2c: E2 02 01 13 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 A5 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E0 02 00 35 04 06 00 7C 00 00 93 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [11:40:22]RAPDU: 90 00 [11:40:22]wFMCommunicate OK [11:40:22]wFMCommunicate request_size=10 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 0D 02 02 05 BD 0D 77 35 1F [11:40:22]Write to MH i2c: E2 0D 00 14 01 80 0D 02 02 05 00 BD 0D 77 35 1F 00 00 2E [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [11:40:22]RAPDU: 90 00 [11:40:22]wFMCommunicate OK [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 0D 03 02 [11:40:22]Write to MH i2c: E2 08 00 15 01 80 0D 03 02 00 00 00 00 91 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 0B 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 0B 00 15 01 00 89 2E BC C2 2E 24 44 3F 90 00 9C [11:40:22]RAPDU: 89 2E BC C2 2E 24 44 3F 90 00 [11:40:22]wFMCommunicate OK [11:40:22]SAM_PROTO_SignData done [11:40:22]FM_MakeSignedData done [11:40:22]CreateOFDProtocolMessage [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 11 00 00 [11:40:22]Write to MH i2c: E2 08 00 16 01 80 11 00 00 00 00 00 00 91 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 17 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 17 00 16 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [11:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:40:22]wFMCommunicate OK [11:40:22]CreateOFDProtocolMessage done [11:40:22]OFDSenderStorePacket 188668 [11:40:22]StoreOFDPacket docnum=188668 [11:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 55 E6 07 01 16 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 A5 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E0 02 00 35 04 06 00 7C BD 0D 77 35 1F 89 2E BC C2 2E 24 44 3F [11:40:22]CheckFolder [11:40:22]dirname=/storage/ofd_packets [11:40:22]CheckFolder done [11:40:22]ProducePacketName [11:40:22]name=ofd_packets/00188668 [11:40:22]NVStorageSaveData ofd_packets/00188668 [11:40:22]File name is /storage/ofd_packets/00188668 [11:40:22]Write 301 bytes [11:40:22]NVStorageSaveData done [11:40:22]OFDSenderStorePacket done [11:40:22]KKMCreateOFDPacket done [11:40:22]NVStorageSaveData kkm_last_timestamp [11:40:22]File name is /storage/kkm_last_timestamp [11:40:22]Write 4 bytes [11:40:22]NVStorageSaveData done [11:40:22]ExternCall_PrintAddStr [11:40:22]wPrintStart [11:40:22]Write to MH i2c: 01 00 00 17 01 18 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 07 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 FF 0F 2D [11:40:22]RasterBufferAndPrint [11:40:22]line Счет N : (1)210729 [11:40:22]line ИНН: 02508201610067 [11:40:22]line Контрольно-Кассовый Чек [11:40:22]line ПРОДАЖА [11:40:22]line ТРК (МРК, ГНК) : 22 [11:40:22]line Товар: 2710124130 [11:40:22]line Аи-92-К-3 [11:40:22]line 20.000 * 0.00 [11:40:22]line = 0.00 [11:40:22]line НДС 12% НСП 1% [11:40:22]line > о реализуемом товаре [11:40:22]line ИТОГО: 0.00 [11:40:22]line НСП 1% : 0.00 [11:40:22]line НДС 12% : 0.00 [11:40:22]line Наличными: 0.00 [11:40:22]line Безнал.: 0.00 [11:40:22]line Место: АЗС № 86 "Партнер Нефть" [11:40:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:40:22]line СНО: Общий режим [11:40:22]line Чек 126 23.10.2024 11:40 [11:40:22]line Смена: 462 ФФД: 1.0 [11:40:22]line ЗНМ: 0300000155 [11:40:22]line РНМ: 0000000000100030 [11:40:22]line Версия ККМ: 001 [11:40:22]line Талоны: ТК ГПНА Online [11:40:22]line 30159091 [11:40:22]line ФМ: 0000000000965340 [11:40:22]line ФД: 188668 [11:40:22]line ФПД: 137151416579359 [11:40:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114021&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188668&fm=137151416579359&tin=02508201610067®Number=0000000000100030&sum=0 [11:40:22]OFD Sender: Processing packet 188668 [packets to send 1062, broken 1061] [11:40:22]ProducePacketName [11:40:22]name=ofd_packets/00188668 [11:40:22]OFD Sender: To server: pG, [11:40:22]CommunicateWithHost lk.salyk.kg:30040 [11:40:22]ConnectInit lk.salyk.kg [11:40:22]written 0, free lines is 4095 [11:40:23]Connected sock=10 [11:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 55 E6 07 01 16 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 A5 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E0 02 00 35 04 06 00 7C BD 0D 77 35 1F 89 2E BC C2 2E 24 44 3F [11:40:23]Write to MH i2c: 01 00 00 41 01 42 [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: 01 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: 01 07 00 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 6E 0C C3 [11:40:23]RasterBufferAndPrint [11:40:23]line [11:40:23]line [11:40:23]line [11:40:23]line [11:40:23]line [11:40:23]written 0, free lines is 3186 [11:40:23]MH_Cut [11:40:23]Write to MH i2c: D1 01 00 48 01 01 1B [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: D1 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: D1 01 00 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: D1 01 00 48 01 00 1A [11:40:23]Write to MH i2c: 01 00 00 49 01 4A [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5E E8 47 00 34 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E0 02 00 F4 03 04 00 90 8A 18 67 B6 04 01 00 00 7F 3B A9 7E 1B B2 7A 3C [11:40:23]CommunicateWithHost err = 0 [11:40:23]CheckOFDResponse [11:40:23]1017 (14) - 77093643461234 [11:40:23]1041 (16) - 0000000000965340 [11:40:23]1040 (4) - 188668 [11:40:23]1012 (4) - 23.10.2024 05:33 [11:40:23]1206 (1) - 0 [11:40:23]OFD Sender: Remove packet 188668 [11:40:23]ProducePacketName [11:40:23]name=ofd_packets/00188668 [11:40:23]NVStorageDeleteData [11:40:24]OFD Sender: No OFD packet to send [11:40:24]*** Cut start [11:40:24]*** Partial cut [11:40:24]*** CUTSNS_PIN = 1 [11:40:24]*** CUTSNS_PIN = 0 [11:40:24]*** Brake cut motor [11:40:25]Read from MH i2c: 01 [11:40:25]MH_I2C_Read... [11:40:25]*** Stop cut motor [11:40:25]*** Cut end [11:40:25]Read from MH i2c: 01 07 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: 01 07 00 49 01 00 00 00 00 00 FF 0F 5F [11:40:25]process_action close_receipt done [11:40:25]requested_data is exist [11:40:25]produce_requested_data [11:40:25]requested_item fm.sn is exist - process it [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 11 00 00 [11:40:25]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 17 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [11:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:40:25]wFMCommunicate OK [11:40:25]requested_item fd.num is exist - process it [11:40:25]SAM_PROTO_GetFieldsCounters [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 13 00 00 [11:40:25]Write to MH i2c: E2 08 00 4B 01 80 13 00 00 00 00 00 00 C8 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 62 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 62 00 4B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [11:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:25]wFMCommunicate OK [11:40:25]SAM_PROTO_GetFieldsCounters done [11:40:25]requested_item shift.num is exist - process it [11:40:25]requested_item shift.opened is exist - process it [11:40:25]req_shift_opened [11:40:25]FM_GetShiftState [11:40:25]SAM_PROTO_GetShiftState [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 13 01 00 [11:40:25]Write to MH i2c: E2 08 00 4C 01 80 13 01 00 00 00 00 00 CA [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 0E 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 0E 00 4C 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B2 [11:40:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:40:25]wFMCommunicate OK [11:40:25]SAM_PROTO_GetShiftState done [11:40:25]FM_GetShiftState done [11:40:25]req_shift_opened done [11:40:25]requested_item shift.open_date is exist - process it [11:40:25]req_shift_open_date [11:40:25]req_shift_open_date done [11:40:25]produce_requested_data done [11:40:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188668,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:40:25]process_action_free close_receipt [11:40:25]json_value_free [11:40:25]json_value_free done [11:40:25]process_json_proto returns [11:40:25]Send response to host [11:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188668,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:40:25]free response buf [11:40:25]execute_script done [11:40:25]execute_script returns [11:40:25]free content buf [11:40:25]Sock 7.Close socket [11:40:25]Sock 7.Thread stoped [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:40]accept exits with 9 [11:40:40]New connection [11:40:40]New thread 3067161956 created [11:40:40]Thread 3067018596 joined [11:40:40]Waiting for new connection... [11:40:40] Sock 9.Parse request [11:40:40]Sock 9.Check first char [11:40:40]Sock 9.First char is OK [11:40:40]request: POST /json_proto HTTP/1.0 [11:40:40]Method: POST [11:40:40]URL: /json_proto [11:40:40]Method is POST - this is cgi request [11:40:40]url: /json_proto [11:40:40]query_string will be loaded in cgi processing [11:40:40]execute_cgi json_proto POST (null) [11:40:40]execute_cgi path=json_proto method=POST [11:40:40]POST find Content-Length [11:40:40]Host: 172.17.42.131:8080 [11:40:40]Content-Length: 800 [11:40:40]Content-Type: application/json [11:40:40] [11:40:40]POST finish read [11:40:40]Found Content-Length = 800 [11:40:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948486", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:40]execute_script... [11:40:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948486", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:40]POST & json_proto [11:40:40]process_json_proto [11:40:40]json parsed OK: [11:40:40]protocol is kg_v1.0 [11:40:40]action value=close_receipt [11:40:40]process_action close_receipt [11:40:40]cmd_close_receipt [11:40:40]MH_GetDate [11:40:40]Write to MH i2c: F0 00 00 4D 01 3D [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: F0 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: F0 09 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: F0 09 00 4D 01 00 B8 E0 18 67 A0 18 CA 66 45 [11:40:40]GetLastDocTimeStamp 1729683621 [11:40:40]current date 1729683640 [11:40:40]FM_GetShiftState [11:40:40]SAM_PROTO_GetShiftState [11:40:40]wFMCommunicate request_size=4 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 13 01 00 [11:40:40]Write to MH i2c: E2 08 00 4E 01 80 13 01 00 00 00 00 00 CC [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:40]Read from MH i2c: E2 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 0E 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 0E 00 4E 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B4 [11:40:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:40:40]wFMCommunicate OK [11:40:40]SAM_PROTO_GetShiftState done [11:40:40]FM_GetShiftState done [11:40:40]opened in 1729642525 [11:40:40]opened+sec_in_day 1729728925 [11:40:40]quantity*price = 0 [11:40:40]sum+1 = 1 [11:40:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 127 23.10.2024 11:40 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3948486 ФМ: 0000000000965340 ФД: 188669 ФПД: 4437479497453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114040&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188669&fm=4437479497453&tin=02508201610067®Number=0000000000100030&sum=0 [11:40:41]StoreToDocumentArchive [11:40:41]shift 462 fd 188669 [11:40:41]save to /storage/0462/doc_00188669 [11:40:41]save last doc name /storage/0462/doc_00188669 to /storage/kkm_last_doc_name [11:40:41]save OK [11:40:41]Clear old archive folders... [11:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:41]tlvbuf is 01C01210 [11:40:41]SAM_PROTO_ClearQueue [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 09 00 00 [11:40:41]Write to MH i2c: E2 08 00 5B 01 80 09 00 00 00 00 00 00 CE [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [11:40:41]RAPDU: 90 00 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_ClearQueue done [11:40:41]KKMCreateOFDPacket [11:40:41]OFDProtocolAddRootSTLVToBuf [11:40:41]FM_MakeSignedData [11:40:41]FM_MakeSignedData [11:40:41]SAM_PROTO_SignData [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 0D 01 02 [11:40:41]Write to MH i2c: E2 08 00 5C 01 80 0D 01 02 00 00 00 00 D6 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [11:40:41]RAPDU: 90 00 [11:40:41]wFMCommunicate OK [11:40:41]wFMCommunicate request_size=255 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B8 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD E0 02 00 35 04 06 00 04 [11:40:41]Write to MH i2c: E2 02 01 5D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B8 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD E0 02 00 35 04 06 00 04 00 00 7A [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [11:40:41]RAPDU: 90 00 [11:40:41]wFMCommunicate OK [11:40:41]wFMCommunicate request_size=10 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 0D 02 02 05 09 2E 63 9E ED [11:40:41]Write to MH i2c: E2 0D 00 5E 01 80 0D 02 02 05 00 09 2E 63 9E ED 00 00 08 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [11:40:41]RAPDU: 90 00 [11:40:41]wFMCommunicate OK [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 0D 03 02 [11:40:41]Write to MH i2c: E2 08 00 5F 01 80 0D 03 02 00 00 00 00 DB [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0B 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0B 00 5F 01 00 44 55 1C 15 26 AC 90 07 90 00 0F [11:40:41]RAPDU: 44 55 1C 15 26 AC 90 07 90 00 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_SignData done [11:40:41]FM_MakeSignedData done [11:40:41]CreateOFDProtocolMessage [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 11 00 00 [11:40:41]Write to MH i2c: E2 08 00 60 01 80 11 00 00 00 00 00 00 DB [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 17 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 17 00 60 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 29 [11:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:40:41]wFMCommunicate OK [11:40:41]CreateOFDProtocolMessage done [11:40:41]OFDSenderStorePacket 188669 [11:40:41]StoreOFDPacket docnum=188669 [11:40:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB 40 07 01 21 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B8 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD E0 02 00 35 04 06 00 04 09 2E 63 9E ED 44 55 1C 15 26 AC 90 07 [11:40:41]CheckFolder [11:40:41]dirname=/storage/ofd_packets [11:40:41]CheckFolder done [11:40:41]ProducePacketName [11:40:41]name=ofd_packets/00188669 [11:40:41]NVStorageSaveData ofd_packets/00188669 [11:40:41]File name is /storage/ofd_packets/00188669 [11:40:41]Write 301 bytes [11:40:41]NVStorageSaveData done [11:40:41]OFDSenderStorePacket done [11:40:41]KKMCreateOFDPacket done [11:40:41]NVStorageSaveData kkm_last_timestamp [11:40:41]File name is /storage/kkm_last_timestamp [11:40:41]Write 4 bytes [11:40:41]NVStorageSaveData done [11:40:41]ExternCall_PrintAddStr [11:40:41]wPrintStart [11:40:41]Write to MH i2c: 01 00 00 61 01 62 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 07 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 FF 0F 77 [11:40:41]RasterBufferAndPrint [11:40:41]line Счет N : (1)210730 [11:40:41]line ИНН: 02508201610067 [11:40:41]line Контрольно-Кассовый Чек [11:40:41]line ПРОДАЖА [11:40:41]line ТРК (МРК, ГНК) : 42 [11:40:41]line Товар: 2710124130 [11:40:41]line Аи-92-К-3 [11:40:41]line 20.000 * 0.00 [11:40:41]line = 0.00 [11:40:41]line НДС 12% НСП 1% [11:40:41]line > о реализуемом товаре [11:40:41]line ИТОГО: 0.00 [11:40:41]line НСП 1% : 0.00 [11:40:41]line НДС 12% : 0.00 [11:40:41]line Наличными: 0.00 [11:40:41]line Безнал.: 0.00 [11:40:41]line Место: АЗС № 86 "Партнер Нефть" [11:40:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:40:41]line СНО: Общий режим [11:40:41]line Чек 127 23.10.2024 11:40 [11:40:41]line Смена: 462 ФФД: 1.0 [11:40:41]line ЗНМ: 0300000155 [11:40:41]line РНМ: 0000000000100030 [11:40:41]line Версия ККМ: 001 [11:40:41]line Талоны: Топливные Талоны [11:40:41]line 3948486 [11:40:41]line ФМ: 0000000000965340 [11:40:41]line ФД: 188669 [11:40:41]line ФПД: 4437479497453 [11:40:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114040&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188669&fm=4437479497453&tin=02508201610067®Number=0000000000100030&sum=0 [11:40:41]written 0, free lines is 4095 [11:40:41]OFD Sender: Processing packet 188669 [packets to send 1062, broken 1061] [11:40:41]ProducePacketName [11:40:41]name=ofd_packets/00188669 [11:40:41]OFD Sender: To server: pG, [11:40:41]CommunicateWithHost lk.salyk.kg:30040 [11:40:41]ConnectInit lk.salyk.kg [11:40:42]Connected sock=7 [11:40:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB 40 07 01 21 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B8 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD E0 02 00 35 04 06 00 04 09 2E 63 9E ED 44 55 1C 15 26 AC 90 07 [11:40:42]Write to MH i2c: 01 00 00 8B 01 8C [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: 01 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: 01 07 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 67 0C 06 [11:40:42]RasterBufferAndPrint [11:40:42]line [11:40:42]line [11:40:42]line [11:40:42]line [11:40:42]line [11:40:42]written 0, free lines is 3181 [11:40:42]MH_Cut [11:40:42]Write to MH i2c: D1 01 00 92 01 01 65 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: D1 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: D1 01 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: D1 01 00 92 01 00 64 [11:40:42]Write to MH i2c: 01 00 00 93 01 94 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A 1E 47 00 E6 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 36 35 33 34 30 10 04 04 00 FD E0 02 00 F4 03 04 00 A3 8A 18 67 B6 04 01 00 00 B0 4B A3 BE 72 0D EF 89 [11:40:42]CommunicateWithHost err = 0 [11:40:42]CheckOFDResponse [11:40:42]1017 (14) - 77093643461234 [11:40:42]1041 (16) - 0000000000965340 [11:40:42]1040 (4) - 188669 [11:40:42]1012 (4) - 23.10.2024 05:33 [11:40:42]1206 (1) - 0 [11:40:42]OFD Sender: Remove packet 188669 [11:40:42]ProducePacketName [11:40:42]name=ofd_packets/00188669 [11:40:42]NVStorageDeleteData [11:40:43]OFD Sender: No OFD packet to send [11:40:43]*** Cut start [11:40:43]*** Partial cut [11:40:43]*** CUTSNS_PIN = 1 [11:40:43]*** CUTSNS_PIN = 0 [11:40:43]*** Brake cut motor [11:40:44]Read from MH i2c: 01 [11:40:44]MH_I2C_Read... [11:40:44]*** Stop cut motor [11:40:44]*** Cut end [11:40:44]Read from MH i2c: 01 07 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [11:40:44]process_action close_receipt done [11:40:44]requested_data is exist [11:40:44]produce_requested_data [11:40:44]requested_item fm.sn is exist - process it [11:40:44]wFMCommunicate request_size=4 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 11 00 00 [11:40:44]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 17 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [11:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:40:44]wFMCommunicate OK [11:40:44]requested_item fd.num is exist - process it [11:40:44]SAM_PROTO_GetFieldsCounters [11:40:44]wFMCommunicate request_size=4 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 13 00 00 [11:40:44]Write to MH i2c: E2 08 00 95 01 80 13 00 00 00 00 00 00 12 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 62 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 62 00 95 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [11:40:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:44]wFMCommunicate OK [11:40:44]SAM_PROTO_GetFieldsCounters done [11:40:44]requested_item shift.num is exist - process it [11:40:44]requested_item shift.opened is exist - process it [11:40:44]req_shift_opened [11:40:44]FM_GetShiftState [11:40:44]SAM_PROTO_GetShiftState [11:40:44]wFMCommunicate request_size=4 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 13 01 00 [11:40:44]Write to MH i2c: E2 08 00 96 01 80 13 01 00 00 00 00 00 14 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 0E 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 0E 00 96 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FC [11:40:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:40:44]wFMCommunicate OK [11:40:44]SAM_PROTO_GetShiftState done [11:40:44]FM_GetShiftState done [11:40:44]req_shift_opened done [11:40:44]requested_item shift.open_date is exist - process it [11:40:44]req_shift_open_date [11:40:44]req_shift_open_date done [11:40:44]produce_requested_data done [11:40:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188669,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:40:44]process_action_free close_receipt [11:40:44]json_value_free [11:40:44]json_value_free done [11:40:44]process_json_proto returns [11:40:44]Send response to host [11:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188669,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:40:44]free response buf [11:40:44]execute_script done [11:40:44]execute_script returns [11:40:44]free content buf [11:40:44]Sock 9.Close socket [11:40:44]Sock 9.Thread stoped [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:31]accept exits with 10 [11:41:31]New connection [11:41:31]New thread 3067018596 created [11:41:31]Thread 3067161956 joined [11:41:31]Waiting for new connection... [11:41:31] Sock 10.Parse request [11:41:31]Sock 10.Check first char [11:41:31]Sock 10.First char is OK [11:41:31]request: POST /json_proto HTTP/1.0 [11:41:31]Method: POST [11:41:31]URL: /json_proto [11:41:31]Method is POST - this is cgi request [11:41:31]url: /json_proto [11:41:31]query_string will be loaded in cgi processing [11:41:31]execute_cgi json_proto POST (null) [11:41:31]execute_cgi path=json_proto method=POST [11:41:31]POST find Content-Length [11:41:31]Host: 172.17.42.131:8080 [11:41:31]Content-Length: 682 [11:41:31]Content-Type: application/json [11:41:31] [11:41:31]POST finish read [11:41:31]Found Content-Length = 682 [11:41:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:31]execute_script... [11:41:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:31]POST & json_proto [11:41:31]process_json_proto [11:41:31]json parsed OK: [11:41:31]protocol is kg_v1.0 [11:41:31]action value=close_receipt [11:41:31]process_action close_receipt [11:41:31]cmd_close_receipt [11:41:31]MH_GetDate [11:41:31]Write to MH i2c: F0 00 00 97 01 87 [11:41:31]Write i2c OK [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: F0 [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: F0 09 00 [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: F0 09 00 97 01 00 EB E0 18 67 A0 18 CA 66 C2 [11:41:31]GetLastDocTimeStamp 1729683640 [11:41:31]current date 1729683691 [11:41:31]FM_GetShiftState [11:41:31]SAM_PROTO_GetShiftState [11:41:31]wFMCommunicate request_size=4 [11:41:31]MH_SAM_APDU [11:41:31]CAPDU: 80 13 01 00 [11:41:31]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [11:41:31]Write i2c OK [11:41:31]MH_I2C_Read... [11:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:31]Read from MH i2c: E2 [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: E2 0E 00 [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FE [11:41:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:41:31]wFMCommunicate OK [11:41:31]SAM_PROTO_GetShiftState done [11:41:31]FM_GetShiftState done [11:41:31]opened in 1729642525 [11:41:31]opened+sec_in_day 1729728925 [11:41:31]quantity*price = 100015 [11:41:31]sum+1 = 100017 [11:41:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 128 23.10.2024 11:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188670 ФПД: 87940840196115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114131&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188670&fm=87940840196115&tin=02508201610067®Number=0000000000100030&sum=100000 [11:41:32]StoreToDocumentArchive [11:41:32]shift 462 fd 188670 [11:41:32]save to /storage/0462/doc_00188670 [11:41:32]save last doc name /storage/0462/doc_00188670 to /storage/kkm_last_doc_name [11:41:32]save OK [11:41:32]Clear old archive folders... [11:41:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:32]tlvbuf is 01C39000 [11:41:32]SAM_PROTO_ClearQueue [11:41:32]wFMCommunicate request_size=4 [11:41:32]MH_SAM_APDU [11:41:32]CAPDU: 80 09 00 00 [11:41:32]Write to MH i2c: E2 08 00 A5 01 80 09 00 00 00 00 00 00 18 [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:32]Read from MH i2c: E2 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [11:41:32]RAPDU: 90 00 [11:41:32]wFMCommunicate OK [11:41:32]SAM_PROTO_ClearQueue done [11:41:32]KKMCreateOFDPacket [11:41:32]OFDProtocolAddRootSTLVToBuf [11:41:32]FM_MakeSignedData [11:41:32]FM_MakeSignedData [11:41:32]SAM_PROTO_SignData [11:41:32]wFMCommunicate request_size=4 [11:41:32]MH_SAM_APDU [11:41:32]CAPDU: 80 0D 01 02 [11:41:32]Write to MH i2c: E2 08 00 A6 01 80 0D 01 02 00 00 00 00 20 [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:32]Read from MH i2c: E2 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [11:41:32]RAPDU: 90 00 [11:41:32]wFMCommunicate OK [11:41:32]wFMCommunicate request_size=255 [11:41:32]MH_SAM_APDU [11:41:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 EB E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E0 02 00 35 04 06 00 4F [11:41:32]Write to MH i2c: E2 02 01 A7 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 EB E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E0 02 00 35 04 06 00 4F 00 00 55 [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:32]Read from MH i2c: E2 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [11:41:32]RAPDU: 90 00 [11:41:32]wFMCommunicate OK [11:41:32]wFMCommunicate request_size=10 [11:41:32]MH_SAM_APDU [11:41:32]CAPDU: 80 0D 02 02 05 FB 52 8A 88 13 [11:41:32]Write to MH i2c: E2 0D 00 A8 01 80 0D 02 02 05 00 FB 52 8A 88 13 00 00 9F [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:33]Read from MH i2c: E2 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 03 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [11:41:33]RAPDU: 90 00 [11:41:33]wFMCommunicate OK [11:41:33]wFMCommunicate request_size=4 [11:41:33]MH_SAM_APDU [11:41:33]CAPDU: 80 0D 03 02 [11:41:33]Write to MH i2c: E2 08 00 A9 01 80 0D 03 02 00 00 00 00 25 [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:33]Read from MH i2c: E2 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 0B 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 0B 00 A9 01 00 5A 8D 55 43 8B 58 BF DD 90 00 24 [11:41:33]RAPDU: 5A 8D 55 43 8B 58 BF DD 90 00 [11:41:33]wFMCommunicate OK [11:41:33]SAM_PROTO_SignData done [11:41:33]FM_MakeSignedData done [11:41:33]CreateOFDProtocolMessage [11:41:33]wFMCommunicate request_size=4 [11:41:33]MH_SAM_APDU [11:41:33]CAPDU: 80 11 00 00 [11:41:33]Write to MH i2c: E2 08 00 AA 01 80 11 00 00 00 00 00 00 25 [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:33]Read from MH i2c: E2 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 17 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 17 00 AA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [11:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:41:33]wFMCommunicate OK [11:41:33]CreateOFDProtocolMessage done [11:41:33]OFDSenderStorePacket 188670 [11:41:33]StoreOFDPacket docnum=188670 [11:41:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 65 EF 07 01 A6 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 EB E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E0 02 00 35 04 06 00 4F FB 52 8A 88 13 5A 8D 55 43 8B 58 BF DD [11:41:33]CheckFolder [11:41:33]dirname=/storage/ofd_packets [11:41:33]CheckFolder done [11:41:33]ProducePacketName [11:41:33]name=ofd_packets/00188670 [11:41:33]NVStorageSaveData ofd_packets/00188670 [11:41:33]File name is /storage/ofd_packets/00188670 [11:41:33]Write 301 bytes [11:41:33]NVStorageSaveData done [11:41:33]OFDSenderStorePacket done [11:41:33]KKMCreateOFDPacket done [11:41:33]NVStorageSaveData kkm_last_timestamp [11:41:33]File name is /storage/kkm_last_timestamp [11:41:33]Write 4 bytes [11:41:33]NVStorageSaveData done [11:41:33]ExternCall_PrintAddStr [11:41:33]wPrintStart [11:41:33]Write to MH i2c: 01 00 00 AB 01 AC [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: 01 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: 01 07 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [11:41:33]RasterBufferAndPrint [11:41:33]line Счет N : (1)210732 [11:41:33]line ИНН: 02508201610067 [11:41:33]line Контрольно-Кассовый Чек [11:41:33]line ПРОДАЖА [11:41:33]line ТРК (МРК, ГНК) : 32 [11:41:33]line Товар: 2710124130 [11:41:33]line Аи-92-К-3 [11:41:33]line 14.950 * 66.90 [11:41:33]line = 1000.16 [11:41:33]line НДС 12% НСП 1% [11:41:33]line > о реализуемом товаре [11:41:33]line ОКРУГЛЕНИЕ: -0.16 [11:41:33]line ИТОГО: 1000.00 [11:41:33]line Внесено: 1000.00 [11:41:33]line СДАЧА: 0.00 [11:41:33]line НСП 1% : 8.85 [11:41:33]line НДС 12% : 106.21 [11:41:33]line Наличными: 1000.00 [11:41:33]line Безнал.: 0.00 [11:41:33]line Место: АЗС № 86 "Партнер Нефть" [11:41:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:41:33]line СНО: Общий режим [11:41:33]line Чек 128 23.10.2024 11:41 [11:41:33]line Смена: 462 ФФД: 1.0 [11:41:33]line ЗНМ: 0300000155 [11:41:33]line РНМ: 0000000000100030 [11:41:33]line Версия ККМ: 001 [11:41:33]line ФМ: 0000000000965340 [11:41:33]line ФД: 188670 [11:41:33]line ФПД: 87940840196115 [11:41:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114131&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188670&fm=87940840196115&tin=02508201610067®Number=0000000000100030&sum=100000 [11:41:33]written 0, free lines is 4095 [11:41:33]OFD Sender: Processing packet 188670 [packets to send 1062, broken 1061] [11:41:33]ProducePacketName [11:41:33]name=ofd_packets/00188670 [11:41:33]OFD Sender: To server: pG, [11:41:33]CommunicateWithHost lk.salyk.kg:30040 [11:41:33]ConnectInit lk.salyk.kg [11:41:33]Connected sock=9 [11:41:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 65 EF 07 01 A6 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 EB E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E0 02 00 35 04 06 00 4F FB 52 8A 88 13 5A 8D 55 43 8B 58 BF DD [11:41:33]Write to MH i2c: 01 00 00 D6 01 D7 [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: 01 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: 01 07 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 51 0C 3B [11:41:33]RasterBufferAndPrint [11:41:33]line [11:41:33]line [11:41:33]line [11:41:33]line [11:41:33]line [11:41:33]written 0, free lines is 3157 [11:41:33]MH_Cut [11:41:33]Write to MH i2c: D1 01 00 DD 01 01 B0 [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: D1 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: D1 01 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: D1 01 00 DD 01 00 AF [11:41:33]Write to MH i2c: 01 00 00 DE 01 DF [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 90 4A 47 00 90 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E0 02 00 F4 03 04 00 D6 8A 18 67 B6 04 01 00 00 70 7B 8B FF 91 59 FA 9E [11:41:33]CommunicateWithHost err = 0 [11:41:33]CheckOFDResponse [11:41:33]1017 (14) - 77093643461234 [11:41:33]1041 (16) - 0000000000965340 [11:41:33]1040 (4) - 188670 [11:41:33]1012 (4) - 23.10.2024 05:34 [11:41:33]1206 (1) - 0 [11:41:33]OFD Sender: Remove packet 188670 [11:41:33]ProducePacketName [11:41:33]name=ofd_packets/00188670 [11:41:33]NVStorageDeleteData [11:41:34]OFD Sender: No OFD packet to send [11:41:34]*** Cut start [11:41:34]*** Partial cut [11:41:34]*** CUTSNS_PIN = 1 [11:41:34]*** CUTSNS_PIN = 0 [11:41:35]*** Brake cut motor [11:41:35]Read from MH i2c: 01 [11:41:35]MH_I2C_Read... [11:41:35]*** Stop cut motor [11:41:35]*** Cut end [11:41:35]Read from MH i2c: 01 07 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 FF 0F F4 [11:41:35]process_action close_receipt done [11:41:35]requested_data is exist [11:41:35]produce_requested_data [11:41:35]requested_item fm.sn is exist - process it [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 11 00 00 [11:41:35]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 17 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [11:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:41:35]wFMCommunicate OK [11:41:35]requested_item fd.num is exist - process it [11:41:35]SAM_PROTO_GetFieldsCounters [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 13 00 00 [11:41:35]Write to MH i2c: E2 08 00 E0 01 80 13 00 00 00 00 00 00 5D [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 62 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 62 00 E0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:41:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:35]wFMCommunicate OK [11:41:35]SAM_PROTO_GetFieldsCounters done [11:41:35]requested_item shift.num is exist - process it [11:41:35]requested_item shift.opened is exist - process it [11:41:35]req_shift_opened [11:41:35]FM_GetShiftState [11:41:35]SAM_PROTO_GetShiftState [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 13 01 00 [11:41:35]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 0E 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 47 [11:41:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:41:35]wFMCommunicate OK [11:41:35]SAM_PROTO_GetShiftState done [11:41:35]FM_GetShiftState done [11:41:35]req_shift_opened done [11:41:35]requested_item shift.open_date is exist - process it [11:41:35]req_shift_open_date [11:41:35]req_shift_open_date done [11:41:35]produce_requested_data done [11:41:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188670,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:41:35]process_action_free close_receipt [11:41:35]json_value_free [11:41:35]json_value_free done [11:41:35]process_json_proto returns [11:41:35]Send response to host [11:41:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188670,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:41:35]free response buf [11:41:35]execute_script done [11:41:35]execute_script returns [11:41:35]free content buf [11:41:35]Sock 10.Close socket [11:41:35]Sock 10.Thread stoped [11:41:38]accept exits with 7 [11:41:38]New connection [11:41:38]New thread 3067161956 created [11:41:38]Thread 3067018596 joined [11:41:38]Waiting for new connection... [11:41:38] Sock 7.Parse request [11:41:38]Sock 7.Check first char [11:41:38]Sock 7.First char is OK [11:41:38]request: POST /json_proto HTTP/1.0 [11:41:38]Method: POST [11:41:38]URL: /json_proto [11:41:38]Method is POST - this is cgi request [11:41:38]url: /json_proto [11:41:38]query_string will be loaded in cgi processing [11:41:38]execute_cgi json_proto POST (null) [11:41:38]execute_cgi path=json_proto method=POST [11:41:38]POST find Content-Length [11:41:38]Host: 172.17.42.131:8080 [11:41:38]Content-Length: 682 [11:41:38]Content-Type: application/json [11:41:38] [11:41:38]POST finish read [11:41:38]Found Content-Length = 682 [11:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:38]execute_script... [11:41:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:38]POST & json_proto [11:41:38]process_json_proto [11:41:38]json parsed OK: [11:41:38]protocol is kg_v1.0 [11:41:38]action value=close_receipt [11:41:38]process_action close_receipt [11:41:38]cmd_close_receipt [11:41:38]MH_GetDate [11:41:38]Write to MH i2c: F0 00 00 E2 01 D2 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: F0 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: F0 09 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: F0 09 00 E2 01 00 F2 E0 18 67 A0 18 CA 66 14 [11:41:38]GetLastDocTimeStamp 1729683691 [11:41:38]current date 1729683698 [11:41:38]FM_GetShiftState [11:41:38]SAM_PROTO_GetShiftState [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 13 01 00 [11:41:38]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 0E 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 49 [11:41:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:41:38]wFMCommunicate OK [11:41:38]SAM_PROTO_GetShiftState done [11:41:38]FM_GetShiftState done [11:41:38]opened in 1729642525 [11:41:38]opened+sec_in_day 1729728925 [11:41:38]quantity*price = 100015 [11:41:38]sum+1 = 100017 [11:41:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 129 23.10.2024 11:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188671 ФПД: 261737100734304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114138&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188671&fm=261737100734304&tin=02508201610067®Number=0000000000100030&sum=100000 [11:41:39]StoreToDocumentArchive [11:41:39]shift 462 fd 188671 [11:41:39]save to /storage/0462/doc_00188671 [11:41:39]save last doc name /storage/0462/doc_00188671 to /storage/kkm_last_doc_name [11:41:39]save OK [11:41:39]Clear old archive folders... [11:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:39]tlvbuf is 01C15430 [11:41:39]SAM_PROTO_ClearQueue [11:41:39]wFMCommunicate request_size=4 [11:41:39]MH_SAM_APDU [11:41:39]CAPDU: 80 09 00 00 [11:41:39]Write to MH i2c: E2 08 00 F0 01 80 09 00 00 00 00 00 00 63 [11:41:39]Write i2c OK [11:41:39]MH_I2C_Read... [11:41:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:39]Read from MH i2c: E2 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 03 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [11:41:39]RAPDU: 90 00 [11:41:39]wFMCommunicate OK [11:41:39]SAM_PROTO_ClearQueue done [11:41:39]KKMCreateOFDPacket [11:41:39]OFDProtocolAddRootSTLVToBuf [11:41:39]FM_MakeSignedData [11:41:39]FM_MakeSignedData [11:41:39]SAM_PROTO_SignData [11:41:39]wFMCommunicate request_size=4 [11:41:39]MH_SAM_APDU [11:41:39]CAPDU: 80 0D 01 02 [11:41:39]Write to MH i2c: E2 08 00 F1 01 80 0D 01 02 00 00 00 00 6B [11:41:39]Write i2c OK [11:41:39]MH_I2C_Read... [11:41:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:39]Read from MH i2c: E2 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 03 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [11:41:39]RAPDU: 90 00 [11:41:39]wFMCommunicate OK [11:41:39]wFMCommunicate request_size=255 [11:41:39]MH_SAM_APDU [11:41:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F2 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF E0 02 00 35 04 06 00 EE [11:41:39]Write to MH i2c: E2 02 01 F2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F2 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF E0 02 00 35 04 06 00 EE 00 00 48 [11:41:39]Write i2c OK [11:41:39]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [11:41:40]RAPDU: 90 00 [11:41:40]wFMCommunicate OK [11:41:40]wFMCommunicate request_size=10 [11:41:40]MH_SAM_APDU [11:41:40]CAPDU: 80 0D 02 02 05 0C 6A E9 EF 60 [11:41:40]Write to MH i2c: E2 0D 00 F3 01 80 0D 02 02 05 00 0C 6A E9 EF 60 00 00 26 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [11:41:40]RAPDU: 90 00 [11:41:40]wFMCommunicate OK [11:41:40]wFMCommunicate request_size=4 [11:41:40]MH_SAM_APDU [11:41:40]CAPDU: 80 0D 03 02 [11:41:40]Write to MH i2c: E2 08 00 F4 01 80 0D 03 02 00 00 00 00 70 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 0B 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 0B 00 F4 01 00 B4 43 0B 11 6A DF 78 35 90 00 7A [11:41:40]RAPDU: B4 43 0B 11 6A DF 78 35 90 00 [11:41:40]wFMCommunicate OK [11:41:40]SAM_PROTO_SignData done [11:41:40]FM_MakeSignedData done [11:41:40]CreateOFDProtocolMessage [11:41:40]wFMCommunicate request_size=4 [11:41:40]MH_SAM_APDU [11:41:40]CAPDU: 80 11 00 00 [11:41:40]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:40]Read from MH i2c: E2 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 17 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BE [11:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:41:40]wFMCommunicate OK [11:41:40]CreateOFDProtocolMessage done [11:41:40]OFDSenderStorePacket 188671 [11:41:40]StoreOFDPacket docnum=188671 [11:41:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 94 50 07 01 61 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F2 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF E0 02 00 35 04 06 00 EE 0C 6A E9 EF 60 B4 43 0B 11 6A DF 78 35 [11:41:40]CheckFolder [11:41:40]dirname=/storage/ofd_packets [11:41:40]CheckFolder done [11:41:40]ProducePacketName [11:41:40]name=ofd_packets/00188671 [11:41:40]NVStorageSaveData ofd_packets/00188671 [11:41:40]File name is /storage/ofd_packets/00188671 [11:41:40]Write 301 bytes [11:41:40]NVStorageSaveData done [11:41:40]OFDSenderStorePacket done [11:41:40]KKMCreateOFDPacket done [11:41:40]NVStorageSaveData kkm_last_timestamp [11:41:40]File name is /storage/kkm_last_timestamp [11:41:40]Write 4 bytes [11:41:40]NVStorageSaveData done [11:41:40]ExternCall_PrintAddStr [11:41:40]wPrintStart [11:41:40]Write to MH i2c: 01 00 00 F6 01 F7 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 07 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 07 00 F6 01 00 00 00 00 00 FF 0F 0C [11:41:40]RasterBufferAndPrint [11:41:40]line Счет N : (1)210731 [11:41:40]line ИНН: 02508201610067 [11:41:40]line Контрольно-Кассовый Чек [11:41:40]line ПРОДАЖА [11:41:40]line ТРК (МРК, ГНК) : 12 [11:41:40]line Товар: 2710124130 [11:41:40]line Аи-92-К-3 [11:41:40]line 14.950 * 66.90 [11:41:40]line = 1000.16 [11:41:40]line НДС 12% НСП 1% [11:41:40]line > о реализуемом товаре [11:41:40]line ОКРУГЛЕНИЕ: -0.16 [11:41:40]line ИТОГО: 1000.00 [11:41:40]line Внесено: 1000.00 [11:41:40]line СДАЧА: 0.00 [11:41:40]line НСП 1% : 8.85 [11:41:40]line НДС 12% : 106.21 [11:41:40]line Наличными: 1000.00 [11:41:40]line Безнал.: 0.00 [11:41:40]line Место: АЗС № 86 "Партнер Нефть" [11:41:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:41:40]line СНО: Общий режим [11:41:40]line Чек 129 23.10.2024 11:41 [11:41:40]line Смена: 462 ФФД: 1.0 [11:41:40]line ЗНМ: 0300000155 [11:41:40]line РНМ: 0000000000100030 [11:41:40]line Версия ККМ: 001 [11:41:40]line ФМ: 0000000000965340 [11:41:40]line ФД: 188671 [11:41:40]line ФПД: 261737100734304 [11:41:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114138&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188671&fm=261737100734304&tin=02508201610067®Number=0000000000100030&sum=100000 [11:41:40]written 0, free lines is 4095 [11:41:40]OFD Sender: Processing packet 188671 [packets to send 1062, broken 1061] [11:41:40]ProducePacketName [11:41:40]name=ofd_packets/00188671 [11:41:40]OFD Sender: To server: pG, [11:41:40]CommunicateWithHost lk.salyk.kg:30040 [11:41:40]ConnectInit lk.salyk.kg [11:41:40]Write to MH i2c: 01 00 00 21 02 23 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 07 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 5A 0C 90 [11:41:40]RasterBufferAndPrint [11:41:40]line [11:41:40]line [11:41:40]line [11:41:40]line [11:41:40]line [11:41:40]written 0, free lines is 3167 [11:41:40]MH_Cut [11:41:40]Write to MH i2c: D1 01 00 28 02 01 FC [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: D1 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: D1 01 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: D1 01 00 28 02 00 FB [11:41:40]Write to MH i2c: 01 00 00 29 02 2B [11:41:40]Connected sock=10 [11:41:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 94 50 07 01 61 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F2 E0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]33 34 30 10 04 04 00 FF E0 02 00 35 04 06 00 EE 0C 6A E9 EF 60 B4 43 0B 11 6A DF 78 35 [11:41:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 13 2B 47 00 B5 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF E0 02 00 F4 03 04 00 DD 8A 18 67 B6 04 01 00 00 3A A2 DD 90 9C F7 70 06 [11:41:41]CommunicateWithHost err = 0 [11:41:41]CheckOFDResponse [11:41:41]1017 (14) - 77093643461234 [11:41:41]1041 (16) - 0000000000965340 [11:41:41]1040 (4) - 188671 [11:41:41]1012 (4) - 23.10.2024 05:34 [11:41:41]1206 (1) - 0 [11:41:41]OFD Sender: Remove packet 188671 [11:41:41]ProducePacketName [11:41:41]name=ofd_packets/00188671 [11:41:41]NVStorageDeleteData [11:41:41]OFD Sender: No OFD packet to send [11:41:41]*** Cut start [11:41:41]*** Partial cut [11:41:41]*** CUTSNS_PIN = 1 [11:41:42]*** CUTSNS_PIN = 0 [11:41:42]*** Brake cut motor [11:41:42]Read from MH i2c: 01 [11:41:42]MH_I2C_Read... [11:41:42]*** Stop cut motor [11:41:42]*** Cut end [11:41:42]Read from MH i2c: 01 07 00 [11:41:42]MH_I2C_Read... [11:41:42]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [11:41:42]process_action close_receipt done [11:41:42]requested_data is exist [11:41:42]produce_requested_data [11:41:42]requested_item fm.sn is exist - process it [11:41:42]wFMCommunicate request_size=4 [11:41:42]MH_SAM_APDU [11:41:42]CAPDU: 80 11 00 00 [11:41:42]Write to MH i2c: E2 08 00 2A 02 80 11 00 00 00 00 00 00 A6 [11:41:42]Write i2c OK [11:41:42]MH_I2C_Read... [11:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:42]Read from MH i2c: E2 [11:41:42]MH_I2C_Read... [11:41:42]Read from MH i2c: E2 17 00 [11:41:42]MH_I2C_Read... [11:41:42]Read from MH i2c: E2 17 00 2A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [11:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:41:42]wFMCommunicate OK [11:41:42]requested_item fd.num is exist - process it [11:41:42]SAM_PROTO_GetFieldsCounters [11:41:42]wFMCommunicate request_size=4 [11:41:42]MH_SAM_APDU [11:41:42]CAPDU: 80 13 00 00 [11:41:42]Write to MH i2c: E2 08 00 2B 02 80 13 00 00 00 00 00 00 A9 [11:41:42]Write i2c OK [11:41:42]MH_I2C_Read... [11:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:42]Read from MH i2c: E2 [11:41:42]MH_I2C_Read... [11:41:42]Read from MH i2c: E2 62 00 [11:41:42]MH_I2C_Read... [11:41:42]Read from MH i2c: E2 62 00 2B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [11:41:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:42]wFMCommunicate OK [11:41:42]SAM_PROTO_GetFieldsCounters done [11:41:42]requested_item shift.num is exist - process it [11:41:42]requested_item shift.opened is exist - process it [11:41:42]req_shift_opened [11:41:42]FM_GetShiftState [11:41:42]SAM_PROTO_GetShiftState [11:41:42]wFMCommunicate request_size=4 [11:41:42]MH_SAM_APDU [11:41:42]CAPDU: 80 13 01 00 [11:41:42]Write to MH i2c: E2 08 00 2C 02 80 13 01 00 00 00 00 00 AB [11:41:42]Write i2c OK [11:41:42]MH_I2C_Read... [11:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:42]Read from MH i2c: E2 [11:41:42]MH_I2C_Read... [11:41:42]Read from MH i2c: E2 0E 00 [11:41:42]MH_I2C_Read... [11:41:42]Read from MH i2c: E2 0E 00 2C 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 93 [11:41:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:41:42]wFMCommunicate OK [11:41:42]SAM_PROTO_GetShiftState done [11:41:42]FM_GetShiftState done [11:41:42]req_shift_opened done [11:41:42]requested_item shift.open_date is exist - process it [11:41:42]req_shift_open_date [11:41:42]req_shift_open_date done [11:41:42]produce_requested_data done [11:41:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188671,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:41:42]process_action_free close_receipt [11:41:42]json_value_free [11:41:42]json_value_free done [11:41:42]process_json_proto returns [11:41:42]Send response to host [11:41:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188671,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:41:42]free response buf [11:41:42]execute_script done [11:41:42]execute_script returns [11:41:42]free content buf [11:41:42]Sock 7.Close socket [11:41:42]Sock 7.Thread stoped [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:15]accept exits with 9 [11:43:15]New connection [11:43:15]New thread 3067018596 created [11:43:15]Thread 3067161956 joined [11:43:15]Waiting for new connection... [11:43:15] Sock 9.Parse request [11:43:15]Sock 9.Check first char [11:43:15]Sock 9.First char is OK [11:43:15]request: POST /json_proto HTTP/1.0 [11:43:15]Method: POST [11:43:15]URL: /json_proto [11:43:15]Method is POST - this is cgi request [11:43:15]url: /json_proto [11:43:15]query_string will be loaded in cgi processing [11:43:15]execute_cgi json_proto POST (null) [11:43:15]execute_cgi path=json_proto method=POST [11:43:15]POST find Content-Length [11:43:15]Host: 172.17.42.131:8080 [11:43:15]Content-Length: 682 [11:43:15]Content-Type: application/json [11:43:15] [11:43:15]POST finish read [11:43:15]Found Content-Length = 682 [11:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:15]execute_script... [11:43:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:15]POST & json_proto [11:43:15]process_json_proto [11:43:15]json parsed OK: [11:43:15]protocol is kg_v1.0 [11:43:15]action value=close_receipt [11:43:15]process_action close_receipt [11:43:15]cmd_close_receipt [11:43:15]MH_GetDate [11:43:15]Write to MH i2c: F0 00 00 2D 02 1E [11:43:15]Write i2c OK [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: F0 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: F0 09 00 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: F0 09 00 2D 02 00 53 E1 18 67 A0 18 CA 66 C2 [11:43:15]GetLastDocTimeStamp 1729683698 [11:43:15]current date 1729683795 [11:43:15]FM_GetShiftState [11:43:15]SAM_PROTO_GetShiftState [11:43:15]wFMCommunicate request_size=4 [11:43:15]MH_SAM_APDU [11:43:15]CAPDU: 80 13 01 00 [11:43:15]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [11:43:15]Write i2c OK [11:43:15]MH_I2C_Read... [11:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:15]Read from MH i2c: E2 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: E2 0E 00 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 95 [11:43:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:43:15]wFMCommunicate OK [11:43:15]SAM_PROTO_GetShiftState done [11:43:15]FM_GetShiftState done [11:43:15]opened in 1729642525 [11:43:15]opened+sec_in_day 1729728925 [11:43:15]quantity*price = 200043 [11:43:15]sum+1 = 200044 [11:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 130 23.10.2024 11:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188672 ФПД: 125039330423755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188672&fm=125039330423755&tin=02508201610067®Number=0000000000100030&sum=200000 [11:43:16]StoreToDocumentArchive [11:43:16]shift 462 fd 188672 [11:43:16]save to /storage/0462/doc_00188672 [11:43:16]save last doc name /storage/0462/doc_00188672 to /storage/kkm_last_doc_name [11:43:16]save OK [11:43:16]Clear old archive folders... [11:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:16]tlvbuf is 01C00A70 [11:43:16]SAM_PROTO_ClearQueue [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 09 00 00 [11:43:16]Write to MH i2c: E2 08 00 3B 02 80 09 00 00 00 00 00 00 AF [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [11:43:16]RAPDU: 90 00 [11:43:16]wFMCommunicate OK [11:43:16]SAM_PROTO_ClearQueue done [11:43:16]KKMCreateOFDPacket [11:43:16]OFDProtocolAddRootSTLVToBuf [11:43:16]FM_MakeSignedData [11:43:16]FM_MakeSignedData [11:43:16]SAM_PROTO_SignData [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 0D 01 02 [11:43:16]Write to MH i2c: E2 08 00 3C 02 80 0D 01 02 00 00 00 00 B7 [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [11:43:16]RAPDU: 90 00 [11:43:16]wFMCommunicate OK [11:43:16]wFMCommunicate request_size=255 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 53 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E1 02 00 35 04 06 00 71 [11:43:16]Write to MH i2c: E2 02 01 3D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 53 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E1 02 00 35 04 06 00 71 00 00 2A [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [11:43:16]RAPDU: 90 00 [11:43:16]wFMCommunicate OK [11:43:16]wFMCommunicate request_size=10 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 0D 02 02 05 B8 FC DF 73 CB [11:43:16]Write to MH i2c: E2 0D 00 3E 02 80 0D 02 02 05 00 B8 FC DF 73 CB 00 00 95 [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [11:43:16]RAPDU: 90 00 [11:43:16]wFMCommunicate OK [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 0D 03 02 [11:43:16]Write to MH i2c: E2 08 00 3F 02 80 0D 03 02 00 00 00 00 BC [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 0B 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 0B 00 3F 02 00 54 59 42 77 4C F6 1E 2E 90 00 B1 [11:43:16]RAPDU: 54 59 42 77 4C F6 1E 2E 90 00 [11:43:16]wFMCommunicate OK [11:43:16]SAM_PROTO_SignData done [11:43:16]FM_MakeSignedData done [11:43:16]CreateOFDProtocolMessage [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 11 00 00 [11:43:16]Write to MH i2c: E2 08 00 40 02 80 11 00 00 00 00 00 00 BC [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 17 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 17 00 40 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [11:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:16]wFMCommunicate OK [11:43:16]CreateOFDProtocolMessage done [11:43:16]OFDSenderStorePacket 188672 [11:43:16]StoreOFDPacket docnum=188672 [11:43:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB 21 07 01 33 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 53 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E1 02 00 35 04 06 00 71 B8 FC DF 73 CB 54 59 42 77 4C F6 1E 2E [11:43:16]CheckFolder [11:43:16]dirname=/storage/ofd_packets [11:43:16]CheckFolder done [11:43:16]ProducePacketName [11:43:16]name=ofd_packets/00188672 [11:43:16]NVStorageSaveData ofd_packets/00188672 [11:43:16]File name is /storage/ofd_packets/00188672 [11:43:16]Write 301 bytes [11:43:16]NVStorageSaveData done [11:43:16]OFDSenderStorePacket done [11:43:16]KKMCreateOFDPacket done [11:43:16]NVStorageSaveData kkm_last_timestamp [11:43:16]File name is /storage/kkm_last_timestamp [11:43:16]Write 4 bytes [11:43:16]NVStorageSaveData done [11:43:16]ExternCall_PrintAddStr [11:43:16]wPrintStart [11:43:16]Write to MH i2c: 01 00 00 41 02 43 [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: 01 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: 01 07 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [11:43:16]RasterBufferAndPrint [11:43:16]line Счет N : (1)210733 [11:43:16]line ИНН: 02508201610067 [11:43:16]line Контрольно-Кассовый Чек [11:43:16]line ПРОДАЖА [11:43:16]line ТРК (МРК, ГНК) : 43 [11:43:16]line Товар: 2710124500 [11:43:16]line Аи-95-К-3 [11:43:16]line 26.960 * 74.20 [11:43:16]line = 2000.43 [11:43:16]line НДС 12% НСП 1% [11:43:16]line > о реализуемом товаре [11:43:16]line ОКРУГЛЕНИЕ: -0.43 [11:43:16]line ИТОГО: 2000.00 [11:43:16]line Внесено: 2000.00 [11:43:16]line СДАЧА: 0.00 [11:43:16]line НСП 1% : 17.70 [11:43:16]line НДС 12% : 212.43 [11:43:16]line Наличными: 2000.00 [11:43:16]line Безнал.: 0.00 [11:43:16]line Место: АЗС № 86 "Партнер Нефть" [11:43:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:43:16]line СНО: Общий режим [11:43:16]line Чек 130 23.10.2024 11:43 [11:43:16]line Смена: 462 ФФД: 1.0 [11:43:16]line ЗНМ: 0300000155 [11:43:16]line РНМ: 0000000000100030 [11:43:16]line Версия ККМ: 001 [11:43:16]line ФМ: 0000000000965340 [11:43:16]line ФД: 188672 [11:43:16]line ФПД: 125039330423755 [11:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188672&fm=125039330423755&tin=02508201610067®Number=0000000000100030&sum=200000 [11:43:16]written 0, free lines is 4095 [11:43:16]OFD Sender: Processing packet 188672 [packets to send 1062, broken 1061] [11:43:16]ProducePacketName [11:43:16]name=ofd_packets/00188672 [11:43:16]OFD Sender: To server: pG, [11:43:16]CommunicateWithHost lk.salyk.kg:30040 [11:43:16]ConnectInit lk.salyk.kg [11:43:17]Connected sock=7 [11:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB 21 07 01 33 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 53 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E1 02 00 35 04 06 00 71 B8 FC DF 73 CB 54 59 42 77 4C F6 1E 2E [11:43:17]Write to MH i2c: 01 00 00 6C 02 6E [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 07 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 66 0C E7 [11:43:17]RasterBufferAndPrint [11:43:17]line [11:43:17]line [11:43:17]line [11:43:17]line [11:43:17]line [11:43:17]written 0, free lines is 3178 [11:43:17]MH_Cut [11:43:17]Write to MH i2c: D1 01 00 73 02 01 47 [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: D1 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: D1 01 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: D1 01 00 73 02 00 46 [11:43:17]Write to MH i2c: 01 00 00 74 02 76 [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6A 9E 47 00 B7 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E1 02 00 F4 03 04 00 3E 8B 18 67 B6 04 01 00 00 D8 16 BF B7 B9 87 31 FC [11:43:17]CommunicateWithHost err = 0 [11:43:17]CheckOFDResponse [11:43:17]1017 (14) - 77093643461234 [11:43:17]1041 (16) - 0000000000965340 [11:43:17]1040 (4) - 188672 [11:43:17]1012 (4) - 23.10.2024 05:35 [11:43:17]1206 (1) - 0 [11:43:17]OFD Sender: Remove packet 188672 [11:43:17]ProducePacketName [11:43:17]name=ofd_packets/00188672 [11:43:17]NVStorageDeleteData [11:43:18]OFD Sender: No OFD packet to send [11:43:18]*** Cut start [11:43:18]*** Partial cut [11:43:18]*** CUTSNS_PIN = 1 [11:43:18]*** CUTSNS_PIN = 0 [11:43:18]*** Brake cut motor [11:43:19]Read from MH i2c: 01 [11:43:19]MH_I2C_Read... [11:43:19]*** Stop cut motor [11:43:19]*** Cut end [11:43:19]Read from MH i2c: 01 07 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [11:43:19]process_action close_receipt done [11:43:19]requested_data is exist [11:43:19]produce_requested_data [11:43:19]requested_item fm.sn is exist - process it [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 11 00 00 [11:43:19]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 17 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [11:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:19]wFMCommunicate OK [11:43:19]requested_item fd.num is exist - process it [11:43:19]SAM_PROTO_GetFieldsCounters [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 13 00 00 [11:43:19]Write to MH i2c: E2 08 00 76 02 80 13 00 00 00 00 00 00 F4 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 62 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 62 00 76 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [11:43:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:19]wFMCommunicate OK [11:43:19]SAM_PROTO_GetFieldsCounters done [11:43:19]requested_item shift.num is exist - process it [11:43:19]requested_item shift.opened is exist - process it [11:43:19]req_shift_opened [11:43:19]FM_GetShiftState [11:43:19]SAM_PROTO_GetShiftState [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 13 01 00 [11:43:19]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 0E 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DE [11:43:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:43:19]wFMCommunicate OK [11:43:19]SAM_PROTO_GetShiftState done [11:43:19]FM_GetShiftState done [11:43:19]req_shift_opened done [11:43:19]requested_item shift.open_date is exist - process it [11:43:19]req_shift_open_date [11:43:19]req_shift_open_date done [11:43:19]produce_requested_data done [11:43:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188672,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:43:19]process_action_free close_receipt [11:43:19]json_value_free [11:43:19]json_value_free done [11:43:19]process_json_proto returns [11:43:19]Send response to host [11:43:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188672,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:43:19]free response buf [11:43:19]execute_script done [11:43:19]execute_script returns [11:43:19]free content buf [11:43:19]Sock 9.Close socket [11:43:19]Sock 9.Thread stoped [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:28]accept exits with 10 [11:43:28]New connection [11:43:28]New thread 3067161956 created [11:43:28]Thread 3067018596 joined [11:43:28]Waiting for new connection... [11:43:28] Sock 10.Parse request [11:43:28]Sock 10.Check first char [11:43:28]Sock 10.First char is OK [11:43:28]request: POST /json_proto HTTP/1.0 [11:43:28]Method: POST [11:43:28]URL: /json_proto [11:43:28]Method is POST - this is cgi request [11:43:28]url: /json_proto [11:43:28]query_string will be loaded in cgi processing [11:43:28]execute_cgi json_proto POST (null) [11:43:28]execute_cgi path=json_proto method=POST [11:43:28]POST find Content-Length [11:43:28]Host: 172.17.42.131:8080 [11:43:28]Content-Length: 752 [11:43:28]Content-Type: application/json [11:43:28] [11:43:28]POST finish read [11:43:28]Found Content-Length = 752 [11:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:28]execute_script... [11:43:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:28]POST & json_proto [11:43:28]process_json_proto [11:43:28]json parsed OK: [11:43:28]protocol is kg_v1.0 [11:43:28]action value=close_receipt [11:43:28]process_action close_receipt [11:43:28]cmd_close_receipt [11:43:28]MH_GetDate [11:43:28]Write to MH i2c: F0 00 00 78 02 69 [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: F0 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: F0 09 00 [11:43:28]MH_I2C_Read... [11:43:28]Read from MH i2c: F0 09 00 78 02 00 61 E1 18 67 A0 18 CA 66 1B [11:43:28]GetLastDocTimeStamp 1729683795 [11:43:28]current date 1729683809 [11:43:28]FM_GetShiftState [11:43:28]SAM_PROTO_GetShiftState [11:43:28]wFMCommunicate request_size=4 [11:43:28]MH_SAM_APDU [11:43:28]CAPDU: 80 13 01 00 [11:43:28]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:29]Read from MH i2c: E2 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 0E 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E0 [11:43:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:43:29]wFMCommunicate OK [11:43:29]SAM_PROTO_GetShiftState done [11:43:29]FM_GetShiftState done [11:43:29]opened in 1729642525 [11:43:29]opened+sec_in_day 1729728925 [11:43:29]quantity*price = 0 [11:43:29]sum+1 = 1 [11:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 131 23.10.2024 11:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118725 ФМ: 0000000000965340 ФД: 188673 ФПД: 171999085103182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114329&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188673&fm=171999085103182&tin=02508201610067®Number=0000000000100030&sum=0 [11:43:30]StoreToDocumentArchive [11:43:30]shift 462 fd 188673 [11:43:30]save to /storage/0462/doc_00188673 [11:43:30]save last doc name /storage/0462/doc_00188673 to /storage/kkm_last_doc_name [11:43:30]save OK [11:43:30]Clear old archive folders... [11:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:30]tlvbuf is 01C56B50 [11:43:30]SAM_PROTO_ClearQueue [11:43:30]wFMCommunicate request_size=4 [11:43:30]MH_SAM_APDU [11:43:30]CAPDU: 80 09 00 00 [11:43:30]Write to MH i2c: E2 08 00 86 02 80 09 00 00 00 00 00 00 FA [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:30]Read from MH i2c: E2 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 03 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [11:43:30]RAPDU: 90 00 [11:43:30]wFMCommunicate OK [11:43:30]SAM_PROTO_ClearQueue done [11:43:30]KKMCreateOFDPacket [11:43:30]OFDProtocolAddRootSTLVToBuf [11:43:30]FM_MakeSignedData [11:43:30]FM_MakeSignedData [11:43:30]SAM_PROTO_SignData [11:43:30]wFMCommunicate request_size=4 [11:43:30]MH_SAM_APDU [11:43:30]CAPDU: 80 0D 01 02 [11:43:30]Write to MH i2c: E2 08 00 87 02 80 0D 01 02 00 00 00 00 02 [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:30]Read from MH i2c: E2 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 03 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [11:43:30]RAPDU: 90 00 [11:43:30]wFMCommunicate OK [11:43:30]wFMCommunicate request_size=255 [11:43:30]MH_SAM_APDU [11:43:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 61 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E1 02 00 35 04 06 00 9C 6E A8 5E [11:43:30]Write to MH i2c: E2 02 01 88 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 61 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E1 02 00 35 04 06 00 9C 6E A8 5E 00 00 73 [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:30]Read from MH i2c: E2 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 03 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [11:43:30]RAPDU: 90 00 [11:43:30]wFMCommunicate OK [11:43:30]wFMCommunicate request_size=7 [11:43:30]MH_SAM_APDU [11:43:30]CAPDU: 80 0D 02 02 02 88 4E [11:43:30]Write to MH i2c: E2 0A 00 89 02 80 0D 02 02 02 00 88 4E 00 00 DF [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:30]Read from MH i2c: E2 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 03 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [11:43:30]RAPDU: 90 00 [11:43:30]wFMCommunicate OK [11:43:30]wFMCommunicate request_size=4 [11:43:30]MH_SAM_APDU [11:43:30]CAPDU: 80 0D 03 02 [11:43:30]Write to MH i2c: E2 08 00 8A 02 80 0D 03 02 00 00 00 00 07 [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:30]Read from MH i2c: E2 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 0B 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 0B 00 8A 02 00 4F C0 6E 17 52 B9 47 9D 90 00 8B [11:43:30]RAPDU: 4F C0 6E 17 52 B9 47 9D 90 00 [11:43:30]wFMCommunicate OK [11:43:30]SAM_PROTO_SignData done [11:43:30]FM_MakeSignedData done [11:43:30]CreateOFDProtocolMessage [11:43:30]wFMCommunicate request_size=4 [11:43:30]MH_SAM_APDU [11:43:30]CAPDU: 80 11 00 00 [11:43:30]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:30]Read from MH i2c: E2 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 17 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [11:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:30]wFMCommunicate OK [11:43:30]CreateOFDProtocolMessage done [11:43:30]OFDSenderStorePacket 188673 [11:43:30]StoreOFDPacket docnum=188673 [11:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 85 D4 04 01 52 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 61 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E1 02 00 35 04 06 00 9C 6E A8 5E 88 4E 4F C0 6E 17 52 B9 47 9D [11:43:30]CheckFolder [11:43:30]dirname=/storage/ofd_packets [11:43:30]CheckFolder done [11:43:30]ProducePacketName [11:43:30]name=ofd_packets/00188673 [11:43:30]NVStorageSaveData ofd_packets/00188673 [11:43:30]File name is /storage/ofd_packets/00188673 [11:43:30]Write 298 bytes [11:43:30]NVStorageSaveData done [11:43:30]OFDSenderStorePacket done [11:43:30]KKMCreateOFDPacket done [11:43:30]NVStorageSaveData kkm_last_timestamp [11:43:30]File name is /storage/kkm_last_timestamp [11:43:30]Write 4 bytes [11:43:30]NVStorageSaveData done [11:43:30]ExternCall_PrintAddStr [11:43:30]wPrintStart [11:43:30]Write to MH i2c: 01 00 00 8C 02 8E [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: 01 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: 01 07 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [11:43:30]RasterBufferAndPrint [11:43:30]line Счет N : (1)210727 [11:43:30]line ИНН: 02508201610067 [11:43:30]line Контрольно-Кассовый Чек [11:43:30]line ПРОДАЖА [11:43:30]line ТРК (МРК, ГНК) : 51 [11:43:30]line Товар: 2710194210 [11:43:30]line ДТ-К-5 [11:43:30]line 100.000 * 0.00 [11:43:30]line = 0.00 [11:43:30]line НДС 12% НСП 1% [11:43:30]line > о реализуемом товаре [11:43:30]line ИТОГО: 0.00 [11:43:30]line НСП 1% : 0.00 [11:43:30]line НДС 12% : 0.00 [11:43:30]line Наличными: 0.00 [11:43:30]line Безнал.: 0.00 [11:43:30]line Место: АЗС № 86 "Партнер Нефть" [11:43:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:43:30]line СНО: Общий режим [11:43:30]line Чек 131 23.10.2024 11:43 [11:43:30]line Смена: 462 ФФД: 1.0 [11:43:30]line ЗНМ: 0300000155 [11:43:30]line РНМ: 0000000000100030 [11:43:30]line Версия ККМ: 001 [11:43:30]line Талоны: ТК ГПНА Online [11:43:30]line 30118725 [11:43:30]line ФМ: 0000000000965340 [11:43:30]line ФД: 188673 [11:43:30]line ФПД: 171999085103182 [11:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114329&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188673&fm=171999085103182&tin=02508201610067®Number=0000000000100030&sum=0 [11:43:30]written 0, free lines is 4095 [11:43:30]OFD Sender: Processing packet 188673 [packets to send 1062, broken 1061] [11:43:30]ProducePacketName [11:43:30]name=ofd_packets/00188673 [11:43:30]OFD Sender: To server: pG, [11:43:30]CommunicateWithHost lk.salyk.kg:30040 [11:43:30]ConnectInit lk.salyk.kg [11:43:31]Connected sock=9 [11:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 85 D4 04 01 52 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 61 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E1 02 00 35 04 06 00 9C 6E A8 5E 88 4E 4F C0 6E 17 52 B9 47 9D [11:43:31]Write to MH i2c: 01 00 00 B6 02 B8 [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 07 00 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 70 0C 3B [11:43:31]RasterBufferAndPrint [11:43:31]line [11:43:31]line [11:43:31]line [11:43:31]line [11:43:31]line [11:43:31]written 0, free lines is 3192 [11:43:31]MH_Cut [11:43:31]Write to MH i2c: D1 01 00 BD 02 01 91 [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: D1 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: D1 01 00 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: D1 01 00 BD 02 00 90 [11:43:31]Write to MH i2c: 01 00 00 BE 02 C0 [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F4 9A 47 00 15 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E1 02 00 F4 03 04 00 4C 8B 18 67 B6 04 01 00 00 E2 B6 36 9F A7 DC 82 E0 [11:43:31]CommunicateWithHost err = 0 [11:43:31]CheckOFDResponse [11:43:31]1017 (14) - 77093643461234 [11:43:31]1041 (16) - 0000000000965340 [11:43:31]1040 (4) - 188673 [11:43:31]1012 (4) - 23.10.2024 05:36 [11:43:31]1206 (1) - 0 [11:43:31]OFD Sender: Remove packet 188673 [11:43:31]ProducePacketName [11:43:31]name=ofd_packets/00188673 [11:43:31]NVStorageDeleteData [11:43:31]OFD Sender: No OFD packet to send [11:43:32]*** Cut start [11:43:32]*** Partial cut [11:43:32]*** CUTSNS_PIN = 1 [11:43:32]*** CUTSNS_PIN = 0 [11:43:32]*** Brake cut motor [11:43:33]Read from MH i2c: 01 [11:43:33]MH_I2C_Read... [11:43:33]*** Stop cut motor [11:43:33]*** Cut end [11:43:33]Read from MH i2c: 01 07 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 FF 0F D5 [11:43:33]process_action close_receipt done [11:43:33]requested_data is exist [11:43:33]produce_requested_data [11:43:33]requested_item fm.sn is exist - process it [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 11 00 00 [11:43:33]Write to MH i2c: E2 08 00 BF 02 80 11 00 00 00 00 00 00 3B [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:33]Read from MH i2c: E2 17 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 17 00 BF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 89 [11:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:33]wFMCommunicate OK [11:43:33]requested_item fd.num is exist - process it [11:43:33]SAM_PROTO_GetFieldsCounters [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 13 00 00 [11:43:33]Write to MH i2c: E2 08 00 C0 02 80 13 00 00 00 00 00 00 3E [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 62 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 62 00 C0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [11:43:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:33]wFMCommunicate OK [11:43:33]SAM_PROTO_GetFieldsCounters done [11:43:33]requested_item shift.num is exist - process it [11:43:33]requested_item shift.opened is exist - process it [11:43:33]req_shift_opened [11:43:33]FM_GetShiftState [11:43:33]SAM_PROTO_GetShiftState [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 13 01 00 [11:43:33]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 0E 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 28 [11:43:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:43:33]wFMCommunicate OK [11:43:33]SAM_PROTO_GetShiftState done [11:43:33]FM_GetShiftState done [11:43:33]req_shift_opened done [11:43:33]requested_item shift.open_date is exist - process it [11:43:33]req_shift_open_date [11:43:33]req_shift_open_date done [11:43:33]produce_requested_data done [11:43:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188673,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:43:33]process_action_free close_receipt [11:43:33]json_value_free [11:43:33]json_value_free done [11:43:33]process_json_proto returns [11:43:33]Send response to host [11:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188673,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:43:33]free response buf [11:43:33]execute_script done [11:43:33]execute_script returns [11:43:33]free content buf [11:43:33]Sock 10.Close socket [11:43:33]Sock 10.Thread stoped [11:43:36]OFD Sender: No OFD packet to send [11:43:41]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:39]accept exits with 7 [11:44:39]New connection [11:44:39]New thread 3067018596 created [11:44:39]Thread 3067161956 joined [11:44:39]Waiting for new connection... [11:44:39] Sock 7.Parse request [11:44:39]Sock 7.Check first char [11:44:39]Sock 7.First char is OK [11:44:39]request: POST /json_proto HTTP/1.0 [11:44:39]Method: POST [11:44:39]URL: /json_proto [11:44:39]Method is POST - this is cgi request [11:44:39]url: /json_proto [11:44:39]query_string will be loaded in cgi processing [11:44:39]execute_cgi json_proto POST (null) [11:44:39]execute_cgi path=json_proto method=POST [11:44:39]POST find Content-Length [11:44:39]Host: 172.17.42.131:8080 [11:44:39]Content-Length: 677 [11:44:39]Content-Type: application/json [11:44:39] [11:44:39]POST finish read [11:44:39]Found Content-Length = 677 [11:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:39]execute_script... [11:44:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:39]POST & json_proto [11:44:39]process_json_proto [11:44:39]json parsed OK: [11:44:39]protocol is kg_v1.0 [11:44:39]action value=close_receipt [11:44:39]process_action close_receipt [11:44:39]cmd_close_receipt [11:44:39]MH_GetDate [11:44:39]Write to MH i2c: F0 00 00 C2 02 B3 [11:44:39]Write i2c OK [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: F0 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: F0 09 00 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: F0 09 00 C2 02 00 A7 E1 18 67 A0 18 CA 66 AB [11:44:39]GetLastDocTimeStamp 1729683809 [11:44:39]current date 1729683879 [11:44:39]FM_GetShiftState [11:44:39]SAM_PROTO_GetShiftState [11:44:39]wFMCommunicate request_size=4 [11:44:39]MH_SAM_APDU [11:44:39]CAPDU: 80 13 01 00 [11:44:39]Write to MH i2c: E2 08 00 C3 02 80 13 01 00 00 00 00 00 42 [11:44:39]Write i2c OK [11:44:39]MH_I2C_Read... [11:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:39]Read from MH i2c: E2 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 0E 00 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 0E 00 C3 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2A [11:44:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:44:39]wFMCommunicate OK [11:44:39]SAM_PROTO_GetShiftState done [11:44:39]FM_GetShiftState done [11:44:39]opened in 1729642525 [11:44:39]opened+sec_in_day 1729728925 [11:44:39]quantity*price = 20003 [11:44:39]sum+1 = 20004 [11:44:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 132 23.10.2024 11:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188674 ФПД: 244773818773097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188674&fm=244773818773097&tin=02508201610067®Number=0000000000100030&sum=20000 [11:44:40]StoreToDocumentArchive [11:44:40]shift 462 fd 188674 [11:44:40]save to /storage/0462/doc_00188674 [11:44:40]save last doc name /storage/0462/doc_00188674 to /storage/kkm_last_doc_name [11:44:40]save OK [11:44:40]Clear old archive folders... [11:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:40]tlvbuf is 01C04450 [11:44:40]SAM_PROTO_ClearQueue [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 09 00 00 [11:44:40]Write to MH i2c: E2 08 00 D0 02 80 09 00 00 00 00 00 00 44 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [11:44:40]RAPDU: 90 00 [11:44:40]wFMCommunicate OK [11:44:40]SAM_PROTO_ClearQueue done [11:44:40]KKMCreateOFDPacket [11:44:40]OFDProtocolAddRootSTLVToBuf [11:44:40]FM_MakeSignedData [11:44:40]FM_MakeSignedData [11:44:40]SAM_PROTO_SignData [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 0D 01 02 [11:44:40]Write to MH i2c: E2 08 00 D1 02 80 0D 01 02 00 00 00 00 4C [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [11:44:40]RAPDU: 90 00 [11:44:40]wFMCommunicate OK [11:44:40]wFMCommunicate request_size=255 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A7 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E1 02 00 35 04 06 00 DE [11:44:40]Write to MH i2c: E2 02 01 D2 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A7 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E1 02 00 35 04 06 00 DE 00 00 9E [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [11:44:40]RAPDU: 90 00 [11:44:40]wFMCommunicate OK [11:44:40]wFMCommunicate request_size=10 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 0D 02 02 05 9E D8 84 AE 69 [11:44:40]Write to MH i2c: E2 0D 00 D3 02 80 0D 02 02 05 00 9E D8 84 AE 69 00 00 6A [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [11:44:40]RAPDU: 90 00 [11:44:40]wFMCommunicate OK [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 0D 03 02 [11:44:40]Write to MH i2c: E2 08 00 D4 02 80 0D 03 02 00 00 00 00 51 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 0B 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 0B 00 D4 02 00 33 A0 C6 43 48 59 24 5F 90 00 52 [11:44:40]RAPDU: 33 A0 C6 43 48 59 24 5F 90 00 [11:44:40]wFMCommunicate OK [11:44:40]SAM_PROTO_SignData done [11:44:40]FM_MakeSignedData done [11:44:40]CreateOFDProtocolMessage [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 11 00 00 [11:44:40]Write to MH i2c: E2 08 00 D5 02 80 11 00 00 00 00 00 00 51 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 17 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 17 00 D5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [11:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:44:40]wFMCommunicate OK [11:44:40]CreateOFDProtocolMessage done [11:44:40]OFDSenderStorePacket 188674 [11:44:40]StoreOFDPacket docnum=188674 [11:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BA CC 07 01 76 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A7 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E1 02 00 35 04 06 00 DE 9E D8 84 AE 69 33 A0 C6 43 48 59 24 5F [11:44:40]CheckFolder [11:44:40]dirname=/storage/ofd_packets [11:44:40]CheckFolder done [11:44:40]ProducePacketName [11:44:40]name=ofd_packets/00188674 [11:44:40]NVStorageSaveData ofd_packets/00188674 [11:44:40]File name is /storage/ofd_packets/00188674 [11:44:40]Write 301 bytes [11:44:40]NVStorageSaveData done [11:44:40]OFDSenderStorePacket done [11:44:40]KKMCreateOFDPacket done [11:44:40]NVStorageSaveData kkm_last_timestamp [11:44:40]File name is /storage/kkm_last_timestamp [11:44:40]Write 4 bytes [11:44:40]NVStorageSaveData done [11:44:40]ExternCall_PrintAddStr [11:44:40]wPrintStart [11:44:40]Write to MH i2c: 01 00 00 D6 02 D8 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: 01 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: 01 07 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: 01 07 00 D6 02 00 00 00 00 00 FF 0F ED [11:44:40]RasterBufferAndPrint [11:44:40]line Счет N : (1)210734 [11:44:40]line ИНН: 02508201610067 [11:44:40]line Контрольно-Кассовый Чек [11:44:40]line ПРОДАЖА [11:44:40]line ТРК (МРК, ГНК) : 42 [11:44:40]line Товар: 2710124130 [11:44:40]line Аи-92-К-3 [11:44:40]line 2.990 * 66.90 [11:44:40]line = 200.03 [11:44:40]line НДС 12% НСП 1% [11:44:40]line > о реализуемом товаре [11:44:40]line ОКРУГЛЕНИЕ: -0.03 [11:44:40]line ИТОГО: 200.00 [11:44:40]line Внесено: 200.00 [11:44:40]line СДАЧА: 0.00 [11:44:40]line НСП 1% : 1.77 [11:44:40]line НДС 12% : 21.24 [11:44:40]line Наличными: 200.00 [11:44:40]line Безнал.: 0.00 [11:44:40]line Место: АЗС № 86 "Партнер Нефть" [11:44:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:44:40]line СНО: Общий режим [11:44:40]line Чек 132 23.10.2024 11:44 [11:44:40]line Смена: 462 ФФД: 1.0 [11:44:40]line ЗНМ: 0300000155 [11:44:40]line РНМ: 0000000000100030 [11:44:40]line Версия ККМ: 001 [11:44:40]line ФМ: 0000000000965340 [11:44:40]line ФД: 188674 [11:44:40]line ФПД: 244773818773097 [11:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188674&fm=244773818773097&tin=02508201610067®Number=0000000000100030&sum=20000 [11:44:40]written 0, free lines is 4095 [11:44:40]OFD Sender: Processing packet 188674 [packets to send 1062, broken 1061] [11:44:40]ProducePacketName [11:44:40]name=ofd_packets/00188674 [11:44:40]OFD Sender: To server: pG, [11:44:40]CommunicateWithHost lk.salyk.kg:30040 [11:44:40]ConnectInit lk.salyk.kg [11:44:41]Connected sock=10 [11:44:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BA CC 07 01 76 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A7 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E1 02 00 35 04 06 00 DE 9E D8 84 AE 69 33 A0 C6 43 48 59 24 5F [11:44:41]Write to MH i2c: 01 00 00 01 03 04 [11:44:41]Write i2c OK [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: 01 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: 01 07 00 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 55 0C 6C [11:44:41]RasterBufferAndPrint [11:44:41]line [11:44:41]line [11:44:41]line [11:44:41]line [11:44:41]line [11:44:41]written 0, free lines is 3161 [11:44:41]MH_Cut [11:44:41]Write to MH i2c: D1 01 00 08 03 01 DD [11:44:41]Write i2c OK [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: D1 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: D1 01 00 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: D1 01 00 08 03 00 DC [11:44:41]Write to MH i2c: 01 00 00 09 03 0C [11:44:41]Write i2c OK [11:44:41]MH_I2C_Read... [11:44:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CA 3E 47 00 5F 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 36 35 33 34 30 10 04 04 00 02 E1 02 00 F4 03 04 00 92 8B 18 67 B6 04 01 00 00 8B 2D EC F8 D1 A3 15 A8 [11:44:41]CommunicateWithHost err = 0 [11:44:41]CheckOFDResponse [11:44:41]1017 (14) - 77093643461234 [11:44:41]1041 (16) - 0000000000965340 [11:44:41]1040 (4) - 188674 [11:44:41]1012 (4) - 23.10.2024 05:37 [11:44:41]1206 (1) - 0 [11:44:41]OFD Sender: Remove packet 188674 [11:44:41]ProducePacketName [11:44:41]name=ofd_packets/00188674 [11:44:41]NVStorageDeleteData [11:44:41]OFD Sender: No OFD packet to send [11:44:42]*** Cut start [11:44:42]*** Partial cut [11:44:42]*** CUTSNS_PIN = 1 [11:44:42]*** CUTSNS_PIN = 0 [11:44:42]*** Brake cut motor [11:44:43]Read from MH i2c: 01 [11:44:43]MH_I2C_Read... [11:44:43]*** Stop cut motor [11:44:43]*** Cut end [11:44:43]Read from MH i2c: 01 07 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 FF 0F 21 [11:44:43]process_action close_receipt done [11:44:43]requested_data is exist [11:44:43]produce_requested_data [11:44:43]requested_item fm.sn is exist - process it [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 11 00 00 [11:44:43]Write to MH i2c: E2 08 00 0A 03 80 11 00 00 00 00 00 00 87 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:43]Read from MH i2c: E2 17 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 17 00 0A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [11:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:44:43]wFMCommunicate OK [11:44:43]requested_item fd.num is exist - process it [11:44:43]SAM_PROTO_GetFieldsCounters [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 13 00 00 [11:44:43]Write to MH i2c: E2 08 00 0B 03 80 13 00 00 00 00 00 00 8A [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 62 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 62 00 0B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [11:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:43]wFMCommunicate OK [11:44:43]SAM_PROTO_GetFieldsCounters done [11:44:43]requested_item shift.num is exist - process it [11:44:43]requested_item shift.opened is exist - process it [11:44:43]req_shift_opened [11:44:43]FM_GetShiftState [11:44:43]SAM_PROTO_GetShiftState [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 13 01 00 [11:44:43]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 0E 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 74 [11:44:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:44:43]wFMCommunicate OK [11:44:43]SAM_PROTO_GetShiftState done [11:44:43]FM_GetShiftState done [11:44:43]req_shift_opened done [11:44:43]requested_item shift.open_date is exist - process it [11:44:43]req_shift_open_date [11:44:43]req_shift_open_date done [11:44:43]produce_requested_data done [11:44:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188674,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:44:43]process_action_free close_receipt [11:44:43]json_value_free [11:44:43]json_value_free done [11:44:43]process_json_proto returns [11:44:43]Send response to host [11:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188674,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:44:43]free response buf [11:44:43]execute_script done [11:44:43]execute_script returns [11:44:43]free content buf [11:44:43]Sock 7.Close socket [11:44:43]Sock 7.Thread stoped [11:44:46]OFD Sender: No OFD packet to send [11:44:51]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:03]accept exits with 9 [11:45:03]New connection [11:45:03]New thread 3067161956 created [11:45:03]Thread 3067018596 joined [11:45:03]Waiting for new connection... [11:45:03] Sock 9.Parse request [11:45:03]Sock 9.Check first char [11:45:03]Sock 9.First char is OK [11:45:03]request: POST /json_proto HTTP/1.0 [11:45:03]Method: POST [11:45:03]URL: /json_proto [11:45:03]Method is POST - this is cgi request [11:45:03]url: /json_proto [11:45:03]query_string will be loaded in cgi processing [11:45:03]execute_cgi json_proto POST (null) [11:45:03]execute_cgi path=json_proto method=POST [11:45:03]POST find Content-Length [11:45:03]Host: 172.17.42.131:8080 [11:45:03]Content-Length: 682 [11:45:03]Content-Type: application/json [11:45:03] [11:45:03]POST finish read [11:45:03]Found Content-Length = 682 [11:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:03]execute_script... [11:45:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:03]POST & json_proto [11:45:03]process_json_proto [11:45:03]json parsed OK: [11:45:03]protocol is kg_v1.0 [11:45:03]action value=close_receipt [11:45:03]process_action close_receipt [11:45:03]cmd_close_receipt [11:45:03]MH_GetDate [11:45:03]Write to MH i2c: F0 00 00 0D 03 FF [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: F0 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: F0 09 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: F0 09 00 0D 03 00 BF E1 18 67 A0 18 CA 66 0F [11:45:03]GetLastDocTimeStamp 1729683879 [11:45:03]current date 1729683903 [11:45:03]FM_GetShiftState [11:45:03]SAM_PROTO_GetShiftState [11:45:03]wFMCommunicate request_size=4 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 13 01 00 [11:45:03]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 0E 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 76 [11:45:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:45:03]wFMCommunicate OK [11:45:03]SAM_PROTO_GetShiftState done [11:45:03]FM_GetShiftState done [11:45:03]opened in 1729642525 [11:45:03]opened+sec_in_day 1729728925 [11:45:03]quantity*price = 150032 [11:45:03]sum+1 = 150033 [11:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 133 23.10.2024 11:45 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188675 ФПД: 212616925484306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114504&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188675&fm=212616925484306&tin=02508201610067®Number=0000000000100030&sum=150000 [11:45:04]StoreToDocumentArchive [11:45:04]shift 462 fd 188675 [11:45:04]save to /storage/0462/doc_00188675 [11:45:04]save last doc name /storage/0462/doc_00188675 to /storage/kkm_last_doc_name [11:45:04]save OK [11:45:04]Clear old archive folders... [11:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:04]tlvbuf is 01C35A50 [11:45:04]SAM_PROTO_ClearQueue [11:45:04]wFMCommunicate request_size=4 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 09 00 00 [11:45:04]Write to MH i2c: E2 08 00 1B 03 80 09 00 00 00 00 00 00 90 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 03 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [11:45:04]RAPDU: 90 00 [11:45:04]wFMCommunicate OK [11:45:04]SAM_PROTO_ClearQueue done [11:45:04]KKMCreateOFDPacket [11:45:04]OFDProtocolAddRootSTLVToBuf [11:45:04]FM_MakeSignedData [11:45:04]FM_MakeSignedData [11:45:04]SAM_PROTO_SignData [11:45:04]wFMCommunicate request_size=4 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 0D 01 02 [11:45:04]Write to MH i2c: E2 08 00 1C 03 80 0D 01 02 00 00 00 00 98 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 03 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [11:45:04]RAPDU: 90 00 [11:45:04]wFMCommunicate OK [11:45:04]wFMCommunicate request_size=255 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 C0 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E1 02 00 35 04 06 00 C1 [11:45:04]Write to MH i2c: E2 02 01 1D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 C0 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E1 02 00 35 04 06 00 C1 00 00 89 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 03 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [11:45:05]RAPDU: 90 00 [11:45:05]wFMCommunicate OK [11:45:05]wFMCommunicate request_size=10 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 0D 02 02 05 5F BC 51 15 12 [11:45:05]Write to MH i2c: E2 0D 00 1E 03 80 0D 02 02 05 00 5F BC 51 15 12 00 00 38 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 03 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [11:45:05]RAPDU: 90 00 [11:45:05]wFMCommunicate OK [11:45:05]wFMCommunicate request_size=4 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 0D 03 02 [11:45:05]Write to MH i2c: E2 08 00 1F 03 80 0D 03 02 00 00 00 00 9D [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 0B 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 0B 00 1F 03 00 18 4D A3 A6 AB 63 AA 0D 90 00 11 [11:45:05]RAPDU: 18 4D A3 A6 AB 63 AA 0D 90 00 [11:45:05]wFMCommunicate OK [11:45:05]SAM_PROTO_SignData done [11:45:05]FM_MakeSignedData done [11:45:05]CreateOFDProtocolMessage [11:45:05]wFMCommunicate request_size=4 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 11 00 00 [11:45:05]Write to MH i2c: E2 08 00 20 03 80 11 00 00 00 00 00 00 9D [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 17 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 17 00 20 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [11:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:45:05]wFMCommunicate OK [11:45:05]CreateOFDProtocolMessage done [11:45:05]OFDSenderStorePacket 188675 [11:45:05]StoreOFDPacket docnum=188675 [11:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5A 9B 07 01 D6 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 C0 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E1 02 00 35 04 06 00 C1 5F BC 51 15 12 18 4D A3 A6 AB 63 AA 0D [11:45:05]CheckFolder [11:45:05]dirname=/storage/ofd_packets [11:45:05]CheckFolder done [11:45:05]ProducePacketName [11:45:05]name=ofd_packets/00188675 [11:45:05]NVStorageSaveData ofd_packets/00188675 [11:45:05]File name is /storage/ofd_packets/00188675 [11:45:05]Write 301 bytes [11:45:05]NVStorageSaveData done [11:45:05]OFDSenderStorePacket done [11:45:05]KKMCreateOFDPacket done [11:45:05]NVStorageSaveData kkm_last_timestamp [11:45:05]File name is /storage/kkm_last_timestamp [11:45:05]Write 4 bytes [11:45:05]NVStorageSaveData done [11:45:05]ExternCall_PrintAddStr [11:45:05]wPrintStart [11:45:05]Write to MH i2c: 01 00 00 21 03 24 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 07 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 FF 0F 39 [11:45:05]RasterBufferAndPrint [11:45:05]line Счет N : (1)210735 [11:45:05]line ИНН: 02508201610067 [11:45:05]line Контрольно-Кассовый Чек [11:45:05]line ПРОДАЖА [11:45:05]line ТРК (МРК, ГНК) : 23 [11:45:05]line Товар: 2710124500 [11:45:05]line Аи-95-К-3 [11:45:05]line 20.220 * 74.20 [11:45:05]line = 1500.32 [11:45:05]line НДС 12% НСП 1% [11:45:05]line > о реализуемом товаре [11:45:05]line ОКРУГЛЕНИЕ: -0.32 [11:45:05]line ИТОГО: 1500.00 [11:45:05]line Внесено: 1500.00 [11:45:05]line СДАЧА: 0.00 [11:45:05]line НСП 1% : 13.28 [11:45:05]line НДС 12% : 159.33 [11:45:05]line Наличными: 1500.00 [11:45:05]line Безнал.: 0.00 [11:45:05]line Место: АЗС № 86 "Партнер Нефть" [11:45:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:45:05]line СНО: Общий режим [11:45:05]line Чек 133 23.10.2024 11:45 [11:45:05]line Смена: 462 ФФД: 1.0 [11:45:05]line ЗНМ: 0300000155 [11:45:05]line РНМ: 0000000000100030 [11:45:05]line Версия ККМ: 001 [11:45:05]line ФМ: 0000000000965340 [11:45:05]line ФД: 188675 [11:45:05]line ФПД: 212616925484306 [11:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114504&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188675&fm=212616925484306&tin=02508201610067®Number=0000000000100030&sum=150000 [11:45:05]written 0, free lines is 4095 [11:45:05]OFD Sender: Processing packet 188675 [packets to send 1062, broken 1061] [11:45:05]ProducePacketName [11:45:05]name=ofd_packets/00188675 [11:45:05]OFD Sender: To server: pG, [11:45:05]CommunicateWithHost lk.salyk.kg:30040 [11:45:05]ConnectInit lk.salyk.kg [11:45:05]Connected sock=10 [11:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5A 9B 07 01 D6 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 C0 E1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E1 02 00 35 04 06 00 C1 5F BC 51 15 12 18 4D A3 A6 AB 63 AA 0D [11:45:05]Write to MH i2c: 01 00 00 4C 03 4F [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 07 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 58 0C BA [11:45:05]RasterBufferAndPrint [11:45:05]line [11:45:05]line [11:45:05]line [11:45:05]line [11:45:05]line [11:45:05]written 0, free lines is 3164 [11:45:05]MH_Cut [11:45:05]Write to MH i2c: D1 01 00 53 03 01 28 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: D1 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: D1 01 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: D1 01 00 53 03 00 27 [11:45:05]Write to MH i2c: 01 00 00 54 03 57 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F5 C4 47 00 38 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E1 02 00 F4 03 04 00 AA 8B 18 67 B6 04 01 00 00 FD FD 52 30 27 5E F5 FB [11:45:05]CommunicateWithHost err = 0 [11:45:05]CheckOFDResponse [11:45:05]1017 (14) - 77093643461234 [11:45:05]1041 (16) - 0000000000965340 [11:45:05]1040 (4) - 188675 [11:45:05]1012 (4) - 23.10.2024 05:37 [11:45:05]1206 (1) - 0 [11:45:05]OFD Sender: Remove packet 188675 [11:45:05]ProducePacketName [11:45:05]name=ofd_packets/00188675 [11:45:05]NVStorageDeleteData [11:45:06]OFD Sender: No OFD packet to send [11:45:06]*** Cut start [11:45:06]*** Partial cut [11:45:06]*** CUTSNS_PIN = 1 [11:45:07]*** CUTSNS_PIN = 0 [11:45:07]*** Brake cut motor [11:45:07]Read from MH i2c: 01 [11:45:07]MH_I2C_Read... [11:45:07]*** Stop cut motor [11:45:07]*** Cut end [11:45:07]Read from MH i2c: 01 07 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [11:45:07]process_action close_receipt done [11:45:07]requested_data is exist [11:45:07]produce_requested_data [11:45:07]requested_item fm.sn is exist - process it [11:45:07]wFMCommunicate request_size=4 [11:45:07]MH_SAM_APDU [11:45:07]CAPDU: 80 11 00 00 [11:45:07]Write to MH i2c: E2 08 00 55 03 80 11 00 00 00 00 00 00 D2 [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:07]Read from MH i2c: E2 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 17 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 17 00 55 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [11:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:45:07]wFMCommunicate OK [11:45:07]requested_item fd.num is exist - process it [11:45:07]SAM_PROTO_GetFieldsCounters [11:45:07]wFMCommunicate request_size=4 [11:45:07]MH_SAM_APDU [11:45:07]CAPDU: 80 13 00 00 [11:45:07]Write to MH i2c: E2 08 00 56 03 80 13 00 00 00 00 00 00 D5 [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:07]Read from MH i2c: E2 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 62 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 62 00 56 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [11:45:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:07]wFMCommunicate OK [11:45:07]SAM_PROTO_GetFieldsCounters done [11:45:07]requested_item shift.num is exist - process it [11:45:07]requested_item shift.opened is exist - process it [11:45:07]req_shift_opened [11:45:07]FM_GetShiftState [11:45:07]SAM_PROTO_GetShiftState [11:45:07]wFMCommunicate request_size=4 [11:45:07]MH_SAM_APDU [11:45:07]CAPDU: 80 13 01 00 [11:45:07]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:07]Read from MH i2c: E2 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 0E 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BF [11:45:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:45:07]wFMCommunicate OK [11:45:07]SAM_PROTO_GetShiftState done [11:45:07]FM_GetShiftState done [11:45:07]req_shift_opened done [11:45:07]requested_item shift.open_date is exist - process it [11:45:07]req_shift_open_date [11:45:07]req_shift_open_date done [11:45:07]produce_requested_data done [11:45:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188675,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:45:07]process_action_free close_receipt [11:45:07]json_value_free [11:45:07]json_value_free done [11:45:07]process_json_proto returns [11:45:07]Send response to host [11:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188675,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:45:07]free response buf [11:45:07]execute_script done [11:45:07]execute_script returns [11:45:07]free content buf [11:45:07]Sock 9.Close socket [11:45:07]Sock 9.Thread stoped [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]accept exits with 7 [11:46:16]New connection [11:46:16]New thread 3067018596 created [11:46:16]Thread 3067161956 joined [11:46:16]Waiting for new connection... [11:46:16] Sock 7.Parse request [11:46:16]Sock 7.Check first char [11:46:16]Sock 7.First char is OK [11:46:16]request: POST /json_proto HTTP/1.0 [11:46:16]Method: POST [11:46:16]URL: /json_proto [11:46:16]Method is POST - this is cgi request [11:46:16]url: /json_proto [11:46:16]query_string will be loaded in cgi processing [11:46:16]execute_cgi json_proto POST (null) [11:46:16]execute_cgi path=json_proto method=POST [11:46:16]POST find Content-Length [11:46:16]Host: 172.17.42.131:8080 [11:46:16]Content-Length: 677 [11:46:16]Content-Type: application/json [11:46:16] [11:46:16]POST finish read [11:46:16]Found Content-Length = 677 [11:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:16]execute_script... [11:46:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:16]POST & json_proto [11:46:16]process_json_proto [11:46:16]json parsed OK: [11:46:16]protocol is kg_v1.0 [11:46:16]action value=close_receipt [11:46:16]process_action close_receipt [11:46:16]cmd_close_receipt [11:46:16]MH_GetDate [11:46:16]Write to MH i2c: F0 00 00 58 03 4A [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: F0 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: F0 09 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: F0 09 00 58 03 00 08 E2 18 67 A0 18 CA 66 A4 [11:46:16]GetLastDocTimeStamp 1729683904 [11:46:16]current date 1729683976 [11:46:16]FM_GetShiftState [11:46:16]SAM_PROTO_GetShiftState [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 13 01 00 [11:46:16]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0E 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C1 [11:46:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:46:16]wFMCommunicate OK [11:46:16]SAM_PROTO_GetShiftState done [11:46:16]FM_GetShiftState done [11:46:16]opened in 1729642525 [11:46:16]opened+sec_in_day 1729728925 [11:46:16]quantity*price = 60009 [11:46:16]sum+1 = 60010 [11:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 134 23.10.2024 11:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188676 ФПД: 11826578082813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114616&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188676&fm=11826578082813&tin=02508201610067®Number=0000000000100030&sum=60000 [11:46:17]StoreToDocumentArchive [11:46:17]shift 462 fd 188676 [11:46:17]save to /storage/0462/doc_00188676 [11:46:17]save last doc name /storage/0462/doc_00188676 to /storage/kkm_last_doc_name [11:46:17]save OK [11:46:17]Clear old archive folders... [11:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:17]tlvbuf is 01C59CC0 [11:46:17]SAM_PROTO_ClearQueue [11:46:17]wFMCommunicate request_size=4 [11:46:17]MH_SAM_APDU [11:46:17]CAPDU: 80 09 00 00 [11:46:17]Write to MH i2c: E2 08 00 66 03 80 09 00 00 00 00 00 00 DB [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:17]Read from MH i2c: E2 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 03 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [11:46:17]RAPDU: 90 00 [11:46:17]wFMCommunicate OK [11:46:17]SAM_PROTO_ClearQueue done [11:46:17]KKMCreateOFDPacket [11:46:17]OFDProtocolAddRootSTLVToBuf [11:46:17]FM_MakeSignedData [11:46:17]FM_MakeSignedData [11:46:17]SAM_PROTO_SignData [11:46:17]wFMCommunicate request_size=4 [11:46:17]MH_SAM_APDU [11:46:17]CAPDU: 80 0D 01 02 [11:46:17]Write to MH i2c: E2 08 00 67 03 80 0D 01 02 00 00 00 00 E3 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:17]Read from MH i2c: E2 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 03 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [11:46:17]RAPDU: 90 00 [11:46:17]wFMCommunicate OK [11:46:17]wFMCommunicate request_size=255 [11:46:17]MH_SAM_APDU [11:46:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 08 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E1 02 00 35 04 06 00 0A [11:46:17]Write to MH i2c: E2 02 01 68 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 08 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E1 02 00 35 04 06 00 0A 00 00 E2 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:17]Read from MH i2c: E2 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 03 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [11:46:17]RAPDU: 90 00 [11:46:17]wFMCommunicate OK [11:46:17]wFMCommunicate request_size=10 [11:46:17]MH_SAM_APDU [11:46:17]CAPDU: 80 0D 02 02 05 C1 96 FC 4B FD [11:46:17]Write to MH i2c: E2 0D 00 69 03 80 0D 02 02 05 00 C1 96 FC 4B FD 00 00 8B [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:17]Read from MH i2c: E2 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 03 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [11:46:17]RAPDU: 90 00 [11:46:17]wFMCommunicate OK [11:46:17]wFMCommunicate request_size=4 [11:46:17]MH_SAM_APDU [11:46:17]CAPDU: 80 0D 03 02 [11:46:17]Write to MH i2c: E2 08 00 6A 03 80 0D 03 02 00 00 00 00 E8 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:17]Read from MH i2c: E2 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 0B 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 0B 00 6A 03 00 27 C2 E2 B9 3C BE AD B8 90 00 CC [11:46:17]RAPDU: 27 C2 E2 B9 3C BE AD B8 90 00 [11:46:17]wFMCommunicate OK [11:46:17]SAM_PROTO_SignData done [11:46:17]FM_MakeSignedData done [11:46:17]CreateOFDProtocolMessage [11:46:17]wFMCommunicate request_size=4 [11:46:17]MH_SAM_APDU [11:46:17]CAPDU: 80 11 00 00 [11:46:17]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:17]Read from MH i2c: E2 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 17 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: E2 17 00 6B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [11:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:17]wFMCommunicate OK [11:46:17]CreateOFDProtocolMessage done [11:46:17]OFDSenderStorePacket 188676 [11:46:17]StoreOFDPacket docnum=188676 [11:46:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C4 5C 07 01 5D 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 08 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E1 02 00 35 04 06 00 0A C1 96 FC 4B FD 27 C2 E2 B9 3C BE AD B8 [11:46:17]CheckFolder [11:46:17]dirname=/storage/ofd_packets [11:46:17]CheckFolder done [11:46:17]ProducePacketName [11:46:17]name=ofd_packets/00188676 [11:46:17]NVStorageSaveData ofd_packets/00188676 [11:46:17]File name is /storage/ofd_packets/00188676 [11:46:17]Write 301 bytes [11:46:17]NVStorageSaveData done [11:46:17]OFDSenderStorePacket done [11:46:17]KKMCreateOFDPacket done [11:46:17]NVStorageSaveData kkm_last_timestamp [11:46:17]File name is /storage/kkm_last_timestamp [11:46:17]Write 4 bytes [11:46:17]NVStorageSaveData done [11:46:17]ExternCall_PrintAddStr [11:46:17]wPrintStart [11:46:17]Write to MH i2c: 01 00 00 6C 03 6F [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 07 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [11:46:17]RasterBufferAndPrint [11:46:17]line Счет N : (1)210736 [11:46:17]line ИНН: 02508201610067 [11:46:17]line Контрольно-Кассовый Чек [11:46:17]line ПРОДАЖА [11:46:17]line ТРК (МРК, ГНК) : 12 [11:46:17]line Товар: 2710124130 [11:46:17]line Аи-92-К-3 [11:46:17]line 8.970 * 66.90 [11:46:17]line = 600.09 [11:46:17]line НДС 12% НСП 1% [11:46:17]line > о реализуемом товаре [11:46:17]line ОКРУГЛЕНИЕ: -0.09 [11:46:17]line ИТОГО: 600.00 [11:46:17]line Внесено: 600.00 [11:46:17]line СДАЧА: 0.00 [11:46:17]line НСП 1% : 5.31 [11:46:17]line НДС 12% : 63.73 [11:46:17]line Наличными: 600.00 [11:46:17]line Безнал.: 0.00 [11:46:17]line Место: АЗС № 86 "Партнер Нефть" [11:46:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:46:17]line СНО: Общий режим [11:46:17]line Чек 134 23.10.2024 11:46 [11:46:17]line Смена: 462 ФФД: 1.0 [11:46:17]line ЗНМ: 0300000155 [11:46:17]line РНМ: 0000000000100030 [11:46:17]line Версия ККМ: 001 [11:46:17]line ФМ: 0000000000965340 [11:46:17]line ФД: 188676 [11:46:17]line ФПД: 11826578082813 [11:46:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114616&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188676&fm=11826578082813&tin=02508201610067®Number=0000000000100030&sum=60000 [11:46:17]written 0, free lines is 4095 [11:46:17]OFD Sender: Processing packet 188676 [packets to send 1062, broken 1061] [11:46:17]ProducePacketName [11:46:17]name=ofd_packets/00188676 [11:46:17]OFD Sender: To server: pG, [11:46:17]CommunicateWithHost lk.salyk.kg:30040 [11:46:17]ConnectInit lk.salyk.kg [11:46:18]Connected sock=10 [11:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C4 5C 07 01 5D 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 08 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E1 02 00 35 04 06 00 0A C1 96 FC 4B FD 27 C2 E2 B9 3C BE AD B8 [11:46:18]Write to MH i2c: 01 00 00 97 03 9A [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: 01 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: 01 07 00 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 58 0C 05 [11:46:18]RasterBufferAndPrint [11:46:18]line [11:46:18]line [11:46:18]line [11:46:18]line [11:46:18]line [11:46:18]written 0, free lines is 3164 [11:46:18]MH_Cut [11:46:18]Write to MH i2c: D1 01 00 9E 03 01 73 [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: D1 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: D1 01 00 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: D1 01 00 9E 03 00 72 [11:46:18]Write to MH i2c: 01 00 00 9F 03 A2 [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FB CC 47 00 5F 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 36 35 33 34 30 10 04 04 00 04 E1 02 00 F4 03 04 00 F3 8B 18 67 B6 04 01 00 00 44 2C 8C 8C 57 90 98 C9 [11:46:18]CommunicateWithHost err = 0 [11:46:18]CheckOFDResponse [11:46:18]1017 (14) - 77093643461234 [11:46:18]1041 (16) - 0000000000965340 [11:46:18]1040 (4) - 188676 [11:46:18]1012 (4) - 23.10.2024 05:38 [11:46:18]1206 (1) - 0 [11:46:18]OFD Sender: Remove packet 188676 [11:46:18]ProducePacketName [11:46:18]name=ofd_packets/00188676 [11:46:18]NVStorageDeleteData [11:46:19]OFD Sender: No OFD packet to send [11:46:19]*** Cut start [11:46:19]*** Partial cut [11:46:19]*** CUTSNS_PIN = 1 [11:46:19]*** CUTSNS_PIN = 0 [11:46:19]*** Brake cut motor [11:46:20]Read from MH i2c: 01 [11:46:20]MH_I2C_Read... [11:46:20]*** Stop cut motor [11:46:20]*** Cut end [11:46:20]Read from MH i2c: 01 07 00 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 FF 0F B7 [11:46:20]process_action close_receipt done [11:46:20]requested_data is exist [11:46:20]produce_requested_data [11:46:20]requested_item fm.sn is exist - process it [11:46:20]wFMCommunicate request_size=4 [11:46:20]MH_SAM_APDU [11:46:20]CAPDU: 80 11 00 00 [11:46:20]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [11:46:20]Write i2c OK [11:46:20]MH_I2C_Read... [11:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:20]Read from MH i2c: E2 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: E2 17 00 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [11:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:20]wFMCommunicate OK [11:46:20]requested_item fd.num is exist - process it [11:46:20]SAM_PROTO_GetFieldsCounters [11:46:20]wFMCommunicate request_size=4 [11:46:20]MH_SAM_APDU [11:46:20]CAPDU: 80 13 00 00 [11:46:20]Write to MH i2c: E2 08 00 A1 03 80 13 00 00 00 00 00 00 20 [11:46:20]Write i2c OK [11:46:20]MH_I2C_Read... [11:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:20]Read from MH i2c: E2 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: E2 62 00 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: E2 62 00 A1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [11:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:20]wFMCommunicate OK [11:46:20]SAM_PROTO_GetFieldsCounters done [11:46:20]requested_item shift.num is exist - process it [11:46:20]requested_item shift.opened is exist - process it [11:46:20]req_shift_opened [11:46:20]FM_GetShiftState [11:46:20]SAM_PROTO_GetShiftState [11:46:20]wFMCommunicate request_size=4 [11:46:20]MH_SAM_APDU [11:46:20]CAPDU: 80 13 01 00 [11:46:20]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [11:46:20]Write i2c OK [11:46:20]MH_I2C_Read... [11:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:20]Read from MH i2c: E2 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: E2 0E 00 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0A [11:46:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:46:20]wFMCommunicate OK [11:46:20]SAM_PROTO_GetShiftState done [11:46:20]FM_GetShiftState done [11:46:20]req_shift_opened done [11:46:20]requested_item shift.open_date is exist - process it [11:46:20]req_shift_open_date [11:46:20]req_shift_open_date done [11:46:20]produce_requested_data done [11:46:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188676,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:46:20]process_action_free close_receipt [11:46:20]json_value_free [11:46:20]json_value_free done [11:46:20]process_json_proto returns [11:46:20]Send response to host [11:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188676,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:46:20]free response buf [11:46:20]execute_script done [11:46:20]execute_script returns [11:46:20]free content buf [11:46:20]Sock 7.Close socket [11:46:20]Sock 7.Thread stoped [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:45]accept exits with 9 [11:46:45]New connection [11:46:45]New thread 3067161956 created [11:46:45]Thread 3067018596 joined [11:46:45]Waiting for new connection... [11:46:45] Sock 9.Parse request [11:46:45]Sock 9.Check first char [11:46:45]Sock 9.First char is OK [11:46:45]request: POST /json_proto HTTP/1.0 [11:46:45]Method: POST [11:46:45]URL: /json_proto [11:46:45]Method is POST - this is cgi request [11:46:45]url: /json_proto [11:46:45]query_string will be loaded in cgi processing [11:46:45]execute_cgi json_proto POST (null) [11:46:45]execute_cgi path=json_proto method=POST [11:46:45]POST find Content-Length [11:46:45]Host: 172.17.42.131:8080 [11:46:45]Content-Length: 682 [11:46:45]Content-Type: application/json [11:46:45] [11:46:45]POST finish read [11:46:45]Found Content-Length = 682 [11:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:45]execute_script... [11:46:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:45]POST & json_proto [11:46:45]process_json_proto [11:46:45]json parsed OK: [11:46:45]protocol is kg_v1.0 [11:46:45]action value=close_receipt [11:46:45]process_action close_receipt [11:46:45]cmd_close_receipt [11:46:45]MH_GetDate [11:46:45]Write to MH i2c: F0 00 00 A3 03 95 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 09 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 09 00 A3 03 00 26 E2 18 67 A0 18 CA 66 0D [11:46:45]GetLastDocTimeStamp 1729683976 [11:46:45]current date 1729684006 [11:46:45]FM_GetShiftState [11:46:45]SAM_PROTO_GetShiftState [11:46:45]wFMCommunicate request_size=4 [11:46:45]MH_SAM_APDU [11:46:45]CAPDU: 80 13 01 00 [11:46:45]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 0E 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0C [11:46:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:46:45]wFMCommunicate OK [11:46:45]SAM_PROTO_GetShiftState done [11:46:45]FM_GetShiftState done [11:46:45]opened in 1729642525 [11:46:45]opened+sec_in_day 1729728925 [11:46:45]quantity*price = 100015 [11:46:45]sum+1 = 100017 [11:46:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 135 23.10.2024 11:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188677 ФПД: 188601173276124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114646&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188677&fm=188601173276124&tin=02508201610067®Number=0000000000100030&sum=100000 [11:46:47]StoreToDocumentArchive [11:46:47]shift 462 fd 188677 [11:46:47]save to /storage/0462/doc_00188677 [11:46:47]save last doc name /storage/0462/doc_00188677 to /storage/kkm_last_doc_name [11:46:47]save OK [11:46:47]Clear old archive folders... [11:46:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:47]tlvbuf is 01C5B8E0 [11:46:47]SAM_PROTO_ClearQueue [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 09 00 00 [11:46:47]Write to MH i2c: E2 08 00 B1 03 80 09 00 00 00 00 00 00 26 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [11:46:47]RAPDU: 90 00 [11:46:47]wFMCommunicate OK [11:46:47]SAM_PROTO_ClearQueue done [11:46:47]KKMCreateOFDPacket [11:46:47]OFDProtocolAddRootSTLVToBuf [11:46:47]FM_MakeSignedData [11:46:47]FM_MakeSignedData [11:46:47]SAM_PROTO_SignData [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 0D 01 02 [11:46:47]Write to MH i2c: E2 08 00 B2 03 80 0D 01 02 00 00 00 00 2E [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [11:46:47]RAPDU: 90 00 [11:46:47]wFMCommunicate OK [11:46:47]wFMCommunicate request_size=255 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 26 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E1 02 00 35 04 06 00 AB [11:46:47]Write to MH i2c: E2 02 01 B3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 26 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E1 02 00 35 04 06 00 AB 00 00 0B [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [11:46:47]RAPDU: 90 00 [11:46:47]wFMCommunicate OK [11:46:47]wFMCommunicate request_size=10 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 0D 02 02 05 88 21 EF F5 DC [11:46:47]Write to MH i2c: E2 0D 00 B4 03 80 0D 02 02 05 00 88 21 EF F5 DC 00 00 A4 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [11:46:47]RAPDU: 90 00 [11:46:47]wFMCommunicate OK [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 0D 03 02 [11:46:47]Write to MH i2c: E2 08 00 B5 03 80 0D 03 02 00 00 00 00 33 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0B 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0B 00 B5 03 00 F7 7F 56 6B 81 44 86 0F 90 00 C5 [11:46:47]RAPDU: F7 7F 56 6B 81 44 86 0F 90 00 [11:46:47]wFMCommunicate OK [11:46:47]SAM_PROTO_SignData done [11:46:47]FM_MakeSignedData done [11:46:47]CreateOFDProtocolMessage [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 11 00 00 [11:46:47]Write to MH i2c: E2 08 00 B6 03 80 11 00 00 00 00 00 00 33 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 17 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 17 00 B6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [11:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:47]wFMCommunicate OK [11:46:47]CreateOFDProtocolMessage done [11:46:47]OFDSenderStorePacket 188677 [11:46:47]StoreOFDPacket docnum=188677 [11:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB 6C 07 01 03 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 26 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E1 02 00 35 04 06 00 AB 88 21 EF F5 DC F7 7F 56 6B 81 44 86 0F [11:46:47]CheckFolder [11:46:47]dirname=/storage/ofd_packets [11:46:47]CheckFolder done [11:46:47]ProducePacketName [11:46:47]name=ofd_packets/00188677 [11:46:47]NVStorageSaveData ofd_packets/00188677 [11:46:47]File name is /storage/ofd_packets/00188677 [11:46:47]Write 301 bytes [11:46:47]NVStorageSaveData done [11:46:47]OFDSenderStorePacket done [11:46:47]KKMCreateOFDPacket done [11:46:47]NVStorageSaveData kkm_last_timestamp [11:46:47]File name is /storage/kkm_last_timestamp [11:46:47]Write 4 bytes [11:46:47]NVStorageSaveData done [11:46:47]ExternCall_PrintAddStr [11:46:47]wPrintStart [11:46:47]Write to MH i2c: 01 00 00 B7 03 BA [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [11:46:47]RasterBufferAndPrint [11:46:47]line Счет N : (1)210737 [11:46:47]line ИНН: 02508201610067 [11:46:47]line Контрольно-Кассовый Чек [11:46:47]line ПРОДАЖА [11:46:47]line ТРК (МРК, ГНК) : 32 [11:46:47]line Товар: 2710124130 [11:46:47]line Аи-92-К-3 [11:46:47]line 14.950 * 66.90 [11:46:47]line = 1000.16 [11:46:47]line НДС 12% НСП 1% [11:46:47]line > о реализуемом товаре [11:46:47]line ОКРУГЛЕНИЕ: -0.16 [11:46:47]line ИТОГО: 1000.00 [11:46:47]line Внесено: 1000.00 [11:46:47]line СДАЧА: 0.00 [11:46:47]line НСП 1% : 8.85 [11:46:47]line НДС 12% : 106.21 [11:46:47]line Наличными: 1000.00 [11:46:47]line Безнал.: 0.00 [11:46:47]line Место: АЗС № 86 "Партнер Нефть" [11:46:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:46:47]line СНО: Общий режим [11:46:47]line Чек 135 23.10.2024 11:46 [11:46:47]line Смена: 462 ФФД: 1.0 [11:46:47]line ЗНМ: 0300000155 [11:46:47]line РНМ: 0000000000100030 [11:46:47]line Версия ККМ: 001 [11:46:47]line ФМ: 0000000000965340 [11:46:47]line ФД: 188677 [11:46:47]line ФПД: 188601173276124 [11:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114646&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188677&fm=188601173276124&tin=02508201610067®Number=0000000000100030&sum=100000 [11:46:47]written 0, free lines is 4095 [11:46:47]OFD Sender: Processing packet 188677 [packets to send 1062, broken 1061] [11:46:47]ProducePacketName [11:46:47]name=ofd_packets/00188677 [11:46:47]OFD Sender: To server: pG, [11:46:47]CommunicateWithHost lk.salyk.kg:30040 [11:46:47]ConnectInit lk.salyk.kg [11:46:48]Connected sock=10 [11:46:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB 6C 07 01 03 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 26 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E1 02 00 35 04 06 00 AB 88 21 EF F5 DC F7 7F 56 6B 81 44 86 0F [11:46:48]Write to MH i2c: 01 00 00 E2 03 E5 [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: 01 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: 01 07 00 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 55 0C 4D [11:46:48]RasterBufferAndPrint [11:46:48]line [11:46:48]line [11:46:48]line [11:46:48]line [11:46:48]line [11:46:48]written 0, free lines is 3160 [11:46:48]MH_Cut [11:46:48]Write to MH i2c: D1 01 00 E9 03 01 BE [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: D1 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: D1 01 00 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: D1 01 00 E9 03 00 BD [11:46:48]Write to MH i2c: 01 00 00 EA 03 ED [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE F9 47 00 85 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E1 02 00 F4 03 04 00 11 8C 18 67 B6 04 01 00 00 F5 43 E7 C6 98 DC 5D 7F [11:46:48]CommunicateWithHost err = 0 [11:46:48]CheckOFDResponse [11:46:48]1017 (14) - 77093643461234 [11:46:48]1041 (16) - 0000000000965340 [11:46:48]1040 (4) - 188677 [11:46:48]1012 (4) - 23.10.2024 05:39 [11:46:48]1206 (1) - 0 [11:46:48]OFD Sender: Remove packet 188677 [11:46:48]ProducePacketName [11:46:48]name=ofd_packets/00188677 [11:46:48]NVStorageDeleteData [11:46:48]OFD Sender: No OFD packet to send [11:46:49]*** Cut start [11:46:49]*** Partial cut [11:46:49]*** CUTSNS_PIN = 1 [11:46:49]*** CUTSNS_PIN = 0 [11:46:49]*** Brake cut motor [11:46:50]Read from MH i2c: 01 [11:46:50]MH_I2C_Read... [11:46:50]*** Stop cut motor [11:46:50]*** Cut end [11:46:50]Read from MH i2c: 01 07 00 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [11:46:50]process_action close_receipt done [11:46:50]requested_data is exist [11:46:50]produce_requested_data [11:46:50]requested_item fm.sn is exist - process it [11:46:50]wFMCommunicate request_size=4 [11:46:50]MH_SAM_APDU [11:46:50]CAPDU: 80 11 00 00 [11:46:50]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [11:46:50]Write i2c OK [11:46:50]MH_I2C_Read... [11:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:50]Read from MH i2c: E2 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: E2 17 00 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [11:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:50]wFMCommunicate OK [11:46:50]requested_item fd.num is exist - process it [11:46:50]SAM_PROTO_GetFieldsCounters [11:46:50]wFMCommunicate request_size=4 [11:46:50]MH_SAM_APDU [11:46:50]CAPDU: 80 13 00 00 [11:46:50]Write to MH i2c: E2 08 00 EC 03 80 13 00 00 00 00 00 00 6B [11:46:50]Write i2c OK [11:46:50]MH_I2C_Read... [11:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:50]Read from MH i2c: E2 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: E2 62 00 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: E2 62 00 EC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [11:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:50]wFMCommunicate OK [11:46:50]SAM_PROTO_GetFieldsCounters done [11:46:50]requested_item shift.num is exist - process it [11:46:50]requested_item shift.opened is exist - process it [11:46:50]req_shift_opened [11:46:50]FM_GetShiftState [11:46:50]SAM_PROTO_GetShiftState [11:46:50]wFMCommunicate request_size=4 [11:46:50]MH_SAM_APDU [11:46:50]CAPDU: 80 13 01 00 [11:46:50]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [11:46:50]Write i2c OK [11:46:50]MH_I2C_Read... [11:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:50]Read from MH i2c: E2 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: E2 0E 00 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 55 [11:46:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:46:50]wFMCommunicate OK [11:46:50]SAM_PROTO_GetShiftState done [11:46:50]FM_GetShiftState done [11:46:50]req_shift_opened done [11:46:50]requested_item shift.open_date is exist - process it [11:46:50]req_shift_open_date [11:46:50]req_shift_open_date done [11:46:50]produce_requested_data done [11:46:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188677,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:46:50]process_action_free close_receipt [11:46:50]json_value_free [11:46:50]json_value_free done [11:46:50]process_json_proto returns [11:46:50]Send response to host [11:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188677,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:46:50]free response buf [11:46:50]execute_script done [11:46:50]execute_script returns [11:46:50]free content buf [11:46:50]Sock 9.Close socket [11:46:50]Sock 9.Thread stoped [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:47]int [11:47:47]Write to MH i2c: 01 00 00 EE 03 F1 [11:47:47]*** FLAG_PRN_PAP2 set [11:47:47]Write i2c OK [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: 01 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: 01 07 00 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: 01 07 00 EE 03 00 02 00 00 00 FF 0F 08 [11:47:47]state=0 [11:47:47]Cover opened [11:47:47]int [11:47:47]Write to MH i2c: 01 00 00 EF 03 F2 [11:47:47]*** FLAG_PRN_PAP1 set [11:47:47]Write i2c OK [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: 01 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: 01 07 00 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: 01 07 00 EF 03 00 03 00 00 00 FF 0F 0A [11:47:47]state=3 [11:47:47]No paper [11:47:47]Cover opened [11:47:49]OFD Sender: No OFD packet to send [11:47:52]Write to MH i2c: 01 00 00 F0 03 F3 [11:47:52]Write i2c OK [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: 01 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: 01 07 00 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: 01 07 00 F0 03 00 03 00 00 00 FF 0F 0B [11:47:52]state=3 [11:47:52]No paper [11:47:52]Cover opened [11:47:54]OFD Sender: No OFD packet to send [11:47:56]int [11:47:56]Write to MH i2c: 01 00 00 F1 03 F4 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 07 00 [11:47:56]MH_I2C_Read... [11:47:56]*** FLAG_PRN_PAP2 reset [11:47:56]*** FLAG_PRN_PAP1 reset [11:47:56]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [11:47:56]state=3 [11:47:56]Cover closed [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:08]accept exits with 7 [11:48:08]New connection [11:48:08]New thread 3067018596 created [11:48:08]Thread 3067161956 joined [11:48:08]Waiting for new connection... [11:48:08] Sock 7.Parse request [11:48:08]Sock 7.Check first char [11:48:08]Sock 7.First char is OK [11:48:08]request: POST /json_proto HTTP/1.0 [11:48:08]Method: POST [11:48:08]URL: /json_proto [11:48:08]Method is POST - this is cgi request [11:48:08]url: /json_proto [11:48:08]query_string will be loaded in cgi processing [11:48:08]execute_cgi json_proto POST (null) [11:48:08]execute_cgi path=json_proto method=POST [11:48:08]POST find Content-Length [11:48:08]Host: 172.17.42.131:8080 [11:48:08]Content-Length: 677 [11:48:08]Content-Type: application/json [11:48:08] [11:48:08]POST finish read [11:48:08]Found Content-Length = 677 [11:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:08]execute_script... [11:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:08]POST & json_proto [11:48:08]process_json_proto [11:48:08]json parsed OK: [11:48:08]protocol is kg_v1.0 [11:48:08]action value=close_receipt [11:48:08]process_action close_receipt [11:48:08]cmd_close_receipt [11:48:08]MH_GetDate [11:48:08]Write to MH i2c: F0 00 00 F2 03 E4 [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 09 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 09 00 F2 03 00 79 E2 18 67 A0 18 CA 66 AF [11:48:08]GetLastDocTimeStamp 1729684006 [11:48:08]current date 1729684089 [11:48:08]FM_GetShiftState [11:48:08]SAM_PROTO_GetShiftState [11:48:08]wFMCommunicate request_size=4 [11:48:08]MH_SAM_APDU [11:48:08]CAPDU: 80 13 01 00 [11:48:08]Write to MH i2c: E2 08 00 F3 03 80 13 01 00 00 00 00 00 73 [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:08]Read from MH i2c: E2 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 0E 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 0E 00 F3 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5B [11:48:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:48:08]wFMCommunicate OK [11:48:08]SAM_PROTO_GetShiftState done [11:48:08]FM_GetShiftState done [11:48:08]opened in 1729642525 [11:48:08]opened+sec_in_day 1729728925 [11:48:08]quantity*price = 25020 [11:48:08]sum+1 = 25022 [11:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 136 23.10.2024 11:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188678 ФПД: 235973937125002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114809&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188678&fm=235973937125002&tin=02508201610067®Number=0000000000100030&sum=25000 [11:48:09]StoreToDocumentArchive [11:48:09]shift 462 fd 188678 [11:48:09]save to /storage/0462/doc_00188678 [11:48:09]save last doc name /storage/0462/doc_00188678 to /storage/kkm_last_doc_name [11:48:09]save OK [11:48:09]Clear old archive folders... [11:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:09]tlvbuf is 01C447B0 [11:48:09]SAM_PROTO_ClearQueue [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 09 00 00 [11:48:09]Write to MH i2c: E2 08 00 00 04 80 09 00 00 00 00 00 00 76 [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 00 04 00 90 00 78 [11:48:09]RAPDU: 90 00 [11:48:09]wFMCommunicate OK [11:48:09]SAM_PROTO_ClearQueue done [11:48:09]KKMCreateOFDPacket [11:48:09]OFDProtocolAddRootSTLVToBuf [11:48:09]FM_MakeSignedData [11:48:09]FM_MakeSignedData [11:48:09]SAM_PROTO_SignData [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 0D 01 02 [11:48:09]Write to MH i2c: E2 08 00 01 04 80 0D 01 02 00 00 00 00 7E [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [11:48:09]RAPDU: 90 00 [11:48:09]wFMCommunicate OK [11:48:09]wFMCommunicate request_size=255 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 79 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E1 02 00 35 04 06 00 D6 [11:48:09]Write to MH i2c: E2 02 01 02 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 79 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E1 02 00 35 04 06 00 D6 00 00 BA [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [11:48:10]RAPDU: 90 00 [11:48:10]wFMCommunicate OK [11:48:10]wFMCommunicate request_size=10 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 0D 02 02 05 9D F6 B2 D6 8A [11:48:10]Write to MH i2c: E2 0D 00 03 04 80 0D 02 02 05 00 9D F6 B2 D6 8A 00 00 30 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [11:48:10]RAPDU: 90 00 [11:48:10]wFMCommunicate OK [11:48:10]wFMCommunicate request_size=4 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 0D 03 02 [11:48:10]Write to MH i2c: E2 08 00 04 04 80 0D 03 02 00 00 00 00 83 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 0B 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 0B 00 04 04 00 CE 4A 9D EF 0B 68 DC 3B 90 00 B2 [11:48:10]RAPDU: CE 4A 9D EF 0B 68 DC 3B 90 00 [11:48:10]wFMCommunicate OK [11:48:10]SAM_PROTO_SignData done [11:48:10]FM_MakeSignedData done [11:48:10]CreateOFDProtocolMessage [11:48:10]wFMCommunicate request_size=4 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 11 00 00 [11:48:10]Write to MH i2c: E2 08 00 05 04 80 11 00 00 00 00 00 00 83 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 17 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 17 00 05 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [11:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:48:10]wFMCommunicate OK [11:48:10]CreateOFDProtocolMessage done [11:48:10]OFDSenderStorePacket 188678 [11:48:10]StoreOFDPacket docnum=188678 [11:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D7 F7 07 01 81 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 79 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E1 02 00 35 04 06 00 D6 9D F6 B2 D6 8A CE 4A 9D EF 0B 68 DC 3B [11:48:10]CheckFolder [11:48:10]dirname=/storage/ofd_packets [11:48:10]CheckFolder done [11:48:10]ProducePacketName [11:48:10]name=ofd_packets/00188678 [11:48:10]NVStorageSaveData ofd_packets/00188678 [11:48:10]File name is /storage/ofd_packets/00188678 [11:48:10]Write 301 bytes [11:48:10]NVStorageSaveData done [11:48:10]OFDSenderStorePacket done [11:48:10]KKMCreateOFDPacket done [11:48:10]NVStorageSaveData kkm_last_timestamp [11:48:10]File name is /storage/kkm_last_timestamp [11:48:10]Write 4 bytes [11:48:10]NVStorageSaveData done [11:48:10]ExternCall_PrintAddStr [11:48:10]wPrintStart [11:48:10]Write to MH i2c: 01 00 00 06 04 0A [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 FF 0F 1F [11:48:10]RasterBufferAndPrint [11:48:10]line Счет N : (1)210738 [11:48:10]line ИНН: 02508201610067 [11:48:10]line Контрольно-Кассовый Чек [11:48:10]line ПРОДАЖА [11:48:10]line ТРК (МРК, ГНК) : 22 [11:48:10]line Товар: 2710124130 [11:48:10]line Аи-92-К-3 [11:48:10]line 3.740 * 66.90 [11:48:10]line = 250.21 [11:48:10]line НДС 12% НСП 1% [11:48:10]line > о реализуемом товаре [11:48:10]line ОКРУГЛЕНИЕ: -0.21 [11:48:10]line ИТОГО: 250.00 [11:48:10]line Внесено: 250.00 [11:48:10]line СДАЧА: 0.00 [11:48:10]line НСП 1% : 2.21 [11:48:10]line НДС 12% : 26.57 [11:48:10]line Наличными: 250.00 [11:48:10]line Безнал.: 0.00 [11:48:10]line Место: АЗС № 86 "Партнер Нефть" [11:48:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:48:10]line СНО: Общий режим [11:48:10]line Чек 136 23.10.2024 11:48 [11:48:10]line Смена: 462 ФФД: 1.0 [11:48:10]line ЗНМ: 0300000155 [11:48:10]line РНМ: 0000000000100030 [11:48:10]line Версия ККМ: 001 [11:48:10]line ФМ: 0000000000965340 [11:48:10]line ФД: 188678 [11:48:10]line ФПД: 235973937125002 [11:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114809&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188678&fm=235973937125002&tin=02508201610067®Number=0000000000100030&sum=25000 [11:48:10]written 0, free lines is 4095 [11:48:10]OFD Sender: Processing packet 188678 [packets to send 1062, broken 1061] [11:48:10]ProducePacketName [11:48:10]name=ofd_packets/00188678 [11:48:10]OFD Sender: To server: pG, [11:48:10]CommunicateWithHost lk.salyk.kg:30040 [11:48:10]ConnectInit lk.salyk.kg [11:48:10]Connected sock=10 [11:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D7 F7 07 01 81 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 79 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E1 02 00 35 04 06 00 D6 9D F6 B2 D6 8A CE 4A 9D EF 0B 68 DC 3B [11:48:10]Write to MH i2c: 01 00 00 31 04 35 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 5E 0C A6 [11:48:10]RasterBufferAndPrint [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]written 0, free lines is 3169 [11:48:10]MH_Cut [11:48:10]Write to MH i2c: D1 01 00 38 04 01 0E [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 01 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 01 00 38 04 00 0D [11:48:10]Write to MH i2c: 01 00 00 39 04 3D [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A D2 47 00 30 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E1 02 00 F4 03 04 00 63 8C 18 67 B6 04 01 00 00 79 8B BB 95 8E 91 0F 51 [11:48:11]CommunicateWithHost err = 0 [11:48:11]CheckOFDResponse [11:48:11]1017 (14) - 77093643461234 [11:48:11]1041 (16) - 0000000000965340 [11:48:11]1040 (4) - 188678 [11:48:11]1012 (4) - 23.10.2024 05:40 [11:48:11]1206 (1) - 0 [11:48:11]OFD Sender: Remove packet 188678 [11:48:11]ProducePacketName [11:48:11]name=ofd_packets/00188678 [11:48:11]NVStorageDeleteData [11:48:11]OFD Sender: No OFD packet to send [11:48:12]*** Cut start [11:48:12]*** Partial cut [11:48:12]*** CUTSNS_PIN = 1 [11:48:12]*** CUTSNS_PIN = 0 [11:48:12]*** Brake cut motor [11:48:12]Read from MH i2c: 01 [11:48:12]MH_I2C_Read... [11:48:12]*** Stop cut motor [11:48:12]*** Cut end [11:48:12]Read from MH i2c: 01 07 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [11:48:12]process_action close_receipt done [11:48:12]requested_data is exist [11:48:12]produce_requested_data [11:48:12]requested_item fm.sn is exist - process it [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 11 00 00 [11:48:12]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 17 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [11:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:48:12]wFMCommunicate OK [11:48:12]requested_item fd.num is exist - process it [11:48:12]SAM_PROTO_GetFieldsCounters [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 13 00 00 [11:48:12]Write to MH i2c: E2 08 00 3B 04 80 13 00 00 00 00 00 00 BB [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 62 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 62 00 3B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:48:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:13]wFMCommunicate OK [11:48:13]SAM_PROTO_GetFieldsCounters done [11:48:13]requested_item shift.num is exist - process it [11:48:13]requested_item shift.opened is exist - process it [11:48:13]req_shift_opened [11:48:13]FM_GetShiftState [11:48:13]SAM_PROTO_GetShiftState [11:48:13]wFMCommunicate request_size=4 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 13 01 00 [11:48:13]Write to MH i2c: E2 08 00 3C 04 80 13 01 00 00 00 00 00 BD [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:13]Read from MH i2c: E2 0E 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 0E 00 3C 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A5 [11:48:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:48:13]wFMCommunicate OK [11:48:13]SAM_PROTO_GetShiftState done [11:48:13]FM_GetShiftState done [11:48:13]req_shift_opened done [11:48:13]requested_item shift.open_date is exist - process it [11:48:13]req_shift_open_date [11:48:13]req_shift_open_date done [11:48:13]produce_requested_data done [11:48:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188678,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:48:13]process_action_free close_receipt [11:48:13]json_value_free [11:48:13]json_value_free done [11:48:13]process_json_proto returns [11:48:13]Send response to host [11:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188678,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:48:13]free response buf [11:48:13]execute_script done [11:48:13]execute_script returns [11:48:13]free content buf [11:48:13]Sock 7.Close socket [11:48:13]Sock 7.Thread stoped [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:09]accept exits with 9 [11:50:09]New connection [11:50:09]New thread 3067161956 created [11:50:09]Thread 3067018596 joined [11:50:09]Waiting for new connection... [11:50:09] Sock 9.Parse request [11:50:09]Sock 9.Check first char [11:50:09]Sock 9.First char is OK [11:50:09]request: POST /json_proto HTTP/1.0 [11:50:09]Method: POST [11:50:09]URL: /json_proto [11:50:09]Method is POST - this is cgi request [11:50:09]url: /json_proto [11:50:09]query_string will be loaded in cgi processing [11:50:09]execute_cgi json_proto POST (null) [11:50:09]execute_cgi path=json_proto method=POST [11:50:09]POST find Content-Length [11:50:09]Host: 172.17.42.131:8080 [11:50:09]Content-Length: 682 [11:50:09]Content-Type: application/json [11:50:09] [11:50:09]POST finish read [11:50:09]Found Content-Length = 682 [11:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:09]execute_script... [11:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:09]POST & json_proto [11:50:09]process_json_proto [11:50:09]json parsed OK: [11:50:09]protocol is kg_v1.0 [11:50:09]action value=close_receipt [11:50:09]process_action close_receipt [11:50:09]cmd_close_receipt [11:50:09]MH_GetDate [11:50:09]Write to MH i2c: F0 00 00 3D 04 30 [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 09 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 09 00 3D 04 00 F2 E2 18 67 A0 18 CA 66 74 [11:50:09]GetLastDocTimeStamp 1729684089 [11:50:09]current date 1729684210 [11:50:09]FM_GetShiftState [11:50:09]SAM_PROTO_GetShiftState [11:50:09]wFMCommunicate request_size=4 [11:50:09]MH_SAM_APDU [11:50:09]CAPDU: 80 13 01 00 [11:50:09]Write to MH i2c: E2 08 00 3E 04 80 13 01 00 00 00 00 00 BF [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:09]Read from MH i2c: E2 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 0E 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 0E 00 3E 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A7 [11:50:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:50:09]wFMCommunicate OK [11:50:09]SAM_PROTO_GetShiftState done [11:50:09]FM_GetShiftState done [11:50:09]opened in 1729642525 [11:50:09]opened+sec_in_day 1729728925 [11:50:09]quantity*price = 200043 [11:50:09]sum+1 = 200044 [11:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 137 23.10.2024 11:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188679 ФПД: 30585955645633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115010&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188679&fm=30585955645633&tin=02508201610067®Number=0000000000100030&sum=200000 [11:50:10]StoreToDocumentArchive [11:50:10]shift 462 fd 188679 [11:50:10]save to /storage/0462/doc_00188679 [11:50:10]save last doc name /storage/0462/doc_00188679 to /storage/kkm_last_doc_name [11:50:10]save OK [11:50:10]Clear old archive folders... [11:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:10]tlvbuf is 01C364A0 [11:50:10]SAM_PROTO_ClearQueue [11:50:10]wFMCommunicate request_size=4 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 09 00 00 [11:50:10]Write to MH i2c: E2 08 00 4B 04 80 09 00 00 00 00 00 00 C1 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [11:50:10]RAPDU: 90 00 [11:50:10]wFMCommunicate OK [11:50:10]SAM_PROTO_ClearQueue done [11:50:10]KKMCreateOFDPacket [11:50:10]OFDProtocolAddRootSTLVToBuf [11:50:10]FM_MakeSignedData [11:50:10]FM_MakeSignedData [11:50:10]SAM_PROTO_SignData [11:50:10]wFMCommunicate request_size=4 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 0D 01 02 [11:50:10]Write to MH i2c: E2 08 00 4C 04 80 0D 01 02 00 00 00 00 C9 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [11:50:10]RAPDU: 90 00 [11:50:10]wFMCommunicate OK [11:50:10]wFMCommunicate request_size=255 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F2 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E1 02 00 35 04 06 00 1B [11:50:10]Write to MH i2c: E2 02 01 4D 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F2 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E1 02 00 35 04 06 00 1B 00 00 94 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]wFMCommunicate request_size=10 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 02 02 05 D1 59 05 78 C1 [11:50:11]Write to MH i2c: E2 0D 00 4E 04 80 0D 02 02 05 00 D1 59 05 78 C1 00 00 3E [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 03 02 [11:50:11]Write to MH i2c: E2 08 00 4F 04 80 0D 03 02 00 00 00 00 CE [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 0B 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 0B 00 4F 04 00 A4 FD C0 9D 73 99 92 C5 90 00 30 [11:50:11]RAPDU: A4 FD C0 9D 73 99 92 C5 90 00 [11:50:11]wFMCommunicate OK [11:50:11]SAM_PROTO_SignData done [11:50:11]FM_MakeSignedData done [11:50:11]CreateOFDProtocolMessage [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 11 00 00 [11:50:11]Write to MH i2c: E2 08 00 50 04 80 11 00 00 00 00 00 00 CE [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 17 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 17 00 50 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [11:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:50:11]wFMCommunicate OK [11:50:11]CreateOFDProtocolMessage done [11:50:11]OFDSenderStorePacket 188679 [11:50:11]StoreOFDPacket docnum=188679 [11:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 A7 07 01 BB 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F2 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E1 02 00 35 04 06 00 1B D1 59 05 78 C1 A4 FD C0 9D 73 99 92 C5 [11:50:11]CheckFolder [11:50:11]dirname=/storage/ofd_packets [11:50:11]CheckFolder done [11:50:11]ProducePacketName [11:50:11]name=ofd_packets/00188679 [11:50:11]NVStorageSaveData ofd_packets/00188679 [11:50:11]File name is /storage/ofd_packets/00188679 [11:50:11]Write 301 bytes [11:50:11]NVStorageSaveData done [11:50:11]OFDSenderStorePacket done [11:50:11]KKMCreateOFDPacket done [11:50:11]NVStorageSaveData kkm_last_timestamp [11:50:11]File name is /storage/kkm_last_timestamp [11:50:11]Write 4 bytes [11:50:11]NVStorageSaveData done [11:50:11]ExternCall_PrintAddStr [11:50:11]wPrintStart [11:50:11]Write to MH i2c: 01 00 00 51 04 55 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 07 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 FF 0F 6A [11:50:11]RasterBufferAndPrint [11:50:11]line Счет N : (1)210739 [11:50:11]line ИНН: 02508201610067 [11:50:11]line Контрольно-Кассовый Чек [11:50:11]line ПРОДАЖА [11:50:11]line ТРК (МРК, ГНК) : 43 [11:50:11]line Товар: 2710124500 [11:50:11]line Аи-95-К-3 [11:50:11]line 26.960 * 74.20 [11:50:11]line = 2000.43 [11:50:11]line НДС 12% НСП 1% [11:50:11]line > о реализуемом товаре [11:50:11]line ОКРУГЛЕНИЕ: -0.43 [11:50:11]line ИТОГО: 2000.00 [11:50:11]line Внесено: 2000.00 [11:50:11]line СДАЧА: 0.00 [11:50:11]line НСП 1% : 17.70 [11:50:11]line НДС 12% : 212.43 [11:50:11]line Наличными: 2000.00 [11:50:11]line Безнал.: 0.00 [11:50:11]line Место: АЗС № 86 "Партнер Нефть" [11:50:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:50:11]line СНО: Общий режим [11:50:11]line Чек 137 23.10.2024 11:50 [11:50:11]line Смена: 462 ФФД: 1.0 [11:50:11]line ЗНМ: 0300000155 [11:50:11]line РНМ: 0000000000100030 [11:50:11]line Версия ККМ: 001 [11:50:11]line ФМ: 0000000000965340 [11:50:11]line ФД: 188679 [11:50:11]line ФПД: 30585955645633 [11:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115010&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188679&fm=30585955645633&tin=02508201610067®Number=0000000000100030&sum=200000 [11:50:11]OFD Sender: Processing packet 188679 [packets to send 1062, broken 1061] [11:50:11]ProducePacketName [11:50:11]name=ofd_packets/00188679 [11:50:11]OFD Sender: To server: pG, [11:50:11]CommunicateWithHost lk.salyk.kg:30040 [11:50:11]ConnectInit lk.salyk.kg [11:50:11]written 0, free lines is 4095 [11:50:12]Connected sock=11 [11:50:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 A7 07 01 BB 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F2 E2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E1 02 00 35 04 06 00 1B D1 59 05 78 C1 A4 FD C0 9D 73 99 92 C5 [11:50:12]Write to MH i2c: 01 00 00 7C 04 80 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 07 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 64 0C F7 [11:50:12]RasterBufferAndPrint [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]written 0, free lines is 3175 [11:50:12]MH_Cut [11:50:12]Write to MH i2c: D1 01 00 83 04 01 59 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 01 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 01 00 83 04 00 58 [11:50:12]Write to MH i2c: 01 00 00 84 04 88 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 61 47 00 BB 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 36 35 33 34 30 10 04 04 00 07 E1 02 00 F4 03 04 00 DD 8C 18 67 B6 04 01 00 00 1F 26 E3 40 13 DB CD A0 [11:50:12]CommunicateWithHost err = 0 [11:50:12]CheckOFDResponse [11:50:12]1017 (14) - 77093643461234 [11:50:12]1041 (16) - 0000000000965340 [11:50:12]1040 (4) - 188679 [11:50:12]1012 (4) - 23.10.2024 05:42 [11:50:12]1206 (1) - 0 [11:50:12]OFD Sender: Remove packet 188679 [11:50:12]ProducePacketName [11:50:12]name=ofd_packets/00188679 [11:50:12]NVStorageDeleteData [11:50:13]OFD Sender: No OFD packet to send [11:50:13]*** Cut start [11:50:13]*** Partial cut [11:50:13]*** CUTSNS_PIN = 1 [11:50:13]*** CUTSNS_PIN = 0 [11:50:13]*** Brake cut motor [11:50:14]Read from MH i2c: 01 [11:50:14]MH_I2C_Read... [11:50:14]*** Stop cut motor [11:50:14]*** Cut end [11:50:14]Read from MH i2c: 01 07 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 FF 0F 9D [11:50:14]process_action close_receipt done [11:50:14]requested_data is exist [11:50:14]produce_requested_data [11:50:14]requested_item fm.sn is exist - process it [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 11 00 00 [11:50:14]Write to MH i2c: E2 08 00 85 04 80 11 00 00 00 00 00 00 03 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 17 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 17 00 85 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [11:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:50:14]wFMCommunicate OK [11:50:14]requested_item fd.num is exist - process it [11:50:14]SAM_PROTO_GetFieldsCounters [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 13 00 00 [11:50:14]Write to MH i2c: E2 08 00 86 04 80 13 00 00 00 00 00 00 06 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 62 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 62 00 86 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [11:50:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:14]wFMCommunicate OK [11:50:14]SAM_PROTO_GetFieldsCounters done [11:50:14]requested_item shift.num is exist - process it [11:50:14]requested_item shift.opened is exist - process it [11:50:14]req_shift_opened [11:50:14]FM_GetShiftState [11:50:14]SAM_PROTO_GetShiftState [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 13 01 00 [11:50:14]Write to MH i2c: E2 08 00 87 04 80 13 01 00 00 00 00 00 08 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 0E 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 0E 00 87 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F0 [11:50:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:50:14]wFMCommunicate OK [11:50:14]SAM_PROTO_GetShiftState done [11:50:14]FM_GetShiftState done [11:50:14]req_shift_opened done [11:50:14]requested_item shift.open_date is exist - process it [11:50:14]req_shift_open_date [11:50:14]req_shift_open_date done [11:50:14]produce_requested_data done [11:50:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188679,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:50:14]process_action_free close_receipt [11:50:14]json_value_free [11:50:14]json_value_free done [11:50:14]process_json_proto returns [11:50:14]Send response to host [11:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188679,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:50:14]free response buf [11:50:14]execute_script done [11:50:14]execute_script returns [11:50:14]free content buf [11:50:14]Sock 9.Close socket [11:50:14]Sock 9.Thread stoped [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:35]accept exits with 7 [11:52:35]New connection [11:52:35]New thread 3067018596 created [11:52:35]Thread 3067161956 joined [11:52:35]Waiting for new connection... [11:52:35] Sock 7.Parse request [11:52:35]Sock 7.Check first char [11:52:35]Sock 7.First char is OK [11:52:35]request: POST /json_proto HTTP/1.0 [11:52:35]Method: POST [11:52:35]URL: /json_proto [11:52:35]Method is POST - this is cgi request [11:52:35]url: /json_proto [11:52:35]query_string will be loaded in cgi processing [11:52:35]execute_cgi json_proto POST (null) [11:52:35]execute_cgi path=json_proto method=POST [11:52:35]POST find Content-Length [11:52:35]Host: 172.17.42.131:8080 [11:52:35]Content-Length: 682 [11:52:35]Content-Type: application/json [11:52:35] [11:52:35]POST finish read [11:52:35]Found Content-Length = 682 [11:52:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:35]execute_script... [11:52:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:35]POST & json_proto [11:52:35]process_json_proto [11:52:35]json parsed OK: [11:52:35]protocol is kg_v1.0 [11:52:35]action value=close_receipt [11:52:35]process_action close_receipt [11:52:35]cmd_close_receipt [11:52:35]MH_GetDate [11:52:35]Write to MH i2c: F0 00 00 88 04 7B [11:52:35]Write i2c OK [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: F0 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: F0 09 00 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: F0 09 00 88 04 00 84 E3 18 67 A0 18 CA 66 52 [11:52:35]GetLastDocTimeStamp 1729684210 [11:52:35]current date 1729684356 [11:52:35]FM_GetShiftState [11:52:35]SAM_PROTO_GetShiftState [11:52:35]wFMCommunicate request_size=4 [11:52:35]MH_SAM_APDU [11:52:35]CAPDU: 80 13 01 00 [11:52:35]Write to MH i2c: E2 08 00 89 04 80 13 01 00 00 00 00 00 0A [11:52:35]Write i2c OK [11:52:35]MH_I2C_Read... [11:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:36]Read from MH i2c: E2 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: E2 0E 00 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: E2 0E 00 89 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F2 [11:52:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:52:36]wFMCommunicate OK [11:52:36]SAM_PROTO_GetShiftState done [11:52:36]FM_GetShiftState done [11:52:36]opened in 1729642525 [11:52:36]opened+sec_in_day 1729728925 [11:52:36]quantity*price = 100015 [11:52:36]sum+1 = 100017 [11:52:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 138 23.10.2024 11:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188680 ФПД: 115446989885054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115236&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188680&fm=115446989885054&tin=02508201610067®Number=0000000000100030&sum=100000 [11:52:37]StoreToDocumentArchive [11:52:37]shift 462 fd 188680 [11:52:37]save to /storage/0462/doc_00188680 [11:52:37]save last doc name /storage/0462/doc_00188680 to /storage/kkm_last_doc_name [11:52:37]save OK [11:52:37]Clear old archive folders... [11:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:37]tlvbuf is 01C03850 [11:52:37]SAM_PROTO_ClearQueue [11:52:37]wFMCommunicate request_size=4 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 09 00 00 [11:52:37]Write to MH i2c: E2 08 00 96 04 80 09 00 00 00 00 00 00 0C [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 03 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [11:52:37]RAPDU: 90 00 [11:52:37]wFMCommunicate OK [11:52:37]SAM_PROTO_ClearQueue done [11:52:37]KKMCreateOFDPacket [11:52:37]OFDProtocolAddRootSTLVToBuf [11:52:37]FM_MakeSignedData [11:52:37]FM_MakeSignedData [11:52:37]SAM_PROTO_SignData [11:52:37]wFMCommunicate request_size=4 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 0D 01 02 [11:52:37]Write to MH i2c: E2 08 00 97 04 80 0D 01 02 00 00 00 00 14 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 03 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [11:52:37]RAPDU: 90 00 [11:52:37]wFMCommunicate OK [11:52:37]wFMCommunicate request_size=255 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 84 E3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E1 02 00 35 04 06 00 68 [11:52:37]Write to MH i2c: E2 02 01 98 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 84 E3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E1 02 00 35 04 06 00 68 00 00 13 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 03 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [11:52:37]RAPDU: 90 00 [11:52:37]wFMCommunicate OK [11:52:37]wFMCommunicate request_size=10 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 0D 02 02 05 FF 98 D2 8E 7E [11:52:37]Write to MH i2c: E2 0D 00 99 04 80 0D 02 02 05 00 FF 98 D2 8E 7E 00 00 96 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 03 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [11:52:37]RAPDU: 90 00 [11:52:37]wFMCommunicate OK [11:52:37]wFMCommunicate request_size=4 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 0D 03 02 [11:52:37]Write to MH i2c: E2 08 00 9A 04 80 0D 03 02 00 00 00 00 19 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 0B 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 0B 00 9A 04 00 82 61 E9 49 F3 8B E0 4A 90 00 D7 [11:52:37]RAPDU: 82 61 E9 49 F3 8B E0 4A 90 00 [11:52:37]wFMCommunicate OK [11:52:37]SAM_PROTO_SignData done [11:52:37]FM_MakeSignedData done [11:52:37]CreateOFDProtocolMessage [11:52:37]wFMCommunicate request_size=4 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 11 00 00 [11:52:37]Write to MH i2c: E2 08 00 9B 04 80 11 00 00 00 00 00 00 19 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 17 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 17 00 9B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [11:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:52:37]wFMCommunicate OK [11:52:37]CreateOFDProtocolMessage done [11:52:37]OFDSenderStorePacket 188680 [11:52:37]StoreOFDPacket docnum=188680 [11:52:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 8F 07 01 56 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 84 E3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E1 02 00 35 04 06 00 68 FF 98 D2 8E 7E 82 61 E9 49 F3 8B E0 4A [11:52:37]CheckFolder [11:52:37]dirname=/storage/ofd_packets [11:52:37]CheckFolder done [11:52:37]ProducePacketName [11:52:37]name=ofd_packets/00188680 [11:52:37]NVStorageSaveData ofd_packets/00188680 [11:52:37]File name is /storage/ofd_packets/00188680 [11:52:37]Write 301 bytes [11:52:37]NVStorageSaveData done [11:52:37]OFDSenderStorePacket done [11:52:37]KKMCreateOFDPacket done [11:52:37]NVStorageSaveData kkm_last_timestamp [11:52:37]File name is /storage/kkm_last_timestamp [11:52:37]Write 4 bytes [11:52:37]NVStorageSaveData done [11:52:37]ExternCall_PrintAddStr [11:52:37]wPrintStart [11:52:37]Write to MH i2c: 01 00 00 9C 04 A0 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: 01 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: 01 07 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 FF 0F B5 [11:52:37]RasterBufferAndPrint [11:52:37]line Счет N : (1)210740 [11:52:37]line ИНН: 02508201610067 [11:52:37]line Контрольно-Кассовый Чек [11:52:37]line ПРОДАЖА [11:52:37]line ТРК (МРК, ГНК) : 32 [11:52:37]line Товар: 2710124130 [11:52:37]line Аи-92-К-3 [11:52:37]line 14.950 * 66.90 [11:52:37]line = 1000.16 [11:52:37]line НДС 12% НСП 1% [11:52:37]line > о реализуемом товаре [11:52:37]line ОКРУГЛЕНИЕ: -0.16 [11:52:37]line ИТОГО: 1000.00 [11:52:37]line Внесено: 1000.00 [11:52:37]line СДАЧА: 0.00 [11:52:37]line НСП 1% : 8.85 [11:52:37]line НДС 12% : 106.21 [11:52:37]line Наличными: 1000.00 [11:52:37]line Безнал.: 0.00 [11:52:37]line Место: АЗС № 86 "Партнер Нефть" [11:52:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:52:37]line СНО: Общий режим [11:52:37]line Чек 138 23.10.2024 11:52 [11:52:37]line Смена: 462 ФФД: 1.0 [11:52:37]line ЗНМ: 0300000155 [11:52:37]line РНМ: 0000000000100030 [11:52:37]line Версия ККМ: 001 [11:52:37]line ФМ: 0000000000965340 [11:52:37]line ФД: 188680 [11:52:37]line ФПД: 115446989885054 [11:52:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115236&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188680&fm=115446989885054&tin=02508201610067®Number=0000000000100030&sum=100000 [11:52:37]written 0, free lines is 4095 [11:52:37]OFD Sender: Processing packet 188680 [packets to send 1062, broken 1061] [11:52:37]ProducePacketName [11:52:37]name=ofd_packets/00188680 [11:52:37]OFD Sender: To server: pG, [11:52:37]CommunicateWithHost lk.salyk.kg:30040 [11:52:37]ConnectInit lk.salyk.kg [11:52:38]Connected sock=9 [11:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 8F 07 01 56 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 84 E3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E1 02 00 35 04 06 00 68 FF 98 D2 8E 7E 82 61 E9 49 F3 8B E0 4A [11:52:38]Write to MH i2c: 01 00 00 C7 04 CB [11:52:38]Write i2c OK [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: 01 [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: 01 07 00 [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 4F 0C 2D [11:52:38]RasterBufferAndPrint [11:52:38]line [11:52:38]line [11:52:38]line [11:52:38]line [11:52:38]line [11:52:38]written 0, free lines is 3155 [11:52:38]MH_Cut [11:52:38]Write to MH i2c: D1 01 00 CE 04 01 A4 [11:52:38]Write i2c OK [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: D1 [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: D1 01 00 [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: D1 01 00 CE 04 00 A3 [11:52:38]Write to MH i2c: 01 00 00 CF 04 D3 [11:52:38]Write i2c OK [11:52:38]MH_I2C_Read... [11:52:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 21 A2 47 00 6E 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 36 35 33 34 30 10 04 04 00 08 E1 02 00 F4 03 04 00 6F 8D 18 67 B6 04 01 00 00 5F B0 0D DA C8 EC D4 32 [11:52:38]CommunicateWithHost err = 0 [11:52:38]CheckOFDResponse [11:52:38]1017 (14) - 77093643461234 [11:52:38]1041 (16) - 0000000000965340 [11:52:38]1040 (4) - 188680 [11:52:38]1012 (4) - 23.10.2024 05:45 [11:52:38]1206 (1) - 0 [11:52:38]OFD Sender: Remove packet 188680 [11:52:38]ProducePacketName [11:52:38]name=ofd_packets/00188680 [11:52:38]NVStorageDeleteData [11:52:38]OFD Sender: No OFD packet to send [11:52:39]*** Cut start [11:52:39]*** Partial cut [11:52:39]*** CUTSNS_PIN = 1 [11:52:39]*** CUTSNS_PIN = 0 [11:52:39]*** Brake cut motor [11:52:40]Read from MH i2c: 01 [11:52:40]MH_I2C_Read... [11:52:40]*** Stop cut motor [11:52:40]*** Cut end [11:52:40]Read from MH i2c: 01 07 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 FF 0F E8 [11:52:40]process_action close_receipt done [11:52:40]requested_data is exist [11:52:40]produce_requested_data [11:52:40]requested_item fm.sn is exist - process it [11:52:40]wFMCommunicate request_size=4 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 11 00 00 [11:52:40]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:40]Read from MH i2c: E2 17 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [11:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:52:40]wFMCommunicate OK [11:52:40]requested_item fd.num is exist - process it [11:52:40]SAM_PROTO_GetFieldsCounters [11:52:40]wFMCommunicate request_size=4 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 13 00 00 [11:52:40]Write to MH i2c: E2 08 00 D1 04 80 13 00 00 00 00 00 00 51 [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 62 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 62 00 D1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:40]wFMCommunicate OK [11:52:40]SAM_PROTO_GetFieldsCounters done [11:52:40]requested_item shift.num is exist - process it [11:52:40]requested_item shift.opened is exist - process it [11:52:40]req_shift_opened [11:52:40]FM_GetShiftState [11:52:40]SAM_PROTO_GetShiftState [11:52:40]wFMCommunicate request_size=4 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 13 01 00 [11:52:40]Write to MH i2c: E2 08 00 D2 04 80 13 01 00 00 00 00 00 53 [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 0E 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 0E 00 D2 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3B [11:52:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:52:40]wFMCommunicate OK [11:52:40]SAM_PROTO_GetShiftState done [11:52:40]FM_GetShiftState done [11:52:40]req_shift_opened done [11:52:40]requested_item shift.open_date is exist - process it [11:52:40]req_shift_open_date [11:52:40]req_shift_open_date done [11:52:40]produce_requested_data done [11:52:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188680,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:52:40]process_action_free close_receipt [11:52:40]json_value_free [11:52:40]json_value_free done [11:52:40]process_json_proto returns [11:52:40]Send response to host [11:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188680,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:52:40]free response buf [11:52:40]execute_script done [11:52:40]execute_script returns [11:52:40]free content buf [11:52:40]Sock 7.Close socket [11:52:40]Sock 7.Thread stoped [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:42]accept exits with 10 [11:57:42]New connection [11:57:42]New thread 3067161956 created [11:57:42]Thread 3067018596 joined [11:57:42]Waiting for new connection... [11:57:42] Sock 10.Parse request [11:57:42]Sock 10.Check first char [11:57:42]Sock 10.First char is OK [11:57:42]request: POST /json_proto HTTP/1.0 [11:57:42]Method: POST [11:57:42]URL: /json_proto [11:57:42]Method is POST - this is cgi request [11:57:42]url: /json_proto [11:57:42]query_string will be loaded in cgi processing [11:57:42]execute_cgi json_proto POST (null) [11:57:42]execute_cgi path=json_proto method=POST [11:57:42]POST find Content-Length [11:57:42]Host: 172.17.42.131:8080 [11:57:42]Content-Length: 677 [11:57:42]Content-Type: application/json [11:57:42] [11:57:42]POST finish read [11:57:42]Found Content-Length = 677 [11:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:42]execute_script... [11:57:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:42]POST & json_proto [11:57:42]process_json_proto [11:57:42]json parsed OK: [11:57:42]protocol is kg_v1.0 [11:57:42]action value=close_receipt [11:57:42]process_action close_receipt [11:57:42]cmd_close_receipt [11:57:42]MH_GetDate [11:57:42]Write to MH i2c: F0 00 00 D3 04 C6 [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: F0 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: F0 09 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: F0 09 00 D3 04 00 B6 E4 18 67 A0 18 CA 66 D0 [11:57:42]GetLastDocTimeStamp 1729684356 [11:57:42]current date 1729684662 [11:57:42]FM_GetShiftState [11:57:42]SAM_PROTO_GetShiftState [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 13 01 00 [11:57:42]Write to MH i2c: E2 08 00 D4 04 80 13 01 00 00 00 00 00 55 [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0E 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0E 00 D4 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3D [11:57:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_GetShiftState done [11:57:42]FM_GetShiftState done [11:57:42]opened in 1729642525 [11:57:42]opened+sec_in_day 1729728925 [11:57:42]quantity*price = 50041 [11:57:42]sum+1 = 50042 [11:57:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 139 23.10.2024 11:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188681 ФПД: 13983984573554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115742&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188681&fm=13983984573554&tin=02508201610067®Number=0000000000100030&sum=50000 [11:57:43]StoreToDocumentArchive [11:57:43]shift 462 fd 188681 [11:57:43]save to /storage/0462/doc_00188681 [11:57:43]save last doc name /storage/0462/doc_00188681 to /storage/kkm_last_doc_name [11:57:43]save OK [11:57:43]Clear old archive folders... [11:57:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:43]tlvbuf is 01BFEB00 [11:57:43]SAM_PROTO_ClearQueue [11:57:43]wFMCommunicate request_size=4 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 09 00 00 [11:57:43]Write to MH i2c: E2 08 00 E1 04 80 09 00 00 00 00 00 00 57 [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [11:57:43]RAPDU: 90 00 [11:57:43]wFMCommunicate OK [11:57:43]SAM_PROTO_ClearQueue done [11:57:43]KKMCreateOFDPacket [11:57:43]OFDProtocolAddRootSTLVToBuf [11:57:43]FM_MakeSignedData [11:57:43]FM_MakeSignedData [11:57:43]SAM_PROTO_SignData [11:57:43]wFMCommunicate request_size=4 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 0D 01 02 [11:57:43]Write to MH i2c: E2 08 00 E2 04 80 0D 01 02 00 00 00 00 5F [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [11:57:43]RAPDU: 90 00 [11:57:43]wFMCommunicate OK [11:57:43]wFMCommunicate request_size=255 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 B6 E4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E1 02 00 35 04 06 00 0C [11:57:43]Write to MH i2c: E2 02 01 E3 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 B6 E4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E1 02 00 35 04 06 00 0C 00 00 3D [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [11:57:43]RAPDU: 90 00 [11:57:43]wFMCommunicate OK [11:57:43]wFMCommunicate request_size=10 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 0D 02 02 05 B7 E6 6E DC 72 [11:57:43]Write to MH i2c: E2 0D 00 E4 04 80 0D 02 02 05 00 B7 E6 6E DC 72 00 00 C5 [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [11:57:43]RAPDU: 90 00 [11:57:43]wFMCommunicate OK [11:57:43]wFMCommunicate request_size=4 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 0D 03 02 [11:57:43]Write to MH i2c: E2 08 00 E5 04 80 0D 03 02 00 00 00 00 64 [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 0B 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 0B 00 E5 04 00 FC 94 61 60 47 1A B6 56 90 00 23 [11:57:43]RAPDU: FC 94 61 60 47 1A B6 56 90 00 [11:57:43]wFMCommunicate OK [11:57:43]SAM_PROTO_SignData done [11:57:43]FM_MakeSignedData done [11:57:43]CreateOFDProtocolMessage [11:57:43]wFMCommunicate request_size=4 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 11 00 00 [11:57:43]Write to MH i2c: E2 08 00 E6 04 80 11 00 00 00 00 00 00 64 [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 17 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 17 00 E6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [11:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:57:43]wFMCommunicate OK [11:57:43]CreateOFDProtocolMessage done [11:57:43]OFDSenderStorePacket 188681 [11:57:43]StoreOFDPacket docnum=188681 [11:57:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 39 07 01 96 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 B6 E4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E1 02 00 35 04 06 00 0C B7 E6 6E DC 72 FC 94 61 60 47 1A B6 56 [11:57:43]CheckFolder [11:57:43]dirname=/storage/ofd_packets [11:57:43]CheckFolder done [11:57:43]ProducePacketName [11:57:43]name=ofd_packets/00188681 [11:57:43]NVStorageSaveData ofd_packets/00188681 [11:57:43]File name is /storage/ofd_packets/00188681 [11:57:43]Write 301 bytes [11:57:43]NVStorageSaveData done [11:57:43]OFDSenderStorePacket done [11:57:43]KKMCreateOFDPacket done [11:57:43]NVStorageSaveData kkm_last_timestamp [11:57:43]File name is /storage/kkm_last_timestamp [11:57:43]Write 4 bytes [11:57:43]NVStorageSaveData done [11:57:43]ExternCall_PrintAddStr [11:57:43]wPrintStart [11:57:43]Write to MH i2c: 01 00 00 E7 04 EB [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 07 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 FF 0F 00 [11:57:43]RasterBufferAndPrint [11:57:43]line Счет N : (1)210741 [11:57:43]line ИНН: 02508201610067 [11:57:43]line Контрольно-Кассовый Чек [11:57:43]line ПРОДАЖА [11:57:43]line ТРК (МРК, ГНК) : 42 [11:57:43]line Товар: 2710124130 [11:57:43]line Аи-92-К-3 [11:57:43]line 7.480 * 66.90 [11:57:43]line = 500.41 [11:57:43]line НДС 12% НСП 1% [11:57:43]line > о реализуемом товаре [11:57:43]line ОКРУГЛЕНИЕ: -0.41 [11:57:43]line ИТОГО: 500.00 [11:57:43]line Внесено: 500.00 [11:57:43]line СДАЧА: 0.00 [11:57:43]line НСП 1% : 4.43 [11:57:43]line НДС 12% : 53.14 [11:57:43]line Наличными: 500.00 [11:57:43]line Безнал.: 0.00 [11:57:43]line Место: АЗС № 86 "Партнер Нефть" [11:57:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:57:43]line СНО: Общий режим [11:57:43]line Чек 139 23.10.2024 11:57 [11:57:43]line Смена: 462 ФФД: 1.0 [11:57:43]line ЗНМ: 0300000155 [11:57:43]line РНМ: 0000000000100030 [11:57:43]line Версия ККМ: 001 [11:57:43]line ФМ: 0000000000965340 [11:57:43]line ФД: 188681 [11:57:43]line ФПД: 13983984573554 [11:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115742&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188681&fm=13983984573554&tin=02508201610067®Number=0000000000100030&sum=50000 [11:57:43]written 0, free lines is 4095 [11:57:43]OFD Sender: Processing packet 188681 [packets to send 1062, broken 1061] [11:57:43]ProducePacketName [11:57:43]name=ofd_packets/00188681 [11:57:43]OFD Sender: To server: pG, [11:57:43]CommunicateWithHost lk.salyk.kg:30040 [11:57:43]ConnectInit lk.salyk.kg [11:57:44]Connected sock=11 [11:57:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 39 07 01 96 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 B6 E4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E1 02 00 35 04 06 00 0C B7 E6 6E DC 72 FC 94 61 60 47 1A B6 56 [11:57:44]Write to MH i2c: 01 00 00 12 05 17 [11:57:44]Write i2c OK [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: 01 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: 01 07 00 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 4A 0C 74 [11:57:44]RasterBufferAndPrint [11:57:44]line [11:57:44]line [11:57:44]line [11:57:44]line [11:57:44]line [11:57:44]written 0, free lines is 3149 [11:57:44]MH_Cut [11:57:44]Write to MH i2c: D1 01 00 19 05 01 F0 [11:57:44]Write i2c OK [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: D1 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: D1 01 00 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: D1 01 00 19 05 00 EF [11:57:44]Write to MH i2c: 01 00 00 1A 05 1F [11:57:44]Write i2c OK [11:57:44]MH_I2C_Read... [11:57:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C2 28 47 00 E8 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E1 02 00 F4 03 04 00 A1 8E 18 67 B6 04 01 00 00 39 AC A4 8B 00 22 20 66 [11:57:44]CommunicateWithHost err = 0 [11:57:44]CheckOFDResponse [11:57:44]1017 (14) - 77093643461234 [11:57:44]1041 (16) - 0000000000965340 [11:57:44]1040 (4) - 188681 [11:57:44]1012 (4) - 23.10.2024 05:50 [11:57:44]1206 (1) - 0 [11:57:44]OFD Sender: Remove packet 188681 [11:57:44]ProducePacketName [11:57:44]name=ofd_packets/00188681 [11:57:44]NVStorageDeleteData [11:57:45]OFD Sender: No OFD packet to send [11:57:45]*** Cut start [11:57:45]*** Partial cut [11:57:45]*** CUTSNS_PIN = 1 [11:57:45]*** CUTSNS_PIN = 0 [11:57:45]*** Brake cut motor [11:57:46]Read from MH i2c: 01 [11:57:46]MH_I2C_Read... [11:57:46]*** Stop cut motor [11:57:46]*** Cut end [11:57:46]Read from MH i2c: 01 07 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 FF 0F 34 [11:57:46]process_action close_receipt done [11:57:46]requested_data is exist [11:57:46]produce_requested_data [11:57:46]requested_item fm.sn is exist - process it [11:57:46]wFMCommunicate request_size=4 [11:57:46]MH_SAM_APDU [11:57:46]CAPDU: 80 11 00 00 [11:57:46]Write to MH i2c: E2 08 00 1B 05 80 11 00 00 00 00 00 00 9A [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 17 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 17 00 1B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [11:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:57:46]wFMCommunicate OK [11:57:46]requested_item fd.num is exist - process it [11:57:46]SAM_PROTO_GetFieldsCounters [11:57:46]wFMCommunicate request_size=4 [11:57:46]MH_SAM_APDU [11:57:46]CAPDU: 80 13 00 00 [11:57:46]Write to MH i2c: E2 08 00 1C 05 80 13 00 00 00 00 00 00 9D [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 62 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 62 00 1C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [11:57:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:46]wFMCommunicate OK [11:57:46]SAM_PROTO_GetFieldsCounters done [11:57:46]requested_item shift.num is exist - process it [11:57:46]requested_item shift.opened is exist - process it [11:57:46]req_shift_opened [11:57:46]FM_GetShiftState [11:57:46]SAM_PROTO_GetShiftState [11:57:46]wFMCommunicate request_size=4 [11:57:46]MH_SAM_APDU [11:57:46]CAPDU: 80 13 01 00 [11:57:46]Write to MH i2c: E2 08 00 1D 05 80 13 01 00 00 00 00 00 9F [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 0E 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 0E 00 1D 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 87 [11:57:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [11:57:46]wFMCommunicate OK [11:57:46]SAM_PROTO_GetShiftState done [11:57:46]FM_GetShiftState done [11:57:46]req_shift_opened done [11:57:46]requested_item shift.open_date is exist - process it [11:57:46]req_shift_open_date [11:57:46]req_shift_open_date done [11:57:46]produce_requested_data done [11:57:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188681,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [11:57:46]process_action_free close_receipt [11:57:46]json_value_free [11:57:46]json_value_free done [11:57:46]process_json_proto returns [11:57:46]Send response to host [11:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188681,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [11:57:46]free response buf [11:57:46]execute_script done [11:57:46]execute_script returns [11:57:46]free content buf [11:57:46]Sock 10.Close socket [11:57:46]Sock 10.Thread stoped [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:52]accept exits with 7 [12:01:52]New connection [12:01:52]New thread 3067018596 created [12:01:52]Thread 3067161956 joined [12:01:52]Waiting for new connection... [12:01:52] Sock 7.Parse request [12:01:52]Sock 7.Check first char [12:01:52]Sock 7.First char is OK [12:01:52]request: POST /json_proto HTTP/1.0 [12:01:52]Method: POST [12:01:52]URL: /json_proto [12:01:52]Method is POST - this is cgi request [12:01:52]url: /json_proto [12:01:52]query_string will be loaded in cgi processing [12:01:52]execute_cgi json_proto POST (null) [12:01:52]execute_cgi path=json_proto method=POST [12:01:52]POST find Content-Length [12:01:52]Host: 172.17.42.131:8080 [12:01:52]Content-Length: 678 [12:01:52]Content-Type: application/json [12:01:52] [12:01:52]POST finish read [12:01:52]Found Content-Length = 678 [12:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.550, "sum" : 931.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 931.00, "total" : 931.00, "payments": [ { "type": 0, "sum" : 931.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:52]execute_script... [12:01:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.550, "sum" : 931.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 931.00, "total" : 931.00, "payments": [ { "type": 0, "sum" : 931.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:52]POST & json_proto [12:01:52]process_json_proto [12:01:52]json parsed OK: [12:01:52]protocol is kg_v1.0 [12:01:52]action value=close_receipt [12:01:52]process_action close_receipt [12:01:52]cmd_close_receipt [12:01:52]MH_GetDate [12:01:52]Write to MH i2c: F0 00 00 1E 05 12 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: F0 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: F0 09 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: F0 09 00 1E 05 00 B1 E5 18 67 A0 18 CA 66 18 [12:01:52]GetLastDocTimeStamp 1729684662 [12:01:52]current date 1729684913 [12:01:52]FM_GetShiftState [12:01:52]SAM_PROTO_GetShiftState [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 13 01 00 [12:01:52]Write to MH i2c: E2 08 00 1F 05 80 13 01 00 00 00 00 00 A1 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0E 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0E 00 1F 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 89 [12:01:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_GetShiftState done [12:01:52]FM_GetShiftState done [12:01:52]opened in 1729642525 [12:01:52]opened+sec_in_day 1729728925 [12:01:52]quantity*price = 93121 [12:01:52]sum+1 = 93122 [12:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 931.00 Внесено: 931.00 СДАЧА: 0.00 НСП 1% : 8.24 НДС 12% : 98.89 Наличными: 931.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 140 23.10.2024 12:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188682 ФПД: 37597499484496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120153&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188682&fm=37597499484496&tin=02508201610067®Number=0000000000100030&sum=93100 [12:01:53]StoreToDocumentArchive [12:01:53]shift 462 fd 188682 [12:01:53]save to /storage/0462/doc_00188682 [12:01:53]save last doc name /storage/0462/doc_00188682 to /storage/kkm_last_doc_name [12:01:53]save OK [12:01:53]Clear old archive folders... [12:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:53]tlvbuf is 01C02680 [12:01:53]SAM_PROTO_ClearQueue [12:01:53]wFMCommunicate request_size=4 [12:01:53]MH_SAM_APDU [12:01:53]CAPDU: 80 09 00 00 [12:01:53]Write to MH i2c: E2 08 00 2C 05 80 09 00 00 00 00 00 00 A3 [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 03 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [12:01:54]RAPDU: 90 00 [12:01:54]wFMCommunicate OK [12:01:54]SAM_PROTO_ClearQueue done [12:01:54]KKMCreateOFDPacket [12:01:54]OFDProtocolAddRootSTLVToBuf [12:01:54]FM_MakeSignedData [12:01:54]FM_MakeSignedData [12:01:54]SAM_PROTO_SignData [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 0D 01 02 [12:01:54]Write to MH i2c: E2 08 00 2D 05 80 0D 01 02 00 00 00 00 AB [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 03 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [12:01:54]RAPDU: 90 00 [12:01:54]wFMCommunicate OK [12:01:54]wFMCommunicate request_size=255 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 06 31 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 26 00 00 00 00 07 04 06 00 AC 6B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B1 E5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E1 02 00 35 04 06 00 22 [12:01:54]Write to MH i2c: E2 02 01 2E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 06 31 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 26 00 00 00 00 07 04 06 00 AC 6B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B1 E5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E1 02 00 35 04 06 00 22 00 00 CA [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 03 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [12:01:54]RAPDU: 90 00 [12:01:54]wFMCommunicate OK [12:01:54]wFMCommunicate request_size=10 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 0D 02 02 05 31 D9 99 E9 50 [12:01:54]Write to MH i2c: E2 0D 00 2F 05 80 0D 02 02 05 00 31 D9 99 E9 50 00 00 94 [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 03 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 03 00 2F 05 00 90 00 A8 [12:01:54]RAPDU: 90 00 [12:01:54]wFMCommunicate OK [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 0D 03 02 [12:01:54]Write to MH i2c: E2 08 00 30 05 80 0D 03 02 00 00 00 00 B0 [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 0B 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 0B 00 30 05 00 72 B7 3E A1 97 AA 6B 5E 90 00 C3 [12:01:54]RAPDU: 72 B7 3E A1 97 AA 6B 5E 90 00 [12:01:54]wFMCommunicate OK [12:01:54]SAM_PROTO_SignData done [12:01:54]FM_MakeSignedData done [12:01:54]CreateOFDProtocolMessage [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 11 00 00 [12:01:54]Write to MH i2c: E2 08 00 31 05 80 11 00 00 00 00 00 00 B0 [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 17 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 17 00 31 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [12:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:01:54]wFMCommunicate OK [12:01:54]CreateOFDProtocolMessage done [12:01:54]OFDSenderStorePacket 188682 [12:01:54]StoreOFDPacket docnum=188682 [12:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B4 61 07 01 E0 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 06 31 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 26 00 00 00 00 07 04 06 00 AC 6B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B1 E5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E1 02 00 35 04 06 00 22 31 D9 99 E9 50 72 B7 3E A1 97 AA 6B 5E [12:01:54]CheckFolder [12:01:54]dirname=/storage/ofd_packets [12:01:54]CheckFolder done [12:01:54]ProducePacketName [12:01:54]name=ofd_packets/00188682 [12:01:54]NVStorageSaveData ofd_packets/00188682 [12:01:54]File name is /storage/ofd_packets/00188682 [12:01:54]Write 301 bytes [12:01:54]NVStorageSaveData done [12:01:54]OFDSenderStorePacket done [12:01:54]KKMCreateOFDPacket done [12:01:54]NVStorageSaveData kkm_last_timestamp [12:01:54]File name is /storage/kkm_last_timestamp [12:01:54]Write 4 bytes [12:01:54]NVStorageSaveData done [12:01:54]ExternCall_PrintAddStr [12:01:54]wPrintStart [12:01:54]Write to MH i2c: 01 00 00 32 05 37 [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: 01 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: 01 07 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [12:01:54]RasterBufferAndPrint [12:01:54]line Счет N : (1)210743 [12:01:54]line ИНН: 02508201610067 [12:01:54]line Контрольно-Кассовый Чек [12:01:54]line ПРОДАЖА [12:01:54]line ТРК (МРК, ГНК) : 33 [12:01:54]line Товар: 2710124500 [12:01:54]line Аи-95-К-3 [12:01:54]line 12.550 * 74.20 [12:01:54]line = 931.21 [12:01:54]line НДС 12% НСП 1% [12:01:54]line > о реализуемом товаре [12:01:54]line ОКРУГЛЕНИЕ: -0.21 [12:01:54]line ИТОГО: 931.00 [12:01:54]line Внесено: 931.00 [12:01:54]line СДАЧА: 0.00 [12:01:54]line НСП 1% : 8.24 [12:01:54]line НДС 12% : 98.89 [12:01:54]line Наличными: 931.00 [12:01:54]line Безнал.: 0.00 [12:01:54]line Место: АЗС № 86 "Партнер Нефть" [12:01:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:01:54]line СНО: Общий режим [12:01:54]line Чек 140 23.10.2024 12:01 [12:01:54]line Смена: 462 ФФД: 1.0 [12:01:54]line ЗНМ: 0300000155 [12:01:54]line РНМ: 0000000000100030 [12:01:54]line Версия ККМ: 001 [12:01:54]line ФМ: 0000000000965340 [12:01:54]line ФД: 188682 [12:01:54]line ФПД: 37597499484496 [12:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120153&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188682&fm=37597499484496&tin=02508201610067®Number=0000000000100030&sum=93100 [12:01:54]written 0, free lines is 4095 [12:01:54]OFD Sender: Processing packet 188682 [packets to send 1062, broken 1061] [12:01:54]ProducePacketName [12:01:54]name=ofd_packets/00188682 [12:01:54]OFD Sender: To server: pG, [12:01:54]CommunicateWithHost lk.salyk.kg:30040 [12:01:54]ConnectInit lk.salyk.kg [12:01:54]Connected sock=10 [12:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B4 61 07 01 E0 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 06 31 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 26 00 00 00 00 07 04 06 00 AC 6B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B1 E5 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E1 02 00 35 04 06 00 22 31 D9 99 E9 50 72 B7 3E A1 97 AA 6B 5E [12:01:54]Write to MH i2c: 01 00 00 5D 05 62 [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: 01 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: 01 07 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 4D 0C C2 [12:01:54]RasterBufferAndPrint [12:01:54]line [12:01:54]line [12:01:54]line [12:01:54]line [12:01:54]line [12:01:54]written 0, free lines is 3153 [12:01:54]MH_Cut [12:01:54]Write to MH i2c: D1 01 00 64 05 01 3B [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: D1 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: D1 01 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: D1 01 00 64 05 00 3A [12:01:54]Write to MH i2c: 01 00 00 65 05 6A [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D DF 47 00 4B 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E1 02 00 F4 03 04 00 9C 8F 18 67 B6 04 01 00 00 50 DE 1D 92 30 3A AB 55 [12:01:55]CommunicateWithHost err = 0 [12:01:55]CheckOFDResponse [12:01:55]1017 (14) - 77093643461234 [12:01:55]1041 (16) - 0000000000965340 [12:01:55]1040 (4) - 188682 [12:01:55]1012 (4) - 23.10.2024 05:54 [12:01:55]1206 (1) - 0 [12:01:55]OFD Sender: Remove packet 188682 [12:01:55]ProducePacketName [12:01:55]name=ofd_packets/00188682 [12:01:55]NVStorageDeleteData [12:01:55]OFD Sender: No OFD packet to send [12:01:56]*** Cut start [12:01:56]*** Partial cut [12:01:56]*** CUTSNS_PIN = 1 [12:01:56]*** CUTSNS_PIN = 0 [12:01:56]*** Brake cut motor [12:01:56]Read from MH i2c: 01 [12:01:56]MH_I2C_Read... [12:01:56]*** Stop cut motor [12:01:56]*** Cut end [12:01:56]Read from MH i2c: 01 07 00 [12:01:56]MH_I2C_Read... [12:01:56]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [12:01:56]process_action close_receipt done [12:01:56]requested_data is exist [12:01:56]produce_requested_data [12:01:56]requested_item fm.sn is exist - process it [12:01:56]wFMCommunicate request_size=4 [12:01:56]MH_SAM_APDU [12:01:56]CAPDU: 80 11 00 00 [12:01:56]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [12:01:56]Write i2c OK [12:01:56]MH_I2C_Read... [12:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:57]Read from MH i2c: E2 [12:01:57]MH_I2C_Read... [12:01:57]Read from MH i2c: E2 17 00 [12:01:57]MH_I2C_Read... [12:01:57]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [12:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:01:57]wFMCommunicate OK [12:01:57]requested_item fd.num is exist - process it [12:01:57]SAM_PROTO_GetFieldsCounters [12:01:57]wFMCommunicate request_size=4 [12:01:57]MH_SAM_APDU [12:01:57]CAPDU: 80 13 00 00 [12:01:57]Write to MH i2c: E2 08 00 67 05 80 13 00 00 00 00 00 00 E8 [12:01:57]Write i2c OK [12:01:57]MH_I2C_Read... [12:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:57]Read from MH i2c: E2 [12:01:57]MH_I2C_Read... [12:01:57]Read from MH i2c: E2 62 00 [12:01:57]MH_I2C_Read... [12:01:57]Read from MH i2c: E2 62 00 67 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [12:01:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:57]wFMCommunicate OK [12:01:57]SAM_PROTO_GetFieldsCounters done [12:01:57]requested_item shift.num is exist - process it [12:01:57]requested_item shift.opened is exist - process it [12:01:57]req_shift_opened [12:01:57]FM_GetShiftState [12:01:57]SAM_PROTO_GetShiftState [12:01:57]wFMCommunicate request_size=4 [12:01:57]MH_SAM_APDU [12:01:57]CAPDU: 80 13 01 00 [12:01:57]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [12:01:57]Write i2c OK [12:01:57]MH_I2C_Read... [12:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:57]Read from MH i2c: E2 [12:01:57]MH_I2C_Read... [12:01:57]Read from MH i2c: E2 0E 00 [12:01:57]MH_I2C_Read... [12:01:57]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D2 [12:01:57]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:01:57]wFMCommunicate OK [12:01:57]SAM_PROTO_GetShiftState done [12:01:57]FM_GetShiftState done [12:01:57]req_shift_opened done [12:01:57]requested_item shift.open_date is exist - process it [12:01:57]req_shift_open_date [12:01:57]req_shift_open_date done [12:01:57]produce_requested_data done [12:01:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188682,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:01:57]process_action_free close_receipt [12:01:57]json_value_free [12:01:57]json_value_free done [12:01:57]process_json_proto returns [12:01:57]Send response to host [12:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188682,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:01:57]free response buf [12:01:57]execute_script done [12:01:57]execute_script returns [12:01:57]free content buf [12:01:57]Sock 7.Close socket [12:01:57]Sock 7.Thread stoped [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:16]accept exits with 9 [12:03:16]New connection [12:03:16]New thread 3067161956 created [12:03:16]Thread 3067018596 joined [12:03:16]Waiting for new connection... [12:03:16] Sock 9.Parse request [12:03:16]Sock 9.Check first char [12:03:16]Sock 9.First char is OK [12:03:16]request: POST /json_proto HTTP/1.0 [12:03:16]Method: POST [12:03:16]URL: /json_proto [12:03:16]Method is POST - this is cgi request [12:03:16]url: /json_proto [12:03:16]query_string will be loaded in cgi processing [12:03:16]execute_cgi json_proto POST (null) [12:03:16]execute_cgi path=json_proto method=POST [12:03:16]POST find Content-Length [12:03:16]Host: 172.17.42.131:8080 [12:03:16]Content-Length: 979 [12:03:16]Content-Type: application/json [12:03:16] [12:03:16]POST finish read [12:03:16]Found Content-Length = 979 [12:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 119.690, "sum" : 9000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 119.69 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:16]execute_script... [12:03:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 119.690, "sum" : 9000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 119.69 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:16]POST & json_proto [12:03:16]process_json_proto [12:03:16]json parsed OK: [12:03:16]protocol is kg_v1.0 [12:03:16]action value=close_receipt [12:03:16]process_action close_receipt [12:03:16]cmd_close_receipt [12:03:16]MH_GetDate [12:03:16]Write to MH i2c: F0 00 00 69 05 5D [12:03:16]Write i2c OK [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: F0 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: F0 09 00 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: F0 09 00 69 05 00 05 E6 18 67 A0 18 CA 66 B8 [12:03:16]GetLastDocTimeStamp 1729684913 [12:03:16]current date 1729684997 [12:03:16]FM_GetShiftState [12:03:16]SAM_PROTO_GetShiftState [12:03:16]wFMCommunicate request_size=4 [12:03:16]MH_SAM_APDU [12:03:16]CAPDU: 80 13 01 00 [12:03:16]Write to MH i2c: E2 08 00 6A 05 80 13 01 00 00 00 00 00 EC [12:03:16]Write i2c OK [12:03:16]MH_I2C_Read... [12:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:16]Read from MH i2c: E2 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: E2 0E 00 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: E2 0E 00 6A 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D4 [12:03:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:03:16]wFMCommunicate OK [12:03:16]SAM_PROTO_GetShiftState done [12:03:16]FM_GetShiftState done [12:03:16]opened in 1729642525 [12:03:16]opened+sec_in_day 1729728925 [12:03:16]quantity*price = 900068 [12:03:16]sum+1 = 900070 [12:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 141 23.10.2024 12:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 119.69 сом ФМ: 0000000000965340 ФД: 188683 ФПД: 27225879895652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120317&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188683&fm=27225879895652&tin=02508201610067®Number=0000000000100030&sum=900000 [12:03:17]StoreToDocumentArchive [12:03:17]shift 462 fd 188683 [12:03:17]save to /storage/0462/doc_00188683 [12:03:17]save last doc name /storage/0462/doc_00188683 to /storage/kkm_last_doc_name [12:03:17]save OK [12:03:17]Clear old archive folders... [12:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:03:17]tlvbuf is 01C040E0 [12:03:17]SAM_PROTO_ClearQueue [12:03:17]wFMCommunicate request_size=4 [12:03:17]MH_SAM_APDU [12:03:17]CAPDU: 80 09 00 00 [12:03:17]Write to MH i2c: E2 08 00 77 05 80 09 00 00 00 00 00 00 EE [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:17]Read from MH i2c: E2 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 03 00 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [12:03:17]RAPDU: 90 00 [12:03:17]wFMCommunicate OK [12:03:17]SAM_PROTO_ClearQueue done [12:03:17]KKMCreateOFDPacket [12:03:17]OFDProtocolAddRootSTLVToBuf [12:03:17]FM_MakeSignedData [12:03:17]FM_MakeSignedData [12:03:17]SAM_PROTO_SignData [12:03:17]wFMCommunicate request_size=4 [12:03:17]MH_SAM_APDU [12:03:17]CAPDU: 80 0D 01 02 [12:03:17]Write to MH i2c: E2 08 00 78 05 80 0D 01 02 00 00 00 00 F6 [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:17]Read from MH i2c: E2 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 03 00 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [12:03:17]RAPDU: 90 00 [12:03:17]wFMCommunicate OK [12:03:17]wFMCommunicate request_size=255 [12:03:17]MH_SAM_APDU [12:03:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 05 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E1 02 00 35 04 06 00 18 C3 04 E6 [12:03:17]Write to MH i2c: E2 02 01 79 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 05 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E1 02 00 35 04 06 00 18 C3 04 E6 00 00 1A [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 79 05 00 90 00 F2 [12:03:18]RAPDU: 90 00 [12:03:18]wFMCommunicate OK [12:03:18]wFMCommunicate request_size=7 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 0D 02 02 02 5E 64 [12:03:18]Write to MH i2c: E2 0A 00 7A 05 80 0D 02 02 02 00 5E 64 00 00 BF [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [12:03:18]RAPDU: 90 00 [12:03:18]wFMCommunicate OK [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 0D 03 02 [12:03:18]Write to MH i2c: E2 08 00 7B 05 80 0D 03 02 00 00 00 00 FB [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 0B 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 0B 00 7B 05 00 12 C5 25 9E D5 D7 26 2D 90 00 95 [12:03:18]RAPDU: 12 C5 25 9E D5 D7 26 2D 90 00 [12:03:18]wFMCommunicate OK [12:03:18]SAM_PROTO_SignData done [12:03:18]FM_MakeSignedData done [12:03:18]CreateOFDProtocolMessage [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 11 00 00 [12:03:18]Write to MH i2c: E2 08 00 7C 05 80 11 00 00 00 00 00 00 FB [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 17 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 17 00 7C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [12:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:03:18]wFMCommunicate OK [12:03:18]CreateOFDProtocolMessage done [12:03:18]OFDSenderStorePacket 188683 [12:03:18]StoreOFDPacket docnum=188683 [12:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 00 F1 04 01 85 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 05 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E1 02 00 35 04 06 00 18 C3 04 E6 5E 64 12 C5 25 9E D5 D7 26 2D [12:03:18]CheckFolder [12:03:18]dirname=/storage/ofd_packets [12:03:18]CheckFolder done [12:03:18]ProducePacketName [12:03:18]name=ofd_packets/00188683 [12:03:18]NVStorageSaveData ofd_packets/00188683 [12:03:18]File name is /storage/ofd_packets/00188683 [12:03:18]Write 298 bytes [12:03:18]NVStorageSaveData done [12:03:18]OFDSenderStorePacket done [12:03:18]KKMCreateOFDPacket done [12:03:18]NVStorageSaveData kkm_last_timestamp [12:03:18]File name is /storage/kkm_last_timestamp [12:03:18]Write 4 bytes [12:03:18]NVStorageSaveData done [12:03:18]ExternCall_PrintAddStr [12:03:18]wPrintStart [12:03:18]Write to MH i2c: 01 00 00 7D 05 82 [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: 01 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: 01 07 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 FF 0F 97 [12:03:18]RasterBufferAndPrint [12:03:18]line Счет N : (1)210742 [12:03:18]line ИНН: 02508201610067 [12:03:18]line Контрольно-Кассовый Чек [12:03:18]line ПРОДАЖА [12:03:18]line ТРК (МРК, ГНК) : 51 [12:03:18]line Товар: 2710194210 [12:03:18]line ДТ-К-5 [12:03:18]line 119.690 * 75.20 [12:03:18]line = 9000.69 [12:03:18]line НДС 12% НСП 1% [12:03:18]line > о реализуемом товаре [12:03:18]line ОКРУГЛЕНИЕ: -0.69 [12:03:18]line ИТОГО: 9000.00 [12:03:18]line Внесено: 9000.00 [12:03:18]line СДАЧА: 0.00 [12:03:18]line НСП 1% : 79.65 [12:03:18]line НДС 12% : 955.82 [12:03:18]line Наличными: 9000.00 [12:03:18]line Безнал.: 0.00 [12:03:18]line Место: АЗС № 86 "Партнер Нефть" [12:03:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:03:18]line СНО: Общий режим [12:03:18]line Чек 141 23.10.2024 12:03 [12:03:18]line Смена: 462 ФФД: 1.0 [12:03:18]line ЗНМ: 0300000155 [12:03:18]line РНМ: 0000000000100030 [12:03:18]line Версия ККМ: 001 [12:03:18]line [12:03:18]line Дисконтная программа [12:03:18]line ДТ [12:03:18]line номер 86 [12:03:18]line сэкономлено 119.69 сом [12:03:18]line ФМ: 0000000000965340 [12:03:18]line ФД: 188683 [12:03:18]line ФПД: 27225879895652 [12:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120317&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188683&fm=27225879895652&tin=02508201610067®Number=0000000000100030&sum=900000 [12:03:18]OFD Sender: Processing packet 188683 [packets to send 1062, broken 1061] [12:03:18]ProducePacketName [12:03:18]name=ofd_packets/00188683 [12:03:18]OFD Sender: To server: pG, [12:03:18]CommunicateWithHost lk.salyk.kg:30040 [12:03:18]ConnectInit lk.salyk.kg [12:03:18]written 0, free lines is 4095 [12:03:18]Connected sock=10 [12:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 00 F1 04 01 85 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 05 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E1 02 00 35 04 06 00 18 C3 04 E6 5E 64 12 C5 25 9E D5 D7 26 2D [12:03:19]Write to MH i2c: 01 00 00 AD 05 B2 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 DD 0B A1 [12:03:19]RasterBufferAndPrint [12:03:19]line [12:03:19]line [12:03:19]line [12:03:19]line [12:03:19]line [12:03:19]written 0, free lines is 3040 [12:03:19]MH_Cut [12:03:19]Write to MH i2c: D1 01 00 B4 05 01 8B [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: D1 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: D1 01 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: D1 01 00 B4 05 00 8A [12:03:19]Write to MH i2c: 01 00 00 B5 05 BA [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A EB 47 00 05 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E1 02 00 F4 03 04 00 F0 8F 18 67 B6 04 01 00 00 DB FB CD 58 BB 49 68 BA [12:03:19]CommunicateWithHost err = 0 [12:03:19]CheckOFDResponse [12:03:19]1017 (14) - 77093643461234 [12:03:19]1041 (16) - 0000000000965340 [12:03:19]1040 (4) - 188683 [12:03:19]1012 (4) - 23.10.2024 05:56 [12:03:19]1206 (1) - 0 [12:03:19]OFD Sender: Remove packet 188683 [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00188683 [12:03:19]NVStorageDeleteData [12:03:19]OFD Sender: No OFD packet to send [12:03:20]*** Cut start [12:03:20]*** Partial cut [12:03:20]*** CUTSNS_PIN = 1 [12:03:20]*** CUTSNS_PIN = 0 [12:03:20]*** Brake cut motor [12:03:21]Read from MH i2c: 01 [12:03:21]MH_I2C_Read... [12:03:21]*** Stop cut motor [12:03:21]*** Cut end [12:03:21]Read from MH i2c: 01 07 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [12:03:21]process_action close_receipt done [12:03:21]requested_data is exist [12:03:21]produce_requested_data [12:03:21]requested_item fm.sn is exist - process it [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 11 00 00 [12:03:21]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:21]Read from MH i2c: E2 17 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [12:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:03:21]wFMCommunicate OK [12:03:21]requested_item fd.num is exist - process it [12:03:21]SAM_PROTO_GetFieldsCounters [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 13 00 00 [12:03:21]Write to MH i2c: E2 08 00 B7 05 80 13 00 00 00 00 00 00 38 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 62 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 62 00 B7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [12:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_GetFieldsCounters done [12:03:21]requested_item shift.num is exist - process it [12:03:21]requested_item shift.opened is exist - process it [12:03:21]req_shift_opened [12:03:21]FM_GetShiftState [12:03:21]SAM_PROTO_GetShiftState [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 13 01 00 [12:03:21]Write to MH i2c: E2 08 00 B8 05 80 13 01 00 00 00 00 00 3A [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0E 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0E 00 B8 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 22 [12:03:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_GetShiftState done [12:03:21]FM_GetShiftState done [12:03:21]req_shift_opened done [12:03:21]requested_item shift.open_date is exist - process it [12:03:21]req_shift_open_date [12:03:21]req_shift_open_date done [12:03:21]produce_requested_data done [12:03:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188683,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:03:21]process_action_free close_receipt [12:03:21]json_value_free [12:03:21]json_value_free done [12:03:21]process_json_proto returns [12:03:21]Send response to host [12:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188683,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:03:21]free response buf [12:03:21]execute_script done [12:03:21]execute_script returns [12:03:21]free content buf [12:03:21]Sock 9.Close socket [12:03:21]Sock 9.Thread stoped [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]accept exits with 7 [12:05:25]New connection [12:05:25]New thread 3067018596 created [12:05:25]Thread 3067161956 joined [12:05:25]Waiting for new connection... [12:05:25] Sock 7.Parse request [12:05:25]Sock 7.Check first char [12:05:25]Sock 7.First char is OK [12:05:25]request: POST /json_proto HTTP/1.0 [12:05:25]Method: POST [12:05:25]URL: /json_proto [12:05:25]Method is POST - this is cgi request [12:05:25]url: /json_proto [12:05:25]query_string will be loaded in cgi processing [12:05:25]execute_cgi json_proto POST (null) [12:05:25]execute_cgi path=json_proto method=POST [12:05:25]POST find Content-Length [12:05:25]Host: 172.17.42.131:8080 [12:05:25]Content-Length: 977 [12:05:25]Content-Type: application/json [12:05:25] [12:05:25]POST finish read [12:05:25]Found Content-Length = 977 [12:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:25]execute_script... [12:05:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:25]POST & json_proto [12:05:25]process_json_proto [12:05:25]json parsed OK: [12:05:25]protocol is kg_v1.0 [12:05:25]action value=close_receipt [12:05:25]process_action close_receipt [12:05:25]cmd_close_receipt [12:05:25]MH_GetDate [12:05:25]Write to MH i2c: F0 00 00 B9 05 AD [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: F0 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: F0 09 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: F0 09 00 B9 05 00 85 E6 18 67 A0 18 CA 66 88 [12:05:25]GetLastDocTimeStamp 1729684997 [12:05:25]current date 1729685125 [12:05:25]FM_GetShiftState [12:05:25]SAM_PROTO_GetShiftState [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 13 01 00 [12:05:25]Write to MH i2c: E2 08 00 BA 05 80 13 01 00 00 00 00 00 3C [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0E 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0E 00 BA 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 24 [12:05:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:05:25]wFMCommunicate OK [12:05:25]SAM_PROTO_GetShiftState done [12:05:25]FM_GetShiftState done [12:05:25]opened in 1729642525 [12:05:25]opened+sec_in_day 1729728925 [12:05:25]quantity*price = 400064 [12:05:25]sum+1 = 400065 [12:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 142 23.10.2024 12:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 53.20 сом ФМ: 0000000000965340 ФД: 188684 ФПД: 8234419691243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120525&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188684&fm=8234419691243&tin=02508201610067®Number=0000000000100030&sum=400000 [12:05:26]StoreToDocumentArchive [12:05:26]shift 462 fd 188684 [12:05:26]save to /storage/0462/doc_00188684 [12:05:26]save last doc name /storage/0462/doc_00188684 to /storage/kkm_last_doc_name [12:05:26]save OK [12:05:26]Clear old archive folders... [12:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:26]tlvbuf is 01C43DC0 [12:05:26]SAM_PROTO_ClearQueue [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 09 00 00 [12:05:26]Write to MH i2c: E2 08 00 C7 05 80 09 00 00 00 00 00 00 3E [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [12:05:26]RAPDU: 90 00 [12:05:26]wFMCommunicate OK [12:05:26]SAM_PROTO_ClearQueue done [12:05:26]KKMCreateOFDPacket [12:05:26]OFDProtocolAddRootSTLVToBuf [12:05:26]FM_MakeSignedData [12:05:26]FM_MakeSignedData [12:05:26]SAM_PROTO_SignData [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 0D 01 02 [12:05:26]Write to MH i2c: E2 08 00 C8 05 80 0D 01 02 00 00 00 00 46 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 C8 05 00 90 00 41 [12:05:26]RAPDU: 90 00 [12:05:26]wFMCommunicate OK [12:05:26]wFMCommunicate request_size=255 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 85 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E1 02 00 35 04 06 00 07 7D 39 A9 [12:05:26]Write to MH i2c: E2 02 01 C9 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 85 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E1 02 00 35 04 06 00 07 7D 39 A9 00 00 DC [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [12:05:26]RAPDU: 90 00 [12:05:26]wFMCommunicate OK [12:05:26]wFMCommunicate request_size=7 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 0D 02 02 02 1E EB [12:05:26]Write to MH i2c: E2 0A 00 CA 05 80 0D 02 02 02 00 1E EB 00 00 56 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [12:05:26]RAPDU: 90 00 [12:05:26]wFMCommunicate OK [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 0D 03 02 [12:05:26]Write to MH i2c: E2 08 00 CB 05 80 0D 03 02 00 00 00 00 4B [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 0B 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 0B 00 CB 05 00 ED 3C 15 37 5F 64 77 FA 90 00 F5 [12:05:26]RAPDU: ED 3C 15 37 5F 64 77 FA 90 00 [12:05:26]wFMCommunicate OK [12:05:26]SAM_PROTO_SignData done [12:05:26]FM_MakeSignedData done [12:05:26]CreateOFDProtocolMessage [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 11 00 00 [12:05:26]Write to MH i2c: E2 08 00 CC 05 80 11 00 00 00 00 00 00 4B [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 17 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 17 00 CC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [12:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:05:26]wFMCommunicate OK [12:05:26]CreateOFDProtocolMessage done [12:05:26]OFDSenderStorePacket 188684 [12:05:26]StoreOFDPacket docnum=188684 [12:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 08 3F 04 01 D2 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 85 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E1 02 00 35 04 06 00 07 7D 39 A9 1E EB ED 3C 15 37 5F 64 77 FA [12:05:26]CheckFolder [12:05:26]dirname=/storage/ofd_packets [12:05:26]CheckFolder done [12:05:26]ProducePacketName [12:05:26]name=ofd_packets/00188684 [12:05:26]NVStorageSaveData ofd_packets/00188684 [12:05:26]File name is /storage/ofd_packets/00188684 [12:05:26]Write 298 bytes [12:05:26]NVStorageSaveData done [12:05:26]OFDSenderStorePacket done [12:05:26]KKMCreateOFDPacket done [12:05:26]NVStorageSaveData kkm_last_timestamp [12:05:26]File name is /storage/kkm_last_timestamp [12:05:26]Write 4 bytes [12:05:26]NVStorageSaveData done [12:05:26]ExternCall_PrintAddStr [12:05:26]wPrintStart [12:05:26]Write to MH i2c: 01 00 00 CD 05 D2 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 CD 05 00 00 00 00 00 FF 0F E7 [12:05:26]RasterBufferAndPrint [12:05:26]line Счет N : (1)210744 [12:05:26]line ИНН: 02508201610067 [12:05:26]line Контрольно-Кассовый Чек [12:05:26]line ПРОДАЖА [12:05:26]line ТРК (МРК, ГНК) : 51 [12:05:26]line Товар: 2710194210 [12:05:26]line ДТ-К-5 [12:05:26]line 53.200 * 75.20 [12:05:26]line = 4000.64 [12:05:26]line НДС 12% НСП 1% [12:05:26]line > о реализуемом товаре [12:05:26]line ОКРУГЛЕНИЕ: -0.64 [12:05:26]line ИТОГО: 4000.00 [12:05:26]line Внесено: 4000.00 [12:05:26]line СДАЧА: 0.00 [12:05:26]line НСП 1% : 35.40 [12:05:26]line НДС 12% : 424.85 [12:05:26]line Наличными: 4000.00 [12:05:26]line Безнал.: 0.00 [12:05:26]line Место: АЗС № 86 "Партнер Нефть" [12:05:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:05:26]line СНО: Общий режим [12:05:26]line Чек 142 23.10.2024 12:05 [12:05:26]line Смена: 462 ФФД: 1.0 [12:05:26]line ЗНМ: 0300000155 [12:05:26]line РНМ: 0000000000100030 [12:05:26]line Версия ККМ: 001 [12:05:26]line [12:05:26]line Дисконтная программа [12:05:26]line ДТ [12:05:26]line номер 86 [12:05:26]line сэкономлено 53.20 сом [12:05:26]line ФМ: 0000000000965340 [12:05:26]line ФД: 188684 [12:05:26]line ФПД: 8234419691243 [12:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120525&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188684&fm=8234419691243&tin=02508201610067®Number=0000000000100030&sum=400000 [12:05:27]OFD Sender: Processing packet 188684 [packets to send 1062, broken 1061] [12:05:27]ProducePacketName [12:05:27]name=ofd_packets/00188684 [12:05:27]OFD Sender: To server: pG, [12:05:27]CommunicateWithHost lk.salyk.kg:30040 [12:05:27]ConnectInit lk.salyk.kg [12:05:27]written 0, free lines is 4095 [12:05:27]Connected sock=10 [12:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 08 3F 04 01 D2 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 85 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E1 02 00 35 04 06 00 07 7D 39 A9 1E EB ED 3C 15 37 5F 64 77 FA [12:05:27]Write to MH i2c: 01 00 00 FD 05 02 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 07 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 DD 0B F1 [12:05:27]RasterBufferAndPrint [12:05:27]line [12:05:27]line [12:05:27]line [12:05:27]line [12:05:27]line [12:05:27]written 0, free lines is 3039 [12:05:27]MH_Cut [12:05:27]Write to MH i2c: D1 01 00 04 06 01 DC [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: D1 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: D1 01 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: D1 01 00 04 06 00 DB [12:05:27]Write to MH i2c: 01 00 00 05 06 0B [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 4F 47 00 2F B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E1 02 00 F4 03 04 00 70 90 18 67 B6 04 01 00 00 0C 9A 8B 60 B6 81 23 59 [12:05:27]CommunicateWithHost err = 0 [12:05:27]CheckOFDResponse [12:05:27]1017 (14) - 77093643461234 [12:05:27]1041 (16) - 0000000000965340 [12:05:27]1040 (4) - 188684 [12:05:27]1012 (4) - 23.10.2024 05:58 [12:05:27]1206 (1) - 0 [12:05:27]OFD Sender: Remove packet 188684 [12:05:27]ProducePacketName [12:05:27]name=ofd_packets/00188684 [12:05:27]NVStorageDeleteData [12:05:28]OFD Sender: No OFD packet to send [12:05:29]*** Cut start [12:05:29]*** Partial cut [12:05:29]*** CUTSNS_PIN = 1 [12:05:29]*** CUTSNS_PIN = 0 [12:05:29]*** Brake cut motor [12:05:29]Read from MH i2c: 01 [12:05:29]MH_I2C_Read... [12:05:29]*** Stop cut motor [12:05:29]*** Cut end [12:05:29]Read from MH i2c: 01 07 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [12:05:29]process_action close_receipt done [12:05:29]requested_data is exist [12:05:29]produce_requested_data [12:05:29]requested_item fm.sn is exist - process it [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 11 00 00 [12:05:29]Write to MH i2c: E2 08 00 06 06 80 11 00 00 00 00 00 00 86 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 17 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 17 00 06 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [12:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:05:29]wFMCommunicate OK [12:05:29]requested_item fd.num is exist - process it [12:05:29]SAM_PROTO_GetFieldsCounters [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 13 00 00 [12:05:29]Write to MH i2c: E2 08 00 07 06 80 13 00 00 00 00 00 00 89 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 62 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 62 00 07 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [12:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:29]wFMCommunicate OK [12:05:29]SAM_PROTO_GetFieldsCounters done [12:05:29]requested_item shift.num is exist - process it [12:05:29]requested_item shift.opened is exist - process it [12:05:29]req_shift_opened [12:05:29]FM_GetShiftState [12:05:29]SAM_PROTO_GetShiftState [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 13 01 00 [12:05:29]Write to MH i2c: E2 08 00 08 06 80 13 01 00 00 00 00 00 8B [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 0E 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 0E 00 08 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 73 [12:05:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:05:29]wFMCommunicate OK [12:05:29]SAM_PROTO_GetShiftState done [12:05:29]FM_GetShiftState done [12:05:29]req_shift_opened done [12:05:29]requested_item shift.open_date is exist - process it [12:05:29]req_shift_open_date [12:05:29]req_shift_open_date done [12:05:29]produce_requested_data done [12:05:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188684,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:05:29]process_action_free close_receipt [12:05:29]json_value_free [12:05:29]json_value_free done [12:05:29]process_json_proto returns [12:05:29]Send response to host [12:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188684,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:05:29]free response buf [12:05:29]execute_script done [12:05:29]execute_script returns [12:05:29]free content buf [12:05:29]Sock 7.Close socket [12:05:29]Sock 7.Thread stoped [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]accept exits with 9 [12:06:48]New connection [12:06:48]New thread 3067161956 created [12:06:48]Thread 3067018596 joined [12:06:48]Waiting for new connection... [12:06:48] Sock 9.Parse request [12:06:48]Sock 9.Check first char [12:06:48]Sock 9.First char is OK [12:06:48]request: POST /json_proto HTTP/1.0 [12:06:48]Method: POST [12:06:48]URL: /json_proto [12:06:48]Method is POST - this is cgi request [12:06:48]url: /json_proto [12:06:48]query_string will be loaded in cgi processing [12:06:48]execute_cgi json_proto POST (null) [12:06:48]execute_cgi path=json_proto method=POST [12:06:48]POST find Content-Length [12:06:48]Host: 172.17.42.131:8080 [12:06:48]Content-Length: 688 [12:06:48]Content-Type: application/json [12:06:48] [12:06:48]POST finish read [12:06:48]Found Content-Length = 688 [12:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:48]execute_script... [12:06:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:48]POST & json_proto [12:06:48]process_json_proto [12:06:48]json parsed OK: [12:06:48]protocol is kg_v1.0 [12:06:48]action value=close_receipt [12:06:48]process_action close_receipt [12:06:48]cmd_close_receipt [12:06:48]MH_GetDate [12:06:48]Write to MH i2c: F0 00 00 09 06 FE [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: F0 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: F0 09 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: F0 09 00 09 06 00 D8 E6 18 67 A0 18 CA 66 2C [12:06:48]GetLastDocTimeStamp 1729685125 [12:06:48]current date 1729685208 [12:06:48]FM_GetShiftState [12:06:48]SAM_PROTO_GetShiftState [12:06:48]wFMCommunicate request_size=4 [12:06:48]MH_SAM_APDU [12:06:48]CAPDU: 80 13 01 00 [12:06:48]Write to MH i2c: E2 08 00 0A 06 80 13 01 00 00 00 00 00 8D [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:48]Read from MH i2c: E2 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: E2 0E 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: E2 0E 00 0A 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 75 [12:06:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:06:48]wFMCommunicate OK [12:06:48]SAM_PROTO_GetShiftState done [12:06:48]FM_GetShiftState done [12:06:48]opened in 1729642525 [12:06:48]opened+sec_in_day 1729728925 [12:06:48]quantity*price = 150076 [12:06:48]sum+1 = 150078 [12:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 143 23.10.2024 12:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188685 ФПД: 97335838112022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188685&fm=97335838112022&tin=02508201610067®Number=0000000000100030&sum=150000 [12:06:49]StoreToDocumentArchive [12:06:49]shift 462 fd 188685 [12:06:49]save to /storage/0462/doc_00188685 [12:06:49]save last doc name /storage/0462/doc_00188685 to /storage/kkm_last_doc_name [12:06:49]save OK [12:06:49]Clear old archive folders... [12:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:06:49]tlvbuf is 01BDE970 [12:06:49]SAM_PROTO_ClearQueue [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 09 00 00 [12:06:49]Write to MH i2c: E2 08 00 17 06 80 09 00 00 00 00 00 00 8F [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [12:06:49]RAPDU: 90 00 [12:06:49]wFMCommunicate OK [12:06:49]SAM_PROTO_ClearQueue done [12:06:49]KKMCreateOFDPacket [12:06:49]OFDProtocolAddRootSTLVToBuf [12:06:49]FM_MakeSignedData [12:06:49]FM_MakeSignedData [12:06:49]SAM_PROTO_SignData [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 0D 01 02 [12:06:49]Write to MH i2c: E2 08 00 18 06 80 0D 01 02 00 00 00 00 97 [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 18 06 00 90 00 92 [12:06:49]RAPDU: 90 00 [12:06:49]wFMCommunicate OK [12:06:49]wFMCommunicate request_size=255 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D8 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E1 02 [12:06:49]Write to MH i2c: E2 02 01 19 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D8 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E1 02 00 00 D1 [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 19 06 00 90 00 93 [12:06:49]RAPDU: 90 00 [12:06:49]wFMCommunicate OK [12:06:49]wFMCommunicate request_size=16 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 58 86 C4 0D F9 16 [12:06:49]Write to MH i2c: E2 13 00 1A 06 80 0D 02 02 0B 00 00 35 04 06 00 58 86 C4 0D F9 16 00 00 AD [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 1A 06 00 90 00 94 [12:06:49]RAPDU: 90 00 [12:06:49]wFMCommunicate OK [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 0D 03 02 [12:06:49]Write to MH i2c: E2 08 00 1B 06 80 0D 03 02 00 00 00 00 9C [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 0B 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 0B 00 1B 06 00 C2 80 2A C2 B6 82 8F 6D 90 00 FF [12:06:49]RAPDU: C2 80 2A C2 B6 82 8F 6D 90 00 [12:06:49]wFMCommunicate OK [12:06:49]SAM_PROTO_SignData done [12:06:49]FM_MakeSignedData done [12:06:49]CreateOFDProtocolMessage [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 11 00 00 [12:06:49]Write to MH i2c: E2 08 00 1C 06 80 11 00 00 00 00 00 00 9C [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 17 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 17 00 1C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [12:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:06:49]wFMCommunicate OK [12:06:49]CreateOFDProtocolMessage done [12:06:49]OFDSenderStorePacket 188685 [12:06:49]StoreOFDPacket docnum=188685 [12:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9A 5A 0D 01 F2 2D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D8 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E1 02 00 35 04 06 00 58 86 C4 0D F9 16 C2 80 2A C2 B6 82 8F 6D [12:06:49]CheckFolder [12:06:49]dirname=/storage/ofd_packets [12:06:49]CheckFolder done [12:06:49]ProducePacketName [12:06:49]name=ofd_packets/00188685 [12:06:49]NVStorageSaveData ofd_packets/00188685 [12:06:49]File name is /storage/ofd_packets/00188685 [12:06:49]Write 307 bytes [12:06:49]NVStorageSaveData done [12:06:49]OFDSenderStorePacket done [12:06:49]KKMCreateOFDPacket done [12:06:49]NVStorageSaveData kkm_last_timestamp [12:06:49]File name is /storage/kkm_last_timestamp [12:06:49]Write 4 bytes [12:06:49]NVStorageSaveData done [12:06:49]ExternCall_PrintAddStr [12:06:49]wPrintStart [12:06:49]Write to MH i2c: 01 00 00 1D 06 23 [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: 01 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: 01 07 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 FF 0F 38 [12:06:49]RasterBufferAndPrint [12:06:49]line Счет N : (1)210745 [12:06:49]line ИНН: 02508201610067 [12:06:49]line Контрольно-Кассовый Чек [12:06:49]line ПРОДАЖА [12:06:49]line ТРК (МРК, ГНК) : 41 [12:06:49]line Товар: 2710194210 [12:06:49]line D-ENERGY ДТ-К-5 [12:06:49]line 19.440 * 77.20 [12:06:49]line = 1500.77 [12:06:49]line НДС 12% НСП 1% [12:06:49]line > о реализуемом товаре [12:06:49]line ОКРУГЛЕНИЕ: -0.77 [12:06:49]line ИТОГО: 1500.00 [12:06:49]line Внесено: 1500.00 [12:06:49]line СДАЧА: 0.00 [12:06:49]line НСП 1% : 13.28 [12:06:49]line НДС 12% : 159.37 [12:06:49]line Наличными: 1500.00 [12:06:49]line Безнал.: 0.00 [12:06:49]line Место: АЗС № 86 "Партнер Нефть" [12:06:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:06:49]line СНО: Общий режим [12:06:49]line Чек 143 23.10.2024 12:06 [12:06:49]line Смена: 462 ФФД: 1.0 [12:06:49]line ЗНМ: 0300000155 [12:06:49]line РНМ: 0000000000100030 [12:06:49]line Версия ККМ: 001 [12:06:49]line ФМ: 0000000000965340 [12:06:49]line ФД: 188685 [12:06:49]line ФПД: 97335838112022 [12:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188685&fm=97335838112022&tin=02508201610067®Number=0000000000100030&sum=150000 [12:06:49]written 0, free lines is 4095 [12:06:49]OFD Sender: Processing packet 188685 [packets to send 1062, broken 1061] [12:06:49]ProducePacketName [12:06:49]name=ofd_packets/00188685 [12:06:49]OFD Sender: To server: pG, [12:06:49]CommunicateWithHost lk.salyk.kg:30040 [12:06:49]ConnectInit lk.salyk.kg [12:06:50]Connected sock=10 [12:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9A 5A 0D 01 F2 2D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D8 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E1 02 00 35 04 06 00 58 86 C4 0D F9 16 C2 80 2A C2 B6 82 8F 6D [12:06:50]Write to MH i2c: 01 00 00 48 06 4E [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: 01 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: 01 07 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: 01 07 00 48 06 00 00 00 00 00 51 0C B2 [12:06:50]RasterBufferAndPrint [12:06:50]line [12:06:50]line [12:06:50]line [12:06:50]line [12:06:50]line [12:06:50]written 0, free lines is 3158 [12:06:50]MH_Cut [12:06:50]Write to MH i2c: D1 01 00 4F 06 01 27 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: D1 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: D1 01 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: D1 01 00 4F 06 00 26 [12:06:50]Write to MH i2c: 01 00 00 50 06 56 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC DD 47 00 B2 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E1 02 00 F4 03 04 00 C3 90 18 67 B6 04 01 00 00 CC 00 3D 24 73 6F BC 20 [12:06:50]CommunicateWithHost err = 0 [12:06:50]CheckOFDResponse [12:06:50]1017 (14) - 77093643461234 [12:06:50]1041 (16) - 0000000000965340 [12:06:50]1040 (4) - 188685 [12:06:50]1012 (4) - 23.10.2024 05:59 [12:06:50]1206 (1) - 0 [12:06:50]OFD Sender: Remove packet 188685 [12:06:50]ProducePacketName [12:06:50]name=ofd_packets/00188685 [12:06:50]NVStorageDeleteData [12:06:50]OFD Sender: No OFD packet to send [12:06:51]*** Cut start [12:06:51]*** Partial cut [12:06:51]*** CUTSNS_PIN = 1 [12:06:51]*** CUTSNS_PIN = 0 [12:06:51]*** Brake cut motor [12:06:52]Read from MH i2c: 01 [12:06:52]MH_I2C_Read... [12:06:52]*** Stop cut motor [12:06:52]*** Cut end [12:06:52]Read from MH i2c: 01 07 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [12:06:52]process_action close_receipt done [12:06:52]requested_data is exist [12:06:52]produce_requested_data [12:06:52]requested_item fm.sn is exist - process it [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 11 00 00 [12:06:52]Write to MH i2c: E2 08 00 51 06 80 11 00 00 00 00 00 00 D1 [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 17 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 17 00 51 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [12:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:06:52]wFMCommunicate OK [12:06:52]requested_item fd.num is exist - process it [12:06:52]SAM_PROTO_GetFieldsCounters [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 13 00 00 [12:06:52]Write to MH i2c: E2 08 00 52 06 80 13 00 00 00 00 00 00 D4 [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 62 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 62 00 52 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [12: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:52]wFMCommunicate OK [12:06:52]SAM_PROTO_GetFieldsCounters done [12:06:52]requested_item shift.num is exist - process it [12:06:52]requested_item shift.opened is exist - process it [12:06:52]req_shift_opened [12:06:52]FM_GetShiftState [12:06:52]SAM_PROTO_GetShiftState [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 13 01 00 [12:06:52]Write to MH i2c: E2 08 00 53 06 80 13 01 00 00 00 00 00 D6 [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 0E 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 0E 00 53 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BE [12:06:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:06:52]wFMCommunicate OK [12:06:52]SAM_PROTO_GetShiftState done [12:06:52]FM_GetShiftState done [12:06:52]req_shift_opened done [12:06:52]requested_item shift.open_date is exist - process it [12:06:52]req_shift_open_date [12:06:52]req_shift_open_date done [12:06:52]produce_requested_data done [12:06:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188685,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:06:52]process_action_free close_receipt [12:06:52]json_value_free [12:06:52]json_value_free done [12:06:52]process_json_proto returns [12:06:52]Send response to host [12:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188685,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:06:52]free response buf [12:06:52]execute_script done [12:06:52]execute_script returns [12:06:52]free content buf [12:06:52]Sock 9.Close socket [12:06:52]Sock 9.Thread stoped [12:06:55]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:14]accept exits with 7 [12:07:14]New connection [12:07:14]New thread 3067018596 created [12:07:14]Thread 3067161956 joined [12:07:14]Waiting for new connection... [12:07:14] Sock 7.Parse request [12:07:14]Sock 7.Check first char [12:07:14]Sock 7.First char is OK [12:07:14]request: POST /json_proto HTTP/1.0 [12:07:14]Method: POST [12:07:14]URL: /json_proto [12:07:14]Method is POST - this is cgi request [12:07:14]url: /json_proto [12:07:14]query_string will be loaded in cgi processing [12:07:14]execute_cgi json_proto POST (null) [12:07:14]execute_cgi path=json_proto method=POST [12:07:14]POST find Content-Length [12:07:14]Host: 172.17.42.131:8080 [12:07:14]Content-Length: 682 [12:07:14]Content-Type: application/json [12:07:14] [12:07:14]POST finish read [12:07:14]Found Content-Length = 682 [12:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:14]execute_script... [12:07:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:14]POST & json_proto [12:07:14]process_json_proto [12:07:14]json parsed OK: [12:07:14]protocol is kg_v1.0 [12:07:14]action value=close_receipt [12:07:14]process_action close_receipt [12:07:14]cmd_close_receipt [12:07:14]MH_GetDate [12:07:14]Write to MH i2c: F0 00 00 54 06 49 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: F0 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: F0 09 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: F0 09 00 54 06 00 F2 E6 18 67 A0 18 CA 66 91 [12:07:14]GetLastDocTimeStamp 1729685208 [12:07:14]current date 1729685234 [12:07:14]FM_GetShiftState [12:07:14]SAM_PROTO_GetShiftState [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 13 01 00 [12:07:14]Write to MH i2c: E2 08 00 55 06 80 13 01 00 00 00 00 00 D8 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 0E 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 0E 00 55 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C0 [12:07:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:07:14]wFMCommunicate OK [12:07:14]SAM_PROTO_GetShiftState done [12:07:14]FM_GetShiftState done [12:07:14]opened in 1729642525 [12:07:14]opened+sec_in_day 1729728925 [12:07:14]quantity*price = 100015 [12:07:14]sum+1 = 100017 [12:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 144 23.10.2024 12:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188686 ФПД: 206912805731925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120714&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188686&fm=206912805731925&tin=02508201610067®Number=0000000000100030&sum=100000 [12:07:15]StoreToDocumentArchive [12:07:15]shift 462 fd 188686 [12:07:15]save to /storage/0462/doc_00188686 [12:07:15]save last doc name /storage/0462/doc_00188686 to /storage/kkm_last_doc_name [12:07:15]save OK [12:07:15]Clear old archive folders... [12:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:15]tlvbuf is 01C432C0 [12:07:15]SAM_PROTO_ClearQueue [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 09 00 00 [12:07:15]Write to MH i2c: E2 08 00 62 06 80 09 00 00 00 00 00 00 DA [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 62 06 00 90 00 DC [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_ClearQueue done [12:07:15]KKMCreateOFDPacket [12:07:15]OFDProtocolAddRootSTLVToBuf [12:07:15]FM_MakeSignedData [12:07:15]FM_MakeSignedData [12:07:15]SAM_PROTO_SignData [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 01 02 [12:07:15]Write to MH i2c: E2 08 00 63 06 80 0D 01 02 00 00 00 00 E2 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 63 06 00 90 00 DD [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=255 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 F2 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E1 02 00 35 04 06 00 BC [12:07:15]Write to MH i2c: E2 02 01 64 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 F2 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E1 02 00 35 04 06 00 BC 00 00 B2 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 64 06 00 90 00 DE [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=10 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 02 02 05 2F A4 48 FE 55 [12:07:15]Write to MH i2c: E2 0D 00 65 06 80 0D 02 02 05 00 2F A4 48 FE 55 00 00 5D [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 65 06 00 90 00 DF [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 03 02 [12:07:15]Write to MH i2c: E2 08 00 66 06 80 0D 03 02 00 00 00 00 E7 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0B 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0B 00 66 06 00 F3 93 AC 03 F2 21 CD DC 90 00 D9 [12:07:15]RAPDU: F3 93 AC 03 F2 21 CD DC 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_SignData done [12:07:15]FM_MakeSignedData done [12:07:15]CreateOFDProtocolMessage [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 11 00 00 [12:07:15]Write to MH i2c: E2 08 00 67 06 80 11 00 00 00 00 00 00 E7 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 17 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 17 00 67 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [12:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:07:15]wFMCommunicate OK [12:07:15]CreateOFDProtocolMessage done [12:07:15]OFDSenderStorePacket 188686 [12:07:15]StoreOFDPacket docnum=188686 [12:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A 18 07 01 FE BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 F2 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E1 02 00 35 04 06 00 BC 2F A4 48 FE 55 F3 93 AC 03 F2 21 CD DC [12:07:15]CheckFolder [12:07:15]dirname=/storage/ofd_packets [12:07:15]CheckFolder done [12:07:15]ProducePacketName [12:07:15]name=ofd_packets/00188686 [12:07:15]NVStorageSaveData ofd_packets/00188686 [12:07:15]File name is /storage/ofd_packets/00188686 [12:07:15]Write 301 bytes [12:07:15]NVStorageSaveData done [12:07:15]OFDSenderStorePacket done [12:07:15]KKMCreateOFDPacket done [12:07:15]NVStorageSaveData kkm_last_timestamp [12:07:15]File name is /storage/kkm_last_timestamp [12:07:15]Write 4 bytes [12:07:15]NVStorageSaveData done [12:07:15]ExternCall_PrintAddStr [12:07:15]wPrintStart [12:07:15]Write to MH i2c: 01 00 00 68 06 6E [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 FF 0F 83 [12:07:16]RasterBufferAndPrint [12:07:16]line Счет N : (1)210746 [12:07:16]line ИНН: 02508201610067 [12:07:16]line Контрольно-Кассовый Чек [12:07:16]line ПРОДАЖА [12:07:16]line ТРК (МРК, ГНК) : 32 [12:07:16]line Товар: 2710124130 [12:07:16]line Аи-92-К-3 [12:07:16]line 14.950 * 66.90 [12:07:16]line = 1000.16 [12:07:16]line НДС 12% НСП 1% [12:07:16]line > о реализуемом товаре [12:07:16]line ОКРУГЛЕНИЕ: -0.16 [12:07:16]line ИТОГО: 1000.00 [12:07:16]line Внесено: 1000.00 [12:07:16]line СДАЧА: 0.00 [12:07:16]line НСП 1% : 8.85 [12:07:16]line НДС 12% : 106.21 [12:07:16]line Наличными: 1000.00 [12:07:16]line Безнал.: 0.00 [12:07:16]line Место: АЗС № 86 "Партнер Нефть" [12:07:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:07:16]line СНО: Общий режим [12:07:16]line Чек 144 23.10.2024 12:07 [12:07:16]line Смена: 462 ФФД: 1.0 [12:07:16]line ЗНМ: 0300000155 [12:07:16]line РНМ: 0000000000100030 [12:07:16]line Версия ККМ: 001 [12:07:16]line ФМ: 0000000000965340 [12:07:16]line ФД: 188686 [12:07:16]line ФПД: 206912805731925 [12:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120714&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188686&fm=206912805731925&tin=02508201610067®Number=0000000000100030&sum=100000 [12:07:16]written 0, free lines is 4095 [12:07:16]OFD Sender: Processing packet 188686 [packets to send 1062, broken 1061] [12:07:16]ProducePacketName [12:07:16]name=ofd_packets/00188686 [12:07:16]OFD Sender: To server: pG, [12:07:16]CommunicateWithHost lk.salyk.kg:30040 [12:07:16]ConnectInit lk.salyk.kg [12:07:16]Connected sock=9 [12:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A 18 07 01 FE BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 F2 E6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E1 02 00 35 04 06 00 BC 2F A4 48 FE 55 F3 93 AC 03 F2 21 CD DC [12:07:16]Write to MH i2c: 01 00 00 93 06 99 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 53 0C FF [12:07:16]RasterBufferAndPrint [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]written 0, free lines is 3159 [12:07:16]MH_Cut [12:07:16]Write to MH i2c: D1 01 00 9A 06 01 72 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: D1 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: D1 01 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: D1 01 00 9A 06 00 71 [12:07:16]Write to MH i2c: 01 00 00 9B 06 A1 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 50 3D 47 00 EA 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E1 02 00 F4 03 04 00 DD 90 18 67 B6 04 01 00 00 A2 11 A5 8F 62 01 E3 2F [12:07:16]CommunicateWithHost err = 0 [12:07:16]CheckOFDResponse [12:07:16]1017 (14) - 77093643461234 [12:07:16]1041 (16) - 0000000000965340 [12:07:16]1040 (4) - 188686 [12:07:16]1012 (4) - 23.10.2024 05:59 [12:07:16]1206 (1) - 0 [12:07:16]OFD Sender: Remove packet 188686 [12:07:16]ProducePacketName [12:07:16]name=ofd_packets/00188686 [12:07:16]NVStorageDeleteData [12:07:17]OFD Sender: No OFD packet to send [12:07:17]*** Cut start [12:07:17]*** Partial cut [12:07:17]*** CUTSNS_PIN = 1 [12:07:17]*** CUTSNS_PIN = 0 [12:07:18]*** Brake cut motor [12:07:18]Read from MH i2c: 01 [12:07:18]MH_I2C_Read... [12:07:18]*** Stop cut motor [12:07:18]*** Cut end [12:07:18]Read from MH i2c: 01 07 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 FF 0F B6 [12:07:18]process_action close_receipt done [12:07:18]requested_data is exist [12:07:18]produce_requested_data [12:07:18]requested_item fm.sn is exist - process it [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 11 00 00 [12:07:18]Write to MH i2c: E2 08 00 9C 06 80 11 00 00 00 00 00 00 1C [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:18]Read from MH i2c: E2 17 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 17 00 9C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [12:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:07:18]wFMCommunicate OK [12:07:18]requested_item fd.num is exist - process it [12:07:18]SAM_PROTO_GetFieldsCounters [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 13 00 00 [12:07:18]Write to MH i2c: E2 08 00 9D 06 80 13 00 00 00 00 00 00 1F [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 62 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 62 00 9D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [12:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:18]wFMCommunicate OK [12:07:18]SAM_PROTO_GetFieldsCounters done [12:07:18]requested_item shift.num is exist - process it [12:07:18]requested_item shift.opened is exist - process it [12:07:18]req_shift_opened [12:07:18]FM_GetShiftState [12:07:18]SAM_PROTO_GetShiftState [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 13 01 00 [12:07:18]Write to MH i2c: E2 08 00 9E 06 80 13 01 00 00 00 00 00 21 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 0E 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 0E 00 9E 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 09 [12:07:18]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:07:18]wFMCommunicate OK [12:07:18]SAM_PROTO_GetShiftState done [12:07:18]FM_GetShiftState done [12:07:18]req_shift_opened done [12:07:18]requested_item shift.open_date is exist - process it [12:07:18]req_shift_open_date [12:07:18]req_shift_open_date done [12:07:18]produce_requested_data done [12:07:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188686,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:07:18]process_action_free close_receipt [12:07:18]json_value_free [12:07:18]json_value_free done [12:07:18]process_json_proto returns [12:07:18]Send response to host [12:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188686,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:07:18]free response buf [12:07:18]execute_script done [12:07:18]execute_script returns [12:07:18]free content buf [12:07:18]Sock 7.Close socket [12:07:18]Sock 7.Thread stoped [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:46]accept exits with 10 [12:08:46]New connection [12:08:46]New thread 3067161956 created [12:08:46]Thread 3067018596 joined [12:08:46]Waiting for new connection... [12:08:46] Sock 10.Parse request [12:08:46]Sock 10.Check first char [12:08:46]Sock 10.First char is OK [12:08:46]request: POST /json_proto HTTP/1.0 [12:08:46]Method: POST [12:08:46]URL: /json_proto [12:08:46]Method is POST - this is cgi request [12:08:46]url: /json_proto [12:08:46]query_string will be loaded in cgi processing [12:08:46]execute_cgi json_proto POST (null) [12:08:46]execute_cgi path=json_proto method=POST [12:08:46]POST find Content-Length [12:08:46]Host: 172.17.42.131:8080 [12:08:46]Content-Length: 677 [12:08:46]Content-Type: application/json [12:08:46] [12:08:46]POST finish read [12:08:46]Found Content-Length = 677 [12:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:46]execute_script... [12:08:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:46]POST & json_proto [12:08:46]process_json_proto [12:08:46]json parsed OK: [12:08:46]protocol is kg_v1.0 [12:08:46]action value=close_receipt [12:08:46]process_action close_receipt [12:08:46]cmd_close_receipt [12:08:46]MH_GetDate [12:08:46]Write to MH i2c: F0 00 00 9F 06 94 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: F0 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: F0 09 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: F0 09 00 9F 06 00 4E E7 18 67 A0 18 CA 66 39 [12:08:46]GetLastDocTimeStamp 1729685234 [12:08:46]current date 1729685326 [12:08:46]FM_GetShiftState [12:08:46]SAM_PROTO_GetShiftState [12:08:46]wFMCommunicate request_size=4 [12:08:46]MH_SAM_APDU [12:08:46]CAPDU: 80 13 01 00 [12:08:46]Write to MH i2c: E2 08 00 A0 06 80 13 01 00 00 00 00 00 23 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:46]Read from MH i2c: E2 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 0E 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 0E 00 A0 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0B [12:08:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:08:46]wFMCommunicate OK [12:08:46]SAM_PROTO_GetShiftState done [12:08:46]FM_GetShiftState done [12:08:46]opened in 1729642525 [12:08:46]opened+sec_in_day 1729728925 [12:08:46]quantity*price = 50041 [12:08:46]sum+1 = 50042 [12:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 145 23.10.2024 12:08 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188687 ФПД: 184355784303090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120846&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188687&fm=184355784303090&tin=02508201610067®Number=0000000000100030&sum=50000 [12:08:47]StoreToDocumentArchive [12:08:47]shift 462 fd 188687 [12:08:47]save to /storage/0462/doc_00188687 [12:08:47]save last doc name /storage/0462/doc_00188687 to /storage/kkm_last_doc_name [12:08:47]save OK [12:08:47]Clear old archive folders... [12:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:47]tlvbuf is 01C442F0 [12:08:47]SAM_PROTO_ClearQueue [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 09 00 00 [12:08:47]Write to MH i2c: E2 08 00 AD 06 80 09 00 00 00 00 00 00 25 [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 03 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 03 00 AD 06 00 90 00 27 [12:08:47]RAPDU: 90 00 [12:08:47]wFMCommunicate OK [12:08:47]SAM_PROTO_ClearQueue done [12:08:47]KKMCreateOFDPacket [12:08:47]OFDProtocolAddRootSTLVToBuf [12:08:47]FM_MakeSignedData [12:08:47]FM_MakeSignedData [12:08:47]SAM_PROTO_SignData [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 0D 01 02 [12:08:47]Write to MH i2c: E2 08 00 AE 06 80 0D 01 02 00 00 00 00 2D [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 03 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 03 00 AE 06 00 90 00 28 [12:08:47]RAPDU: 90 00 [12:08:47]wFMCommunicate OK [12:08:47]wFMCommunicate request_size=255 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 4E E7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E1 02 00 35 04 06 00 A7 [12:08:47]Write to MH i2c: E2 02 01 AF 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 4E E7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E1 02 00 35 04 06 00 A7 00 00 4D [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]OFD Sender: No OFD packet to send [12:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 03 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 03 00 AF 06 00 90 00 29 [12:08:47]RAPDU: 90 00 [12:08:47]wFMCommunicate OK [12:08:47]wFMCommunicate request_size=10 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 0D 02 02 05 AB AD 09 21 F2 [12:08:47]Write to MH i2c: E2 0D 00 B0 06 80 0D 02 02 05 00 AB AD 09 21 F2 00 00 AE [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 03 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [12:08:47]RAPDU: 90 00 [12:08:47]wFMCommunicate OK [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 0D 03 02 [12:08:47]Write to MH i2c: E2 08 00 B1 06 80 0D 03 02 00 00 00 00 32 [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0B 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0B 00 B1 06 00 D7 72 E0 32 9A 5C B1 C5 90 00 FA [12:08:47]RAPDU: D7 72 E0 32 9A 5C B1 C5 90 00 [12:08:47]wFMCommunicate OK [12:08:47]SAM_PROTO_SignData done [12:08:47]FM_MakeSignedData done [12:08:47]CreateOFDProtocolMessage [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 11 00 00 [12:08:47]Write to MH i2c: E2 08 00 B2 06 80 11 00 00 00 00 00 00 32 [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 17 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 17 00 B2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [12:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:08:47]wFMCommunicate OK [12:08:47]CreateOFDProtocolMessage done [12:08:47]OFDSenderStorePacket 188687 [12:08:47]StoreOFDPacket docnum=188687 [12:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 92 82 07 01 6C 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 4E E7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E1 02 00 35 04 06 00 A7 AB AD 09 21 F2 D7 72 E0 32 9A 5C B1 C5 [12:08:47]CheckFolder [12:08:47]dirname=/storage/ofd_packets [12:08:47]CheckFolder done [12:08:47]ProducePacketName [12:08:47]name=ofd_packets/00188687 [12:08:47]NVStorageSaveData ofd_packets/00188687 [12:08:47]File name is /storage/ofd_packets/00188687 [12:08:47]Write 301 bytes [12:08:47]NVStorageSaveData done [12:08:47]OFDSenderStorePacket done [12:08:47]KKMCreateOFDPacket done [12:08:47]NVStorageSaveData kkm_last_timestamp [12:08:47]File name is /storage/kkm_last_timestamp [12:08:47]Write 4 bytes [12:08:47]NVStorageSaveData done [12:08:47]ExternCall_PrintAddStr [12:08:47]wPrintStart [12:08:47]Write to MH i2c: 01 00 00 B3 06 B9 [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: 01 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: 01 07 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 FF 0F CE [12:08:47]RasterBufferAndPrint [12:08:47]line Счет N : (1)210747 [12:08:47]line ИНН: 02508201610067 [12:08:47]line Контрольно-Кассовый Чек [12:08:47]line ПРОДАЖА [12:08:47]line ТРК (МРК, ГНК) : 22 [12:08:47]line Товар: 2710124130 [12:08:47]line Аи-92-К-3 [12:08:47]line 7.480 * 66.90 [12:08:47]line = 500.41 [12:08:47]line НДС 12% НСП 1% [12:08:47]line > о реализуемом товаре [12:08:47]line ОКРУГЛЕНИЕ: -0.41 [12:08:47]line ИТОГО: 500.00 [12:08:47]line Внесено: 500.00 [12:08:47]line СДАЧА: 0.00 [12:08:47]line НСП 1% : 4.43 [12:08:47]line НДС 12% : 53.14 [12:08:47]line Наличными: 500.00 [12:08:47]line Безнал.: 0.00 [12:08:47]line Место: АЗС № 86 "Партнер Нефть" [12:08:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:08:47]line СНО: Общий режим [12:08:47]line Чек 145 23.10.2024 12:08 [12:08:47]line Смена: 462 ФФД: 1.0 [12:08:47]line ЗНМ: 0300000155 [12:08:47]line РНМ: 0000000000100030 [12:08:47]line Версия ККМ: 001 [12:08:47]line ФМ: 0000000000965340 [12:08:47]line ФД: 188687 [12:08:47]line ФПД: 184355784303090 [12:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120846&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188687&fm=184355784303090&tin=02508201610067®Number=0000000000100030&sum=50000 [12:08:47]written 0, free lines is 4095 [12:08:48]OFD Sender: Processing packet 188687 [packets to send 1062, broken 1061] [12:08:48]ProducePacketName [12:08:48]name=ofd_packets/00188687 [12:08:48]OFD Sender: To server: pG, [12:08:48]CommunicateWithHost lk.salyk.kg:30040 [12:08:48]ConnectInit lk.salyk.kg [12:08:48]Connected sock=9 [12:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 92 82 07 01 6C 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 4E E7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E1 02 00 35 04 06 00 A7 AB AD 09 21 F2 D7 72 E0 32 9A 5C B1 C5 [12:08:48]Write to MH i2c: 01 00 00 DE 06 E4 [12:08:48]Write i2c OK [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: 01 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: 01 07 00 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: 01 07 00 DE 06 00 00 00 00 00 4E 0C 45 [12:08:48]RasterBufferAndPrint [12:08:48]line [12:08:48]line [12:08:48]line [12:08:48]line [12:08:48]line [12:08:48]written 0, free lines is 3154 [12:08:48]MH_Cut [12:08:48]Write to MH i2c: D1 01 00 E5 06 01 BD [12:08:48]Write i2c OK [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: D1 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: D1 01 00 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: D1 01 00 E5 06 00 BC [12:08:48]Write to MH i2c: 01 00 00 E6 06 EC [12:08:48]Write i2c OK [12:08:48]MH_I2C_Read... [12:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E1 73 47 00 B7 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E1 02 00 F4 03 04 00 39 91 18 67 B6 04 01 00 00 16 40 F4 7B 5C 1E 82 5B [12:08:48]CommunicateWithHost err = 0 [12:08:48]CheckOFDResponse [12:08:48]1017 (14) - 77093643461234 [12:08:48]1041 (16) - 0000000000965340 [12:08:48]1040 (4) - 188687 [12:08:48]1012 (4) - 23.10.2024 06:01 [12:08:48]1206 (1) - 0 [12:08:48]OFD Sender: Remove packet 188687 [12:08:48]ProducePacketName [12:08:48]name=ofd_packets/00188687 [12:08:48]NVStorageDeleteData [12:08:49]OFD Sender: No OFD packet to send [12:08:49]*** Cut start [12:08:49]*** Partial cut [12:08:49]*** CUTSNS_PIN = 1 [12:08:49]*** CUTSNS_PIN = 0 [12:08:49]*** Brake cut motor [12:08:50]Read from MH i2c: 01 [12:08:50]MH_I2C_Read... [12:08:50]*** Stop cut motor [12:08:50]*** Cut end [12:08:50]Read from MH i2c: 01 07 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: 01 07 00 E6 06 00 00 00 00 00 FF 0F 01 [12:08:50]process_action close_receipt done [12:08:50]requested_data is exist [12:08:50]produce_requested_data [12:08:50]requested_item fm.sn is exist - process it [12:08:50]wFMCommunicate request_size=4 [12:08:50]MH_SAM_APDU [12:08:50]CAPDU: 80 11 00 00 [12:08:50]Write to MH i2c: E2 08 00 E7 06 80 11 00 00 00 00 00 00 67 [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:50]Read from MH i2c: E2 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 17 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 17 00 E7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [12:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:08:50]wFMCommunicate OK [12:08:50]requested_item fd.num is exist - process it [12:08:50]SAM_PROTO_GetFieldsCounters [12:08:50]wFMCommunicate request_size=4 [12:08:50]MH_SAM_APDU [12:08:50]CAPDU: 80 13 00 00 [12:08:50]Write to MH i2c: E2 08 00 E8 06 80 13 00 00 00 00 00 00 6A [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:50]Read from MH i2c: E2 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 62 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 62 00 E8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:50]wFMCommunicate OK [12:08:50]SAM_PROTO_GetFieldsCounters done [12:08:50]requested_item shift.num is exist - process it [12:08:50]requested_item shift.opened is exist - process it [12:08:50]req_shift_opened [12:08:50]FM_GetShiftState [12:08:50]SAM_PROTO_GetShiftState [12:08:50]wFMCommunicate request_size=4 [12:08:50]MH_SAM_APDU [12:08:50]CAPDU: 80 13 01 00 [12:08:50]Write to MH i2c: E2 08 00 E9 06 80 13 01 00 00 00 00 00 6C [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:50]Read from MH i2c: E2 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 0E 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 0E 00 E9 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 54 [12:08:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:08:50]wFMCommunicate OK [12:08:50]SAM_PROTO_GetShiftState done [12:08:50]FM_GetShiftState done [12:08:50]req_shift_opened done [12:08:50]requested_item shift.open_date is exist - process it [12:08:50]req_shift_open_date [12:08:50]req_shift_open_date done [12:08:50]produce_requested_data done [12:08:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188687,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:08:50]process_action_free close_receipt [12:08:50]json_value_free [12:08:50]json_value_free done [12:08:50]process_json_proto returns [12:08:50]Send response to host [12:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188687,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:08:50]free response buf [12:08:50]execute_script done [12:08:50]execute_script returns [12:08:50]free content buf [12:08:50]Sock 10.Close socket [12:08:50]Sock 10.Thread stoped [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:50]accept exits with 7 [12:11:50]New connection [12:11:50]New thread 3067018596 created [12:11:50]Thread 3067161956 joined [12:11:50]Waiting for new connection... [12:11:50] Sock 7.Parse request [12:11:50]Sock 7.Check first char [12:11:50]Sock 7.First char is OK [12:11:50]request: POST /json_proto HTTP/1.0 [12:11:50]Method: POST [12:11:50]URL: /json_proto [12:11:50]Method is POST - this is cgi request [12:11:50]url: /json_proto [12:11:50]query_string will be loaded in cgi processing [12:11:50]execute_cgi json_proto POST (null) [12:11:50]execute_cgi path=json_proto method=POST [12:11:50]POST find Content-Length [12:11:50]Host: 172.17.42.131:8080 [12:11:50]Content-Length: 789 [12:11:50]Content-Type: application/json [12:11:50] [12:11:50]POST finish read [12:11:50]Found Content-Length = 789 [12:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53324", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:50]execute_script... [12:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53324", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:50]POST & json_proto [12:11:50]process_json_proto [12:11:50]json parsed OK: [12:11:50]protocol is kg_v1.0 [12:11:50]action value=close_receipt [12:11:50]process_action close_receipt [12:11:50]cmd_close_receipt [12:11:50]MH_GetDate [12:11:50]Write to MH i2c: F0 00 00 EA 06 DF [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 09 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 09 00 EA 06 00 06 E8 18 67 A0 18 CA 66 3D [12:11:50]GetLastDocTimeStamp 1729685326 [12:11:50]current date 1729685510 [12:11:50]FM_GetShiftState [12:11:50]SAM_PROTO_GetShiftState [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 01 00 [12:11:50]Write to MH i2c: E2 08 00 EB 06 80 13 01 00 00 00 00 00 6E [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 EB 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 56 [12:11:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetShiftState done [12:11:50]FM_GetShiftState done [12:11:50]opened in 1729642525 [12:11:50]opened+sec_in_day 1729728925 [12:11:50]quantity*price = 0 [12:11:50]sum+1 = 1 [12:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 146 23.10.2024 12:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 53324 ФМ: 0000000000965340 ФД: 188688 ФПД: 41233684841898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188688&fm=41233684841898&tin=02508201610067®Number=0000000000100030&sum=0 [12:11:51]StoreToDocumentArchive [12:11:51]shift 462 fd 188688 [12:11:51]save to /storage/0462/doc_00188688 [12:11:51]save last doc name /storage/0462/doc_00188688 to /storage/kkm_last_doc_name [12:11:51]save OK [12:11:51]Clear old archive folders... [12:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:51]tlvbuf is 01BDDB30 [12:11:51]SAM_PROTO_ClearQueue [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 09 00 00 [12:11:51]Write to MH i2c: E2 08 00 F8 06 80 09 00 00 00 00 00 00 70 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 F8 06 00 90 00 72 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]SAM_PROTO_ClearQueue done [12:11:51]KKMCreateOFDPacket [12:11:51]OFDProtocolAddRootSTLVToBuf [12:11:51]FM_MakeSignedData [12:11:51]FM_MakeSignedData [12:11:51]SAM_PROTO_SignData [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 01 02 [12:11:51]Write to MH i2c: E2 08 00 F9 06 80 0D 01 02 00 00 00 00 78 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=255 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 06 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E1 02 00 35 04 06 00 25 80 77 23 [12:11:51]Write to MH i2c: E2 02 01 FA 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 06 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E1 02 00 35 04 06 00 25 80 77 23 00 00 CE [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=7 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 02 02 02 45 AA [12:11:51]Write to MH i2c: E2 0A 00 FB 06 80 0D 02 02 02 00 45 AA 00 00 6E [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 03 02 [12:11:51]Write to MH i2c: E2 08 00 FC 06 80 0D 03 02 00 00 00 00 7D [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 0B 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 0B 00 FC 06 00 83 F1 DF F2 14 E3 E9 68 90 00 0B [12:11:51]RAPDU: 83 F1 DF F2 14 E3 E9 68 90 00 [12:11:51]wFMCommunicate OK [12:11:51]SAM_PROTO_SignData done [12:11:51]FM_MakeSignedData done [12:11:51]CreateOFDProtocolMessage [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 11 00 00 [12:11:51]Write to MH i2c: E2 08 00 FD 06 80 11 00 00 00 00 00 00 7D [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 17 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 17 00 FD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [12:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:11:51]wFMCommunicate OK [12:11:51]CreateOFDProtocolMessage done [12:11:51]OFDSenderStorePacket 188688 [12:11:51]StoreOFDPacket docnum=188688 [12:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DF 3C 04 01 31 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 06 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E1 02 00 35 04 06 00 25 80 77 23 45 AA 83 F1 DF F2 14 E3 E9 68 [12:11:51]CheckFolder [12:11:51]dirname=/storage/ofd_packets [12:11:51]CheckFolder done [12:11:51]ProducePacketName [12:11:51]name=ofd_packets/00188688 [12:11:51]NVStorageSaveData ofd_packets/00188688 [12:11:51]File name is /storage/ofd_packets/00188688 [12:11:51]Write 298 bytes [12:11:51]NVStorageSaveData done [12:11:51]OFDSenderStorePacket done [12:11:51]KKMCreateOFDPacket done [12:11:51]NVStorageSaveData kkm_last_timestamp [12:11:51]File name is /storage/kkm_last_timestamp [12:11:51]Write 4 bytes [12:11:51]NVStorageSaveData done [12:11:51]ExternCall_PrintAddStr [12:11:51]wPrintStart [12:11:51]Write to MH i2c: 01 00 00 FE 06 04 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 FF 0F 19 [12:11:51]RasterBufferAndPrint [12:11:51]line Счет N : (1)210748 [12:11:51]line ИНН: 02508201610067 [12:11:51]line Контрольно-Кассовый Чек [12:11:51]line ПРОДАЖА [12:11:51]line ТРК (МРК, ГНК) : 51 [12:11:51]line Товар: 2710194210 [12:11:51]line ДТ-К-5 [12:11:51]line 50.000 * 0.00 [12:11:51]line = 0.00 [12:11:51]line НДС 12% НСП 1% [12:11:51]line > о реализуемом товаре [12:11:51]line ИТОГО: 0.00 [12:11:51]line НСП 1% : 0.00 [12:11:51]line НДС 12% : 0.00 [12:11:51]line Наличными: 0.00 [12:11:51]line Безнал.: 0.00 [12:11:51]line Место: АЗС № 86 "Партнер Нефть" [12:11:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:11:51]line СНО: Общий режим [12:11:51]line Чек 146 23.10.2024 12:11 [12:11:51]line Смена: 462 ФФД: 1.0 [12:11:51]line ЗНМ: 0300000155 [12:11:51]line РНМ: 0000000000100030 [12:11:51]line Версия ККМ: 001 [12:11:51]line Талоны: Топливная Карта [12:11:51]line 53324 [12:11:51]line ФМ: 0000000000965340 [12:11:51]line ФД: 188688 [12:11:51]line ФПД: 41233684841898 [12:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188688&fm=41233684841898&tin=02508201610067®Number=0000000000100030&sum=0 [12:11:51]written 0, free lines is 4095 [12:11:51]OFD Sender: Processing packet 188688 [packets to send 1062, broken 1061] [12:11:51]ProducePacketName [12:11:51]name=ofd_packets/00188688 [12:11:51]OFD Sender: To server: pG, [12:11:51]CommunicateWithHost lk.salyk.kg:30040 [12:11:51]ConnectInit lk.salyk.kg [12:11:52]Connected sock=10 [12:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DF 3C 04 01 31 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 06 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E1 02 00 35 04 06 00 25 80 77 23 45 AA 83 F1 DF F2 14 E3 E9 68 [12:11:52]Write to MH i2c: 01 00 00 28 07 2F [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 5E 0C A0 [12:11:52]RasterBufferAndPrint [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]written 0, free lines is 3172 [12:11:52]MH_Cut [12:11:52]Write to MH i2c: D1 01 00 2F 07 01 08 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 01 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 01 00 2F 07 00 07 [12:11:52]Write to MH i2c: 01 00 00 30 07 37 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8B 8F 47 00 71 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E1 02 00 F4 03 04 00 F1 91 18 67 B6 04 01 00 00 DA 1A EE 78 7E A1 9C BB [12:11:52]CommunicateWithHost err = 0 [12:11:52]CheckOFDResponse [12:11:52]1017 (14) - 77093643461234 [12:11:52]1041 (16) - 0000000000965340 [12:11:52]1040 (4) - 188688 [12:11:52]1012 (4) - 23.10.2024 06:04 [12:11:52]1206 (1) - 0 [12:11:52]OFD Sender: Remove packet 188688 [12:11:52]ProducePacketName [12:11:52]name=ofd_packets/00188688 [12:11:52]NVStorageDeleteData [12:11:53]OFD Sender: No OFD packet to send [12:11:53]*** Cut start [12:11:53]*** Partial cut [12:11:53]*** CUTSNS_PIN = 1 [12:11:53]*** CUTSNS_PIN = 0 [12:11:53]*** Brake cut motor [12:11:54]Read from MH i2c: 01 [12:11:54]MH_I2C_Read... [12:11:54]*** Stop cut motor [12:11:54]*** Cut end [12:11:54]Read from MH i2c: 01 07 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: 01 07 00 30 07 00 00 00 00 00 FF 0F 4C [12:11:54]process_action close_receipt done [12:11:54]requested_data is exist [12:11:54]produce_requested_data [12:11:54]requested_item fm.sn is exist - process it [12:11:54]wFMCommunicate request_size=4 [12:11:54]MH_SAM_APDU [12:11:54]CAPDU: 80 11 00 00 [12:11:54]Write to MH i2c: E2 08 00 31 07 80 11 00 00 00 00 00 00 B2 [12:11:54]Write i2c OK [12:11:54]MH_I2C_Read... [12:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:54]Read from MH i2c: E2 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 17 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 17 00 31 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [12:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:11:54]wFMCommunicate OK [12:11:54]requested_item fd.num is exist - process it [12:11:54]SAM_PROTO_GetFieldsCounters [12:11:54]wFMCommunicate request_size=4 [12:11:54]MH_SAM_APDU [12:11:54]CAPDU: 80 13 00 00 [12:11:54]Write to MH i2c: E2 08 00 32 07 80 13 00 00 00 00 00 00 B5 [12:11:54]Write i2c OK [12:11:54]MH_I2C_Read... [12:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:54]Read from MH i2c: E2 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 62 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 62 00 32 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [12:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:54]wFMCommunicate OK [12:11:54]SAM_PROTO_GetFieldsCounters done [12:11:54]requested_item shift.num is exist - process it [12:11:54]requested_item shift.opened is exist - process it [12:11:54]req_shift_opened [12:11:54]FM_GetShiftState [12:11:54]SAM_PROTO_GetShiftState [12:11:54]wFMCommunicate request_size=4 [12:11:54]MH_SAM_APDU [12:11:54]CAPDU: 80 13 01 00 [12:11:54]Write to MH i2c: E2 08 00 33 07 80 13 01 00 00 00 00 00 B7 [12:11:54]Write i2c OK [12:11:54]MH_I2C_Read... [12:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:54]Read from MH i2c: E2 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 0E 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 0E 00 33 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9F [12:11:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:11:54]wFMCommunicate OK [12:11:54]SAM_PROTO_GetShiftState done [12:11:54]FM_GetShiftState done [12:11:54]req_shift_opened done [12:11:54]requested_item shift.open_date is exist - process it [12:11:54]req_shift_open_date [12:11:54]req_shift_open_date done [12:11:54]produce_requested_data done [12:11:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188688,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:11:54]process_action_free close_receipt [12:11:54]json_value_free [12:11:54]json_value_free done [12:11:54]process_json_proto returns [12:11:54]Send response to host [12:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188688,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:11:54]free response buf [12:11:54]execute_script done [12:11:54]execute_script returns [12:11:54]free content buf [12:11:54]Sock 7.Close socket [12:11:54]Sock 7.Thread stoped [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:30]accept exits with 9 [12:12:30]New connection [12:12:30]New thread 3067161956 created [12:12:30]Thread 3067018596 joined [12:12:30]Waiting for new connection... [12:12:30] Sock 9.Parse request [12:12:30]Sock 9.Check first char [12:12:30]Sock 9.First char is OK [12:12:30]request: POST /json_proto HTTP/1.0 [12:12:30]Method: POST [12:12:30]URL: /json_proto [12:12:30]Method is POST - this is cgi request [12:12:30]url: /json_proto [12:12:30]query_string will be loaded in cgi processing [12:12:30]execute_cgi json_proto POST (null) [12:12:30]execute_cgi path=json_proto method=POST [12:12:30]POST find Content-Length [12:12:30]Host: 172.17.42.131:8080 [12:12:30]Content-Length: 682 [12:12:30]Content-Type: application/json [12:12:30] [12:12:30]POST finish read [12:12:30]Found Content-Length = 682 [12:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:30]execute_script... [12:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:30]POST & json_proto [12:12:30]process_json_proto [12:12:30]json parsed OK: [12:12:30]protocol is kg_v1.0 [12:12:30]action value=close_receipt [12:12:30]process_action close_receipt [12:12:30]cmd_close_receipt [12:12:30]MH_GetDate [12:12:30]Write to MH i2c: F0 00 00 34 07 2A [12:12:30]Write i2c OK [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: F0 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: F0 09 00 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: F0 09 00 34 07 00 2E E8 18 67 A0 18 CA 66 B0 [12:12:30]GetLastDocTimeStamp 1729685510 [12:12:30]current date 1729685550 [12:12:30]FM_GetShiftState [12:12:30]SAM_PROTO_GetShiftState [12:12:30]wFMCommunicate request_size=4 [12:12:30]MH_SAM_APDU [12:12:30]CAPDU: 80 13 01 00 [12:12:30]Write to MH i2c: E2 08 00 35 07 80 13 01 00 00 00 00 00 B9 [12:12:30]Write i2c OK [12:12:30]MH_I2C_Read... [12:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:30]Read from MH i2c: E2 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: E2 0E 00 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: E2 0E 00 35 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A1 [12:12:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:12:30]wFMCommunicate OK [12:12:30]SAM_PROTO_GetShiftState done [12:12:30]FM_GetShiftState done [12:12:30]opened in 1729642525 [12:12:30]opened+sec_in_day 1729728925 [12:12:30]quantity*price = 250054 [12:12:30]sum+1 = 250055 [12:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 147 23.10.2024 12:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188689 ФПД: 177484321836490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188689&fm=177484321836490&tin=02508201610067®Number=0000000000100030&sum=250000 [12:12:31]StoreToDocumentArchive [12:12:31]shift 462 fd 188689 [12:12:31]save to /storage/0462/doc_00188689 [12:12:31]save last doc name /storage/0462/doc_00188689 to /storage/kkm_last_doc_name [12:12:31]save OK [12:12:31]Clear old archive folders... [12:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:31]tlvbuf is 01BDEE40 [12:12:31]SAM_PROTO_ClearQueue [12:12:31]wFMCommunicate request_size=4 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 09 00 00 [12:12:31]Write to MH i2c: E2 08 00 42 07 80 09 00 00 00 00 00 00 BB [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [12:12:31]RAPDU: 90 00 [12:12:31]wFMCommunicate OK [12:12:31]SAM_PROTO_ClearQueue done [12:12:31]KKMCreateOFDPacket [12:12:31]OFDProtocolAddRootSTLVToBuf [12:12:31]FM_MakeSignedData [12:12:31]FM_MakeSignedData [12:12:31]SAM_PROTO_SignData [12:12:31]wFMCommunicate request_size=4 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 0D 01 02 [12:12:31]Write to MH i2c: E2 08 00 43 07 80 0D 01 02 00 00 00 00 C3 [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 43 07 00 90 00 BE [12:12:31]RAPDU: 90 00 [12:12:31]wFMCommunicate OK [12:12:31]wFMCommunicate request_size=255 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 2E E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E1 02 00 35 04 06 00 A1 [12:12:31]Write to MH i2c: E2 02 01 44 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 2E E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E1 02 00 35 04 06 00 A1 00 00 AD [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [12:12:31]RAPDU: 90 00 [12:12:31]wFMCommunicate OK [12:12:31]wFMCommunicate request_size=10 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 0D 02 02 05 6B C9 F4 CD CA [12:12:31]Write to MH i2c: E2 0D 00 45 07 80 0D 02 02 05 00 6B C9 F4 CD CA 00 00 8F [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 45 07 00 90 00 C0 [12:12:31]RAPDU: 90 00 [12:12:31]wFMCommunicate OK [12:12:31]wFMCommunicate request_size=4 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 0D 03 02 [12:12:31]Write to MH i2c: E2 08 00 46 07 80 0D 03 02 00 00 00 00 C8 [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 0B 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 0B 00 46 07 00 3F 6D FA F4 70 CE A7 3E 90 00 86 [12:12:31]RAPDU: 3F 6D FA F4 70 CE A7 3E 90 00 [12:12:31]wFMCommunicate OK [12:12:31]SAM_PROTO_SignData done [12:12:31]FM_MakeSignedData done [12:12:31]CreateOFDProtocolMessage [12:12:31]wFMCommunicate request_size=4 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 11 00 00 [12:12:31]Write to MH i2c: E2 08 00 47 07 80 11 00 00 00 00 00 00 C8 [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 17 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 17 00 47 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [12:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:12:31]wFMCommunicate OK [12:12:31]CreateOFDProtocolMessage done [12:12:31]OFDSenderStorePacket 188689 [12:12:31]StoreOFDPacket docnum=188689 [12:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AE B8 07 01 C9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 2E E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E1 02 00 35 04 06 00 A1 6B C9 F4 CD CA 3F 6D FA F4 70 CE A7 3E [12:12:31]CheckFolder [12:12:31]dirname=/storage/ofd_packets [12:12:31]CheckFolder done [12:12:31]ProducePacketName [12:12:31]name=ofd_packets/00188689 [12:12:31]NVStorageSaveData ofd_packets/00188689 [12:12:31]File name is /storage/ofd_packets/00188689 [12:12:31]Write 301 bytes [12:12:31]NVStorageSaveData done [12:12:31]OFDSenderStorePacket done [12:12:31]KKMCreateOFDPacket done [12:12:31]NVStorageSaveData kkm_last_timestamp [12:12:31]File name is /storage/kkm_last_timestamp [12:12:31]Write 4 bytes [12:12:31]NVStorageSaveData done [12:12:31]ExternCall_PrintAddStr [12:12:31]wPrintStart [12:12:31]Write to MH i2c: 01 00 00 48 07 4F [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: 01 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: 01 07 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 FF 0F 64 [12:12:31]RasterBufferAndPrint [12:12:31]line Счет N : (1)210749 [12:12:31]line ИНН: 02508201610067 [12:12:31]line Контрольно-Кассовый Чек [12:12:31]line ПРОДАЖА [12:12:31]line ТРК (МРК, ГНК) : 43 [12:12:31]line Товар: 2710124500 [12:12:31]line Аи-95-К-3 [12:12:31]line 33.700 * 74.20 [12:12:31]line = 2500.54 [12:12:31]line НДС 12% НСП 1% [12:12:31]line > о реализуемом товаре [12:12:31]line ОКРУГЛЕНИЕ: -0.54 [12:12:31]line ИТОГО: 2500.00 [12:12:32]line Внесено: 2500.00 [12:12:32]line СДАЧА: 0.00 [12:12:32]line НСП 1% : 22.13 [12:12:32]line НДС 12% : 265.54 [12:12:32]line Наличными: 2500.00 [12:12:32]line Безнал.: 0.00 [12:12:32]line Место: АЗС № 86 "Партнер Нефть" [12:12:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:12:32]line СНО: Общий режим [12:12:32]line Чек 147 23.10.2024 12:12 [12:12:32]line Смена: 462 ФФД: 1.0 [12:12:32]line ЗНМ: 0300000155 [12:12:32]line РНМ: 0000000000100030 [12:12:32]line Версия ККМ: 001 [12:12:32]line ФМ: 0000000000965340 [12:12:32]line ФД: 188689 [12:12:32]line ФПД: 177484321836490 [12:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188689&fm=177484321836490&tin=02508201610067®Number=0000000000100030&sum=250000 [12:12:32]written 0, free lines is 4095 [12:12:32]OFD Sender: Processing packet 188689 [packets to send 1062, broken 1061] [12:12:32]ProducePacketName [12:12:32]name=ofd_packets/00188689 [12:12:32]OFD Sender: To server: pG, [12:12:32]CommunicateWithHost lk.salyk.kg:30040 [12:12:32]ConnectInit lk.salyk.kg [12:12:32]Connected sock=10 [12:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AE B8 07 01 C9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 2E E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E1 02 00 35 04 06 00 A1 6B C9 F4 CD CA 3F 6D FA F4 70 CE A7 3E [12:12:32]Write to MH i2c: 01 00 00 73 07 7A [12:12:32]Write i2c OK [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: 01 [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: 01 07 00 [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 5C 0C E9 [12:12:32]RasterBufferAndPrint [12:12:32]line [12:12:32]line [12:12:32]line [12:12:32]line [12:12:32]line [12:12:32]written 0, free lines is 3167 [12:12:32]MH_Cut [12:12:32]Write to MH i2c: D1 01 00 7A 07 01 53 [12:12:32]Write i2c OK [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: D1 [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: D1 01 00 [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: D1 01 00 7A 07 00 52 [12:12:32]Write to MH i2c: 01 00 00 7B 07 82 [12:12:32]Write i2c OK [12:12:32]MH_I2C_Read... [12:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3A B5 47 00 9F 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E1 02 00 F4 03 04 00 19 92 18 67 B6 04 01 00 00 7D 74 70 4D A3 C6 A0 A8 [12:12:32]CommunicateWithHost err = 0 [12:12:32]CheckOFDResponse [12:12:32]1017 (14) - 77093643461234 [12:12:32]1041 (16) - 0000000000965340 [12:12:32]1040 (4) - 188689 [12:12:32]1012 (4) - 23.10.2024 06:05 [12:12:32]1206 (1) - 0 [12:12:32]OFD Sender: Remove packet 188689 [12:12:32]ProducePacketName [12:12:32]name=ofd_packets/00188689 [12:12:32]NVStorageDeleteData [12:12:33]OFD Sender: No OFD packet to send [12:12:33]*** Cut start [12:12:33]*** Partial cut [12:12:33]*** CUTSNS_PIN = 1 [12:12:33]*** CUTSNS_PIN = 0 [12:12:34]*** Brake cut motor [12:12:34]Read from MH i2c: 01 [12:12:34]MH_I2C_Read... [12:12:34]*** Stop cut motor [12:12:34]*** Cut end [12:12:34]Read from MH i2c: 01 07 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: 01 07 00 7B 07 00 00 00 00 00 FF 0F 97 [12:12:34]process_action close_receipt done [12:12:34]requested_data is exist [12:12:34]produce_requested_data [12:12:34]requested_item fm.sn is exist - process it [12:12:34]wFMCommunicate request_size=4 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 11 00 00 [12:12:34]Write to MH i2c: E2 08 00 7C 07 80 11 00 00 00 00 00 00 FD [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:34]Read from MH i2c: E2 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 17 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 17 00 7C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [12:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:12:34]wFMCommunicate OK [12:12:34]requested_item fd.num is exist - process it [12:12:34]SAM_PROTO_GetFieldsCounters [12:12:34]wFMCommunicate request_size=4 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 13 00 00 [12:12:34]Write to MH i2c: E2 08 00 7D 07 80 13 00 00 00 00 00 00 00 [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:34]Read from MH i2c: E2 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 62 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 62 00 7D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [12:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:34]wFMCommunicate OK [12:12:34]SAM_PROTO_GetFieldsCounters done [12:12:34]requested_item shift.num is exist - process it [12:12:34]requested_item shift.opened is exist - process it [12:12:34]req_shift_opened [12:12:34]FM_GetShiftState [12:12:34]SAM_PROTO_GetShiftState [12:12:34]wFMCommunicate request_size=4 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 13 01 00 [12:12:34]Write to MH i2c: E2 08 00 7E 07 80 13 01 00 00 00 00 00 02 [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:34]Read from MH i2c: E2 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 0E 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 0E 00 7E 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EA [12:12:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:12:34]wFMCommunicate OK [12:12:34]SAM_PROTO_GetShiftState done [12:12:34]FM_GetShiftState done [12:12:34]req_shift_opened done [12:12:34]requested_item shift.open_date is exist - process it [12:12:34]req_shift_open_date [12:12:34]req_shift_open_date done [12:12:34]produce_requested_data done [12:12:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188689,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:12:34]process_action_free close_receipt [12:12:34]json_value_free [12:12:34]json_value_free done [12:12:34]process_json_proto returns [12:12:34]Send response to host [12:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188689,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:12:34]free response buf [12:12:34]execute_script done [12:12:34]execute_script returns [12:12:34]free content buf [12:12:34]Sock 9.Close socket [12:12:34]Sock 9.Thread stoped [12:12:38]OFD Sender: No OFD packet to send [12:12:39]accept exits with 7 [12:12:39]New connection [12:12:39]New thread 3067018596 created [12:12:39]Thread 3067161956 joined [12:12:39]Waiting for new connection... [12:12:39] Sock 7.Parse request [12:12:39]Sock 7.Check first char [12:12:39]Sock 7.First char is OK [12:12:39]request: POST /json_proto HTTP/1.0 [12:12:39]Method: POST [12:12:39]URL: /json_proto [12:12:39]Method is POST - this is cgi request [12:12:39]url: /json_proto [12:12:39]query_string will be loaded in cgi processing [12:12:39]execute_cgi json_proto POST (null) [12:12:39]execute_cgi path=json_proto method=POST [12:12:39]POST find Content-Length [12:12:39]Host: 172.17.42.131:8080 [12:12:39]Content-Length: 682 [12:12:39]Content-Type: application/json [12:12:39] [12:12:39]POST finish read [12:12:39]Found Content-Length = 682 [12:12:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:39]execute_script... [12:12:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:39]POST & json_proto [12:12:39]process_json_proto [12:12:39]json parsed OK: [12:12:39]protocol is kg_v1.0 [12:12:39]action value=close_receipt [12:12:39]process_action close_receipt [12:12:39]cmd_close_receipt [12:12:39]MH_GetDate [12:12:39]Write to MH i2c: F0 00 00 7F 07 75 [12:12:39]Write i2c OK [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: F0 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: F0 09 00 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: F0 09 00 7F 07 00 38 E8 18 67 A0 18 CA 66 05 [12:12:39]GetLastDocTimeStamp 1729685550 [12:12:39]current date 1729685560 [12:12:39]FM_GetShiftState [12:12:39]SAM_PROTO_GetShiftState [12:12:39]wFMCommunicate request_size=4 [12:12:39]MH_SAM_APDU [12:12:39]CAPDU: 80 13 01 00 [12:12:39]Write to MH i2c: E2 08 00 80 07 80 13 01 00 00 00 00 00 04 [12:12:39]Write i2c OK [12:12:39]MH_I2C_Read... [12:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:39]Read from MH i2c: E2 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: E2 0E 00 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: E2 0E 00 80 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EC [12:12:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:12:40]wFMCommunicate OK [12:12:40]SAM_PROTO_GetShiftState done [12:12:40]FM_GetShiftState done [12:12:40]opened in 1729642525 [12:12:40]opened+sec_in_day 1729728925 [12:12:40]quantity*price = 100015 [12:12:40]sum+1 = 100017 [12:12:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 148 23.10.2024 12:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188690 ФПД: 60939371341387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121240&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188690&fm=60939371341387&tin=02508201610067®Number=0000000000100030&sum=100000 [12:12:41]StoreToDocumentArchive [12:12:41]shift 462 fd 188690 [12:12:41]save to /storage/0462/doc_00188690 [12:12:41]save last doc name /storage/0462/doc_00188690 to /storage/kkm_last_doc_name [12:12:41]save OK [12:12:41]Clear old archive folders... [12:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:41]tlvbuf is 01C57110 [12:12:41]SAM_PROTO_ClearQueue [12:12:41]wFMCommunicate request_size=4 [12:12:41]MH_SAM_APDU [12:12:41]CAPDU: 80 09 00 00 [12:12:41]Write to MH i2c: E2 08 00 8D 07 80 09 00 00 00 00 00 00 06 [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:41]Read from MH i2c: E2 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 03 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [12:12:41]RAPDU: 90 00 [12:12:41]wFMCommunicate OK [12:12:41]SAM_PROTO_ClearQueue done [12:12:41]KKMCreateOFDPacket [12:12:41]OFDProtocolAddRootSTLVToBuf [12:12:41]FM_MakeSignedData [12:12:41]FM_MakeSignedData [12:12:41]SAM_PROTO_SignData [12:12:41]wFMCommunicate request_size=4 [12:12:41]MH_SAM_APDU [12:12:41]CAPDU: 80 0D 01 02 [12:12:41]Write to MH i2c: E2 08 00 8E 07 80 0D 01 02 00 00 00 00 0E [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:41]Read from MH i2c: E2 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 03 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [12:12:41]RAPDU: 90 00 [12:12:41]wFMCommunicate OK [12:12:41]wFMCommunicate request_size=255 [12:12:41]MH_SAM_APDU [12:12:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E1 02 00 35 04 06 00 37 [12:12:41]Write to MH i2c: E2 02 01 8F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E1 02 00 35 04 06 00 37 00 00 A9 [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:41]Read from MH i2c: E2 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 03 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 03 00 8F 07 00 90 00 0A [12:12:41]RAPDU: 90 00 [12:12:41]wFMCommunicate OK [12:12:41]wFMCommunicate request_size=10 [12:12:41]MH_SAM_APDU [12:12:41]CAPDU: 80 0D 02 02 05 6C 8D 94 E6 4B [12:12:41]Write to MH i2c: E2 0D 00 90 07 80 0D 02 02 05 00 6C 8D 94 E6 4B 00 00 D9 [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:41]Read from MH i2c: E2 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 03 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 03 00 90 07 00 90 00 0B [12:12:41]RAPDU: 90 00 [12:12:41]wFMCommunicate OK [12:12:41]wFMCommunicate request_size=4 [12:12:41]MH_SAM_APDU [12:12:41]CAPDU: 80 0D 03 02 [12:12:41]Write to MH i2c: E2 08 00 91 07 80 0D 03 02 00 00 00 00 13 [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:41]Read from MH i2c: E2 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 0B 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 0B 00 91 07 00 B9 79 AA A5 67 A7 A6 EF 90 00 38 [12:12:41]RAPDU: B9 79 AA A5 67 A7 A6 EF 90 00 [12:12:41]wFMCommunicate OK [12:12:41]SAM_PROTO_SignData done [12:12:41]FM_MakeSignedData done [12:12:41]CreateOFDProtocolMessage [12:12:41]wFMCommunicate request_size=4 [12:12:41]MH_SAM_APDU [12:12:41]CAPDU: 80 11 00 00 [12:12:41]Write to MH i2c: E2 08 00 92 07 80 11 00 00 00 00 00 00 13 [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:41]Read from MH i2c: E2 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 17 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 17 00 92 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [12:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:12:41]wFMCommunicate OK [12:12:41]CreateOFDProtocolMessage done [12:12:41]OFDSenderStorePacket 188690 [12:12:41]StoreOFDPacket docnum=188690 [12:12:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 80 07 01 3B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E1 02 00 35 04 06 00 37 6C 8D 94 E6 4B B9 79 AA A5 67 A7 A6 EF [12:12:41]CheckFolder [12:12:41]dirname=/storage/ofd_packets [12:12:41]CheckFolder done [12:12:41]ProducePacketName [12:12:41]name=ofd_packets/00188690 [12:12:41]NVStorageSaveData ofd_packets/00188690 [12:12:41]File name is /storage/ofd_packets/00188690 [12:12:41]Write 301 bytes [12:12:41]NVStorageSaveData done [12:12:41]OFDSenderStorePacket done [12:12:41]KKMCreateOFDPacket done [12:12:41]NVStorageSaveData kkm_last_timestamp [12:12:41]File name is /storage/kkm_last_timestamp [12:12:41]Write 4 bytes [12:12:41]NVStorageSaveData done [12:12:41]ExternCall_PrintAddStr [12:12:41]wPrintStart [12:12:41]Write to MH i2c: 01 00 00 93 07 9A [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: 01 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: 01 07 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 FF 0F AF [12:12:41]RasterBufferAndPrint [12:12:41]line Счет N : (1)210750 [12:12:41]line ИНН: 02508201610067 [12:12:41]line Контрольно-Кассовый Чек [12:12:41]line ПРОДАЖА [12:12:41]line ТРК (МРК, ГНК) : 12 [12:12:41]line Товар: 2710124130 [12:12:41]line Аи-92-К-3 [12:12:41]line 14.950 * 66.90 [12:12:41]line = 1000.16 [12:12:41]line НДС 12% НСП 1% [12:12:41]line > о реализуемом товаре [12:12:41]line ОКРУГЛЕНИЕ: -0.16 [12:12:41]line ИТОГО: 1000.00 [12:12:41]line Внесено: 1000.00 [12:12:41]line СДАЧА: 0.00 [12:12:41]line НСП 1% : 8.85 [12:12:41]line НДС 12% : 106.21 [12:12:41]line Наличными: 1000.00 [12:12:41]line Безнал.: 0.00 [12:12:41]line Место: АЗС № 86 "Партнер Нефть" [12:12:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:12:41]line СНО: Общий режим [12:12:41]line Чек 148 23.10.2024 12:12 [12:12:41]line Смена: 462 ФФД: 1.0 [12:12:41]line ЗНМ: 0300000155 [12:12:41]line РНМ: 0000000000100030 [12:12:41]line Версия ККМ: 001 [12:12:41]line ФМ: 0000000000965340 [12:12:41]line ФД: 188690 [12:12:41]line ФПД: 60939371341387 [12:12:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121240&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188690&fm=60939371341387&tin=02508201610067®Number=0000000000100030&sum=100000 [12:12:41]written 0, free lines is 4095 [12:12:41]OFD Sender: Processing packet 188690 [packets to send 1062, broken 1061] [12:12:41]ProducePacketName [12:12:41]name=ofd_packets/00188690 [12:12:41]OFD Sender: To server: pG, [12:12:41]CommunicateWithHost lk.salyk.kg:30040 [12:12:41]ConnectInit lk.salyk.kg [12:12:42]Connected sock=10 [12:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 80 07 01 3B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E1 02 00 35 04 06 00 37 6C 8D 94 E6 4B B9 79 AA A5 67 A7 A6 EF [12:12:42]Write to MH i2c: 01 00 00 BE 07 C5 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: 01 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: 01 07 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: 01 07 00 BE 07 00 00 00 00 00 52 0C 2A [12:12:42]RasterBufferAndPrint [12:12:42]line [12:12:42]line [12:12:42]line [12:12:42]line [12:12:42]line [12:12:42]written 0, free lines is 3160 [12:12:42]MH_Cut [12:12:42]Write to MH i2c: D1 01 00 C5 07 01 9E [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: D1 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: D1 01 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: D1 01 00 C5 07 00 9D [12:12:42]Write to MH i2c: 01 00 00 C6 07 CD [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 EB 47 00 88 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E1 02 00 F4 03 04 00 23 92 18 67 B6 04 01 00 00 CE AC 85 49 69 EE 25 C7 [12:12:42]CommunicateWithHost err = 0 [12:12:42]CheckOFDResponse [12:12:42]1017 (14) - 77093643461234 [12:12:42]1041 (16) - 0000000000965340 [12:12:42]1040 (4) - 188690 [12:12:42]1012 (4) - 23.10.2024 06:05 [12:12:42]1206 (1) - 0 [12:12:42]OFD Sender: Remove packet 188690 [12:12:42]ProducePacketName [12:12:42]name=ofd_packets/00188690 [12:12:42]NVStorageDeleteData [12:12:42]OFD Sender: No OFD packet to send [12:12:43]*** Cut start [12:12:43]*** Partial cut [12:12:43]*** CUTSNS_PIN = 1 [12:12:43]*** CUTSNS_PIN = 0 [12:12:43]*** Brake cut motor [12:12:44]Read from MH i2c: 01 [12:12:44]MH_I2C_Read... [12:12:44]*** Stop cut motor [12:12:44]*** Cut end [12:12:44]Read from MH i2c: 01 07 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 C6 07 00 00 00 00 00 FF 0F E2 [12:12:44]process_action close_receipt done [12:12:44]requested_data is exist [12:12:44]produce_requested_data [12:12:44]requested_item fm.sn is exist - process it [12:12:44]wFMCommunicate request_size=4 [12:12:44]MH_SAM_APDU [12:12:44]CAPDU: 80 11 00 00 [12:12:44]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:44]Read from MH i2c: E2 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 17 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [12:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:12:44]wFMCommunicate OK [12:12:44]requested_item fd.num is exist - process it [12:12:44]SAM_PROTO_GetFieldsCounters [12:12:44]wFMCommunicate request_size=4 [12:12:44]MH_SAM_APDU [12:12:44]CAPDU: 80 13 00 00 [12:12:44]Write to MH i2c: E2 08 00 C8 07 80 13 00 00 00 00 00 00 4B [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:44]Read from MH i2c: E2 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 62 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 62 00 C8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [12:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:44]wFMCommunicate OK [12:12:44]SAM_PROTO_GetFieldsCounters done [12:12:44]requested_item shift.num is exist - process it [12:12:44]requested_item shift.opened is exist - process it [12:12:44]req_shift_opened [12:12:44]FM_GetShiftState [12:12:44]SAM_PROTO_GetShiftState [12:12:44]wFMCommunicate request_size=4 [12:12:44]MH_SAM_APDU [12:12:44]CAPDU: 80 13 01 00 [12:12:44]Write to MH i2c: E2 08 00 C9 07 80 13 01 00 00 00 00 00 4D [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 [12:12:44]MH_I2C_Read... [12:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:44]Read from MH i2c: E2 0E 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 0E 00 C9 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 35 [12:12:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:12:44]wFMCommunicate OK [12:12:44]SAM_PROTO_GetShiftState done [12:12:44]FM_GetShiftState done [12:12:44]req_shift_opened done [12:12:44]requested_item shift.open_date is exist - process it [12:12:44]req_shift_open_date [12:12:44]req_shift_open_date done [12:12:44]produce_requested_data done [12:12:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188690,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:12:44]process_action_free close_receipt [12:12:44]json_value_free [12:12:44]json_value_free done [12:12:44]process_json_proto returns [12:12:44]Send response to host [12:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188690,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:12:44]free response buf [12:12:44]execute_script done [12:12:44]execute_script returns [12:12:44]free content buf [12:12:44]Sock 7.Close socket [12:12:44]Sock 7.Thread stoped [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:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:39]accept exits with 9 [12:13:39]New connection [12:13:39]New thread 3067161956 created [12:13:39]Thread 3067018596 joined [12:13:39]Waiting for new connection... [12:13:39] Sock 9.Parse request [12:13:39]Sock 9.Check first char [12:13:39]Sock 9.First char is OK [12:13:39]request: POST /json_proto HTTP/1.0 [12:13:39]Method: POST [12:13:39]URL: /json_proto [12:13:39]Method is POST - this is cgi request [12:13:39]url: /json_proto [12:13:39]query_string will be loaded in cgi processing [12:13:39]execute_cgi json_proto POST (null) [12:13:39]execute_cgi path=json_proto method=POST [12:13:39]POST find Content-Length [12:13:39]Host: 172.17.42.131:8080 [12:13:39]Content-Length: 800 [12:13:39]Content-Type: application/json [12:13:39] [12:13:39]POST finish read [12:13:39]Found Content-Length = 800 [12:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3600583", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:39]execute_script... [12:13:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3600583", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:39]POST & json_proto [12:13:39]process_json_proto [12:13:39]json parsed OK: [12:13:39]protocol is kg_v1.0 [12:13:39]action value=close_receipt [12:13:39]process_action close_receipt [12:13:39]cmd_close_receipt [12:13:39]MH_GetDate [12:13:39]Write to MH i2c: F0 00 00 CA 07 C0 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: F0 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: F0 09 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: F0 09 00 CA 07 00 74 E8 18 67 A0 18 CA 66 8C [12:13:39]GetLastDocTimeStamp 1729685560 [12:13:39]current date 1729685620 [12:13:39]FM_GetShiftState [12:13:39]SAM_PROTO_GetShiftState [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 13 01 00 [12:13:39]Write to MH i2c: E2 08 00 CB 07 80 13 01 00 00 00 00 00 4F [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0E 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0E 00 CB 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 37 [12:13:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_GetShiftState done [12:13:39]FM_GetShiftState done [12:13:39]opened in 1729642525 [12:13:39]opened+sec_in_day 1729728925 [12:13:39]quantity*price = 0 [12:13:39]sum+1 = 1 [12:13:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 149 23.10.2024 12:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3600583 ФМ: 0000000000965340 ФД: 188691 ФПД: 221474653743074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121340&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188691&fm=221474653743074&tin=02508201610067®Number=0000000000100030&sum=0 [12:13:40]StoreToDocumentArchive [12:13:40]shift 462 fd 188691 [12:13:40]save to /storage/0462/doc_00188691 [12:13:40]save last doc name /storage/0462/doc_00188691 to /storage/kkm_last_doc_name [12:13:40]save OK [12:13:40]Clear old archive folders... [12:13:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:40]tlvbuf is 01C35F00 [12:13:40]SAM_PROTO_ClearQueue [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 09 00 00 [12:13:40]Write to MH i2c: E2 08 00 D8 07 80 09 00 00 00 00 00 00 51 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 03 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [12:13:40]RAPDU: 90 00 [12:13:40]wFMCommunicate OK [12:13:40]SAM_PROTO_ClearQueue done [12:13:40]KKMCreateOFDPacket [12:13:40]OFDProtocolAddRootSTLVToBuf [12:13:40]FM_MakeSignedData [12:13:40]FM_MakeSignedData [12:13:40]SAM_PROTO_SignData [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 0D 01 02 [12:13:40]Write to MH i2c: E2 08 00 D9 07 80 0D 01 02 00 00 00 00 59 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 03 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [12:13:40]RAPDU: 90 00 [12:13:40]wFMCommunicate OK [12:13:40]wFMCommunicate request_size=255 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 74 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E1 02 00 35 04 06 00 C9 [12:13:40]Write to MH i2c: E2 02 01 DA 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 74 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E1 02 00 35 04 06 00 C9 00 00 B3 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 DA 07 00 90 00 55 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=10 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 0D 02 02 05 6E 16 10 27 E2 [12:13:41]Write to MH i2c: E2 0D 00 DB 07 80 0D 02 02 05 00 6E 16 10 27 E2 00 00 03 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 DB 07 00 90 00 56 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 0D 03 02 [12:13:41]Write to MH i2c: E2 08 00 DC 07 80 0D 03 02 00 00 00 00 5E [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 0B 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 0B 00 DC 07 00 40 E4 E3 4C 05 5C E3 86 90 00 7C [12:13:41]RAPDU: 40 E4 E3 4C 05 5C E3 86 90 00 [12:13:41]wFMCommunicate OK [12:13:41]SAM_PROTO_SignData done [12:13:41]FM_MakeSignedData done [12:13:41]CreateOFDProtocolMessage [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 11 00 00 [12:13:41]Write to MH i2c: E2 08 00 DD 07 80 11 00 00 00 00 00 00 5E [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 17 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 17 00 DD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [12:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:13:41]wFMCommunicate OK [12:13:41]CreateOFDProtocolMessage done [12:13:41]OFDSenderStorePacket 188691 [12:13:41]StoreOFDPacket docnum=188691 [12:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AC 73 07 01 D2 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 74 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E1 02 00 35 04 06 00 C9 6E 16 10 27 E2 40 E4 E3 4C 05 5C E3 86 [12:13:41]CheckFolder [12:13:41]dirname=/storage/ofd_packets [12:13:41]CheckFolder done [12:13:41]ProducePacketName [12:13:41]name=ofd_packets/00188691 [12:13:41]NVStorageSaveData ofd_packets/00188691 [12:13:41]File name is /storage/ofd_packets/00188691 [12:13:41]Write 301 bytes [12:13:41]NVStorageSaveData done [12:13:41]OFDSenderStorePacket done [12:13:41]KKMCreateOFDPacket done [12:13:41]NVStorageSaveData kkm_last_timestamp [12:13:41]File name is /storage/kkm_last_timestamp [12:13:41]Write 4 bytes [12:13:41]NVStorageSaveData done [12:13:41]ExternCall_PrintAddStr [12:13:41]wPrintStart [12:13:41]Write to MH i2c: 01 00 00 DE 07 E5 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 DE 07 00 00 00 00 00 FF 0F FA [12:13:41]RasterBufferAndPrint [12:13:41]line Счет N : (1)210751 [12:13:41]line ИНН: 02508201610067 [12:13:41]line Контрольно-Кассовый Чек [12:13:41]line ПРОДАЖА [12:13:41]line ТРК (МРК, ГНК) : 32 [12:13:41]line Товар: 2710124130 [12:13:41]line Аи-92-К-3 [12:13:41]line 20.000 * 0.00 [12:13:41]line = 0.00 [12:13:41]line НДС 12% НСП 1% [12:13:41]line > о реализуемом товаре [12:13:41]line ИТОГО: 0.00 [12:13:41]line НСП 1% : 0.00 [12:13:41]line НДС 12% : 0.00 [12:13:41]line Наличными: 0.00 [12:13:41]line Безнал.: 0.00 [12:13:41]line Место: АЗС № 86 "Партнер Нефть" [12:13:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:13:41]line СНО: Общий режим [12:13:41]line Чек 149 23.10.2024 12:13 [12:13:41]line Смена: 462 ФФД: 1.0 [12:13:41]line ЗНМ: 0300000155 [12:13:41]line РНМ: 0000000000100030 [12:13:41]line Версия ККМ: 001 [12:13:41]line Талоны: Топливные Талоны [12:13:41]line 3600583 [12:13:41]line ФМ: 0000000000965340 [12:13:41]line ФД: 188691 [12:13:41]line ФПД: 221474653743074 [12:13:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121340&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188691&fm=221474653743074&tin=02508201610067®Number=0000000000100030&sum=0 [12:13:41]written 0, free lines is 4095 [12:13:41]OFD Sender: Processing packet 188691 [packets to send 1062, broken 1061] [12:13:41]ProducePacketName [12:13:41]name=ofd_packets/00188691 [12:13:41]OFD Sender: To server: pG, [12:13:41]CommunicateWithHost lk.salyk.kg:30040 [12:13:41]ConnectInit lk.salyk.kg [12:13:41]Connected sock=7 [12:13:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AC 73 07 01 D2 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 74 E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E1 02 00 35 04 06 00 C9 6E 16 10 27 E2 40 E4 E3 4C 05 5C E3 86 [12:13:41]Write to MH i2c: 01 00 00 08 08 10 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 65 0C 88 [12:13:41]RasterBufferAndPrint [12:13:41]line [12:13:41]line [12:13:41]line [12:13:41]line [12:13:41]line [12:13:41]written 0, free lines is 3178 [12:13:41]MH_Cut [12:13:41]Write to MH i2c: D1 01 00 0F 08 01 E9 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: D1 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: D1 01 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: D1 01 00 0F 08 00 E8 [12:13:41]Write to MH i2c: 01 00 00 10 08 18 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 55 D6 47 00 7D 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 36 35 33 34 30 10 04 04 00 13 E1 02 00 F4 03 04 00 5E 92 18 67 B6 04 01 00 00 F6 AA 6C 12 D1 A7 48 92 [12:13:41]CommunicateWithHost err = 0 [12:13:41]CheckOFDResponse [12:13:41]1017 (14) - 77093643461234 [12:13:41]1041 (16) - 0000000000965340 [12:13:41]1040 (4) - 188691 [12:13:41]1012 (4) - 23.10.2024 06:06 [12:13:41]1206 (1) - 0 [12:13:41]OFD Sender: Remove packet 188691 [12:13:41]ProducePacketName [12:13:41]name=ofd_packets/00188691 [12:13:41]NVStorageDeleteData [12:13:42]OFD Sender: No OFD packet to send [12:13:43]*** Cut start [12:13:43]*** Partial cut [12:13:43]*** CUTSNS_PIN = 1 [12:13:43]*** CUTSNS_PIN = 0 [12:13:43]*** Brake cut motor [12:13:43]Read from MH i2c: 01 [12:13:43]MH_I2C_Read... [12:13:43]*** Stop cut motor [12:13:43]*** Cut end [12:13:43]Read from MH i2c: 01 07 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: 01 07 00 10 08 00 00 00 00 00 FF 0F 2D [12:13:43]process_action close_receipt done [12:13:43]requested_data is exist [12:13:43]produce_requested_data [12:13:43]requested_item fm.sn is exist - process it [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 11 00 00 [12:13:43]Write to MH i2c: E2 08 00 11 08 80 11 00 00 00 00 00 00 93 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 17 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 17 00 11 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [12:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:13:43]wFMCommunicate OK [12:13:43]requested_item fd.num is exist - process it [12:13:43]SAM_PROTO_GetFieldsCounters [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 13 00 00 [12:13:43]Write to MH i2c: E2 08 00 12 08 80 13 00 00 00 00 00 00 96 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 62 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 62 00 12 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [12:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:43]wFMCommunicate OK [12:13:43]SAM_PROTO_GetFieldsCounters done [12:13:43]requested_item shift.num is exist - process it [12:13:43]requested_item shift.opened is exist - process it [12:13:43]req_shift_opened [12:13:43]FM_GetShiftState [12:13:43]SAM_PROTO_GetShiftState [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 13 01 00 [12:13:43]Write to MH i2c: E2 08 00 13 08 80 13 01 00 00 00 00 00 98 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 0E 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 0E 00 13 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 80 [12:13:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:13:43]wFMCommunicate OK [12:13:43]SAM_PROTO_GetShiftState done [12:13:43]FM_GetShiftState done [12:13:43]req_shift_opened done [12:13:43]requested_item shift.open_date is exist - process it [12:13:43]req_shift_open_date [12:13:43]req_shift_open_date done [12:13:43]produce_requested_data done [12:13:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188691,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:13:43]process_action_free close_receipt [12:13:43]json_value_free [12:13:43]json_value_free done [12:13:43]process_json_proto returns [12:13:43]Send response to host [12:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188691,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:13:43]free response buf [12:13:43]execute_script done [12:13:43]execute_script returns [12:13:43]free content buf [12:13:43]Sock 9.Close socket [12:13:43]Sock 9.Thread stoped [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:38]accept exits with 10 [12:14:38]New connection [12:14:38]New thread 3067018596 created [12:14:38]Thread 3067161956 joined [12:14:38]Waiting for new connection... [12:14:38] Sock 10.Parse request [12:14:38]Sock 10.Check first char [12:14:38]Sock 10.First char is OK [12:14:38]request: POST /json_proto HTTP/1.0 [12:14:38]Method: POST [12:14:38]URL: /json_proto [12:14:38]Method is POST - this is cgi request [12:14:38]url: /json_proto [12:14:38]query_string will be loaded in cgi processing [12:14:38]execute_cgi json_proto POST (null) [12:14:38]execute_cgi path=json_proto method=POST [12:14:38]POST find Content-Length [12:14:38]Host: 172.17.42.131:8080 [12:14:38]Content-Length: 682 [12:14:38]Content-Type: application/json [12:14:38] [12:14:38]POST finish read [12:14:38]Found Content-Length = 682 [12:14:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:38]execute_script... [12:14:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:38]POST & json_proto [12:14:38]process_json_proto [12:14:38]json parsed OK: [12:14:38]protocol is kg_v1.0 [12:14:38]action value=close_receipt [12:14:38]process_action close_receipt [12:14:38]cmd_close_receipt [12:14:38]MH_GetDate [12:14:38]Write to MH i2c: F0 00 00 14 08 0B [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: F0 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: F0 09 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: F0 09 00 14 08 00 AF E8 18 67 A0 18 CA 66 12 [12:14:38]GetLastDocTimeStamp 1729685620 [12:14:38]current date 1729685679 [12:14:38]FM_GetShiftState [12:14:38]SAM_PROTO_GetShiftState [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 13 01 00 [12:14:38]Write to MH i2c: E2 08 00 15 08 80 13 01 00 00 00 00 00 9A [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 0E 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 0E 00 15 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 82 [12:14:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:14:38]wFMCommunicate OK [12:14:38]SAM_PROTO_GetShiftState done [12:14:38]FM_GetShiftState done [12:14:38]opened in 1729642525 [12:14:38]opened+sec_in_day 1729728925 [12:14:38]quantity*price = 100015 [12:14:38]sum+1 = 100017 [12:14:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 150 23.10.2024 12:14 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188692 ФПД: 65356970497670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188692&fm=65356970497670&tin=02508201610067®Number=0000000000100030&sum=100000 [12:14:39]StoreToDocumentArchive [12:14:39]shift 462 fd 188692 [12:14:39]save to /storage/0462/doc_00188692 [12:14:39]save last doc name /storage/0462/doc_00188692 to /storage/kkm_last_doc_name [12:14:39]save OK [12:14:39]Clear old archive folders... [12:14:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:39]tlvbuf is 01C39AE0 [12:14:39]SAM_PROTO_ClearQueue [12:14:39]wFMCommunicate request_size=4 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 09 00 00 [12:14:39]Write to MH i2c: E2 08 00 22 08 80 09 00 00 00 00 00 00 9C [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 03 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [12:14:39]RAPDU: 90 00 [12:14:39]wFMCommunicate OK [12:14:39]SAM_PROTO_ClearQueue done [12:14:39]KKMCreateOFDPacket [12:14:39]OFDProtocolAddRootSTLVToBuf [12:14:39]FM_MakeSignedData [12:14:39]FM_MakeSignedData [12:14:39]SAM_PROTO_SignData [12:14:39]wFMCommunicate request_size=4 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 0D 01 02 [12:14:39]Write to MH i2c: E2 08 00 23 08 80 0D 01 02 00 00 00 00 A4 [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 03 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 03 00 23 08 00 90 00 9F [12:14:39]RAPDU: 90 00 [12:14:39]wFMCommunicate OK [12:14:39]wFMCommunicate request_size=255 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AF E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E1 02 00 35 04 06 00 3B [12:14:39]Write to MH i2c: E2 02 01 24 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AF E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E1 02 00 35 04 06 00 3B 00 00 BE [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 24 08 00 90 00 A0 [12:14:40]RAPDU: 90 00 [12:14:40]wFMCommunicate OK [12:14:40]wFMCommunicate request_size=10 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 0D 02 02 05 71 1B 02 96 86 [12:14:40]Write to MH i2c: E2 0D 00 25 08 80 0D 02 02 05 00 71 1B 02 96 86 00 00 5B [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 03 00 25 08 00 90 00 A1 [12:14:40]RAPDU: 90 00 [12:14:40]wFMCommunicate OK [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 0D 03 02 [12:14:40]Write to MH i2c: E2 08 00 26 08 80 0D 03 02 00 00 00 00 A9 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 0B 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 0B 00 26 08 00 15 1E 41 62 E3 E3 E6 47 90 00 73 [12:14:40]RAPDU: 15 1E 41 62 E3 E3 E6 47 90 00 [12:14:40]wFMCommunicate OK [12:14:40]SAM_PROTO_SignData done [12:14:40]FM_MakeSignedData done [12:14:40]CreateOFDProtocolMessage [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 11 00 00 [12:14:40]Write to MH i2c: E2 08 00 27 08 80 11 00 00 00 00 00 00 A9 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 17 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 17 00 27 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [12:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:14:40]wFMCommunicate OK [12:14:40]CreateOFDProtocolMessage done [12:14:40]OFDSenderStorePacket 188692 [12:14:40]StoreOFDPacket docnum=188692 [12:14:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 31 05 07 01 06 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AF E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E1 02 00 35 04 06 00 3B 71 1B 02 96 86 15 1E 41 62 E3 E3 E6 47 [12:14:40]CheckFolder [12:14:40]dirname=/storage/ofd_packets [12:14:40]CheckFolder done [12:14:40]ProducePacketName [12:14:40]name=ofd_packets/00188692 [12:14:40]NVStorageSaveData ofd_packets/00188692 [12:14:40]File name is /storage/ofd_packets/00188692 [12:14:40]Write 301 bytes [12:14:40]NVStorageSaveData done [12:14:40]OFDSenderStorePacket done [12:14:40]KKMCreateOFDPacket done [12:14:40]NVStorageSaveData kkm_last_timestamp [12:14:40]File name is /storage/kkm_last_timestamp [12:14:40]Write 4 bytes [12:14:40]NVStorageSaveData done [12:14:40]ExternCall_PrintAddStr [12:14:40]wPrintStart [12:14:40]Write to MH i2c: 01 00 00 28 08 30 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 28 08 00 00 00 00 00 FF 0F 45 [12:14:40]RasterBufferAndPrint [12:14:40]line Счет N : (1)210752 [12:14:40]line ИНН: 02508201610067 [12:14:40]line Контрольно-Кассовый Чек [12:14:40]line ПРОДАЖА [12:14:40]line ТРК (МРК, ГНК) : 42 [12:14:40]line Товар: 2710124130 [12:14:40]line Аи-92-К-3 [12:14:40]line 14.950 * 66.90 [12:14:40]line = 1000.16 [12:14:40]line НДС 12% НСП 1% [12:14:40]line > о реализуемом товаре [12:14:40]line ОКРУГЛЕНИЕ: -0.16 [12:14:40]line ИТОГО: 1000.00 [12:14:40]line Внесено: 1000.00 [12:14:40]line СДАЧА: 0.00 [12:14:40]line НСП 1% : 8.85 [12:14:40]line НДС 12% : 106.21 [12:14:40]line Наличными: 1000.00 [12:14:40]line Безнал.: 0.00 [12:14:40]line Место: АЗС № 86 "Партнер Нефть" [12:14:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:14:40]line СНО: Общий режим [12:14:40]line Чек 150 23.10.2024 12:14 [12:14:40]line Смена: 462 ФФД: 1.0 [12:14:40]line ЗНМ: 0300000155 [12:14:40]line РНМ: 0000000000100030 [12:14:40]line Версия ККМ: 001 [12:14:40]line ФМ: 0000000000965340 [12:14:40]line ФД: 188692 [12:14:40]line ФПД: 65356970497670 [12:14:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188692&fm=65356970497670&tin=02508201610067®Number=0000000000100030&sum=100000 [12:14:40]written 0, free lines is 4095 [12:14:40]OFD Sender: Processing packet 188692 [packets to send 1062, broken 1061] [12:14:40]ProducePacketName [12:14:40]name=ofd_packets/00188692 [12:14:40]OFD Sender: To server: pG, [12:14:40]CommunicateWithHost lk.salyk.kg:30040 [12:14:40]ConnectInit lk.salyk.kg [12:14:40]Connected sock=9 [12:14:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 31 05 07 01 06 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AF E8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E1 02 00 35 04 06 00 3B 71 1B 02 96 86 15 1E 41 62 E3 E3 E6 47 [12:14:40]Write to MH i2c: 01 00 00 53 08 5B [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 52 0C C0 [12:14:40]RasterBufferAndPrint [12:14:40]line [12:14:40]line [12:14:40]line [12:14:40]line [12:14:40]line [12:14:40]written 0, free lines is 3158 [12:14:40]MH_Cut [12:14:40]Write to MH i2c: D1 01 00 5A 08 01 34 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: D1 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: D1 01 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: D1 01 00 5A 08 00 33 [12:14:40]Write to MH i2c: 01 00 00 5B 08 63 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E B8 47 00 9E 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 36 35 33 34 30 10 04 04 00 14 E1 02 00 F4 03 04 00 99 92 18 67 B6 04 01 00 00 11 88 28 30 83 A5 F2 DD [12:14:40]CommunicateWithHost err = 0 [12:14:40]CheckOFDResponse [12:14:40]1017 (14) - 77093643461234 [12:14:40]1041 (16) - 0000000000965340 [12:14:40]1040 (4) - 188692 [12:14:40]1012 (4) - 23.10.2024 06:07 [12:14:40]1206 (1) - 0 [12:14:40]OFD Sender: Remove packet 188692 [12:14:40]ProducePacketName [12:14:40]name=ofd_packets/00188692 [12:14:40]NVStorageDeleteData [12:14:41]OFD Sender: No OFD packet to send [12:14:42]*** Cut start [12:14:42]*** Partial cut [12:14:42]*** CUTSNS_PIN = 1 [12:14:42]*** CUTSNS_PIN = 0 [12:14:42]*** Brake cut motor [12:14:42]Read from MH i2c: 01 [12:14:42]MH_I2C_Read... [12:14:42]*** Stop cut motor [12:14:42]*** Cut end [12:14:42]Read from MH i2c: 01 07 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 07 00 5B 08 00 00 00 00 00 FF 0F 78 [12:14:42]process_action close_receipt done [12:14:42]requested_data is exist [12:14:42]produce_requested_data [12:14:42]requested_item fm.sn is exist - process it [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 11 00 00 [12:14:42]Write to MH i2c: E2 08 00 5C 08 80 11 00 00 00 00 00 00 DE [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 17 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 17 00 5C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [12:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:14:42]wFMCommunicate OK [12:14:42]requested_item fd.num is exist - process it [12:14:42]SAM_PROTO_GetFieldsCounters [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 13 00 00 [12:14:42]Write to MH i2c: E2 08 00 5D 08 80 13 00 00 00 00 00 00 E1 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 62 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 62 00 5D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [12:14:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:42]wFMCommunicate OK [12:14:42]SAM_PROTO_GetFieldsCounters done [12:14:42]requested_item shift.num is exist - process it [12:14:42]requested_item shift.opened is exist - process it [12:14:42]req_shift_opened [12:14:42]FM_GetShiftState [12:14:42]SAM_PROTO_GetShiftState [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 13 01 00 [12:14:42]Write to MH i2c: E2 08 00 5E 08 80 13 01 00 00 00 00 00 E3 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0E 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0E 00 5E 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CB [12:14:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:14:42]wFMCommunicate OK [12:14:42]SAM_PROTO_GetShiftState done [12:14:42]FM_GetShiftState done [12:14:42]req_shift_opened done [12:14:42]requested_item shift.open_date is exist - process it [12:14:42]req_shift_open_date [12:14:42]req_shift_open_date done [12:14:42]produce_requested_data done [12:14:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188692,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:14:42]process_action_free close_receipt [12:14:42]json_value_free [12:14:42]json_value_free done [12:14:42]process_json_proto returns [12:14:42]Send response to host [12:14:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188692,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:14:42]free response buf [12:14:42]execute_script done [12:14:42]execute_script returns [12:14:42]free content buf [12:14:42]Sock 10.Close socket [12:14:42]Sock 10.Thread stoped [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:33]accept exits with 7 [12:16:33]New connection [12:16:33]New thread 3067161956 created [12:16:33]Thread 3067018596 joined [12:16:33]Waiting for new connection... [12:16:33] Sock 7.Parse request [12:16:33]Sock 7.Check first char [12:16:33]Sock 7.First char is OK [12:16:33]request: POST /json_proto HTTP/1.0 [12:16:33]Method: POST [12:16:33]URL: /json_proto [12:16:33]Method is POST - this is cgi request [12:16:33]url: /json_proto [12:16:33]query_string will be loaded in cgi processing [12:16:33]execute_cgi json_proto POST (null) [12:16:33]execute_cgi path=json_proto method=POST [12:16:33]POST find Content-Length [12:16:33]Host: 172.17.42.131:8080 [12:16:33]Content-Length: 674 [12:16:33]Content-Type: application/json [12:16:33] [12:16:33]POST finish read [12:16:33]Found Content-Length = 674 [12:16:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:33]execute_script... [12:16:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:33]POST & json_proto [12:16:33]process_json_proto [12:16:33]json parsed OK: [12:16:33]protocol is kg_v1.0 [12:16:33]action value=close_receipt [12:16:33]process_action close_receipt [12:16:33]cmd_close_receipt [12:16:33]MH_GetDate [12:16:33]Write to MH i2c: F0 00 00 5F 08 56 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: F0 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: F0 09 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: F0 09 00 5F 08 00 22 E9 18 67 A0 18 CA 66 D1 [12:16:33]GetLastDocTimeStamp 1729685679 [12:16:33]current date 1729685794 [12:16:33]FM_GetShiftState [12:16:33]SAM_PROTO_GetShiftState [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 13 01 00 [12:16:33]Write to MH i2c: E2 08 00 60 08 80 13 01 00 00 00 00 00 E5 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 0E 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 0E 00 60 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CD [12:16:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:16:33]wFMCommunicate OK [12:16:33]SAM_PROTO_GetShiftState done [12:16:33]FM_GetShiftState done [12:16:33]opened in 1729642525 [12:16:33]opened+sec_in_day 1729728925 [12:16:33]quantity*price = 70027 [12:16:33]sum+1 = 70029 [12:16:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 151 23.10.2024 12:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188693 ФПД: 261410294107122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121634&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188693&fm=261410294107122&tin=02508201610067®Number=0000000000100030&sum=70000 [12:16:35]StoreToDocumentArchive [12:16:35]shift 462 fd 188693 [12:16:35]save to /storage/0462/doc_00188693 [12:16:35]save last doc name /storage/0462/doc_00188693 to /storage/kkm_last_doc_name [12:16:35]save OK [12:16:35]Clear old archive folders... [12:16:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:16:35]tlvbuf is 01BDD990 [12:16:35]SAM_PROTO_ClearQueue [12:16:35]wFMCommunicate request_size=4 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 09 00 00 [12:16:35]Write to MH i2c: E2 08 00 6D 08 80 09 00 00 00 00 00 00 E7 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:35]Read from MH i2c: E2 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [12:16:35]RAPDU: 90 00 [12:16:35]wFMCommunicate OK [12:16:35]SAM_PROTO_ClearQueue done [12:16:35]KKMCreateOFDPacket [12:16:35]OFDProtocolAddRootSTLVToBuf [12:16:35]FM_MakeSignedData [12:16:35]FM_MakeSignedData [12:16:35]SAM_PROTO_SignData [12:16:35]wFMCommunicate request_size=4 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 0D 01 02 [12:16:35]Write to MH i2c: E2 08 00 6E 08 80 0D 01 02 00 00 00 00 EF [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:35]Read from MH i2c: E2 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [12:16:35]RAPDU: 90 00 [12:16:35]wFMCommunicate OK [12:16:35]wFMCommunicate request_size=255 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 22 E9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E1 02 00 35 04 06 00 ED C0 53 B8 [12:16:35]Write to MH i2c: E2 02 01 6F 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 22 E9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E1 02 00 35 04 06 00 ED C0 53 B8 00 00 F6 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:35]Read from MH i2c: E2 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [12:16:35]RAPDU: 90 00 [12:16:35]wFMCommunicate OK [12:16:35]wFMCommunicate request_size=7 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 0D 02 02 02 8B F2 [12:16:35]Write to MH i2c: E2 0A 00 70 08 80 0D 02 02 02 00 8B F2 00 00 73 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:35]Read from MH i2c: E2 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [12:16:35]RAPDU: 90 00 [12:16:35]wFMCommunicate OK [12:16:35]wFMCommunicate request_size=4 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 0D 03 02 [12:16:35]Write to MH i2c: E2 08 00 71 08 80 0D 03 02 00 00 00 00 F4 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:35]Read from MH i2c: E2 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 0B 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 0B 00 71 08 00 EF E3 1B AC BB F8 5E 25 90 00 C4 [12:16:35]RAPDU: EF E3 1B AC BB F8 5E 25 90 00 [12:16:35]wFMCommunicate OK [12:16:35]SAM_PROTO_SignData done [12:16:35]FM_MakeSignedData done [12:16:35]CreateOFDProtocolMessage [12:16:35]wFMCommunicate request_size=4 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 11 00 00 [12:16:35]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:35]Read from MH i2c: E2 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 17 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [12:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:16:35]wFMCommunicate OK [12:16:35]CreateOFDProtocolMessage done [12:16:35]OFDSenderStorePacket 188693 [12:16:35]StoreOFDPacket docnum=188693 [12:16:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1D 19 04 01 2B DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 22 E9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E1 02 00 35 04 06 00 ED C0 53 B8 8B F2 EF E3 1B AC BB F8 5E 25 [12:16:35]CheckFolder [12:16:35]dirname=/storage/ofd_packets [12:16:35]CheckFolder done [12:16:35]ProducePacketName [12:16:35]name=ofd_packets/00188693 [12:16:35]NVStorageSaveData ofd_packets/00188693 [12:16:35]File name is /storage/ofd_packets/00188693 [12:16:35]Write 298 bytes [12:16:35]NVStorageSaveData done [12:16:35]OFDSenderStorePacket done [12:16:35]KKMCreateOFDPacket done [12:16:35]NVStorageSaveData kkm_last_timestamp [12:16:35]File name is /storage/kkm_last_timestamp [12:16:35]Write 4 bytes [12:16:35]NVStorageSaveData done [12:16:35]ExternCall_PrintAddStr [12:16:35]wPrintStart [12:16:35]Write to MH i2c: 01 00 00 73 08 7B [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: 01 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: 01 07 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [12:16:35]RasterBufferAndPrint [12:16:35]line Счет N : (1)210753 [12:16:35]line ИНН: 02508201610067 [12:16:35]line Контрольно-Кассовый Чек [12:16:35]line ПРОДАЖА [12:16:35]line ТРК (МРК, ГНК) : 51 [12:16:35]line Товар: 2710194210 [12:16:35]line ДТ-К-5 [12:16:35]line 9.190 * 76.20 [12:16:35]line = 700.28 [12:16:35]line НДС 12% НСП 1% [12:16:35]line > о реализуемом товаре [12:16:35]line ОКРУГЛЕНИЕ: -0.28 [12:16:35]line ИТОГО: 700.00 [12:16:35]line Внесено: 700.00 [12:16:35]line СДАЧА: 0.00 [12:16:35]line НСП 1% : 6.20 [12:16:35]line НДС 12% : 74.37 [12:16:35]line Наличными: 700.00 [12:16:35]line Безнал.: 0.00 [12:16:35]line Место: АЗС № 86 "Партнер Нефть" [12:16:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:16:35]line СНО: Общий режим [12:16:35]line Чек 151 23.10.2024 12:16 [12:16:35]line Смена: 462 ФФД: 1.0 [12:16:35]line ЗНМ: 0300000155 [12:16:35]line РНМ: 0000000000100030 [12:16:35]line Версия ККМ: 001 [12:16:35]line ФМ: 0000000000965340 [12:16:35]line ФД: 188693 [12:16:35]line ФПД: 261410294107122 [12:16:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121634&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188693&fm=261410294107122&tin=02508201610067®Number=0000000000100030&sum=70000 [12:16:35]written 0, free lines is 4095 [12:16:35]OFD Sender: Processing packet 188693 [packets to send 1062, broken 1061] [12:16:35]ProducePacketName [12:16:35]name=ofd_packets/00188693 [12:16:35]OFD Sender: To server: pG, [12:16:35]CommunicateWithHost lk.salyk.kg:30040 [12:16:35]ConnectInit lk.salyk.kg [12:16:35]Connected sock=10 [12:16:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1D 19 04 01 2B DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 22 E9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E1 02 00 35 04 06 00 ED C0 53 B8 8B F2 EF E3 1B AC BB F8 5E 25 [12:16:36]Write to MH i2c: 01 00 00 9E 08 A6 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: 01 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: 01 07 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 4A 0C 03 [12:16:36]RasterBufferAndPrint [12:16:36]line [12:16:36]line [12:16:36]line [12:16:36]line [12:16:36]line [12:16:36]written 0, free lines is 3151 [12:16:36]MH_Cut [12:16:36]Write to MH i2c: D1 01 00 A5 08 01 7F [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: D1 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: D1 01 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: D1 01 00 A5 08 00 7E [12:16:36]Write to MH i2c: 01 00 00 A6 08 AE [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E8 85 47 00 FE 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E1 02 00 F4 03 04 00 0D 93 18 67 B6 04 01 00 00 D7 10 6B 0B C3 B1 D2 A6 [12:16:36]CommunicateWithHost err = 0 [12:16:36]CheckOFDResponse [12:16:36]1017 (14) - 77093643461234 [12:16:36]1041 (16) - 0000000000965340 [12:16:36]1040 (4) - 188693 [12:16:36]1012 (4) - 23.10.2024 06:09 [12:16:36]1206 (1) - 0 [12:16:36]OFD Sender: Remove packet 188693 [12:16:36]ProducePacketName [12:16:36]name=ofd_packets/00188693 [12:16:36]NVStorageDeleteData [12:16:36]OFD Sender: No OFD packet to send [12:16:37]*** Cut start [12:16:37]*** Partial cut [12:16:37]*** CUTSNS_PIN = 1 [12:16:37]*** CUTSNS_PIN = 0 [12:16:37]*** Brake cut motor [12:16:37]Read from MH i2c: 01 [12:16:37]MH_I2C_Read... [12:16:37]*** Stop cut motor [12:16:37]*** Cut end [12:16:37]Read from MH i2c: 01 07 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 FF 0F C3 [12:16:37]process_action close_receipt done [12:16:37]requested_data is exist [12:16:37]produce_requested_data [12:16:37]requested_item fm.sn is exist - process it [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 11 00 00 [12:16:37]Write to MH i2c: E2 08 00 A7 08 80 11 00 00 00 00 00 00 29 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 17 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 17 00 A7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [12:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:16:38]wFMCommunicate OK [12:16:38]requested_item fd.num is exist - process it [12:16:38]SAM_PROTO_GetFieldsCounters [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 13 00 00 [12:16:38]Write to MH i2c: E2 08 00 A8 08 80 13 00 00 00 00 00 00 2C [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 62 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 62 00 A8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [12:16:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_GetFieldsCounters done [12:16:38]requested_item shift.num is exist - process it [12:16:38]requested_item shift.opened is exist - process it [12:16:38]req_shift_opened [12:16:38]FM_GetShiftState [12:16:38]SAM_PROTO_GetShiftState [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 13 01 00 [12:16:38]Write to MH i2c: E2 08 00 A9 08 80 13 01 00 00 00 00 00 2E [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0E 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0E 00 A9 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 16 [12:16:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_GetShiftState done [12:16:38]FM_GetShiftState done [12:16:38]req_shift_opened done [12:16:38]requested_item shift.open_date is exist - process it [12:16:38]req_shift_open_date [12:16:38]req_shift_open_date done [12:16:38]produce_requested_data done [12:16:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188693,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:16:38]process_action_free close_receipt [12:16:38]json_value_free [12:16:38]json_value_free done [12:16:38]process_json_proto returns [12:16:38]Send response to host [12:16:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188693,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:16:38]free response buf [12:16:38]execute_script done [12:16:38]execute_script returns [12:16:38]free content buf [12:16:38]Sock 7.Close socket [12:16:38]Sock 7.Thread stoped [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17: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:37]accept exits with 9 [12:19:37]New connection [12:19:37]New thread 3067018596 created [12:19:37]Thread 3067161956 joined [12:19:37]Waiting for new connection... [12:19:37] Sock 9.Parse request [12:19:37]Sock 9.Check first char [12:19:37]Sock 9.First char is OK [12:19:37]request: POST /json_proto HTTP/1.0 [12:19:37]Method: POST [12:19:37]URL: /json_proto [12:19:37]Method is POST - this is cgi request [12:19:37]url: /json_proto [12:19:37]query_string will be loaded in cgi processing [12:19:37]execute_cgi json_proto POST (null) [12:19:37]execute_cgi path=json_proto method=POST [12:19:37]POST find Content-Length [12:19:37]Host: 172.17.42.131:8080 [12:19:37]Content-Length: 682 [12:19:37]Content-Type: application/json [12:19:37] [12:19:37]POST finish read [12:19:37]Found Content-Length = 682 [12:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:37]execute_script... [12:19:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:37]POST & json_proto [12:19:37]process_json_proto [12:19:37]json parsed OK: [12:19:37]protocol is kg_v1.0 [12:19:37]action value=close_receipt [12:19:37]process_action close_receipt [12:19:37]cmd_close_receipt [12:19:37]MH_GetDate [12:19:37]Write to MH i2c: F0 00 00 AA 08 A1 [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: F0 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: F0 09 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: F0 09 00 AA 08 00 DA E9 18 67 A0 18 CA 66 D4 [12:19:37]GetLastDocTimeStamp 1729685794 [12:19:37]current date 1729685978 [12:19:37]FM_GetShiftState [12:19:37]SAM_PROTO_GetShiftState [12:19:37]wFMCommunicate request_size=4 [12:19:37]MH_SAM_APDU [12:19:37]CAPDU: 80 13 01 00 [12:19:37]Write to MH i2c: E2 08 00 AB 08 80 13 01 00 00 00 00 00 30 [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 0E 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 0E 00 AB 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 18 [12:19:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:19:37]wFMCommunicate OK [12:19:37]SAM_PROTO_GetShiftState done [12:19:37]FM_GetShiftState done [12:19:37]opened in 1729642525 [12:19:37]opened+sec_in_day 1729728925 [12:19:37]quantity*price = 150032 [12:19:37]sum+1 = 150033 [12:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 152 23.10.2024 12:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188694 ФПД: 204251738907751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121938&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188694&fm=204251738907751&tin=02508201610067®Number=0000000000100030&sum=150000 [12:19:38]StoreToDocumentArchive [12:19:38]shift 462 fd 188694 [12:19:38]save to /storage/0462/doc_00188694 [12:19:38]save last doc name /storage/0462/doc_00188694 to /storage/kkm_last_doc_name [12:19:38]save OK [12:19:38]Clear old archive folders... [12:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:38]tlvbuf is 01C508E0 [12:19:38]SAM_PROTO_ClearQueue [12:19:38]wFMCommunicate request_size=4 [12:19:38]MH_SAM_APDU [12:19:38]CAPDU: 80 09 00 00 [12:19:38]Write to MH i2c: E2 08 00 B8 08 80 09 00 00 00 00 00 00 32 [12:19:38]Write i2c OK [12:19:38]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [12:19:39]RAPDU: 90 00 [12:19:39]wFMCommunicate OK [12:19:39]SAM_PROTO_ClearQueue done [12:19:39]KKMCreateOFDPacket [12:19:39]OFDProtocolAddRootSTLVToBuf [12:19:39]FM_MakeSignedData [12:19:39]FM_MakeSignedData [12:19:39]SAM_PROTO_SignData [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 0D 01 02 [12:19:39]Write to MH i2c: E2 08 00 B9 08 80 0D 01 02 00 00 00 00 3A [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 B9 08 00 90 00 35 [12:19:39]RAPDU: 90 00 [12:19:39]wFMCommunicate OK [12:19:39]wFMCommunicate request_size=255 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 DA E9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E1 02 00 35 04 06 00 B9 [12:19:39]Write to MH i2c: E2 02 01 BA 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 DA E9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E1 02 00 35 04 06 00 B9 00 00 6B [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 BA 08 00 90 00 36 [12:19:39]RAPDU: 90 00 [12:19:39]wFMCommunicate OK [12:19:39]wFMCommunicate request_size=10 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 0D 02 02 05 C4 10 57 A4 67 [12:19:39]Write to MH i2c: E2 0D 00 BB 08 80 0D 02 02 05 00 C4 10 57 A4 67 00 00 7D [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 BB 08 00 90 00 37 [12:19:39]RAPDU: 90 00 [12:19:39]wFMCommunicate OK [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 0D 03 02 [12:19:39]Write to MH i2c: E2 08 00 BC 08 80 0D 03 02 00 00 00 00 3F [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 0B 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 0B 00 BC 08 00 7C 56 88 62 61 71 0C 11 90 00 EB [12:19:39]RAPDU: 7C 56 88 62 61 71 0C 11 90 00 [12:19:39]wFMCommunicate OK [12:19:39]SAM_PROTO_SignData done [12:19:39]FM_MakeSignedData done [12:19:39]CreateOFDProtocolMessage [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 11 00 00 [12:19:39]Write to MH i2c: E2 08 00 BD 08 80 11 00 00 00 00 00 00 3F [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 17 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 17 00 BD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [12:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:39]wFMCommunicate OK [12:19:39]CreateOFDProtocolMessage done [12:19:39]OFDSenderStorePacket 188694 [12:19:39]StoreOFDPacket docnum=188694 [12:19:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 F8 07 01 E7 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 DA E9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E1 02 00 35 04 06 00 B9 C4 10 57 A4 67 7C 56 88 62 61 71 0C 11 [12:19:39]CheckFolder [12:19:39]dirname=/storage/ofd_packets [12:19:39]CheckFolder done [12:19:39]ProducePacketName [12:19:39]name=ofd_packets/00188694 [12:19:39]NVStorageSaveData ofd_packets/00188694 [12:19:39]File name is /storage/ofd_packets/00188694 [12:19:39]Write 301 bytes [12:19:39]NVStorageSaveData done [12:19:39]OFDSenderStorePacket done [12:19:39]KKMCreateOFDPacket done [12:19:39]NVStorageSaveData kkm_last_timestamp [12:19:39]File name is /storage/kkm_last_timestamp [12:19:39]Write 4 bytes [12:19:39]NVStorageSaveData done [12:19:39]ExternCall_PrintAddStr [12:19:39]wPrintStart [12:19:39]Write to MH i2c: 01 00 00 BE 08 C6 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: 01 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: 01 07 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 FF 0F DB [12:19:39]RasterBufferAndPrint [12:19:39]line Счет N : (1)210754 [12:19:39]line ИНН: 02508201610067 [12:19:39]line Контрольно-Кассовый Чек [12:19:39]line ПРОДАЖА [12:19:39]line ТРК (МРК, ГНК) : 13 [12:19:39]line Товар: 2710124500 [12:19:39]line Аи-95-К-3 [12:19:39]line 20.220 * 74.20 [12:19:39]line = 1500.32 [12:19:39]line НДС 12% НСП 1% [12:19:39]line > о реализуемом товаре [12:19:39]line ОКРУГЛЕНИЕ: -0.32 [12:19:39]line ИТОГО: 1500.00 [12:19:39]line Внесено: 1500.00 [12:19:39]line СДАЧА: 0.00 [12:19:39]line НСП 1% : 13.28 [12:19:39]line НДС 12% : 159.33 [12:19:39]line Наличными: 1500.00 [12:19:39]line Безнал.: 0.00 [12:19:39]line Место: АЗС № 86 "Партнер Нефть" [12:19:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:19:39]line СНО: Общий режим [12:19:39]line Чек 152 23.10.2024 12:19 [12:19:39]line Смена: 462 ФФД: 1.0 [12:19:39]line ЗНМ: 0300000155 [12:19:39]line РНМ: 0000000000100030 [12:19:39]line Версия ККМ: 001 [12:19:39]line ФМ: 0000000000965340 [12:19:39]line ФД: 188694 [12:19:39]line ФПД: 204251738907751 [12:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121938&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188694&fm=204251738907751&tin=02508201610067®Number=0000000000100030&sum=150000 [12:19:39]written 0, free lines is 4095 [12:19:39]OFD Sender: Processing packet 188694 [packets to send 1062, broken 1061] [12:19:39]ProducePacketName [12:19:39]name=ofd_packets/00188694 [12:19:39]OFD Sender: To server: pG, [12:19:39]CommunicateWithHost lk.salyk.kg:30040 [12:19:39]ConnectInit lk.salyk.kg [12:19:39]Write to MH i2c: 01 00 00 E9 08 F1 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: 01 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: 01 07 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: 01 07 00 E9 08 00 00 00 00 00 4E 0C 52 [12:19:39]RasterBufferAndPrint [12:19:39]line [12:19:39]line [12:19:39]line [12:19:39]line [12:19:39]line [12:19:39]written 0, free lines is 3153 [12:19:40]MH_Cut [12:19:40]Write to MH i2c: D1 01 00 F0 08 01 CA [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 01 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 01 00 F0 08 00 C9 [12:19:40]Write to MH i2c: 01 00 00 F1 08 F9 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:41]*** Cut start [12:19:41]*** Partial cut [12:19:41]*** CUTSNS_PIN = 1 [12:19:41]*** CUTSNS_PIN = 0 [12:19:41]*** Brake cut motor [12:19:41]Read from MH i2c: 01 [12:19:41]MH_I2C_Read... [12:19:41]*** Stop cut motor [12:19:41]*** Cut end [12:19:41]Read from MH i2c: 01 07 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 F1 08 00 00 00 00 00 FF 0F 0E [12:19:41]process_action close_receipt done [12:19:41]requested_data is exist [12:19:41]produce_requested_data [12:19:41]requested_item fm.sn is exist - process it [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 11 00 00 [12:19:41]Write to MH i2c: E2 08 00 F2 08 80 11 00 00 00 00 00 00 74 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 17 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 17 00 F2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [12:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:42]wFMCommunicate OK [12:19:42]requested_item fd.num is exist - process it [12:19:42]SAM_PROTO_GetFieldsCounters [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 13 00 00 [12:19:42]Write to MH i2c: E2 08 00 F3 08 80 13 00 00 00 00 00 00 77 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 62 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 62 00 F3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [12:19:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_GetFieldsCounters done [12:19:42]requested_item shift.num is exist - process it [12:19:42]requested_item shift.opened is exist - process it [12:19:42]req_shift_opened [12:19:42]FM_GetShiftState [12:19:42]SAM_PROTO_GetShiftState [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 13 01 00 [12:19:42]Write to MH i2c: E2 08 00 F4 08 80 13 01 00 00 00 00 00 79 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 F4 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 61 [12:19:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_GetShiftState done [12:19:42]FM_GetShiftState done [12:19:42]req_shift_opened done [12:19:42]requested_item shift.open_date is exist - process it [12:19:42]req_shift_open_date [12:19:42]req_shift_open_date done [12:19:42]produce_requested_data done [12:19:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188694,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:19:42]process_action_free close_receipt [12:19:42]json_value_free [12:19:42]json_value_free done [12:19:42]process_json_proto returns [12:19:42]Send response to host [12:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188694,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:19:42]free response buf [12:19:42]execute_script done [12:19:42]execute_script returns [12:19:42]free content buf [12:19:42]Sock 9.Close socket [12:19:42]Sock 9.Thread stoped [12:21:50]ConnectInit Can't connect to host [12:21:50]CommunicateWithHost connect error [12:21:50]CommunicateWithHost err = -1 [12:21:50]OFD Sender: Server communicate error [12:21:55]OFD Sender: Processing packet 188694 [packets to send 1062, broken 1061] [12:21:55]ProducePacketName [12:21:55]name=ofd_packets/00188694 [12:21:55]OFD Sender: To server: pG, [12:21:55]CommunicateWithHost lk.salyk.kg:30040 [12:21:55]ConnectInit lk.salyk.kg [12:21:55]Connected sock=9 [12:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 F8 07 01 E7 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 DA E9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E1 02 00 35 04 06 00 B9 C4 10 57 A4 67 7C 56 88 62 61 71 0C 11 [12:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 92 47 00 0E 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 16 E1 02 00 F4 03 04 00 4C 94 18 67 B6 04 01 00 00 F9 6A 1A 6B 22 D5 53 FC [12:21:56]CommunicateWithHost err = 0 [12:21:56]CheckOFDResponse [12:21:56]1017 (14) - 77093643461234 [12:21:56]1041 (16) - 0000000000965340 [12:21:56]1040 (4) - 188694 [12:21:56]1012 (4) - 23.10.2024 06:14 [12:21:56]1206 (1) - 0 [12:21:56]OFD Sender: Remove packet 188694 [12:21:56]ProducePacketName [12:21:56]name=ofd_packets/00188694 [12:21:56]NVStorageDeleteData [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:11]accept exits with 7 [12:23:11]New connection [12:23:11]New thread 3067161956 created [12:23:11]Thread 3067018596 joined [12:23:11]Waiting for new connection... [12:23:11] Sock 7.Parse request [12:23:11]Sock 7.Check first char [12:23:11]Sock 7.First char is OK [12:23:11]request: POST /json_proto HTTP/1.0 [12:23:11]Method: POST [12:23:11]URL: /json_proto [12:23:11]Method is POST - this is cgi request [12:23:11]url: /json_proto [12:23:11]query_string will be loaded in cgi processing [12:23:11]execute_cgi json_proto POST (null) [12:23:11]execute_cgi path=json_proto method=POST [12:23:11]POST find Content-Length [12:23:11]Host: 172.17.42.131:8080 [12:23:11]Content-Length: 754 [12:23:11]Content-Type: application/json [12:23:11] [12:23:11]POST finish read [12:23:11]Found Content-Length = 754 [12:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:11]execute_script... [12:23:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:11]POST & json_proto [12:23:11]process_json_proto [12:23:11]json parsed OK: [12:23:11]protocol is kg_v1.0 [12:23:11]action value=close_receipt [12:23:11]process_action close_receipt [12:23:11]cmd_close_receipt [12:23:11]MH_GetDate [12:23:11]Write to MH i2c: F0 00 00 F5 08 EC [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: F0 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: F0 09 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: F0 09 00 F5 08 00 B0 EA 18 67 A0 18 CA 66 F6 [12:23:11]GetLastDocTimeStamp 1729685978 [12:23:11]current date 1729686192 [12:23:11]FM_GetShiftState [12:23:11]SAM_PROTO_GetShiftState [12:23:11]wFMCommunicate request_size=4 [12:23:11]MH_SAM_APDU [12:23:11]CAPDU: 80 13 01 00 [12:23:11]Write to MH i2c: E2 08 00 F6 08 80 13 01 00 00 00 00 00 7B [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:11]Read from MH i2c: E2 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 0E 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 0E 00 F6 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 63 [12:23:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:23:11]wFMCommunicate OK [12:23:11]SAM_PROTO_GetShiftState done [12:23:11]FM_GetShiftState done [12:23:11]opened in 1729642525 [12:23:11]opened+sec_in_day 1729728925 [12:23:11]quantity*price = 0 [12:23:11]sum+1 = 1 [12:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 153 23.10.2024 12:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118642 ФМ: 0000000000965340 ФД: 188695 ФПД: 40956740834447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122312&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188695&fm=40956740834447&tin=02508201610067®Number=0000000000100030&sum=0 [12:23:13]StoreToDocumentArchive [12:23:13]shift 462 fd 188695 [12:23:13]save to /storage/0462/doc_00188695 [12:23:13]save last doc name /storage/0462/doc_00188695 to /storage/kkm_last_doc_name [12:23:13]save OK [12:23:13]Clear old archive folders... [12:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:13]tlvbuf is 01C593D0 [12:23:13]SAM_PROTO_ClearQueue [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 09 00 00 [12:23:13]Write to MH i2c: E2 08 00 03 09 80 09 00 00 00 00 00 00 7E [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]SAM_PROTO_ClearQueue done [12:23:13]KKMCreateOFDPacket [12:23:13]OFDProtocolAddRootSTLVToBuf [12:23:13]FM_MakeSignedData [12:23:13]FM_MakeSignedData [12:23:13]SAM_PROTO_SignData [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 01 02 [12:23:13]Write to MH i2c: E2 08 00 04 09 80 0D 01 02 00 00 00 00 86 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 04 09 00 90 00 81 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]wFMCommunicate request_size=255 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B0 EA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E1 02 00 35 04 06 00 25 [12:23:13]Write to MH i2c: E2 02 01 05 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B0 EA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E1 02 00 35 04 06 00 25 00 00 82 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 05 09 00 90 00 82 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]wFMCommunicate request_size=10 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 02 02 05 3F FB FD 14 8F [12:23:13]Write to MH i2c: E2 0D 00 06 09 80 0D 02 02 05 00 3F FB FD 14 8F 00 00 6D [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 06 09 00 90 00 83 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 03 02 [12:23:13]Write to MH i2c: E2 08 00 07 09 80 0D 03 02 00 00 00 00 8B [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 0B 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 0B 00 07 09 00 90 93 4D 60 70 62 94 A9 90 00 6B [12:23:13]RAPDU: 90 93 4D 60 70 62 94 A9 90 00 [12:23:13]wFMCommunicate OK [12:23:13]SAM_PROTO_SignData done [12:23:13]FM_MakeSignedData done [12:23:13]CreateOFDProtocolMessage [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 11 00 00 [12:23:13]Write to MH i2c: E2 08 00 08 09 80 11 00 00 00 00 00 00 8B [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 17 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 17 00 08 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [12:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:23:13]wFMCommunicate OK [12:23:13]CreateOFDProtocolMessage done [12:23:13]OFDSenderStorePacket 188695 [12:23:13]StoreOFDPacket docnum=188695 [12:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 B6 07 01 B4 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B0 EA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E1 02 00 35 04 06 00 25 3F FB FD 14 8F 90 93 4D 60 70 62 94 A9 [12:23:13]CheckFolder [12:23:13]dirname=/storage/ofd_packets [12:23:13]CheckFolder done [12:23:13]ProducePacketName [12:23:13]name=ofd_packets/00188695 [12:23:13]NVStorageSaveData ofd_packets/00188695 [12:23:13]File name is /storage/ofd_packets/00188695 [12:23:13]Write 301 bytes [12:23:13]NVStorageSaveData done [12:23:13]OFDSenderStorePacket done [12:23:13]KKMCreateOFDPacket done [12:23:13]NVStorageSaveData kkm_last_timestamp [12:23:13]File name is /storage/kkm_last_timestamp [12:23:13]Write 4 bytes [12:23:13]NVStorageSaveData done [12:23:13]ExternCall_PrintAddStr [12:23:13]wPrintStart [12:23:13]Write to MH i2c: 01 00 00 09 09 12 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 FF 0F 27 [12:23:13]RasterBufferAndPrint [12:23:13]line Счет N : (1)210755 [12:23:13]line ИНН: 02508201610067 [12:23:13]line Контрольно-Кассовый Чек [12:23:13]line ПРОДАЖА [12:23:13]line ТРК (МРК, ГНК) : 32 [12:23:13]line Товар: 2710124130 [12:23:13]line Аи-92-К-3 [12:23:13]line 20.000 * 0.00 [12:23:13]line = 0.00 [12:23:13]line НДС 12% НСП 1% [12:23:13]line > о реализуемом товаре [12:23:13]line ИТОГО: 0.00 [12:23:13]line НСП 1% : 0.00 [12:23:13]line НДС 12% : 0.00 [12:23:13]line Наличными: 0.00 [12:23:13]line Безнал.: 0.00 [12:23:13]line Место: АЗС № 86 "Партнер Нефть" [12:23:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:23:13]line СНО: Общий режим [12:23:13]line Чек 153 23.10.2024 12:23 [12:23:13]line Смена: 462 ФФД: 1.0 [12:23:13]line ЗНМ: 0300000155 [12:23:13]line РНМ: 0000000000100030 [12:23:13]line Версия ККМ: 001 [12:23:13]line Талоны: ТК ГПНА Online [12:23:13]line 30118642 [12:23:13]line ФМ: 0000000000965340 [12:23:13]line ФД: 188695 [12:23:13]line ФПД: 40956740834447 [12:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122312&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188695&fm=40956740834447&tin=02508201610067®Number=0000000000100030&sum=0 [12:23:13]OFD Sender: Processing packet 188695 [packets to send 1062, broken 1061] [12:23:13]ProducePacketName [12:23:13]name=ofd_packets/00188695 [12:23:13]OFD Sender: To server: pG, [12:23:13]CommunicateWithHost lk.salyk.kg:30040 [12:23:13]ConnectInit lk.salyk.kg [12:23:13]written 0, free lines is 4095 [12:23:13]Connected sock=10 [12:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 B6 07 01 B4 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B0 EA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E1 02 00 35 04 06 00 25 3F FB FD 14 8F 90 93 4D 60 70 62 94 A9 [12:23:14]Write to MH i2c: 01 00 00 33 09 3C [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 07 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 07 00 33 09 00 00 00 00 00 60 0C AF [12:23:14]RasterBufferAndPrint [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]written 0, free lines is 3174 [12:23:14]MH_Cut [12:23:14]Write to MH i2c: D1 01 00 3A 09 01 15 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: D1 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: D1 01 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: D1 01 00 3A 09 00 14 [12:23:14]Write to MH i2c: 01 00 00 3B 09 44 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F0 73 47 00 23 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E1 02 00 F4 03 04 00 9B 94 18 67 B6 04 01 00 00 C9 EE 31 C7 F4 11 6E A1 [12:23:14]CommunicateWithHost err = 0 [12:23:14]CheckOFDResponse [12:23:14]1017 (14) - 77093643461234 [12:23:14]1041 (16) - 0000000000965340 [12:23:14]1040 (4) - 188695 [12:23:14]1012 (4) - 23.10.2024 06:15 [12:23:14]1206 (1) - 0 [12:23:14]OFD Sender: Remove packet 188695 [12:23:14]ProducePacketName [12:23:14]name=ofd_packets/00188695 [12:23:14]NVStorageDeleteData [12:23:14]OFD Sender: No OFD packet to send [12:23:15]*** Cut start [12:23:15]*** Partial cut [12:23:15]*** CUTSNS_PIN = 1 [12:23:15]*** CUTSNS_PIN = 0 [12:23:15]*** Brake cut motor [12:23:16]Read from MH i2c: 01 [12:23:16]MH_I2C_Read... [12:23:16]*** Stop cut motor [12:23:16]*** Cut end [12:23:16]Read from MH i2c: 01 07 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 07 00 3B 09 00 00 00 00 00 FF 0F 59 [12:23:16]process_action close_receipt done [12:23:16]requested_data is exist [12:23:16]produce_requested_data [12:23:16]requested_item fm.sn is exist - process it [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 11 00 00 [12:23:16]Write to MH i2c: E2 08 00 3C 09 80 11 00 00 00 00 00 00 BF [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 17 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 17 00 3C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [12:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:23:16]wFMCommunicate OK [12:23:16]requested_item fd.num is exist - process it [12:23:16]SAM_PROTO_GetFieldsCounters [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 13 00 00 [12:23:16]Write to MH i2c: E2 08 00 3D 09 80 13 00 00 00 00 00 00 C2 [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 62 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 62 00 3D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [12:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:16]wFMCommunicate OK [12:23:16]SAM_PROTO_GetFieldsCounters done [12:23:16]requested_item shift.num is exist - process it [12:23:16]requested_item shift.opened is exist - process it [12:23:16]req_shift_opened [12:23:16]FM_GetShiftState [12:23:16]SAM_PROTO_GetShiftState [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 13 01 00 [12:23:16]Write to MH i2c: E2 08 00 3E 09 80 13 01 00 00 00 00 00 C4 [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0E 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0E 00 3E 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AC [12:23:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:23:16]wFMCommunicate OK [12:23:16]SAM_PROTO_GetShiftState done [12:23:16]FM_GetShiftState done [12:23:16]req_shift_opened done [12:23:16]requested_item shift.open_date is exist - process it [12:23:16]req_shift_open_date [12:23:16]req_shift_open_date done [12:23:16]produce_requested_data done [12:23:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188695,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:23:16]process_action_free close_receipt [12:23:16]json_value_free [12:23:16]json_value_free done [12:23:16]process_json_proto returns [12:23:16]Send response to host [12:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188695,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:23:16]free response buf [12:23:16]execute_script done [12:23:16]execute_script returns [12:23:16]free content buf [12:23:16]Sock 7.Close socket [12:23:16]Sock 7.Thread stoped [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:21]accept exits with 9 [12:26:21]New connection [12:26:21]New thread 3067018596 created [12:26:21]Thread 3067161956 joined [12:26:21]Waiting for new connection... [12:26:21] Sock 9.Parse request [12:26:21]Sock 9.Check first char [12:26:21]Sock 9.First char is OK [12:26:21]request: POST /json_proto HTTP/1.0 [12:26:21]Method: POST [12:26:21]URL: /json_proto [12:26:21]Method is POST - this is cgi request [12:26:21]url: /json_proto [12:26:21]query_string will be loaded in cgi processing [12:26:21]execute_cgi json_proto POST (null) [12:26:21]execute_cgi path=json_proto method=POST [12:26:21]POST find Content-Length [12:26:21]Host: 172.17.42.131:8080 [12:26:21]Content-Length: 677 [12:26:21]Content-Type: application/json [12:26:21] [12:26:21]POST finish read [12:26:21]Found Content-Length = 677 [12:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:21]execute_script... [12:26:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:21]POST & json_proto [12:26:21]process_json_proto [12:26:21]json parsed OK: [12:26:21]protocol is kg_v1.0 [12:26:21]action value=close_receipt [12:26:21]process_action close_receipt [12:26:21]cmd_close_receipt [12:26:21]MH_GetDate [12:26:21]Write to MH i2c: F0 00 00 3F 09 37 [12:26:21]Write i2c OK [12:26:21]MH_I2C_Read... [12:26:21]Read from MH i2c: F0 [12:26:21]MH_I2C_Read... [12:26:21]Read from MH i2c: F0 09 00 [12:26:21]MH_I2C_Read... [12:26:21]Read from MH i2c: F0 09 00 3F 09 00 6D EB 18 67 A0 18 CA 66 FF [12:26:21]GetLastDocTimeStamp 1729686192 [12:26:21]current date 1729686381 [12:26:21]FM_GetShiftState [12:26:21]SAM_PROTO_GetShiftState [12:26:21]wFMCommunicate request_size=4 [12:26:21]MH_SAM_APDU [12:26:21]CAPDU: 80 13 01 00 [12:26:21]Write to MH i2c: E2 08 00 40 09 80 13 01 00 00 00 00 00 C6 [12:26:21]Write i2c OK [12:26:21]MH_I2C_Read... [12:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:21]Read from MH i2c: E2 [12:26:21]MH_I2C_Read... [12:26:21]Read from MH i2c: E2 0E 00 [12:26:21]MH_I2C_Read... [12:26:21]Read from MH i2c: E2 0E 00 40 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AE [12:26:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:26:21]wFMCommunicate OK [12:26:21]SAM_PROTO_GetShiftState done [12:26:21]FM_GetShiftState done [12:26:21]opened in 1729642525 [12:26:21]opened+sec_in_day 1729728925 [12:26:21]quantity*price = 50041 [12:26:21]sum+1 = 50042 [12:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 154 23.10.2024 12:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188696 ФПД: 191589804494665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122621&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188696&fm=191589804494665&tin=02508201610067®Number=0000000000100030&sum=50000 [12:26:22]StoreToDocumentArchive [12:26:22]shift 462 fd 188696 [12:26:22]save to /storage/0462/doc_00188696 [12:26:22]save last doc name /storage/0462/doc_00188696 to /storage/kkm_last_doc_name [12:26:22]save OK [12:26:22]Clear old archive folders... [12:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:22]tlvbuf is 01C509A0 [12:26:22]SAM_PROTO_ClearQueue [12:26:22]wFMCommunicate request_size=4 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 09 00 00 [12:26:22]Write to MH i2c: E2 08 00 4D 09 80 09 00 00 00 00 00 00 C8 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 03 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 03 00 4D 09 00 90 00 CA [12:26:22]RAPDU: 90 00 [12:26:22]wFMCommunicate OK [12:26:22]SAM_PROTO_ClearQueue done [12:26:22]KKMCreateOFDPacket [12:26:22]OFDProtocolAddRootSTLVToBuf [12:26:22]FM_MakeSignedData [12:26:22]FM_MakeSignedData [12:26:22]SAM_PROTO_SignData [12:26:22]wFMCommunicate request_size=4 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 0D 01 02 [12:26:22]Write to MH i2c: E2 08 00 4E 09 80 0D 01 02 00 00 00 00 D0 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 03 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [12:26:22]RAPDU: 90 00 [12:26:22]wFMCommunicate OK [12:26:22]wFMCommunicate request_size=255 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 6D EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E1 02 00 35 04 06 00 AE [12:26:22]Write to MH i2c: E2 02 01 4F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 6D EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E1 02 00 35 04 06 00 AE 00 00 2C [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 03 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 03 00 4F 09 00 90 00 CC [12:26:22]RAPDU: 90 00 [12:26:22]wFMCommunicate OK [12:26:22]wFMCommunicate request_size=10 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 0D 02 02 05 3F FA 3D 4F 49 [12:26:22]Write to MH i2c: E2 0D 00 50 09 80 0D 02 02 05 00 3F FA 3D 4F 49 00 00 EB [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 03 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 03 00 50 09 00 90 00 CD [12:26:22]RAPDU: 90 00 [12:26:22]wFMCommunicate OK [12:26:22]wFMCommunicate request_size=4 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 0D 03 02 [12:26:22]Write to MH i2c: E2 08 00 51 09 80 0D 03 02 00 00 00 00 D5 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 0B 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 0B 00 51 09 00 87 B6 C6 00 06 A8 A9 87 90 00 B7 [12:26:22]RAPDU: 87 B6 C6 00 06 A8 A9 87 90 00 [12:26:22]wFMCommunicate OK [12:26:22]SAM_PROTO_SignData done [12:26:22]FM_MakeSignedData done [12:26:22]CreateOFDProtocolMessage [12:26:22]wFMCommunicate request_size=4 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 11 00 00 [12:26:22]Write to MH i2c: E2 08 00 52 09 80 11 00 00 00 00 00 00 D5 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 17 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 17 00 52 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [12:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:26:22]wFMCommunicate OK [12:26:22]CreateOFDProtocolMessage done [12:26:22]OFDSenderStorePacket 188696 [12:26:22]StoreOFDPacket docnum=188696 [12:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 18 2A 07 01 69 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 6D EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E1 02 00 35 04 06 00 AE 3F FA 3D 4F 49 87 B6 C6 00 06 A8 A9 87 [12:26:22]CheckFolder [12:26:22]dirname=/storage/ofd_packets [12:26:22]CheckFolder done [12:26:22]ProducePacketName [12:26:22]name=ofd_packets/00188696 [12:26:22]NVStorageSaveData ofd_packets/00188696 [12:26:22]File name is /storage/ofd_packets/00188696 [12:26:22]Write 301 bytes [12:26:22]NVStorageSaveData done [12:26:22]OFDSenderStorePacket done [12:26:22]KKMCreateOFDPacket done [12:26:22]NVStorageSaveData kkm_last_timestamp [12:26:22]File name is /storage/kkm_last_timestamp [12:26:22]Write 4 bytes [12:26:22]NVStorageSaveData done [12:26:22]ExternCall_PrintAddStr [12:26:22]wPrintStart [12:26:22]Write to MH i2c: 01 00 00 53 09 5C [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: 01 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: 01 07 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 FF 0F 71 [12:26:22]RasterBufferAndPrint [12:26:22]line Счет N : (1)210757 [12:26:22]line ИНН: 02508201610067 [12:26:22]line Контрольно-Кассовый Чек [12:26:22]line ПРОДАЖА [12:26:22]line ТРК (МРК, ГНК) : 42 [12:26:22]line Товар: 2710124130 [12:26:22]line Аи-92-К-3 [12:26:22]line 7.480 * 66.90 [12:26:22]line = 500.41 [12:26:22]line НДС 12% НСП 1% [12:26:22]line > о реализуемом товаре [12:26:22]line ОКРУГЛЕНИЕ: -0.41 [12:26:22]line ИТОГО: 500.00 [12:26:22]line Внесено: 500.00 [12:26:22]line СДАЧА: 0.00 [12:26:22]line НСП 1% : 4.43 [12:26:22]line НДС 12% : 53.14 [12:26:22]line Наличными: 500.00 [12:26:22]line Безнал.: 0.00 [12:26:22]line Место: АЗС № 86 "Партнер Нефть" [12:26:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:26:22]line СНО: Общий режим [12:26:22]line Чек 154 23.10.2024 12:26 [12:26:22]line Смена: 462 ФФД: 1.0 [12:26:22]line ЗНМ: 0300000155 [12:26:22]line РНМ: 0000000000100030 [12:26:22]line Версия ККМ: 001 [12:26:22]line ФМ: 0000000000965340 [12:26:22]line ФД: 188696 [12:26:22]line ФПД: 191589804494665 [12:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122621&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188696&fm=191589804494665&tin=02508201610067®Number=0000000000100030&sum=50000 [12:26:22]written 0, free lines is 4095 [12:26:22]OFD Sender: Processing packet 188696 [packets to send 1062, broken 1061] [12:26:22]ProducePacketName [12:26:22]name=ofd_packets/00188696 [12:26:22]OFD Sender: To server: pG, [12:26:22]CommunicateWithHost lk.salyk.kg:30040 [12:26:22]ConnectInit lk.salyk.kg [12:26:23]Connected sock=10 [12:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 18 2A 07 01 69 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 6D EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E1 02 00 35 04 06 00 AE 3F FA 3D 4F 49 87 B6 C6 00 06 A8 A9 87 [12:26:23]Write to MH i2c: 01 00 00 7E 09 87 [12:26:23]Write i2c OK [12:26:23]MH_I2C_Read... [12:26:23]Read from MH i2c: 01 [12:26:23]MH_I2C_Read... [12:26:23]Read from MH i2c: 01 07 00 [12:26:23]MH_I2C_Read... [12:26:23]Read from MH i2c: 01 07 00 7E 09 00 00 00 00 00 4E 0C E8 [12:26:23]RasterBufferAndPrint [12:26:23]line [12:26:23]line [12:26:23]line [12:26:23]line [12:26:23]line [12:26:23]written 0, free lines is 3154 [12:26:23]MH_Cut [12:26:23]Write to MH i2c: D1 01 00 85 09 01 60 [12:26:23]Write i2c OK [12:26:23]MH_I2C_Read... [12:26:23]Read from MH i2c: D1 [12:26:23]MH_I2C_Read... [12:26:23]Read from MH i2c: D1 01 00 [12:26:23]MH_I2C_Read... [12:26:23]Read from MH i2c: D1 01 00 85 09 00 5F [12:26:23]Write to MH i2c: 01 00 00 86 09 8F [12:26:23]Write i2c OK [12:26:23]MH_I2C_Read... [12:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B 33 47 00 2C 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 36 35 33 34 30 10 04 04 00 18 E1 02 00 F4 03 04 00 58 95 18 67 B6 04 01 00 00 F1 50 E2 2E C0 79 11 A4 [12:26:23]CommunicateWithHost err = 0 [12:26:23]CheckOFDResponse [12:26:23]1017 (14) - 77093643461234 [12:26:23]1041 (16) - 0000000000965340 [12:26:23]1040 (4) - 188696 [12:26:23]1012 (4) - 23.10.2024 06:19 [12:26:23]1206 (1) - 0 [12:26:23]OFD Sender: Remove packet 188696 [12:26:23]ProducePacketName [12:26:23]name=ofd_packets/00188696 [12:26:23]NVStorageDeleteData [12:26:24]OFD Sender: No OFD packet to send [12:26:24]*** Cut start [12:26:24]*** Partial cut [12:26:24]*** CUTSNS_PIN = 1 [12:26:24]*** CUTSNS_PIN = 0 [12:26:24]*** Brake cut motor [12:26:25]Read from MH i2c: 01 [12:26:25]MH_I2C_Read... [12:26:25]*** Stop cut motor [12:26:25]*** Cut end [12:26:25]Read from MH i2c: 01 07 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: 01 07 00 86 09 00 00 00 00 00 FF 0F A4 [12:26:25]process_action close_receipt done [12:26:25]requested_data is exist [12:26:25]produce_requested_data [12:26:25]requested_item fm.sn is exist - process it [12:26:25]wFMCommunicate request_size=4 [12:26:25]MH_SAM_APDU [12:26:25]CAPDU: 80 11 00 00 [12:26:25]Write to MH i2c: E2 08 00 87 09 80 11 00 00 00 00 00 00 0A [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:25]Read from MH i2c: E2 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 17 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 17 00 87 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [12:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:26:25]wFMCommunicate OK [12:26:25]requested_item fd.num is exist - process it [12:26:25]SAM_PROTO_GetFieldsCounters [12:26:25]wFMCommunicate request_size=4 [12:26:25]MH_SAM_APDU [12:26:25]CAPDU: 80 13 00 00 [12:26:25]Write to MH i2c: E2 08 00 88 09 80 13 00 00 00 00 00 00 0D [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:25]Read from MH i2c: E2 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 62 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 62 00 88 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [12:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:25]wFMCommunicate OK [12:26:25]SAM_PROTO_GetFieldsCounters done [12:26:25]requested_item shift.num is exist - process it [12:26:25]requested_item shift.opened is exist - process it [12:26:25]req_shift_opened [12:26:25]FM_GetShiftState [12:26:25]SAM_PROTO_GetShiftState [12:26:25]wFMCommunicate request_size=4 [12:26:25]MH_SAM_APDU [12:26:25]CAPDU: 80 13 01 00 [12:26:25]Write to MH i2c: E2 08 00 89 09 80 13 01 00 00 00 00 00 0F [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:25]Read from MH i2c: E2 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 0E 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 0E 00 89 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F7 [12:26:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:26:25]wFMCommunicate OK [12:26:25]SAM_PROTO_GetShiftState done [12:26:25]FM_GetShiftState done [12:26:25]req_shift_opened done [12:26:25]requested_item shift.open_date is exist - process it [12:26:25]req_shift_open_date [12:26:25]req_shift_open_date done [12:26:25]produce_requested_data done [12:26:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188696,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:26:25]process_action_free close_receipt [12:26:25]json_value_free [12:26:25]json_value_free done [12:26:25]process_json_proto returns [12:26:25]Send response to host [12:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188696,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:26:25]free response buf [12:26:25]execute_script done [12:26:25]execute_script returns [12:26:25]free content buf [12:26:25]Sock 9.Close socket [12:26:25]Sock 9.Thread stoped [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [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:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:53]accept exits with 7 [12:27:53]New connection [12:27:53]New thread 3067161956 created [12:27:53]Thread 3067018596 joined [12:27:53]Waiting for new connection... [12:27:53] Sock 7.Parse request [12:27:53]Sock 7.Check first char [12:27:53]Sock 7.First char is OK [12:27:53]request: POST /json_proto HTTP/1.0 [12:27:53]Method: POST [12:27:53]URL: /json_proto [12:27:53]Method is POST - this is cgi request [12:27:53]url: /json_proto [12:27:53]query_string will be loaded in cgi processing [12:27:53]execute_cgi json_proto POST (null) [12:27:53]execute_cgi path=json_proto method=POST [12:27:53]POST find Content-Length [12:27:53]Host: 172.17.42.131:8080 [12:27:53]Content-Length: 790 [12:27:53]Content-Type: application/json [12:27:53] [12:27:53]POST finish read [12:27:53]Found Content-Length = 790 [12:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53620", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:53]execute_script... [12:27:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53620", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:53]POST & json_proto [12:27:53]process_json_proto [12:27:53]json parsed OK: [12:27:53]protocol is kg_v1.0 [12:27:53]action value=close_receipt [12:27:53]process_action close_receipt [12:27:53]cmd_close_receipt [12:27:53]MH_GetDate [12:27:53]Write to MH i2c: F0 00 00 8A 09 82 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: F0 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: F0 09 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: F0 09 00 8A 09 00 CA EB 18 67 A0 18 CA 66 A7 [12:27:53]GetLastDocTimeStamp 1729686381 [12:27:53]current date 1729686474 [12:27:53]FM_GetShiftState [12:27:53]SAM_PROTO_GetShiftState [12:27:53]wFMCommunicate request_size=4 [12:27:53]MH_SAM_APDU [12:27:53]CAPDU: 80 13 01 00 [12:27:53]Write to MH i2c: E2 08 00 8B 09 80 13 01 00 00 00 00 00 11 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 0E 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 0E 00 8B 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F9 [12:27:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:27:53]wFMCommunicate OK [12:27:53]SAM_PROTO_GetShiftState done [12:27:53]FM_GetShiftState done [12:27:53]opened in 1729642525 [12:27:53]opened+sec_in_day 1729728925 [12:27:53]quantity*price = 0 [12:27:53]sum+1 = 1 [12:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 155 23.10.2024 12:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 53620 ФМ: 0000000000965340 ФД: 188697 ФПД: 15331013219073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122754&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188697&fm=15331013219073&tin=02508201610067®Number=0000000000100030&sum=0 [12:27:55]StoreToDocumentArchive [12:27:55]shift 462 fd 188697 [12:27:55]save to /storage/0462/doc_00188697 [12:27:55]save last doc name /storage/0462/doc_00188697 to /storage/kkm_last_doc_name [12:27:55]save OK [12:27:55]Clear old archive folders... [12:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:27:55]tlvbuf is 01C0CB60 [12:27:55]SAM_PROTO_ClearQueue [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 09 00 00 [12:27:55]Write to MH i2c: E2 08 00 98 09 80 09 00 00 00 00 00 00 13 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 98 09 00 90 00 15 [12:27:55]RAPDU: 90 00 [12:27:55]wFMCommunicate OK [12:27:55]SAM_PROTO_ClearQueue done [12:27:55]KKMCreateOFDPacket [12:27:55]OFDProtocolAddRootSTLVToBuf [12:27:55]FM_MakeSignedData [12:27:55]FM_MakeSignedData [12:27:55]SAM_PROTO_SignData [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 0D 01 02 [12:27:55]Write to MH i2c: E2 08 00 99 09 80 0D 01 02 00 00 00 00 1B [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 99 09 00 90 00 16 [12:27:55]RAPDU: 90 00 [12:27:55]wFMCommunicate OK [12:27:55]wFMCommunicate request_size=255 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 CA EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E1 02 00 35 04 06 00 0D F1 87 98 [12:27:55]Write to MH i2c: E2 02 01 9A 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 CA EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E1 02 00 35 04 06 00 0D F1 87 98 00 00 46 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 9A 09 00 90 00 17 [12:27:55]RAPDU: 90 00 [12:27:55]wFMCommunicate OK [12:27:55]wFMCommunicate request_size=7 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 0D 02 02 02 D3 01 [12:27:55]Write to MH i2c: E2 0A 00 9B 09 80 0D 02 02 02 00 D3 01 00 00 F6 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 9B 09 00 90 00 18 [12:27:55]RAPDU: 90 00 [12:27:55]wFMCommunicate OK [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 0D 03 02 [12:27:55]Write to MH i2c: E2 08 00 9C 09 80 0D 03 02 00 00 00 00 20 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 0B 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 0B 00 9C 09 00 A0 3D 67 0A 23 61 9F 9C 90 00 2E [12:27:55]RAPDU: A0 3D 67 0A 23 61 9F 9C 90 00 [12:27:55]wFMCommunicate OK [12:27:55]SAM_PROTO_SignData done [12:27:55]FM_MakeSignedData done [12:27:55]CreateOFDProtocolMessage [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 11 00 00 [12:27:55]Write to MH i2c: E2 08 00 9D 09 80 11 00 00 00 00 00 00 20 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 17 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 17 00 9D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [12:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:27:55]wFMCommunicate OK [12:27:55]CreateOFDProtocolMessage done [12:27:55]OFDSenderStorePacket 188697 [12:27:55]StoreOFDPacket docnum=188697 [12:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 89 50 04 01 0E F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 CA EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E1 02 00 35 04 06 00 0D F1 87 98 D3 01 A0 3D 67 0A 23 61 9F 9C [12:27:55]CheckFolder [12:27:55]dirname=/storage/ofd_packets [12:27:55]CheckFolder done [12:27:55]ProducePacketName [12:27:55]name=ofd_packets/00188697 [12:27:55]NVStorageSaveData ofd_packets/00188697 [12:27:55]File name is /storage/ofd_packets/00188697 [12:27:55]Write 298 bytes [12:27:55]NVStorageSaveData done [12:27:55]OFDSenderStorePacket done [12:27:55]KKMCreateOFDPacket done [12:27:55]NVStorageSaveData kkm_last_timestamp [12:27:55]File name is /storage/kkm_last_timestamp [12:27:55]Write 4 bytes [12:27:55]NVStorageSaveData done [12:27:55]ExternCall_PrintAddStr [12:27:55]wPrintStart [12:27:55]Write to MH i2c: 01 00 00 9E 09 A7 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: 01 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: 01 07 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: 01 07 00 9E 09 00 00 00 00 00 FF 0F BC [12:27:55]RasterBufferAndPrint [12:27:55]line Счет N : (1)210756 [12:27:55]line ИНН: 02508201610067 [12:27:55]line Контрольно-Кассовый Чек [12:27:55]line ПРОДАЖА [12:27:55]line ТРК (МРК, ГНК) : 51 [12:27:55]line Товар: 2710194210 [12:27:55]line ДТ-К-5 [12:27:55]line 125.000 * 0.00 [12:27:55]line = 0.00 [12:27:55]line НДС 12% НСП 1% [12:27:55]line > о реализуемом товаре [12:27:55]line ИТОГО: 0.00 [12:27:55]line НСП 1% : 0.00 [12:27:55]line НДС 12% : 0.00 [12:27:55]line Наличными: 0.00 [12:27:55]line Безнал.: 0.00 [12:27:55]line Место: АЗС № 86 "Партнер Нефть" [12:27:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:27:55]line СНО: Общий режим [12:27:55]line Чек 155 23.10.2024 12:27 [12:27:55]line Смена: 462 ФФД: 1.0 [12:27:55]line ЗНМ: 0300000155 [12:27:55]line РНМ: 0000000000100030 [12:27:55]line Версия ККМ: 001 [12:27:55]line Талоны: Топливная Карта [12:27:55]line 53620 [12:27:55]line ФМ: 0000000000965340 [12:27:55]line ФД: 188697 [12:27:55]line ФПД: 15331013219073 [12:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122754&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188697&fm=15331013219073&tin=02508201610067®Number=0000000000100030&sum=0 [12:27:55]written 0, free lines is 4095 [12:27:55]OFD Sender: Processing packet 188697 [packets to send 1062, broken 1061] [12:27:55]ProducePacketName [12:27:55]name=ofd_packets/00188697 [12:27:55]OFD Sender: To server: pG, [12:27:55]CommunicateWithHost lk.salyk.kg:30040 [12:27:55]ConnectInit lk.salyk.kg [12:27:55]Connected sock=9 [12:27:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 89 50 04 01 0E F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 CA EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E1 02 00 35 04 06 00 0D F1 87 98 D3 01 A0 3D 67 0A 23 61 9F 9C [12:27:56]Write to MH i2c: 01 00 00 C8 09 D1 [12:27:56]Write i2c OK [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: 01 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: 01 07 00 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: 01 07 00 C8 09 00 00 00 00 00 62 0C 46 [12:27:56]RasterBufferAndPrint [12:27:56]line [12:27:56]line [12:27:56]line [12:27:56]line [12:27:56]line [12:27:56]written 0, free lines is 3176 [12:27:56]MH_Cut [12:27:56]Write to MH i2c: D1 01 00 CF 09 01 AA [12:27:56]Write i2c OK [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: D1 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: D1 01 00 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: D1 01 00 CF 09 00 A9 [12:27:56]Write to MH i2c: 01 00 00 D0 09 D9 [12:27:56]Write i2c OK [12:27:56]MH_I2C_Read... [12:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 E6 47 00 3D 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E1 02 00 F4 03 04 00 B5 95 18 67 B6 04 01 00 00 A5 1D E0 9D 85 04 E5 5C [12:27:56]CommunicateWithHost err = 0 [12:27:56]CheckOFDResponse [12:27:56]1017 (14) - 77093643461234 [12:27:56]1041 (16) - 0000000000965340 [12:27:56]1040 (4) - 188697 [12:27:56]1012 (4) - 23.10.2024 06:20 [12:27:56]1206 (1) - 0 [12:27:56]OFD Sender: Remove packet 188697 [12:27:56]ProducePacketName [12:27:56]name=ofd_packets/00188697 [12:27:56]NVStorageDeleteData [12:27:56]OFD Sender: No OFD packet to send [12:27:57]*** Cut start [12:27:57]*** Partial cut [12:27:57]*** CUTSNS_PIN = 1 [12:27:57]*** CUTSNS_PIN = 0 [12:27:57]*** Brake cut motor [12:27:58]Read from MH i2c: 01 [12:27:58]MH_I2C_Read... [12:27:58]*** Stop cut motor [12:27:58]*** Cut end [12:27:58]Read from MH i2c: 01 07 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: 01 07 00 D0 09 00 00 00 00 00 FF 0F EE [12:27:58]process_action close_receipt done [12:27:58]requested_data is exist [12:27:58]produce_requested_data [12:27:58]requested_item fm.sn is exist - process it [12:27:58]wFMCommunicate request_size=4 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 11 00 00 [12:27:58]Write to MH i2c: E2 08 00 D1 09 80 11 00 00 00 00 00 00 54 [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:58]Read from MH i2c: E2 17 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 17 00 D1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A2 [12:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:27:58]wFMCommunicate OK [12:27:58]requested_item fd.num is exist - process it [12:27:58]SAM_PROTO_GetFieldsCounters [12:27:58]wFMCommunicate request_size=4 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 13 00 00 [12:27:58]Write to MH i2c: E2 08 00 D2 09 80 13 00 00 00 00 00 00 57 [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 62 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 62 00 D2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [12:27:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:58]wFMCommunicate OK [12:27:58]SAM_PROTO_GetFieldsCounters done [12:27:58]requested_item shift.num is exist - process it [12:27:58]requested_item shift.opened is exist - process it [12:27:58]req_shift_opened [12:27:58]FM_GetShiftState [12:27:58]SAM_PROTO_GetShiftState [12:27:58]wFMCommunicate request_size=4 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 13 01 00 [12:27:58]Write to MH i2c: E2 08 00 D3 09 80 13 01 00 00 00 00 00 59 [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 0E 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 0E 00 D3 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 41 [12:27:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:27:58]wFMCommunicate OK [12:27:58]SAM_PROTO_GetShiftState done [12:27:58]FM_GetShiftState done [12:27:58]req_shift_opened done [12:27:58]requested_item shift.open_date is exist - process it [12:27:58]req_shift_open_date [12:27:58]req_shift_open_date done [12:27:58]produce_requested_data done [12:27:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188697,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:27:58]process_action_free close_receipt [12:27:58]json_value_free [12:27:58]json_value_free done [12:27:58]process_json_proto returns [12:27:58]Send response to host [12:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188697,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:27:58]free response buf [12:27:58]execute_script done [12:27:58]execute_script returns [12:27:58]free content buf [12:27:58]Sock 7.Close socket [12:27:58]Sock 7.Thread stoped [12:28:01]OFD Sender: No OFD packet to send [12:28:03]accept exits with 10 [12:28:03]New connection [12:28:03]New thread 3067018596 created [12:28:03]Thread 3067161956 joined [12:28:03]Waiting for new connection... [12:28:03] Sock 10.Parse request [12:28:03]Sock 10.Check first char [12:28:03]Sock 10.First char is OK [12:28:03]request: POST /json_proto HTTP/1.0 [12:28:03]Method: POST [12:28:03]URL: /json_proto [12:28:03]Method is POST - this is cgi request [12:28:03]url: /json_proto [12:28:03]query_string will be loaded in cgi processing [12:28:03]execute_cgi json_proto POST (null) [12:28:03]execute_cgi path=json_proto method=POST [12:28:03]POST find Content-Length [12:28:03]Host: 172.17.42.131:8080 [12:28:03]Content-Length: 682 [12:28:03]Content-Type: application/json [12:28:03] [12:28:03]POST finish read [12:28:03]Found Content-Length = 682 [12:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:03]execute_script... [12:28:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:03]POST & json_proto [12:28:03]process_json_proto [12:28:03]json parsed OK: [12:28:03]protocol is kg_v1.0 [12:28:03]action value=close_receipt [12:28:03]process_action close_receipt [12:28:03]cmd_close_receipt [12:28:03]MH_GetDate [12:28:03]Write to MH i2c: F0 00 00 D4 09 CC [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: F0 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: F0 09 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: F0 09 00 D4 09 00 D4 EB 18 67 A0 18 CA 66 FB [12:28:03]GetLastDocTimeStamp 1729686474 [12:28:03]current date 1729686484 [12:28:03]FM_GetShiftState [12:28:03]SAM_PROTO_GetShiftState [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 13 01 00 [12:28:03]Write to MH i2c: E2 08 00 D5 09 80 13 01 00 00 00 00 00 5B [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 0E 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 0E 00 D5 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 43 [12:28:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:28:03]wFMCommunicate OK [12:28:03]SAM_PROTO_GetShiftState done [12:28:03]FM_GetShiftState done [12:28:03]opened in 1729642525 [12:28:03]opened+sec_in_day 1729728925 [12:28:03]quantity*price = 100015 [12:28:03]sum+1 = 100017 [12:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 156 23.10.2024 12:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188698 ФПД: 62411448979705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122804&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188698&fm=62411448979705&tin=02508201610067®Number=0000000000100030&sum=100000 [12:28:05]StoreToDocumentArchive [12:28:05]shift 462 fd 188698 [12:28:05]save to /storage/0462/doc_00188698 [12:28:05]save last doc name /storage/0462/doc_00188698 to /storage/kkm_last_doc_name [12:28:05]save OK [12:28:05]Clear old archive folders... [12:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:05]tlvbuf is 01C0D2B0 [12:28:05]SAM_PROTO_ClearQueue [12:28:05]wFMCommunicate request_size=4 [12:28:05]MH_SAM_APDU [12:28:05]CAPDU: 80 09 00 00 [12:28:05]Write to MH i2c: E2 08 00 E2 09 80 09 00 00 00 00 00 00 5D [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:05]Read from MH i2c: E2 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 03 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 03 00 E2 09 00 90 00 5F [12:28:05]RAPDU: 90 00 [12:28:05]wFMCommunicate OK [12:28:05]SAM_PROTO_ClearQueue done [12:28:05]KKMCreateOFDPacket [12:28:05]OFDProtocolAddRootSTLVToBuf [12:28:05]FM_MakeSignedData [12:28:05]FM_MakeSignedData [12:28:05]SAM_PROTO_SignData [12:28:05]wFMCommunicate request_size=4 [12:28:05]MH_SAM_APDU [12:28:05]CAPDU: 80 0D 01 02 [12:28:05]Write to MH i2c: E2 08 00 E3 09 80 0D 01 02 00 00 00 00 65 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:05]Read from MH i2c: E2 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 03 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 03 00 E3 09 00 90 00 60 [12:28:05]RAPDU: 90 00 [12:28:05]wFMCommunicate OK [12:28:05]wFMCommunicate request_size=255 [12:28:05]MH_SAM_APDU [12:28:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D4 EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E1 02 00 35 04 06 00 38 [12:28:05]Write to MH i2c: E2 02 01 E4 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D4 EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E1 02 00 35 04 06 00 38 00 00 B0 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 [12:28:05]MH_I2C_Read... [12:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:05]Read from MH i2c: E2 03 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 03 00 E4 09 00 90 00 61 [12:28:05]RAPDU: 90 00 [12:28:05]wFMCommunicate OK [12:28:05]wFMCommunicate request_size=10 [12:28:05]MH_SAM_APDU [12:28:05]CAPDU: 80 0D 02 02 05 C3 4C 3F 10 F9 [12:28:05]Write to MH i2c: E2 0D 00 E5 09 80 0D 02 02 05 00 C3 4C 3F 10 F9 00 00 C9 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:05]Read from MH i2c: E2 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 03 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 03 00 E5 09 00 90 00 62 [12:28:05]RAPDU: 90 00 [12:28:05]wFMCommunicate OK [12:28:05]wFMCommunicate request_size=4 [12:28:05]MH_SAM_APDU [12:28:05]CAPDU: 80 0D 03 02 [12:28:05]Write to MH i2c: E2 08 00 E6 09 80 0D 03 02 00 00 00 00 6A [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:05]Read from MH i2c: E2 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 0B 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 0B 00 E6 09 00 44 FE 9C 2F CD 55 C3 70 90 00 CD [12:28:05]RAPDU: 44 FE 9C 2F CD 55 C3 70 90 00 [12:28:05]wFMCommunicate OK [12:28:05]SAM_PROTO_SignData done [12:28:05]FM_MakeSignedData done [12:28:05]CreateOFDProtocolMessage [12:28:05]wFMCommunicate request_size=4 [12:28:05]MH_SAM_APDU [12:28:05]CAPDU: 80 11 00 00 [12:28:05]Write to MH i2c: E2 08 00 E7 09 80 11 00 00 00 00 00 00 6A [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:05]Read from MH i2c: E2 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 17 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 17 00 E7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [12:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:28:05]wFMCommunicate OK [12:28:05]CreateOFDProtocolMessage done [12:28:05]OFDSenderStorePacket 188698 [12:28:05]StoreOFDPacket docnum=188698 [12:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 DA 07 01 21 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D4 EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E1 02 00 35 04 06 00 38 C3 4C 3F 10 F9 44 FE 9C 2F CD 55 C3 70 [12:28:05]CheckFolder [12:28:05]dirname=/storage/ofd_packets [12:28:05]CheckFolder done [12:28:05]ProducePacketName [12:28:05]name=ofd_packets/00188698 [12:28:05]NVStorageSaveData ofd_packets/00188698 [12:28:05]File name is /storage/ofd_packets/00188698 [12:28:05]Write 301 bytes [12:28:05]NVStorageSaveData done [12:28:05]OFDSenderStorePacket done [12:28:05]KKMCreateOFDPacket done [12:28:05]NVStorageSaveData kkm_last_timestamp [12:28:05]File name is /storage/kkm_last_timestamp [12:28:05]Write 4 bytes [12:28:05]NVStorageSaveData done [12:28:05]ExternCall_PrintAddStr [12:28:05]wPrintStart [12:28:05]Write to MH i2c: 01 00 00 E8 09 F1 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 07 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 FF 0F 06 [12:28:05]RasterBufferAndPrint [12:28:05]line Счет N : (1)210760 [12:28:05]line ИНН: 02508201610067 [12:28:05]line Контрольно-Кассовый Чек [12:28:05]line ПРОДАЖА [12:28:05]line ТРК (МРК, ГНК) : 22 [12:28:05]line Товар: 2710124130 [12:28:05]line Аи-92-К-3 [12:28:05]line 14.950 * 66.90 [12:28:05]line = 1000.16 [12:28:05]line НДС 12% НСП 1% [12:28:05]line > о реализуемом товаре [12:28:05]line ОКРУГЛЕНИЕ: -0.16 [12:28:05]line ИТОГО: 1000.00 [12:28:05]line Внесено: 1000.00 [12:28:05]line СДАЧА: 0.00 [12:28:05]line НСП 1% : 8.85 [12:28:05]line НДС 12% : 106.21 [12:28:05]line Наличными: 1000.00 [12:28:05]line Безнал.: 0.00 [12:28:05]line Место: АЗС № 86 "Партнер Нефть" [12:28:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:28:05]line СНО: Общий режим [12:28:05]line Чек 156 23.10.2024 12:28 [12:28:05]line Смена: 462 ФФД: 1.0 [12:28:05]line ЗНМ: 0300000155 [12:28:05]line РНМ: 0000000000100030 [12:28:05]line Версия ККМ: 001 [12:28:05]line ФМ: 0000000000965340 [12:28:05]line ФД: 188698 [12:28:05]line ФПД: 62411448979705 [12:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122804&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188698&fm=62411448979705&tin=02508201610067®Number=0000000000100030&sum=100000 [12:28:05]written 0, free lines is 4095 [12:28:05]OFD Sender: Processing packet 188698 [packets to send 1062, broken 1061] [12:28:05]ProducePacketName [12:28:05]name=ofd_packets/00188698 [12:28:05]OFD Sender: To server: pG, [12:28:05]CommunicateWithHost lk.salyk.kg:30040 [12:28:05]ConnectInit lk.salyk.kg [12:28:05]Connected sock=9 [12:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 DA 07 01 21 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D4 EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E1 02 00 35 04 06 00 38 C3 4C 3F 10 F9 44 FE 9C 2F CD 55 C3 70 [12:28:06]Write to MH i2c: 01 00 00 13 0A 1D [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 13 0A 00 00 00 00 00 59 0C 89 [12:28:06]RasterBufferAndPrint [12:28:06]line [12:28:06]line [12:28:06]line [12:28:06]line [12:28:06]line [12:28:06]written 0, free lines is 3167 [12:28:06]MH_Cut [12:28:06]Write to MH i2c: D1 01 00 1A 0A 01 F6 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: D1 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: D1 01 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: D1 01 00 1A 0A 00 F5 [12:28:06]Write to MH i2c: 01 00 00 1B 0A 25 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD A0 47 00 EF D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E1 02 00 F4 03 04 00 BF 95 18 67 B6 04 01 00 00 8C B9 25 0B 0D BA 30 A8 [12:28:06]CommunicateWithHost err = 0 [12:28:06]CheckOFDResponse [12:28:06]1017 (14) - 77093643461234 [12:28:06]1041 (16) - 0000000000965340 [12:28:06]1040 (4) - 188698 [12:28:06]1012 (4) - 23.10.2024 06:20 [12:28:06]1206 (1) - 0 [12:28:06]OFD Sender: Remove packet 188698 [12:28:06]ProducePacketName [12:28:06]name=ofd_packets/00188698 [12:28:06]NVStorageDeleteData [12:28:06]OFD Sender: No OFD packet to send [12:28:07]*** Cut start [12:28:07]*** Partial cut [12:28:07]*** CUTSNS_PIN = 1 [12:28:07]*** CUTSNS_PIN = 0 [12:28:07]*** Brake cut motor [12:28:08]Read from MH i2c: 01 [12:28:08]MH_I2C_Read... [12:28:08]*** Stop cut motor [12:28:08]*** Cut end [12:28:08]Read from MH i2c: 01 07 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: 01 07 00 1B 0A 00 00 00 00 00 FF 0F 3A [12:28:08]process_action close_receipt done [12:28:08]requested_data is exist [12:28:08]produce_requested_data [12:28:08]requested_item fm.sn is exist - process it [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 11 00 00 [12:28:08]Write to MH i2c: E2 08 00 1C 0A 80 11 00 00 00 00 00 00 A0 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 17 00 [12:28:08]MH_I2C_Read... [12:28:08]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 36 35 33 34 30 90 00 EE [12:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:28:08]wFMCommunicate OK [12:28:08]requested_item fd.num is exist - process it [12:28:08]SAM_PROTO_GetFieldsCounters [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 13 00 00 [12:28:08]Write to MH i2c: E2 08 00 1D 0A 80 13 00 00 00 00 00 00 A3 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 62 00 [12:28:08]MH_I2C_Read... [12:28:08]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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [12:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:08]wFMCommunicate OK [12:28:08]SAM_PROTO_GetFieldsCounters done [12:28:08]requested_item shift.num is exist - process it [12:28:08]requested_item shift.opened is exist - process it [12:28:08]req_shift_opened [12:28:08]FM_GetShiftState [12:28:08]SAM_PROTO_GetShiftState [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 13 01 00 [12:28:08]Write to MH i2c: E2 08 00 1E 0A 80 13 01 00 00 00 00 00 A5 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 0E 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 0E 00 1E 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8D [12:28:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:28:08]wFMCommunicate OK [12:28:08]SAM_PROTO_GetShiftState done [12:28:08]FM_GetShiftState done [12:28:08]req_shift_opened done [12:28:08]requested_item shift.open_date is exist - process it [12:28:08]req_shift_open_date [12:28:08]req_shift_open_date done [12:28:08]produce_requested_data done [12:28:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188698,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:28:08]process_action_free close_receipt [12:28:08]json_value_free [12:28:08]json_value_free done [12:28:08]process_json_proto returns [12:28:08]Send response to host [12:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188698,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:28:08]free response buf [12:28:08]execute_script done [12:28:08]execute_script returns [12:28:08]free content buf [12:28:08]Sock 10.Close socket [12:28:08]Sock 10.Thread stoped [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:24]accept exits with 7 [12:28:24]New connection [12:28:24]New thread 3067161956 created [12:28:24]Thread 3067018596 joined [12:28:24]Waiting for new connection... [12:28:24] Sock 7.Parse request [12:28:24]Sock 7.Check first char [12:28:24]Sock 7.First char is OK [12:28:24]request: POST /json_proto HTTP/1.0 [12:28:24]Method: POST [12:28:24]URL: /json_proto [12:28:24]Method is POST - this is cgi request [12:28:24]url: /json_proto [12:28:24]query_string will be loaded in cgi processing [12:28:24]execute_cgi json_proto POST (null) [12:28:24]execute_cgi path=json_proto method=POST [12:28:24]POST find Content-Length [12:28:24]Host: 172.17.42.131:8080 [12:28:24]Content-Length: 775 [12:28:24]Content-Type: application/json [12:28:24] [12:28:24]POST finish read [12:28:24]Found Content-Length = 775 [12:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:24]execute_script... [12:28:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:24]POST & json_proto [12:28:24]process_json_proto [12:28:24]json parsed OK: [12:28:24]protocol is kg_v1.0 [12:28:24]action value=close_receipt [12:28:24]process_action close_receipt [12:28:24]cmd_close_receipt [12:28:24]MH_GetDate [12:28:24]Write to MH i2c: F0 00 00 1F 0A 18 [12:28:24]Write i2c OK [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: F0 [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: F0 09 00 [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: F0 09 00 1F 0A 00 E9 EB 18 67 A0 18 CA 66 5C [12:28:24]GetLastDocTimeStamp 1729686484 [12:28:24]current date 1729686505 [12:28:24]FM_GetShiftState [12:28:24]SAM_PROTO_GetShiftState [12:28:24]wFMCommunicate request_size=4 [12:28:24]MH_SAM_APDU [12:28:24]CAPDU: 80 13 01 00 [12:28:24]Write to MH i2c: E2 08 00 20 0A 80 13 01 00 00 00 00 00 A7 [12:28:24]Write i2c OK [12:28:24]MH_I2C_Read... [12:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:24]Read from MH i2c: E2 [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: E2 0E 00 [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: E2 0E 00 20 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8F [12:28:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:28:24]wFMCommunicate OK [12:28:24]SAM_PROTO_GetShiftState done [12:28:24]FM_GetShiftState done [12:28:24]opened in 1729642525 [12:28:24]opened+sec_in_day 1729728925 [12:28:24]quantity*price = 300076 [12:28:24]sum+1 = 300077 [12:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 157 23.10.2024 12:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188699 ФПД: 24210500527314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122825&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188699&fm=24210500527314&tin=02508201610067®Number=0000000000100030&sum=300076 [12:28:25]StoreToDocumentArchive [12:28:25]shift 462 fd 188699 [12:28:25]save to /storage/0462/doc_00188699 [12:28:25]save last doc name /storage/0462/doc_00188699 to /storage/kkm_last_doc_name [12:28:25]save OK [12:28:25]Clear old archive folders... [12:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:28:25]tlvbuf is 01C46C40 [12:28:25]SAM_PROTO_ClearQueue [12:28:25]wFMCommunicate request_size=4 [12:28:25]MH_SAM_APDU [12:28:25]CAPDU: 80 09 00 00 [12:28:25]Write to MH i2c: E2 08 00 2D 0A 80 09 00 00 00 00 00 00 A9 [12:28:25]Write i2c OK [12:28:25]MH_I2C_Read... [12:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:26]Read from MH i2c: E2 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 03 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [12:28:26]RAPDU: 90 00 [12:28:26]wFMCommunicate OK [12:28:26]SAM_PROTO_ClearQueue done [12:28:26]KKMCreateOFDPacket [12:28:26]OFDProtocolAddRootSTLVToBuf [12:28:26]FM_MakeSignedData [12:28:26]FM_MakeSignedData [12:28:26]SAM_PROTO_SignData [12:28:26]wFMCommunicate request_size=4 [12:28:26]MH_SAM_APDU [12:28:26]CAPDU: 80 0D 01 02 [12:28:26]Write to MH i2c: E2 08 00 2E 0A 80 0D 01 02 00 00 00 00 B1 [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:26]Read from MH i2c: E2 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 03 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [12:28:26]RAPDU: 90 00 [12:28:26]wFMCommunicate OK [12:28:26]wFMCommunicate request_size=255 [12:28:26]MH_SAM_APDU [12:28:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E9 EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E1 02 [12:28:26]Write to MH i2c: E2 02 01 2F 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E9 EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E1 02 00 00 47 [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:26]Read from MH i2c: E2 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 03 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [12:28:26]RAPDU: 90 00 [12:28:26]wFMCommunicate OK [12:28:26]wFMCommunicate request_size=16 [12:28:26]MH_SAM_APDU [12:28:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 16 04 F2 48 A4 D2 [12:28:26]Write to MH i2c: E2 13 00 30 0A 80 0D 02 02 0B 00 00 35 04 06 00 16 04 F2 48 A4 D2 00 00 D3 [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:26]Read from MH i2c: E2 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 03 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [12:28:26]RAPDU: 90 00 [12:28:26]wFMCommunicate OK [12:28:26]wFMCommunicate request_size=4 [12:28:26]MH_SAM_APDU [12:28:26]CAPDU: 80 0D 03 02 [12:28:26]Write to MH i2c: E2 08 00 31 0A 80 0D 03 02 00 00 00 00 B6 [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:26]Read from MH i2c: E2 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 0B 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 0B 00 31 0A 00 39 66 8B A1 F0 7A 20 79 90 00 85 [12:28:26]RAPDU: 39 66 8B A1 F0 7A 20 79 90 00 [12:28:26]wFMCommunicate OK [12:28:26]SAM_PROTO_SignData done [12:28:26]FM_MakeSignedData done [12:28:26]CreateOFDProtocolMessage [12:28:26]wFMCommunicate request_size=4 [12:28:26]MH_SAM_APDU [12:28:26]CAPDU: 80 11 00 00 [12:28:26]Write to MH i2c: E2 08 00 32 0A 80 11 00 00 00 00 00 00 B6 [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:26]Read from MH i2c: E2 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 17 00 [12:28:26]MH_I2C_Read... [12:28:26]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 36 35 33 34 30 90 00 04 [12:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:28:26]wFMCommunicate OK [12:28:26]CreateOFDProtocolMessage done [12:28:26]OFDSenderStorePacket 188699 [12:28:26]StoreOFDPacket docnum=188699 [12:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CD 49 0D 01 77 1F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E9 EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E1 02 00 35 04 06 00 16 04 F2 48 A4 D2 39 66 8B A1 F0 7A 20 79 [12:28:26]CheckFolder [12:28:26]dirname=/storage/ofd_packets [12:28:26]CheckFolder done [12:28:26]ProducePacketName [12:28:26]name=ofd_packets/00188699 [12:28:26]NVStorageSaveData ofd_packets/00188699 [12:28:26]File name is /storage/ofd_packets/00188699 [12:28:26]Write 307 bytes [12:28:26]NVStorageSaveData done [12:28:26]OFDSenderStorePacket done [12:28:26]KKMCreateOFDPacket done [12:28:26]NVStorageSaveData kkm_last_timestamp [12:28:26]File name is /storage/kkm_last_timestamp [12:28:26]Write 4 bytes [12:28:26]NVStorageSaveData done [12:28:26]ExternCall_PrintAddStr [12:28:26]wPrintStart [12:28:26]Write to MH i2c: 01 00 00 33 0A 3D [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: 01 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: 01 07 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: 01 07 00 33 0A 00 00 00 00 00 FF 0F 52 [12:28:26]RasterBufferAndPrint [12:28:26]line Счет N : (1)210758 [12:28:26]line ИНН: 02508201610067 [12:28:26]line Контрольно-Кассовый Чек [12:28:26]line ПРОДАЖА [12:28:26]line ТРК (МРК, ГНК) : 31 [12:28:26]line Товар: 2710194210 [12:28:26]line D-ENERGY ДТ-К-5 [12:28:26]line 38.870 * 77.20 [12:28:26]line = 3000.76 [12:28:26]line НДС 12% НСП 1% [12:28:26]line > о реализуемом товаре [12:28:26]line ИТОГО: 3000.76 [12:28:26]line НСП 1% : 26.55 [12:28:26]line НДС 12% : 318.66 [12:28:26]line Наличными: 0.00 [12:28:26]line Безнал.: 3000.76 [12:28:26]line Место: АЗС № 86 "Партнер Нефть" [12:28:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:28:26]line СНО: Общий режим [12:28:26]line Чек 157 23.10.2024 12:28 [12:28:26]line Смена: 462 ФФД: 1.0 [12:28:26]line ЗНМ: 0300000155 [12:28:26]line РНМ: 0000000000100030 [12:28:26]line Версия ККМ: 001 [12:28:26]line Платежная система: Mbank [12:28:26]line ФМ: 0000000000965340 [12:28:26]line ФД: 188699 [12:28:26]line ФПД: 24210500527314 [12:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122825&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188699&fm=24210500527314&tin=02508201610067®Number=0000000000100030&sum=300076 [12:28:26]written 0, free lines is 4095 [12:28:26]OFD Sender: Processing packet 188699 [packets to send 1062, broken 1061] [12:28:26]ProducePacketName [12:28:26]name=ofd_packets/00188699 [12:28:26]OFD Sender: To server: pG, [12:28:26]CommunicateWithHost lk.salyk.kg:30040 [12:28:26]ConnectInit lk.salyk.kg [12:28:26]Connected sock=10 [12:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CD 49 0D 01 77 1F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E9 EB 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E1 02 00 35 04 06 00 16 04 F2 48 A4 D2 39 66 8B A1 F0 7A 20 79 [12:28:27]Write to MH i2c: 01 00 00 5C 0A 66 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: 01 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: 01 07 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 7E 0C F7 [12:28:27]RasterBufferAndPrint [12:28:27]line [12:28:27]line [12:28:27]line [12:28:27]line [12:28:27]line [12:28:27]written 0, free lines is 3203 [12:28:27]MH_Cut [12:28:27]Write to MH i2c: D1 01 00 63 0A 01 3F [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: D1 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: D1 01 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: D1 01 00 63 0A 00 3E [12:28:27]Write to MH i2c: 01 00 00 64 0A 6E [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 84 86 47 00 26 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E1 02 00 F4 03 04 00 D4 95 18 67 B6 04 01 00 00 8A 72 4E CA F6 37 CB 87 [12:28:27]CommunicateWithHost err = 0 [12:28:27]CheckOFDResponse [12:28:27]1017 (14) - 77093643461234 [12:28:27]1041 (16) - 0000000000965340 [12:28:27]1040 (4) - 188699 [12:28:27]1012 (4) - 23.10.2024 06:21 [12:28:27]1206 (1) - 0 [12:28:27]OFD Sender: Remove packet 188699 [12:28:27]ProducePacketName [12:28:27]name=ofd_packets/00188699 [12:28:27]NVStorageDeleteData [12:28:27]OFD Sender: No OFD packet to send [12:28:28]*** Cut start [12:28:28]*** Partial cut [12:28:28]*** CUTSNS_PIN = 1 [12:28:28]*** CUTSNS_PIN = 0 [12:28:28]*** Brake cut motor [12:28:28]Read from MH i2c: 01 [12:28:28]MH_I2C_Read... [12:28:28]*** Stop cut motor [12:28:28]*** Cut end [12:28:28]Read from MH i2c: 01 07 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: 01 07 00 64 0A 00 00 00 00 00 FF 0F 83 [12:28:28]process_action close_receipt done [12:28:28]requested_data is exist [12:28:28]produce_requested_data [12:28:28]requested_item fm.sn is exist - process it [12:28:28]wFMCommunicate request_size=4 [12:28:28]MH_SAM_APDU [12:28:28]CAPDU: 80 11 00 00 [12:28:28]Write to MH i2c: E2 08 00 65 0A 80 11 00 00 00 00 00 00 E9 [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:28]Read from MH i2c: E2 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 17 00 [12:28:28]MH_I2C_Read... [12:28:28]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 36 35 33 34 30 90 00 37 [12:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:28:28]wFMCommunicate OK [12:28:28]requested_item fd.num is exist - process it [12:28:28]SAM_PROTO_GetFieldsCounters [12:28:28]wFMCommunicate request_size=4 [12:28:28]MH_SAM_APDU [12:28:28]CAPDU: 80 13 00 00 [12:28:28]Write to MH i2c: E2 08 00 66 0A 80 13 00 00 00 00 00 00 EC [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:29]Read from MH i2c: E2 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 62 00 [12:28:29]MH_I2C_Read... [12:28:29]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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [12:28:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:29]wFMCommunicate OK [12:28:29]SAM_PROTO_GetFieldsCounters done [12:28:29]requested_item shift.num is exist - process it [12:28:29]requested_item shift.opened is exist - process it [12:28:29]req_shift_opened [12:28:29]FM_GetShiftState [12:28:29]SAM_PROTO_GetShiftState [12:28:29]wFMCommunicate request_size=4 [12:28:29]MH_SAM_APDU [12:28:29]CAPDU: 80 13 01 00 [12:28:29]Write to MH i2c: E2 08 00 67 0A 80 13 01 00 00 00 00 00 EE [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:29]Read from MH i2c: E2 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 0E 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 0E 00 67 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D6 [12:28:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:28:29]wFMCommunicate OK [12:28:29]SAM_PROTO_GetShiftState done [12:28:29]FM_GetShiftState done [12:28:29]req_shift_opened done [12:28:29]requested_item shift.open_date is exist - process it [12:28:29]req_shift_open_date [12:28:29]req_shift_open_date done [12:28:29]produce_requested_data done [12:28:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188699,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:28:29]process_action_free close_receipt [12:28:29]json_value_free [12:28:29]json_value_free done [12:28:29]process_json_proto returns [12:28:29]Send response to host [12:28:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188699,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:28:29]free response buf [12:28:29]execute_script done [12:28:29]execute_script returns [12:28:29]free content buf [12:28:29]Sock 7.Close socket [12:28:29]Sock 7.Thread stoped [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:51]accept exits with 9 [12:31:51]New connection [12:31:51]New thread 3067018596 created [12:31:51]Thread 3067161956 joined [12:31:51]Waiting for new connection... [12:31:51] Sock 9.Parse request [12:31:51]Sock 9.Check first char [12:31:51]Sock 9.First char is OK [12:31:51]request: POST /json_proto HTTP/1.0 [12:31:51]Method: POST [12:31:51]URL: /json_proto [12:31:51]Method is POST - this is cgi request [12:31:51]url: /json_proto [12:31:51]query_string will be loaded in cgi processing [12:31:51]execute_cgi json_proto POST (null) [12:31:51]execute_cgi path=json_proto method=POST [12:31:51]POST find Content-Length [12:31:51]Host: 172.17.42.131:8080 [12:31:51]Content-Length: 790 [12:31:51]Content-Type: application/json [12:31:51] [12:31:51]POST finish read [12:31:51]Found Content-Length = 790 [12:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53620", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:51]execute_script... [12:31:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53620", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:51]POST & json_proto [12:31:51]process_json_proto [12:31:51]json parsed OK: [12:31:51]protocol is kg_v1.0 [12:31:51]action value=close_receipt [12:31:51]process_action close_receipt [12:31:51]cmd_close_receipt [12:31:51]MH_GetDate [12:31:51]Write to MH i2c: F0 00 00 68 0A 61 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: F0 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: F0 09 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: F0 09 00 68 0A 00 B8 EC 18 67 A0 18 CA 66 75 [12:31:51]GetLastDocTimeStamp 1729686505 [12:31:51]current date 1729686712 [12:31:51]FM_GetShiftState [12:31:51]SAM_PROTO_GetShiftState [12:31:51]wFMCommunicate request_size=4 [12:31:51]MH_SAM_APDU [12:31:51]CAPDU: 80 13 01 00 [12:31:51]Write to MH i2c: E2 08 00 69 0A 80 13 01 00 00 00 00 00 F0 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:51]Read from MH i2c: E2 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 0E 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 0E 00 69 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D8 [12:31:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:31:51]wFMCommunicate OK [12:31:51]SAM_PROTO_GetShiftState done [12:31:51]FM_GetShiftState done [12:31:51]opened in 1729642525 [12:31:51]opened+sec_in_day 1729728925 [12:31:51]quantity*price = 0 [12:31:51]sum+1 = 1 [12:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 158 23.10.2024 12:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 53620 ФМ: 0000000000965340 ФД: 188700 ФПД: 211768537903064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188700&fm=211768537903064&tin=02508201610067®Number=0000000000100030&sum=0 [12:31:52]StoreToDocumentArchive [12:31:52]shift 462 fd 188700 [12:31:52]save to /storage/0462/doc_00188700 [12:31:52]save last doc name /storage/0462/doc_00188700 to /storage/kkm_last_doc_name [12:31:52]save OK [12:31:52]Clear old archive folders... [12:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:31:52]tlvbuf is 01C18900 [12:31:52]SAM_PROTO_ClearQueue [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 09 00 00 [12:31:52]Write to MH i2c: E2 08 00 76 0A 80 09 00 00 00 00 00 00 F2 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [12:31:52]RAPDU: 90 00 [12:31:52]wFMCommunicate OK [12:31:52]SAM_PROTO_ClearQueue done [12:31:52]KKMCreateOFDPacket [12:31:52]OFDProtocolAddRootSTLVToBuf [12:31:52]FM_MakeSignedData [12:31:52]FM_MakeSignedData [12:31:52]SAM_PROTO_SignData [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 0D 01 02 [12:31:52]Write to MH i2c: E2 08 00 77 0A 80 0D 01 02 00 00 00 00 FA [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [12:31:52]RAPDU: 90 00 [12:31:52]wFMCommunicate OK [12:31:52]wFMCommunicate request_size=255 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B8 EC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E1 02 00 35 04 06 00 C0 9A 34 79 [12:31:52]Write to MH i2c: E2 02 01 78 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B8 EC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E1 02 00 35 04 06 00 C0 9A 34 79 00 00 04 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [12:31:52]RAPDU: 90 00 [12:31:52]wFMCommunicate OK [12:31:52]wFMCommunicate request_size=7 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 0D 02 02 02 EF D8 [12:31:52]Write to MH i2c: E2 0A 00 79 0A 80 0D 02 02 02 00 EF D8 00 00 C8 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [12:31:52]RAPDU: 90 00 [12:31:52]wFMCommunicate OK [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 0D 03 02 [12:31:52]Write to MH i2c: E2 08 00 7A 0A 80 0D 03 02 00 00 00 00 FF [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0B 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0B 00 7A 0A 00 E3 55 58 E4 C3 8E 06 03 90 00 CE [12:31:53]RAPDU: E3 55 58 E4 C3 8E 06 03 90 00 [12:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_SignData done [12:31:53]FM_MakeSignedData done [12:31:53]CreateOFDProtocolMessage [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 11 00 00 [12:31:53]Write to MH i2c: E2 08 00 7B 0A 80 11 00 00 00 00 00 00 FF [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 17 00 [12:31:53]MH_I2C_Read... [12:31:53]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 36 35 33 34 30 90 00 4D [12:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:31:53]wFMCommunicate OK [12:31:53]CreateOFDProtocolMessage done [12:31:53]OFDSenderStorePacket 188700 [12:31:53]StoreOFDPacket docnum=188700 [12:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E3 E4 04 01 1F C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B8 EC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E1 02 00 35 04 06 00 C0 9A 34 79 EF D8 E3 55 58 E4 C3 8E 06 03 [12:31:53]CheckFolder [12:31:53]dirname=/storage/ofd_packets [12:31:53]CheckFolder done [12:31:53]ProducePacketName [12:31:53]name=ofd_packets/00188700 [12:31:53]NVStorageSaveData ofd_packets/00188700 [12:31:53]File name is /storage/ofd_packets/00188700 [12:31:53]Write 298 bytes [12:31:53]NVStorageSaveData done [12:31:53]OFDSenderStorePacket done [12:31:53]KKMCreateOFDPacket done [12:31:53]NVStorageSaveData kkm_last_timestamp [12:31:53]File name is /storage/kkm_last_timestamp [12:31:53]Write 4 bytes [12:31:53]NVStorageSaveData done [12:31:53]ExternCall_PrintAddStr [12:31:53]wPrintStart [12:31:53]Write to MH i2c: 01 00 00 7C 0A 86 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 7C 0A 00 00 00 00 00 FF 0F 9B [12:31:53]RasterBufferAndPrint [12:31:53]line Счет N : (1)210759 [12:31:53]line ИНН: 02508201610067 [12:31:53]line Контрольно-Кассовый Чек [12:31:53]line ПРОДАЖА [12:31:53]line ТРК (МРК, ГНК) : 51 [12:31:53]line Товар: 2710194210 [12:31:53]line ДТ-К-5 [12:31:53]line 125.000 * 0.00 [12:31:53]line = 0.00 [12:31:53]line НДС 12% НСП 1% [12:31:53]line > о реализуемом товаре [12:31:53]line ИТОГО: 0.00 [12:31:53]line НСП 1% : 0.00 [12:31:53]line НДС 12% : 0.00 [12:31:53]line Наличными: 0.00 [12:31:53]line Безнал.: 0.00 [12:31:53]line Место: АЗС № 86 "Партнер Нефть" [12:31:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:31:53]line СНО: Общий режим [12:31:53]line Чек 158 23.10.2024 12:31 [12:31:53]line Смена: 462 ФФД: 1.0 [12:31:53]line ЗНМ: 0300000155 [12:31:53]line РНМ: 0000000000100030 [12:31:53]line Версия ККМ: 001 [12:31:53]line Талоны: Топливная Карта [12:31:53]line 53620 [12:31:53]line ФМ: 0000000000965340 [12:31:53]line ФД: 188700 [12:31:53]line ФПД: 211768537903064 [12:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188700&fm=211768537903064&tin=02508201610067®Number=0000000000100030&sum=0 [12:31:53]written 0, free lines is 4095 [12:31:53]OFD Sender: Processing packet 188700 [packets to send 1062, broken 1061] [12:31:53]ProducePacketName [12:31:53]name=ofd_packets/00188700 [12:31:53]OFD Sender: To server: pG, [12:31:53]CommunicateWithHost lk.salyk.kg:30040 [12:31:53]ConnectInit lk.salyk.kg [12:31:53]Connected sock=10 [12:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E3 E4 04 01 1F C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B8 EC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E1 02 00 35 04 06 00 C0 9A 34 79 EF D8 E3 55 58 E4 C3 8E 06 03 [12:31:53]Write to MH i2c: 01 00 00 A6 0A B0 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 63 0C 26 [12:31:53]RasterBufferAndPrint [12:31:53]line [12:31:53]line [12:31:53]line [12:31:53]line [12:31:53]line [12:31:53]written 0, free lines is 3175 [12:31:53]MH_Cut [12:31:53]Write to MH i2c: D1 01 00 AD 0A 01 89 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: D1 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: D1 01 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: D1 01 00 AD 0A 00 88 [12:31:53]Write to MH i2c: 01 00 00 AE 0A B8 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC 4B 47 00 5E 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 1C E1 02 00 F4 03 04 00 A2 96 18 67 B6 04 01 00 00 F1 AA CC 24 3D DA 25 3D [12:31:53]CommunicateWithHost err = 0 [12:31:53]CheckOFDResponse [12:31:53]1017 (14) - 77093643461234 [12:31:53]1041 (16) - 0000000000965340 [12:31:53]1040 (4) - 188700 [12:31:53]1012 (4) - 23.10.2024 06:24 [12:31:53]1206 (1) - 0 [12:31:53]OFD Sender: Remove packet 188700 [12:31:53]ProducePacketName [12:31:53]name=ofd_packets/00188700 [12:31:53]NVStorageDeleteData [12:31:54]OFD Sender: No OFD packet to send [12:31:54]*** Cut start [12:31:54]*** Partial cut [12:31:54]*** CUTSNS_PIN = 1 [12:31:54]*** CUTSNS_PIN = 0 [12:31:55]*** Brake cut motor [12:31:55]Read from MH i2c: 01 [12:31:55]MH_I2C_Read... [12:31:55]*** Stop cut motor [12:31:55]*** Cut end [12:31:55]Read from MH i2c: 01 07 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 FF 0F CD [12:31:55]process_action close_receipt done [12:31:55]requested_data is exist [12:31:55]produce_requested_data [12:31:55]requested_item fm.sn is exist - process it [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 11 00 00 [12:31:55]Write to MH i2c: E2 08 00 AF 0A 80 11 00 00 00 00 00 00 33 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 17 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 17 00 AF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [12:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:31:55]wFMCommunicate OK [12:31:55]requested_item fd.num is exist - process it [12:31:55]SAM_PROTO_GetFieldsCounters [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 13 00 00 [12:31:55]Write to MH i2c: E2 08 00 B0 0A 80 13 00 00 00 00 00 00 36 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 62 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 62 00 B0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:55]wFMCommunicate OK [12:31:55]SAM_PROTO_GetFieldsCounters done [12:31:55]requested_item shift.num is exist - process it [12:31:55]requested_item shift.opened is exist - process it [12:31:55]req_shift_opened [12:31:55]FM_GetShiftState [12:31:55]SAM_PROTO_GetShiftState [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 13 01 00 [12:31:55]Write to MH i2c: E2 08 00 B1 0A 80 13 01 00 00 00 00 00 38 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 0E 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 0E 00 B1 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 20 [12:31:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:31:55]wFMCommunicate OK [12:31:55]SAM_PROTO_GetShiftState done [12:31:55]FM_GetShiftState done [12:31:55]req_shift_opened done [12:31:55]requested_item shift.open_date is exist - process it [12:31:55]req_shift_open_date [12:31:55]req_shift_open_date done [12:31:55]produce_requested_data done [12:31:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188700,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:31:55]process_action_free close_receipt [12:31:55]json_value_free [12:31:55]json_value_free done [12:31:55]process_json_proto returns [12:31:55]Send response to host [12:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188700,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:31:55]free response buf [12:31:55]execute_script done [12:31:55]execute_script returns [12:31:55]free content buf [12:31:55]Sock 9.Close socket [12:31:55]Sock 9.Thread stoped [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:20]accept exits with 7 [12:33:20]New connection [12:33:20]New thread 3067161956 created [12:33:20]Thread 3067018596 joined [12:33:20]Waiting for new connection... [12:33:20] Sock 7.Parse request [12:33:20]Sock 7.Check first char [12:33:20]Sock 7.First char is OK [12:33:20]request: POST /json_proto HTTP/1.0 [12:33:20]Method: POST [12:33:20]URL: /json_proto [12:33:20]Method is POST - this is cgi request [12:33:20]url: /json_proto [12:33:20]query_string will be loaded in cgi processing [12:33:20]execute_cgi json_proto POST (null) [12:33:20]execute_cgi path=json_proto method=POST [12:33:20]POST find Content-Length [12:33:20]Host: 172.17.42.131:8080 [12:33:20]Content-Length: 800 [12:33:20]Content-Type: application/json [12:33:20] [12:33:20]POST finish read [12:33:20]Found Content-Length = 800 [12:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948485", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:20]execute_script... [12:33:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948485", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:20]POST & json_proto [12:33:20]process_json_proto [12:33:20]json parsed OK: [12:33:20]protocol is kg_v1.0 [12:33:20]action value=close_receipt [12:33:20]process_action close_receipt [12:33:20]cmd_close_receipt [12:33:20]MH_GetDate [12:33:20]Write to MH i2c: F0 00 00 B2 0A AB [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: F0 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: F0 09 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: F0 09 00 B2 0A 00 11 ED 18 67 A0 18 CA 66 19 [12:33:20]GetLastDocTimeStamp 1729686712 [12:33:20]current date 1729686801 [12:33:20]FM_GetShiftState [12:33:20]SAM_PROTO_GetShiftState [12:33:20]wFMCommunicate request_size=4 [12:33:20]MH_SAM_APDU [12:33:20]CAPDU: 80 13 01 00 [12:33:20]Write to MH i2c: E2 08 00 B3 0A 80 13 01 00 00 00 00 00 3A [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:20]Read from MH i2c: E2 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 0E 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 0E 00 B3 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 22 [12:33:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:33:20]wFMCommunicate OK [12:33:20]SAM_PROTO_GetShiftState done [12:33:20]FM_GetShiftState done [12:33:20]opened in 1729642525 [12:33:20]opened+sec_in_day 1729728925 [12:33:20]quantity*price = 0 [12:33:20]sum+1 = 1 [12:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 159 23.10.2024 12:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3948485 ФМ: 0000000000965340 ФД: 188701 ФПД: 269071226937349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188701&fm=269071226937349&tin=02508201610067®Number=0000000000100030&sum=0 [12:33:21]StoreToDocumentArchive [12:33:21]shift 462 fd 188701 [12:33:21]save to /storage/0462/doc_00188701 [12:33:21]save last doc name /storage/0462/doc_00188701 to /storage/kkm_last_doc_name [12:33:21]save OK [12:33:21]Clear old archive folders... [12:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:21]tlvbuf is 01C39630 [12:33:21]SAM_PROTO_ClearQueue [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 09 00 00 [12:33:21]Write to MH i2c: E2 08 00 C0 0A 80 09 00 00 00 00 00 00 3C [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [12:33:21]RAPDU: 90 00 [12:33:21]wFMCommunicate OK [12:33:21]SAM_PROTO_ClearQueue done [12:33:21]KKMCreateOFDPacket [12:33:21]OFDProtocolAddRootSTLVToBuf [12:33:21]FM_MakeSignedData [12:33:21]FM_MakeSignedData [12:33:21]SAM_PROTO_SignData [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 0D 01 02 [12:33:21]Write to MH i2c: E2 08 00 C1 0A 80 0D 01 02 00 00 00 00 44 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [12:33:21]RAPDU: 90 00 [12:33:21]wFMCommunicate OK [12:33:21]wFMCommunicate request_size=255 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 11 ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E1 02 00 35 04 06 00 F4 [12:33:21]Write to MH i2c: E2 02 01 C2 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 11 ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E1 02 00 35 04 06 00 F4 00 00 7F [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [12:33:21]RAPDU: 90 00 [12:33:21]wFMCommunicate OK [12:33:21]wFMCommunicate request_size=10 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 0D 02 02 05 B8 06 E6 A0 05 [12:33:21]Write to MH i2c: E2 0D 00 C3 0A 80 0D 02 02 05 00 B8 06 E6 A0 05 00 00 9A [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 03 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [12:33:22]RAPDU: 90 00 [12:33:22]wFMCommunicate OK [12:33:22]wFMCommunicate request_size=4 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 0D 03 02 [12:33:22]Write to MH i2c: E2 08 00 C4 0A 80 0D 03 02 00 00 00 00 49 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 0B 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 0B 00 C4 0A 00 F2 E7 D0 35 F2 12 64 6D 90 00 FD [12:33:22]RAPDU: F2 E7 D0 35 F2 12 64 6D 90 00 [12:33:22]wFMCommunicate OK [12:33:22]SAM_PROTO_SignData done [12:33:22]FM_MakeSignedData done [12:33:22]CreateOFDProtocolMessage [12:33:22]wFMCommunicate request_size=4 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 11 00 00 [12:33:22]Write to MH i2c: E2 08 00 C5 0A 80 11 00 00 00 00 00 00 49 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 17 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 17 00 C5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [12:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:33:22]wFMCommunicate OK [12:33:22]CreateOFDProtocolMessage done [12:33:22]OFDSenderStorePacket 188701 [12:33:22]StoreOFDPacket docnum=188701 [12:33:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 54 28 07 01 D4 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 11 ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E1 02 00 35 04 06 00 F4 B8 06 E6 A0 05 F2 E7 D0 35 F2 12 64 6D [12:33:22]CheckFolder [12:33:22]dirname=/storage/ofd_packets [12:33:22]CheckFolder done [12:33:22]ProducePacketName [12:33:22]name=ofd_packets/00188701 [12:33:22]NVStorageSaveData ofd_packets/00188701 [12:33:22]File name is /storage/ofd_packets/00188701 [12:33:22]Write 301 bytes [12:33:22]NVStorageSaveData done [12:33:22]OFDSenderStorePacket done [12:33:22]KKMCreateOFDPacket done [12:33:22]NVStorageSaveData kkm_last_timestamp [12:33:22]File name is /storage/kkm_last_timestamp [12:33:22]Write 4 bytes [12:33:22]NVStorageSaveData done [12:33:22]ExternCall_PrintAddStr [12:33:22]wPrintStart [12:33:22]Write to MH i2c: 01 00 00 C6 0A D0 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 C6 0A 00 00 00 00 00 FF 0F E5 [12:33:22]RasterBufferAndPrint [12:33:22]line Счет N : (1)210761 [12:33:22]line ИНН: 02508201610067 [12:33:22]line Контрольно-Кассовый Чек [12:33:22]line ПРОДАЖА [12:33:22]line ТРК (МРК, ГНК) : 12 [12:33:22]line Товар: 2710124130 [12:33:22]line Аи-92-К-3 [12:33:22]line 20.000 * 0.00 [12:33:22]line = 0.00 [12:33:22]line НДС 12% НСП 1% [12:33:22]line > о реализуемом товаре [12:33:22]line ИТОГО: 0.00 [12:33:22]line НСП 1% : 0.00 [12:33:22]line НДС 12% : 0.00 [12:33:22]line Наличными: 0.00 [12:33:22]line Безнал.: 0.00 [12:33:22]line Место: АЗС № 86 "Партнер Нефть" [12:33:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:33:22]line СНО: Общий режим [12:33:22]line Чек 159 23.10.2024 12:33 [12:33:22]line Смена: 462 ФФД: 1.0 [12:33:22]line ЗНМ: 0300000155 [12:33:22]line РНМ: 0000000000100030 [12:33:22]line Версия ККМ: 001 [12:33:22]line Талоны: Топливные Талоны [12:33:22]line 3948485 [12:33:22]line ФМ: 0000000000965340 [12:33:22]line ФД: 188701 [12:33:22]line ФПД: 269071226937349 [12:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188701&fm=269071226937349&tin=02508201610067®Number=0000000000100030&sum=0 [12:33:22]written 0, free lines is 4095 [12:33:22]OFD Sender: Processing packet 188701 [packets to send 1062, broken 1061] [12:33:22]ProducePacketName [12:33:22]name=ofd_packets/00188701 [12:33:22]OFD Sender: To server: pG, [12:33:22]CommunicateWithHost lk.salyk.kg:30040 [12:33:22]ConnectInit lk.salyk.kg [12:33:22]Connected sock=10 [12:33:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 54 28 07 01 D4 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 11 ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E1 02 00 35 04 06 00 F4 B8 06 E6 A0 05 F2 E7 D0 35 F2 12 64 6D [12:33:22]Write to MH i2c: 01 00 00 F0 0A FA [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 71 0C 7E [12:33:22]RasterBufferAndPrint [12:33:22]line [12:33:22]line [12:33:22]line [12:33:22]line [12:33:22]line [12:33:22]written 0, free lines is 3190 [12:33:22]MH_Cut [12:33:22]Write to MH i2c: D1 01 00 F7 0A 01 D3 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: D1 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: D1 01 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: D1 01 00 F7 0A 00 D2 [12:33:22]Write to MH i2c: 01 00 00 F8 0A 02 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4C CF 47 00 92 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 36 35 33 34 30 10 04 04 00 1D E1 02 00 F4 03 04 00 FB 96 18 67 B6 04 01 00 00 0B E2 9D 8C EA 09 FA A5 [12:33:22]CommunicateWithHost err = 0 [12:33:22]CheckOFDResponse [12:33:22]1017 (14) - 77093643461234 [12:33:22]1041 (16) - 0000000000965340 [12:33:22]1040 (4) - 188701 [12:33:22]1012 (4) - 23.10.2024 06:26 [12:33:22]1206 (1) - 0 [12:33:22]OFD Sender: Remove packet 188701 [12:33:22]ProducePacketName [12:33:22]name=ofd_packets/00188701 [12:33:22]NVStorageDeleteData [12:33:23]OFD Sender: No OFD packet to send [12:33:23]*** Cut start [12:33:23]*** Partial cut [12:33:23]*** CUTSNS_PIN = 1 [12:33:23]*** CUTSNS_PIN = 0 [12:33:24]*** Brake cut motor [12:33:24]Read from MH i2c: 01 [12:33:24]MH_I2C_Read... [12:33:24]*** Stop cut motor [12:33:24]*** Cut end [12:33:24]Read from MH i2c: 01 07 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 07 00 F8 0A 00 00 00 00 00 FF 0F 17 [12:33:24]process_action close_receipt done [12:33:24]requested_data is exist [12:33:24]produce_requested_data [12:33:24]requested_item fm.sn is exist - process it [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 11 00 00 [12:33:24]Write to MH i2c: E2 08 00 F9 0A 80 11 00 00 00 00 00 00 7D [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 17 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 17 00 F9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [12:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:33:24]wFMCommunicate OK [12:33:24]requested_item fd.num is exist - process it [12:33:24]SAM_PROTO_GetFieldsCounters [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 13 00 00 [12:33:24]Write to MH i2c: E2 08 00 FA 0A 80 13 00 00 00 00 00 00 80 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 62 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 62 00 FA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [12:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:24]wFMCommunicate OK [12:33:24]SAM_PROTO_GetFieldsCounters done [12:33:24]requested_item shift.num is exist - process it [12:33:24]requested_item shift.opened is exist - process it [12:33:24]req_shift_opened [12:33:24]FM_GetShiftState [12:33:24]SAM_PROTO_GetShiftState [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 13 01 00 [12:33:24]Write to MH i2c: E2 08 00 FB 0A 80 13 01 00 00 00 00 00 82 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 0E 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 0E 00 FB 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6A [12:33:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:33:24]wFMCommunicate OK [12:33:24]SAM_PROTO_GetShiftState done [12:33:24]FM_GetShiftState done [12:33:24]req_shift_opened done [12:33:24]requested_item shift.open_date is exist - process it [12:33:24]req_shift_open_date [12:33:24]req_shift_open_date done [12:33:24]produce_requested_data done [12:33:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188701,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:33:24]process_action_free close_receipt [12:33:24]json_value_free [12:33:24]json_value_free done [12:33:24]process_json_proto returns [12:33:24]Send response to host [12:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188701,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:33:24]free response buf [12:33:24]execute_script done [12:33:24]execute_script returns [12:33:24]free content buf [12:33:24]Sock 7.Close socket [12:33:24]Sock 7.Thread stoped [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:34]accept exits with 9 [12:34:34]New connection [12:34:34]New thread 3067018596 created [12:34:34]Thread 3067161956 joined [12:34:34]Waiting for new connection... [12:34:34] Sock 9.Parse request [12:34:34]Sock 9.Check first char [12:34:34]Sock 9.First char is OK [12:34:34]request: POST /json_proto HTTP/1.0 [12:34:34]Method: POST [12:34:34]URL: /json_proto [12:34:34]Method is POST - this is cgi request [12:34:34]url: /json_proto [12:34:34]query_string will be loaded in cgi processing [12:34:34]execute_cgi json_proto POST (null) [12:34:34]execute_cgi path=json_proto method=POST [12:34:34]POST find Content-Length [12:34:34]Host: 172.17.42.131:8080 [12:34:34]Content-Length: 648 [12:34:34]Content-Type: application/json [12:34:34] [12:34:34]POST finish read [12:34:34]Found Content-Length = 648 [12:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 30.000, "sum" : 2316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:34]execute_script... [12:34:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 30.000, "sum" : 2316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:34]POST & json_proto [12:34:34]process_json_proto [12:34:34]json parsed OK: [12:34:34]protocol is kg_v1.0 [12:34:34]action value=close_receipt [12:34:34]process_action close_receipt [12:34:34]cmd_close_receipt [12:34:34]MH_GetDate [12:34:34]Write to MH i2c: F0 00 00 FC 0A F5 [12:34:34]Write i2c OK [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: F0 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: F0 09 00 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: F0 09 00 FC 0A 00 5B ED 18 67 A0 18 CA 66 AD [12:34:34]GetLastDocTimeStamp 1729686801 [12:34:34]current date 1729686875 [12:34:34]FM_GetShiftState [12:34:34]SAM_PROTO_GetShiftState [12:34:34]wFMCommunicate request_size=4 [12:34:34]MH_SAM_APDU [12:34:34]CAPDU: 80 13 01 00 [12:34:34]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [12:34:34]Write i2c OK [12:34:34]MH_I2C_Read... [12:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:35]Read from MH i2c: E2 [12:34:35]MH_I2C_Read... [12:34:35]Read from MH i2c: E2 0E 00 [12:34:35]MH_I2C_Read... [12:34:35]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6C [12:34:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:34:35]wFMCommunicate OK [12:34:35]SAM_PROTO_GetShiftState done [12:34:35]FM_GetShiftState done [12:34:35]opened in 1729642525 [12:34:35]opened+sec_in_day 1729728925 [12:34:35]quantity*price = 231600 [12:34:35]sum+1 = 231601 [12:34:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2316.00 НСП 1% : 20.50 НДС 12% : 245.95 Наличными: 2316.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 160 23.10.2024 12:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188702 ФПД: 178332082898054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123435&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188702&fm=178332082898054&tin=02508201610067®Number=0000000000100030&sum=231600 [12:34:36]StoreToDocumentArchive [12:34:36]shift 462 fd 188702 [12:34:36]save to /storage/0462/doc_00188702 [12:34:36]save last doc name /storage/0462/doc_00188702 to /storage/kkm_last_doc_name [12:34:36]save OK [12:34:36]Clear old archive folders... [12:34:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:34:36]tlvbuf is 01C06A20 [12:34:36]SAM_PROTO_ClearQueue [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 09 00 00 [12:34:36]Write to MH i2c: E2 08 00 0A 0B 80 09 00 00 00 00 00 00 87 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [12:34:36]RAPDU: 90 00 [12:34:36]wFMCommunicate OK [12:34:36]SAM_PROTO_ClearQueue done [12:34:36]KKMCreateOFDPacket [12:34:36]OFDProtocolAddRootSTLVToBuf [12:34:36]FM_MakeSignedData [12:34:36]FM_MakeSignedData [12:34:36]SAM_PROTO_SignData [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 0D 01 02 [12:34:36]Write to MH i2c: E2 08 00 0B 0B 80 0D 01 02 00 00 00 00 8F [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [12:34:36]RAPDU: 90 00 [12:34:36]wFMCommunicate OK [12:34:36]wFMCommunicate request_size=255 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B0 88 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 88 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 60 00 00 00 00 07 04 06 00 B0 88 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 5B ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E1 02 [12:34:36]Write to MH i2c: E2 02 01 0C 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B0 88 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 88 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 60 00 00 00 00 07 04 06 00 B0 88 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 5B ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E1 02 00 00 5A [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [12:34:36]RAPDU: 90 00 [12:34:36]wFMCommunicate OK [12:34:36]wFMCommunicate request_size=16 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A2 31 2C 74 04 86 [12:34:36]Write to MH i2c: E2 13 00 0D 0B 80 0D 02 02 0B 00 00 35 04 06 00 A2 31 2C 74 04 86 00 00 E4 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [12:34:36]RAPDU: 90 00 [12:34:36]wFMCommunicate OK [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 0D 03 02 [12:34:36]Write to MH i2c: E2 08 00 0E 0B 80 0D 03 02 00 00 00 00 94 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 0B 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 0B 00 0E 0B 00 1C D7 9B 23 C5 96 27 21 90 00 E9 [12:34:36]RAPDU: 1C D7 9B 23 C5 96 27 21 90 00 [12:34:36]wFMCommunicate OK [12:34:36]SAM_PROTO_SignData done [12:34:36]FM_MakeSignedData done [12:34:36]CreateOFDProtocolMessage [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 11 00 00 [12:34:36]Write to MH i2c: E2 08 00 0F 0B 80 11 00 00 00 00 00 00 94 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 17 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 17 00 0F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [12:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:34:36]wFMCommunicate OK [12:34:36]CreateOFDProtocolMessage done [12:34:36]OFDSenderStorePacket 188702 [12:34:36]StoreOFDPacket docnum=188702 [12:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F7 5D 0D 01 A4 6E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B0 88 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 88 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 60 00 00 00 00 07 04 06 00 B0 88 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 5B ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E1 02 00 35 04 06 00 A2 31 2C 74 04 86 1C D7 9B 23 C5 96 27 21 [12:34:36]CheckFolder [12:34:36]dirname=/storage/ofd_packets [12:34:36]CheckFolder done [12:34:36]ProducePacketName [12:34:36]name=ofd_packets/00188702 [12:34:36]NVStorageSaveData ofd_packets/00188702 [12:34:36]File name is /storage/ofd_packets/00188702 [12:34:36]Write 307 bytes [12:34:36]NVStorageSaveData done [12:34:36]OFDSenderStorePacket done [12:34:36]KKMCreateOFDPacket done [12:34:36]NVStorageSaveData kkm_last_timestamp [12:34:36]File name is /storage/kkm_last_timestamp [12:34:36]Write 4 bytes [12:34:36]NVStorageSaveData done [12:34:36]ExternCall_PrintAddStr [12:34:36]wPrintStart [12:34:36]Write to MH i2c: 01 00 00 10 0B 1B [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 07 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 FF 0F 30 [12:34:36]RasterBufferAndPrint [12:34:36]line Счет N : (1)210762 [12:34:36]line ИНН: 02508201610067 [12:34:36]line Контрольно-Кассовый Чек [12:34:36]line ПРОДАЖА [12:34:36]line ТРК (МРК, ГНК) : 41 [12:34:36]line Товар: 2710194210 [12:34:36]line D-ENERGY ДТ-К-5 [12:34:36]line 30.000 * 77.20 [12:34:36]line = 2316.00 [12:34:36]line НДС 12% НСП 1% [12:34:36]line > о реализуемом товаре [12:34:36]line ИТОГО: 2316.00 [12:34:36]line НСП 1% : 20.50 [12:34:36]line НДС 12% : 245.95 [12:34:36]line Наличными: 2316.00 [12:34:36]line Безнал.: 0.00 [12:34:36]line Место: АЗС № 86 "Партнер Нефть" [12:34:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:34:36]line СНО: Общий режим [12:34:36]line Чек 160 23.10.2024 12:34 [12:34:36]line Смена: 462 ФФД: 1.0 [12:34:36]line ЗНМ: 0300000155 [12:34:36]line РНМ: 0000000000100030 [12:34:36]line Версия ККМ: 001 [12:34:36]line ФМ: 0000000000965340 [12:34:36]line ФД: 188702 [12:34:36]line ФПД: 178332082898054 [12:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123435&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188702&fm=178332082898054&tin=02508201610067®Number=0000000000100030&sum=231600 [12:34:36]written 0, free lines is 4095 [12:34:36]OFD Sender: Processing packet 188702 [packets to send 1062, broken 1061] [12:34:36]ProducePacketName [12:34:36]name=ofd_packets/00188702 [12:34:36]OFD Sender: To server: pG, [12:34:36]CommunicateWithHost lk.salyk.kg:30040 [12:34:36]ConnectInit lk.salyk.kg [12:34:37]Connected sock=11 [12:34:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F7 5D 0D 01 A4 6E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B0 88 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 88 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 60 00 00 00 00 07 04 06 00 B0 88 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 5B ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E1 02 00 35 04 06 00 A2 31 2C 74 04 86 1C D7 9B 23 C5 96 27 21 [12:34:37]Write to MH i2c: 01 00 00 38 0B 43 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 07 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 93 0C E9 [12:34:37]RasterBufferAndPrint [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]written 0, free lines is 3223 [12:34:37]MH_Cut [12:34:37]Write to MH i2c: D1 01 00 3F 0B 01 1C [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 01 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 01 00 3F 0B 00 1B [12:34:37]Write to MH i2c: 01 00 00 40 0B 4B [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4A 60 47 00 7E 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 36 35 33 34 30 10 04 04 00 1E E1 02 00 F4 03 04 00 46 97 18 67 B6 04 01 00 00 F6 70 9A 52 A2 B2 8E C9 [12:34:37]CommunicateWithHost err = 0 [12:34:37]CheckOFDResponse [12:34:37]1017 (14) - 77093643461234 [12:34:37]1041 (16) - 0000000000965340 [12:34:37]1040 (4) - 188702 [12:34:37]1012 (4) - 23.10.2024 06:27 [12:34:37]1206 (1) - 0 [12:34:37]OFD Sender: Remove packet 188702 [12:34:37]ProducePacketName [12:34:37]name=ofd_packets/00188702 [12:34:37]NVStorageDeleteData [12:34:37]OFD Sender: No OFD packet to send [12:34:38]*** Cut start [12:34:38]*** Partial cut [12:34:38]*** CUTSNS_PIN = 1 [12:34:38]*** CUTSNS_PIN = 0 [12:34:38]*** Brake cut motor [12:34:39]Read from MH i2c: 01 [12:34:39]MH_I2C_Read... [12:34:39]*** Stop cut motor [12:34:39]*** Cut end [12:34:39]Read from MH i2c: 01 07 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 07 00 40 0B 00 00 00 00 00 FF 0F 60 [12:34:39]process_action close_receipt done [12:34:39]requested_data is exist [12:34:39]produce_requested_data [12:34:39]requested_item fm.sn is exist - process it [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 11 00 00 [12:34:39]Write to MH i2c: E2 08 00 41 0B 80 11 00 00 00 00 00 00 C6 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 17 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 17 00 41 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [12:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:34:39]wFMCommunicate OK [12:34:39]requested_item fd.num is exist - process it [12:34:39]SAM_PROTO_GetFieldsCounters [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 13 00 00 [12:34:39]Write to MH i2c: E2 08 00 42 0B 80 13 00 00 00 00 00 00 C9 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:39]Read from MH i2c: E2 62 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 62 00 42 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [12:34:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:39]wFMCommunicate OK [12:34:39]SAM_PROTO_GetFieldsCounters done [12:34:39]requested_item shift.num is exist - process it [12:34:39]requested_item shift.opened is exist - process it [12:34:39]req_shift_opened [12:34:39]FM_GetShiftState [12:34:39]SAM_PROTO_GetShiftState [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 13 01 00 [12:34:39]Write to MH i2c: E2 08 00 43 0B 80 13 01 00 00 00 00 00 CB [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 0E 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 0E 00 43 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B3 [12:34:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:34:39]wFMCommunicate OK [12:34:39]SAM_PROTO_GetShiftState done [12:34:39]FM_GetShiftState done [12:34:39]req_shift_opened done [12:34:39]requested_item shift.open_date is exist - process it [12:34:39]req_shift_open_date [12:34:39]req_shift_open_date done [12:34:39]produce_requested_data done [12:34:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188702,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:34:39]process_action_free close_receipt [12:34:39]json_value_free [12:34:39]json_value_free done [12:34:39]process_json_proto returns [12:34:39]Send response to host [12:34:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188702,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:34:39]free response buf [12:34:39]execute_script done [12:34:39]execute_script returns [12:34:39]free content buf [12:34:39]Sock 9.Close socket [12:34:39]Sock 9.Thread stoped [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:39]accept exits with 7 [12:35:39]New connection [12:35:39]New thread 3067161956 created [12:35:39]Thread 3067018596 joined [12:35:39]Waiting for new connection... [12:35:39] Sock 7.Parse request [12:35:39]Sock 7.Check first char [12:35:39]Sock 7.First char is OK [12:35:39]request: POST /json_proto HTTP/1.0 [12:35:39]Method: POST [12:35:39]URL: /json_proto [12:35:39]Method is POST - this is cgi request [12:35:39]url: /json_proto [12:35:39]query_string will be loaded in cgi processing [12:35:39]execute_cgi json_proto POST (null) [12:35:39]execute_cgi path=json_proto method=POST [12:35:39]POST find Content-Length [12:35:39]Host: 172.17.42.131:8080 [12:35:39]Content-Length: 682 [12:35:39]Content-Type: application/json [12:35:39] [12:35:39]POST finish read [12:35:39]Found Content-Length = 682 [12:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.890, "sum" : 1030.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1030.00, "total" : 1030.00, "payments": [ { "type": 0, "sum" : 1030.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:39]execute_script... [12:35:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.890, "sum" : 1030.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1030.00, "total" : 1030.00, "payments": [ { "type": 0, "sum" : 1030.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:39]POST & json_proto [12:35:39]process_json_proto [12:35:39]json parsed OK: [12:35:39]protocol is kg_v1.0 [12:35:39]action value=close_receipt [12:35:39]process_action close_receipt [12:35:39]cmd_close_receipt [12:35:39]MH_GetDate [12:35:39]Write to MH i2c: F0 00 00 44 0B 3E [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: F0 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: F0 09 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: F0 09 00 44 0B 00 9C ED 18 67 A0 18 CA 66 37 [12:35:39]GetLastDocTimeStamp 1729686875 [12:35:39]current date 1729686940 [12:35:39]FM_GetShiftState [12:35:39]SAM_PROTO_GetShiftState [12:35:39]wFMCommunicate request_size=4 [12:35:39]MH_SAM_APDU [12:35:39]CAPDU: 80 13 01 00 [12:35:39]Write to MH i2c: E2 08 00 45 0B 80 13 01 00 00 00 00 00 CD [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 0E 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 0E 00 45 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B5 [12:35:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:35:39]wFMCommunicate OK [12:35:39]SAM_PROTO_GetShiftState done [12:35:39]FM_GetShiftState done [12:35:39]opened in 1729642525 [12:35:39]opened+sec_in_day 1729728925 [12:35:39]quantity*price = 103063 [12:35:39]sum+1 = 103065 [12:35:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1030.00 Внесено: 1030.00 СДАЧА: 0.00 НСП 1% : 9.12 НДС 12% : 109.45 Наличными: 1030.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 161 23.10.2024 12:35 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188703 ФПД: 281118730164338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123540&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188703&fm=281118730164338&tin=02508201610067®Number=0000000000100030&sum=103000 [12:35:40]StoreToDocumentArchive [12:35:40]shift 462 fd 188703 [12:35:40]save to /storage/0462/doc_00188703 [12:35:40]save last doc name /storage/0462/doc_00188703 to /storage/kkm_last_doc_name [12:35:40]save OK [12:35:40]Clear old archive folders... [12:35:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:40]tlvbuf is 01C5A220 [12:35:40]SAM_PROTO_ClearQueue [12:35:40]wFMCommunicate request_size=4 [12:35:40]MH_SAM_APDU [12:35:40]CAPDU: 80 09 00 00 [12:35:40]Write to MH i2c: E2 08 00 52 0B 80 09 00 00 00 00 00 00 CF [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:40]Read from MH i2c: E2 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 03 00 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [12:35:40]RAPDU: 90 00 [12:35:40]wFMCommunicate OK [12:35:40]SAM_PROTO_ClearQueue done [12:35:40]KKMCreateOFDPacket [12:35:40]OFDProtocolAddRootSTLVToBuf [12:35:40]FM_MakeSignedData [12:35:40]FM_MakeSignedData [12:35:40]SAM_PROTO_SignData [12:35:40]wFMCommunicate request_size=4 [12:35:40]MH_SAM_APDU [12:35:40]CAPDU: 80 0D 01 02 [12:35:40]Write to MH i2c: E2 08 00 53 0B 80 0D 01 02 00 00 00 00 D7 [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:40]Read from MH i2c: E2 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 03 00 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [12:35:40]RAPDU: 90 00 [12:35:40]wFMCommunicate OK [12:35:40]wFMCommunicate request_size=255 [12:35:40]MH_SAM_APDU [12:35:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 98 92 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 2A 00 00 00 00 07 04 06 00 58 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 9C ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E1 02 00 35 04 06 00 FF [12:35:40]Write to MH i2c: E2 02 01 54 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 98 92 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 2A 00 00 00 00 07 04 06 00 58 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 9C ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E1 02 00 35 04 06 00 FF 00 00 51 [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:41]Read from MH i2c: E2 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 03 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [12:35:41]RAPDU: 90 00 [12:35:41]wFMCommunicate OK [12:35:41]wFMCommunicate request_size=10 [12:35:41]MH_SAM_APDU [12:35:41]CAPDU: 80 0D 02 02 05 AD 0E 0D 18 72 [12:35:41]Write to MH i2c: E2 0D 00 55 0B 80 0D 02 02 05 00 AD 0E 0D 18 72 00 00 36 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:41]Read from MH i2c: E2 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 03 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [12:35:41]RAPDU: 90 00 [12:35:41]wFMCommunicate OK [12:35:41]wFMCommunicate request_size=4 [12:35:41]MH_SAM_APDU [12:35:41]CAPDU: 80 0D 03 02 [12:35:41]Write to MH i2c: E2 08 00 56 0B 80 0D 03 02 00 00 00 00 DC [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:41]Read from MH i2c: E2 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 0B 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 0B 00 56 0B 00 D2 1E 43 75 F8 79 FF D4 90 00 C9 [12:35:41]RAPDU: D2 1E 43 75 F8 79 FF D4 90 00 [12:35:41]wFMCommunicate OK [12:35:41]SAM_PROTO_SignData done [12:35:41]FM_MakeSignedData done [12:35:41]CreateOFDProtocolMessage [12:35:41]wFMCommunicate request_size=4 [12:35:41]MH_SAM_APDU [12:35:41]CAPDU: 80 11 00 00 [12:35:41]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:41]Read from MH i2c: E2 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 17 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [12:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:35:41]wFMCommunicate OK [12:35:41]CreateOFDProtocolMessage done [12:35:41]OFDSenderStorePacket 188703 [12:35:41]StoreOFDPacket docnum=188703 [12:35:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D 34 07 01 38 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 98 92 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 2A 00 00 00 00 07 04 06 00 58 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 9C ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E1 02 00 35 04 06 00 FF AD 0E 0D 18 72 D2 1E 43 75 F8 79 FF D4 [12:35:41]CheckFolder [12:35:41]dirname=/storage/ofd_packets [12:35:41]CheckFolder done [12:35:41]ProducePacketName [12:35:41]name=ofd_packets/00188703 [12:35:41]NVStorageSaveData ofd_packets/00188703 [12:35:41]File name is /storage/ofd_packets/00188703 [12:35:41]Write 301 bytes [12:35:41]NVStorageSaveData done [12:35:41]OFDSenderStorePacket done [12:35:41]KKMCreateOFDPacket done [12:35:41]NVStorageSaveData kkm_last_timestamp [12:35:41]File name is /storage/kkm_last_timestamp [12:35:41]Write 4 bytes [12:35:41]NVStorageSaveData done [12:35:41]ExternCall_PrintAddStr [12:35:41]wPrintStart [12:35:41]Write to MH i2c: 01 00 00 58 0B 63 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 07 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 FF 0F 78 [12:35:41]RasterBufferAndPrint [12:35:41]line Счет N : (1)210763 [12:35:41]line ИНН: 02508201610067 [12:35:41]line Контрольно-Кассовый Чек [12:35:41]line ПРОДАЖА [12:35:41]line ТРК (МРК, ГНК) : 13 [12:35:41]line Товар: 2710124500 [12:35:41]line Аи-95-К-3 [12:35:41]line 13.890 * 74.20 [12:35:41]line = 1030.64 [12:35:41]line НДС 12% НСП 1% [12:35:41]line > о реализуемом товаре [12:35:41]line ОКРУГЛЕНИЕ: -0.64 [12:35:41]line ИТОГО: 1030.00 [12:35:41]line Внесено: 1030.00 [12:35:41]line СДАЧА: 0.00 [12:35:41]line НСП 1% : 9.12 [12:35:41]line НДС 12% : 109.45 [12:35:41]line Наличными: 1030.00 [12:35:41]line Безнал.: 0.00 [12:35:41]line Место: АЗС № 86 "Партнер Нефть" [12:35:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:35:41]line СНО: Общий режим [12:35:41]line Чек 161 23.10.2024 12:35 [12:35:41]line Смена: 462 ФФД: 1.0 [12:35:41]line ЗНМ: 0300000155 [12:35:41]line РНМ: 0000000000100030 [12:35:41]line Версия ККМ: 001 [12:35:41]line ФМ: 0000000000965340 [12:35:41]line ФД: 188703 [12:35:41]line ФПД: 281118730164338 [12:35:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123540&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188703&fm=281118730164338&tin=02508201610067®Number=0000000000100030&sum=103000 [12:35:41]written 0, free lines is 4095 [12:35:41]OFD Sender: Processing packet 188703 [packets to send 1062, broken 1061] [12:35:41]ProducePacketName [12:35:41]name=ofd_packets/00188703 [12:35:41]OFD Sender: To server: pG, [12:35:41]CommunicateWithHost lk.salyk.kg:30040 [12:35:41]ConnectInit lk.salyk.kg [12:35:41]Write to MH i2c: 01 00 00 83 0B 8E [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 07 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 57 0C F8 [12:35:41]RasterBufferAndPrint [12:35:41]line [12:35:41]line [12:35:41]line [12:35:41]line [12:35:41]line [12:35:41]written 0, free lines is 3163 [12:35:41]MH_Cut [12:35:41]Write to MH i2c: D1 01 00 8A 0B 01 67 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: D1 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: D1 01 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: D1 01 00 8A 0B 00 66 [12:35:41]Write to MH i2c: 01 00 00 8B 0B 96 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]Connected sock=10 [12:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D 34 07 01 38 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 98 92 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 2A 00 00 00 00 07 04 06 00 58 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 9C ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E1 02 00 35 04 06 00 FF AD 0E 0D 18 72 D2 1E 43 75 F8 79 FF D4 [12:35:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 53 83 47 00 BE 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 36 35 33 34 30 10 04 04 00 1F E1 02 00 F4 03 04 00 87 97 18 67 B6 04 01 00 00 36 48 8E 26 64 9F ED F7 [12:35:42]CommunicateWithHost err = 0 [12:35:42]CheckOFDResponse [12:35:42]1017 (14) - 77093643461234 [12:35:42]1041 (16) - 0000000000965340 [12:35:42]1040 (4) - 188703 [12:35:42]1012 (4) - 23.10.2024 06:28 [12:35:42]1206 (1) - 0 [12:35:42]OFD Sender: Remove packet 188703 [12:35:42]ProducePacketName [12:35:42]name=ofd_packets/00188703 [12:35:42]NVStorageDeleteData [12:35:42]OFD Sender: No OFD packet to send [12:35:43]*** Cut start [12:35:43]*** Partial cut [12:35:43]*** CUTSNS_PIN = 1 [12:35:43]*** CUTSNS_PIN = 0 [12:35:43]*** Brake cut motor [12:35:43]Read from MH i2c: 01 [12:35:43]MH_I2C_Read... [12:35:43]*** Stop cut motor [12:35:43]*** Cut end [12:35:43]Read from MH i2c: 01 07 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: 01 07 00 8B 0B 00 00 00 00 00 FF 0F AB [12:35:43]process_action close_receipt done [12:35:43]requested_data is exist [12:35:43]produce_requested_data [12:35:43]requested_item fm.sn is exist - process it [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 11 00 00 [12:35:43]Write to MH i2c: E2 08 00 8C 0B 80 11 00 00 00 00 00 00 11 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 17 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 17 00 8C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [12:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:35:43]wFMCommunicate OK [12:35:43]requested_item fd.num is exist - process it [12:35:43]SAM_PROTO_GetFieldsCounters [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 13 00 00 [12:35:43]Write to MH i2c: E2 08 00 8D 0B 80 13 00 00 00 00 00 00 14 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 62 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 62 00 8D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [12:35:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:43]wFMCommunicate OK [12:35:43]SAM_PROTO_GetFieldsCounters done [12:35:43]requested_item shift.num is exist - process it [12:35:43]requested_item shift.opened is exist - process it [12:35:43]req_shift_opened [12:35:43]FM_GetShiftState [12:35:43]SAM_PROTO_GetShiftState [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 13 01 00 [12:35:43]Write to MH i2c: E2 08 00 8E 0B 80 13 01 00 00 00 00 00 16 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 0E 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 0E 00 8E 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FE [12:35:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:35:44]wFMCommunicate OK [12:35:44]SAM_PROTO_GetShiftState done [12:35:44]FM_GetShiftState done [12:35:44]req_shift_opened done [12:35:44]requested_item shift.open_date is exist - process it [12:35:44]req_shift_open_date [12:35:44]req_shift_open_date done [12:35:44]produce_requested_data done [12:35:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188703,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:35:44]process_action_free close_receipt [12:35:44]json_value_free [12:35:44]json_value_free done [12:35:44]process_json_proto returns [12:35:44]Send response to host [12:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188703,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:35:44]free response buf [12:35:44]execute_script done [12:35:44]execute_script returns [12:35:44]free content buf [12:35:44]Sock 7.Close socket [12:35:44]Sock 7.Thread stoped [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:06]accept exits with 9 [12:37:06]New connection [12:37:06]New thread 3067018596 created [12:37:06]Thread 3067161956 joined [12:37:06]Waiting for new connection... [12:37:06] Sock 9.Parse request [12:37:06]Sock 9.Check first char [12:37:06]Sock 9.First char is OK [12:37:06]request: POST /json_proto HTTP/1.0 [12:37:06]Method: POST [12:37:06]URL: /json_proto [12:37:06]Method is POST - this is cgi request [12:37:06]url: /json_proto [12:37:06]query_string will be loaded in cgi processing [12:37:06]execute_cgi json_proto POST (null) [12:37:06]execute_cgi path=json_proto method=POST [12:37:06]POST find Content-Length [12:37:06]Host: 172.17.42.131:8080 [12:37:06]Content-Length: 677 [12:37:06]Content-Type: application/json [12:37:06] [12:37:06]POST finish read [12:37:06]Found Content-Length = 677 [12:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:06]execute_script... [12:37:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:06]POST & json_proto [12:37:06]process_json_proto [12:37:06]json parsed OK: [12:37:06]protocol is kg_v1.0 [12:37:06]action value=close_receipt [12:37:06]process_action close_receipt [12:37:06]cmd_close_receipt [12:37:06]MH_GetDate [12:37:06]Write to MH i2c: F0 00 00 8F 0B 89 [12:37:06]Write i2c OK [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: F0 [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: F0 09 00 [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: F0 09 00 8F 0B 00 F3 ED 18 67 A0 18 CA 66 D9 [12:37:06]GetLastDocTimeStamp 1729686940 [12:37:06]current date 1729687027 [12:37:06]FM_GetShiftState [12:37:06]SAM_PROTO_GetShiftState [12:37:06]wFMCommunicate request_size=4 [12:37:06]MH_SAM_APDU [12:37:06]CAPDU: 80 13 01 00 [12:37:06]Write to MH i2c: E2 08 00 90 0B 80 13 01 00 00 00 00 00 18 [12:37:06]Write i2c OK [12:37:06]MH_I2C_Read... [12:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:06]Read from MH i2c: E2 [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: E2 0E 00 [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: E2 0E 00 90 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 00 [12:37:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:37:06]wFMCommunicate OK [12:37:06]SAM_PROTO_GetShiftState done [12:37:06]FM_GetShiftState done [12:37:06]opened in 1729642525 [12:37:06]opened+sec_in_day 1729728925 [12:37:06]quantity*price = 60009 [12:37:06]sum+1 = 60010 [12:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 162 23.10.2024 12:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188704 ФПД: 124821600999968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123707&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188704&fm=124821600999968&tin=02508201610067®Number=0000000000100030&sum=60000 [12:37:07]StoreToDocumentArchive [12:37:07]shift 462 fd 188704 [12:37:07]save to /storage/0462/doc_00188704 [12:37:07]save last doc name /storage/0462/doc_00188704 to /storage/kkm_last_doc_name [12:37:07]save OK [12:37:07]Clear old archive folders... [12:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:07]tlvbuf is 01C46C00 [12:37:07]SAM_PROTO_ClearQueue [12:37:07]wFMCommunicate request_size=4 [12:37:07]MH_SAM_APDU [12:37:07]CAPDU: 80 09 00 00 [12:37:07]Write to MH i2c: E2 08 00 9D 0B 80 09 00 00 00 00 00 00 1A [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [12:37:08]RAPDU: 90 00 [12:37:08]wFMCommunicate OK [12:37:08]SAM_PROTO_ClearQueue done [12:37:08]KKMCreateOFDPacket [12:37:08]OFDProtocolAddRootSTLVToBuf [12:37:08]FM_MakeSignedData [12:37:08]FM_MakeSignedData [12:37:08]SAM_PROTO_SignData [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 0D 01 02 [12:37:08]Write to MH i2c: E2 08 00 9E 0B 80 0D 01 02 00 00 00 00 22 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [12:37:08]RAPDU: 90 00 [12:37:08]wFMCommunicate OK [12:37:08]wFMCommunicate request_size=255 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 F3 ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E1 02 00 35 04 06 00 71 [12:37:08]Write to MH i2c: E2 02 01 9F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 F3 ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E1 02 00 35 04 06 00 71 00 00 B6 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]OFD Sender: No OFD packet to send [12:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [12:37:08]RAPDU: 90 00 [12:37:08]wFMCommunicate OK [12:37:08]wFMCommunicate request_size=10 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 0D 02 02 05 86 4B 30 1A 20 [12:37:08]Write to MH i2c: E2 0D 00 A0 0B 80 0D 02 02 05 00 86 4B 30 1A 20 00 00 6A [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [12:37:08]RAPDU: 90 00 [12:37:08]wFMCommunicate OK [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 0D 03 02 [12:37:08]Write to MH i2c: E2 08 00 A1 0B 80 0D 03 02 00 00 00 00 27 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 0B 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 0B 00 A1 0B 00 7A 79 70 40 1D 44 C3 2A 90 00 19 [12:37:08]RAPDU: 7A 79 70 40 1D 44 C3 2A 90 00 [12:37:08]wFMCommunicate OK [12:37:08]SAM_PROTO_SignData done [12:37:08]FM_MakeSignedData done [12:37:08]CreateOFDProtocolMessage [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 11 00 00 [12:37:08]Write to MH i2c: E2 08 00 A2 0B 80 11 00 00 00 00 00 00 27 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:08]Read from MH i2c: E2 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 17 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: E2 17 00 A2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [12:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:37:08]wFMCommunicate OK [12:37:08]CreateOFDProtocolMessage done [12:37:08]OFDSenderStorePacket 188704 [12:37:08]StoreOFDPacket docnum=188704 [12:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E C8 07 01 AB DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 F3 ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E1 02 00 35 04 06 00 71 86 4B 30 1A 20 7A 79 70 40 1D 44 C3 2A [12:37:08]CheckFolder [12:37:08]dirname=/storage/ofd_packets [12:37:08]CheckFolder done [12:37:08]ProducePacketName [12:37:08]name=ofd_packets/00188704 [12:37:08]NVStorageSaveData ofd_packets/00188704 [12:37:08]File name is /storage/ofd_packets/00188704 [12:37:08]Write 301 bytes [12:37:08]NVStorageSaveData done [12:37:08]OFDSenderStorePacket done [12:37:08]KKMCreateOFDPacket done [12:37:08]NVStorageSaveData kkm_last_timestamp [12:37:08]File name is /storage/kkm_last_timestamp [12:37:08]Write 4 bytes [12:37:08]NVStorageSaveData done [12:37:08]ExternCall_PrintAddStr [12:37:08]wPrintStart [12:37:08]Write to MH i2c: 01 00 00 A3 0B AE [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: 01 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: 01 07 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 FF 0F C3 [12:37:08]RasterBufferAndPrint [12:37:08]line Счет N : (1)210764 [12:37:08]line ИНН: 02508201610067 [12:37:08]line Контрольно-Кассовый Чек [12:37:08]line ПРОДАЖА [12:37:08]line ТРК (МРК, ГНК) : 42 [12:37:08]line Товар: 2710124130 [12:37:08]line Аи-92-К-3 [12:37:08]line 8.970 * 66.90 [12:37:08]line = 600.09 [12:37:08]line НДС 12% НСП 1% [12:37:08]line > о реализуемом товаре [12:37:08]line ОКРУГЛЕНИЕ: -0.09 [12:37:08]line ИТОГО: 600.00 [12:37:08]line Внесено: 600.00 [12:37:08]line СДАЧА: 0.00 [12:37:08]line НСП 1% : 5.31 [12:37:08]line НДС 12% : 63.73 [12:37:08]line Наличными: 600.00 [12:37:08]line Безнал.: 0.00 [12:37:08]line Место: АЗС № 86 "Партнер Нефть" [12:37:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:37:08]line СНО: Общий режим [12:37:08]line Чек 162 23.10.2024 12:37 [12:37:08]line Смена: 462 ФФД: 1.0 [12:37:08]line ЗНМ: 0300000155 [12:37:08]line РНМ: 0000000000100030 [12:37:08]line Версия ККМ: 001 [12:37:08]line ФМ: 0000000000965340 [12:37:08]line ФД: 188704 [12:37:08]line ФПД: 124821600999968 [12:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123707&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188704&fm=124821600999968&tin=02508201610067®Number=0000000000100030&sum=60000 [12:37:08]written 0, free lines is 4095 [12:37:08]OFD Sender: Processing packet 188704 [packets to send 1062, broken 1061] [12:37:08]ProducePacketName [12:37:08]name=ofd_packets/00188704 [12:37:08]OFD Sender: To server: pG, [12:37:08]CommunicateWithHost lk.salyk.kg:30040 [12:37:08]ConnectInit lk.salyk.kg [12:37:08]Connected sock=7 [12:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E C8 07 01 AB DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 F3 ED 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E1 02 00 35 04 06 00 71 86 4B 30 1A 20 7A 79 70 40 1D 44 C3 2A [12:37:08]Write to MH i2c: 01 00 00 CE 0B D9 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: 01 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: 01 07 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: 01 07 00 CE 0B 00 00 00 00 00 59 0C 45 [12:37:08]RasterBufferAndPrint [12:37:08]line [12:37:08]line [12:37:08]line [12:37:08]line [12:37:08]line [12:37:09]written 0, free lines is 3165 [12:37:09]MH_Cut [12:37:09]Write to MH i2c: D1 01 00 D5 0B 01 B2 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: D1 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: D1 01 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: D1 01 00 D5 0B 00 B1 [12:37:09]Write to MH i2c: 01 00 00 D6 0B E1 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 F5 47 00 C8 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E1 02 00 F4 03 04 00 DE 97 18 67 B6 04 01 00 00 31 A5 64 8E AC E1 ED DB [12:37:09]CommunicateWithHost err = 0 [12:37:09]CheckOFDResponse [12:37:09]1017 (14) - 77093643461234 [12:37:09]1041 (16) - 0000000000965340 [12:37:09]1040 (4) - 188704 [12:37:09]1012 (4) - 23.10.2024 06:29 [12:37:09]1206 (1) - 0 [12:37:09]OFD Sender: Remove packet 188704 [12:37:09]ProducePacketName [12:37:09]name=ofd_packets/00188704 [12:37:09]NVStorageDeleteData [12:37:09]OFD Sender: No OFD packet to send [12:37:10]*** Cut start [12:37:10]*** Partial cut [12:37:10]*** CUTSNS_PIN = 1 [12:37:10]*** CUTSNS_PIN = 0 [12:37:10]*** Brake cut motor [12:37:10]Read from MH i2c: 01 [12:37:10]MH_I2C_Read... [12:37:10]*** Stop cut motor [12:37:10]*** Cut end [12:37:10]Read from MH i2c: 01 07 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 FF 0F F6 [12:37:10]process_action close_receipt done [12:37:10]requested_data is exist [12:37:10]produce_requested_data [12:37:10]requested_item fm.sn is exist - process it [12:37:10]wFMCommunicate request_size=4 [12:37:10]MH_SAM_APDU [12:37:10]CAPDU: 80 11 00 00 [12:37:10]Write to MH i2c: E2 08 00 D7 0B 80 11 00 00 00 00 00 00 5C [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:10]Read from MH i2c: E2 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 17 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 17 00 D7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [12:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:37:10]wFMCommunicate OK [12:37:10]requested_item fd.num is exist - process it [12:37:10]SAM_PROTO_GetFieldsCounters [12:37:10]wFMCommunicate request_size=4 [12:37:10]MH_SAM_APDU [12:37:10]CAPDU: 80 13 00 00 [12:37:10]Write to MH i2c: E2 08 00 D8 0B 80 13 00 00 00 00 00 00 5F [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:11]Read from MH i2c: E2 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 62 00 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 62 00 D8 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:11]wFMCommunicate OK [12:37:11]SAM_PROTO_GetFieldsCounters done [12:37:11]requested_item shift.num is exist - process it [12:37:11]requested_item shift.opened is exist - process it [12:37:11]req_shift_opened [12:37:11]FM_GetShiftState [12:37:11]SAM_PROTO_GetShiftState [12:37:11]wFMCommunicate request_size=4 [12:37:11]MH_SAM_APDU [12:37:11]CAPDU: 80 13 01 00 [12:37:11]Write to MH i2c: E2 08 00 D9 0B 80 13 01 00 00 00 00 00 61 [12:37:11]Write i2c OK [12:37:11]MH_I2C_Read... [12:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:11]Read from MH i2c: E2 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 0E 00 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: E2 0E 00 D9 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 49 [12:37:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:37:11]wFMCommunicate OK [12:37:11]SAM_PROTO_GetShiftState done [12:37:11]FM_GetShiftState done [12:37:11]req_shift_opened done [12:37:11]requested_item shift.open_date is exist - process it [12:37:11]req_shift_open_date [12:37:11]req_shift_open_date done [12:37:11]produce_requested_data done [12:37:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188704,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:37:11]process_action_free close_receipt [12:37:11]json_value_free [12:37:11]json_value_free done [12:37:11]process_json_proto returns [12:37:11]Send response to host [12:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188704,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:37:11]free response buf [12:37:11]execute_script done [12:37:11]execute_script returns [12:37:11]free content buf [12:37:11]Sock 9.Close socket [12:37:11]Sock 9.Thread stoped [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38: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:45]accept exits with 10 [12:40:45]New connection [12:40:45]New thread 3067161956 created [12:40:45]Thread 3067018596 joined [12:40:45]Waiting for new connection... [12:40:45] Sock 10.Parse request [12:40:45]Sock 10.Check first char [12:40:45]Sock 10.First char is OK [12:40:45]request: POST /json_proto HTTP/1.0 [12:40:45]Method: POST [12:40:45]URL: /json_proto [12:40:45]Method is POST - this is cgi request [12:40:45]url: /json_proto [12:40:45]query_string will be loaded in cgi processing [12:40:45]execute_cgi json_proto POST (null) [12:40:45]execute_cgi path=json_proto method=POST [12:40:45]POST find Content-Length [12:40:45]Host: 172.17.42.131:8080 [12:40:45]Content-Length: 677 [12:40:45]Content-Type: application/json [12:40:45] [12:40:45]POST finish read [12:40:45]Found Content-Length = 677 [12:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:45]execute_script... [12:40:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:45]POST & json_proto [12:40:45]process_json_proto [12:40:45]json parsed OK: [12:40:45]protocol is kg_v1.0 [12:40:45]action value=close_receipt [12:40:45]process_action close_receipt [12:40:45]cmd_close_receipt [12:40:45]MH_GetDate [12:40:45]Write to MH i2c: F0 00 00 DA 0B D4 [12:40:45]Write i2c OK [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: F0 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: F0 09 00 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: F0 09 00 DA 0B 00 CE EE 18 67 A0 18 CA 66 00 [12:40:45]GetLastDocTimeStamp 1729687027 [12:40:45]current date 1729687246 [12:40:45]FM_GetShiftState [12:40:45]SAM_PROTO_GetShiftState [12:40:45]wFMCommunicate request_size=4 [12:40:45]MH_SAM_APDU [12:40:45]CAPDU: 80 13 01 00 [12:40:45]Write to MH i2c: E2 08 00 DB 0B 80 13 01 00 00 00 00 00 63 [12:40:45]Write i2c OK [12:40:45]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0E 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0E 00 DB 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4B [12:40:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_GetShiftState done [12:40:46]FM_GetShiftState done [12:40:46]opened in 1729642525 [12:40:46]opened+sec_in_day 1729728925 [12:40:46]quantity*price = 40006 [12:40:46]sum+1 = 40007 [12:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 163 23.10.2024 12:40 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188705 ФПД: 205245160136400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188705&fm=205245160136400&tin=02508201610067®Number=0000000000100030&sum=40000 [12:40:47]StoreToDocumentArchive [12:40:47]shift 462 fd 188705 [12:40:47]save to /storage/0462/doc_00188705 [12:40:47]save last doc name /storage/0462/doc_00188705 to /storage/kkm_last_doc_name [12:40:47]save OK [12:40:47]Clear old archive folders... [12:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:47]tlvbuf is 01C180E0 [12:40:47]SAM_PROTO_ClearQueue [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 09 00 00 [12:40:47]Write to MH i2c: E2 08 00 E8 0B 80 09 00 00 00 00 00 00 65 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [12:40:47]RAPDU: 90 00 [12:40:47]wFMCommunicate OK [12:40:47]SAM_PROTO_ClearQueue done [12:40:47]KKMCreateOFDPacket [12:40:47]OFDProtocolAddRootSTLVToBuf [12:40:47]FM_MakeSignedData [12:40:47]FM_MakeSignedData [12:40:47]SAM_PROTO_SignData [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 0D 01 02 [12:40:47]Write to MH i2c: E2 08 00 E9 0B 80 0D 01 02 00 00 00 00 6D [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [12:40:47]RAPDU: 90 00 [12:40:47]wFMCommunicate OK [12:40:47]wFMCommunicate request_size=255 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CE EE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E1 02 00 35 04 06 00 BA [12:40:47]Write to MH i2c: E2 02 01 EA 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CE EE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E1 02 00 35 04 06 00 BA 00 00 1A [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [12:40:47]RAPDU: 90 00 [12:40:47]wFMCommunicate OK [12:40:47]wFMCommunicate request_size=10 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 0D 02 02 05 AB 5C DC 9E D0 [12:40:47]Write to MH i2c: E2 0D 00 EB 0B 80 0D 02 02 05 00 AB 5C DC 9E D0 00 00 CB [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 EB 0B 00 90 00 6A [12:40:47]RAPDU: 90 00 [12:40:47]wFMCommunicate OK [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 0D 03 02 [12:40:47]Write to MH i2c: E2 08 00 EC 0B 80 0D 03 02 00 00 00 00 72 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 0B 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 0B 00 EC 0B 00 26 71 71 4C 16 8D A4 33 90 00 41 [12:40:47]RAPDU: 26 71 71 4C 16 8D A4 33 90 00 [12:40:47]wFMCommunicate OK [12:40:47]SAM_PROTO_SignData done [12:40:47]FM_MakeSignedData done [12:40:47]CreateOFDProtocolMessage [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 11 00 00 [12:40:47]Write to MH i2c: E2 08 00 ED 0B 80 11 00 00 00 00 00 00 72 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 17 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 17 00 ED 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [12:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:40:47]wFMCommunicate OK [12:40:47]CreateOFDProtocolMessage done [12:40:47]OFDSenderStorePacket 188705 [12:40:47]StoreOFDPacket docnum=188705 [12:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E 76 07 01 C2 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CE EE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E1 02 00 35 04 06 00 BA AB 5C DC 9E D0 26 71 71 4C 16 8D A4 33 [12:40:47]CheckFolder [12:40:47]dirname=/storage/ofd_packets [12:40:47]CheckFolder done [12:40:47]ProducePacketName [12:40:47]name=ofd_packets/00188705 [12:40:47]NVStorageSaveData ofd_packets/00188705 [12:40:47]File name is /storage/ofd_packets/00188705 [12:40:47]Write 301 bytes [12:40:47]NVStorageSaveData done [12:40:47]OFDSenderStorePacket done [12:40:47]KKMCreateOFDPacket done [12:40:47]NVStorageSaveData kkm_last_timestamp [12:40:47]File name is /storage/kkm_last_timestamp [12:40:47]Write 4 bytes [12:40:47]NVStorageSaveData done [12:40:47]ExternCall_PrintAddStr [12:40:47]wPrintStart [12:40:47]Write to MH i2c: 01 00 00 EE 0B F9 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 07 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 07 00 EE 0B 00 00 00 00 00 FF 0F 0E [12:40:47]RasterBufferAndPrint [12:40:47]line Счет N : (1)210765 [12:40:47]line ИНН: 02508201610067 [12:40:47]line Контрольно-Кассовый Чек [12:40:47]line ПРОДАЖА [12:40:47]line ТРК (МРК, ГНК) : 42 [12:40:47]line Товар: 2710124130 [12:40:47]line Аи-92-К-3 [12:40:47]line 5.980 * 66.90 [12:40:47]line = 400.06 [12:40:47]line НДС 12% НСП 1% [12:40:47]line > о реализуемом товаре [12:40:47]line ОКРУГЛЕНИЕ: -0.06 [12:40:47]line ИТОГО: 400.00 [12:40:47]line Внесено: 400.00 [12:40:47]line СДАЧА: 0.00 [12:40:47]line НСП 1% : 3.54 [12:40:47]line НДС 12% : 42.48 [12:40:47]line Наличными: 400.00 [12:40:47]line Безнал.: 0.00 [12:40:47]line Место: АЗС № 86 "Партнер Нефть" [12:40:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:40:47]line СНО: Общий режим [12:40:47]line Чек 163 23.10.2024 12:40 [12:40:47]line Смена: 462 ФФД: 1.0 [12:40:47]line ЗНМ: 0300000155 [12:40:47]line РНМ: 0000000000100030 [12:40:47]line Версия ККМ: 001 [12:40:47]line ФМ: 0000000000965340 [12:40:47]line ФД: 188705 [12:40:47]line ФПД: 205245160136400 [12:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188705&fm=205245160136400&tin=02508201610067®Number=0000000000100030&sum=40000 [12:40:47]written 0, free lines is 4095 [12:40:47]OFD Sender: Processing packet 188705 [packets to send 1062, broken 1061] [12:40:47]ProducePacketName [12:40:47]name=ofd_packets/00188705 [12:40:47]OFD Sender: To server: pG, [12:40:47]CommunicateWithHost lk.salyk.kg:30040 [12:40:47]ConnectInit lk.salyk.kg [12:40:48]Connected sock=9 [12:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E 76 07 01 C2 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CE EE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E1 02 00 35 04 06 00 BA AB 5C DC 9E D0 26 71 71 4C 16 8D A4 33 [12:40:48]Write to MH i2c: 01 00 00 19 0C 25 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 19 0C 00 00 00 00 00 62 0C 9A [12:40:48]RasterBufferAndPrint [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]written 0, free lines is 3174 [12:40:48]MH_Cut [12:40:48]Write to MH i2c: D1 01 00 20 0C 01 FE [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 01 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 01 00 20 0C 00 FD [12:40:48]Write to MH i2c: 01 00 00 21 0C 2D [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A4 C6 47 00 3C 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E1 02 00 F4 03 04 00 B9 98 18 67 B6 04 01 00 00 42 35 09 55 73 2E E0 E0 [12:40:48]CommunicateWithHost err = 0 [12:40:48]CheckOFDResponse [12:40:48]1017 (14) - 77093643461234 [12:40:48]1041 (16) - 0000000000965340 [12:40:48]1040 (4) - 188705 [12:40:48]1012 (4) - 23.10.2024 06:33 [12:40:48]1206 (1) - 0 [12:40:48]OFD Sender: Remove packet 188705 [12:40:48]ProducePacketName [12:40:48]name=ofd_packets/00188705 [12:40:48]NVStorageDeleteData [12:40:49]OFD Sender: No OFD packet to send [12:40:49]*** Cut start [12:40:49]*** Partial cut [12:40:49]*** CUTSNS_PIN = 1 [12:40:49]*** CUTSNS_PIN = 0 [12:40:49]*** Brake cut motor [12:40:50]Read from MH i2c: 01 [12:40:50]MH_I2C_Read... [12:40:50]*** Stop cut motor [12:40:50]*** Cut end [12:40:50]Read from MH i2c: 01 07 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 07 00 21 0C 00 00 00 00 00 FF 0F 42 [12:40:50]process_action close_receipt done [12:40:50]requested_data is exist [12:40:50]produce_requested_data [12:40:50]requested_item fm.sn is exist - process it [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 11 00 00 [12:40:50]Write to MH i2c: E2 08 00 22 0C 80 11 00 00 00 00 00 00 A8 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 17 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 17 00 22 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [12:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:40:50]wFMCommunicate OK [12:40:50]requested_item fd.num is exist - process it [12:40:50]SAM_PROTO_GetFieldsCounters [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 13 00 00 [12:40:50]Write to MH i2c: E2 08 00 23 0C 80 13 00 00 00 00 00 00 AB [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 62 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 62 00 23 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [12:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:50]wFMCommunicate OK [12:40:50]SAM_PROTO_GetFieldsCounters done [12:40:50]requested_item shift.num is exist - process it [12:40:50]requested_item shift.opened is exist - process it [12:40:50]req_shift_opened [12:40:50]FM_GetShiftState [12:40:50]SAM_PROTO_GetShiftState [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 13 01 00 [12:40:50]Write to MH i2c: E2 08 00 24 0C 80 13 01 00 00 00 00 00 AD [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 0E 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 0E 00 24 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 95 [12:40:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:40:50]wFMCommunicate OK [12:40:50]SAM_PROTO_GetShiftState done [12:40:50]FM_GetShiftState done [12:40:50]req_shift_opened done [12:40:50]requested_item shift.open_date is exist - process it [12:40:50]req_shift_open_date [12:40:50]req_shift_open_date done [12:40:50]produce_requested_data done [12:40:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188705,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:40:50]process_action_free close_receipt [12:40:50]json_value_free [12:40:50]json_value_free done [12:40:50]process_json_proto returns [12:40:50]Send response to host [12:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188705,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:40:50]free response buf [12:40:50]execute_script done [12:40:50]execute_script returns [12:40:50]free content buf [12:40:50]Sock 10.Close socket [12:40:50]Sock 10.Thread stoped [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:21]accept exits with 7 [12:42:21]New connection [12:42:21]New thread 3067018596 created [12:42:21]Thread 3067161956 joined [12:42:21]Waiting for new connection... [12:42:21] Sock 7.Parse request [12:42:21]Sock 7.Check first char [12:42:21]Sock 7.First char is OK [12:42:21]request: POST /json_proto HTTP/1.0 [12:42:21]Method: POST [12:42:21]URL: /json_proto [12:42:21]Method is POST - this is cgi request [12:42:21]url: /json_proto [12:42:21]query_string will be loaded in cgi processing [12:42:21]execute_cgi json_proto POST (null) [12:42:21]execute_cgi path=json_proto method=POST [12:42:21]POST find Content-Length [12:42:21]Host: 172.17.42.131:8080 [12:42:21]Content-Length: 766 [12:42:21]Content-Type: application/json [12:42:21] [12:42:21]POST finish read [12:42:21]Found Content-Length = 766 [12:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:21]execute_script... [12:42:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:21]POST & json_proto [12:42:21]process_json_proto [12:42:21]json parsed OK: [12:42:21]protocol is kg_v1.0 [12:42:21]action value=close_receipt [12:42:21]process_action close_receipt [12:42:21]cmd_close_receipt [12:42:21]MH_GetDate [12:42:21]Write to MH i2c: F0 00 00 25 0C 20 [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 09 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 09 00 25 0C 00 2E EF 18 67 A0 18 CA 66 AD [12:42:21]GetLastDocTimeStamp 1729687246 [12:42:21]current date 1729687342 [12:42:21]FM_GetShiftState [12:42:21]SAM_PROTO_GetShiftState [12:42:21]wFMCommunicate request_size=4 [12:42:21]MH_SAM_APDU [12:42:21]CAPDU: 80 13 01 00 [12:42:21]Write to MH i2c: E2 08 00 26 0C 80 13 01 00 00 00 00 00 AF [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:21]Read from MH i2c: E2 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 0E 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 0E 00 26 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 97 [12:42:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:42:21]wFMCommunicate OK [12:42:21]SAM_PROTO_GetShiftState done [12:42:21]FM_GetShiftState done [12:42:21]opened in 1729642525 [12:42:21]opened+sec_in_day 1729728925 [12:42:21]quantity*price = 40006 [12:42:21]sum+1 = 40007 [12:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 164 23.10.2024 12:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188706 ФПД: 272215708504195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124222&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188706&fm=272215708504195&tin=02508201610067®Number=0000000000100030&sum=40006 [12:42:22]StoreToDocumentArchive [12:42:22]shift 462 fd 188706 [12:42:22]save to /storage/0462/doc_00188706 [12:42:22]save last doc name /storage/0462/doc_00188706 to /storage/kkm_last_doc_name [12:42:22]save OK [12:42:22]Clear old archive folders... [12:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:22]tlvbuf is 01C07200 [12:42:22]SAM_PROTO_ClearQueue [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 09 00 00 [12:42:22]Write to MH i2c: E2 08 00 33 0C 80 09 00 00 00 00 00 00 B1 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_ClearQueue done [12:42:22]KKMCreateOFDPacket [12:42:22]OFDProtocolAddRootSTLVToBuf [12:42:22]FM_MakeSignedData [12:42:22]FM_MakeSignedData [12:42:22]SAM_PROTO_SignData [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 01 02 [12:42:22]Write to MH i2c: E2 08 00 34 0C 80 0D 01 02 00 00 00 00 B9 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [12:42:23]RAPDU: 90 00 [12:42:23]wFMCommunicate OK [12:42:23]wFMCommunicate request_size=255 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 2E EF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E1 02 00 35 04 06 00 F7 [12:42:23]Write to MH i2c: E2 02 01 35 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 2E EF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E1 02 00 35 04 06 00 F7 00 00 12 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [12:42:23]RAPDU: 90 00 [12:42:23]wFMCommunicate OK [12:42:23]wFMCommunicate request_size=10 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 0D 02 02 05 94 28 9B 90 83 [12:42:23]Write to MH i2c: E2 0D 00 36 0C 80 0D 02 02 05 00 94 28 9B 90 83 00 00 30 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [12:42:23]RAPDU: 90 00 [12:42:23]wFMCommunicate OK [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 0D 03 02 [12:42:23]Write to MH i2c: E2 08 00 37 0C 80 0D 03 02 00 00 00 00 BE [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 0B 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 0B 00 37 0C 00 E4 FE A6 DA 91 48 B0 0A 90 00 B4 [12:42:23]RAPDU: E4 FE A6 DA 91 48 B0 0A 90 00 [12:42:23]wFMCommunicate OK [12:42:23]SAM_PROTO_SignData done [12:42:23]FM_MakeSignedData done [12:42:23]CreateOFDProtocolMessage [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 11 00 00 [12:42:23]Write to MH i2c: E2 08 00 38 0C 80 11 00 00 00 00 00 00 BE [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 17 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 17 00 38 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [12:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:42:23]wFMCommunicate OK [12:42:23]CreateOFDProtocolMessage done [12:42:23]OFDSenderStorePacket 188706 [12:42:23]StoreOFDPacket docnum=188706 [12:42:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E E1 07 01 B8 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 2E EF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E1 02 00 35 04 06 00 F7 94 28 9B 90 83 E4 FE A6 DA 91 48 B0 0A [12:42:23]CheckFolder [12:42:23]dirname=/storage/ofd_packets [12:42:23]CheckFolder done [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00188706 [12:42:23]NVStorageSaveData ofd_packets/00188706 [12:42:23]File name is /storage/ofd_packets/00188706 [12:42:23]Write 301 bytes [12:42:23]NVStorageSaveData done [12:42:23]OFDSenderStorePacket done [12:42:23]KKMCreateOFDPacket done [12:42:23]NVStorageSaveData kkm_last_timestamp [12:42:23]File name is /storage/kkm_last_timestamp [12:42:23]Write 4 bytes [12:42:23]NVStorageSaveData done [12:42:23]ExternCall_PrintAddStr [12:42:23]wPrintStart [12:42:23]Write to MH i2c: 01 00 00 39 0C 45 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 39 0C 00 00 00 00 00 FF 0F 5A [12:42:23]RasterBufferAndPrint [12:42:23]line Счет N : (1)210766 [12:42:23]line ИНН: 02508201610067 [12:42:23]line Контрольно-Кассовый Чек [12:42:23]line ПРОДАЖА [12:42:23]line ТРК (МРК, ГНК) : 12 [12:42:23]line Товар: 2710124130 [12:42:23]line Аи-92-К-3 [12:42:23]line 5.980 * 66.90 [12:42:23]line = 400.06 [12:42:23]line НДС 12% НСП 1% [12:42:23]line > о реализуемом товаре [12:42:23]line ИТОГО: 400.06 [12:42:23]line НСП 1% : 3.54 [12:42:23]line НДС 12% : 42.48 [12:42:23]line Наличными: 0.00 [12:42:23]line Безнал.: 400.06 [12:42:23]line Место: АЗС № 86 "Партнер Нефть" [12:42:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:42:23]line СНО: Общий режим [12:42:23]line Чек 164 23.10.2024 12:42 [12:42:23]line Смена: 462 ФФД: 1.0 [12:42:23]line ЗНМ: 0300000155 [12:42:23]line РНМ: 0000000000100030 [12:42:23]line Версия ККМ: 001 [12:42:23]line Платежная система: Mbank [12:42:23]line ФМ: 0000000000965340 [12:42:23]line ФД: 188706 [12:42:23]line ФПД: 272215708504195 [12:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124222&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188706&fm=272215708504195&tin=02508201610067®Number=0000000000100030&sum=40006 [12:42:23]written 0, free lines is 4095 [12:42:23]OFD Sender: Processing packet 188706 [packets to send 1062, broken 1061] [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00188706 [12:42:23]OFD Sender: To server: pG, [12:42:23]CommunicateWithHost lk.salyk.kg:30040 [12:42:23]ConnectInit lk.salyk.kg [12:42:23]Connected sock=10 [12:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E E1 07 01 B8 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 2E EF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E1 02 00 35 04 06 00 F7 94 28 9B 90 83 E4 FE A6 DA 91 48 B0 0A [12:42:23]Write to MH i2c: 01 00 00 62 0C 6E [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 62 0C 00 00 00 00 00 86 0C 07 [12:42:23]RasterBufferAndPrint [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]written 0, free lines is 3211 [12:42:23]MH_Cut [12:42:23]Write to MH i2c: D1 01 00 69 0C 01 47 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 01 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 01 00 69 0C 00 46 [12:42:23]Write to MH i2c: 01 00 00 6A 0C 76 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AE A9 47 00 B7 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E1 02 00 F4 03 04 00 19 99 18 67 B6 04 01 00 00 D2 81 BF E5 75 D9 5A F1 [12:42:24]CommunicateWithHost err = 0 [12:42:24]CheckOFDResponse [12:42:24]1017 (14) - 77093643461234 [12:42:24]1041 (16) - 0000000000965340 [12:42:24]1040 (4) - 188706 [12:42:24]1012 (4) - 23.10.2024 06:35 [12:42:24]1206 (1) - 0 [12:42:24]OFD Sender: Remove packet 188706 [12:42:24]ProducePacketName [12:42:24]name=ofd_packets/00188706 [12:42:24]NVStorageDeleteData [12:42:24]OFD Sender: No OFD packet to send [12:42:25]*** Cut start [12:42:25]*** Partial cut [12:42:25]*** CUTSNS_PIN = 1 [12:42:25]*** CUTSNS_PIN = 0 [12:42:25]*** Brake cut motor [12:42:25]Read from MH i2c: 01 [12:42:25]MH_I2C_Read... [12:42:25]*** Stop cut motor [12:42:25]*** Cut end [12:42:25]Read from MH i2c: 01 07 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: 01 07 00 6A 0C 00 00 00 00 00 FF 0F 8B [12:42:25]process_action close_receipt done [12:42:25]requested_data is exist [12:42:25]produce_requested_data [12:42:25]requested_item fm.sn is exist - process it [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 11 00 00 [12:42:25]Write to MH i2c: E2 08 00 6B 0C 80 11 00 00 00 00 00 00 F1 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 17 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 17 00 6B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [12:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:42:25]wFMCommunicate OK [12:42:25]requested_item fd.num is exist - process it [12:42:25]SAM_PROTO_GetFieldsCounters [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 13 00 00 [12:42:25]Write to MH i2c: E2 08 00 6C 0C 80 13 00 00 00 00 00 00 F4 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:26]Read from MH i2c: E2 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 62 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 62 00 6C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [12:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:26]wFMCommunicate OK [12:42:26]SAM_PROTO_GetFieldsCounters done [12:42:26]requested_item shift.num is exist - process it [12:42:26]requested_item shift.opened is exist - process it [12:42:26]req_shift_opened [12:42:26]FM_GetShiftState [12:42:26]SAM_PROTO_GetShiftState [12:42:26]wFMCommunicate request_size=4 [12:42:26]MH_SAM_APDU [12:42:26]CAPDU: 80 13 01 00 [12:42:26]Write to MH i2c: E2 08 00 6D 0C 80 13 01 00 00 00 00 00 F6 [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:26]Read from MH i2c: E2 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 0E 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 0E 00 6D 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DE [12:42:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:42:26]wFMCommunicate OK [12:42:26]SAM_PROTO_GetShiftState done [12:42:26]FM_GetShiftState done [12:42:26]req_shift_opened done [12:42:26]requested_item shift.open_date is exist - process it [12:42:26]req_shift_open_date [12:42:26]req_shift_open_date done [12:42:26]produce_requested_data done [12:42:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188706,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:42:26]process_action_free close_receipt [12:42:26]json_value_free [12:42:26]json_value_free done [12:42:26]process_json_proto returns [12:42:26]Send response to host [12:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188706,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:42:26]free response buf [12:42:26]execute_script done [12:42:26]execute_script returns [12:42:26]free content buf [12:42:26]Sock 7.Close socket [12:42:26]Sock 7.Thread stoped [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]accept exits with 9 [12:42:49]New connection [12:42:49]New thread 3067161956 created [12:42:49]Thread 3067018596 joined [12:42:49]Waiting for new connection... [12:42:49] Sock 9.Parse request [12:42:49]Sock 9.Check first char [12:42:49]Sock 9.First char is OK [12:42:49]request: POST /json_proto HTTP/1.0 [12:42:49]Method: POST [12:42:49]URL: /json_proto [12:42:49]Method is POST - this is cgi request [12:42:49]url: /json_proto [12:42:49]query_string will be loaded in cgi processing [12:42:49]execute_cgi json_proto POST (null) [12:42:49]execute_cgi path=json_proto method=POST [12:42:49]POST find Content-Length [12:42:49]Host: 172.17.42.131:8080 [12:42:49]Content-Length: 682 [12:42:49]Content-Type: application/json [12:42:49] [12:42:49]POST finish read [12:42:49]Found Content-Length = 682 [12:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:49]execute_script... [12:42:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:49]POST & json_proto [12:42:49]process_json_proto [12:42:49]json parsed OK: [12:42:49]protocol is kg_v1.0 [12:42:49]action value=close_receipt [12:42:49]process_action close_receipt [12:42:49]cmd_close_receipt [12:42:49]MH_GetDate [12:42:49]Write to MH i2c: F0 00 00 6E 0C 69 [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: F0 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: F0 09 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: F0 09 00 6E 0C 00 4A EF 18 67 A0 18 CA 66 12 [12:42:49]GetLastDocTimeStamp 1729687342 [12:42:49]current date 1729687370 [12:42:49]FM_GetShiftState [12:42:49]SAM_PROTO_GetShiftState [12:42:49]wFMCommunicate request_size=4 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 13 01 00 [12:42:49]Write to MH i2c: E2 08 00 6F 0C 80 13 01 00 00 00 00 00 F8 [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 0E 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 0E 00 6F 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E0 [12:42:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:42:49]wFMCommunicate OK [12:42:49]SAM_PROTO_GetShiftState done [12:42:49]FM_GetShiftState done [12:42:49]opened in 1729642525 [12:42:49]opened+sec_in_day 1729728925 [12:42:49]quantity*price = 100021 [12:42:49]sum+1 = 100023 [12:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 165 23.10.2024 12:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188707 ФПД: 69420764965196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188707&fm=69420764965196&tin=02508201610067®Number=0000000000100030&sum=100000 [12:42:50]StoreToDocumentArchive [12:42:50]shift 462 fd 188707 [12:42:50]save to /storage/0462/doc_00188707 [12:42:50]save last doc name /storage/0462/doc_00188707 to /storage/kkm_last_doc_name [12:42:50]save OK [12:42:50]Clear old archive folders... [12:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:50]tlvbuf is 01C46C70 [12:42:50]SAM_PROTO_ClearQueue [12:42:50]wFMCommunicate request_size=4 [12:42:50]MH_SAM_APDU [12:42:50]CAPDU: 80 09 00 00 [12:42:50]Write to MH i2c: E2 08 00 7C 0C 80 09 00 00 00 00 00 00 FA [12:42:50]Write i2c OK [12:42:50]MH_I2C_Read... [12:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:50]Read from MH i2c: E2 [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: E2 03 00 [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [12:42:50]RAPDU: 90 00 [12:42:50]wFMCommunicate OK [12:42:50]SAM_PROTO_ClearQueue done [12:42:50]KKMCreateOFDPacket [12:42:50]OFDProtocolAddRootSTLVToBuf [12:42:50]FM_MakeSignedData [12:42:50]FM_MakeSignedData [12:42:50]SAM_PROTO_SignData [12:42:50]wFMCommunicate request_size=4 [12:42:50]MH_SAM_APDU [12:42:50]CAPDU: 80 0D 01 02 [12:42:50]Write to MH i2c: E2 08 00 7D 0C 80 0D 01 02 00 00 00 00 02 [12:42:50]Write i2c OK [12:42:50]MH_I2C_Read... [12:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:50]Read from MH i2c: E2 [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: E2 03 00 [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [12:42:50]RAPDU: 90 00 [12:42:50]wFMCommunicate OK [12:42:50]wFMCommunicate request_size=255 [12:42:50]MH_SAM_APDU [12:42:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4A EF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E1 02 00 35 04 06 00 3F [12:42:50]Write to MH i2c: E2 02 01 7E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4A EF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E1 02 00 35 04 06 00 3F 00 00 03 [12:42:50]Write i2c OK [12:42:50]MH_I2C_Read... [12:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:51]Read from MH i2c: E2 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 03 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [12:42:51]RAPDU: 90 00 [12:42:51]wFMCommunicate OK [12:42:51]wFMCommunicate request_size=10 [12:42:51]MH_SAM_APDU [12:42:51]CAPDU: 80 0D 02 02 05 23 48 09 29 4C [12:42:51]Write to MH i2c: E2 0D 00 7F 0C 80 0D 02 02 05 00 23 48 09 29 4C 00 00 F8 [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:51]Read from MH i2c: E2 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 03 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [12:42:51]RAPDU: 90 00 [12:42:51]wFMCommunicate OK [12:42:51]wFMCommunicate request_size=4 [12:42:51]MH_SAM_APDU [12:42:51]CAPDU: 80 0D 03 02 [12:42:51]Write to MH i2c: E2 08 00 80 0C 80 0D 03 02 00 00 00 00 07 [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:51]Read from MH i2c: E2 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 0B 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 0B 00 80 0C 00 7F E3 9A 03 F3 B3 30 83 90 00 60 [12:42:51]RAPDU: 7F E3 9A 03 F3 B3 30 83 90 00 [12:42:51]wFMCommunicate OK [12:42:51]SAM_PROTO_SignData done [12:42:51]FM_MakeSignedData done [12:42:51]CreateOFDProtocolMessage [12:42:51]wFMCommunicate request_size=4 [12:42:51]MH_SAM_APDU [12:42:51]CAPDU: 80 11 00 00 [12:42:51]Write to MH i2c: E2 08 00 81 0C 80 11 00 00 00 00 00 00 07 [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:51]Read from MH i2c: E2 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 17 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 17 00 81 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [12:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:42:51]wFMCommunicate OK [12:42:51]CreateOFDProtocolMessage done [12:42:51]OFDSenderStorePacket 188707 [12:42:51]StoreOFDPacket docnum=188707 [12:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 D2 07 01 0A 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4A EF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E1 02 00 35 04 06 00 3F 23 48 09 29 4C 7F E3 9A 03 F3 B3 30 83 [12:42:51]CheckFolder [12:42:51]dirname=/storage/ofd_packets [12:42:51]CheckFolder done [12:42:51]ProducePacketName [12:42:51]name=ofd_packets/00188707 [12:42:51]NVStorageSaveData ofd_packets/00188707 [12:42:51]File name is /storage/ofd_packets/00188707 [12:42:51]Write 301 bytes [12:42:51]NVStorageSaveData done [12:42:51]OFDSenderStorePacket done [12:42:51]KKMCreateOFDPacket done [12:42:51]NVStorageSaveData kkm_last_timestamp [12:42:51]File name is /storage/kkm_last_timestamp [12:42:51]Write 4 bytes [12:42:51]NVStorageSaveData done [12:42:51]ExternCall_PrintAddStr [12:42:51]wPrintStart [12:42:51]Write to MH i2c: 01 00 00 82 0C 8E [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: 01 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: 01 07 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: 01 07 00 82 0C 00 00 00 00 00 FF 0F A3 [12:42:51]RasterBufferAndPrint [12:42:51]line Счет N : (1)210767 [12:42:51]line ИНН: 02508201610067 [12:42:51]line Контрольно-Кассовый Чек [12:42:51]line ПРОДАЖА [12:42:51]line ТРК (МРК, ГНК) : 23 [12:42:51]line Товар: 2710124500 [12:42:51]line Аи-95-К-3 [12:42:51]line 13.480 * 74.20 [12:42:51]line = 1000.22 [12:42:51]line НДС 12% НСП 1% [12:42:51]line > о реализуемом товаре [12:42:51]line ОКРУГЛЕНИЕ: -0.22 [12:42:51]line ИТОГО: 1000.00 [12:42:51]line Внесено: 1000.00 [12:42:51]line СДАЧА: 0.00 [12:42:51]line НСП 1% : 8.85 [12:42:51]line НДС 12% : 106.22 [12:42:51]line Наличными: 1000.00 [12:42:51]line Безнал.: 0.00 [12:42:51]line Место: АЗС № 86 "Партнер Нефть" [12:42:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:42:51]line СНО: Общий режим [12:42:51]line Чек 165 23.10.2024 12:42 [12:42:51]line Смена: 462 ФФД: 1.0 [12:42:51]line ЗНМ: 0300000155 [12:42:51]line РНМ: 0000000000100030 [12:42:51]line Версия ККМ: 001 [12:42:51]line ФМ: 0000000000965340 [12:42:51]line ФД: 188707 [12:42:51]line ФПД: 69420764965196 [12:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188707&fm=69420764965196&tin=02508201610067®Number=0000000000100030&sum=100000 [12:42:51]written 0, free lines is 4095 [12:42:51]OFD Sender: Processing packet 188707 [packets to send 1062, broken 1061] [12:42:51]ProducePacketName [12:42:51]name=ofd_packets/00188707 [12:42:51]OFD Sender: To server: pG, [12:42:51]CommunicateWithHost lk.salyk.kg:30040 [12:42:51]ConnectInit lk.salyk.kg [12:42:51]Connected sock=10 [12:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 D2 07 01 0A 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4A EF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E1 02 00 35 04 06 00 3F 23 48 09 29 4C 7F E3 9A 03 F3 B3 30 83 [12:42:51]Write to MH i2c: 01 00 00 AD 0C B9 [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: 01 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: 01 07 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 56 0C 22 [12:42:51]RasterBufferAndPrint [12:42:51]line [12:42:51]line [12:42:51]line [12:42:51]line [12:42:51]line [12:42:51]written 0, free lines is 3162 [12:42:51]MH_Cut [12:42:51]Write to MH i2c: D1 01 00 B4 0C 01 92 [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: D1 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: D1 01 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: D1 01 00 B4 0C 00 91 [12:42:51]Write to MH i2c: 01 00 00 B5 0C C1 [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D5 65 47 00 EC B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E1 02 00 F4 03 04 00 34 99 18 67 B6 04 01 00 00 E9 17 40 B9 A1 3D BD 58 [12:42:51]CommunicateWithHost err = 0 [12:42:51]CheckOFDResponse [12:42:51]1017 (14) - 77093643461234 [12:42:51]1041 (16) - 0000000000965340 [12:42:51]1040 (4) - 188707 [12:42:51]1012 (4) - 23.10.2024 06:35 [12:42:51]1206 (1) - 0 [12:42:51]OFD Sender: Remove packet 188707 [12:42:51]ProducePacketName [12:42:51]name=ofd_packets/00188707 [12:42:51]NVStorageDeleteData [12:42:52]OFD Sender: No OFD packet to send [12:42:52]*** Cut start [12:42:52]*** Partial cut [12:42:52]*** CUTSNS_PIN = 1 [12:42:53]*** CUTSNS_PIN = 0 [12:42:53]*** Brake cut motor [12:42:53]Read from MH i2c: 01 [12:42:53]MH_I2C_Read... [12:42:53]*** Stop cut motor [12:42:53]*** Cut end [12:42:53]Read from MH i2c: 01 07 00 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: 01 07 00 B5 0C 00 00 00 00 00 FF 0F D6 [12:42:53]process_action close_receipt done [12:42:53]requested_data is exist [12:42:53]produce_requested_data [12:42:53]requested_item fm.sn is exist - process it [12:42:53]wFMCommunicate request_size=4 [12:42:53]MH_SAM_APDU [12:42:53]CAPDU: 80 11 00 00 [12:42:53]Write to MH i2c: E2 08 00 B6 0C 80 11 00 00 00 00 00 00 3C [12:42:53]Write i2c OK [12:42:53]MH_I2C_Read... [12:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:53]Read from MH i2c: E2 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: E2 17 00 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: E2 17 00 B6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [12:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:42:53]wFMCommunicate OK [12:42:53]requested_item fd.num is exist - process it [12:42:53]SAM_PROTO_GetFieldsCounters [12:42:53]wFMCommunicate request_size=4 [12:42:53]MH_SAM_APDU [12:42:53]CAPDU: 80 13 00 00 [12:42:53]Write to MH i2c: E2 08 00 B7 0C 80 13 00 00 00 00 00 00 3F [12:42:53]Write i2c OK [12:42:53]MH_I2C_Read... [12:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:53]Read from MH i2c: E2 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: E2 62 00 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: E2 62 00 B7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [12:42:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:53]wFMCommunicate OK [12:42:53]SAM_PROTO_GetFieldsCounters done [12:42:53]requested_item shift.num is exist - process it [12:42:53]requested_item shift.opened is exist - process it [12:42:53]req_shift_opened [12:42:53]FM_GetShiftState [12:42:53]SAM_PROTO_GetShiftState [12:42:53]wFMCommunicate request_size=4 [12:42:53]MH_SAM_APDU [12:42:53]CAPDU: 80 13 01 00 [12:42:53]Write to MH i2c: E2 08 00 B8 0C 80 13 01 00 00 00 00 00 41 [12:42:53]Write i2c OK [12:42:53]MH_I2C_Read... [12:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:53]Read from MH i2c: E2 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: E2 0E 00 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: E2 0E 00 B8 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 29 [12:42:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:42:53]wFMCommunicate OK [12:42:53]SAM_PROTO_GetShiftState done [12:42:53]FM_GetShiftState done [12:42:53]req_shift_opened done [12:42:53]requested_item shift.open_date is exist - process it [12:42:53]req_shift_open_date [12:42:53]req_shift_open_date done [12:42:53]produce_requested_data done [12:42:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188707,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:42:53]process_action_free close_receipt [12:42:53]json_value_free [12:42:53]json_value_free done [12:42:53]process_json_proto returns [12:42:53]Send response to host [12:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188707,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:42:53]free response buf [12:42:53]execute_script done [12:42:53]execute_script returns [12:42:53]free content buf [12:42:53]Sock 9.Close socket [12:42:53]Sock 9.Thread stoped [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:18]accept exits with 7 [12:46:18]New connection [12:46:18]New thread 3067018596 created [12:46:18]Thread 3067161956 joined [12:46:18]Waiting for new connection... [12:46:18] Sock 7.Parse request [12:46:18]Sock 7.Check first char [12:46:18]Sock 7.First char is OK [12:46:18]request: POST /json_proto HTTP/1.0 [12:46:18]Method: POST [12:46:18]URL: /json_proto [12:46:18]Method is POST - this is cgi request [12:46:18]url: /json_proto [12:46:18]query_string will be loaded in cgi processing [12:46:18]execute_cgi json_proto POST (null) [12:46:18]execute_cgi path=json_proto method=POST [12:46:18]POST find Content-Length [12:46:18]Host: 172.17.42.131:8080 [12:46:18]Content-Length: 769 [12:46:18]Content-Type: application/json [12:46:18] [12:46:18]POST finish read [12:46:18]Found Content-Length = 769 [12:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:18]execute_script... [12:46:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:18]POST & json_proto [12:46:18]process_json_proto [12:46:18]json parsed OK: [12:46:18]protocol is kg_v1.0 [12:46:18]action value=close_receipt [12:46:18]process_action close_receipt [12:46:18]cmd_close_receipt [12:46:18]MH_GetDate [12:46:18]Write to MH i2c: F0 00 00 B9 0C B4 [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: F0 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: F0 09 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: F0 09 00 B9 0C 00 1B F0 18 67 A0 18 CA 66 2F [12:46:18]GetLastDocTimeStamp 1729687370 [12:46:18]current date 1729687579 [12:46:18]FM_GetShiftState [12:46:18]SAM_PROTO_GetShiftState [12:46:18]wFMCommunicate request_size=4 [12:46:18]MH_SAM_APDU [12:46:18]CAPDU: 80 13 01 00 [12:46:18]Write to MH i2c: E2 08 00 BA 0C 80 13 01 00 00 00 00 00 43 [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:18]Read from MH i2c: E2 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 0E 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 0E 00 BA 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2B [12:46:18]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:46:18]wFMCommunicate OK [12:46:18]SAM_PROTO_GetShiftState done [12:46:18]FM_GetShiftState done [12:46:18]opened in 1729642525 [12:46:18]opened+sec_in_day 1729728925 [12:46:18]quantity*price = 100021 [12:46:18]sum+1 = 100023 [12:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 166 23.10.2024 12:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188708 ФПД: 212755228143346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188708&fm=212755228143346&tin=02508201610067®Number=0000000000100030&sum=100022 [12:46:19]StoreToDocumentArchive [12:46:19]shift 462 fd 188708 [12:46:19]save to /storage/0462/doc_00188708 [12:46:19]save last doc name /storage/0462/doc_00188708 to /storage/kkm_last_doc_name [12:46:19]save OK [12:46:19]Clear old archive folders... [12:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:19]tlvbuf is 01C2D3B0 [12:46:19]SAM_PROTO_ClearQueue [12:46:19]wFMCommunicate request_size=4 [12:46:19]MH_SAM_APDU [12:46:19]CAPDU: 80 09 00 00 [12:46:19]Write to MH i2c: E2 08 00 C7 0C 80 09 00 00 00 00 00 00 45 [12:46:19]Write i2c OK [12:46:19]MH_I2C_Read... [12:46:19]Read from MH i2c: E2 [12:46:19]MH_I2C_Read... [12:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:19]Read from MH i2c: E2 03 00 [12:46:19]MH_I2C_Read... [12:46:19]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [12:46:19]RAPDU: 90 00 [12:46:19]wFMCommunicate OK [12:46:19]SAM_PROTO_ClearQueue done [12:46:19]KKMCreateOFDPacket [12:46:19]OFDProtocolAddRootSTLVToBuf [12:46:19]FM_MakeSignedData [12:46:19]FM_MakeSignedData [12:46:19]SAM_PROTO_SignData [12:46:19]wFMCommunicate request_size=4 [12:46:19]MH_SAM_APDU [12:46:19]CAPDU: 80 0D 01 02 [12:46:19]Write to MH i2c: E2 08 00 C8 0C 80 0D 01 02 00 00 00 00 4D [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 03 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [12:46:20]RAPDU: 90 00 [12:46:20]wFMCommunicate OK [12:46:20]wFMCommunicate request_size=255 [12:46:20]MH_SAM_APDU [12:46:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1B F0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E1 02 00 35 04 06 00 C1 [12:46:20]Write to MH i2c: E2 02 01 C9 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1B F0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E1 02 00 35 04 06 00 C1 00 00 D0 [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 03 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [12:46:20]RAPDU: 90 00 [12:46:20]wFMCommunicate OK [12:46:20]wFMCommunicate request_size=10 [12:46:20]MH_SAM_APDU [12:46:20]CAPDU: 80 0D 02 02 05 7F EF CC 2E F2 [12:46:20]Write to MH i2c: E2 0D 00 CA 0C 80 0D 02 02 05 00 7F EF CC 2E F2 00 00 B4 [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 03 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [12:46:20]RAPDU: 90 00 [12:46:20]wFMCommunicate OK [12:46:20]wFMCommunicate request_size=4 [12:46:20]MH_SAM_APDU [12:46:20]CAPDU: 80 0D 03 02 [12:46:20]Write to MH i2c: E2 08 00 CB 0C 80 0D 03 02 00 00 00 00 52 [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 0B 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 0B 00 CB 0C 00 53 84 5D 0F FA 02 E7 34 90 00 AD [12:46:20]RAPDU: 53 84 5D 0F FA 02 E7 34 90 00 [12:46:20]wFMCommunicate OK [12:46:20]SAM_PROTO_SignData done [12:46:20]FM_MakeSignedData done [12:46:20]CreateOFDProtocolMessage [12:46:20]wFMCommunicate request_size=4 [12:46:20]MH_SAM_APDU [12:46:20]CAPDU: 80 11 00 00 [12:46:20]Write to MH i2c: E2 08 00 CC 0C 80 11 00 00 00 00 00 00 52 [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 17 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 17 00 CC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [12:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:46:20]wFMCommunicate OK [12:46:20]CreateOFDProtocolMessage done [12:46:20]OFDSenderStorePacket 188708 [12:46:20]StoreOFDPacket docnum=188708 [12:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 50 07 01 50 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1B F0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E1 02 00 35 04 06 00 C1 7F EF CC 2E F2 53 84 5D 0F FA 02 E7 34 [12:46:20]CheckFolder [12:46:20]dirname=/storage/ofd_packets [12:46:20]CheckFolder done [12:46:20]ProducePacketName [12:46:20]name=ofd_packets/00188708 [12:46:20]NVStorageSaveData ofd_packets/00188708 [12:46:20]File name is /storage/ofd_packets/00188708 [12:46:20]Write 301 bytes [12:46:20]NVStorageSaveData done [12:46:20]OFDSenderStorePacket done [12:46:20]KKMCreateOFDPacket done [12:46:20]NVStorageSaveData kkm_last_timestamp [12:46:20]File name is /storage/kkm_last_timestamp [12:46:20]Write 4 bytes [12:46:20]NVStorageSaveData done [12:46:20]ExternCall_PrintAddStr [12:46:20]wPrintStart [12:46:20]Write to MH i2c: 01 00 00 CD 0C D9 [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: 01 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: 01 07 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: 01 07 00 CD 0C 00 00 00 00 00 FF 0F EE [12:46:20]RasterBufferAndPrint [12:46:20]line Счет N : (1)210768 [12:46:20]line ИНН: 02508201610067 [12:46:20]line Контрольно-Кассовый Чек [12:46:20]line ПРОДАЖА [12:46:20]line ТРК (МРК, ГНК) : 33 [12:46:20]line Товар: 2710124500 [12:46:20]line Аи-95-К-3 [12:46:20]line 13.480 * 74.20 [12:46:20]line = 1000.22 [12:46:20]line НДС 12% НСП 1% [12:46:20]line > о реализуемом товаре [12:46:20]line ИТОГО: 1000.22 [12:46:20]line НСП 1% : 8.85 [12:46:20]line НДС 12% : 106.22 [12:46:20]line Наличными: 0.00 [12:46:20]line Безнал.: 1000.22 [12:46:20]line Место: АЗС № 86 "Партнер Нефть" [12:46:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:46:20]line СНО: Общий режим [12:46:20]line Чек 166 23.10.2024 12:46 [12:46:20]line Смена: 462 ФФД: 1.0 [12:46:20]line ЗНМ: 0300000155 [12:46:20]line РНМ: 0000000000100030 [12:46:20]line Версия ККМ: 001 [12:46:20]line Платежная система: Mbank [12:46:20]line ФМ: 0000000000965340 [12:46:20]line ФД: 188708 [12:46:20]line ФПД: 212755228143346 [12:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188708&fm=212755228143346&tin=02508201610067®Number=0000000000100030&sum=100022 [12:46:20]OFD Sender: Processing packet 188708 [packets to send 1062, broken 1061] [12:46:20]ProducePacketName [12:46:20]name=ofd_packets/00188708 [12:46:20]OFD Sender: To server: pG, [12:46:20]CommunicateWithHost lk.salyk.kg:30040 [12:46:20]ConnectInit lk.salyk.kg [12:46:20]written 0, free lines is 4095 [12:46:21]Connected sock=10 [12:46:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 50 07 01 50 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1B F0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E1 02 00 35 04 06 00 C1 7F EF CC 2E F2 53 84 5D 0F FA 02 E7 34 [12:46:21]Write to MH i2c: 01 00 00 F6 0C 02 [12:46:21]Write i2c OK [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: 01 [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: 01 07 00 [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: 01 07 00 F6 0C 00 00 00 00 00 88 0C 9D [12:46:21]RasterBufferAndPrint [12:46:21]line [12:46:21]line [12:46:21]line [12:46:21]line [12:46:21]line [12:46:21]written 0, free lines is 3211 [12:46:21]MH_Cut [12:46:21]Write to MH i2c: D1 01 00 FD 0C 01 DB [12:46:21]Write i2c OK [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: D1 [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: D1 01 00 [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: D1 01 00 FD 0C 00 DA [12:46:21]Write to MH i2c: 01 00 00 FE 0C 0A [12:46:21]Write i2c OK [12:46:21]MH_I2C_Read... [12:46:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C 4C 47 00 92 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E1 02 00 F4 03 04 00 06 9A 18 67 B6 04 01 00 00 BA 81 73 97 78 ED 31 16 [12:46:21]CommunicateWithHost err = 0 [12:46:21]CheckOFDResponse [12:46:21]1017 (14) - 77093643461234 [12:46:21]1041 (16) - 0000000000965340 [12:46:21]1040 (4) - 188708 [12:46:21]1012 (4) - 23.10.2024 06:39 [12:46:21]1206 (1) - 0 [12:46:21]OFD Sender: Remove packet 188708 [12:46:21]ProducePacketName [12:46:21]name=ofd_packets/00188708 [12:46:21]NVStorageDeleteData [12:46:21]OFD Sender: No OFD packet to send [12:46:22]*** Cut start [12:46:22]*** Partial cut [12:46:22]*** CUTSNS_PIN = 1 [12:46:22]*** CUTSNS_PIN = 0 [12:46:22]*** Brake cut motor [12:46:23]Read from MH i2c: 01 [12:46:23]MH_I2C_Read... [12:46:23]*** Stop cut motor [12:46:23]*** Cut end [12:46:23]Read from MH i2c: 01 07 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: 01 07 00 FE 0C 00 00 00 00 00 FF 0F 1F [12:46:23]process_action close_receipt done [12:46:23]requested_data is exist [12:46:23]produce_requested_data [12:46:23]requested_item fm.sn is exist - process it [12:46:23]wFMCommunicate request_size=4 [12:46:23]MH_SAM_APDU [12:46:23]CAPDU: 80 11 00 00 [12:46:23]Write to MH i2c: E2 08 00 FF 0C 80 11 00 00 00 00 00 00 85 [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 17 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 17 00 FF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [12:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:46:23]wFMCommunicate OK [12:46:23]requested_item fd.num is exist - process it [12:46:23]SAM_PROTO_GetFieldsCounters [12:46:23]wFMCommunicate request_size=4 [12:46:23]MH_SAM_APDU [12:46:23]CAPDU: 80 13 00 00 [12:46:23]Write to MH i2c: E2 08 00 00 0D 80 13 00 00 00 00 00 00 89 [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 62 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 62 00 00 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [12:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:23]wFMCommunicate OK [12:46:23]SAM_PROTO_GetFieldsCounters done [12:46:23]requested_item shift.num is exist - process it [12:46:23]requested_item shift.opened is exist - process it [12:46:23]req_shift_opened [12:46:23]FM_GetShiftState [12:46:23]SAM_PROTO_GetShiftState [12:46:23]wFMCommunicate request_size=4 [12:46:23]MH_SAM_APDU [12:46:23]CAPDU: 80 13 01 00 [12:46:23]Write to MH i2c: E2 08 00 01 0D 80 13 01 00 00 00 00 00 8B [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 0E 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 0E 00 01 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 73 [12:46:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:46:23]wFMCommunicate OK [12:46:23]SAM_PROTO_GetShiftState done [12:46:23]FM_GetShiftState done [12:46:23]req_shift_opened done [12:46:23]requested_item shift.open_date is exist - process it [12:46:23]req_shift_open_date [12:46:23]req_shift_open_date done [12:46:23]produce_requested_data done [12:46:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188708,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:46:23]process_action_free close_receipt [12:46:23]json_value_free [12:46:23]json_value_free done [12:46:23]process_json_proto returns [12:46:23]Send response to host [12:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188708,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:46:23]free response buf [12:46:23]execute_script done [12:46:23]execute_script returns [12:46:23]free content buf [12:46:23]Sock 7.Close socket [12:46:23]Sock 7.Thread stoped [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:55]accept exits with 9 [12:46:55]New connection [12:46:55]New thread 3067161956 created [12:46:55]Thread 3067018596 joined [12:46:55]Waiting for new connection... [12:46:55] Sock 9.Parse request [12:46:55]Sock 9.Check first char [12:46:55]Sock 9.First char is OK [12:46:55]request: POST /json_proto HTTP/1.0 [12:46:55]Method: POST [12:46:55]URL: /json_proto [12:46:55]Method is POST - this is cgi request [12:46:55]url: /json_proto [12:46:55]query_string will be loaded in cgi processing [12:46:55]execute_cgi json_proto POST (null) [12:46:55]execute_cgi path=json_proto method=POST [12:46:55]POST find Content-Length [12:46:55]Host: 172.17.42.131:8080 [12:46:55]Content-Length: 677 [12:46:55]Content-Type: application/json [12:46:55] [12:46:55]POST finish read [12:46:55]Found Content-Length = 677 [12:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:55]execute_script... [12:46:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:55]POST & json_proto [12:46:55]process_json_proto [12:46:55]json parsed OK: [12:46:55]protocol is kg_v1.0 [12:46:55]action value=close_receipt [12:46:55]process_action close_receipt [12:46:55]cmd_close_receipt [12:46:55]MH_GetDate [12:46:55]Write to MH i2c: F0 00 00 02 0D FE [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 09 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 09 00 02 0D 00 40 F0 18 67 A0 18 CA 66 9E [12:46:55]GetLastDocTimeStamp 1729687579 [12:46:55]current date 1729687616 [12:46:55]FM_GetShiftState [12:46:55]SAM_PROTO_GetShiftState [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 13 01 00 [12:46:55]Write to MH i2c: E2 08 00 03 0D 80 13 01 00 00 00 00 00 8D [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:56]Read from MH i2c: E2 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 0E 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 0E 00 03 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 75 [12:46:56]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:46:56]wFMCommunicate OK [12:46:56]SAM_PROTO_GetShiftState done [12:46:56]FM_GetShiftState done [12:46:56]opened in 1729642525 [12:46:56]opened+sec_in_day 1729728925 [12:46:56]quantity*price = 30038 [12:46:56]sum+1 = 30039 [12:46:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 167 23.10.2024 12:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188709 ФПД: 220653511248265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188709&fm=220653511248265&tin=02508201610067®Number=0000000000100030&sum=30000 [12:46:57]StoreToDocumentArchive [12:46:57]shift 462 fd 188709 [12:46:57]save to /storage/0462/doc_00188709 [12:46:57]save last doc name /storage/0462/doc_00188709 to /storage/kkm_last_doc_name [12:46:57]save OK [12:46:57]Clear old archive folders... [12:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:57]tlvbuf is 01C06310 [12:46:57]SAM_PROTO_ClearQueue [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 09 00 00 [12:46:57]Write to MH i2c: E2 08 00 10 0D 80 09 00 00 00 00 00 00 8F [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [12:46:57]RAPDU: 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_ClearQueue done [12:46:57]KKMCreateOFDPacket [12:46:57]OFDProtocolAddRootSTLVToBuf [12:46:57]FM_MakeSignedData [12:46:57]FM_MakeSignedData [12:46:57]SAM_PROTO_SignData [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 0D 01 02 [12:46:57]Write to MH i2c: E2 08 00 11 0D 80 0D 01 02 00 00 00 00 97 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [12:46:57]RAPDU: 90 00 [12:46:57]wFMCommunicate OK [12:46:57]wFMCommunicate request_size=255 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 40 F0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E1 02 00 35 04 06 00 C8 [12:46:57]Write to MH i2c: E2 02 01 12 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 40 F0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E1 02 00 35 04 06 00 C8 00 00 F3 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [12:46:57]RAPDU: 90 00 [12:46:57]wFMCommunicate OK [12:46:57]wFMCommunicate request_size=10 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 0D 02 02 05 AE E6 28 09 89 [12:46:57]Write to MH i2c: E2 0D 00 13 0D 80 0D 02 02 05 00 AE E6 28 09 89 00 00 F2 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 13 0D 00 90 00 94 [12:46:57]RAPDU: 90 00 [12:46:57]wFMCommunicate OK [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 0D 03 02 [12:46:57]Write to MH i2c: E2 08 00 14 0D 80 0D 03 02 00 00 00 00 9C [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0B 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0B 00 14 0D 00 D7 3F F5 84 D4 D4 14 A4 90 00 8C [12:46:57]RAPDU: D7 3F F5 84 D4 D4 14 A4 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_SignData done [12:46:57]FM_MakeSignedData done [12:46:57]CreateOFDProtocolMessage [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 11 00 00 [12:46:57]Write to MH i2c: E2 08 00 15 0D 80 11 00 00 00 00 00 00 9C [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 17 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 17 00 15 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [12:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:46:57]wFMCommunicate OK [12:46:57]CreateOFDProtocolMessage done [12:46:57]OFDSenderStorePacket 188709 [12:46:57]StoreOFDPacket docnum=188709 [12:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C D9 07 01 92 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 40 F0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E1 02 00 35 04 06 00 C8 AE E6 28 09 89 D7 3F F5 84 D4 D4 14 A4 [12:46:57]CheckFolder [12:46:57]dirname=/storage/ofd_packets [12:46:57]CheckFolder done [12:46:57]ProducePacketName [12:46:57]name=ofd_packets/00188709 [12:46:57]NVStorageSaveData ofd_packets/00188709 [12:46:57]File name is /storage/ofd_packets/00188709 [12:46:57]Write 301 bytes [12:46:57]NVStorageSaveData done [12:46:57]OFDSenderStorePacket done [12:46:57]KKMCreateOFDPacket done [12:46:57]NVStorageSaveData kkm_last_timestamp [12:46:57]File name is /storage/kkm_last_timestamp [12:46:57]Write 4 bytes [12:46:57]NVStorageSaveData done [12:46:57]ExternCall_PrintAddStr [12:46:57]wPrintStart [12:46:57]Write to MH i2c: 01 00 00 16 0D 23 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: 01 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: 01 07 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: 01 07 00 16 0D 00 00 00 00 00 FF 0F 38 [12:46:57]RasterBufferAndPrint [12:46:57]line Счет N : (1)210769 [12:46:57]line ИНН: 02508201610067 [12:46:57]line Контрольно-Кассовый Чек [12:46:57]line ПРОДАЖА [12:46:57]line ТРК (МРК, ГНК) : 42 [12:46:57]line Товар: 2710124130 [12:46:57]line Аи-92-К-3 [12:46:57]line 4.490 * 66.90 [12:46:57]line = 300.38 [12:46:57]line НДС 12% НСП 1% [12:46:57]line > о реализуемом товаре [12:46:57]line ОКРУГЛЕНИЕ: -0.38 [12:46:57]line ИТОГО: 300.00 [12:46:57]line Внесено: 300.00 [12:46:57]line СДАЧА: 0.00 [12:46:57]line НСП 1% : 2.66 [12:46:57]line НДС 12% : 31.90 [12:46:57]line Наличными: 300.00 [12:46:57]line Безнал.: 0.00 [12:46:57]line Место: АЗС № 86 "Партнер Нефть" [12:46:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:46:57]line СНО: Общий режим [12:46:57]line Чек 167 23.10.2024 12:46 [12:46:57]line Смена: 462 ФФД: 1.0 [12:46:57]line ЗНМ: 0300000155 [12:46:57]line РНМ: 0000000000100030 [12:46:57]line Версия ККМ: 001 [12:46:57]line ФМ: 0000000000965340 [12:46:57]line ФД: 188709 [12:46:57]line ФПД: 220653511248265 [12:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188709&fm=220653511248265&tin=02508201610067®Number=0000000000100030&sum=30000 [12:46:57]OFD Sender: Processing packet 188709 [packets to send 1062, broken 1061] [12:46:57]ProducePacketName [12:46:57]name=ofd_packets/00188709 [12:46:57]OFD Sender: To server: pG, [12:46:57]CommunicateWithHost lk.salyk.kg:30040 [12:46:57]ConnectInit lk.salyk.kg [12:46:57]written 0, free lines is 4095 [12:46:58]Connected sock=10 [12:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C D9 07 01 92 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 40 F0 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E1 02 00 35 04 06 00 C8 AE E6 28 09 89 D7 3F F5 84 D4 D4 14 A4 [12:46:58]Write to MH i2c: 01 00 00 41 0D 4E [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 07 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 07 00 41 0D 00 00 00 00 00 59 0C BA [12:46:58]RasterBufferAndPrint [12:46:58]line [12:46:58]line [12:46:58]line [12:46:58]line [12:46:58]line [12:46:58]written 0, free lines is 3165 [12:46:58]MH_Cut [12:46:58]Write to MH i2c: D1 01 00 48 0D 01 27 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: D1 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: D1 01 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: D1 01 00 48 0D 00 26 [12:46:58]Write to MH i2c: 01 00 00 49 0D 56 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D5 D7 47 00 24 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E1 02 00 F4 03 04 00 2B 9A 18 67 B6 04 01 00 00 82 C8 C9 71 F6 B9 6A 05 [12:46:58]CommunicateWithHost err = 0 [12:46:58]CheckOFDResponse [12:46:58]1017 (14) - 77093643461234 [12:46:58]1041 (16) - 0000000000965340 [12:46:58]1040 (4) - 188709 [12:46:58]1012 (4) - 23.10.2024 06:39 [12:46:58]1206 (1) - 0 [12:46:58]OFD Sender: Remove packet 188709 [12:46:58]ProducePacketName [12:46:58]name=ofd_packets/00188709 [12:46:58]NVStorageDeleteData [12:46:58]OFD Sender: No OFD packet to send [12:46:59]*** Cut start [12:46:59]*** Partial cut [12:46:59]*** CUTSNS_PIN = 1 [12:46:59]*** CUTSNS_PIN = 0 [12:46:59]*** Brake cut motor [12:47:00]Read from MH i2c: 01 [12:47:00]MH_I2C_Read... [12:47:00]*** Stop cut motor [12:47:00]*** Cut end [12:47:00]Read from MH i2c: 01 07 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 07 00 49 0D 00 00 00 00 00 FF 0F 6B [12:47:00]process_action close_receipt done [12:47:00]requested_data is exist [12:47:00]produce_requested_data [12:47:00]requested_item fm.sn is exist - process it [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 11 00 00 [12:47:00]Write to MH i2c: E2 08 00 4A 0D 80 11 00 00 00 00 00 00 D1 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 17 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 17 00 4A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [12:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:47:00]wFMCommunicate OK [12:47:00]requested_item fd.num is exist - process it [12:47:00]SAM_PROTO_GetFieldsCounters [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 13 00 00 [12:47:00]Write to MH i2c: E2 08 00 4B 0D 80 13 00 00 00 00 00 00 D4 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 62 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 62 00 4B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [12:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_GetFieldsCounters done [12:47:00]requested_item shift.num is exist - process it [12:47:00]requested_item shift.opened is exist - process it [12:47:00]req_shift_opened [12:47:00]FM_GetShiftState [12:47:00]SAM_PROTO_GetShiftState [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 13 01 00 [12:47:00]Write to MH i2c: E2 08 00 4C 0D 80 13 01 00 00 00 00 00 D6 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0E 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0E 00 4C 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BE [12:47:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_GetShiftState done [12:47:00]FM_GetShiftState done [12:47:00]req_shift_opened done [12:47:00]requested_item shift.open_date is exist - process it [12:47:00]req_shift_open_date [12:47:00]req_shift_open_date done [12:47:00]produce_requested_data done [12:47:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188709,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:47:00]process_action_free close_receipt [12:47:00]json_value_free [12:47:00]json_value_free done [12:47:00]process_json_proto returns [12:47:00]Send response to host [12:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188709,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:47:00]free response buf [12:47:00]execute_script done [12:47:00]execute_script returns [12:47:00]free content buf [12:47:00]Sock 9.Close socket [12:47:00]Sock 9.Thread stoped [12:47:03]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:26]accept exits with 7 [12:50:26]New connection [12:50:26]New thread 3067018596 created [12:50:26]Thread 3067161956 joined [12:50:26]Waiting for new connection... [12:50:26] Sock 7.Parse request [12:50:26]Sock 7.Check first char [12:50:26]Sock 7.First char is OK [12:50:26]request: POST /json_proto HTTP/1.0 [12:50:26]Method: POST [12:50:26]URL: /json_proto [12:50:26]Method is POST - this is cgi request [12:50:26]url: /json_proto [12:50:26]query_string will be loaded in cgi processing [12:50:26]execute_cgi json_proto POST (null) [12:50:26]execute_cgi path=json_proto method=POST [12:50:26]POST find Content-Length [12:50:26]Host: 172.17.42.131:8080 [12:50:26]Content-Length: 769 [12:50:26]Content-Type: application/json [12:50:26] [12:50:26]POST finish read [12:50:26]Found Content-Length = 769 [12:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:26]execute_script... [12:50:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:26]POST & json_proto [12:50:26]process_json_proto [12:50:26]json parsed OK: [12:50:26]protocol is kg_v1.0 [12:50:26]action value=close_receipt [12:50:26]process_action close_receipt [12:50:26]cmd_close_receipt [12:50:26]MH_GetDate [12:50:26]Write to MH i2c: F0 00 00 4D 0D 49 [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: F0 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: F0 09 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: F0 09 00 4D 0D 00 12 F1 18 67 A0 18 CA 66 BC [12:50:26]GetLastDocTimeStamp 1729687616 [12:50:26]current date 1729687826 [12:50:26]FM_GetShiftState [12:50:26]SAM_PROTO_GetShiftState [12:50:26]wFMCommunicate request_size=4 [12:50:26]MH_SAM_APDU [12:50:26]CAPDU: 80 13 01 00 [12:50:26]Write to MH i2c: E2 08 00 4E 0D 80 13 01 00 00 00 00 00 D8 [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:26]Read from MH i2c: E2 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 0E 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 0E 00 4E 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C0 [12:50:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:50:26]wFMCommunicate OK [12:50:26]SAM_PROTO_GetShiftState done [12:50:26]FM_GetShiftState done [12:50:26]opened in 1729642525 [12:50:26]opened+sec_in_day 1729728925 [12:50:26]quantity*price = 100015 [12:50:26]sum+1 = 100017 [12:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 168 23.10.2024 12:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188710 ФПД: 76540482838257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125026&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188710&fm=76540482838257&tin=02508201610067®Number=0000000000100030&sum=100016 [12:50:27]StoreToDocumentArchive [12:50:27]shift 462 fd 188710 [12:50:27]save to /storage/0462/doc_00188710 [12:50:27]save last doc name /storage/0462/doc_00188710 to /storage/kkm_last_doc_name [12:50:27]save OK [12:50:27]Clear old archive folders... [12:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:27]tlvbuf is 01BF86E0 [12:50:27]SAM_PROTO_ClearQueue [12:50:27]wFMCommunicate request_size=4 [12:50:27]MH_SAM_APDU [12:50:27]CAPDU: 80 09 00 00 [12:50:27]Write to MH i2c: E2 08 00 5B 0D 80 09 00 00 00 00 00 00 DA [12:50:27]Write i2c OK [12:50:27]MH_I2C_Read... [12:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:27]Read from MH i2c: E2 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 03 00 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [12:50:27]RAPDU: 90 00 [12:50:27]wFMCommunicate OK [12:50:27]SAM_PROTO_ClearQueue done [12:50:27]KKMCreateOFDPacket [12:50:27]OFDProtocolAddRootSTLVToBuf [12:50:27]FM_MakeSignedData [12:50:27]FM_MakeSignedData [12:50:27]SAM_PROTO_SignData [12:50:27]wFMCommunicate request_size=4 [12:50:27]MH_SAM_APDU [12:50:27]CAPDU: 80 0D 01 02 [12:50:27]Write to MH i2c: E2 08 00 5C 0D 80 0D 01 02 00 00 00 00 E2 [12:50:27]Write i2c OK [12:50:27]MH_I2C_Read... [12:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:27]Read from MH i2c: E2 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 03 00 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 03 00 5C 0D 00 90 00 DD [12:50:27]RAPDU: 90 00 [12:50:27]wFMCommunicate OK [12:50:27]wFMCommunicate request_size=255 [12:50:27]MH_SAM_APDU [12:50:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 12 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E1 02 00 35 04 06 00 45 [12:50:27]Write to MH i2c: E2 02 01 5D 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 12 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E1 02 00 35 04 06 00 45 00 00 B6 [12:50:27]Write i2c OK [12:50:27]MH_I2C_Read... [12:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:27]Read from MH i2c: E2 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 03 00 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 03 00 5D 0D 00 90 00 DE [12:50:27]RAPDU: 90 00 [12:50:27]wFMCommunicate OK [12:50:27]wFMCommunicate request_size=10 [12:50:27]MH_SAM_APDU [12:50:27]CAPDU: 80 0D 02 02 05 9C F8 4A 5E F1 [12:50:27]Write to MH i2c: E2 0D 00 5E 0D 80 0D 02 02 05 00 9C F8 4A 5E F1 00 00 1C [12:50:27]Write i2c OK [12:50:27]MH_I2C_Read... [12:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:27]Read from MH i2c: E2 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 03 00 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 03 00 5E 0D 00 90 00 DF [12:50:27]RAPDU: 90 00 [12:50:27]wFMCommunicate OK [12:50:27]wFMCommunicate request_size=4 [12:50:27]MH_SAM_APDU [12:50:27]CAPDU: 80 0D 03 02 [12:50:27]Write to MH i2c: E2 08 00 5F 0D 80 0D 03 02 00 00 00 00 E7 [12:50:27]Write i2c OK [12:50:27]MH_I2C_Read... [12:50:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:27]Read from MH i2c: E2 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 0B 00 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 0B 00 5F 0D 00 40 CB DF 64 4F AD 0C 71 90 00 AF [12:50:27]RAPDU: 40 CB DF 64 4F AD 0C 71 90 00 [12:50:27]wFMCommunicate OK [12:50:27]SAM_PROTO_SignData done [12:50:27]FM_MakeSignedData done [12:50:27]CreateOFDProtocolMessage [12:50:27]wFMCommunicate request_size=4 [12:50:27]MH_SAM_APDU [12:50:27]CAPDU: 80 11 00 00 [12:50:27]Write to MH i2c: E2 08 00 60 0D 80 11 00 00 00 00 00 00 E7 [12:50:27]Write i2c OK [12:50:27]MH_I2C_Read... [12:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:27]Read from MH i2c: E2 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 17 00 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: E2 17 00 60 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [12:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:50:27]wFMCommunicate OK [12:50:27]CreateOFDProtocolMessage done [12:50:27]OFDSenderStorePacket 188710 [12:50:27]StoreOFDPacket docnum=188710 [12:50:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6D AF 07 01 82 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 12 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E1 02 00 35 04 06 00 45 9C F8 4A 5E F1 40 CB DF 64 4F AD 0C 71 [12:50:27]CheckFolder [12:50:27]dirname=/storage/ofd_packets [12:50:27]CheckFolder done [12:50:27]ProducePacketName [12:50:27]name=ofd_packets/00188710 [12:50:27]NVStorageSaveData ofd_packets/00188710 [12:50:27]File name is /storage/ofd_packets/00188710 [12:50:27]Write 301 bytes [12:50:27]NVStorageSaveData done [12:50:27]OFDSenderStorePacket done [12:50:27]KKMCreateOFDPacket done [12:50:27]NVStorageSaveData kkm_last_timestamp [12:50:27]File name is /storage/kkm_last_timestamp [12:50:27]Write 4 bytes [12:50:27]NVStorageSaveData done [12:50:27]ExternCall_PrintAddStr [12:50:27]wPrintStart [12:50:27]Write to MH i2c: 01 00 00 61 0D 6E [12:50:27]Write i2c OK [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: 01 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: 01 07 00 [12:50:27]MH_I2C_Read... [12:50:27]Read from MH i2c: 01 07 00 61 0D 00 00 00 00 00 FF 0F 83 [12:50:27]RasterBufferAndPrint [12:50:27]line Счет N : (1)210770 [12:50:27]line ИНН: 02508201610067 [12:50:27]line Контрольно-Кассовый Чек [12:50:27]line ПРОДАЖА [12:50:27]line ТРК (МРК, ГНК) : 22 [12:50:27]line Товар: 2710124130 [12:50:27]line Аи-92-К-3 [12:50:27]line 14.950 * 66.90 [12:50:27]line = 1000.16 [12:50:27]line НДС 12% НСП 1% [12:50:27]line > о реализуемом товаре [12:50:27]line ИТОГО: 1000.16 [12:50:27]line НСП 1% : 8.85 [12:50:27]line НДС 12% : 106.21 [12:50:27]line Наличными: 0.00 [12:50:27]line Безнал.: 1000.16 [12:50:27]line Место: АЗС № 86 "Партнер Нефть" [12:50:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:50:27]line СНО: Общий режим [12:50:27]line Чек 168 23.10.2024 12:50 [12:50:27]line Смена: 462 ФФД: 1.0 [12:50:27]line ЗНМ: 0300000155 [12:50:27]line РНМ: 0000000000100030 [12:50:27]line Версия ККМ: 001 [12:50:27]line Платежная система: Mbank [12:50:27]line ФМ: 0000000000965340 [12:50:27]line ФД: 188710 [12:50:27]line ФПД: 76540482838257 [12:50:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125026&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188710&fm=76540482838257&tin=02508201610067®Number=0000000000100030&sum=100016 [12:50:27]written 0, free lines is 4095 [12:50:27]OFD Sender: Processing packet 188710 [packets to send 1062, broken 1061] [12:50:27]ProducePacketName [12:50:27]name=ofd_packets/00188710 [12:50:27]OFD Sender: To server: pG, [12:50:27]CommunicateWithHost lk.salyk.kg:30040 [12:50:27]ConnectInit lk.salyk.kg [12:50:28]Connected sock=10 [12:50:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6D AF 07 01 82 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 12 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E1 02 00 35 04 06 00 45 9C F8 4A 5E F1 40 CB DF 64 4F AD 0C 71 [12:50:28]Write to MH i2c: 01 00 00 8A 0D 97 [12:50:28]Write i2c OK [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: 01 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: 01 07 00 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: 01 07 00 8A 0D 00 00 00 00 00 83 0C 2D [12:50:28]RasterBufferAndPrint [12:50:28]line [12:50:28]line [12:50:28]line [12:50:28]line [12:50:28]line [12:50:28]written 0, free lines is 3207 [12:50:28]MH_Cut [12:50:28]Write to MH i2c: D1 01 00 91 0D 01 70 [12:50:28]Write i2c OK [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: D1 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: D1 01 00 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: D1 01 00 91 0D 00 6F [12:50:28]Write to MH i2c: 01 00 00 92 0D 9F [12:50:28]Write i2c OK [12:50:28]MH_I2C_Read... [12:50:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E3 6A 47 00 53 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 36 35 33 34 30 10 04 04 00 26 E1 02 00 F4 03 04 00 FD 9A 18 67 B6 04 01 00 00 8B 1E 23 30 A7 D8 8A 6E [12:50:28]CommunicateWithHost err = 0 [12:50:28]CheckOFDResponse [12:50:28]1017 (14) - 77093643461234 [12:50:28]1041 (16) - 0000000000965340 [12:50:28]1040 (4) - 188710 [12:50:28]1012 (4) - 23.10.2024 06:43 [12:50:28]1206 (1) - 0 [12:50:28]OFD Sender: Remove packet 188710 [12:50:28]ProducePacketName [12:50:28]name=ofd_packets/00188710 [12:50:28]NVStorageDeleteData [12:50:29]OFD Sender: No OFD packet to send [12:50:29]*** Cut start [12:50:29]*** Partial cut [12:50:29]*** CUTSNS_PIN = 1 [12:50:29]*** CUTSNS_PIN = 0 [12:50:29]*** Brake cut motor [12:50:30]Read from MH i2c: 01 [12:50:30]MH_I2C_Read... [12:50:30]*** Stop cut motor [12:50:30]*** Cut end [12:50:30]Read from MH i2c: 01 07 00 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: 01 07 00 92 0D 00 00 00 00 00 FF 0F B4 [12:50:30]process_action close_receipt done [12:50:30]requested_data is exist [12:50:30]produce_requested_data [12:50:30]requested_item fm.sn is exist - process it [12:50:30]wFMCommunicate request_size=4 [12:50:30]MH_SAM_APDU [12:50:30]CAPDU: 80 11 00 00 [12:50:30]Write to MH i2c: E2 08 00 93 0D 80 11 00 00 00 00 00 00 1A [12:50:30]Write i2c OK [12:50:30]MH_I2C_Read... [12:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:30]Read from MH i2c: E2 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: E2 17 00 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: E2 17 00 93 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [12:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:50:30]wFMCommunicate OK [12:50:30]requested_item fd.num is exist - process it [12:50:30]SAM_PROTO_GetFieldsCounters [12:50:30]wFMCommunicate request_size=4 [12:50:30]MH_SAM_APDU [12:50:30]CAPDU: 80 13 00 00 [12:50:30]Write to MH i2c: E2 08 00 94 0D 80 13 00 00 00 00 00 00 1D [12:50:30]Write i2c OK [12:50:30]MH_I2C_Read... [12:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:30]Read from MH i2c: E2 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: E2 62 00 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: E2 62 00 94 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [12:50:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:30]wFMCommunicate OK [12:50:30]SAM_PROTO_GetFieldsCounters done [12:50:30]requested_item shift.num is exist - process it [12:50:30]requested_item shift.opened is exist - process it [12:50:30]req_shift_opened [12:50:30]FM_GetShiftState [12:50:30]SAM_PROTO_GetShiftState [12:50:30]wFMCommunicate request_size=4 [12:50:30]MH_SAM_APDU [12:50:30]CAPDU: 80 13 01 00 [12:50:30]Write to MH i2c: E2 08 00 95 0D 80 13 01 00 00 00 00 00 1F [12:50:30]Write i2c OK [12:50:30]MH_I2C_Read... [12:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:30]Read from MH i2c: E2 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: E2 0E 00 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: E2 0E 00 95 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 07 [12:50:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:50:30]wFMCommunicate OK [12:50:30]SAM_PROTO_GetShiftState done [12:50:30]FM_GetShiftState done [12:50:30]req_shift_opened done [12:50:30]requested_item shift.open_date is exist - process it [12:50:30]req_shift_open_date [12:50:30]req_shift_open_date done [12:50:30]produce_requested_data done [12:50:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188710,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:50:30]process_action_free close_receipt [12:50:30]json_value_free [12:50:30]json_value_free done [12:50:30]process_json_proto returns [12:50:30]Send response to host [12:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188710,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:50:30]free response buf [12:50:30]execute_script done [12:50:30]execute_script returns [12:50:30]free content buf [12:50:30]Sock 7.Close socket [12:50:30]Sock 7.Thread stoped [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:50]accept exits with 9 [12:50:50]New connection [12:50:50]New thread 3067161956 created [12:50:50]Thread 3067018596 joined [12:50:50]Waiting for new connection... [12:50:50] Sock 9.Parse request [12:50:50]Sock 9.Check first char [12:50:50]Sock 9.First char is OK [12:50:50]request: POST /json_proto HTTP/1.0 [12:50:50]Method: POST [12:50:50]URL: /json_proto [12:50:50]Method is POST - this is cgi request [12:50:50]url: /json_proto [12:50:50]query_string will be loaded in cgi processing [12:50:50]execute_cgi json_proto POST (null) [12:50:50]execute_cgi path=json_proto method=POST [12:50:50]POST find Content-Length [12:50:50]Host: 172.17.42.131:8080 [12:50:50]Content-Length: 688 [12:50:50]Content-Type: application/json [12:50:50] [12:50:50]POST finish read [12:50:50]Found Content-Length = 688 [12:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:50]execute_script... [12:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:50]POST & json_proto [12:50:50]process_json_proto [12:50:50]json parsed OK: [12:50:50]protocol is kg_v1.0 [12:50:50]action value=close_receipt [12:50:50]process_action close_receipt [12:50:50]cmd_close_receipt [12:50:50]MH_GetDate [12:50:50]Write to MH i2c: F0 00 00 96 0D 92 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 09 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 09 00 96 0D 00 2B F1 18 67 A0 18 CA 66 1E [12:50:50]GetLastDocTimeStamp 1729687826 [12:50:50]current date 1729687851 [12:50:50]FM_GetShiftState [12:50:50]SAM_PROTO_GetShiftState [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 01 00 [12:50:50]Write to MH i2c: E2 08 00 97 0D 80 13 01 00 00 00 00 00 21 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 97 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 09 [12:50:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetShiftState done [12:50:50]FM_GetShiftState done [12:50:50]opened in 1729642525 [12:50:50]opened+sec_in_day 1729728925 [12:50:50]quantity*price = 100051 [12:50:50]sum+1 = 100052 [12:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 169 23.10.2024 12:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188711 ФПД: 172222537853359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125051&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188711&fm=172222537853359&tin=02508201610067®Number=0000000000100030&sum=100000 [12:50:51]StoreToDocumentArchive [12:50:51]shift 462 fd 188711 [12:50:51]save to /storage/0462/doc_00188711 [12:50:51]save last doc name /storage/0462/doc_00188711 to /storage/kkm_last_doc_name [12:50:51]save OK [12:50:51]Clear old archive folders... [12:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:50:51]tlvbuf is 01C07050 [12:50:51]SAM_PROTO_ClearQueue [12:50:51]wFMCommunicate request_size=4 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 09 00 00 [12:50:51]Write to MH i2c: E2 08 00 A4 0D 80 09 00 00 00 00 00 00 23 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [12:50:51]RAPDU: 90 00 [12:50:51]wFMCommunicate OK [12:50:51]SAM_PROTO_ClearQueue done [12:50:51]KKMCreateOFDPacket [12:50:51]OFDProtocolAddRootSTLVToBuf [12:50:51]FM_MakeSignedData [12:50:51]FM_MakeSignedData [12:50:51]SAM_PROTO_SignData [12:50:51]wFMCommunicate request_size=4 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 0D 01 02 [12:50:51]Write to MH i2c: E2 08 00 A5 0D 80 0D 01 02 00 00 00 00 2B [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 A5 0D 00 90 00 26 [12:50:51]RAPDU: 90 00 [12:50:51]wFMCommunicate OK [12:50:51]wFMCommunicate request_size=255 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 2B F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E1 02 [12:50:51]Write to MH i2c: E2 02 01 A6 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 2B F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E1 02 00 00 A5 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 A6 0D 00 90 00 27 [12:50:52]RAPDU: 90 00 [12:50:52]wFMCommunicate OK [12:50:52]wFMCommunicate request_size=16 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9C A2 AF 30 E9 AF [12:50:52]Write to MH i2c: E2 13 00 A7 0D 80 0D 02 02 0B 00 00 35 04 06 00 9C A2 AF 30 E9 AF 00 00 38 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 A7 0D 00 90 00 28 [12:50:52]RAPDU: 90 00 [12:50:52]wFMCommunicate OK [12:50:52]wFMCommunicate request_size=4 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 0D 03 02 [12:50:52]Write to MH i2c: E2 08 00 A8 0D 80 0D 03 02 00 00 00 00 30 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 0B 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 0B 00 A8 0D 00 D4 1B A7 CA 94 6B 26 0E 90 00 C4 [12:50:52]RAPDU: D4 1B A7 CA 94 6B 26 0E 90 00 [12:50:52]wFMCommunicate OK [12:50:52]SAM_PROTO_SignData done [12:50:52]FM_MakeSignedData done [12:50:52]CreateOFDProtocolMessage [12:50:52]wFMCommunicate request_size=4 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 11 00 00 [12:50:52]Write to MH i2c: E2 08 00 A9 0D 80 11 00 00 00 00 00 00 30 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 17 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 17 00 A9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [12:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:50:52]wFMCommunicate OK [12:50:52]CreateOFDProtocolMessage done [12:50:52]OFDSenderStorePacket 188711 [12:50:52]StoreOFDPacket docnum=188711 [12:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B9 15 0D 01 DD 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 2B F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E1 02 00 35 04 06 00 9C A2 AF 30 E9 AF D4 1B A7 CA 94 6B 26 0E [12:50:52]CheckFolder [12:50:52]dirname=/storage/ofd_packets [12:50:52]CheckFolder done [12:50:52]ProducePacketName [12:50:52]name=ofd_packets/00188711 [12:50:52]NVStorageSaveData ofd_packets/00188711 [12:50:52]File name is /storage/ofd_packets/00188711 [12:50:52]Write 307 bytes [12:50:52]NVStorageSaveData done [12:50:52]OFDSenderStorePacket done [12:50:52]KKMCreateOFDPacket done [12:50:52]NVStorageSaveData kkm_last_timestamp [12:50:52]File name is /storage/kkm_last_timestamp [12:50:52]Write 4 bytes [12:50:52]NVStorageSaveData done [12:50:52]ExternCall_PrintAddStr [12:50:52]wPrintStart [12:50:52]Write to MH i2c: 01 00 00 AA 0D B7 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 AA 0D 00 00 00 00 00 FF 0F CC [12:50:52]RasterBufferAndPrint [12:50:52]line Счет N : (1)210772 [12:50:52]line ИНН: 02508201610067 [12:50:52]line Контрольно-Кассовый Чек [12:50:52]line ПРОДАЖА [12:50:52]line ТРК (МРК, ГНК) : 11 [12:50:52]line Товар: 2710194210 [12:50:52]line D-ENERGY ДТ-К-5 [12:50:52]line 12.960 * 77.20 [12:50:52]line = 1000.51 [12:50:52]line НДС 12% НСП 1% [12:50:52]line > о реализуемом товаре [12:50:52]line ОКРУГЛЕНИЕ: -0.51 [12:50:52]line ИТОГО: 1000.00 [12:50:52]line Внесено: 1000.00 [12:50:52]line СДАЧА: 0.00 [12:50:52]line НСП 1% : 8.85 [12:50:52]line НДС 12% : 106.25 [12:50:52]line Наличными: 1000.00 [12:50:52]line Безнал.: 0.00 [12:50:52]line Место: АЗС № 86 "Партнер Нефть" [12:50:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:50:52]line СНО: Общий режим [12:50:52]line Чек 169 23.10.2024 12:50 [12:50:52]line Смена: 462 ФФД: 1.0 [12:50:52]line ЗНМ: 0300000155 [12:50:52]line РНМ: 0000000000100030 [12:50:52]line Версия ККМ: 001 [12:50:52]line ФМ: 0000000000965340 [12:50:52]line ФД: 188711 [12:50:52]line ФПД: 172222537853359 [12:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125051&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188711&fm=172222537853359&tin=02508201610067®Number=0000000000100030&sum=100000 [12:50:52]written 0, free lines is 4095 [12:50:52]OFD Sender: Processing packet 188711 [packets to send 1062, broken 1061] [12:50:52]ProducePacketName [12:50:52]name=ofd_packets/00188711 [12:50:52]OFD Sender: To server: pG, [12:50:52]CommunicateWithHost lk.salyk.kg:30040 [12:50:52]ConnectInit lk.salyk.kg [12:50:52]Connected sock=10 [12:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B9 15 0D 01 DD 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 2B F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E1 02 00 35 04 06 00 9C A2 AF 30 E9 AF D4 1B A7 CA 94 6B 26 0E [12:50:52]Write to MH i2c: 01 00 00 D5 0D E2 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 D5 0D 00 00 00 00 00 55 0C 4A [12:50:52]RasterBufferAndPrint [12:50:52]line [12:50:52]line [12:50:52]line [12:50:52]line [12:50:52]line [12:50:52]written 0, free lines is 3161 [12:50:52]MH_Cut [12:50:52]Write to MH i2c: D1 01 00 DC 0D 01 BB [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: D1 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: D1 01 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: D1 01 00 DC 0D 00 BA [12:50:52]Write to MH i2c: 01 00 00 DD 0D EA [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 95 2F 47 00 DD 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E1 02 00 F4 03 04 00 16 9B 18 67 B6 04 01 00 00 1E 82 9B A1 43 C8 BA 73 [12:50:53]CommunicateWithHost err = 0 [12:50:53]CheckOFDResponse [12:50:53]1017 (14) - 77093643461234 [12:50:53]1041 (16) - 0000000000965340 [12:50:53]1040 (4) - 188711 [12:50:53]1012 (4) - 23.10.2024 06:43 [12:50:53]1206 (1) - 0 [12:50:53]OFD Sender: Remove packet 188711 [12:50:53]ProducePacketName [12:50:53]name=ofd_packets/00188711 [12:50:53]NVStorageDeleteData [12:50:53]OFD Sender: No OFD packet to send [12:50:54]*** Cut start [12:50:54]*** Partial cut [12:50:54]*** CUTSNS_PIN = 1 [12:50:54]*** CUTSNS_PIN = 0 [12:50:54]*** Brake cut motor [12:50:54]Read from MH i2c: 01 [12:50:54]MH_I2C_Read... [12:50:54]*** Stop cut motor [12:50:54]*** Cut end [12:50:54]Read from MH i2c: 01 07 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: 01 07 00 DD 0D 00 00 00 00 00 FF 0F FF [12:50:54]process_action close_receipt done [12:50:54]requested_data is exist [12:50:54]produce_requested_data [12:50:54]requested_item fm.sn is exist - process it [12:50:54]wFMCommunicate request_size=4 [12:50:54]MH_SAM_APDU [12:50:54]CAPDU: 80 11 00 00 [12:50:54]Write to MH i2c: E2 08 00 DE 0D 80 11 00 00 00 00 00 00 65 [12:50:54]Write i2c OK [12:50:54]MH_I2C_Read... [12:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:54]Read from MH i2c: E2 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 17 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 17 00 DE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [12:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:50:54]wFMCommunicate OK [12:50:54]requested_item fd.num is exist - process it [12:50:54]SAM_PROTO_GetFieldsCounters [12:50:54]wFMCommunicate request_size=4 [12:50:54]MH_SAM_APDU [12:50:54]CAPDU: 80 13 00 00 [12:50:54]Write to MH i2c: E2 08 00 DF 0D 80 13 00 00 00 00 00 00 68 [12:50:54]Write i2c OK [12:50:54]MH_I2C_Read... [12:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:55]Read from MH i2c: E2 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: E2 62 00 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: E2 62 00 DF 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [12:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:55]wFMCommunicate OK [12:50:55]SAM_PROTO_GetFieldsCounters done [12:50:55]requested_item shift.num is exist - process it [12:50:55]requested_item shift.opened is exist - process it [12:50:55]req_shift_opened [12:50:55]FM_GetShiftState [12:50:55]SAM_PROTO_GetShiftState [12:50:55]wFMCommunicate request_size=4 [12:50:55]MH_SAM_APDU [12:50:55]CAPDU: 80 13 01 00 [12:50:55]Write to MH i2c: E2 08 00 E0 0D 80 13 01 00 00 00 00 00 6A [12:50:55]Write i2c OK [12:50:55]MH_I2C_Read... [12:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:55]Read from MH i2c: E2 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: E2 0E 00 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: E2 0E 00 E0 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 52 [12:50:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:50:55]wFMCommunicate OK [12:50:55]SAM_PROTO_GetShiftState done [12:50:55]FM_GetShiftState done [12:50:55]req_shift_opened done [12:50:55]requested_item shift.open_date is exist - process it [12:50:55]req_shift_open_date [12:50:55]req_shift_open_date done [12:50:55]produce_requested_data done [12:50:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188711,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:50:55]process_action_free close_receipt [12:50:55]json_value_free [12:50:55]json_value_free done [12:50:55]process_json_proto returns [12:50:55]Send response to host [12:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188711,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:50:55]free response buf [12:50:55]execute_script done [12:50:55]execute_script returns [12:50:55]free content buf [12:50:55]Sock 9.Close socket [12:50:55]Sock 9.Thread stoped [12:50:58]OFD Sender: No OFD packet to send [12:50:59]accept exits with 7 [12:50:59]New connection [12:50:59]New thread 3067018596 created [12:50:59]Thread 3067161956 joined [12:50:59]Waiting for new connection... [12:50:59] Sock 7.Parse request [12:50:59]Sock 7.Check first char [12:50:59]Sock 7.First char is OK [12:50:59]request: POST /json_proto HTTP/1.0 [12:50:59]Method: POST [12:50:59]URL: /json_proto [12:50:59]Method is POST - this is cgi request [12:50:59]url: /json_proto [12:50:59]query_string will be loaded in cgi processing [12:50:59]execute_cgi json_proto POST (null) [12:50:59]execute_cgi path=json_proto method=POST [12:50:59]POST find Content-Length [12:50:59]Host: 172.17.42.131:8080 [12:50:59]Content-Length: 682 [12:50:59]Content-Type: application/json [12:50:59] [12:50:59]POST finish read [12:50:59]Found Content-Length = 682 [12:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 39.630, "sum" : 2940.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2940.00, "payments": [ { "type": 0, "sum" : 2940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:59]execute_script... [12:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 39.630, "sum" : 2940.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2940.00, "payments": [ { "type": 0, "sum" : 2940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:59]POST & json_proto [12:50:59]process_json_proto [12:50:59]json parsed OK: [12:50:59]protocol is kg_v1.0 [12:50:59]action value=close_receipt [12:50:59]process_action close_receipt [12:50:59]cmd_close_receipt [12:50:59]MH_GetDate [12:50:59]Write to MH i2c: F0 00 00 E1 0D DD [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: F0 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: F0 09 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: F0 09 00 E1 0D 00 33 F1 18 67 A0 18 CA 66 71 [12:50:59]GetLastDocTimeStamp 1729687851 [12:50:59]current date 1729687859 [12:50:59]FM_GetShiftState [12:50:59]SAM_PROTO_GetShiftState [12:50:59]wFMCommunicate request_size=4 [12:50:59]MH_SAM_APDU [12:50:59]CAPDU: 80 13 01 00 [12:50:59]Write to MH i2c: E2 08 00 E2 0D 80 13 01 00 00 00 00 00 6C [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:59]Read from MH i2c: E2 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 0E 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 0E 00 E2 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 54 [12:50:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:50:59]wFMCommunicate OK [12:50:59]SAM_PROTO_GetShiftState done [12:50:59]FM_GetShiftState done [12:50:59]opened in 1729642525 [12:50:59]opened+sec_in_day 1729728925 [12:50:59]quantity*price = 294054 [12:50:59]sum+1 = 294056 [12:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 2940.00 Внесено: 3000.00 СДАЧА: 60.00 НСП 1% : 26.02 НДС 12% : 312.27 Наличными: 2940.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 170 23.10.2024 12:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188712 ФПД: 46383577607107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125059&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188712&fm=46383577607107&tin=02508201610067®Number=0000000000100030&sum=294000 [12:51:00]StoreToDocumentArchive [12:51:00]shift 462 fd 188712 [12:51:00]save to /storage/0462/doc_00188712 [12:51:00]save last doc name /storage/0462/doc_00188712 to /storage/kkm_last_doc_name [12:51:00]save OK [12:51:00]Clear old archive folders... [12:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:00]tlvbuf is 01C3CE00 [12:51:00]SAM_PROTO_ClearQueue [12:51:00]wFMCommunicate request_size=4 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 09 00 00 [12:51:00]Write to MH i2c: E2 08 00 EF 0D 80 09 00 00 00 00 00 00 6E [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 03 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 03 00 EF 0D 00 90 00 70 [12:51:00]RAPDU: 90 00 [12:51:00]wFMCommunicate OK [12:51:00]SAM_PROTO_ClearQueue done [12:51:00]KKMCreateOFDPacket [12:51:00]OFDProtocolAddRootSTLVToBuf [12:51:00]FM_MakeSignedData [12:51:00]FM_MakeSignedData [12:51:00]SAM_PROTO_SignData [12:51:00]wFMCommunicate request_size=4 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 0D 01 02 [12:51:00]Write to MH i2c: E2 08 00 F0 0D 80 0D 01 02 00 00 00 00 76 [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 03 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 03 00 F0 0D 00 90 00 71 [12:51:00]RAPDU: 90 00 [12:51:00]wFMCommunicate OK [12:51:00]wFMCommunicate request_size=255 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE 9A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A7 7C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 79 00 00 00 00 07 04 06 00 70 7C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 33 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E1 02 00 35 04 06 00 2A [12:51:00]Write to MH i2c: E2 02 01 F1 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE 9A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A7 7C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 79 00 00 00 00 07 04 06 00 70 7C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 33 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E1 02 00 35 04 06 00 2A 00 00 E8 [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 03 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 03 00 F1 0D 00 90 00 72 [12:51:00]RAPDU: 90 00 [12:51:00]wFMCommunicate OK [12:51:00]wFMCommunicate request_size=10 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 0D 02 02 05 2F 84 AA AB C3 [12:51:00]Write to MH i2c: E2 0D 00 F2 0D 80 0D 02 02 05 00 2F 84 AA AB C3 00 00 4E [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 03 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 03 00 F2 0D 00 90 00 73 [12:51:00]RAPDU: 90 00 [12:51:00]wFMCommunicate OK [12:51:00]wFMCommunicate request_size=4 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 0D 03 02 [12:51:00]Write to MH i2c: E2 08 00 F3 0D 80 0D 03 02 00 00 00 00 7B [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 0B 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 0B 00 F3 0D 00 B6 37 D4 D8 2D 12 0C AC 90 00 0C [12:51:00]RAPDU: B6 37 D4 D8 2D 12 0C AC 90 00 [12:51:00]wFMCommunicate OK [12:51:00]SAM_PROTO_SignData done [12:51:00]FM_MakeSignedData done [12:51:00]CreateOFDProtocolMessage [12:51:00]wFMCommunicate request_size=4 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 11 00 00 [12:51:00]Write to MH i2c: E2 08 00 F4 0D 80 11 00 00 00 00 00 00 7B [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 17 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 17 00 F4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [12:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:51:00]wFMCommunicate OK [12:51:00]CreateOFDProtocolMessage done [12:51:00]OFDSenderStorePacket 188712 [12:51:00]StoreOFDPacket docnum=188712 [12:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 65 9B 07 01 92 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE 9A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A7 7C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 79 00 00 00 00 07 04 06 00 70 7C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 33 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E1 02 00 35 04 06 00 2A 2F 84 AA AB C3 B6 37 D4 D8 2D 12 0C AC [12:51:00]CheckFolder [12:51:00]dirname=/storage/ofd_packets [12:51:00]CheckFolder done [12:51:00]ProducePacketName [12:51:00]name=ofd_packets/00188712 [12:51:00]NVStorageSaveData ofd_packets/00188712 [12:51:00]File name is /storage/ofd_packets/00188712 [12:51:00]Write 301 bytes [12:51:00]NVStorageSaveData done [12:51:00]OFDSenderStorePacket done [12:51:00]KKMCreateOFDPacket done [12:51:00]NVStorageSaveData kkm_last_timestamp [12:51:00]File name is /storage/kkm_last_timestamp [12:51:00]Write 4 bytes [12:51:00]NVStorageSaveData done [12:51:00]ExternCall_PrintAddStr [12:51:00]wPrintStart [12:51:00]Write to MH i2c: 01 00 00 F5 0D 02 [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: 01 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: 01 07 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: 01 07 00 F5 0D 00 00 00 00 00 FF 0F 17 [12:51:00]RasterBufferAndPrint [12:51:00]line Счет N : (1)210771 [12:51:00]line ИНН: 02508201610067 [12:51:00]line Контрольно-Кассовый Чек [12:51:00]line ПРОДАЖА [12:51:00]line ТРК (МРК, ГНК) : 33 [12:51:00]line Товар: 2710124500 [12:51:00]line Аи-95-К-3 [12:51:00]line 39.630 * 74.20 [12:51:00]line = 2940.55 [12:51:00]line НДС 12% НСП 1% [12:51:00]line > о реализуемом товаре [12:51:00]line ОКРУГЛЕНИЕ: -0.55 [12:51:00]line ИТОГО: 2940.00 [12:51:00]line Внесено: 3000.00 [12:51:00]line СДАЧА: 60.00 [12:51:00]line НСП 1% : 26.02 [12:51:00]line НДС 12% : 312.27 [12:51:00]line Наличными: 2940.00 [12:51:00]line Безнал.: 0.00 [12:51:00]line Место: АЗС № 86 "Партнер Нефть" [12:51:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:51:00]line СНО: Общий режим [12:51:00]line Чек 170 23.10.2024 12:50 [12:51:00]line Смена: 462 ФФД: 1.0 [12:51:00]line ЗНМ: 0300000155 [12:51:00]line РНМ: 0000000000100030 [12:51:00]line Версия ККМ: 001 [12:51:00]line ФМ: 0000000000965340 [12:51:00]line ФД: 188712 [12:51:00]line ФПД: 46383577607107 [12:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125059&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188712&fm=46383577607107&tin=02508201610067®Number=0000000000100030&sum=294000 [12:51:00]written 0, free lines is 4095 [12:51:01]OFD Sender: Processing packet 188712 [packets to send 1062, broken 1061] [12:51:01]ProducePacketName [12:51:01]name=ofd_packets/00188712 [12:51:01]OFD Sender: To server: pG, [12:51:01]CommunicateWithHost lk.salyk.kg:30040 [12:51:01]ConnectInit lk.salyk.kg [12:51:01]Connected sock=10 [12:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 65 9B 07 01 92 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE 9A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A7 7C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 79 00 00 00 00 07 04 06 00 70 7C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 33 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E1 02 00 35 04 06 00 2A 2F 84 AA AB C3 B6 37 D4 D8 2D 12 0C AC [12:51:01]Write to MH i2c: 01 00 00 20 0E 2E [12:51:01]Write i2c OK [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: 01 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: 01 07 00 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: 01 07 00 20 0E 00 00 00 00 00 74 0C B5 [12:51:01]RasterBufferAndPrint [12:51:01]line [12:51:01]line [12:51:01]line [12:51:01]line [12:51:01]line [12:51:01]written 0, free lines is 3192 [12:51:01]MH_Cut [12:51:01]Write to MH i2c: D1 01 00 27 0E 01 07 [12:51:01]Write i2c OK [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: D1 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: D1 01 00 [12:51:01]MH_I2C_Read... [12:51:01]Read from MH i2c: D1 01 00 27 0E 00 06 [12:51:01]Write to MH i2c: 01 00 00 28 0E 36 [12:51:01]Write i2c OK [12:51:01]MH_I2C_Read... [12:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 88 C4 47 00 C6 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E1 02 00 F4 03 04 00 1E 9B 18 67 B6 04 01 00 00 E4 46 9E C1 E2 7D FB 1E [12:51:01]CommunicateWithHost err = 0 [12:51:01]CheckOFDResponse [12:51:01]1017 (14) - 77093643461234 [12:51:01]1041 (16) - 0000000000965340 [12:51:01]1040 (4) - 188712 [12:51:01]1012 (4) - 23.10.2024 06:43 [12:51:01]1206 (1) - 0 [12:51:01]OFD Sender: Remove packet 188712 [12:51:01]ProducePacketName [12:51:01]name=ofd_packets/00188712 [12:51:01]NVStorageDeleteData [12:51:02]OFD Sender: No OFD packet to send [12:51:02]*** Cut start [12:51:02]*** Partial cut [12:51:02]*** CUTSNS_PIN = 1 [12:51:02]*** CUTSNS_PIN = 0 [12:51:02]*** Brake cut motor [12:51:03]Read from MH i2c: 01 [12:51:03]MH_I2C_Read... [12:51:03]*** Stop cut motor [12:51:03]*** Cut end [12:51:03]Read from MH i2c: 01 07 00 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: 01 07 00 28 0E 00 00 00 00 00 FF 0F 4B [12:51:03]process_action close_receipt done [12:51:03]requested_data is exist [12:51:03]produce_requested_data [12:51:03]requested_item fm.sn is exist - process it [12:51:03]wFMCommunicate request_size=4 [12:51:03]MH_SAM_APDU [12:51:03]CAPDU: 80 11 00 00 [12:51:03]Write to MH i2c: E2 08 00 29 0E 80 11 00 00 00 00 00 00 B1 [12:51:03]Write i2c OK [12:51:03]MH_I2C_Read... [12:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:03]Read from MH i2c: E2 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 17 00 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 17 00 29 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [12:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:51:03]wFMCommunicate OK [12:51:03]requested_item fd.num is exist - process it [12:51:03]SAM_PROTO_GetFieldsCounters [12:51:03]wFMCommunicate request_size=4 [12:51:03]MH_SAM_APDU [12:51:03]CAPDU: 80 13 00 00 [12:51:03]Write to MH i2c: E2 08 00 2A 0E 80 13 00 00 00 00 00 00 B4 [12:51:03]Write i2c OK [12:51:03]MH_I2C_Read... [12:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:03]Read from MH i2c: E2 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 62 00 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 62 00 2A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [12:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:03]wFMCommunicate OK [12:51:03]SAM_PROTO_GetFieldsCounters done [12:51:03]requested_item shift.num is exist - process it [12:51:03]requested_item shift.opened is exist - process it [12:51:03]req_shift_opened [12:51:03]FM_GetShiftState [12:51:03]SAM_PROTO_GetShiftState [12:51:03]wFMCommunicate request_size=4 [12:51:03]MH_SAM_APDU [12:51:03]CAPDU: 80 13 01 00 [12:51:03]Write to MH i2c: E2 08 00 2B 0E 80 13 01 00 00 00 00 00 B6 [12:51:03]Write i2c OK [12:51:03]MH_I2C_Read... [12:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:03]Read from MH i2c: E2 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 0E 00 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 0E 00 2B 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9E [12:51:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:51:03]wFMCommunicate OK [12:51:03]SAM_PROTO_GetShiftState done [12:51:03]FM_GetShiftState done [12:51:03]req_shift_opened done [12:51:03]requested_item shift.open_date is exist - process it [12:51:03]req_shift_open_date [12:51:03]req_shift_open_date done [12:51:03]produce_requested_data done [12:51:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188712,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:51:03]process_action_free close_receipt [12:51:03]json_value_free [12:51:03]json_value_free done [12:51:03]process_json_proto returns [12:51:03]Send response to host [12:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188712,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:51:03]free response buf [12:51:03]execute_script done [12:51:03]execute_script returns [12:51:03]free content buf [12:51:03]Sock 7.Close socket [12:51:03]Sock 7.Thread stoped [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:06]accept exits with 9 [12:53:06]New connection [12:53:06]New thread 3067161956 created [12:53:06]Thread 3067018596 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.42.131:8080 [12:53:06]Content-Length: 682 [12:53:06]Content-Type: application/json [12:53:06] [12:53:06]POST finish read [12:53:06]Found Content-Length = 682 [12:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "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 : (1)210773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "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 2C 0E 29 [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 2C 0E 00 B3 F1 18 67 A0 18 CA 66 3D [12:53:06]GetLastDocTimeStamp 1729687859 [12:53:06]current date 1729687987 [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 2D 0E 80 13 01 00 00 00 00 00 B8 [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 0E 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 0E 00 2D 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A0 [12:53:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:53:07]wFMCommunicate OK [12:53:07]SAM_PROTO_GetShiftState done [12:53:07]FM_GetShiftState done [12:53:07]opened in 1729642525 [12:53:07]opened+sec_in_day 1729728925 [12:53:07]quantity*price = 160049 [12:53:07]sum+1 = 160050 [12:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 171 23.10.2024 12:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188713 ФПД: 224425953606259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125307&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188713&fm=224425953606259&tin=02508201610067®Number=0000000000100030&sum=160000 [12:53:08]StoreToDocumentArchive [12:53:08]shift 462 fd 188713 [12:53:08]save to /storage/0462/doc_00188713 [12:53:08]save last doc name /storage/0462/doc_00188713 to /storage/kkm_last_doc_name [12:53:08]save OK [12:53:08]Clear old archive folders... [12:53:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:08]tlvbuf is B6EF42F0 [12:53:08]SAM_PROTO_ClearQueue [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 09 00 00 [12:53:08]Write to MH i2c: E2 08 00 3A 0E 80 09 00 00 00 00 00 00 BA [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:08]Read from MH i2c: E2 03 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 3A 0E 00 90 00 BC [12:53:08]RAPDU: 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_ClearQueue done [12:53:08]KKMCreateOFDPacket [12:53:08]OFDProtocolAddRootSTLVToBuf [12:53:08]FM_MakeSignedData [12:53:08]FM_MakeSignedData [12:53:08]SAM_PROTO_SignData [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 0D 01 02 [12:53:08]Write to MH i2c: E2 08 00 3B 0E 80 0D 01 02 00 00 00 00 C2 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 3B 0E 00 90 00 BD [12:53:08]RAPDU: 90 00 [12:53:08]wFMCommunicate OK [12:53:08]wFMCommunicate request_size=255 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B3 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E1 02 00 35 04 06 00 CC [12:53:08]Write to MH i2c: E2 02 01 3C 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B3 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E1 02 00 35 04 06 00 CC 00 00 94 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:08]Read from MH i2c: E2 03 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 3C 0E 00 90 00 BE [12:53:08]RAPDU: 90 00 [12:53:08]wFMCommunicate OK [12:53:08]wFMCommunicate request_size=10 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 0D 02 02 05 1D 3D 3E 3A 73 [12:53:08]Write to MH i2c: E2 0D 00 3D 0E 80 0D 02 02 05 00 1D 3D 3E 3A 73 00 00 14 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [12:53:08]RAPDU: 90 00 [12:53:08]wFMCommunicate OK [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 0D 03 02 [12:53:08]Write to MH i2c: E2 08 00 3E 0E 80 0D 03 02 00 00 00 00 C7 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0B 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0B 00 3E 0E 00 C0 57 77 F9 EE D5 79 C2 90 00 4D [12:53:08]RAPDU: C0 57 77 F9 EE D5 79 C2 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_SignData done [12:53:08]FM_MakeSignedData done [12:53:08]CreateOFDProtocolMessage [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 11 00 00 [12:53:08]Write to MH i2c: E2 08 00 3F 0E 80 11 00 00 00 00 00 00 C7 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 3F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 15 [12:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:53:08]wFMCommunicate OK [12:53:08]CreateOFDProtocolMessage done [12:53:08]OFDSenderStorePacket 188713 [12:53:08]StoreOFDPacket docnum=188713 [12:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 51 07 01 DE EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B3 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E1 02 00 35 04 06 00 CC 1D 3D 3E 3A 73 C0 57 77 F9 EE D5 79 C2 [12:53:08]CheckFolder [12:53:08]dirname=/storage/ofd_packets [12:53:08]CheckFolder done [12:53:08]ProducePacketName [12:53:08]name=ofd_packets/00188713 [12:53:08]NVStorageSaveData ofd_packets/00188713 [12:53:08]File name is /storage/ofd_packets/00188713 [12:53:08]Write 301 bytes [12:53:08]NVStorageSaveData done [12:53:08]OFDSenderStorePacket done [12:53:08]KKMCreateOFDPacket done [12:53:08]NVStorageSaveData kkm_last_timestamp [12:53:08]File name is /storage/kkm_last_timestamp [12:53:08]Write 4 bytes [12:53:08]NVStorageSaveData done [12:53:08]ExternCall_PrintAddStr [12:53:08]wPrintStart [12:53:08]Write to MH i2c: 01 00 00 40 0E 4E [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 40 0E 00 00 00 00 00 FF 0F 63 [12:53:08]RasterBufferAndPrint [12:53:08]line Счет N : (1)210773 [12:53:08]line ИНН: 02508201610067 [12:53:08]line Контрольно-Кассовый Чек [12:53:08]line ПРОДАЖА [12:53:08]line ТРК (МРК, ГНК) : 43 [12:53:08]line Товар: 2710124500 [12:53:08]line Аи-95-К-3 [12:53:08]line 21.570 * 74.20 [12:53:08]line = 1600.49 [12:53:08]line НДС 12% НСП 1% [12:53:08]line > о реализуемом товаре [12:53:08]line ОКРУГЛЕНИЕ: -0.49 [12:53:08]line ИТОГО: 1600.00 [12:53:08]line Внесено: 1600.00 [12:53:08]line СДАЧА: 0.00 [12:53:08]line НСП 1% : 14.16 [12:53:08]line НДС 12% : 169.96 [12:53:08]line Наличными: 1600.00 [12:53:08]line Безнал.: 0.00 [12:53:08]line Место: АЗС № 86 "Партнер Нефть" [12:53:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:53:08]line СНО: Общий режим [12:53:08]line Чек 171 23.10.2024 12:53 [12:53:08]line Смена: 462 ФФД: 1.0 [12:53:08]line ЗНМ: 0300000155 [12:53:08]line РНМ: 0000000000100030 [12:53:08]line Версия ККМ: 001 [12:53:08]line ФМ: 0000000000965340 [12:53:08]line ФД: 188713 [12:53:08]line ФПД: 224425953606259 [12:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125307&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188713&fm=224425953606259&tin=02508201610067®Number=0000000000100030&sum=160000 [12:53:08]written 0, free lines is 4095 [12:53:08]OFD Sender: Processing packet 188713 [packets to send 1062, broken 1061] [12:53:08]ProducePacketName [12:53:08]name=ofd_packets/00188713 [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:09]Connected sock=10 [12:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 51 07 01 DE EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B3 F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E1 02 00 35 04 06 00 CC 1D 3D 3E 3A 73 C0 57 77 F9 EE D5 79 C2 [12:53:09]Write to MH i2c: 01 00 00 6B 0E 79 [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 07 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 07 00 6B 0E 00 00 00 00 00 66 0C F2 [12:53:09]RasterBufferAndPrint [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]written 0, free lines is 3177 [12:53:09]MH_Cut [12:53:09]Write to MH i2c: D1 01 00 72 0E 01 52 [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: D1 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: D1 01 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: D1 01 00 72 0E 00 51 [12:53:09]Write to MH i2c: 01 00 00 73 0E 81 [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BA 0A 47 00 36 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 36 35 33 34 30 10 04 04 00 29 E1 02 00 F4 03 04 00 9E 9B 18 67 B6 04 01 00 00 BC EA B8 99 2F 50 05 62 [12:53:09]CommunicateWithHost err = 0 [12:53:09]CheckOFDResponse [12:53:09]1017 (14) - 77093643461234 [12:53:09]1041 (16) - 0000000000965340 [12:53:09]1040 (4) - 188713 [12:53:09]1012 (4) - 23.10.2024 06:45 [12:53:09]1206 (1) - 0 [12:53:09]OFD Sender: Remove packet 188713 [12:53:09]ProducePacketName [12:53:09]name=ofd_packets/00188713 [12:53:09]NVStorageDeleteData [12:53:09]OFD Sender: No OFD packet to send [12:53:10]*** Cut start [12:53:10]*** Partial cut [12:53:10]*** CUTSNS_PIN = 1 [12:53:10]*** CUTSNS_PIN = 0 [12:53:10]*** Brake cut motor [12:53:11]Read from MH i2c: 01 [12:53:11]MH_I2C_Read... [12:53:11]*** Stop cut motor [12:53:11]*** Cut end [12:53:11]Read from MH i2c: 01 07 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: 01 07 00 73 0E 00 00 00 00 00 FF 0F 96 [12:53:11]process_action close_receipt done [12:53:11]requested_data is exist [12:53:11]produce_requested_data [12:53:11]requested_item fm.sn is exist - process it [12:53:11]wFMCommunicate request_size=4 [12:53:11]MH_SAM_APDU [12:53:11]CAPDU: 80 11 00 00 [12:53:11]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:11]Read from MH i2c: E2 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 17 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [12:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:53:11]wFMCommunicate OK [12:53:11]requested_item fd.num is exist - process it [12:53:11]SAM_PROTO_GetFieldsCounters [12:53:11]wFMCommunicate request_size=4 [12:53:11]MH_SAM_APDU [12:53:11]CAPDU: 80 13 00 00 [12:53:11]Write to MH i2c: E2 08 00 75 0E 80 13 00 00 00 00 00 00 FF [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:11]Read from MH i2c: E2 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 62 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 62 00 75 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12:53:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:11]wFMCommunicate OK [12:53:11]SAM_PROTO_GetFieldsCounters done [12:53:11]requested_item shift.num is exist - process it [12:53:11]requested_item shift.opened is exist - process it [12:53:11]req_shift_opened [12:53:11]FM_GetShiftState [12:53:11]SAM_PROTO_GetShiftState [12:53:11]wFMCommunicate request_size=4 [12:53:11]MH_SAM_APDU [12:53:11]CAPDU: 80 13 01 00 [12:53:11]Write to MH i2c: E2 08 00 76 0E 80 13 01 00 00 00 00 00 01 [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:11]Read from MH i2c: E2 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 0E 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 0E 00 76 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E9 [12:53:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:53:11]wFMCommunicate OK [12:53:11]SAM_PROTO_GetShiftState done [12:53:11]FM_GetShiftState done [12:53:11]req_shift_opened done [12:53:11]requested_item shift.open_date is exist - process it [12:53:11]req_shift_open_date [12:53:11]req_shift_open_date done [12:53:11]produce_requested_data done [12:53:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188713,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:53:11]process_action_free close_receipt [12:53:11]json_value_free [12:53:11]json_value_free done [12:53:11]process_json_proto returns [12:53:11]Send response to host [12:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188713,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:53:11]free response buf [12:53:11]execute_script done [12:53:11]execute_script returns [12:53:11]free content buf [12:53:11]Sock 9.Close socket [12:53:11]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]accept exits with 7 [12:53:29]New connection [12:53:29]New thread 3067018596 created [12:53:29]Thread 3067161956 joined [12:53:29]Waiting for new connection... [12:53:29] Sock 7.Parse request [12:53:29]Sock 7.Check first char [12:53:29]Sock 7.First char is OK [12:53:29]request: POST /json_proto HTTP/1.0 [12:53:29]Method: POST [12:53:29]URL: /json_proto [12:53:29]Method is POST - this is cgi request [12:53:29]url: /json_proto [12:53:29]query_string will be loaded in cgi processing [12:53:29]execute_cgi json_proto POST (null) [12:53:29]execute_cgi path=json_proto method=POST [12:53:29]POST find Content-Length [12:53:29]Host: 172.17.42.131:8080 [12:53:29]Content-Length: 677 [12:53:29]Content-Type: application/json [12:53:29] [12:53:29]POST finish read [12:53:29]Found Content-Length = 677 [12:53:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:29]execute_script... [12:53:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:29]POST & json_proto [12:53:29]process_json_proto [12:53:29]json parsed OK: [12:53:29]protocol is kg_v1.0 [12:53:29]action value=close_receipt [12:53:29]process_action close_receipt [12:53:29]cmd_close_receipt [12:53:29]MH_GetDate [12:53:29]Write to MH i2c: F0 00 00 77 0E 74 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: F0 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: F0 09 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: F0 09 00 77 0E 00 CA F1 18 67 A0 18 CA 66 9F [12:53:29]GetLastDocTimeStamp 1729687987 [12:53:29]current date 1729688010 [12:53:29]FM_GetShiftState [12:53:29]SAM_PROTO_GetShiftState [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 13 01 00 [12:53:29]Write to MH i2c: E2 08 00 78 0E 80 13 01 00 00 00 00 00 03 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 0E 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 0E 00 78 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EB [12:53:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:53:29]wFMCommunicate OK [12:53:29]SAM_PROTO_GetShiftState done [12:53:29]FM_GetShiftState done [12:53:29]opened in 1729642525 [12:53:29]opened+sec_in_day 1729728925 [12:53:29]quantity*price = 50041 [12:53:29]sum+1 = 50042 [12:53:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 172 23.10.2024 12:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188714 ФПД: 32464931437716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125330&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188714&fm=32464931437716&tin=02508201610067®Number=0000000000100030&sum=50000 [12:53:30]StoreToDocumentArchive [12:53:30]shift 462 fd 188714 [12:53:30]save to /storage/0462/doc_00188714 [12:53:30]save last doc name /storage/0462/doc_00188714 to /storage/kkm_last_doc_name [12:53:30]save OK [12:53:30]Clear old archive folders... [12:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:30]tlvbuf is 01C47380 [12:53:30]SAM_PROTO_ClearQueue [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 09 00 00 [12:53:30]Write to MH i2c: E2 08 00 85 0E 80 09 00 00 00 00 00 00 05 [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 85 0E 00 90 00 07 [12:53:30]RAPDU: 90 00 [12:53:30]wFMCommunicate OK [12:53:30]SAM_PROTO_ClearQueue done [12:53:30]KKMCreateOFDPacket [12:53:30]OFDProtocolAddRootSTLVToBuf [12:53:30]FM_MakeSignedData [12:53:30]FM_MakeSignedData [12:53:30]SAM_PROTO_SignData [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 0D 01 02 [12:53:30]Write to MH i2c: E2 08 00 86 0E 80 0D 01 02 00 00 00 00 0D [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 86 0E 00 90 00 08 [12:53:30]RAPDU: 90 00 [12:53:30]wFMCommunicate OK [12:53:30]wFMCommunicate request_size=255 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CA F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E1 02 00 35 04 06 00 1D [12:53:30]Write to MH i2c: E2 02 01 87 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CA F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E1 02 00 35 04 06 00 1D 00 00 5F [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 87 0E 00 90 00 09 [12:53:31]RAPDU: 90 00 [12:53:31]wFMCommunicate OK [12:53:31]wFMCommunicate request_size=10 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 0D 02 02 05 86 D4 B4 BC 94 [12:53:31]Write to MH i2c: E2 0D 00 88 0E 80 0D 02 02 05 00 86 D4 B4 BC 94 00 00 78 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [12:53:31]RAPDU: 90 00 [12:53:31]wFMCommunicate OK [12:53:31]wFMCommunicate request_size=4 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 0D 03 02 [12:53:31]Write to MH i2c: E2 08 00 89 0E 80 0D 03 02 00 00 00 00 12 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 0B 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 0B 00 89 0E 00 13 79 77 6C 83 12 98 4F 90 00 FE [12:53:31]RAPDU: 13 79 77 6C 83 12 98 4F 90 00 [12:53:31]wFMCommunicate OK [12:53:31]SAM_PROTO_SignData done [12:53:31]FM_MakeSignedData done [12:53:31]CreateOFDProtocolMessage [12:53:31]wFMCommunicate request_size=4 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 11 00 00 [12:53:31]Write to MH i2c: E2 08 00 8A 0E 80 11 00 00 00 00 00 00 12 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 17 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 17 00 8A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [12:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:53:31]wFMCommunicate OK [12:53:31]CreateOFDProtocolMessage done [12:53:31]OFDSenderStorePacket 188714 [12:53:31]StoreOFDPacket docnum=188714 [12:53:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE E5 07 01 7A 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CA F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E1 02 00 35 04 06 00 1D 86 D4 B4 BC 94 13 79 77 6C 83 12 98 4F [12:53:31]CheckFolder [12:53:31]dirname=/storage/ofd_packets [12:53:31]CheckFolder done [12:53:31]ProducePacketName [12:53:31]name=ofd_packets/00188714 [12:53:31]NVStorageSaveData ofd_packets/00188714 [12:53:31]File name is /storage/ofd_packets/00188714 [12:53:31]Write 301 bytes [12:53:31]NVStorageSaveData done [12:53:31]OFDSenderStorePacket done [12:53:31]KKMCreateOFDPacket done [12:53:31]NVStorageSaveData kkm_last_timestamp [12:53:31]File name is /storage/kkm_last_timestamp [12:53:31]Write 4 bytes [12:53:31]NVStorageSaveData done [12:53:31]ExternCall_PrintAddStr [12:53:31]wPrintStart [12:53:31]Write to MH i2c: 01 00 00 8B 0E 99 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 07 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 07 00 8B 0E 00 00 00 00 00 FF 0F AE [12:53:31]RasterBufferAndPrint [12:53:31]line Счет N : (1)210774 [12:53:31]line ИНН: 02508201610067 [12:53:31]line Контрольно-Кассовый Чек [12:53:31]line ПРОДАЖА [12:53:31]line ТРК (МРК, ГНК) : 12 [12:53:31]line Товар: 2710124130 [12:53:31]line Аи-92-К-3 [12:53:31]line 7.480 * 66.90 [12:53:31]line = 500.41 [12:53:31]line НДС 12% НСП 1% [12:53:31]line > о реализуемом товаре [12:53:31]line ОКРУГЛЕНИЕ: -0.41 [12:53:31]line ИТОГО: 500.00 [12:53:31]line Внесено: 500.00 [12:53:31]line СДАЧА: 0.00 [12:53:31]line НСП 1% : 4.43 [12:53:31]line НДС 12% : 53.14 [12:53:31]line Наличными: 500.00 [12:53:31]line Безнал.: 0.00 [12:53:31]line Место: АЗС № 86 "Партнер Нефть" [12:53:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:53:31]line СНО: Общий режим [12:53:31]line Чек 172 23.10.2024 12:53 [12:53:31]line Смена: 462 ФФД: 1.0 [12:53:31]line ЗНМ: 0300000155 [12:53:31]line РНМ: 0000000000100030 [12:53:31]line Версия ККМ: 001 [12:53:31]line ФМ: 0000000000965340 [12:53:31]line ФД: 188714 [12:53:31]line ФПД: 32464931437716 [12:53:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125330&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188714&fm=32464931437716&tin=02508201610067®Number=0000000000100030&sum=50000 [12:53:31]written 0, free lines is 4095 [12:53:31]OFD Sender: Processing packet 188714 [packets to send 1062, broken 1061] [12:53:31]ProducePacketName [12:53:31]name=ofd_packets/00188714 [12:53:31]OFD Sender: To server: pG, [12:53:31]CommunicateWithHost lk.salyk.kg:30040 [12:53:31]ConnectInit lk.salyk.kg [12:53:31]Connected sock=9 [12:53:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE E5 07 01 7A 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CA F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E1 02 00 35 04 06 00 1D 86 D4 B4 BC 94 13 79 77 6C 83 12 98 4F [12:53:31]Write to MH i2c: 01 00 00 B6 0E C4 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 07 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 68 0C 3F [12:53:31]RasterBufferAndPrint [12:53:31]line [12:53:31]line [12:53:31]line [12:53:31]line [12:53:31]line [12:53:31]written 0, free lines is 3179 [12:53:31]MH_Cut [12:53:31]Write to MH i2c: D1 01 00 BD 0E 01 9D [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: D1 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: D1 01 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: D1 01 00 BD 0E 00 9C [12:53:31]Write to MH i2c: 01 00 00 BE 0E CC [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 11 98 47 00 AF 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E1 02 00 F4 03 04 00 B4 9B 18 67 B6 04 01 00 00 D1 AF A2 E9 0F AC 17 0C [12:53:31]CommunicateWithHost err = 0 [12:53:31]CheckOFDResponse [12:53:31]1017 (14) - 77093643461234 [12:53:31]1041 (16) - 0000000000965340 [12:53:31]1040 (4) - 188714 [12:53:31]1012 (4) - 23.10.2024 06:46 [12:53:31]1206 (1) - 0 [12:53:31]OFD Sender: Remove packet 188714 [12:53:31]ProducePacketName [12:53:31]name=ofd_packets/00188714 [12:53:31]NVStorageDeleteData [12:53:32]OFD Sender: No OFD packet to send [12:53:32]*** Cut start [12:53:32]*** Partial cut [12:53:32]*** CUTSNS_PIN = 1 [12:53:32]*** CUTSNS_PIN = 0 [12:53:33]*** Brake cut motor [12:53:33]Read from MH i2c: 01 [12:53:33]MH_I2C_Read... [12:53:33]*** Stop cut motor [12:53:33]*** Cut end [12:53:33]Read from MH i2c: 01 07 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [12:53:33]process_action close_receipt done [12:53:33]requested_data is exist [12:53:33]produce_requested_data [12:53:33]requested_item fm.sn is exist - process it [12:53:33]wFMCommunicate request_size=4 [12:53:33]MH_SAM_APDU [12:53:33]CAPDU: 80 11 00 00 [12:53:33]Write to MH i2c: E2 08 00 BF 0E 80 11 00 00 00 00 00 00 47 [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:33]Read from MH i2c: E2 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 17 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 17 00 BF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [12:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:53:33]wFMCommunicate OK [12:53:33]requested_item fd.num is exist - process it [12:53:33]SAM_PROTO_GetFieldsCounters [12:53:33]wFMCommunicate request_size=4 [12:53:33]MH_SAM_APDU [12:53:33]CAPDU: 80 13 00 00 [12:53:33]Write to MH i2c: E2 08 00 C0 0E 80 13 00 00 00 00 00 00 4A [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:33]Read from MH i2c: E2 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 62 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 62 00 C0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [12:53:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:33]wFMCommunicate OK [12:53:33]SAM_PROTO_GetFieldsCounters done [12:53:33]requested_item shift.num is exist - process it [12:53:33]requested_item shift.opened is exist - process it [12:53:33]req_shift_opened [12:53:33]FM_GetShiftState [12:53:33]SAM_PROTO_GetShiftState [12:53:33]wFMCommunicate request_size=4 [12:53:33]MH_SAM_APDU [12:53:33]CAPDU: 80 13 01 00 [12:53:33]Write to MH i2c: E2 08 00 C1 0E 80 13 01 00 00 00 00 00 4C [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:33]Read from MH i2c: E2 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 0E 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 0E 00 C1 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 34 [12:53:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:53:33]wFMCommunicate OK [12:53:33]SAM_PROTO_GetShiftState done [12:53:33]FM_GetShiftState done [12:53:33]req_shift_opened done [12:53:33]requested_item shift.open_date is exist - process it [12:53:33]req_shift_open_date [12:53:33]req_shift_open_date done [12:53:33]produce_requested_data done [12:53:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188714,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:53:33]process_action_free close_receipt [12:53:33]json_value_free [12:53:33]json_value_free done [12:53:33]process_json_proto returns [12:53:33]Send response to host [12:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188714,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:53:33]free response buf [12:53:33]execute_script done [12:53:33]execute_script returns [12:53:33]free content buf [12:53:33]Sock 7.Close socket [12:53:33]Sock 7.Thread stoped [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:46]accept exits with 10 [12:53:46]New connection [12:53:46]New thread 3067161956 created [12:53:46]Thread 3067018596 joined [12:53:46]Waiting for new connection... [12:53:46] Sock 10.Parse request [12:53:46]Sock 10.Check first char [12:53:46]Sock 10.First char is OK [12:53:46]request: POST /json_proto HTTP/1.0 [12:53:46]Method: POST [12:53:46]URL: /json_proto [12:53:46]Method is POST - this is cgi request [12:53:46]url: /json_proto [12:53:46]query_string will be loaded in cgi processing [12:53:46]execute_cgi json_proto POST (null) [12:53:46]execute_cgi path=json_proto method=POST [12:53:46]POST find Content-Length [12:53:46]Host: 172.17.42.131:8080 [12:53:46]Content-Length: 682 [12:53:46]Content-Type: application/json [12:53:46] [12:53:46]POST finish read [12:53:46]Found Content-Length = 682 [12:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:46]execute_script... [12:53:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:46]POST & json_proto [12:53:46]process_json_proto [12:53:46]json parsed OK: [12:53:46]protocol is kg_v1.0 [12:53:46]action value=close_receipt [12:53:46]process_action close_receipt [12:53:46]cmd_close_receipt [12:53:46]MH_GetDate [12:53:46]Write to MH i2c: F0 00 00 C2 0E BF [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: F0 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: F0 09 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: F0 09 00 C2 0E 00 DA F1 18 67 A0 18 CA 66 FA [12:53:46]GetLastDocTimeStamp 1729688010 [12:53:46]current date 1729688026 [12:53:46]FM_GetShiftState [12:53:46]SAM_PROTO_GetShiftState [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 13 01 00 [12:53:46]Write to MH i2c: E2 08 00 C3 0E 80 13 01 00 00 00 00 00 4E [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0E 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0E 00 C3 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 36 [12:53:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_GetShiftState done [12:53:46]FM_GetShiftState done [12:53:46]opened in 1729642525 [12:53:46]opened+sec_in_day 1729728925 [12:53:46]quantity*price = 100021 [12:53:46]sum+1 = 100023 [12:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 173 23.10.2024 12:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188715 ФПД: 101978732006971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125347&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188715&fm=101978732006971&tin=02508201610067®Number=0000000000100030&sum=100000 [12:53:47]StoreToDocumentArchive [12:53:47]shift 462 fd 188715 [12:53:47]save to /storage/0462/doc_00188715 [12:53:47]save last doc name /storage/0462/doc_00188715 to /storage/kkm_last_doc_name [12:53:47]save OK [12:53:47]Clear old archive folders... [12:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:47]tlvbuf is 01C002B0 [12:53:47]SAM_PROTO_ClearQueue [12:53:47]wFMCommunicate request_size=4 [12:53:47]MH_SAM_APDU [12:53:47]CAPDU: 80 09 00 00 [12:53:47]Write to MH i2c: E2 08 00 D0 0E 80 09 00 00 00 00 00 00 50 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:47]Read from MH i2c: E2 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 03 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 03 00 D0 0E 00 90 00 52 [12:53:47]RAPDU: 90 00 [12:53:47]wFMCommunicate OK [12:53:47]SAM_PROTO_ClearQueue done [12:53:47]KKMCreateOFDPacket [12:53:47]OFDProtocolAddRootSTLVToBuf [12:53:47]FM_MakeSignedData [12:53:47]FM_MakeSignedData [12:53:47]SAM_PROTO_SignData [12:53:47]wFMCommunicate request_size=4 [12:53:47]MH_SAM_APDU [12:53:47]CAPDU: 80 0D 01 02 [12:53:47]Write to MH i2c: E2 08 00 D1 0E 80 0D 01 02 00 00 00 00 58 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:47]OFD Sender: No OFD packet to send [12:53:47]Read from MH i2c: E2 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 03 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [12:53:47]RAPDU: 90 00 [12:53:47]wFMCommunicate OK [12:53:47]wFMCommunicate request_size=255 [12:53:47]MH_SAM_APDU [12:53:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DB F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E1 02 00 35 04 06 00 5C [12:53:47]Write to MH i2c: E2 02 01 D2 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DB F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E1 02 00 35 04 06 00 5C 00 00 19 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:47]Read from MH i2c: E2 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 03 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 03 00 D2 0E 00 90 00 54 [12:53:47]RAPDU: 90 00 [12:53:47]wFMCommunicate OK [12:53:47]wFMCommunicate request_size=10 [12:53:47]MH_SAM_APDU [12:53:47]CAPDU: 80 0D 02 02 05 BF C6 18 8E 3B [12:53:47]Write to MH i2c: E2 0D 00 D3 0E 80 0D 02 02 05 00 BF C6 18 8E 3B 00 00 CB [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:47]Read from MH i2c: E2 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 03 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [12:53:47]RAPDU: 90 00 [12:53:47]wFMCommunicate OK [12:53:47]wFMCommunicate request_size=4 [12:53:47]MH_SAM_APDU [12:53:47]CAPDU: 80 0D 03 02 [12:53:47]Write to MH i2c: E2 08 00 D4 0E 80 0D 03 02 00 00 00 00 5D [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:47]Read from MH i2c: E2 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 0B 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 0B 00 D4 0E 00 2B 9F 49 57 EA 54 77 91 90 00 0E [12:53:47]RAPDU: 2B 9F 49 57 EA 54 77 91 90 00 [12:53:47]wFMCommunicate OK [12:53:47]SAM_PROTO_SignData done [12:53:47]FM_MakeSignedData done [12:53:47]CreateOFDProtocolMessage [12:53:47]wFMCommunicate request_size=4 [12:53:47]MH_SAM_APDU [12:53:47]CAPDU: 80 11 00 00 [12:53:47]Write to MH i2c: E2 08 00 D5 0E 80 11 00 00 00 00 00 00 5D [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:47]Read from MH i2c: E2 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 17 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: E2 17 00 D5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [12:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:53:47]wFMCommunicate OK [12:53:47]CreateOFDProtocolMessage done [12:53:47]OFDSenderStorePacket 188715 [12:53:47]StoreOFDPacket docnum=188715 [12:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4C 0F 07 01 31 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DB F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E1 02 00 35 04 06 00 5C BF C6 18 8E 3B 2B 9F 49 57 EA 54 77 91 [12:53:47]CheckFolder [12:53:47]dirname=/storage/ofd_packets [12:53:47]CheckFolder done [12:53:47]ProducePacketName [12:53:47]name=ofd_packets/00188715 [12:53:47]NVStorageSaveData ofd_packets/00188715 [12:53:47]File name is /storage/ofd_packets/00188715 [12:53:47]Write 301 bytes [12:53:47]NVStorageSaveData done [12:53:47]OFDSenderStorePacket done [12:53:47]KKMCreateOFDPacket done [12:53:47]NVStorageSaveData kkm_last_timestamp [12:53:47]File name is /storage/kkm_last_timestamp [12:53:47]Write 4 bytes [12:53:47]NVStorageSaveData done [12:53:48]ExternCall_PrintAddStr [12:53:48]wPrintStart [12:53:48]Write to MH i2c: 01 00 00 D6 0E E4 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 07 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 07 00 D6 0E 00 00 00 00 00 FF 0F F9 [12:53:48]RasterBufferAndPrint [12:53:48]line Счет N : (1)210775 [12:53:48]line ИНН: 02508201610067 [12:53:48]line Контрольно-Кассовый Чек [12:53:48]line ПРОДАЖА [12:53:48]line ТРК (МРК, ГНК) : 23 [12:53:48]line Товар: 2710124500 [12:53:48]line Аи-95-К-3 [12:53:48]line 13.480 * 74.20 [12:53:48]line = 1000.22 [12:53:48]line НДС 12% НСП 1% [12:53:48]line > о реализуемом товаре [12:53:48]line ОКРУГЛЕНИЕ: -0.22 [12:53:48]line ИТОГО: 1000.00 [12:53:48]line Внесено: 1000.00 [12:53:48]line СДАЧА: 0.00 [12:53:48]line НСП 1% : 8.85 [12:53:48]line НДС 12% : 106.22 [12:53:48]line Наличными: 1000.00 [12:53:48]line Безнал.: 0.00 [12:53:48]line Место: АЗС № 86 "Партнер Нефть" [12:53:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:53:48]line СНО: Общий режим [12:53:48]line Чек 173 23.10.2024 12:53 [12:53:48]line Смена: 462 ФФД: 1.0 [12:53:48]line ЗНМ: 0300000155 [12:53:48]line РНМ: 0000000000100030 [12:53:48]line Версия ККМ: 001 [12:53:48]line ФМ: 0000000000965340 [12:53:48]line ФД: 188715 [12:53:48]line ФПД: 101978732006971 [12:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125347&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188715&fm=101978732006971&tin=02508201610067®Number=0000000000100030&sum=100000 [12:53:48]written 0, free lines is 4095 [12:53:48]OFD Sender: Processing packet 188715 [packets to send 1062, broken 1061] [12:53:48]ProducePacketName [12:53:48]name=ofd_packets/00188715 [12:53:48]OFD Sender: To server: pG, [12:53:48]CommunicateWithHost lk.salyk.kg:30040 [12:53:48]ConnectInit lk.salyk.kg [12:53:48]Connected sock=9 [12:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4C 0F 07 01 31 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DB F1 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E1 02 00 35 04 06 00 5C BF C6 18 8E 3B 2B 9F 49 57 EA 54 77 91 [12:53:48]Write to MH i2c: 01 00 00 01 0F 10 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 07 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 5B 0C 7E [12:53:48]RasterBufferAndPrint [12:53:48]line [12:53:48]line [12:53:48]line [12:53:48]line [12:53:48]line [12:53:48]written 0, free lines is 3167 [12:53:48]MH_Cut [12:53:48]Write to MH i2c: D1 01 00 08 0F 01 E9 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: D1 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: D1 01 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: D1 01 00 08 0F 00 E8 [12:53:48]Write to MH i2c: 01 00 00 09 0F 18 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 84 91 47 00 FF 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 36 35 33 34 30 10 04 04 00 2B E1 02 00 F4 03 04 00 C5 9B 18 67 B6 04 01 00 00 E9 1B 14 DB 02 8E CB 12 [12:53:48]CommunicateWithHost err = 0 [12:53:48]CheckOFDResponse [12:53:48]1017 (14) - 77093643461234 [12:53:48]1041 (16) - 0000000000965340 [12:53:48]1040 (4) - 188715 [12:53:48]1012 (4) - 23.10.2024 06:46 [12:53:48]1206 (1) - 0 [12:53:48]OFD Sender: Remove packet 188715 [12:53:48]ProducePacketName [12:53:48]name=ofd_packets/00188715 [12:53:48]NVStorageDeleteData [12:53:49]OFD Sender: No OFD packet to send [12:53:49]*** Cut start [12:53:49]*** Partial cut [12:53:49]*** CUTSNS_PIN = 1 [12:53:49]*** CUTSNS_PIN = 0 [12:53:50]*** Brake cut motor [12:53:50]Read from MH i2c: 01 [12:53:50]MH_I2C_Read... [12:53:50]*** Stop cut motor [12:53:50]*** Cut end [12:53:50]Read from MH i2c: 01 07 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: 01 07 00 09 0F 00 00 00 00 00 FF 0F 2D [12:53:50]process_action close_receipt done [12:53:50]requested_data is exist [12:53:50]produce_requested_data [12:53:50]requested_item fm.sn is exist - process it [12:53:50]wFMCommunicate request_size=4 [12:53:50]MH_SAM_APDU [12:53:50]CAPDU: 80 11 00 00 [12:53:50]Write to MH i2c: E2 08 00 0A 0F 80 11 00 00 00 00 00 00 93 [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:50]Read from MH i2c: E2 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 17 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 17 00 0A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [12:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:53:50]wFMCommunicate OK [12:53:50]requested_item fd.num is exist - process it [12:53:50]SAM_PROTO_GetFieldsCounters [12:53:50]wFMCommunicate request_size=4 [12:53:50]MH_SAM_APDU [12:53:50]CAPDU: 80 13 00 00 [12:53:50]Write to MH i2c: E2 08 00 0B 0F 80 13 00 00 00 00 00 00 96 [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:50]Read from MH i2c: E2 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 62 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 62 00 0B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [12:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:50]wFMCommunicate OK [12:53:50]SAM_PROTO_GetFieldsCounters done [12:53:50]requested_item shift.num is exist - process it [12:53:50]requested_item shift.opened is exist - process it [12:53:50]req_shift_opened [12:53:50]FM_GetShiftState [12:53:50]SAM_PROTO_GetShiftState [12:53:50]wFMCommunicate request_size=4 [12:53:50]MH_SAM_APDU [12:53:50]CAPDU: 80 13 01 00 [12:53:50]Write to MH i2c: E2 08 00 0C 0F 80 13 01 00 00 00 00 00 98 [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 [12:53:50]MH_I2C_Read... [12:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:50]Read from MH i2c: E2 0E 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 0E 00 0C 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 80 [12:53:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:53:50]wFMCommunicate OK [12:53:50]SAM_PROTO_GetShiftState done [12:53:50]FM_GetShiftState done [12:53:50]req_shift_opened done [12:53:50]requested_item shift.open_date is exist - process it [12:53:50]req_shift_open_date [12:53:50]req_shift_open_date done [12:53:50]produce_requested_data done [12:53:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188715,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:53:50]process_action_free close_receipt [12:53:50]json_value_free [12:53:50]json_value_free done [12:53:50]process_json_proto returns [12:53:50]Send response to host [12:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188715,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:53:50]free response buf [12:53:50]execute_script done [12:53:50]execute_script returns [12:53:50]free content buf [12:53:50]Sock 10.Close socket [12:53:50]Sock 10.Thread stoped [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:58]accept exits with 7 [12:55:58]New connection [12:55:58]New thread 3067018596 created [12:55:58]Thread 3067161956 joined [12:55:58]Waiting for new connection... [12:55:58] Sock 7.Parse request [12:55:58]Sock 7.Check first char [12:55:58]Sock 7.First char is OK [12:55:58]request: POST /json_proto HTTP/1.0 [12:55:58]Method: POST [12:55:58]URL: /json_proto [12:55:58]Method is POST - this is cgi request [12:55:58]url: /json_proto [12:55:58]query_string will be loaded in cgi processing [12:55:58]execute_cgi json_proto POST (null) [12:55:58]execute_cgi path=json_proto method=POST [12:55:58]POST find Content-Length [12:55:58]Host: 172.17.42.131:8080 [12:55:58]Content-Length: 679 [12:55:58]Content-Type: application/json [12:55:58] [12:55:58]POST finish read [12:55:58]Found Content-Length = 679 [12:55:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:58]execute_script... [12:55:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:58]POST & json_proto [12:55:58]process_json_proto [12:55:58]json parsed OK: [12:55:58]protocol is kg_v1.0 [12:55:58]action value=close_receipt [12:55:58]process_action close_receipt [12:55:58]cmd_close_receipt [12:55:58]MH_GetDate [12:55:58]Write to MH i2c: F0 00 00 0D 0F 0B [12:55:58]Write i2c OK [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: F0 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: F0 09 00 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: F0 09 00 0D 0F 00 5F F2 18 67 A0 18 CA 66 CC [12:55:58]GetLastDocTimeStamp 1729688027 [12:55:58]current date 1729688159 [12:55:58]FM_GetShiftState [12:55:58]SAM_PROTO_GetShiftState [12:55:58]wFMCommunicate request_size=4 [12:55:58]MH_SAM_APDU [12:55:58]CAPDU: 80 13 01 00 [12:55:58]Write to MH i2c: E2 08 00 0E 0F 80 13 01 00 00 00 00 00 9A [12:55:58]Write i2c OK [12:55:58]MH_I2C_Read... [12:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:58]Read from MH i2c: E2 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 0E 00 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 0E 00 0E 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 82 [12:55:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:55:58]wFMCommunicate OK [12:55:58]SAM_PROTO_GetShiftState done [12:55:58]FM_GetShiftState done [12:55:58]opened in 1729642525 [12:55:58]opened+sec_in_day 1729728925 [12:55:58]quantity*price = 110032 [12:55:58]sum+1 = 110034 [12:55:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 174 23.10.2024 12:55 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188716 ФПД: 244859287267888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125559&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188716&fm=244859287267888&tin=02508201610067®Number=0000000000100030&sum=110000 [12:55:59]StoreToDocumentArchive [12:55:59]shift 462 fd 188716 [12:55:59]save to /storage/0462/doc_00188716 [12:55:59]save last doc name /storage/0462/doc_00188716 to /storage/kkm_last_doc_name [12:55:59]save OK [12:55:59]Clear old archive folders... [12:55:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:55:59]tlvbuf is 01C36A90 [12:55:59]SAM_PROTO_ClearQueue [12:55:59]wFMCommunicate request_size=4 [12:55:59]MH_SAM_APDU [12:55:59]CAPDU: 80 09 00 00 [12:55:59]Write to MH i2c: E2 08 00 1B 0F 80 09 00 00 00 00 00 00 9C [12:55:59]Write i2c OK [12:55:59]MH_I2C_Read... [12:55:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:59]Read from MH i2c: E2 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 03 00 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 03 00 1B 0F 00 90 00 9E [12:55:59]RAPDU: 90 00 [12:55:59]wFMCommunicate OK [12:55:59]SAM_PROTO_ClearQueue done [12:55:59]KKMCreateOFDPacket [12:55:59]OFDProtocolAddRootSTLVToBuf [12:55:59]FM_MakeSignedData [12:55:59]FM_MakeSignedData [12:55:59]SAM_PROTO_SignData [12:55:59]wFMCommunicate request_size=4 [12:55:59]MH_SAM_APDU [12:55:59]CAPDU: 80 0D 01 02 [12:55:59]Write to MH i2c: E2 08 00 1C 0F 80 0D 01 02 00 00 00 00 A4 [12:55:59]Write i2c OK [12:55:59]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 1C 0F 00 90 00 9F [12:56:00]RAPDU: 90 00 [12:56:00]wFMCommunicate OK [12:56:00]wFMCommunicate request_size=255 [12:56:00]MH_SAM_APDU [12:56:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 5F F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E1 02 00 35 04 06 00 DE B2 BE D6 [12:56:00]Write to MH i2c: E2 02 01 1D 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 5F F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E1 02 00 35 04 06 00 DE B2 BE D6 00 00 C6 [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 1D 0F 00 90 00 A0 [12:56:00]RAPDU: 90 00 [12:56:00]wFMCommunicate OK [12:56:00]wFMCommunicate request_size=7 [12:56:00]MH_SAM_APDU [12:56:00]CAPDU: 80 0D 02 02 02 6A 30 [12:56:00]Write to MH i2c: E2 0A 00 1E 0F 80 0D 02 02 02 00 6A 30 00 00 45 [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 1E 0F 00 90 00 A1 [12:56:00]RAPDU: 90 00 [12:56:00]wFMCommunicate OK [12:56:00]wFMCommunicate request_size=4 [12:56:00]MH_SAM_APDU [12:56:00]CAPDU: 80 0D 03 02 [12:56:00]Write to MH i2c: E2 08 00 1F 0F 80 0D 03 02 00 00 00 00 A9 [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 0B 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 0B 00 1F 0F 00 6D C9 6A DB 50 CD 46 4E 90 00 D6 [12:56:00]RAPDU: 6D C9 6A DB 50 CD 46 4E 90 00 [12:56:00]wFMCommunicate OK [12:56:00]SAM_PROTO_SignData done [12:56:00]FM_MakeSignedData done [12:56:00]CreateOFDProtocolMessage [12:56:00]wFMCommunicate request_size=4 [12:56:00]MH_SAM_APDU [12:56:00]CAPDU: 80 11 00 00 [12:56:00]Write to MH i2c: E2 08 00 20 0F 80 11 00 00 00 00 00 00 A9 [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 17 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 17 00 20 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [12:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:56:00]wFMCommunicate OK [12:56:00]CreateOFDProtocolMessage done [12:56:00]OFDSenderStorePacket 188716 [12:56:00]StoreOFDPacket docnum=188716 [12:56:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9F FD 04 01 FC C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 5F F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E1 02 00 35 04 06 00 DE B2 BE D6 6A 30 6D C9 6A DB 50 CD 46 4E [12:56:00]CheckFolder [12:56:00]dirname=/storage/ofd_packets [12:56:00]CheckFolder done [12:56:00]ProducePacketName [12:56:00]name=ofd_packets/00188716 [12:56:00]NVStorageSaveData ofd_packets/00188716 [12:56:00]File name is /storage/ofd_packets/00188716 [12:56:00]Write 298 bytes [12:56:00]NVStorageSaveData done [12:56:00]OFDSenderStorePacket done [12:56:00]KKMCreateOFDPacket done [12:56:00]NVStorageSaveData kkm_last_timestamp [12:56:00]File name is /storage/kkm_last_timestamp [12:56:00]Write 4 bytes [12:56:00]NVStorageSaveData done [12:56:00]ExternCall_PrintAddStr [12:56:00]wPrintStart [12:56:00]Write to MH i2c: 01 00 00 21 0F 30 [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 07 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 07 00 21 0F 00 00 00 00 00 FF 0F 45 [12:56:00]RasterBufferAndPrint [12:56:00]line Счет N : (1)210776 [12:56:00]line ИНН: 02508201610067 [12:56:00]line Контрольно-Кассовый Чек [12:56:00]line ПРОДАЖА [12:56:00]line ТРК (МРК, ГНК) : 51 [12:56:00]line Товар: 2710194210 [12:56:00]line ДТ-К-5 [12:56:00]line 14.440 * 76.20 [12:56:00]line = 1100.33 [12:56:00]line НДС 12% НСП 1% [12:56:00]line > о реализуемом товаре [12:56:00]line ОКРУГЛЕНИЕ: -0.33 [12:56:00]line ИТОГО: 1100.00 [12:56:00]line Внесено: 1100.00 [12:56:00]line СДАЧА: 0.00 [12:56:00]line НСП 1% : 9.74 [12:56:00]line НДС 12% : 116.85 [12:56:00]line Наличными: 1100.00 [12:56:00]line Безнал.: 0.00 [12:56:00]line Место: АЗС № 86 "Партнер Нефть" [12:56:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:56:00]line СНО: Общий режим [12:56:00]line Чек 174 23.10.2024 12:55 [12:56:00]line Смена: 462 ФФД: 1.0 [12:56:00]line ЗНМ: 0300000155 [12:56:00]line РНМ: 0000000000100030 [12:56:00]line Версия ККМ: 001 [12:56:00]line ФМ: 0000000000965340 [12:56:00]line ФД: 188716 [12:56:00]line ФПД: 244859287267888 [12:56:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125559&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188716&fm=244859287267888&tin=02508201610067®Number=0000000000100030&sum=110000 [12:56:00]written 0, free lines is 4095 [12:56:00]OFD Sender: Processing packet 188716 [packets to send 1062, broken 1061] [12:56:00]ProducePacketName [12:56:00]name=ofd_packets/00188716 [12:56:00]OFD Sender: To server: pG, [12:56:00]CommunicateWithHost lk.salyk.kg:30040 [12:56:00]ConnectInit lk.salyk.kg [12:56:00]Connected sock=11 [12:56:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9F FD 04 01 FC C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 5F F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E1 02 00 35 04 06 00 DE B2 BE D6 6A 30 6D C9 6A DB 50 CD 46 4E [12:56:00]Write to MH i2c: 01 00 00 4C 0F 5B [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 07 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 52 0C C0 [12:56:00]RasterBufferAndPrint [12:56:00]line [12:56:00]line [12:56:00]line [12:56:00]line [12:56:00]line [12:56:00]written 0, free lines is 3158 [12:56:00]MH_Cut [12:56:00]Write to MH i2c: D1 01 00 53 0F 01 34 [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: D1 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: D1 01 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: D1 01 00 53 0F 00 33 [12:56:00]Write to MH i2c: 01 00 00 54 0F 63 [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 46 87 47 00 8F A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E1 02 00 F4 03 04 00 4A 9C 18 67 B6 04 01 00 00 B3 3C 80 74 77 31 B2 4E [12:56:01]CommunicateWithHost err = 0 [12:56:01]CheckOFDResponse [12:56:01]1017 (14) - 77093643461234 [12:56:01]1041 (16) - 0000000000965340 [12:56:01]1040 (4) - 188716 [12:56:01]1012 (4) - 23.10.2024 06:48 [12:56:01]1206 (1) - 0 [12:56:01]OFD Sender: Remove packet 188716 [12:56:01]ProducePacketName [12:56:01]name=ofd_packets/00188716 [12:56:01]NVStorageDeleteData [12:56:01]OFD Sender: No OFD packet to send [12:56:02]*** Cut start [12:56:02]*** Partial cut [12:56:02]*** CUTSNS_PIN = 1 [12:56:02]*** CUTSNS_PIN = 0 [12:56:02]*** Brake cut motor [12:56:02]Read from MH i2c: 01 [12:56:02]MH_I2C_Read... [12:56:02]*** Stop cut motor [12:56:02]*** Cut end [12:56:02]Read from MH i2c: 01 07 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 FF 0F 78 [12:56:02]process_action close_receipt done [12:56:02]requested_data is exist [12:56:02]produce_requested_data [12:56:02]requested_item fm.sn is exist - process it [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 11 00 00 [12:56:02]Write to MH i2c: E2 08 00 55 0F 80 11 00 00 00 00 00 00 DE [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 17 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 17 00 55 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [12:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:56:02]wFMCommunicate OK [12:56:02]requested_item fd.num is exist - process it [12:56:02]SAM_PROTO_GetFieldsCounters [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 13 00 00 [12:56:02]Write to MH i2c: E2 08 00 56 0F 80 13 00 00 00 00 00 00 E1 [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:03]Read from MH i2c: E2 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 62 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 62 00 56 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:56:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:03]wFMCommunicate OK [12:56:03]SAM_PROTO_GetFieldsCounters done [12:56:03]requested_item shift.num is exist - process it [12:56:03]requested_item shift.opened is exist - process it [12:56:03]req_shift_opened [12:56:03]FM_GetShiftState [12:56:03]SAM_PROTO_GetShiftState [12:56:03]wFMCommunicate request_size=4 [12:56:03]MH_SAM_APDU [12:56:03]CAPDU: 80 13 01 00 [12:56:03]Write to MH i2c: E2 08 00 57 0F 80 13 01 00 00 00 00 00 E3 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:03]Read from MH i2c: E2 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 0E 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 0E 00 57 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CB [12:56:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:56:03]wFMCommunicate OK [12:56:03]SAM_PROTO_GetShiftState done [12:56:03]FM_GetShiftState done [12:56:03]req_shift_opened done [12:56:03]requested_item shift.open_date is exist - process it [12:56:03]req_shift_open_date [12:56:03]req_shift_open_date done [12:56:03]produce_requested_data done [12:56:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188716,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:56:03]process_action_free close_receipt [12:56:03]json_value_free [12:56:03]json_value_free done [12:56:03]process_json_proto returns [12:56:03]Send response to host [12:56:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188716,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:56:03]free response buf [12:56:03]execute_script done [12:56:03]execute_script returns [12:56:03]free content buf [12:56:03]Sock 7.Close socket [12:56:03]Sock 7.Thread stoped [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:13]accept exits with 9 [12:56:13]New connection [12:56:13]New thread 3067161956 created [12:56:13]Thread 3067018596 joined [12:56:13]Waiting for new connection... [12:56:13] Sock 9.Parse request [12:56:13]Sock 9.Check first char [12:56:13]Sock 9.First char is OK [12:56:13]request: POST /json_proto HTTP/1.0 [12:56:13]Method: POST [12:56:13]URL: /json_proto [12:56:13]Method is POST - this is cgi request [12:56:13]url: /json_proto [12:56:13]query_string will be loaded in cgi processing [12:56:13]execute_cgi json_proto POST (null) [12:56:13]execute_cgi path=json_proto method=POST [12:56:13]POST find Content-Length [12:56:13]Host: 172.17.42.131:8080 [12:56:13]Content-Length: 677 [12:56:13]Content-Type: application/json [12:56:13] [12:56:13]POST finish read [12:56:13]Found Content-Length = 677 [12:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:13]execute_script... [12:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:13]POST & json_proto [12:56:13]process_json_proto [12:56:13]json parsed OK: [12:56:13]protocol is kg_v1.0 [12:56:13]action value=close_receipt [12:56:13]process_action close_receipt [12:56:13]cmd_close_receipt [12:56:13]MH_GetDate [12:56:13]Write to MH i2c: F0 00 00 58 0F 56 [12:56:13]Write i2c OK [12:56:13]MH_I2C_Read... [12:56:13]Read from MH i2c: F0 [12:56:13]MH_I2C_Read... [12:56:13]Read from MH i2c: F0 09 00 [12:56:13]MH_I2C_Read... [12:56:13]Read from MH i2c: F0 09 00 58 0F 00 6D F2 18 67 A0 18 CA 66 25 [12:56:13]GetLastDocTimeStamp 1729688159 [12:56:13]current date 1729688173 [12:56:13]FM_GetShiftState [12:56:13]SAM_PROTO_GetShiftState [12:56:13]wFMCommunicate request_size=4 [12:56:13]MH_SAM_APDU [12:56:13]CAPDU: 80 13 01 00 [12:56:13]Write to MH i2c: E2 08 00 59 0F 80 13 01 00 00 00 00 00 E5 [12:56:13]Write i2c OK [12:56:13]MH_I2C_Read... [12:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:13]Read from MH i2c: E2 [12:56:13]MH_I2C_Read... [12:56:13]Read from MH i2c: E2 0E 00 [12:56:13]MH_I2C_Read... [12:56:13]Read from MH i2c: E2 0E 00 59 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CD [12:56:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:56:13]wFMCommunicate OK [12:56:13]SAM_PROTO_GetShiftState done [12:56:13]FM_GetShiftState done [12:56:13]opened in 1729642525 [12:56:13]opened+sec_in_day 1729728925 [12:56:13]quantity*price = 32045 [12:56:13]sum+1 = 32046 [12:56:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 175 23.10.2024 12:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188717 ФПД: 150734895356660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125613&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188717&fm=150734895356660&tin=02508201610067®Number=0000000000100030&sum=32000 [12:56:14]StoreToDocumentArchive [12:56:14]shift 462 fd 188717 [12:56:14]save to /storage/0462/doc_00188717 [12:56:14]save last doc name /storage/0462/doc_00188717 to /storage/kkm_last_doc_name [12:56:14]save OK [12:56:14]Clear old archive folders... [12:56:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:14]tlvbuf is 01C36A60 [12:56:14]SAM_PROTO_ClearQueue [12:56:14]wFMCommunicate request_size=4 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 09 00 00 [12:56:14]Write to MH i2c: E2 08 00 66 0F 80 09 00 00 00 00 00 00 E7 [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 03 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [12:56:14]RAPDU: 90 00 [12:56:14]wFMCommunicate OK [12:56:14]SAM_PROTO_ClearQueue done [12:56:14]KKMCreateOFDPacket [12:56:14]OFDProtocolAddRootSTLVToBuf [12:56:14]FM_MakeSignedData [12:56:14]FM_MakeSignedData [12:56:14]SAM_PROTO_SignData [12:56:14]wFMCommunicate request_size=4 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 0D 01 02 [12:56:14]Write to MH i2c: E2 08 00 67 0F 80 0D 01 02 00 00 00 00 EF [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 03 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [12:56:14]RAPDU: 90 00 [12:56:14]wFMCommunicate OK [12:56:14]wFMCommunicate request_size=255 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 6D F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E1 02 00 35 04 06 00 89 [12:56:14]Write to MH i2c: E2 02 01 68 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 6D F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E1 02 00 35 04 06 00 89 00 00 EF [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 03 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 03 00 68 0F 00 90 00 EB [12:56:14]RAPDU: 90 00 [12:56:14]wFMCommunicate OK [12:56:14]wFMCommunicate request_size=10 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 0D 02 02 05 17 B3 E4 9A F4 [12:56:14]Write to MH i2c: E2 0D 00 69 0F 80 0D 02 02 05 00 17 B3 E4 9A F4 00 00 38 [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 03 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 03 00 69 0F 00 90 00 EC [12:56:14]RAPDU: 90 00 [12:56:14]wFMCommunicate OK [12:56:14]wFMCommunicate request_size=4 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 0D 03 02 [12:56:14]Write to MH i2c: E2 08 00 6A 0F 80 0D 03 02 00 00 00 00 F4 [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 0B 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 0B 00 6A 0F 00 C7 96 F3 BC 9A 67 B6 EE 90 00 A6 [12:56:14]RAPDU: C7 96 F3 BC 9A 67 B6 EE 90 00 [12:56:14]wFMCommunicate OK [12:56:14]SAM_PROTO_SignData done [12:56:14]FM_MakeSignedData done [12:56:14]CreateOFDProtocolMessage [12:56:14]wFMCommunicate request_size=4 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 11 00 00 [12:56:14]Write to MH i2c: E2 08 00 6B 0F 80 11 00 00 00 00 00 00 F4 [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 17 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 17 00 6B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [12:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:56:14]wFMCommunicate OK [12:56:14]CreateOFDProtocolMessage done [12:56:14]OFDSenderStorePacket 188717 [12:56:14]StoreOFDPacket docnum=188717 [12:56:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D E0 07 01 76 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 6D F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E1 02 00 35 04 06 00 89 17 B3 E4 9A F4 C7 96 F3 BC 9A 67 B6 EE [12:56:14]CheckFolder [12:56:14]dirname=/storage/ofd_packets [12:56:14]CheckFolder done [12:56:14]ProducePacketName [12:56:14]name=ofd_packets/00188717 [12:56:14]NVStorageSaveData ofd_packets/00188717 [12:56:14]File name is /storage/ofd_packets/00188717 [12:56:14]Write 301 bytes [12:56:14]NVStorageSaveData done [12:56:14]OFDSenderStorePacket done [12:56:14]KKMCreateOFDPacket done [12:56:14]NVStorageSaveData kkm_last_timestamp [12:56:14]File name is /storage/kkm_last_timestamp [12:56:14]Write 4 bytes [12:56:14]NVStorageSaveData done [12:56:14]ExternCall_PrintAddStr [12:56:14]wPrintStart [12:56:14]Write to MH i2c: 01 00 00 6C 0F 7B [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: 01 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: 01 07 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 FF 0F 90 [12:56:14]RasterBufferAndPrint [12:56:14]line Счет N : (1)210777 [12:56:14]line ИНН: 02508201610067 [12:56:14]line Контрольно-Кассовый Чек [12:56:14]line ПРОДАЖА [12:56:14]line ТРК (МРК, ГНК) : 42 [12:56:14]line Товар: 2710124130 [12:56:14]line Аи-92-К-3 [12:56:14]line 4.790 * 66.90 [12:56:14]line = 320.45 [12:56:14]line НДС 12% НСП 1% [12:56:14]line > о реализуемом товаре [12:56:14]line ОКРУГЛЕНИЕ: -0.45 [12:56:14]line ИТОГО: 320.00 [12:56:14]line Внесено: 320.00 [12:56:14]line СДАЧА: 0.00 [12:56:14]line НСП 1% : 2.84 [12:56:14]line НДС 12% : 34.03 [12:56:14]line Наличными: 320.00 [12:56:14]line Безнал.: 0.00 [12:56:14]line Место: АЗС № 86 "Партнер Нефть" [12:56:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:56:14]line СНО: Общий режим [12:56:14]line Чек 175 23.10.2024 12:56 [12:56:14]line Смена: 462 ФФД: 1.0 [12:56:14]line ЗНМ: 0300000155 [12:56:14]line РНМ: 0000000000100030 [12:56:14]line Версия ККМ: 001 [12:56:14]line ФМ: 0000000000965340 [12:56:14]line ФД: 188717 [12:56:14]line ФПД: 150734895356660 [12:56:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125613&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188717&fm=150734895356660&tin=02508201610067®Number=0000000000100030&sum=32000 [12:56:14]written 0, free lines is 4095 [12:56:14]OFD Sender: Processing packet 188717 [packets to send 1062, broken 1061] [12:56:14]ProducePacketName [12:56:14]name=ofd_packets/00188717 [12:56:14]OFD Sender: To server: pG, [12:56:14]CommunicateWithHost lk.salyk.kg:30040 [12:56:14]ConnectInit lk.salyk.kg [12:56:15]Connected sock=10 [12:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D E0 07 01 76 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 6D F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E1 02 00 35 04 06 00 89 17 B3 E4 9A F4 C7 96 F3 BC 9A 67 B6 EE [12:56:15]Write to MH i2c: 01 00 00 97 0F A6 [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: 01 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: 01 07 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 5D 0C 16 [12:56:15]RasterBufferAndPrint [12:56:15]line [12:56:15]line [12:56:15]line [12:56:15]line [12:56:15]line [12:56:15]written 0, free lines is 3168 [12:56:15]MH_Cut [12:56:15]Write to MH i2c: D1 01 00 9E 0F 01 7F [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: D1 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: D1 01 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: D1 01 00 9E 0F 00 7E [12:56:15]Write to MH i2c: 01 00 00 9F 0F AE [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D2 25 47 00 32 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E1 02 00 F4 03 04 00 58 9C 18 67 B6 04 01 00 00 65 13 69 41 9A C6 E5 57 [12:56:15]CommunicateWithHost err = 0 [12:56:15]CheckOFDResponse [12:56:15]1017 (14) - 77093643461234 [12:56:15]1041 (16) - 0000000000965340 [12:56:15]1040 (4) - 188717 [12:56:15]1012 (4) - 23.10.2024 06:48 [12:56:15]1206 (1) - 0 [12:56:15]OFD Sender: Remove packet 188717 [12:56:15]ProducePacketName [12:56:15]name=ofd_packets/00188717 [12:56:15]NVStorageDeleteData [12:56:15]OFD Sender: No OFD packet to send [12:56:16]*** Cut start [12:56:16]*** Partial cut [12:56:16]*** CUTSNS_PIN = 1 [12:56:16]*** CUTSNS_PIN = 0 [12:56:16]*** Brake cut motor [12:56:17]Read from MH i2c: 01 [12:56:17]MH_I2C_Read... [12:56:17]*** Stop cut motor [12:56:17]*** Cut end [12:56:17]Read from MH i2c: 01 07 00 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 FF 0F C3 [12:56:17]process_action close_receipt done [12:56:17]requested_data is exist [12:56:17]produce_requested_data [12:56:17]requested_item fm.sn is exist - process it [12:56:17]wFMCommunicate request_size=4 [12:56:17]MH_SAM_APDU [12:56:17]CAPDU: 80 11 00 00 [12:56:17]Write to MH i2c: E2 08 00 A0 0F 80 11 00 00 00 00 00 00 29 [12:56:17]Write i2c OK [12:56:17]MH_I2C_Read... [12:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:17]Read from MH i2c: E2 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: E2 17 00 [12:56:17]MH_I2C_Read... [12:56:17]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 36 35 33 34 30 90 00 77 [12:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:56:17]wFMCommunicate OK [12:56:17]requested_item fd.num is exist - process it [12:56:17]SAM_PROTO_GetFieldsCounters [12:56:17]wFMCommunicate request_size=4 [12:56:17]MH_SAM_APDU [12:56:17]CAPDU: 80 13 00 00 [12:56:17]Write to MH i2c: E2 08 00 A1 0F 80 13 00 00 00 00 00 00 2C [12:56:17]Write i2c OK [12:56:17]MH_I2C_Read... [12:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:17]Read from MH i2c: E2 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: E2 62 00 [12:56:17]MH_I2C_Read... [12:56:17]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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:17]wFMCommunicate OK [12:56:17]SAM_PROTO_GetFieldsCounters done [12:56:17]requested_item shift.num is exist - process it [12:56:17]requested_item shift.opened is exist - process it [12:56:17]req_shift_opened [12:56:17]FM_GetShiftState [12:56:17]SAM_PROTO_GetShiftState [12:56:17]wFMCommunicate request_size=4 [12:56:17]MH_SAM_APDU [12:56:17]CAPDU: 80 13 01 00 [12:56:17]Write to MH i2c: E2 08 00 A2 0F 80 13 01 00 00 00 00 00 2E [12:56:17]Write i2c OK [12:56:17]MH_I2C_Read... [12:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:17]Read from MH i2c: E2 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: E2 0E 00 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: E2 0E 00 A2 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 16 [12:56:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:56:17]wFMCommunicate OK [12:56:17]SAM_PROTO_GetShiftState done [12:56:17]FM_GetShiftState done [12:56:17]req_shift_opened done [12:56:17]requested_item shift.open_date is exist - process it [12:56:17]req_shift_open_date [12:56:17]req_shift_open_date done [12:56:17]produce_requested_data done [12:56:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188717,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:56:17]process_action_free close_receipt [12:56:17]json_value_free [12:56:17]json_value_free done [12:56:17]process_json_proto returns [12:56:17]Send response to host [12:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188717,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:56:17]free response buf [12:56:17]execute_script done [12:56:17]execute_script returns [12:56:17]free content buf [12:56:17]Sock 9.Close socket [12:56:17]Sock 9.Thread stoped [12:56:20]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:47]accept exits with 7 [12:56:47]New connection [12:56:47]New thread 3067018596 created [12:56:47]Thread 3067161956 joined [12:56:47]Waiting for new connection... [12:56:47] Sock 7.Parse request [12:56:47]Sock 7.Check first char [12:56:47]Sock 7.First char is OK [12:56:47]request: POST /json_proto HTTP/1.0 [12:56:47]Method: POST [12:56:47]URL: /json_proto [12:56:47]Method is POST - this is cgi request [12:56:47]url: /json_proto [12:56:47]query_string will be loaded in cgi processing [12:56:47]execute_cgi json_proto POST (null) [12:56:47]execute_cgi path=json_proto method=POST [12:56:47]POST find Content-Length [12:56:47]Host: 172.17.42.131:8080 [12:56:47]Content-Length: 683 [12:56:47]Content-Type: application/json [12:56:47] [12:56:47]POST finish read [12:56:47]Found Content-Length = 683 [12:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:47]execute_script... [12:56:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:47]POST & json_proto [12:56:47]process_json_proto [12:56:47]json parsed OK: [12:56:47]protocol is kg_v1.0 [12:56:47]action value=close_receipt [12:56:47]process_action close_receipt [12:56:47]cmd_close_receipt [12:56:47]MH_GetDate [12:56:47]Write to MH i2c: F0 00 00 A3 0F A1 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 09 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 09 00 A3 0F 00 90 F2 18 67 A0 18 CA 66 93 [12:56:47]GetLastDocTimeStamp 1729688173 [12:56:47]current date 1729688208 [12:56:47]FM_GetShiftState [12:56:47]SAM_PROTO_GetShiftState [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 13 01 00 [12:56:47]Write to MH i2c: E2 08 00 A4 0F 80 13 01 00 00 00 00 00 30 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0E 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0E 00 A4 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 18 [12:56:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:56:47]wFMCommunicate OK [12:56:47]SAM_PROTO_GetShiftState done [12:56:47]FM_GetShiftState done [12:56:47]opened in 1729642525 [12:56:47]opened+sec_in_day 1729728925 [12:56:47]quantity*price = 50025 [12:56:47]sum+1 = 50027 [12:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 176 23.10.2024 12:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188718 ФПД: 152728062312659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188718&fm=152728062312659&tin=02508201610067®Number=0000000000100030&sum=50000 [12:56:49]StoreToDocumentArchive [12:56:49]shift 462 fd 188718 [12:56:49]save to /storage/0462/doc_00188718 [12:56:49]save last doc name /storage/0462/doc_00188718 to /storage/kkm_last_doc_name [12:56:49]save OK [12:56:49]Clear old archive folders... [12:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:56:49]tlvbuf is 01BFF4F0 [12:56:49]SAM_PROTO_ClearQueue [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 09 00 00 [12:56:49]Write to MH i2c: E2 08 00 B1 0F 80 09 00 00 00 00 00 00 32 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_ClearQueue done [12:56:49]KKMCreateOFDPacket [12:56:49]OFDProtocolAddRootSTLVToBuf [12:56:49]FM_MakeSignedData [12:56:49]FM_MakeSignedData [12:56:49]SAM_PROTO_SignData [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 01 02 [12:56:49]Write to MH i2c: E2 08 00 B2 0F 80 0D 01 02 00 00 00 00 3A [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 B2 0F 00 90 00 35 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=255 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 90 F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E1 02 [12:56:49]Write to MH i2c: E2 02 01 B3 0F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 90 F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E1 02 00 00 D8 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 B3 0F 00 90 00 36 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=16 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8A E7 C5 E6 C0 D3 [12:56:49]Write to MH i2c: E2 13 00 B4 0F 80 0D 02 02 0B 00 00 35 04 06 00 8A E7 C5 E6 C0 D3 00 00 41 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 B4 0F 00 90 00 37 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 03 02 [12:56:49]Write to MH i2c: E2 08 00 B5 0F 80 0D 03 02 00 00 00 00 3F [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0B 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0B 00 B5 0F 00 4F 9D A0 11 03 38 9A 7C 90 00 2E [12:56:49]RAPDU: 4F 9D A0 11 03 38 9A 7C 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_SignData done [12:56:49]FM_MakeSignedData done [12:56:49]CreateOFDProtocolMessage [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 11 00 00 [12:56:49]Write to MH i2c: E2 08 00 B6 0F 80 11 00 00 00 00 00 00 3F [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 17 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 17 00 B6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [12:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:56:49]wFMCommunicate OK [12:56:49]CreateOFDProtocolMessage done [12:56:49]OFDSenderStorePacket 188718 [12:56:49]StoreOFDPacket docnum=188718 [12:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A0 AA 0D 01 02 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 90 F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E1 02 00 35 04 06 00 8A E7 C5 E6 C0 D3 4F 9D A0 11 03 38 9A 7C [12:56:49]CheckFolder [12:56:49]dirname=/storage/ofd_packets [12:56:49]CheckFolder done [12:56:49]ProducePacketName [12:56:49]name=ofd_packets/00188718 [12:56:49]NVStorageSaveData ofd_packets/00188718 [12:56:49]File name is /storage/ofd_packets/00188718 [12:56:49]Write 307 bytes [12:56:49]NVStorageSaveData done [12:56:49]OFDSenderStorePacket done [12:56:49]KKMCreateOFDPacket done [12:56:49]NVStorageSaveData kkm_last_timestamp [12:56:49]File name is /storage/kkm_last_timestamp [12:56:49]Write 4 bytes [12:56:49]NVStorageSaveData done [12:56:49]ExternCall_PrintAddStr [12:56:49]wPrintStart [12:56:49]Write to MH i2c: 01 00 00 B7 0F C6 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 B7 0F 00 00 00 00 00 FF 0F DB [12:56:49]RasterBufferAndPrint [12:56:49]line Счет N : (1)210778 [12:56:49]line ИНН: 02508201610067 [12:56:49]line Контрольно-Кассовый Чек [12:56:49]line ПРОДАЖА [12:56:49]line ТРК (МРК, ГНК) : 21 [12:56:49]line Товар: 2710194210 [12:56:49]line D-ENERGY ДТ-К-5 [12:56:49]line 6.480 * 77.20 [12:56:49]line = 500.26 [12:56:49]line НДС 12% НСП 1% [12:56:49]line > о реализуемом товаре [12:56:49]line ОКРУГЛЕНИЕ: -0.26 [12:56:49]line ИТОГО: 500.00 [12:56:49]line Внесено: 500.00 [12:56:49]line СДАЧА: 0.00 [12:56:49]line НСП 1% : 4.43 [12:56:49]line НДС 12% : 53.12 [12:56:49]line Наличными: 500.00 [12:56:49]line Безнал.: 0.00 [12:56:49]line Место: АЗС № 86 "Партнер Нефть" [12:56:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:56:49]line СНО: Общий режим [12:56:49]line Чек 176 23.10.2024 12:56 [12:56:49]line Смена: 462 ФФД: 1.0 [12:56:49]line ЗНМ: 0300000155 [12:56:49]line РНМ: 0000000000100030 [12:56:49]line Версия ККМ: 001 [12:56:49]line ФМ: 0000000000965340 [12:56:49]line ФД: 188718 [12:56:49]line ФПД: 152728062312659 [12:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188718&fm=152728062312659&tin=02508201610067®Number=0000000000100030&sum=50000 [12:56:49]written 0, free lines is 4095 [12:56:49]OFD Sender: Processing packet 188718 [packets to send 1062, broken 1061] [12:56:49]ProducePacketName [12:56:49]name=ofd_packets/00188718 [12:56:49]OFD Sender: To server: pG, [12:56:49]CommunicateWithHost lk.salyk.kg:30040 [12:56:49]ConnectInit lk.salyk.kg [12:56:49]Connected sock=10 [12:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A0 AA 0D 01 02 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 90 F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E1 02 00 35 04 06 00 8A E7 C5 E6 C0 D3 4F 9D A0 11 03 38 9A 7C [12:56:50]Write to MH i2c: 01 00 00 E2 0F F1 [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 07 00 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 59 0C 5D [12:56:50]RasterBufferAndPrint [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]written 0, free lines is 3165 [12:56:50]MH_Cut [12:56:50]Write to MH i2c: D1 01 00 E9 0F 01 CA [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 01 00 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 01 00 E9 0F 00 C9 [12:56:50]Write to MH i2c: 01 00 00 EA 0F F9 [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 81 C8 47 00 E6 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 36 35 33 34 30 10 04 04 00 2E E1 02 00 F4 03 04 00 7B 9C 18 67 B6 04 01 00 00 FB A0 E0 FF 00 7B 30 FF [12:56:50]CommunicateWithHost err = 0 [12:56:50]CheckOFDResponse [12:56:50]1017 (14) - 77093643461234 [12:56:50]1041 (16) - 0000000000965340 [12:56:50]1040 (4) - 188718 [12:56:50]1012 (4) - 23.10.2024 06:49 [12:56:50]1206 (1) - 0 [12:56:50]OFD Sender: Remove packet 188718 [12:56:50]ProducePacketName [12:56:50]name=ofd_packets/00188718 [12:56:50]NVStorageDeleteData [12:56:50]OFD Sender: No OFD packet to send [12:56:51]*** Cut start [12:56:51]*** Partial cut [12:56:51]*** CUTSNS_PIN = 1 [12:56:51]*** CUTSNS_PIN = 0 [12:56:51]*** Brake cut motor [12:56:52]Read from MH i2c: 01 [12:56:52]MH_I2C_Read... [12:56:52]*** Stop cut motor [12:56:52]*** Cut end [12:56:52]Read from MH i2c: 01 07 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: 01 07 00 EA 0F 00 00 00 00 00 FF 0F 0E [12:56:52]process_action close_receipt done [12:56:52]requested_data is exist [12:56:52]produce_requested_data [12:56:52]requested_item fm.sn is exist - process it [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 11 00 00 [12:56:52]Write to MH i2c: E2 08 00 EB 0F 80 11 00 00 00 00 00 00 74 [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 17 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 17 00 EB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [12:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:56:52]wFMCommunicate OK [12:56:52]requested_item fd.num is exist - process it [12:56:52]SAM_PROTO_GetFieldsCounters [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 13 00 00 [12:56:52]Write to MH i2c: E2 08 00 EC 0F 80 13 00 00 00 00 00 00 77 [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 62 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 62 00 EC 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [12:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:52]wFMCommunicate OK [12:56:52]SAM_PROTO_GetFieldsCounters done [12:56:52]requested_item shift.num is exist - process it [12:56:52]requested_item shift.opened is exist - process it [12:56:52]req_shift_opened [12:56:52]FM_GetShiftState [12:56:52]SAM_PROTO_GetShiftState [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 13 01 00 [12:56:52]Write to MH i2c: E2 08 00 ED 0F 80 13 01 00 00 00 00 00 79 [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 ED 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 61 [12:56:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:56:52]wFMCommunicate OK [12:56:52]SAM_PROTO_GetShiftState done [12:56:52]FM_GetShiftState done [12:56:52]req_shift_opened done [12:56:52]requested_item shift.open_date is exist - process it [12:56:52]req_shift_open_date [12:56:52]req_shift_open_date done [12:56:52]produce_requested_data done [12:56:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188718,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:56:52]process_action_free close_receipt [12:56:52]json_value_free [12:56:52]json_value_free done [12:56:52]process_json_proto returns [12:56:52]Send response to host [12:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188718,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:56:52]free response buf [12:56:52]execute_script done [12:56:52]execute_script returns [12:56:52]free content buf [12:56:52]Sock 7.Close socket [12:56:52]Sock 7.Thread stoped [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:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:19]accept exits with 9 [12:58:19]New connection [12:58:19]New thread 3067161956 created [12:58:19]Thread 3067018596 joined [12:58:19]Waiting for new connection... [12:58:19] Sock 9.Parse request [12:58:19]Sock 9.Check first char [12:58:19]Sock 9.First char is OK [12:58:19]request: POST /json_proto HTTP/1.0 [12:58:19]Method: POST [12:58:19]URL: /json_proto [12:58:19]Method is POST - this is cgi request [12:58:19]url: /json_proto [12:58:19]query_string will be loaded in cgi processing [12:58:19]execute_cgi json_proto POST (null) [12:58:19]execute_cgi path=json_proto method=POST [12:58:19]POST find Content-Length [12:58:19]Host: 172.17.42.131:8080 [12:58:19]Content-Length: 677 [12:58:19]Content-Type: application/json [12:58:19] [12:58:19]POST finish read [12:58:19]Found Content-Length = 677 [12:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:19]execute_script... [12:58:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:19]POST & json_proto [12:58:19]process_json_proto [12:58:19]json parsed OK: [12:58:19]protocol is kg_v1.0 [12:58:19]action value=close_receipt [12:58:19]process_action close_receipt [12:58:19]cmd_close_receipt [12:58:19]MH_GetDate [12:58:19]Write to MH i2c: F0 00 00 EE 0F EC [12:58:19]Write i2c OK [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: F0 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: F0 09 00 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: F0 09 00 EE 0F 00 EB F2 18 67 A0 18 CA 66 39 [12:58:19]GetLastDocTimeStamp 1729688208 [12:58:19]current date 1729688299 [12:58:19]FM_GetShiftState [12:58:19]SAM_PROTO_GetShiftState [12:58:19]wFMCommunicate request_size=4 [12:58:19]MH_SAM_APDU [12:58:19]CAPDU: 80 13 01 00 [12:58:19]Write to MH i2c: E2 08 00 EF 0F 80 13 01 00 00 00 00 00 7B [12:58:19]Write i2c OK [12:58:19]MH_I2C_Read... [12:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:19]Read from MH i2c: E2 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: E2 0E 00 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: E2 0E 00 EF 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 63 [12:58:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:58:19]wFMCommunicate OK [12:58:19]SAM_PROTO_GetShiftState done [12:58:19]FM_GetShiftState done [12:58:19]opened in 1729642525 [12:58:19]opened+sec_in_day 1729728925 [12:58:19]quantity*price = 60009 [12:58:19]sum+1 = 60010 [12:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 177 23.10.2024 12:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188719 ФПД: 117045254094400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125820&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188719&fm=117045254094400&tin=02508201610067®Number=0000000000100030&sum=60000 [12:58:20]StoreToDocumentArchive [12:58:20]shift 462 fd 188719 [12:58:20]save to /storage/0462/doc_00188719 [12:58:20]save last doc name /storage/0462/doc_00188719 to /storage/kkm_last_doc_name [12:58:20]save OK [12:58:20]Clear old archive folders... [12:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:20]tlvbuf is 01C36BC0 [12:58:20]SAM_PROTO_ClearQueue [12:58:20]wFMCommunicate request_size=4 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 09 00 00 [12:58:20]Write to MH i2c: E2 08 00 FC 0F 80 09 00 00 00 00 00 00 7D [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 FC 0F 00 90 00 7F [12:58:20]RAPDU: 90 00 [12:58:20]wFMCommunicate OK [12:58:20]SAM_PROTO_ClearQueue done [12:58:20]KKMCreateOFDPacket [12:58:20]OFDProtocolAddRootSTLVToBuf [12:58:20]FM_MakeSignedData [12:58:20]FM_MakeSignedData [12:58:20]SAM_PROTO_SignData [12:58:20]wFMCommunicate request_size=4 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 0D 01 02 [12:58:20]Write to MH i2c: E2 08 00 FD 0F 80 0D 01 02 00 00 00 00 85 [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 FD 0F 00 90 00 80 [12:58:20]RAPDU: 90 00 [12:58:20]wFMCommunicate OK [12:58:20]wFMCommunicate request_size=255 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EC F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E1 02 00 35 04 06 00 6A [12:58:20]Write to MH i2c: E2 02 01 FE 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EC F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E1 02 00 35 04 06 00 6A 00 00 2E [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 FE 0F 00 90 00 81 [12:58:20]RAPDU: 90 00 [12:58:20]wFMCommunicate OK [12:58:20]wFMCommunicate request_size=10 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 0D 02 02 05 73 B8 CA FE 40 [12:58:20]Write to MH i2c: E2 0D 00 FF 0F 80 0D 02 02 05 00 73 B8 CA FE 40 00 00 C5 [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 FF 0F 00 90 00 82 [12:58:20]RAPDU: 90 00 [12:58:20]wFMCommunicate OK [12:58:20]wFMCommunicate request_size=4 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 0D 03 02 [12:58:20]Write to MH i2c: E2 08 00 00 10 80 0D 03 02 00 00 00 00 8B [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 0B 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 0B 00 00 10 00 70 AB EE C3 75 D3 8F DB 90 00 0A [12:58:20]RAPDU: 70 AB EE C3 75 D3 8F DB 90 00 [12:58:20]wFMCommunicate OK [12:58:20]SAM_PROTO_SignData done [12:58:20]FM_MakeSignedData done [12:58:20]CreateOFDProtocolMessage [12:58:20]wFMCommunicate request_size=4 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 11 00 00 [12:58:20]Write to MH i2c: E2 08 00 01 10 80 11 00 00 00 00 00 00 8B [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 17 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 17 00 01 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [12:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:58:20]wFMCommunicate OK [12:58:20]CreateOFDProtocolMessage done [12:58:20]OFDSenderStorePacket 188719 [12:58:20]StoreOFDPacket docnum=188719 [12:58:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 6F 07 01 2E 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EC F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E1 02 00 35 04 06 00 6A 73 B8 CA FE 40 70 AB EE C3 75 D3 8F DB [12:58:20]CheckFolder [12:58:20]dirname=/storage/ofd_packets [12:58:20]CheckFolder done [12:58:20]ProducePacketName [12:58:20]name=ofd_packets/00188719 [12:58:20]NVStorageSaveData ofd_packets/00188719 [12:58:20]File name is /storage/ofd_packets/00188719 [12:58:20]Write 301 bytes [12:58:20]NVStorageSaveData done [12:58:20]OFDSenderStorePacket done [12:58:20]KKMCreateOFDPacket done [12:58:20]NVStorageSaveData kkm_last_timestamp [12:58:20]File name is /storage/kkm_last_timestamp [12:58:20]Write 4 bytes [12:58:20]NVStorageSaveData done [12:58:20]ExternCall_PrintAddStr [12:58:20]wPrintStart [12:58:20]Write to MH i2c: 01 00 00 02 10 12 [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: 01 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: 01 07 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: 01 07 00 02 10 00 00 00 00 00 FF 0F 27 [12:58:20]RasterBufferAndPrint [12:58:20]line Счет N : (1)210779 [12:58:20]line ИНН: 02508201610067 [12:58:20]line Контрольно-Кассовый Чек [12:58:20]line ПРОДАЖА [12:58:20]line ТРК (МРК, ГНК) : 32 [12:58:20]line Товар: 2710124130 [12:58:20]line Аи-92-К-3 [12:58:20]line 8.970 * 66.90 [12:58:20]line = 600.09 [12:58:20]line НДС 12% НСП 1% [12:58:20]line > о реализуемом товаре [12:58:20]line ОКРУГЛЕНИЕ: -0.09 [12:58:20]line ИТОГО: 600.00 [12:58:20]line Внесено: 600.00 [12:58:20]line СДАЧА: 0.00 [12:58:20]line НСП 1% : 5.31 [12:58:20]line НДС 12% : 63.73 [12:58:20]line Наличными: 600.00 [12:58:20]line Безнал.: 0.00 [12:58:20]line Место: АЗС № 86 "Партнер Нефть" [12:58:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:58:20]line СНО: Общий режим [12:58:20]line Чек 177 23.10.2024 12:58 [12:58:20]line Смена: 462 ФФД: 1.0 [12:58:20]line ЗНМ: 0300000155 [12:58:20]line РНМ: 0000000000100030 [12:58:20]line Версия ККМ: 001 [12:58:20]line ФМ: 0000000000965340 [12:58:20]line ФД: 188719 [12:58:20]line ФПД: 117045254094400 [12:58:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125820&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188719&fm=117045254094400&tin=02508201610067®Number=0000000000100030&sum=60000 [12:58:20]written 0, free lines is 4095 [12:58:21]OFD Sender: Processing packet 188719 [packets to send 1062, broken 1061] [12:58:21]ProducePacketName [12:58:21]name=ofd_packets/00188719 [12:58:21]OFD Sender: To server: pG, [12:58:21]CommunicateWithHost lk.salyk.kg:30040 [12:58:21]ConnectInit lk.salyk.kg [12:58:21]Connected sock=11 [12:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 6F 07 01 2E 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EC F2 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E1 02 00 35 04 06 00 6A 73 B8 CA FE 40 70 AB EE C3 75 D3 8F DB [12:58:21]Write to MH i2c: 01 00 00 2D 10 3D [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 07 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 59 0C A9 [12:58:21]RasterBufferAndPrint [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]written 0, free lines is 3165 [12:58:21]MH_Cut [12:58:21]Write to MH i2c: D1 01 00 34 10 01 16 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 01 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 01 00 34 10 00 15 [12:58:21]Write to MH i2c: 01 00 00 35 10 45 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 96 13 47 00 48 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E1 02 00 F4 03 04 00 D6 9C 18 67 B6 04 01 00 00 FA E0 E7 E1 BE 9B CE 20 [12:58:21]CommunicateWithHost err = 0 [12:58:21]CheckOFDResponse [12:58:21]1017 (14) - 77093643461234 [12:58:21]1041 (16) - 0000000000965340 [12:58:21]1040 (4) - 188719 [12:58:21]1012 (4) - 23.10.2024 06:51 [12:58:21]1206 (1) - 0 [12:58:21]OFD Sender: Remove packet 188719 [12:58:21]ProducePacketName [12:58:21]name=ofd_packets/00188719 [12:58:21]NVStorageDeleteData [12:58:22]OFD Sender: No OFD packet to send [12:58:22]*** Cut start [12:58:22]*** Partial cut [12:58:22]*** CUTSNS_PIN = 1 [12:58:22]*** CUTSNS_PIN = 0 [12:58:22]*** Brake cut motor [12:58:23]Read from MH i2c: 01 [12:58:23]MH_I2C_Read... [12:58:23]*** Stop cut motor [12:58:23]*** Cut end [12:58:23]Read from MH i2c: 01 07 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: 01 07 00 35 10 00 00 00 00 00 FF 0F 5A [12:58:23]process_action close_receipt done [12:58:23]requested_data is exist [12:58:23]produce_requested_data [12:58:23]requested_item fm.sn is exist - process it [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 11 00 00 [12:58:23]Write to MH i2c: E2 08 00 36 10 80 11 00 00 00 00 00 00 C0 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 17 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 17 00 36 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [12:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:58:23]wFMCommunicate OK [12:58:23]requested_item fd.num is exist - process it [12:58:23]SAM_PROTO_GetFieldsCounters [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 13 00 00 [12:58:23]Write to MH i2c: E2 08 00 37 10 80 13 00 00 00 00 00 00 C3 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 62 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 62 00 37 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [12:58:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:23]wFMCommunicate OK [12:58:23]SAM_PROTO_GetFieldsCounters done [12:58:23]requested_item shift.num is exist - process it [12:58:23]requested_item shift.opened is exist - process it [12:58:23]req_shift_opened [12:58:23]FM_GetShiftState [12:58:23]SAM_PROTO_GetShiftState [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 13 01 00 [12:58:23]Write to MH i2c: E2 08 00 38 10 80 13 01 00 00 00 00 00 C5 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 0E 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 0E 00 38 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AD [12:58:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [12:58:23]wFMCommunicate OK [12:58:23]SAM_PROTO_GetShiftState done [12:58:23]FM_GetShiftState done [12:58:23]req_shift_opened done [12:58:23]requested_item shift.open_date is exist - process it [12:58:23]req_shift_open_date [12:58:23]req_shift_open_date done [12:58:23]produce_requested_data done [12:58:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188719,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [12:58:23]process_action_free close_receipt [12:58:23]json_value_free [12:58:23]json_value_free done [12:58:23]process_json_proto returns [12:58:23]Send response to host [12:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188719,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [12:58:23]free response buf [12:58:23]execute_script done [12:58:23]execute_script returns [12:58:23]free content buf [12:58:23]Sock 9.Close socket [12:58:23]Sock 9.Thread stoped [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:08]accept exits with 7 [13:00:08]New connection [13:00:08]New thread 3067018596 created [13:00:08]Thread 3067161956 joined [13:00:08]Waiting for new connection... [13:00:08] Sock 7.Parse request [13:00:08]Sock 7.Check first char [13:00:08]Sock 7.First char is OK [13:00:08]request: POST /json_proto HTTP/1.0 [13:00:08]Method: POST [13:00:08]URL: /json_proto [13:00:08]Method is POST - this is cgi request [13:00:08]url: /json_proto [13:00:08]query_string will be loaded in cgi processing [13:00:08]execute_cgi json_proto POST (null) [13:00:08]execute_cgi path=json_proto method=POST [13:00:08]POST find Content-Length [13:00:08]Host: 172.17.42.131:8080 [13:00:08]Content-Length: 682 [13:00:08]Content-Type: application/json [13:00:08] [13:00:08]POST finish read [13:00:08]Found Content-Length = 682 [13:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:08]execute_script... [13:00:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:08]POST & json_proto [13:00:08]process_json_proto [13:00:08]json parsed OK: [13:00:08]protocol is kg_v1.0 [13:00:08]action value=close_receipt [13:00:08]process_action close_receipt [13:00:08]cmd_close_receipt [13:00:08]MH_GetDate [13:00:08]Write to MH i2c: F0 00 00 39 10 38 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: F0 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: F0 09 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: F0 09 00 39 10 00 59 F3 18 67 A0 18 CA 66 F4 [13:00:08]GetLastDocTimeStamp 1729688300 [13:00:08]current date 1729688409 [13:00:08]FM_GetShiftState [13:00:08]SAM_PROTO_GetShiftState [13:00:08]wFMCommunicate request_size=4 [13:00:08]MH_SAM_APDU [13:00:08]CAPDU: 80 13 01 00 [13:00:08]Write to MH i2c: E2 08 00 3A 10 80 13 01 00 00 00 00 00 C7 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:08]Read from MH i2c: E2 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 0E 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 0E 00 3A 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AF [13:00:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:00:08]wFMCommunicate OK [13:00:08]SAM_PROTO_GetShiftState done [13:00:08]FM_GetShiftState done [13:00:08]opened in 1729642525 [13:00:08]opened+sec_in_day 1729728925 [13:00:08]quantity*price = 100015 [13:00:08]sum+1 = 100017 [13:00:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 178 23.10.2024 13:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188720 ФПД: 176175212247210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130009&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188720&fm=176175212247210&tin=02508201610067®Number=0000000000100030&sum=100000 [13:00:09]StoreToDocumentArchive [13:00:09]shift 462 fd 188720 [13:00:09]save to /storage/0462/doc_00188720 [13:00:09]save last doc name /storage/0462/doc_00188720 to /storage/kkm_last_doc_name [13:00:09]save OK [13:00:09]Clear old archive folders... [13:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:09]tlvbuf is B6EF43D0 [13:00:09]SAM_PROTO_ClearQueue [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 09 00 00 [13:00:09]Write to MH i2c: E2 08 00 47 10 80 09 00 00 00 00 00 00 C9 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [13:00:09]RAPDU: 90 00 [13:00:09]wFMCommunicate OK [13:00:09]SAM_PROTO_ClearQueue done [13:00:09]KKMCreateOFDPacket [13:00:09]OFDProtocolAddRootSTLVToBuf [13:00:09]FM_MakeSignedData [13:00:09]FM_MakeSignedData [13:00:09]SAM_PROTO_SignData [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 0D 01 02 [13:00:09]Write to MH i2c: E2 08 00 48 10 80 0D 01 02 00 00 00 00 D1 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 48 10 00 90 00 CC [13:00:09]RAPDU: 90 00 [13:00:09]wFMCommunicate OK [13:00:09]wFMCommunicate request_size=255 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 59 F3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E1 02 00 35 04 06 00 A0 [13:00:09]Write to MH i2c: E2 02 01 49 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 59 F3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E1 02 00 35 04 06 00 A0 00 00 3D [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 49 10 00 90 00 CD [13:00:10]RAPDU: 90 00 [13:00:10]wFMCommunicate OK [13:00:10]wFMCommunicate request_size=10 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 0D 02 02 05 3A FC F1 B8 AA [13:00:10]Write to MH i2c: E2 0D 00 4A 10 80 0D 02 02 05 00 3A FC F1 B8 AA 00 00 67 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [13:00:10]RAPDU: 90 00 [13:00:10]wFMCommunicate OK [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 0D 03 02 [13:00:10]Write to MH i2c: E2 08 00 4B 10 80 0D 03 02 00 00 00 00 D6 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0B 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0B 00 4B 10 00 8C DC C5 53 29 B5 29 D3 90 00 31 [13:00:10]RAPDU: 8C DC C5 53 29 B5 29 D3 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_SignData done [13:00:10]FM_MakeSignedData done [13:00:10]CreateOFDProtocolMessage [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 11 00 00 [13:00:10]Write to MH i2c: E2 08 00 4C 10 80 11 00 00 00 00 00 00 D6 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 4C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [13:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:00:10]wFMCommunicate OK [13:00:10]CreateOFDProtocolMessage done [13:00:10]OFDSenderStorePacket 188720 [13:00:10]StoreOFDPacket docnum=188720 [13:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 5E 07 01 30 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 59 F3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E1 02 00 35 04 06 00 A0 3A FC F1 B8 AA 8C DC C5 53 29 B5 29 D3 [13:00:10]CheckFolder [13:00:10]dirname=/storage/ofd_packets [13:00:10]CheckFolder done [13:00:10]ProducePacketName [13:00:10]name=ofd_packets/00188720 [13:00:10]NVStorageSaveData ofd_packets/00188720 [13:00:10]File name is /storage/ofd_packets/00188720 [13:00:10]Write 301 bytes [13:00:10]NVStorageSaveData done [13:00:10]OFDSenderStorePacket done [13:00:10]KKMCreateOFDPacket done [13:00:10]NVStorageSaveData kkm_last_timestamp [13:00:10]File name is /storage/kkm_last_timestamp [13:00:10]Write 4 bytes [13:00:10]NVStorageSaveData done [13:00:10]ExternCall_PrintAddStr [13:00:10]wPrintStart [13:00:10]Write to MH i2c: 01 00 00 4D 10 5D [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 4D 10 00 00 00 00 00 FF 0F 72 [13:00:10]RasterBufferAndPrint [13:00:10]line Счет N : (1)210780 [13:00:10]line ИНН: 02508201610067 [13:00:10]line Контрольно-Кассовый Чек [13:00:10]line ПРОДАЖА [13:00:10]line ТРК (МРК, ГНК) : 22 [13:00:10]line Товар: 2710124130 [13:00:10]line Аи-92-К-3 [13:00:10]line 14.950 * 66.90 [13:00:10]line = 1000.16 [13:00:10]line НДС 12% НСП 1% [13:00:10]line > о реализуемом товаре [13:00:10]line ОКРУГЛЕНИЕ: -0.16 [13:00:10]line ИТОГО: 1000.00 [13:00:10]line Внесено: 1000.00 [13:00:10]line СДАЧА: 0.00 [13:00:10]line НСП 1% : 8.85 [13:00:10]line НДС 12% : 106.21 [13:00:10]line Наличными: 1000.00 [13:00:10]line Безнал.: 0.00 [13:00:10]line Место: АЗС № 86 "Партнер Нефть" [13:00:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:00:10]line СНО: Общий режим [13:00:10]line Чек 178 23.10.2024 13:00 [13:00:10]line Смена: 462 ФФД: 1.0 [13:00:10]line ЗНМ: 0300000155 [13:00:10]line РНМ: 0000000000100030 [13:00:10]line Версия ККМ: 001 [13:00:10]line ФМ: 0000000000965340 [13:00:10]line ФД: 188720 [13:00:10]line ФПД: 176175212247210 [13:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130009&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188720&fm=176175212247210&tin=02508201610067®Number=0000000000100030&sum=100000 [13:00:10]written 0, free lines is 4095 [13:00:10]OFD Sender: Processing packet 188720 [packets to send 1062, broken 1061] [13:00:10]ProducePacketName [13:00:10]name=ofd_packets/00188720 [13:00:10]OFD Sender: To server: pG, [13:00:10]CommunicateWithHost lk.salyk.kg:30040 [13:00:10]ConnectInit lk.salyk.kg [13:00:10]Connected sock=10 [13:00:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 5E 07 01 30 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 59 F3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E1 02 00 35 04 06 00 A0 3A FC F1 B8 AA 8C DC C5 53 29 B5 29 D3 [13:00:10]Write to MH i2c: 01 00 00 78 10 88 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 57 0C F2 [13:00:10]RasterBufferAndPrint [13:00:10]line [13:00:10]line [13:00:10]line [13:00:10]line [13:00:10]line [13:00:10]written 0, free lines is 3162 [13:00:10]MH_Cut [13:00:10]Write to MH i2c: D1 01 00 7F 10 01 61 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: D1 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: D1 01 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: D1 01 00 7F 10 00 60 [13:00:10]Write to MH i2c: 01 00 00 80 10 90 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C2 33 47 00 4F 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 36 35 33 34 30 10 04 04 00 30 E1 02 00 F4 03 04 00 44 9D 18 67 B6 04 01 00 00 32 AA 93 D3 11 64 9A B5 [13:00:11]CommunicateWithHost err = 0 [13:00:11]CheckOFDResponse [13:00:11]1017 (14) - 77093643461234 [13:00:11]1041 (16) - 0000000000965340 [13:00:11]1040 (4) - 188720 [13:00:11]1012 (4) - 23.10.2024 06:52 [13:00:11]1206 (1) - 0 [13:00:11]OFD Sender: Remove packet 188720 [13:00:11]ProducePacketName [13:00:11]name=ofd_packets/00188720 [13:00:11]NVStorageDeleteData [13:00:11]OFD Sender: No OFD packet to send [13:00:12]*** Cut start [13:00:12]*** Partial cut [13:00:12]*** CUTSNS_PIN = 1 [13:00:12]*** CUTSNS_PIN = 0 [13:00:12]*** Brake cut motor [13:00:12]Read from MH i2c: 01 [13:00:12]MH_I2C_Read... [13:00:12]*** Stop cut motor [13:00:12]*** Cut end [13:00:12]Read from MH i2c: 01 07 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: 01 07 00 80 10 00 00 00 00 00 FF 0F A5 [13:00:12]process_action close_receipt done [13:00:12]requested_data is exist [13:00:12]produce_requested_data [13:00:12]requested_item fm.sn is exist - process it [13:00:12]wFMCommunicate request_size=4 [13:00:12]MH_SAM_APDU [13:00:12]CAPDU: 80 11 00 00 [13:00:12]Write to MH i2c: E2 08 00 81 10 80 11 00 00 00 00 00 00 0B [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 17 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 17 00 81 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [13:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:00:12]wFMCommunicate OK [13:00:12]requested_item fd.num is exist - process it [13:00:12]SAM_PROTO_GetFieldsCounters [13:00:12]wFMCommunicate request_size=4 [13:00:12]MH_SAM_APDU [13:00:12]CAPDU: 80 13 00 00 [13:00:12]Write to MH i2c: E2 08 00 82 10 80 13 00 00 00 00 00 00 0E [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 62 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 62 00 82 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [13:00:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:12]wFMCommunicate OK [13:00:12]SAM_PROTO_GetFieldsCounters done [13:00:12]requested_item shift.num is exist - process it [13:00:12]requested_item shift.opened is exist - process it [13:00:12]req_shift_opened [13:00:12]FM_GetShiftState [13:00:12]SAM_PROTO_GetShiftState [13:00:12]wFMCommunicate request_size=4 [13:00:12]MH_SAM_APDU [13:00:12]CAPDU: 80 13 01 00 [13:00:12]Write to MH i2c: E2 08 00 83 10 80 13 01 00 00 00 00 00 10 [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 0E 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 0E 00 83 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F8 [13:00:12]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:00:12]wFMCommunicate OK [13:00:12]SAM_PROTO_GetShiftState done [13:00:12]FM_GetShiftState done [13:00:12]req_shift_opened done [13:00:12]requested_item shift.open_date is exist - process it [13:00:12]req_shift_open_date [13:00:12]req_shift_open_date done [13:00:12]produce_requested_data done [13:00:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188720,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:00:12]process_action_free close_receipt [13:00:12]json_value_free [13:00:12]json_value_free done [13:00:12]process_json_proto returns [13:00:12]Send response to host [13:00:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188720,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:00:12]free response buf [13:00:12]execute_script done [13:00:12]execute_script returns [13:00:12]free content buf [13:00:12]Sock 7.Close socket [13:00:12]Sock 7.Thread stoped [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:11]accept exits with 9 [13:02:11]New connection [13:02:11]New thread 3067161956 created [13:02:11]Thread 3067018596 joined [13:02:11]Waiting for new connection... [13:02:11] Sock 9.Parse request [13:02:11]Sock 9.Check first char [13:02:11]Sock 9.First char is OK [13:02:11]request: POST /json_proto HTTP/1.0 [13:02:11]Method: POST [13:02:11]URL: /json_proto [13:02:11]Method is POST - this is cgi request [13:02:11]url: /json_proto [13:02:11]query_string will be loaded in cgi processing [13:02:11]execute_cgi json_proto POST (null) [13:02:11]execute_cgi path=json_proto method=POST [13:02:11]POST find Content-Length [13:02:11]Host: 172.17.42.131:8080 [13:02:11]Content-Length: 679 [13:02:11]Content-Type: application/json [13:02:11] [13:02:11]POST finish read [13:02:11]Found Content-Length = 679 [13:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.780, "sum" : 988.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 988.00, "payments": [ { "type": 0, "sum" : 988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:11]execute_script... [13:02:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.780, "sum" : 988.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 988.00, "payments": [ { "type": 0, "sum" : 988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:11]POST & json_proto [13:02:11]process_json_proto [13:02:11]json parsed OK: [13:02:11]protocol is kg_v1.0 [13:02:11]action value=close_receipt [13:02:11]process_action close_receipt [13:02:11]cmd_close_receipt [13:02:11]MH_GetDate [13:02:11]Write to MH i2c: F0 00 00 84 10 83 [13:02:11]Write i2c OK [13:02:11]MH_I2C_Read... [13:02:11]Read from MH i2c: F0 [13:02:11]MH_I2C_Read... [13:02:11]Read from MH i2c: F0 09 00 [13:02:11]MH_I2C_Read... [13:02:11]Read from MH i2c: F0 09 00 84 10 00 D3 F3 18 67 A0 18 CA 66 B9 [13:02:11]GetLastDocTimeStamp 1729688409 [13:02:11]current date 1729688531 [13:02:11]FM_GetShiftState [13:02:11]SAM_PROTO_GetShiftState [13:02:11]wFMCommunicate request_size=4 [13:02:11]MH_SAM_APDU [13:02:11]CAPDU: 80 13 01 00 [13:02:11]Write to MH i2c: E2 08 00 85 10 80 13 01 00 00 00 00 00 12 [13:02:11]Write i2c OK [13:02:11]MH_I2C_Read... [13:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:11]Read from MH i2c: E2 [13:02:11]MH_I2C_Read... [13:02:11]Read from MH i2c: E2 0E 00 [13:02:11]MH_I2C_Read... [13:02:11]Read from MH i2c: E2 0E 00 85 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FA [13:02:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:02:11]wFMCommunicate OK [13:02:11]SAM_PROTO_GetShiftState done [13:02:11]FM_GetShiftState done [13:02:11]opened in 1729642525 [13:02:11]opened+sec_in_day 1729728925 [13:02:11]quantity*price = 98878 [13:02:11]sum+1 = 98879 [13:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.78 ИТОГО: 988.00 Внесено: 1000.00 СДАЧА: 12.00 НСП 1% : 8.75 НДС 12% : 105.00 Наличными: 988.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 179 23.10.2024 13:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188721 ФПД: 222818210560242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130212&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188721&fm=222818210560242&tin=02508201610067®Number=0000000000100030&sum=98800 [13:02:12]StoreToDocumentArchive [13:02:12]shift 462 fd 188721 [13:02:12]save to /storage/0462/doc_00188721 [13:02:12]save last doc name /storage/0462/doc_00188721 to /storage/kkm_last_doc_name [13:02:12]save OK [13:02:12]Clear old archive folders... [13:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:12]tlvbuf is 01BFFA40 [13:02:12]SAM_PROTO_ClearQueue [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 09 00 00 [13:02:12]Write to MH i2c: E2 08 00 92 10 80 09 00 00 00 00 00 00 14 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]SAM_PROTO_ClearQueue done [13:02:12]KKMCreateOFDPacket [13:02:12]OFDProtocolAddRootSTLVToBuf [13:02:12]FM_MakeSignedData [13:02:12]FM_MakeSignedData [13:02:12]SAM_PROTO_SignData [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 01 02 [13:02:12]Write to MH i2c: E2 08 00 93 10 80 0D 01 02 00 00 00 00 1C [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=255 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 D4 F3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E1 02 00 35 04 06 00 CA [13:02:12]Write to MH i2c: E2 02 01 94 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 D4 F3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E1 02 00 35 04 06 00 CA 00 00 21 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=10 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 02 02 05 A6 E8 4A 38 F2 [13:02:12]Write to MH i2c: E2 0D 00 95 10 80 0D 02 02 05 00 A6 E8 4A 38 F2 00 00 2B [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 03 02 [13:02:12]Write to MH i2c: E2 08 00 96 10 80 0D 03 02 00 00 00 00 21 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 0B 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 0B 00 96 10 00 3E 11 7B 01 1E AB B7 B5 90 00 22 [13:02:12]RAPDU: 3E 11 7B 01 1E AB B7 B5 90 00 [13:02:12]wFMCommunicate OK [13:02:12]SAM_PROTO_SignData done [13:02:12]FM_MakeSignedData done [13:02:12]CreateOFDProtocolMessage [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 11 00 00 [13:02:12]Write to MH i2c: E2 08 00 97 10 80 11 00 00 00 00 00 00 21 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:12]Read from MH i2c: E2 17 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 17 00 97 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [13:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:02:12]wFMCommunicate OK [13:02:12]CreateOFDProtocolMessage done [13:02:12]OFDSenderStorePacket 188721 [13:02:12]StoreOFDPacket docnum=188721 [13:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EA 95 07 01 55 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 D4 F3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E1 02 00 35 04 06 00 CA A6 E8 4A 38 F2 3E 11 7B 01 1E AB B7 B5 [13:02:12]CheckFolder [13:02:12]dirname=/storage/ofd_packets [13:02:12]CheckFolder done [13:02:12]ProducePacketName [13:02:12]name=ofd_packets/00188721 [13:02:12]NVStorageSaveData ofd_packets/00188721 [13:02:12]File name is /storage/ofd_packets/00188721 [13:02:12]Write 301 bytes [13:02:12]NVStorageSaveData done [13:02:12]OFDSenderStorePacket done [13:02:12]KKMCreateOFDPacket done [13:02:12]NVStorageSaveData kkm_last_timestamp [13:02:12]File name is /storage/kkm_last_timestamp [13:02:12]Write 4 bytes [13:02:12]NVStorageSaveData done [13:02:12]ExternCall_PrintAddStr [13:02:12]wPrintStart [13:02:12]Write to MH i2c: 01 00 00 98 10 A8 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 98 10 00 00 00 00 00 FF 0F BD [13:02:12]RasterBufferAndPrint [13:02:12]line Счет N : (1)210781 [13:02:12]line ИНН: 02508201610067 [13:02:12]line Контрольно-Кассовый Чек [13:02:12]line ПРОДАЖА [13:02:12]line ТРК (МРК, ГНК) : 42 [13:02:12]line Товар: 2710124130 [13:02:12]line Аи-92-К-3 [13:02:12]line 14.780 * 66.90 [13:02:12]line = 988.78 [13:02:12]line НДС 12% НСП 1% [13:02:12]line > о реализуемом товаре [13:02:12]line ОКРУГЛЕНИЕ: -0.78 [13:02:12]line ИТОГО: 988.00 [13:02:12]line Внесено: 1000.00 [13:02:12]line СДАЧА: 12.00 [13:02:12]line НСП 1% : 8.75 [13:02:12]line НДС 12% : 105.00 [13:02:12]line Наличными: 988.00 [13:02:12]line Безнал.: 0.00 [13:02:12]line Место: АЗС № 86 "Партнер Нефть" [13:02:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:02:12]line СНО: Общий режим [13:02:12]line Чек 179 23.10.2024 13:02 [13:02:12]line Смена: 462 ФФД: 1.0 [13:02:12]line ЗНМ: 0300000155 [13:02:12]line РНМ: 0000000000100030 [13:02:12]line Версия ККМ: 001 [13:02:12]line ФМ: 0000000000965340 [13:02:12]line ФД: 188721 [13:02:12]line ФПД: 222818210560242 [13:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130212&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188721&fm=222818210560242&tin=02508201610067®Number=0000000000100030&sum=98800 [13:02:12]written 0, free lines is 4095 [13:02:13]OFD Sender: Processing packet 188721 [packets to send 1062, broken 1061] [13:02:13]ProducePacketName [13:02:13]name=ofd_packets/00188721 [13:02:13]OFD Sender: To server: pG, [13:02:13]CommunicateWithHost lk.salyk.kg:30040 [13:02:13]ConnectInit lk.salyk.kg [13:02:13]Connected sock=10 [13:02:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EA 95 07 01 55 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 D4 F3 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E1 02 00 35 04 06 00 CA A6 E8 4A 38 F2 3E 11 7B 01 1E AB B7 B5 [13:02:13]Write to MH i2c: 01 00 00 C3 10 D3 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 5C 0C 42 [13:02:13]RasterBufferAndPrint [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]written 0, free lines is 3168 [13:02:13]MH_Cut [13:02:13]Write to MH i2c: D1 01 00 CA 10 01 AC [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 01 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 01 00 CA 10 00 AB [13:02:13]Write to MH i2c: 01 00 00 CB 10 DB [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 35 80 47 00 BF B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E1 02 00 F4 03 04 00 BE 9D 18 67 B6 04 01 00 00 AF 66 F2 8F F9 A6 D0 17 [13:02:13]CommunicateWithHost err = 0 [13:02:13]CheckOFDResponse [13:02:13]1017 (14) - 77093643461234 [13:02:13]1041 (16) - 0000000000965340 [13:02:13]1040 (4) - 188721 [13:02:13]1012 (4) - 23.10.2024 06:54 [13:02:13]1206 (1) - 0 [13:02:13]OFD Sender: Remove packet 188721 [13:02:13]ProducePacketName [13:02:13]name=ofd_packets/00188721 [13:02:13]NVStorageDeleteData [13:02:14]OFD Sender: No OFD packet to send [13:02:14]*** Cut start [13:02:14]*** Partial cut [13:02:14]*** CUTSNS_PIN = 1 [13:02:14]*** CUTSNS_PIN = 0 [13:02:14]*** Brake cut motor [13:02:15]Read from MH i2c: 01 [13:02:15]MH_I2C_Read... [13:02:15]*** Stop cut motor [13:02:15]*** Cut end [13:02:15]Read from MH i2c: 01 07 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: 01 07 00 CB 10 00 00 00 00 00 FF 0F F0 [13:02:15]process_action close_receipt done [13:02:15]requested_data is exist [13:02:15]produce_requested_data [13:02:15]requested_item fm.sn is exist - process it [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 11 00 00 [13:02:15]Write to MH i2c: E2 08 00 CC 10 80 11 00 00 00 00 00 00 56 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 17 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 17 00 CC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [13:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:02:15]wFMCommunicate OK [13:02:15]requested_item fd.num is exist - process it [13:02:15]SAM_PROTO_GetFieldsCounters [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 13 00 00 [13:02:15]Write to MH i2c: E2 08 00 CD 10 80 13 00 00 00 00 00 00 59 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 62 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 62 00 CD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [13:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:15]wFMCommunicate OK [13:02:15]SAM_PROTO_GetFieldsCounters done [13:02:15]requested_item shift.num is exist - process it [13:02:15]requested_item shift.opened is exist - process it [13:02:15]req_shift_opened [13:02:15]FM_GetShiftState [13:02:15]SAM_PROTO_GetShiftState [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 13 01 00 [13:02:15]Write to MH i2c: E2 08 00 CE 10 80 13 01 00 00 00 00 00 5B [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 0E 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 0E 00 CE 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 43 [13:02:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:02:15]wFMCommunicate OK [13:02:15]SAM_PROTO_GetShiftState done [13:02:15]FM_GetShiftState done [13:02:15]req_shift_opened done [13:02:15]requested_item shift.open_date is exist - process it [13:02:15]req_shift_open_date [13:02:15]req_shift_open_date done [13:02:15]produce_requested_data done [13:02:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188721,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:02:15]process_action_free close_receipt [13:02:15]json_value_free [13:02:15]json_value_free done [13:02:15]process_json_proto returns [13:02:15]Send response to host [13:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188721,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:02:15]free response buf [13:02:15]execute_script done [13:02:15]execute_script returns [13:02:15]free content buf [13:02:15]Sock 9.Close socket [13:02:15]Sock 9.Thread stoped [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]accept exits with 7 [13:03:24]New connection [13:03:24]New thread 3067018596 created [13:03:24]Thread 3067161956 joined [13:03:24]Waiting for new connection... [13:03:24] Sock 7.Parse request [13:03:24]Sock 7.Check first char [13:03:24]Sock 7.First char is OK [13:03:24]request: POST /json_proto HTTP/1.0 [13:03:24]Method: POST [13:03:24]URL: /json_proto [13:03:24]Method is POST - this is cgi request [13:03:24]url: /json_proto [13:03:24]query_string will be loaded in cgi processing [13:03:24]execute_cgi json_proto POST (null) [13:03:24]execute_cgi path=json_proto method=POST [13:03:24]POST find Content-Length [13:03:24]Host: 172.17.42.131:8080 [13:03:24]Content-Length: 682 [13:03:24]Content-Type: application/json [13:03:24] [13:03:24]POST finish read [13:03:24]Found Content-Length = 682 [13:03:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:24]execute_script... [13:03:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:24]POST & json_proto [13:03:24]process_json_proto [13:03:24]json parsed OK: [13:03:24]protocol is kg_v1.0 [13:03:24]action value=close_receipt [13:03:24]process_action close_receipt [13:03:24]cmd_close_receipt [13:03:24]MH_GetDate [13:03:24]Write to MH i2c: F0 00 00 CF 10 CE [13:03:24]Write i2c OK [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 09 00 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 09 00 CF 10 00 1D F4 18 67 A0 18 CA 66 4F [13:03:24]GetLastDocTimeStamp 1729688532 [13:03:24]current date 1729688605 [13:03:24]FM_GetShiftState [13:03:24]SAM_PROTO_GetShiftState [13:03:24]wFMCommunicate request_size=4 [13:03:24]MH_SAM_APDU [13:03:24]CAPDU: 80 13 01 00 [13:03:24]Write to MH i2c: E2 08 00 D0 10 80 13 01 00 00 00 00 00 5D [13:03:24]Write i2c OK [13:03:24]MH_I2C_Read... [13:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:24]Read from MH i2c: E2 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: E2 0E 00 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: E2 0E 00 D0 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 45 [13:03:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:03:24]wFMCommunicate OK [13:03:24]SAM_PROTO_GetShiftState done [13:03:24]FM_GetShiftState done [13:03:24]opened in 1729642525 [13:03:24]opened+sec_in_day 1729728925 [13:03:24]quantity*price = 100015 [13:03:24]sum+1 = 100017 [13:03:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 180 23.10.2024 13:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188722 ФПД: 158044030428778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130325&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188722&fm=158044030428778&tin=02508201610067®Number=0000000000100030&sum=100000 [13:03:25]StoreToDocumentArchive [13:03:25]shift 462 fd 188722 [13:03:25]save to /storage/0462/doc_00188722 [13:03:25]save last doc name /storage/0462/doc_00188722 to /storage/kkm_last_doc_name [13:03:25]save OK [13:03:25]Clear old archive folders... [13:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:25]tlvbuf is B6EF4650 [13:03:25]SAM_PROTO_ClearQueue [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 09 00 00 [13:03:25]Write to MH i2c: E2 08 00 DD 10 80 09 00 00 00 00 00 00 5F [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]SAM_PROTO_ClearQueue done [13:03:25]KKMCreateOFDPacket [13:03:25]OFDProtocolAddRootSTLVToBuf [13:03:25]FM_MakeSignedData [13:03:25]FM_MakeSignedData [13:03:25]SAM_PROTO_SignData [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 01 02 [13:03:25]Write to MH i2c: E2 08 00 DE 10 80 0D 01 02 00 00 00 00 67 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]wFMCommunicate request_size=255 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 1D F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E1 02 00 35 04 06 00 8F [13:03:25]Write to MH i2c: E2 02 01 DF 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 1D F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E1 02 00 35 04 06 00 8F 00 00 8B [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 DF 10 00 90 00 63 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]wFMCommunicate request_size=10 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 02 02 05 BD 7E 4A E6 6A [13:03:25]Write to MH i2c: E2 0D 00 E0 10 80 0D 02 02 05 00 BD 7E 4A E6 6A 00 00 49 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 E0 10 00 90 00 64 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 03 02 [13:03:25]Write to MH i2c: E2 08 00 E1 10 80 0D 03 02 00 00 00 00 6C [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 0B 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 0B 00 E1 10 00 9F 13 B5 A7 E5 B2 39 9E 90 00 E9 [13:03:25]RAPDU: 9F 13 B5 A7 E5 B2 39 9E 90 00 [13:03:25]wFMCommunicate OK [13:03:25]SAM_PROTO_SignData done [13:03:25]FM_MakeSignedData done [13:03:25]CreateOFDProtocolMessage [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 11 00 00 [13:03:25]Write to MH i2c: E2 08 00 E2 10 80 11 00 00 00 00 00 00 6C [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 17 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 17 00 E2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [13:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:03:26]wFMCommunicate OK [13:03:26]CreateOFDProtocolMessage done [13:03:26]OFDSenderStorePacket 188722 [13:03:26]StoreOFDPacket docnum=188722 [13:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D 32 07 01 7F 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 1D F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E1 02 00 35 04 06 00 8F BD 7E 4A E6 6A 9F 13 B5 A7 E5 B2 39 9E [13:03:26]CheckFolder [13:03:26]dirname=/storage/ofd_packets [13:03:26]CheckFolder done [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00188722 [13:03:26]NVStorageSaveData ofd_packets/00188722 [13:03:26]File name is /storage/ofd_packets/00188722 [13:03:26]Write 301 bytes [13:03:26]NVStorageSaveData done [13:03:26]OFDSenderStorePacket done [13:03:26]KKMCreateOFDPacket done [13:03:26]NVStorageSaveData kkm_last_timestamp [13:03:26]File name is /storage/kkm_last_timestamp [13:03:26]Write 4 bytes [13:03:26]NVStorageSaveData done [13:03:26]ExternCall_PrintAddStr [13:03:26]wPrintStart [13:03:26]Write to MH i2c: 01 00 00 E3 10 F3 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 E3 10 00 00 00 00 00 FF 0F 08 [13:03:26]RasterBufferAndPrint [13:03:26]line Счет N : (1)210782 [13:03:26]line ИНН: 02508201610067 [13:03:26]line Контрольно-Кассовый Чек [13:03:26]line ПРОДАЖА [13:03:26]line ТРК (МРК, ГНК) : 22 [13:03:26]line Товар: 2710124130 [13:03:26]line Аи-92-К-3 [13:03:26]line 14.950 * 66.90 [13:03:26]line = 1000.16 [13:03:26]line НДС 12% НСП 1% [13:03:26]line > о реализуемом товаре [13:03:26]line ОКРУГЛЕНИЕ: -0.16 [13:03:26]line ИТОГО: 1000.00 [13:03:26]line Внесено: 1000.00 [13:03:26]line СДАЧА: 0.00 [13:03:26]line НСП 1% : 8.85 [13:03:26]line НДС 12% : 106.21 [13:03:26]line Наличными: 1000.00 [13:03:26]line Безнал.: 0.00 [13:03:26]line Место: АЗС № 86 "Партнер Нефть" [13:03:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:03:26]line СНО: Общий режим [13:03:26]line Чек 180 23.10.2024 13:03 [13:03:26]line Смена: 462 ФФД: 1.0 [13:03:26]line ЗНМ: 0300000155 [13:03:26]line РНМ: 0000000000100030 [13:03:26]line Версия ККМ: 001 [13:03:26]line ФМ: 0000000000965340 [13:03:26]line ФД: 188722 [13:03:26]line ФПД: 158044030428778 [13:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130325&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188722&fm=158044030428778&tin=02508201610067®Number=0000000000100030&sum=100000 [13:03:26]written 0, free lines is 4095 [13:03:26]OFD Sender: Processing packet 188722 [packets to send 1062, broken 1061] [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00188722 [13:03:26]OFD Sender: To server: pG, [13:03:26]CommunicateWithHost lk.salyk.kg:30040 [13:03:26]ConnectInit lk.salyk.kg [13:03:26]Connected sock=10 [13:03:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D 32 07 01 7F 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 1D F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E1 02 00 35 04 06 00 8F BD 7E 4A E6 6A 9F 13 B5 A7 E5 B2 39 9E [13:03:26]Write to MH i2c: 01 00 00 0E 11 1F [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 5A 0C 8C [13:03:26]RasterBufferAndPrint [13:03:26]line [13:03:26]line [13:03:26]line [13:03:26]line [13:03:26]line [13:03:26]written 0, free lines is 3166 [13:03:26]MH_Cut [13:03:26]Write to MH i2c: D1 01 00 15 11 01 F8 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: D1 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: D1 01 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: D1 01 00 15 11 00 F7 [13:03:26]Write to MH i2c: 01 00 00 16 11 27 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7A D8 47 00 7E 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 36 35 33 34 30 10 04 04 00 32 E1 02 00 F4 03 04 00 07 9E 18 67 B6 04 01 00 00 07 92 E0 DE EC 48 F6 CB [13:03:26]CommunicateWithHost err = 0 [13:03:26]CheckOFDResponse [13:03:26]1017 (14) - 77093643461234 [13:03:26]1041 (16) - 0000000000965340 [13:03:26]1040 (4) - 188722 [13:03:26]1012 (4) - 23.10.2024 06:56 [13:03:26]1206 (1) - 0 [13:03:26]OFD Sender: Remove packet 188722 [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00188722 [13:03:26]NVStorageDeleteData [13:03:27]OFD Sender: No OFD packet to send [13:03:27]*** Cut start [13:03:27]*** Partial cut [13:03:27]*** CUTSNS_PIN = 1 [13:03:27]*** CUTSNS_PIN = 0 [13:03:28]*** Brake cut motor [13:03:28]Read from MH i2c: 01 [13:03:28]MH_I2C_Read... [13:03:28]*** Stop cut motor [13:03:28]*** Cut end [13:03:28]Read from MH i2c: 01 07 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 FF 0F 3C [13:03:28]process_action close_receipt done [13:03:28]requested_data is exist [13:03:28]produce_requested_data [13:03:28]requested_item fm.sn is exist - process it [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 11 00 00 [13:03:28]Write to MH i2c: E2 08 00 17 11 80 11 00 00 00 00 00 00 A2 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 17 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 17 00 17 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [13:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:03:28]wFMCommunicate OK [13:03:28]requested_item fd.num is exist - process it [13:03:28]SAM_PROTO_GetFieldsCounters [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 00 00 [13:03:28]Write to MH i2c: E2 08 00 18 11 80 13 00 00 00 00 00 00 A5 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 62 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 62 00 18 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [13:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetFieldsCounters done [13:03:28]requested_item shift.num is exist - process it [13:03:28]requested_item shift.opened is exist - process it [13:03:28]req_shift_opened [13:03:28]FM_GetShiftState [13:03:28]SAM_PROTO_GetShiftState [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 01 00 [13:03:28]Write to MH i2c: E2 08 00 19 11 80 13 01 00 00 00 00 00 A7 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 19 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8F [13:03:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetShiftState done [13:03:28]FM_GetShiftState done [13:03:28]req_shift_opened done [13:03:28]requested_item shift.open_date is exist - process it [13:03:28]req_shift_open_date [13:03:28]req_shift_open_date done [13:03:28]produce_requested_data done [13:03:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188722,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:03:28]process_action_free close_receipt [13:03:28]json_value_free [13:03:28]json_value_free done [13:03:28]process_json_proto returns [13:03:28]Send response to host [13:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188722,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:03:28]free response buf [13:03:28]execute_script done [13:03:28]execute_script returns [13:03:28]free content buf [13:03:28]Sock 7.Close socket [13:03:28]Sock 7.Thread stoped [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:42]accept exits with 9 [13:04:42]New connection [13:04:42]New thread 3067161956 created [13:04:42]Thread 3067018596 joined [13:04:42]Waiting for new connection... [13:04:42] Sock 9.Parse request [13:04:42]Sock 9.Check first char [13:04:42]Sock 9.First char is OK [13:04:42]request: POST /json_proto HTTP/1.0 [13:04:42]Method: POST [13:04:42]URL: /json_proto [13:04:42]Method is POST - this is cgi request [13:04:42]url: /json_proto [13:04:42]query_string will be loaded in cgi processing [13:04:42]execute_cgi json_proto POST (null) [13:04:42]execute_cgi path=json_proto method=POST [13:04:42]POST find Content-Length [13:04:42]Host: 172.17.42.131:8080 [13:04:42]Content-Length: 766 [13:04:42]Content-Type: application/json [13:04:42] [13:04:42]POST finish read [13:04:42]Found Content-Length = 766 [13:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:42]execute_script... [13:04:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:42]POST & json_proto [13:04:42]process_json_proto [13:04:42]json parsed OK: [13:04:42]protocol is kg_v1.0 [13:04:42]action value=close_receipt [13:04:42]process_action close_receipt [13:04:42]cmd_close_receipt [13:04:42]MH_GetDate [13:04:42]Write to MH i2c: F0 00 00 1A 11 1A [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: F0 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: F0 09 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: F0 09 00 1A 11 00 6B F4 18 67 A0 18 CA 66 E9 [13:04:42]GetLastDocTimeStamp 1729688605 [13:04:42]current date 1729688683 [13:04:42]FM_GetShiftState [13:04:42]SAM_PROTO_GetShiftState [13:04:42]wFMCommunicate request_size=4 [13:04:42]MH_SAM_APDU [13:04:42]CAPDU: 80 13 01 00 [13:04:42]Write to MH i2c: E2 08 00 1B 11 80 13 01 00 00 00 00 00 A9 [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:42]Read from MH i2c: E2 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 0E 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 0E 00 1B 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 91 [13:04:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:04:42]wFMCommunicate OK [13:04:42]SAM_PROTO_GetShiftState done [13:04:42]FM_GetShiftState done [13:04:42]opened in 1729642525 [13:04:42]opened+sec_in_day 1729728925 [13:04:42]quantity*price = 70044 [13:04:42]sum+1 = 70046 [13:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 181 23.10.2024 13:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188723 ФПД: 227016220663897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130443&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188723&fm=227016220663897&tin=02508201610067®Number=0000000000100030&sum=70045 [13:04:43]StoreToDocumentArchive [13:04:43]shift 462 fd 188723 [13:04:43]save to /storage/0462/doc_00188723 [13:04:43]save last doc name /storage/0462/doc_00188723 to /storage/kkm_last_doc_name [13:04:43]save OK [13:04:43]Clear old archive folders... [13:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:43]tlvbuf is B6EF44A0 [13:04:43]SAM_PROTO_ClearQueue [13:04:43]wFMCommunicate request_size=4 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 09 00 00 [13:04:43]Write to MH i2c: E2 08 00 28 11 80 09 00 00 00 00 00 00 AB [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:43]Read from MH i2c: E2 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 28 11 00 90 00 AD [13:04:43]RAPDU: 90 00 [13:04:43]wFMCommunicate OK [13:04:43]SAM_PROTO_ClearQueue done [13:04:43]KKMCreateOFDPacket [13:04:43]OFDProtocolAddRootSTLVToBuf [13:04:43]FM_MakeSignedData [13:04:43]FM_MakeSignedData [13:04:43]SAM_PROTO_SignData [13:04:43]wFMCommunicate request_size=4 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 0D 01 02 [13:04:43]Write to MH i2c: E2 08 00 29 11 80 0D 01 02 00 00 00 00 B3 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:43]Read from MH i2c: E2 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [13:04:43]RAPDU: 90 00 [13:04:43]wFMCommunicate OK [13:04:43]wFMCommunicate request_size=255 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6B F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E1 02 00 35 04 06 00 CE [13:04:43]Write to MH i2c: E2 02 01 2A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6B F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E1 02 00 35 04 06 00 CE 00 00 AD [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 03 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [13:04:44]RAPDU: 90 00 [13:04:44]wFMCommunicate OK [13:04:44]wFMCommunicate request_size=10 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 0D 02 02 05 78 55 30 E0 59 [13:04:44]Write to MH i2c: E2 0D 00 2B 11 80 0D 02 02 05 00 78 55 30 E0 59 00 00 F6 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 03 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [13:04:44]RAPDU: 90 00 [13:04:44]wFMCommunicate OK [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 0D 03 02 [13:04:44]Write to MH i2c: E2 08 00 2C 11 80 0D 03 02 00 00 00 00 B8 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0B 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0B 00 2C 11 00 32 09 A9 2C 03 6E 93 DA 90 00 A7 [13:04:44]RAPDU: 32 09 A9 2C 03 6E 93 DA 90 00 [13:04:44]wFMCommunicate OK [13:04:44]SAM_PROTO_SignData done [13:04:44]FM_MakeSignedData done [13:04:44]CreateOFDProtocolMessage [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 11 00 00 [13:04:44]Write to MH i2c: E2 08 00 2D 11 80 11 00 00 00 00 00 00 B8 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 17 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 17 00 2D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [13:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:04:44]wFMCommunicate OK [13:04:44]CreateOFDProtocolMessage done [13:04:44]OFDSenderStorePacket 188723 [13:04:44]StoreOFDPacket docnum=188723 [13:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 F8 07 01 34 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6B F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E1 02 00 35 04 06 00 CE 78 55 30 E0 59 32 09 A9 2C 03 6E 93 DA [13:04:44]CheckFolder [13:04:44]dirname=/storage/ofd_packets [13:04:44]CheckFolder done [13:04:44]ProducePacketName [13:04:44]name=ofd_packets/00188723 [13:04:44]NVStorageSaveData ofd_packets/00188723 [13:04:44]File name is /storage/ofd_packets/00188723 [13:04:44]Write 301 bytes [13:04:44]NVStorageSaveData done [13:04:44]OFDSenderStorePacket done [13:04:44]KKMCreateOFDPacket done [13:04:44]NVStorageSaveData kkm_last_timestamp [13:04:44]File name is /storage/kkm_last_timestamp [13:04:44]Write 4 bytes [13:04:44]NVStorageSaveData done [13:04:44]ExternCall_PrintAddStr [13:04:44]wPrintStart [13:04:44]Write to MH i2c: 01 00 00 2E 11 3F [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 07 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 FF 0F 54 [13:04:44]RasterBufferAndPrint [13:04:44]line Счет N : (1)210783 [13:04:44]line ИНН: 02508201610067 [13:04:44]line Контрольно-Кассовый Чек [13:04:44]line ПРОДАЖА [13:04:44]line ТРК (МРК, ГНК) : 13 [13:04:44]line Товар: 2710124500 [13:04:44]line Аи-95-К-3 [13:04:44]line 9.440 * 74.20 [13:04:44]line = 700.45 [13:04:44]line НДС 12% НСП 1% [13:04:44]line > о реализуемом товаре [13:04:44]line ИТОГО: 700.45 [13:04:44]line НСП 1% : 6.20 [13:04:44]line НДС 12% : 74.38 [13:04:44]line Наличными: 0.00 [13:04:44]line Безнал.: 700.45 [13:04:44]line Место: АЗС № 86 "Партнер Нефть" [13:04:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:04:44]line СНО: Общий режим [13:04:44]line Чек 181 23.10.2024 13:04 [13:04:44]line Смена: 462 ФФД: 1.0 [13:04:44]line ЗНМ: 0300000155 [13:04:44]line РНМ: 0000000000100030 [13:04:44]line Версия ККМ: 001 [13:04:44]line Платежная система: Mbank [13:04:44]line ФМ: 0000000000965340 [13:04:44]line ФД: 188723 [13:04:44]line ФПД: 227016220663897 [13:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130443&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188723&fm=227016220663897&tin=02508201610067®Number=0000000000100030&sum=70045 [13:04:44]written 0, free lines is 4095 [13:04:44]OFD Sender: Processing packet 188723 [packets to send 1062, broken 1061] [13:04:44]ProducePacketName [13:04:44]name=ofd_packets/00188723 [13:04:44]OFD Sender: To server: pG, [13:04:44]CommunicateWithHost lk.salyk.kg:30040 [13:04:44]ConnectInit lk.salyk.kg [13:04:44]Connected sock=10 [13:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 F8 07 01 34 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 6B F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E1 02 00 35 04 06 00 CE 78 55 30 E0 59 32 09 A9 2C 03 6E 93 DA [13:04:44]Write to MH i2c: 01 00 00 57 11 68 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 07 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 07 00 57 11 00 00 00 00 00 84 0C FF [13:04:44]RasterBufferAndPrint [13:04:44]line [13:04:44]line [13:04:44]line [13:04:44]line [13:04:44]line [13:04:44]written 0, free lines is 3209 [13:04:44]MH_Cut [13:04:44]Write to MH i2c: D1 01 00 5E 11 01 41 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: D1 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: D1 01 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: D1 01 00 5E 11 00 40 [13:04:44]Write to MH i2c: 01 00 00 5F 11 70 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 53 47 00 02 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 36 35 33 34 30 10 04 04 00 33 E1 02 00 F4 03 04 00 55 9E 18 67 B6 04 01 00 00 5E 1F 05 12 01 3C F9 88 [13:04:44]CommunicateWithHost err = 0 [13:04:44]CheckOFDResponse [13:04:44]1017 (14) - 77093643461234 [13:04:44]1041 (16) - 0000000000965340 [13:04:44]1040 (4) - 188723 [13:04:44]1012 (4) - 23.10.2024 06:57 [13:04:44]1206 (1) - 0 [13:04:44]OFD Sender: Remove packet 188723 [13:04:44]ProducePacketName [13:04:44]name=ofd_packets/00188723 [13:04:44]NVStorageDeleteData [13:04:45]OFD Sender: No OFD packet to send [13:04:46]*** Cut start [13:04:46]*** Partial cut [13:04:46]*** CUTSNS_PIN = 1 [13:04:46]*** CUTSNS_PIN = 0 [13:04:46]*** Brake cut motor [13:04:46]Read from MH i2c: 01 [13:04:46]MH_I2C_Read... [13:04:46]*** Stop cut motor [13:04:46]*** Cut end [13:04:46]Read from MH i2c: 01 07 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 07 00 5F 11 00 00 00 00 00 FF 0F 85 [13:04:46]process_action close_receipt done [13:04:46]requested_data is exist [13:04:46]produce_requested_data [13:04:46]requested_item fm.sn is exist - process it [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 11 00 00 [13:04:46]Write to MH i2c: E2 08 00 60 11 80 11 00 00 00 00 00 00 EB [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 17 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 17 00 60 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [13:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:04:46]wFMCommunicate OK [13:04:46]requested_item fd.num is exist - process it [13:04:46]SAM_PROTO_GetFieldsCounters [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 13 00 00 [13:04:46]Write to MH i2c: E2 08 00 61 11 80 13 00 00 00 00 00 00 EE [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 62 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 62 00 61 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [13:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_GetFieldsCounters done [13:04:46]requested_item shift.num is exist - process it [13:04:46]requested_item shift.opened is exist - process it [13:04:46]req_shift_opened [13:04:46]FM_GetShiftState [13:04:46]SAM_PROTO_GetShiftState [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 13 01 00 [13:04:46]Write to MH i2c: E2 08 00 62 11 80 13 01 00 00 00 00 00 F0 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 62 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D8 [13:04:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_GetShiftState done [13:04:46]FM_GetShiftState done [13:04:46]req_shift_opened done [13:04:46]requested_item shift.open_date is exist - process it [13:04:46]req_shift_open_date [13:04:46]req_shift_open_date done [13:04:46]produce_requested_data done [13:04:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188723,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:04:46]process_action_free close_receipt [13:04:46]json_value_free [13:04:46]json_value_free done [13:04:46]process_json_proto returns [13:04:46]Send response to host [13:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188723,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:04:46]free response buf [13:04:46]execute_script done [13:04:46]execute_script returns [13:04:46]free content buf [13:04:46]Sock 9.Close socket [13:04:46]Sock 9.Thread stoped [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]accept exits with 7 [13:06:15]New connection [13:06:15]New thread 3067018596 created [13:06:15]Thread 3067161956 joined [13:06:15]Waiting for new connection... [13:06:15] Sock 7.Parse request [13:06:15]Sock 7.Check first char [13:06:15]Sock 7.First char is OK [13:06:15]request: POST /json_proto HTTP/1.0 [13:06:15]Method: POST [13:06:15]URL: /json_proto [13:06:15]Method is POST - this is cgi request [13:06:15]url: /json_proto [13:06:15]query_string will be loaded in cgi processing [13:06:15]execute_cgi json_proto POST (null) [13:06:15]execute_cgi path=json_proto method=POST [13:06:15]POST find Content-Length [13:06:15]Host: 172.17.42.131:8080 [13:06:15]Content-Length: 677 [13:06:15]Content-Type: application/json [13:06:15] [13:06:15]POST finish read [13:06:15]Found Content-Length = 677 [13:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:15]execute_script... [13:06:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:15]POST & json_proto [13:06:15]process_json_proto [13:06:15]json parsed OK: [13:06:15]protocol is kg_v1.0 [13:06:15]action value=close_receipt [13:06:15]process_action close_receipt [13:06:15]cmd_close_receipt [13:06:15]MH_GetDate [13:06:15]Write to MH i2c: F0 00 00 63 11 63 [13:06:15]Write i2c OK [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: F0 [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: F0 09 00 [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: F0 09 00 63 11 00 C7 F4 18 67 A0 18 CA 66 8E [13:06:15]GetLastDocTimeStamp 1729688683 [13:06:15]current date 1729688775 [13:06:15]FM_GetShiftState [13:06:15]SAM_PROTO_GetShiftState [13:06:15]wFMCommunicate request_size=4 [13:06:15]MH_SAM_APDU [13:06:15]CAPDU: 80 13 01 00 [13:06:15]Write to MH i2c: E2 08 00 64 11 80 13 01 00 00 00 00 00 F2 [13:06:15]Write i2c OK [13:06:15]MH_I2C_Read... [13:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:15]Read from MH i2c: E2 [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: E2 0E 00 [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: E2 0E 00 64 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DA [13:06:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:06:15]wFMCommunicate OK [13:06:15]SAM_PROTO_GetShiftState done [13:06:15]FM_GetShiftState done [13:06:15]opened in 1729642525 [13:06:15]opened+sec_in_day 1729728925 [13:06:15]quantity*price = 30051 [13:06:15]sum+1 = 30052 [13:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 182 23.10.2024 13:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188724 ФПД: 188993765781147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130616&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188724&fm=188993765781147&tin=02508201610067®Number=0000000000100030&sum=30000 [13:06:16]StoreToDocumentArchive [13:06:16]shift 462 fd 188724 [13:06:16]save to /storage/0462/doc_00188724 [13:06:16]save last doc name /storage/0462/doc_00188724 to /storage/kkm_last_doc_name [13:06:16]save OK [13:06:16]Clear old archive folders... [13:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:16]tlvbuf is B6EF4140 [13:06:16]SAM_PROTO_ClearQueue [13:06:16]wFMCommunicate request_size=4 [13:06:16]MH_SAM_APDU [13:06:16]CAPDU: 80 09 00 00 [13:06:16]Write to MH i2c: E2 08 00 71 11 80 09 00 00 00 00 00 00 F4 [13:06:16]Write i2c OK [13:06:16]MH_I2C_Read... [13:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:16]Read from MH i2c: E2 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 03 00 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 03 00 71 11 00 90 00 F6 [13:06:16]RAPDU: 90 00 [13:06:16]wFMCommunicate OK [13:06:16]SAM_PROTO_ClearQueue done [13:06:16]KKMCreateOFDPacket [13:06:16]OFDProtocolAddRootSTLVToBuf [13:06:16]FM_MakeSignedData [13:06:16]FM_MakeSignedData [13:06:16]SAM_PROTO_SignData [13:06:16]wFMCommunicate request_size=4 [13:06:16]MH_SAM_APDU [13:06:16]CAPDU: 80 0D 01 02 [13:06:16]Write to MH i2c: E2 08 00 72 11 80 0D 01 02 00 00 00 00 FC [13:06:16]Write i2c OK [13:06:16]MH_I2C_Read... [13:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:16]Read from MH i2c: E2 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 03 00 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 03 00 72 11 00 90 00 F7 [13:06:16]RAPDU: 90 00 [13:06:16]wFMCommunicate OK [13:06:16]wFMCommunicate request_size=255 [13:06:16]MH_SAM_APDU [13:06:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C8 F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E1 02 00 35 04 06 00 AB [13:06:16]Write to MH i2c: E2 02 01 73 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C8 F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E1 02 00 35 04 06 00 AB 00 00 19 [13:06:16]Write i2c OK [13:06:16]MH_I2C_Read... [13:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:16]Read from MH i2c: E2 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 03 00 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 03 00 73 11 00 90 00 F8 [13:06:16]RAPDU: 90 00 [13:06:16]wFMCommunicate OK [13:06:16]wFMCommunicate request_size=10 [13:06:16]MH_SAM_APDU [13:06:16]CAPDU: 80 0D 02 02 05 E3 8A 46 2E 9B [13:06:16]Write to MH i2c: E2 0D 00 74 11 80 0D 02 02 05 00 E3 8A 46 2E 9B 00 00 85 [13:06:16]Write i2c OK [13:06:16]MH_I2C_Read... [13:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:16]Read from MH i2c: E2 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 03 00 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 03 00 74 11 00 90 00 F9 [13:06:16]RAPDU: 90 00 [13:06:16]wFMCommunicate OK [13:06:16]wFMCommunicate request_size=4 [13:06:16]MH_SAM_APDU [13:06:16]CAPDU: 80 0D 03 02 [13:06:16]Write to MH i2c: E2 08 00 75 11 80 0D 03 02 00 00 00 00 01 [13:06:16]Write i2c OK [13:06:16]MH_I2C_Read... [13:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:16]Read from MH i2c: E2 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 0B 00 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 0B 00 75 11 00 97 53 83 9D EC A1 F1 8A 90 00 14 [13:06:16]RAPDU: 97 53 83 9D EC A1 F1 8A 90 00 [13:06:16]wFMCommunicate OK [13:06:16]SAM_PROTO_SignData done [13:06:16]FM_MakeSignedData done [13:06:16]CreateOFDProtocolMessage [13:06:16]wFMCommunicate request_size=4 [13:06:16]MH_SAM_APDU [13:06:16]CAPDU: 80 11 00 00 [13:06:16]Write to MH i2c: E2 08 00 76 11 80 11 00 00 00 00 00 00 01 [13:06:16]Write i2c OK [13:06:16]MH_I2C_Read... [13:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:16]Read from MH i2c: E2 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 17 00 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: E2 17 00 76 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [13:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:06:16]wFMCommunicate OK [13:06:16]CreateOFDProtocolMessage done [13:06:16]OFDSenderStorePacket 188724 [13:06:16]StoreOFDPacket docnum=188724 [13:06:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 94 82 07 01 94 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C8 F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E1 02 00 35 04 06 00 AB E3 8A 46 2E 9B 97 53 83 9D EC A1 F1 8A [13:06:16]CheckFolder [13:06:16]dirname=/storage/ofd_packets [13:06:16]CheckFolder done [13:06:16]ProducePacketName [13:06:16]name=ofd_packets/00188724 [13:06:16]NVStorageSaveData ofd_packets/00188724 [13:06:16]File name is /storage/ofd_packets/00188724 [13:06:16]Write 301 bytes [13:06:16]NVStorageSaveData done [13:06:16]OFDSenderStorePacket done [13:06:16]KKMCreateOFDPacket done [13:06:16]NVStorageSaveData kkm_last_timestamp [13:06:16]File name is /storage/kkm_last_timestamp [13:06:16]Write 4 bytes [13:06:16]NVStorageSaveData done [13:06:16]ExternCall_PrintAddStr [13:06:16]wPrintStart [13:06:16]Write to MH i2c: 01 00 00 77 11 88 [13:06:16]Write i2c OK [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: 01 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: 01 07 00 [13:06:16]MH_I2C_Read... [13:06:16]Read from MH i2c: 01 07 00 77 11 00 00 00 00 00 FF 0F 9D [13:06:16]RasterBufferAndPrint [13:06:16]line Счет N : (1)210784 [13:06:16]line ИНН: 02508201610067 [13:06:16]line Контрольно-Кассовый Чек [13:06:16]line ПРОДАЖА [13:06:16]line ТРК (МРК, ГНК) : 23 [13:06:16]line Товар: 2710124500 [13:06:16]line Аи-95-К-3 [13:06:16]line 4.050 * 74.20 [13:06:16]line = 300.51 [13:06:16]line НДС 12% НСП 1% [13:06:16]line > о реализуемом товаре [13:06:16]line ОКРУГЛЕНИЕ: -0.51 [13:06:16]line ИТОГО: 300.00 [13:06:16]line Внесено: 300.00 [13:06:16]line СДАЧА: 0.00 [13:06:16]line НСП 1% : 2.66 [13:06:16]line НДС 12% : 31.91 [13:06:16]line Наличными: 300.00 [13:06:16]line Безнал.: 0.00 [13:06:16]line Место: АЗС № 86 "Партнер Нефть" [13:06:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:06:16]line СНО: Общий режим [13:06:16]line Чек 182 23.10.2024 13:06 [13:06:16]line Смена: 462 ФФД: 1.0 [13:06:16]line ЗНМ: 0300000155 [13:06:16]line РНМ: 0000000000100030 [13:06:16]line Версия ККМ: 001 [13:06:16]line ФМ: 0000000000965340 [13:06:16]line ФД: 188724 [13:06:16]line ФПД: 188993765781147 [13:06:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130616&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188724&fm=188993765781147&tin=02508201610067®Number=0000000000100030&sum=30000 [13:06:16]written 0, free lines is 4095 [13:06:16]OFD Sender: Processing packet 188724 [packets to send 1062, broken 1061] [13:06:16]ProducePacketName [13:06:16]name=ofd_packets/00188724 [13:06:16]OFD Sender: To server: pG, [13:06:16]CommunicateWithHost lk.salyk.kg:30040 [13:06:16]ConnectInit lk.salyk.kg [13:06:17]Connected sock=10 [13:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 94 82 07 01 94 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C8 F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E1 02 00 35 04 06 00 AB E3 8A 46 2E 9B 97 53 83 9D EC A1 F1 8A [13:06:17]Write to MH i2c: 01 00 00 A2 11 B3 [13:06:17]Write i2c OK [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: 01 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: 01 07 00 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: 01 07 00 A2 11 00 00 00 00 00 55 0C 1B [13:06:17]RasterBufferAndPrint [13:06:17]line [13:06:17]line [13:06:17]line [13:06:17]line [13:06:17]line [13:06:17]written 0, free lines is 3161 [13:06:17]MH_Cut [13:06:17]Write to MH i2c: D1 01 00 A9 11 01 8C [13:06:17]Write i2c OK [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: D1 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: D1 01 00 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: D1 01 00 A9 11 00 8B [13:06:17]Write to MH i2c: 01 00 00 AA 11 BB [13:06:17]Write i2c OK [13:06:17]MH_I2C_Read... [13:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB 41 47 00 F7 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E1 02 00 F4 03 04 00 B2 9E 18 67 B6 04 01 00 00 9B 1F 07 8C 9F 43 8A ED [13:06:17]CommunicateWithHost err = 0 [13:06:17]CheckOFDResponse [13:06:17]1017 (14) - 77093643461234 [13:06:17]1041 (16) - 0000000000965340 [13:06:17]1040 (4) - 188724 [13:06:17]1012 (4) - 23.10.2024 06:58 [13:06:17]1206 (1) - 0 [13:06:17]OFD Sender: Remove packet 188724 [13:06:17]ProducePacketName [13:06:17]name=ofd_packets/00188724 [13:06:17]NVStorageDeleteData [13:06:18]OFD Sender: No OFD packet to send [13:06:18]*** Cut start [13:06:18]*** Partial cut [13:06:18]*** CUTSNS_PIN = 1 [13:06:18]*** CUTSNS_PIN = 0 [13:06:18]*** Brake cut motor [13:06:19]Read from MH i2c: 01 [13:06:19]MH_I2C_Read... [13:06:19]*** Stop cut motor [13:06:19]*** Cut end [13:06:19]Read from MH i2c: 01 07 00 [13:06:19]MH_I2C_Read... [13:06:19]Read from MH i2c: 01 07 00 AA 11 00 00 00 00 00 FF 0F D0 [13:06:19]process_action close_receipt done [13:06:19]requested_data is exist [13:06:19]produce_requested_data [13:06:19]requested_item fm.sn is exist - process it [13:06:19]wFMCommunicate request_size=4 [13:06:19]MH_SAM_APDU [13:06:19]CAPDU: 80 11 00 00 [13:06:19]Write to MH i2c: E2 08 00 AB 11 80 11 00 00 00 00 00 00 36 [13:06:19]Write i2c OK [13:06:19]MH_I2C_Read... [13:06:19]Read from MH i2c: E2 [13:06:19]MH_I2C_Read... [13:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:19]Read from MH i2c: E2 17 00 [13:06:19]MH_I2C_Read... [13:06:19]Read from MH i2c: E2 17 00 AB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [13:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:06:19]wFMCommunicate OK [13:06:19]requested_item fd.num is exist - process it [13:06:19]SAM_PROTO_GetFieldsCounters [13:06:19]wFMCommunicate request_size=4 [13:06:19]MH_SAM_APDU [13:06:19]CAPDU: 80 13 00 00 [13:06:19]Write to MH i2c: E2 08 00 AC 11 80 13 00 00 00 00 00 00 39 [13:06:19]Write i2c OK [13:06:19]MH_I2C_Read... [13:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:19]Read from MH i2c: E2 [13:06:19]MH_I2C_Read... [13:06:19]Read from MH i2c: E2 62 00 [13:06:19]MH_I2C_Read... [13:06:19]Read from MH i2c: E2 62 00 AC 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [13:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:19]wFMCommunicate OK [13:06:19]SAM_PROTO_GetFieldsCounters done [13:06:19]requested_item shift.num is exist - process it [13:06:19]requested_item shift.opened is exist - process it [13:06:19]req_shift_opened [13:06:19]FM_GetShiftState [13:06:19]SAM_PROTO_GetShiftState [13:06:19]wFMCommunicate request_size=4 [13:06:19]MH_SAM_APDU [13:06:19]CAPDU: 80 13 01 00 [13:06:19]Write to MH i2c: E2 08 00 AD 11 80 13 01 00 00 00 00 00 3B [13:06:19]Write i2c OK [13:06:19]MH_I2C_Read... [13:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:19]Read from MH i2c: E2 [13:06:19]MH_I2C_Read... [13:06:19]Read from MH i2c: E2 0E 00 [13:06:19]MH_I2C_Read... [13:06:19]Read from MH i2c: E2 0E 00 AD 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 23 [13:06:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:06:19]wFMCommunicate OK [13:06:19]SAM_PROTO_GetShiftState done [13:06:19]FM_GetShiftState done [13:06:19]req_shift_opened done [13:06:19]requested_item shift.open_date is exist - process it [13:06:19]req_shift_open_date [13:06:19]req_shift_open_date done [13:06:19]produce_requested_data done [13:06:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188724,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:06:19]process_action_free close_receipt [13:06:19]json_value_free [13:06:19]json_value_free done [13:06:19]process_json_proto returns [13:06:19]Send response to host [13:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188724,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:06:19]free response buf [13:06:19]execute_script done [13:06:19]execute_script returns [13:06:19]free content buf [13:06:19]Sock 7.Close socket [13:06:19]Sock 7.Thread stoped [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:42]accept exits with 9 [13:06:42]New connection [13:06:42]New thread 3067161956 created [13:06:42]Thread 3067018596 joined [13:06:42]Waiting for new connection... [13:06:42] Sock 9.Parse request [13:06:42]Sock 9.Check first char [13:06:42]Sock 9.First char is OK [13:06:42]request: POST /json_proto HTTP/1.0 [13:06:42]Method: POST [13:06:42]URL: /json_proto [13:06:42]Method is POST - this is cgi request [13:06:42]url: /json_proto [13:06:42]query_string will be loaded in cgi processing [13:06:42]execute_cgi json_proto POST (null) [13:06:42]execute_cgi path=json_proto method=POST [13:06:42]POST find Content-Length [13:06:42]Host: 172.17.42.131:8080 [13:06:42]Content-Length: 677 [13:06:42]Content-Type: application/json [13:06:42] [13:06:42]POST finish read [13:06:42]Found Content-Length = 677 [13:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:42]execute_script... [13:06:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:42]POST & json_proto [13:06:42]process_json_proto [13:06:42]json parsed OK: [13:06:42]protocol is kg_v1.0 [13:06:42]action value=close_receipt [13:06:42]process_action close_receipt [13:06:42]cmd_close_receipt [13:06:42]MH_GetDate [13:06:42]Write to MH i2c: F0 00 00 AE 11 AE [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: F0 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: F0 09 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: F0 09 00 AE 11 00 E3 F4 18 67 A0 18 CA 66 F5 [13:06:42]GetLastDocTimeStamp 1729688776 [13:06:42]current date 1729688803 [13:06:42]FM_GetShiftState [13:06:42]SAM_PROTO_GetShiftState [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 13 01 00 [13:06:42]Write to MH i2c: E2 08 00 AF 11 80 13 01 00 00 00 00 00 3D [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 0E 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 0E 00 AF 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 25 [13:06:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:06:42]wFMCommunicate OK [13:06:42]SAM_PROTO_GetShiftState done [13:06:42]FM_GetShiftState done [13:06:42]opened in 1729642525 [13:06:42]opened+sec_in_day 1729728925 [13:06:42]quantity*price = 50041 [13:06:42]sum+1 = 50042 [13:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 183 23.10.2024 13:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188725 ФПД: 47131977875538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130643&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188725&fm=47131977875538&tin=02508201610067®Number=0000000000100030&sum=50000 [13:06:43]StoreToDocumentArchive [13:06:43]shift 462 fd 188725 [13:06:43]save to /storage/0462/doc_00188725 [13:06:43]save last doc name /storage/0462/doc_00188725 to /storage/kkm_last_doc_name [13:06:43]save OK [13:06:43]Clear old archive folders... [13:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:43]tlvbuf is 01C37050 [13:06:43]SAM_PROTO_ClearQueue [13:06:43]wFMCommunicate request_size=4 [13:06:43]MH_SAM_APDU [13:06:43]CAPDU: 80 09 00 00 [13:06:43]Write to MH i2c: E2 08 00 BC 11 80 09 00 00 00 00 00 00 3F [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:43]Read from MH i2c: E2 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: E2 03 00 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: E2 03 00 BC 11 00 90 00 41 [13:06:43]RAPDU: 90 00 [13:06:43]wFMCommunicate OK [13:06:43]SAM_PROTO_ClearQueue done [13:06:43]KKMCreateOFDPacket [13:06:43]OFDProtocolAddRootSTLVToBuf [13:06:43]FM_MakeSignedData [13:06:43]FM_MakeSignedData [13:06:43]SAM_PROTO_SignData [13:06:43]wFMCommunicate request_size=4 [13:06:43]MH_SAM_APDU [13:06:43]CAPDU: 80 0D 01 02 [13:06:43]Write to MH i2c: E2 08 00 BD 11 80 0D 01 02 00 00 00 00 47 [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:43]Read from MH i2c: E2 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: E2 03 00 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: E2 03 00 BD 11 00 90 00 42 [13:06:43]RAPDU: 90 00 [13:06:43]wFMCommunicate OK [13:06:43]wFMCommunicate request_size=255 [13:06:43]MH_SAM_APDU [13:06:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E3 F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E1 02 00 35 04 06 00 2A [13:06:43]Write to MH i2c: E2 02 01 BE 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E3 F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E1 02 00 35 04 06 00 2A 00 00 D8 [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 BE 11 00 90 00 43 [13:06:44]RAPDU: 90 00 [13:06:44]wFMCommunicate OK [13:06:44]wFMCommunicate request_size=10 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 0D 02 02 05 DD C4 CC 80 52 [13:06:44]Write to MH i2c: E2 0D 00 BF 11 80 0D 02 02 05 00 DD C4 CC 80 52 00 00 93 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [13:06:44]RAPDU: 90 00 [13:06:44]wFMCommunicate OK [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 0D 03 02 [13:06:44]Write to MH i2c: E2 08 00 C0 11 80 0D 03 02 00 00 00 00 4C [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 0B 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 0B 00 C0 11 00 39 1A 33 04 C3 DF F5 FC 90 00 6A [13:06:44]RAPDU: 39 1A 33 04 C3 DF F5 FC 90 00 [13:06:44]wFMCommunicate OK [13:06:44]SAM_PROTO_SignData done [13:06:44]FM_MakeSignedData done [13:06:44]CreateOFDProtocolMessage [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 11 00 00 [13:06:44]Write to MH i2c: E2 08 00 C1 11 80 11 00 00 00 00 00 00 4C [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 17 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 17 00 C1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [13:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:06:44]wFMCommunicate OK [13:06:44]CreateOFDProtocolMessage done [13:06:44]OFDSenderStorePacket 188725 [13:06:44]StoreOFDPacket docnum=188725 [13:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD F6 07 01 B2 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E3 F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E1 02 00 35 04 06 00 2A DD C4 CC 80 52 39 1A 33 04 C3 DF F5 FC [13:06:44]CheckFolder [13:06:44]dirname=/storage/ofd_packets [13:06:44]CheckFolder done [13:06:44]ProducePacketName [13:06:44]name=ofd_packets/00188725 [13:06:44]NVStorageSaveData ofd_packets/00188725 [13:06:44]File name is /storage/ofd_packets/00188725 [13:06:44]Write 301 bytes [13:06:44]NVStorageSaveData done [13:06:44]OFDSenderStorePacket done [13:06:44]KKMCreateOFDPacket done [13:06:44]NVStorageSaveData kkm_last_timestamp [13:06:44]File name is /storage/kkm_last_timestamp [13:06:44]Write 4 bytes [13:06:44]NVStorageSaveData done [13:06:44]ExternCall_PrintAddStr [13:06:44]wPrintStart [13:06:44]Write to MH i2c: 01 00 00 C2 11 D3 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 07 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 07 00 C2 11 00 00 00 00 00 FF 0F E8 [13:06:44]RasterBufferAndPrint [13:06:44]line Счет N : (1)210785 [13:06:44]line ИНН: 02508201610067 [13:06:44]line Контрольно-Кассовый Чек [13:06:44]line ПРОДАЖА [13:06:44]line ТРК (МРК, ГНК) : 32 [13:06:44]line Товар: 2710124130 [13:06:44]line Аи-92-К-3 [13:06:44]line 7.480 * 66.90 [13:06:44]line = 500.41 [13:06:44]line НДС 12% НСП 1% [13:06:44]line > о реализуемом товаре [13:06:44]line ОКРУГЛЕНИЕ: -0.41 [13:06:44]line ИТОГО: 500.00 [13:06:44]line Внесено: 500.00 [13:06:44]line СДАЧА: 0.00 [13:06:44]line НСП 1% : 4.43 [13:06:44]line НДС 12% : 53.14 [13:06:44]line Наличными: 500.00 [13:06:44]line Безнал.: 0.00 [13:06:44]line Место: АЗС № 86 "Партнер Нефть" [13:06:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:06:44]line СНО: Общий режим [13:06:44]line Чек 183 23.10.2024 13:06 [13:06:44]line Смена: 462 ФФД: 1.0 [13:06:44]line ЗНМ: 0300000155 [13:06:44]line РНМ: 0000000000100030 [13:06:44]line Версия ККМ: 001 [13:06:44]line ФМ: 0000000000965340 [13:06:44]line ФД: 188725 [13:06:44]line ФПД: 47131977875538 [13:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130643&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188725&fm=47131977875538&tin=02508201610067®Number=0000000000100030&sum=50000 [13:06:44]written 0, free lines is 4095 [13:06:44]OFD Sender: Processing packet 188725 [packets to send 1062, broken 1061] [13:06:44]ProducePacketName [13:06:44]name=ofd_packets/00188725 [13:06:44]OFD Sender: To server: pG, [13:06:44]CommunicateWithHost lk.salyk.kg:30040 [13:06:44]ConnectInit lk.salyk.kg [13:06:44]Connected sock=10 [13:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD F6 07 01 B2 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E3 F4 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E1 02 00 35 04 06 00 2A DD C4 CC 80 52 39 1A 33 04 C3 DF F5 FC [13:06:44]Write to MH i2c: 01 00 00 ED 11 FE [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 07 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 07 00 ED 11 00 00 00 00 00 58 0C 69 [13:06:44]RasterBufferAndPrint [13:06:44]line [13:06:44]line [13:06:44]line [13:06:44]line [13:06:44]line [13:06:44]written 0, free lines is 3163 [13:06:44]MH_Cut [13:06:44]Write to MH i2c: D1 01 00 F4 11 01 D7 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: D1 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: D1 01 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: D1 01 00 F4 11 00 D6 [13:06:44]Write to MH i2c: 01 00 00 F5 11 06 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DB F4 47 00 ED B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E1 02 00 F4 03 04 00 CD 9E 18 67 B6 04 01 00 00 EB 52 5A 0C 29 46 88 CF [13:06:44]CommunicateWithHost err = 0 [13:06:44]CheckOFDResponse [13:06:44]1017 (14) - 77093643461234 [13:06:44]1041 (16) - 0000000000965340 [13:06:44]1040 (4) - 188725 [13:06:44]1012 (4) - 23.10.2024 06:59 [13:06:44]1206 (1) - 0 [13:06:44]OFD Sender: Remove packet 188725 [13:06:44]ProducePacketName [13:06:44]name=ofd_packets/00188725 [13:06:44]NVStorageDeleteData [13:06:45]OFD Sender: No OFD packet to send [13:06:45]*** Cut start [13:06:45]*** Partial cut [13:06:45]*** CUTSNS_PIN = 1 [13:06:45]*** CUTSNS_PIN = 0 [13:06:46]*** Brake cut motor [13:06:46]Read from MH i2c: 01 [13:06:46]MH_I2C_Read... [13:06:46]*** Stop cut motor [13:06:46]*** Cut end [13:06:46]Read from MH i2c: 01 07 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: 01 07 00 F5 11 00 00 00 00 00 FF 0F 1B [13:06:46]process_action close_receipt done [13:06:46]requested_data is exist [13:06:46]produce_requested_data [13:06:46]requested_item fm.sn is exist - process it [13:06:46]wFMCommunicate request_size=4 [13:06:46]MH_SAM_APDU [13:06:46]CAPDU: 80 11 00 00 [13:06:46]Write to MH i2c: E2 08 00 F6 11 80 11 00 00 00 00 00 00 81 [13:06:46]Write i2c OK [13:06:46]MH_I2C_Read... [13:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:46]Read from MH i2c: E2 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 17 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 17 00 F6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [13:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:06:46]wFMCommunicate OK [13:06:46]requested_item fd.num is exist - process it [13:06:46]SAM_PROTO_GetFieldsCounters [13:06:46]wFMCommunicate request_size=4 [13:06:46]MH_SAM_APDU [13:06:46]CAPDU: 80 13 00 00 [13:06:46]Write to MH i2c: E2 08 00 F7 11 80 13 00 00 00 00 00 00 84 [13:06:46]Write i2c OK [13:06:46]MH_I2C_Read... [13:06:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:46]Read from MH i2c: E2 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 62 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 62 00 F7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [13:06:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:46]wFMCommunicate OK [13:06:46]SAM_PROTO_GetFieldsCounters done [13:06:46]requested_item shift.num is exist - process it [13:06:46]requested_item shift.opened is exist - process it [13:06:46]req_shift_opened [13:06:46]FM_GetShiftState [13:06:46]SAM_PROTO_GetShiftState [13:06:46]wFMCommunicate request_size=4 [13:06:46]MH_SAM_APDU [13:06:46]CAPDU: 80 13 01 00 [13:06:46]Write to MH i2c: E2 08 00 F8 11 80 13 01 00 00 00 00 00 86 [13:06:46]Write i2c OK [13:06:46]MH_I2C_Read... [13:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:46]Read from MH i2c: E2 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 0E 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 0E 00 F8 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6E [13:06:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:06:46]wFMCommunicate OK [13:06:46]SAM_PROTO_GetShiftState done [13:06:46]FM_GetShiftState done [13:06:46]req_shift_opened done [13:06:46]requested_item shift.open_date is exist - process it [13:06:46]req_shift_open_date [13:06:46]req_shift_open_date done [13:06:46]produce_requested_data done [13:06:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188725,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:06:46]process_action_free close_receipt [13:06:46]json_value_free [13:06:46]json_value_free done [13:06:46]process_json_proto returns [13:06:46]Send response to host [13:06:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188725,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:06:46]free response buf [13:06:46]execute_script done [13:06:46]execute_script returns [13:06:46]free content buf [13:06:46]Sock 9.Close socket [13:06:46]Sock 9.Thread stoped [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:34]accept exits with 7 [13:13:34]New connection [13:13:34]New thread 3067018596 created [13:13:34]Thread 3067161956 joined [13:13:34]Waiting for new connection... [13:13:34] Sock 7.Parse request [13:13:34]Sock 7.Check first char [13:13:34]Sock 7.First char is OK [13:13:34]request: POST /json_proto HTTP/1.0 [13:13:34]Method: POST [13:13:34]URL: /json_proto [13:13:34]Method is POST - this is cgi request [13:13:34]url: /json_proto [13:13:34]query_string will be loaded in cgi processing [13:13:34]execute_cgi json_proto POST (null) [13:13:34]execute_cgi path=json_proto method=POST [13:13:34]POST find Content-Length [13:13:34]Host: 172.17.42.131:8080 [13:13:34]Content-Length: 983 [13:13:34]Content-Type: application/json [13:13:34] [13:13:34]POST finish read [13:13:34]Found Content-Length = 983 [13:13:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:34]execute_script... [13:13:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:34]POST & json_proto [13:13:34]process_json_proto [13:13:34]json parsed OK: [13:13:34]protocol is kg_v1.0 [13:13:34]action value=close_receipt [13:13:34]process_action close_receipt [13:13:34]cmd_close_receipt [13:13:34]MH_GetDate [13:13:34]Write to MH i2c: F0 00 00 F9 11 F9 [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: F0 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: F0 09 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: F0 09 00 F9 11 00 7F F6 18 67 A0 18 CA 66 DE [13:13:34]GetLastDocTimeStamp 1729688803 [13:13:34]current date 1729689215 [13:13:34]FM_GetShiftState [13:13:34]SAM_PROTO_GetShiftState [13:13:34]wFMCommunicate request_size=4 [13:13:34]MH_SAM_APDU [13:13:34]CAPDU: 80 13 01 00 [13:13:34]Write to MH i2c: E2 08 00 FA 11 80 13 01 00 00 00 00 00 88 [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:34]Read from MH i2c: E2 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 0E 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 0E 00 FA 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 70 [13:13:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:13:34]wFMCommunicate OK [13:13:34]SAM_PROTO_GetShiftState done [13:13:34]FM_GetShiftState done [13:13:34]opened in 1729642525 [13:13:34]opened+sec_in_day 1729728925 [13:13:34]quantity*price = 150054 [13:13:34]sum+1 = 150055 [13:13:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 184 23.10.2024 13:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 188726 ФПД: 77503987113037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131335&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188726&fm=77503987113037&tin=02508201610067®Number=0000000000100030&sum=150000 [13:13:36]StoreToDocumentArchive [13:13:36]shift 462 fd 188726 [13:13:36]save to /storage/0462/doc_00188726 [13:13:36]save last doc name /storage/0462/doc_00188726 to /storage/kkm_last_doc_name [13:13:36]save OK [13:13:36]Clear old archive folders... [13:13:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:36]tlvbuf is 01C46CD0 [13:13:36]SAM_PROTO_ClearQueue [13:13:36]wFMCommunicate request_size=4 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 09 00 00 [13:13:36]Write to MH i2c: E2 08 00 07 12 80 09 00 00 00 00 00 00 8B [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 07 12 00 90 00 8D [13:13:36]RAPDU: 90 00 [13:13:36]wFMCommunicate OK [13:13:36]SAM_PROTO_ClearQueue done [13:13:36]KKMCreateOFDPacket [13:13:36]OFDProtocolAddRootSTLVToBuf [13:13:36]FM_MakeSignedData [13:13:36]FM_MakeSignedData [13:13:36]SAM_PROTO_SignData [13:13:36]wFMCommunicate request_size=4 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 0D 01 02 [13:13:36]Write to MH i2c: E2 08 00 08 12 80 0D 01 02 00 00 00 00 93 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 08 12 00 90 00 8E [13:13:36]RAPDU: 90 00 [13:13:36]wFMCommunicate OK [13:13:36]wFMCommunicate request_size=255 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 7F F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E1 02 00 35 04 06 00 46 [13:13:36]Write to MH i2c: E2 02 01 09 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 7F F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E1 02 00 35 04 06 00 46 00 00 16 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [13:13:36]RAPDU: 90 00 [13:13:36]wFMCommunicate OK [13:13:36]wFMCommunicate request_size=10 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 0D 02 02 05 7D 4D 9E DC 4D [13:13:36]Write to MH i2c: E2 0D 00 0A 12 80 0D 02 02 05 00 7D 4D 9E DC 4D 00 00 31 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [13:13:36]RAPDU: 90 00 [13:13:36]wFMCommunicate OK [13:13:36]wFMCommunicate request_size=4 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 0D 03 02 [13:13:36]Write to MH i2c: E2 08 00 0B 12 80 0D 03 02 00 00 00 00 98 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 0B 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 0B 00 0B 12 00 87 1D 35 F2 FE F6 87 DD 90 00 BC [13:13:36]RAPDU: 87 1D 35 F2 FE F6 87 DD 90 00 [13:13:36]wFMCommunicate OK [13:13:36]SAM_PROTO_SignData done [13:13:36]FM_MakeSignedData done [13:13:36]CreateOFDProtocolMessage [13:13:36]wFMCommunicate request_size=4 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 11 00 00 [13:13:36]Write to MH i2c: E2 08 00 0C 12 80 11 00 00 00 00 00 00 98 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 17 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 17 00 0C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E6 [13:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:13:36]wFMCommunicate OK [13:13:36]CreateOFDProtocolMessage done [13:13:36]OFDSenderStorePacket 188726 [13:13:36]StoreOFDPacket docnum=188726 [13:13:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C 6D 07 01 93 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 7F F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E1 02 00 35 04 06 00 46 7D 4D 9E DC 4D 87 1D 35 F2 FE F6 87 DD [13:13:36]CheckFolder [13:13:36]dirname=/storage/ofd_packets [13:13:36]CheckFolder done [13:13:36]ProducePacketName [13:13:36]name=ofd_packets/00188726 [13:13:36]NVStorageSaveData ofd_packets/00188726 [13:13:36]File name is /storage/ofd_packets/00188726 [13:13:36]Write 301 bytes [13:13:36]NVStorageSaveData done [13:13:36]OFDSenderStorePacket done [13:13:36]KKMCreateOFDPacket done [13:13:36]NVStorageSaveData kkm_last_timestamp [13:13:36]File name is /storage/kkm_last_timestamp [13:13:36]Write 4 bytes [13:13:36]NVStorageSaveData done [13:13:36]ExternCall_PrintAddStr [13:13:36]wPrintStart [13:13:36]Write to MH i2c: 01 00 00 0D 12 1F [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: 01 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: 01 07 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: 01 07 00 0D 12 00 00 00 00 00 FF 0F 34 [13:13:36]RasterBufferAndPrint [13:13:36]line Счет N : (1)210786 [13:13:36]line ИНН: 02508201610067 [13:13:36]line Контрольно-Кассовый Чек [13:13:36]line ПРОДАЖА [13:13:36]line ТРК (МРК, ГНК) : 22 [13:13:36]line Товар: 2710124130 [13:13:36]line Аи-92-К-3 [13:13:36]line 22.770 * 65.90 [13:13:36]line = 1500.54 [13:13:36]line НДС 12% НСП 1% [13:13:36]line > о реализуемом товаре [13:13:36]line ОКРУГЛЕНИЕ: -0.54 [13:13:36]line ИТОГО: 1500.00 [13:13:36]line Внесено: 1500.00 [13:13:36]line СДАЧА: 0.00 [13:13:36]line НСП 1% : 13.28 [13:13:36]line НДС 12% : 159.35 [13:13:36]line Наличными: 1500.00 [13:13:36]line Безнал.: 0.00 [13:13:36]line Место: АЗС № 86 "Партнер Нефть" [13:13:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:13:36]line СНО: Общий режим [13:13:36]line Чек 184 23.10.2024 13:13 [13:13:36]line Смена: 462 ФФД: 1.0 [13:13:36]line ЗНМ: 0300000155 [13:13:36]line РНМ: 0000000000100030 [13:13:36]line Версия ККМ: 001 [13:13:36]line [13:13:36]line Дисконтная программа [13:13:36]line АИ-92 [13:13:36]line номер 86 [13:13:36]line сэкономлено 22.77 сом [13:13:36]line ФМ: 0000000000965340 [13:13:36]line ФД: 188726 [13:13:36]line ФПД: 77503987113037 [13:13:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131335&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188726&fm=77503987113037&tin=02508201610067®Number=0000000000100030&sum=150000 [13:13:36]written 0, free lines is 4095 [13:13:36]OFD Sender: Processing packet 188726 [packets to send 1062, broken 1061] [13:13:36]ProducePacketName [13:13:36]name=ofd_packets/00188726 [13:13:36]OFD Sender: To server: pG, [13:13:36]CommunicateWithHost lk.salyk.kg:30040 [13:13:36]ConnectInit lk.salyk.kg [13:13:36]Connected sock=10 [13:13:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C 6D 07 01 93 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 7F F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E1 02 00 35 04 06 00 46 7D 4D 9E DC 4D 87 1D 35 F2 FE F6 87 DD [13:13:37]Write to MH i2c: 01 00 00 3D 12 4F [13:13:37]Write i2c OK [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: 01 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: 01 07 00 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: 01 07 00 3D 12 00 00 00 00 00 DB 0B 3C [13:13:37]RasterBufferAndPrint [13:13:37]line [13:13:37]line [13:13:37]line [13:13:37]line [13:13:37]line [13:13:37]written 0, free lines is 3037 [13:13:37]MH_Cut [13:13:37]Write to MH i2c: D1 01 00 44 12 01 28 [13:13:37]Write i2c OK [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: D1 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: D1 01 00 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: D1 01 00 44 12 00 27 [13:13:37]Write to MH i2c: 01 00 00 45 12 57 [13:13:37]Write i2c OK [13:13:37]MH_I2C_Read... [13:13:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 46 05 47 00 2B 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E1 02 00 F4 03 04 00 6A A0 18 67 B6 04 01 00 00 79 CE 3D CB 59 6D 75 0D [13:13:37]CommunicateWithHost err = 0 [13:13:37]CheckOFDResponse [13:13:37]1017 (14) - 77093643461234 [13:13:37]1041 (16) - 0000000000965340 [13:13:37]1040 (4) - 188726 [13:13:37]1012 (4) - 23.10.2024 07:06 [13:13:37]1206 (1) - 0 [13:13:37]OFD Sender: Remove packet 188726 [13:13:37]ProducePacketName [13:13:37]name=ofd_packets/00188726 [13:13:37]NVStorageDeleteData [13:13:37]OFD Sender: No OFD packet to send [13:13:38]*** Cut start [13:13:38]*** Partial cut [13:13:38]*** CUTSNS_PIN = 1 [13:13:38]*** CUTSNS_PIN = 0 [13:13:38]*** Brake cut motor [13:13:39]Read from MH i2c: 01 [13:13:39]MH_I2C_Read... [13:13:39]*** Stop cut motor [13:13:39]*** Cut end [13:13:39]Read from MH i2c: 01 07 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: 01 07 00 45 12 00 00 00 00 00 FF 0F 6C [13:13:39]process_action close_receipt done [13:13:39]requested_data is exist [13:13:39]produce_requested_data [13:13:39]requested_item fm.sn is exist - process it [13:13:39]wFMCommunicate request_size=4 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 11 00 00 [13:13:39]Write to MH i2c: E2 08 00 46 12 80 11 00 00 00 00 00 00 D2 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 17 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 17 00 46 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [13:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:13:39]wFMCommunicate OK [13:13:39]requested_item fd.num is exist - process it [13:13:39]SAM_PROTO_GetFieldsCounters [13:13:39]wFMCommunicate request_size=4 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 13 00 00 [13:13:39]Write to MH i2c: E2 08 00 47 12 80 13 00 00 00 00 00 00 D5 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 62 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 62 00 47 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [13:13:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:39]wFMCommunicate OK [13:13:39]SAM_PROTO_GetFieldsCounters done [13:13:39]requested_item shift.num is exist - process it [13:13:39]requested_item shift.opened is exist - process it [13:13:39]req_shift_opened [13:13:39]FM_GetShiftState [13:13:39]SAM_PROTO_GetShiftState [13:13:39]wFMCommunicate request_size=4 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 13 01 00 [13:13:39]Write to MH i2c: E2 08 00 48 12 80 13 01 00 00 00 00 00 D7 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 0E 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 0E 00 48 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BF [13:13:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:13:39]wFMCommunicate OK [13:13:39]SAM_PROTO_GetShiftState done [13:13:39]FM_GetShiftState done [13:13:39]req_shift_opened done [13:13:39]requested_item shift.open_date is exist - process it [13:13:39]req_shift_open_date [13:13:39]req_shift_open_date done [13:13:39]produce_requested_data done [13:13:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188726,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:13:39]process_action_free close_receipt [13:13:39]json_value_free [13:13:39]json_value_free done [13:13:39]process_json_proto returns [13:13:39]Send response to host [13:13:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188726,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:13:39]free response buf [13:13:39]execute_script done [13:13:39]execute_script returns [13:13:39]free content buf [13:13:39]Sock 7.Close socket [13:13:39]Sock 7.Thread stoped [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:05]accept exits with 9 [13:15:05]New connection [13:15:05]New thread 3067161956 created [13:15:05]Thread 3067018596 joined [13:15:05]Waiting for new connection... [13:15:05] Sock 9.Parse request [13:15:05]Sock 9.Check first char [13:15:05]Sock 9.First char is OK [13:15:05]request: POST /json_proto HTTP/1.0 [13:15:05]Method: POST [13:15:05]URL: /json_proto [13:15:05]Method is POST - this is cgi request [13:15:05]url: /json_proto [13:15:05]query_string will be loaded in cgi processing [13:15:05]execute_cgi json_proto POST (null) [13:15:05]execute_cgi path=json_proto method=POST [13:15:05]POST find Content-Length [13:15:05]Host: 172.17.42.131:8080 [13:15:05]Content-Length: 688 [13:15:05]Content-Type: application/json [13:15:05] [13:15:05]POST finish read [13:15:05]Found Content-Length = 688 [13:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:05]execute_script... [13:15:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:05]POST & json_proto [13:15:05]process_json_proto [13:15:05]json parsed OK: [13:15:05]protocol is kg_v1.0 [13:15:05]action value=close_receipt [13:15:05]process_action close_receipt [13:15:05]cmd_close_receipt [13:15:05]MH_GetDate [13:15:05]Write to MH i2c: F0 00 00 49 12 4A [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: F0 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: F0 09 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: F0 09 00 49 12 00 DA F6 18 67 A0 18 CA 66 8A [13:15:05]GetLastDocTimeStamp 1729689215 [13:15:05]current date 1729689306 [13:15:05]FM_GetShiftState [13:15:05]SAM_PROTO_GetShiftState [13:15:05]wFMCommunicate request_size=4 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 13 01 00 [13:15:05]Write to MH i2c: E2 08 00 4A 12 80 13 01 00 00 00 00 00 D9 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:05]Read from MH i2c: E2 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 0E 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 0E 00 4A 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C1 [13:15:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:15:05]wFMCommunicate OK [13:15:05]SAM_PROTO_GetShiftState done [13:15:05]FM_GetShiftState done [13:15:05]opened in 1729642525 [13:15:05]opened+sec_in_day 1729728925 [13:15:05]quantity*price = 200025 [13:15:05]sum+1 = 200026 [13:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 185 23.10.2024 13:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188727 ФПД: 96823522682480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131506&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188727&fm=96823522682480&tin=02508201610067®Number=0000000000100030&sum=200000 [13:15:06]StoreToDocumentArchive [13:15:06]shift 462 fd 188727 [13:15:06]save to /storage/0462/doc_00188727 [13:15:06]save last doc name /storage/0462/doc_00188727 to /storage/kkm_last_doc_name [13:15:06]save OK [13:15:06]Clear old archive folders... [13:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:15:06]tlvbuf is 01C37060 [13:15:06]SAM_PROTO_ClearQueue [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 09 00 00 [13:15:06]Write to MH i2c: E2 08 00 57 12 80 09 00 00 00 00 00 00 DB [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 57 12 00 90 00 DD [13:15:06]RAPDU: 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_ClearQueue done [13:15:06]KKMCreateOFDPacket [13:15:07]OFDProtocolAddRootSTLVToBuf [13:15:07]FM_MakeSignedData [13:15:07]FM_MakeSignedData [13:15:07]SAM_PROTO_SignData [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 01 02 [13:15:07]Write to MH i2c: E2 08 00 58 12 80 0D 01 02 00 00 00 00 E3 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 58 12 00 90 00 DE [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=255 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 DA F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E1 02 [13:15:07]Write to MH i2c: E2 02 01 59 12 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 DA F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E1 02 00 00 75 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=16 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 58 0F 7B AC E6 70 [13:15:07]Write to MH i2c: E2 13 00 5A 12 80 0D 02 02 0B 00 00 35 04 06 00 58 0F 7B AC E6 70 00 00 1F [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 03 02 [13:15:07]Write to MH i2c: E2 08 00 5B 12 80 0D 03 02 00 00 00 00 E8 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 0B 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 0B 00 5B 12 00 4C B9 C0 1B 13 28 9A B1 90 00 4F [13:15:07]RAPDU: 4C B9 C0 1B 13 28 9A B1 90 00 [13:15:07]wFMCommunicate OK [13:15:07]SAM_PROTO_SignData done [13:15:07]FM_MakeSignedData done [13:15:07]CreateOFDProtocolMessage [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 11 00 00 [13:15:07]Write to MH i2c: E2 08 00 5C 12 80 11 00 00 00 00 00 00 E8 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 17 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 17 00 5C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [13:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:15:07]wFMCommunicate OK [13:15:07]CreateOFDProtocolMessage done [13:15:07]OFDSenderStorePacket 188727 [13:15:07]StoreOFDPacket docnum=188727 [13:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CA 30 0D 01 CC 60 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 DA F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E1 02 00 35 04 06 00 58 0F 7B AC E6 70 4C B9 C0 1B 13 28 9A B1 [13:15:07]CheckFolder [13:15:07]dirname=/storage/ofd_packets [13:15:07]CheckFolder done [13:15:07]ProducePacketName [13:15:07]name=ofd_packets/00188727 [13:15:07]NVStorageSaveData ofd_packets/00188727 [13:15:07]File name is /storage/ofd_packets/00188727 [13:15:07]Write 307 bytes [13:15:07]NVStorageSaveData done [13:15:07]OFDSenderStorePacket done [13:15:07]KKMCreateOFDPacket done [13:15:07]NVStorageSaveData kkm_last_timestamp [13:15:07]File name is /storage/kkm_last_timestamp [13:15:07]Write 4 bytes [13:15:07]NVStorageSaveData done [13:15:07]ExternCall_PrintAddStr [13:15:07]wPrintStart [13:15:07]Write to MH i2c: 01 00 00 5D 12 6F [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 5D 12 00 00 00 00 00 FF 0F 84 [13:15:07]RasterBufferAndPrint [13:15:07]line Счет N : (1)210787 [13:15:07]line ИНН: 02508201610067 [13:15:07]line Контрольно-Кассовый Чек [13:15:07]line ПРОДАЖА [13:15:07]line ТРК (МРК, ГНК) : 41 [13:15:07]line Товар: 2710194210 [13:15:07]line D-ENERGY ДТ-К-5 [13:15:07]line 25.910 * 77.20 [13:15:07]line = 2000.25 [13:15:07]line НДС 12% НСП 1% [13:15:07]line > о реализуемом товаре [13:15:07]line ОКРУГЛЕНИЕ: -0.25 [13:15:07]line ИТОГО: 2000.00 [13:15:07]line Внесено: 2000.00 [13:15:07]line СДАЧА: 0.00 [13:15:07]line НСП 1% : 17.70 [13:15:07]line НДС 12% : 212.42 [13:15:07]line Наличными: 2000.00 [13:15:07]line Безнал.: 0.00 [13:15:07]line Место: АЗС № 86 "Партнер Нефть" [13:15:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:15:07]line СНО: Общий режим [13:15:07]line Чек 185 23.10.2024 13:15 [13:15:07]line Смена: 462 ФФД: 1.0 [13:15:07]line ЗНМ: 0300000155 [13:15:07]line РНМ: 0000000000100030 [13:15:07]line Версия ККМ: 001 [13:15:07]line ФМ: 0000000000965340 [13:15:07]line ФД: 188727 [13:15:07]line ФПД: 96823522682480 [13:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131506&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188727&fm=96823522682480&tin=02508201610067®Number=0000000000100030&sum=200000 [13:15:07]written 0, free lines is 4095 [13:15:07]OFD Sender: Processing packet 188727 [packets to send 1062, broken 1061] [13:15:07]ProducePacketName [13:15:07]name=ofd_packets/00188727 [13:15:07]OFD Sender: To server: pG, [13:15:07]CommunicateWithHost lk.salyk.kg:30040 [13:15:07]ConnectInit lk.salyk.kg [13:15:07]Connected sock=11 [13:15:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CA 30 0D 01 CC 60 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 DA F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E1 02 00 35 04 06 00 58 0F 7B AC E6 70 4C B9 C0 1B 13 28 9A B1 [13:15:08]Write to MH i2c: 01 00 00 88 12 9A [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 88 12 00 00 00 00 00 62 0C 0F [13:15:08]RasterBufferAndPrint [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]written 0, free lines is 3173 [13:15:08]MH_Cut [13:15:08]Write to MH i2c: D1 01 00 8F 12 01 73 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 01 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 01 00 8F 12 00 72 [13:15:08]Write to MH i2c: 01 00 00 90 12 A2 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4B 3D 47 00 E1 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 36 35 33 34 30 10 04 04 00 37 E1 02 00 F4 03 04 00 C5 A0 18 67 B6 04 01 00 00 3F F7 5A 51 09 05 A8 82 [13:15:08]CommunicateWithHost err = 0 [13:15:08]CheckOFDResponse [13:15:08]1017 (14) - 77093643461234 [13:15:08]1041 (16) - 0000000000965340 [13:15:08]1040 (4) - 188727 [13:15:08]1012 (4) - 23.10.2024 07:07 [13:15:08]1206 (1) - 0 [13:15:08]OFD Sender: Remove packet 188727 [13:15:08]ProducePacketName [13:15:08]name=ofd_packets/00188727 [13:15:08]NVStorageDeleteData [13:15:08]OFD Sender: No OFD packet to send [13:15:09]*** Cut start [13:15:09]*** Partial cut [13:15:09]*** CUTSNS_PIN = 1 [13:15:09]*** CUTSNS_PIN = 0 [13:15:09]*** Brake cut motor [13:15:09]Read from MH i2c: 01 [13:15:09]MH_I2C_Read... [13:15:09]*** Stop cut motor [13:15:09]*** Cut end [13:15:09]Read from MH i2c: 01 07 00 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: 01 07 00 90 12 00 00 00 00 00 FF 0F B7 [13:15:09]process_action close_receipt done [13:15:09]requested_data is exist [13:15:09]produce_requested_data [13:15:09]requested_item fm.sn is exist - process it [13:15:09]wFMCommunicate request_size=4 [13:15:09]MH_SAM_APDU [13:15:09]CAPDU: 80 11 00 00 [13:15:09]Write to MH i2c: E2 08 00 91 12 80 11 00 00 00 00 00 00 1D [13:15:09]Write i2c OK [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: E2 [13:15:09]MH_I2C_Read... [13:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:09]Read from MH i2c: E2 17 00 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: E2 17 00 91 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [13:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:15:09]wFMCommunicate OK [13:15:09]requested_item fd.num is exist - process it [13:15:09]SAM_PROTO_GetFieldsCounters [13:15:09]wFMCommunicate request_size=4 [13:15:09]MH_SAM_APDU [13:15:09]CAPDU: 80 13 00 00 [13:15:09]Write to MH i2c: E2 08 00 92 12 80 13 00 00 00 00 00 00 20 [13:15:09]Write i2c OK [13:15:09]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 62 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 62 00 92 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [13:15:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:10]wFMCommunicate OK [13:15:10]SAM_PROTO_GetFieldsCounters done [13:15:10]requested_item shift.num is exist - process it [13:15:10]requested_item shift.opened is exist - process it [13:15:10]req_shift_opened [13:15:10]FM_GetShiftState [13:15:10]SAM_PROTO_GetShiftState [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 13 01 00 [13:15:10]Write to MH i2c: E2 08 00 93 12 80 13 01 00 00 00 00 00 22 [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 0E 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 0E 00 93 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0A [13:15:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:15:10]wFMCommunicate OK [13:15:10]SAM_PROTO_GetShiftState done [13:15:10]FM_GetShiftState done [13:15:10]req_shift_opened done [13:15:10]requested_item shift.open_date is exist - process it [13:15:10]req_shift_open_date [13:15:10]req_shift_open_date done [13:15:10]produce_requested_data done [13:15:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188727,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:15:10]process_action_free close_receipt [13:15:10]json_value_free [13:15:10]json_value_free done [13:15:10]process_json_proto returns [13:15:10]Send response to host [13:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188727,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:15:10]free response buf [13:15:10]execute_script done [13:15:10]execute_script returns [13:15:10]free content buf [13:15:10]Sock 9.Close socket [13:15:10]Sock 9.Thread stoped [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:42]accept exits with 7 [13:15:42]New connection [13:15:42]New thread 3067018596 created [13:15:42]Thread 3067161956 joined [13:15:42]Waiting for new connection... [13:15:42] Sock 7.Parse request [13:15:42]Sock 7.Check first char [13:15:42]Sock 7.First char is OK [13:15:42]request: POST /json_proto HTTP/1.0 [13:15:42]Method: POST [13:15:42]URL: /json_proto [13:15:42]Method is POST - this is cgi request [13:15:42]url: /json_proto [13:15:42]query_string will be loaded in cgi processing [13:15:42]execute_cgi json_proto POST (null) [13:15:42]execute_cgi path=json_proto method=POST [13:15:42]POST find Content-Length [13:15:42]Host: 172.17.42.131:8080 [13:15:42]Content-Length: 682 [13:15:42]Content-Type: application/json [13:15:42] [13:15:42]POST finish read [13:15:42]Found Content-Length = 682 [13:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:42]execute_script... [13:15:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:42]POST & json_proto [13:15:42]process_json_proto [13:15:42]json parsed OK: [13:15:42]protocol is kg_v1.0 [13:15:42]action value=close_receipt [13:15:42]process_action close_receipt [13:15:42]cmd_close_receipt [13:15:42]MH_GetDate [13:15:42]Write to MH i2c: F0 00 00 94 12 95 [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: F0 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: F0 09 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: F0 09 00 94 12 00 FF F6 18 67 A0 18 CA 66 FA [13:15:42]GetLastDocTimeStamp 1729689306 [13:15:42]current date 1729689343 [13:15:42]FM_GetShiftState [13:15:42]SAM_PROTO_GetShiftState [13:15:42]wFMCommunicate request_size=4 [13:15:42]MH_SAM_APDU [13:15:42]CAPDU: 80 13 01 00 [13:15:42]Write to MH i2c: E2 08 00 95 12 80 13 01 00 00 00 00 00 24 [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:42]Read from MH i2c: E2 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 0E 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 0E 00 95 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0C [13:15:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:15:42]wFMCommunicate OK [13:15:42]SAM_PROTO_GetShiftState done [13:15:42]FM_GetShiftState done [13:15:42]opened in 1729642525 [13:15:42]opened+sec_in_day 1729728925 [13:15:42]quantity*price = 100015 [13:15:42]sum+1 = 100017 [13:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 186 23.10.2024 13:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188728 ФПД: 154492473727746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131543&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188728&fm=154492473727746&tin=02508201610067®Number=0000000000100030&sum=100000 [13:15:43]StoreToDocumentArchive [13:15:43]shift 462 fd 188728 [13:15:43]save to /storage/0462/doc_00188728 [13:15:43]save last doc name /storage/0462/doc_00188728 to /storage/kkm_last_doc_name [13:15:43]save OK [13:15:43]Clear old archive folders... [13:15:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:43]tlvbuf is 01C061B0 [13:15:43]SAM_PROTO_ClearQueue [13:15:43]wFMCommunicate request_size=4 [13:15:43]MH_SAM_APDU [13:15:43]CAPDU: 80 09 00 00 [13:15:43]Write to MH i2c: E2 08 00 A2 12 80 09 00 00 00 00 00 00 26 [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:43]Read from MH i2c: E2 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 03 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 03 00 A2 12 00 90 00 28 [13:15:43]RAPDU: 90 00 [13:15:43]wFMCommunicate OK [13:15:43]SAM_PROTO_ClearQueue done [13:15:43]KKMCreateOFDPacket [13:15:43]OFDProtocolAddRootSTLVToBuf [13:15:43]FM_MakeSignedData [13:15:43]FM_MakeSignedData [13:15:43]SAM_PROTO_SignData [13:15:43]wFMCommunicate request_size=4 [13:15:43]MH_SAM_APDU [13:15:43]CAPDU: 80 0D 01 02 [13:15:43]Write to MH i2c: E2 08 00 A3 12 80 0D 01 02 00 00 00 00 2E [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:43]Read from MH i2c: E2 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 03 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 03 00 A3 12 00 90 00 29 [13:15:43]RAPDU: 90 00 [13:15:43]wFMCommunicate OK [13:15:43]wFMCommunicate request_size=255 [13:15:43]MH_SAM_APDU [13:15:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 FF F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E1 02 00 35 04 06 00 8C [13:15:43]Write to MH i2c: E2 02 01 A4 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 FF F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E1 02 00 35 04 06 00 8C 00 00 3F [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]OFD Sender: No OFD packet to send [13:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:44]Read from MH i2c: E2 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 03 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [13:15:44]RAPDU: 90 00 [13:15:44]wFMCommunicate OK [13:15:44]wFMCommunicate request_size=10 [13:15:44]MH_SAM_APDU [13:15:44]CAPDU: 80 0D 02 02 05 82 95 04 5B 02 [13:15:44]Write to MH i2c: E2 0D 00 A5 12 80 0D 02 02 05 00 82 95 04 5B 02 00 00 B3 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:44]Read from MH i2c: E2 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 03 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 03 00 A5 12 00 90 00 2B [13:15:44]RAPDU: 90 00 [13:15:44]wFMCommunicate OK [13:15:44]wFMCommunicate request_size=4 [13:15:44]MH_SAM_APDU [13:15:44]CAPDU: 80 0D 03 02 [13:15:44]Write to MH i2c: E2 08 00 A6 12 80 0D 03 02 00 00 00 00 33 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:44]Read from MH i2c: E2 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 0B 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 0B 00 A6 12 00 52 36 29 FE D0 47 6A B4 90 00 18 [13:15:44]RAPDU: 52 36 29 FE D0 47 6A B4 90 00 [13:15:44]wFMCommunicate OK [13:15:44]SAM_PROTO_SignData done [13:15:44]FM_MakeSignedData done [13:15:44]CreateOFDProtocolMessage [13:15:44]wFMCommunicate request_size=4 [13:15:44]MH_SAM_APDU [13:15:44]CAPDU: 80 11 00 00 [13:15:44]Write to MH i2c: E2 08 00 A7 12 80 11 00 00 00 00 00 00 33 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:44]Read from MH i2c: E2 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 17 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 17 00 A7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [13:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:15:44]wFMCommunicate OK [13:15:44]CreateOFDProtocolMessage done [13:15:44]OFDSenderStorePacket 188728 [13:15:44]StoreOFDPacket docnum=188728 [13:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A 43 07 01 19 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 FF F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E1 02 00 35 04 06 00 8C 82 95 04 5B 02 52 36 29 FE D0 47 6A B4 [13:15:44]CheckFolder [13:15:44]dirname=/storage/ofd_packets [13:15:44]CheckFolder done [13:15:44]ProducePacketName [13:15:44]name=ofd_packets/00188728 [13:15:44]NVStorageSaveData ofd_packets/00188728 [13:15:44]File name is /storage/ofd_packets/00188728 [13:15:44]Write 301 bytes [13:15:44]NVStorageSaveData done [13:15:44]OFDSenderStorePacket done [13:15:44]KKMCreateOFDPacket done [13:15:44]NVStorageSaveData kkm_last_timestamp [13:15:44]File name is /storage/kkm_last_timestamp [13:15:44]Write 4 bytes [13:15:44]NVStorageSaveData done [13:15:44]ExternCall_PrintAddStr [13:15:44]wPrintStart [13:15:44]Write to MH i2c: 01 00 00 A8 12 BA [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 07 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 07 00 A8 12 00 00 00 00 00 FF 0F CF [13:15:44]RasterBufferAndPrint [13:15:44]line Счет N : (1)210789 [13:15:44]line ИНН: 02508201610067 [13:15:44]line Контрольно-Кассовый Чек [13:15:44]line ПРОДАЖА [13:15:44]line ТРК (МРК, ГНК) : 32 [13:15:44]line Товар: 2710124130 [13:15:44]line Аи-92-К-3 [13:15:44]line 14.950 * 66.90 [13:15:44]line = 1000.16 [13:15:44]line НДС 12% НСП 1% [13:15:44]line > о реализуемом товаре [13:15:44]line ОКРУГЛЕНИЕ: -0.16 [13:15:44]line ИТОГО: 1000.00 [13:15:44]line Внесено: 1000.00 [13:15:44]line СДАЧА: 0.00 [13:15:44]line НСП 1% : 8.85 [13:15:44]line НДС 12% : 106.21 [13:15:44]line Наличными: 1000.00 [13:15:44]line Безнал.: 0.00 [13:15:44]line Место: АЗС № 86 "Партнер Нефть" [13:15:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:15:44]line СНО: Общий режим [13:15:44]line Чек 186 23.10.2024 13:15 [13:15:44]line Смена: 462 ФФД: 1.0 [13:15:44]line ЗНМ: 0300000155 [13:15:44]line РНМ: 0000000000100030 [13:15:44]line Версия ККМ: 001 [13:15:44]line ФМ: 0000000000965340 [13:15:44]line ФД: 188728 [13:15:44]line ФПД: 154492473727746 [13:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131543&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188728&fm=154492473727746&tin=02508201610067®Number=0000000000100030&sum=100000 [13:15:44]written 0, free lines is 4095 [13:15:44]OFD Sender: Processing packet 188728 [packets to send 1062, broken 1061] [13:15:44]ProducePacketName [13:15:44]name=ofd_packets/00188728 [13:15:44]OFD Sender: To server: pG, [13:15:44]CommunicateWithHost lk.salyk.kg:30040 [13:15:44]ConnectInit lk.salyk.kg [13:15:44]Connected sock=10 [13:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A 43 07 01 19 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 FF F6 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E1 02 00 35 04 06 00 8C 82 95 04 5B 02 52 36 29 FE D0 47 6A B4 [13:15:44]Write to MH i2c: 01 00 00 D3 12 E5 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 07 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 07 00 D3 12 00 00 00 00 00 52 0C 4A [13:15:44]RasterBufferAndPrint [13:15:44]line [13:15:44]line [13:15:44]line [13:15:44]line [13:15:44]line [13:15:44]written 0, free lines is 3158 [13:15:44]MH_Cut [13:15:44]Write to MH i2c: D1 01 00 DA 12 01 BE [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: D1 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: D1 01 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: D1 01 00 DA 12 00 BD [13:15:44]Write to MH i2c: 01 00 00 DB 12 ED [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 B6 47 00 91 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E1 02 00 F4 03 04 00 E9 A0 18 67 B6 04 01 00 00 4B FD EF C2 F3 18 96 1A [13:15:44]CommunicateWithHost err = 0 [13:15:44]CheckOFDResponse [13:15:44]1017 (14) - 77093643461234 [13:15:44]1041 (16) - 0000000000965340 [13:15:44]1040 (4) - 188728 [13:15:44]1012 (4) - 23.10.2024 07:08 [13:15:44]1206 (1) - 0 [13:15:44]OFD Sender: Remove packet 188728 [13:15:44]ProducePacketName [13:15:44]name=ofd_packets/00188728 [13:15:44]NVStorageDeleteData [13:15:45]OFD Sender: No OFD packet to send [13:15:46]*** Cut start [13:15:46]*** Partial cut [13:15:46]*** CUTSNS_PIN = 1 [13:15:46]*** CUTSNS_PIN = 0 [13:15:46]*** Brake cut motor [13:15:46]Read from MH i2c: 01 [13:15:46]MH_I2C_Read... [13:15:46]*** Stop cut motor [13:15:46]*** Cut end [13:15:46]Read from MH i2c: 01 07 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: 01 07 00 DB 12 00 00 00 00 00 FF 0F 02 [13:15:46]process_action close_receipt done [13:15:46]requested_data is exist [13:15:46]produce_requested_data [13:15:46]requested_item fm.sn is exist - process it [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 11 00 00 [13:15:46]Write to MH i2c: E2 08 00 DC 12 80 11 00 00 00 00 00 00 68 [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 17 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 17 00 DC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [13:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:15:46]wFMCommunicate OK [13:15:46]requested_item fd.num is exist - process it [13:15:46]SAM_PROTO_GetFieldsCounters [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 13 00 00 [13:15:46]Write to MH i2c: E2 08 00 DD 12 80 13 00 00 00 00 00 00 6B [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 62 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 62 00 DD 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [13:15:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:46]wFMCommunicate OK [13:15:46]SAM_PROTO_GetFieldsCounters done [13:15:46]requested_item shift.num is exist - process it [13:15:46]requested_item shift.opened is exist - process it [13:15:46]req_shift_opened [13:15:46]FM_GetShiftState [13:15:46]SAM_PROTO_GetShiftState [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 13 01 00 [13:15:46]Write to MH i2c: E2 08 00 DE 12 80 13 01 00 00 00 00 00 6D [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 0E 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 0E 00 DE 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 55 [13:15:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:15:46]wFMCommunicate OK [13:15:46]SAM_PROTO_GetShiftState done [13:15:46]FM_GetShiftState done [13:15:46]req_shift_opened done [13:15:46]requested_item shift.open_date is exist - process it [13:15:46]req_shift_open_date [13:15:46]req_shift_open_date done [13:15:46]produce_requested_data done [13:15:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188728,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:15:46]process_action_free close_receipt [13:15:46]json_value_free [13:15:46]json_value_free done [13:15:46]process_json_proto returns [13:15:46]Send response to host [13:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188728,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:15:46]free response buf [13:15:46]execute_script done [13:15:46]execute_script returns [13:15:46]free content buf [13:15:46]Sock 7.Close socket [13:15:46]Sock 7.Thread stoped [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:48]accept exits with 9 [13:16:48]New connection [13:16:48]New thread 3067161956 created [13:16:48]Thread 3067018596 joined [13:16:48]Waiting for new connection... [13:16:48] Sock 9.Parse request [13:16:48]Sock 9.Check first char [13:16:48]Sock 9.First char is OK [13:16:48]request: POST /json_proto HTTP/1.0 [13:16:48]Method: POST [13:16:48]URL: /json_proto [13:16:48]Method is POST - this is cgi request [13:16:48]url: /json_proto [13:16:48]query_string will be loaded in cgi processing [13:16:48]execute_cgi json_proto POST (null) [13:16:48]execute_cgi path=json_proto method=POST [13:16:48]POST find Content-Length [13:16:48]Host: 172.17.42.131:8080 [13:16:48]Content-Length: 769 [13:16:48]Content-Type: application/json [13:16:48] [13:16:48]POST finish read [13:16:48]Found Content-Length = 769 [13:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:48]execute_script... [13:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:48]POST & json_proto [13:16:48]process_json_proto [13:16:48]json parsed OK: [13:16:48]protocol is kg_v1.0 [13:16:48]action value=close_receipt [13:16:48]process_action close_receipt [13:16:48]cmd_close_receipt [13:16:48]MH_GetDate [13:16:48]Write to MH i2c: F0 00 00 DF 12 E0 [13:16:48]Write i2c OK [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: F0 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: F0 09 00 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: F0 09 00 DF 12 00 41 F7 18 67 A0 18 CA 66 88 [13:16:48]GetLastDocTimeStamp 1729689343 [13:16:48]current date 1729689409 [13:16:48]FM_GetShiftState [13:16:48]SAM_PROTO_GetShiftState [13:16:48]wFMCommunicate request_size=4 [13:16:48]MH_SAM_APDU [13:16:48]CAPDU: 80 13 01 00 [13:16:48]Write to MH i2c: E2 08 00 E0 12 80 13 01 00 00 00 00 00 6F [13:16:48]Write i2c OK [13:16:48]MH_I2C_Read... [13:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:48]Read from MH i2c: E2 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 0E 00 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 0E 00 E0 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 57 [13:16:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:16:48]wFMCommunicate OK [13:16:48]SAM_PROTO_GetShiftState done [13:16:48]FM_GetShiftState done [13:16:48]opened in 1729642525 [13:16:48]opened+sec_in_day 1729728925 [13:16:48]quantity*price = 100021 [13:16:48]sum+1 = 100023 [13:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 187 23.10.2024 13:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188729 ФПД: 152540694711011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131649&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188729&fm=152540694711011&tin=02508201610067®Number=0000000000100030&sum=100022 [13:16:49]StoreToDocumentArchive [13:16:49]shift 462 fd 188729 [13:16:49]save to /storage/0462/doc_00188729 [13:16:49]save last doc name /storage/0462/doc_00188729 to /storage/kkm_last_doc_name [13:16:49]save OK [13:16:49]Clear old archive folders... [13:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:49]tlvbuf is 01C37180 [13:16:49]SAM_PROTO_ClearQueue [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 09 00 00 [13:16:49]Write to MH i2c: E2 08 00 ED 12 80 09 00 00 00 00 00 00 71 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 ED 12 00 90 00 73 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]SAM_PROTO_ClearQueue done [13:16:49]KKMCreateOFDPacket [13:16:49]OFDProtocolAddRootSTLVToBuf [13:16:49]FM_MakeSignedData [13:16:49]FM_MakeSignedData [13:16:49]SAM_PROTO_SignData [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 01 02 [13:16:49]Write to MH i2c: E2 08 00 EE 12 80 0D 01 02 00 00 00 00 79 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=255 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 41 F7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E1 02 00 35 04 06 00 8A [13:16:49]Write to MH i2c: E2 02 01 EF 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 41 F7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E1 02 00 35 04 06 00 8A 00 00 1C [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=10 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 02 02 05 BC 25 EC 0A E3 [13:16:49]Write to MH i2c: E2 0D 00 F0 12 80 0D 02 02 05 00 BC 25 EC 0A E3 00 00 40 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 03 02 [13:16:49]Write to MH i2c: E2 08 00 F1 12 80 0D 03 02 00 00 00 00 7E [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0B 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0B 00 F1 12 00 24 4A 94 48 AE 35 06 9F 90 00 51 [13:16:49]RAPDU: 24 4A 94 48 AE 35 06 9F 90 00 [13:16:49]wFMCommunicate OK [13:16:49]SAM_PROTO_SignData done [13:16:49]FM_MakeSignedData done [13:16:49]CreateOFDProtocolMessage [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 11 00 00 [13:16:49]Write to MH i2c: E2 08 00 F2 12 80 11 00 00 00 00 00 00 7E [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 17 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 17 00 F2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [13:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:16:49]wFMCommunicate OK [13:16:49]CreateOFDProtocolMessage done [13:16:49]OFDSenderStorePacket 188729 [13:16:49]StoreOFDPacket docnum=188729 [13:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AE 65 07 01 F1 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 41 F7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E1 02 00 35 04 06 00 8A BC 25 EC 0A E3 24 4A 94 48 AE 35 06 9F [13:16:49]CheckFolder [13:16:49]dirname=/storage/ofd_packets [13:16:49]CheckFolder done [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00188729 [13:16:49]NVStorageSaveData ofd_packets/00188729 [13:16:49]File name is /storage/ofd_packets/00188729 [13:16:49]Write 301 bytes [13:16:49]NVStorageSaveData done [13:16:49]OFDSenderStorePacket done [13:16:49]KKMCreateOFDPacket done [13:16:49]NVStorageSaveData kkm_last_timestamp [13:16:49]File name is /storage/kkm_last_timestamp [13:16:49]Write 4 bytes [13:16:49]NVStorageSaveData done [13:16:49]ExternCall_PrintAddStr [13:16:49]wPrintStart [13:16:49]Write to MH i2c: 01 00 00 F3 12 05 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 F3 12 00 00 00 00 00 FF 0F 1A [13:16:49]RasterBufferAndPrint [13:16:49]line Счет N : (1)210788 [13:16:49]line ИНН: 02508201610067 [13:16:49]line Контрольно-Кассовый Чек [13:16:49]line ПРОДАЖА [13:16:49]line ТРК (МРК, ГНК) : 13 [13:16:49]line Товар: 2710124500 [13:16:49]line Аи-95-К-3 [13:16:49]line 13.480 * 74.20 [13:16:49]line = 1000.22 [13:16:49]line НДС 12% НСП 1% [13:16:49]line > о реализуемом товаре [13:16:49]line ИТОГО: 1000.22 [13:16:49]line НСП 1% : 8.85 [13:16:49]line НДС 12% : 106.22 [13:16:49]line Наличными: 0.00 [13:16:49]line Безнал.: 1000.22 [13:16:49]line Место: АЗС № 86 "Партнер Нефть" [13:16:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:16:49]line СНО: Общий режим [13:16:49]line Чек 187 23.10.2024 13:16 [13:16:49]line Смена: 462 ФФД: 1.0 [13:16:49]line ЗНМ: 0300000155 [13:16:49]line РНМ: 0000000000100030 [13:16:49]line Версия ККМ: 001 [13:16:49]line Платежная система: Mbank [13:16:49]line ФМ: 0000000000965340 [13:16:49]line ФД: 188729 [13:16:49]line ФПД: 152540694711011 [13:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131649&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188729&fm=152540694711011&tin=02508201610067®Number=0000000000100030&sum=100022 [13:16:50]written 0, free lines is 4095 [13:16:50]OFD Sender: Processing packet 188729 [packets to send 1062, broken 1061] [13:16:50]ProducePacketName [13:16:50]name=ofd_packets/00188729 [13:16:50]OFD Sender: To server: pG, [13:16:50]CommunicateWithHost lk.salyk.kg:30040 [13:16:50]ConnectInit lk.salyk.kg [13:16:50]Connected sock=7 [13:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AE 65 07 01 F1 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 41 F7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E1 02 00 35 04 06 00 8A BC 25 EC 0A E3 24 4A 94 48 AE 35 06 9F [13:16:50]Write to MH i2c: 01 00 00 1C 13 2F [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 07 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 7C 0C BE [13:16:50]RasterBufferAndPrint [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]written 0, free lines is 3202 [13:16:50]MH_Cut [13:16:50]Write to MH i2c: D1 01 00 23 13 01 08 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 01 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 01 00 23 13 00 07 [13:16:50]Write to MH i2c: 01 00 00 24 13 37 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E CF 47 00 FA 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 36 35 33 34 30 10 04 04 00 39 E1 02 00 F4 03 04 00 2B A1 18 67 B6 04 01 00 00 7A 1F 1D 2E 2F 3F B9 47 [13:16:50]CommunicateWithHost err = 0 [13:16:50]CheckOFDResponse [13:16:50]1017 (14) - 77093643461234 [13:16:50]1041 (16) - 0000000000965340 [13:16:50]1040 (4) - 188729 [13:16:50]1012 (4) - 23.10.2024 07:09 [13:16:50]1206 (1) - 0 [13:16:50]OFD Sender: Remove packet 188729 [13:16:50]ProducePacketName [13:16:50]name=ofd_packets/00188729 [13:16:50]NVStorageDeleteData [13:16:51]OFD Sender: No OFD packet to send [13:16:51]*** Cut start [13:16:51]*** Partial cut [13:16:51]*** CUTSNS_PIN = 1 [13:16:51]*** CUTSNS_PIN = 0 [13:16:51]*** Brake cut motor [13:16:52]Read from MH i2c: 01 [13:16:52]MH_I2C_Read... [13:16:52]*** Stop cut motor [13:16:52]*** Cut end [13:16:52]Read from MH i2c: 01 07 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 FF 0F 4C [13:16:52]process_action close_receipt done [13:16:52]requested_data is exist [13:16:52]produce_requested_data [13:16:52]requested_item fm.sn is exist - process it [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 11 00 00 [13:16:52]Write to MH i2c: E2 08 00 25 13 80 11 00 00 00 00 00 00 B2 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 17 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 17 00 25 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [13:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:16:52]wFMCommunicate OK [13:16:52]requested_item fd.num is exist - process it [13:16:52]SAM_PROTO_GetFieldsCounters [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 13 00 00 [13:16:52]Write to MH i2c: E2 08 00 26 13 80 13 00 00 00 00 00 00 B5 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 62 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 62 00 26 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [13:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_GetFieldsCounters done [13:16:52]requested_item shift.num is exist - process it [13:16:52]requested_item shift.opened is exist - process it [13:16:52]req_shift_opened [13:16:52]FM_GetShiftState [13:16:52]SAM_PROTO_GetShiftState [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 13 01 00 [13:16:52]Write to MH i2c: E2 08 00 27 13 80 13 01 00 00 00 00 00 B7 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0E 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0E 00 27 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9F [13:16:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_GetShiftState done [13:16:52]FM_GetShiftState done [13:16:52]req_shift_opened done [13:16:52]requested_item shift.open_date is exist - process it [13:16:52]req_shift_open_date [13:16:52]req_shift_open_date done [13:16:52]produce_requested_data done [13:16:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188729,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:16:52]process_action_free close_receipt [13:16:52]json_value_free [13:16:52]json_value_free done [13:16:52]process_json_proto returns [13:16:52]Send response to host [13:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188729,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:16:52]free response buf [13:16:52]execute_script done [13:16:52]execute_script returns [13:16:52]free content buf [13:16:52]Sock 9.Close socket [13:16:52]Sock 9.Thread stoped [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:35]accept exits with 10 [13:17:35]New connection [13:17:35]New thread 3067018596 created [13:17:35]Thread 3067161956 joined [13:17:35]Waiting for new connection... [13:17:35] Sock 10.Parse request [13:17:35]Sock 10.Check first char [13:17:35]Sock 10.First char is OK [13:17:35]request: POST /json_proto HTTP/1.0 [13:17:35]Method: POST [13:17:35]URL: /json_proto [13:17:35]Method is POST - this is cgi request [13:17:35]url: /json_proto [13:17:35]query_string will be loaded in cgi processing [13:17:35]execute_cgi json_proto POST (null) [13:17:35]execute_cgi path=json_proto method=POST [13:17:35]POST find Content-Length [13:17:35]Host: 172.17.42.131:8080 [13:17:35]Content-Length: 767 [13:17:35]Content-Type: application/json [13:17:35] [13:17:35]POST finish read [13:17:35]Found Content-Length = 767 [13:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:35]execute_script... [13:17:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:35]POST & json_proto [13:17:35]process_json_proto [13:17:35]json parsed OK: [13:17:35]protocol is kg_v1.0 [13:17:35]action value=close_receipt [13:17:35]process_action close_receipt [13:17:35]cmd_close_receipt [13:17:35]MH_GetDate [13:17:35]Write to MH i2c: F0 00 00 28 13 2A [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: F0 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: F0 09 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: F0 09 00 28 13 00 70 F7 18 67 A0 18 CA 66 01 [13:17:35]GetLastDocTimeStamp 1729689409 [13:17:35]current date 1729689456 [13:17:35]FM_GetShiftState [13:17:35]SAM_PROTO_GetShiftState [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 13 01 00 [13:17:35]Write to MH i2c: E2 08 00 29 13 80 13 01 00 00 00 00 00 B9 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 0E 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 0E 00 29 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A1 [13:17:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:17:35]wFMCommunicate OK [13:17:35]SAM_PROTO_GetShiftState done [13:17:35]FM_GetShiftState done [13:17:35]opened in 1729642525 [13:17:35]opened+sec_in_day 1729728925 [13:17:35]quantity*price = 70044 [13:17:35]sum+1 = 70045 [13:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 188 23.10.2024 13:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188730 ФПД: 32709559882836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188730&fm=32709559882836&tin=02508201610067®Number=0000000000100030&sum=70044 [13:17:36]StoreToDocumentArchive [13:17:36]shift 462 fd 188730 [13:17:36]save to /storage/0462/doc_00188730 [13:17:36]save last doc name /storage/0462/doc_00188730 to /storage/kkm_last_doc_name [13:17:36]save OK [13:17:36]Clear old archive folders... [13:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:36]tlvbuf is 01C0C670 [13:17:36]SAM_PROTO_ClearQueue [13:17:36]wFMCommunicate request_size=4 [13:17:36]MH_SAM_APDU [13:17:36]CAPDU: 80 09 00 00 [13:17:36]Write to MH i2c: E2 08 00 36 13 80 09 00 00 00 00 00 00 BB [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:36]Read from MH i2c: E2 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 03 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 03 00 36 13 00 90 00 BD [13:17:36]RAPDU: 90 00 [13:17:36]wFMCommunicate OK [13:17:36]SAM_PROTO_ClearQueue done [13:17:36]KKMCreateOFDPacket [13:17:36]OFDProtocolAddRootSTLVToBuf [13:17:36]FM_MakeSignedData [13:17:36]FM_MakeSignedData [13:17:36]SAM_PROTO_SignData [13:17:36]wFMCommunicate request_size=4 [13:17:36]MH_SAM_APDU [13:17:36]CAPDU: 80 0D 01 02 [13:17:36]Write to MH i2c: E2 08 00 37 13 80 0D 01 02 00 00 00 00 C3 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:36]Read from MH i2c: E2 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 03 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [13:17:36]RAPDU: 90 00 [13:17:36]wFMCommunicate OK [13:17:36]wFMCommunicate request_size=255 [13:17:36]MH_SAM_APDU [13:17:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 70 F7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E1 02 00 35 04 06 00 1D [13:17:36]Write to MH i2c: E2 02 01 38 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 70 F7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E1 02 00 35 04 06 00 1D 00 00 49 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:36]Read from MH i2c: E2 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 03 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [13:17:36]RAPDU: 90 00 [13:17:36]wFMCommunicate OK [13:17:36]wFMCommunicate request_size=10 [13:17:36]MH_SAM_APDU [13:17:36]CAPDU: 80 0D 02 02 05 BF C9 B2 94 54 [13:17:36]Write to MH i2c: E2 0D 00 39 13 80 0D 02 02 05 00 BF C9 B2 94 54 00 00 F2 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:36]Read from MH i2c: E2 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 03 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [13:17:36]RAPDU: 90 00 [13:17:36]wFMCommunicate OK [13:17:36]wFMCommunicate request_size=4 [13:17:36]MH_SAM_APDU [13:17:36]CAPDU: 80 0D 03 02 [13:17:36]Write to MH i2c: E2 08 00 3A 13 80 0D 03 02 00 00 00 00 C8 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:36]Read from MH i2c: E2 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 0B 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 0B 00 3A 13 00 9E D9 A6 77 1F B8 FB B4 90 00 E3 [13:17:36]RAPDU: 9E D9 A6 77 1F B8 FB B4 90 00 [13:17:36]wFMCommunicate OK [13:17:36]SAM_PROTO_SignData done [13:17:36]FM_MakeSignedData done [13:17:36]CreateOFDProtocolMessage [13:17:36]wFMCommunicate request_size=4 [13:17:36]MH_SAM_APDU [13:17:36]CAPDU: 80 11 00 00 [13:17:36]Write to MH i2c: E2 08 00 3B 13 80 11 00 00 00 00 00 00 C8 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:37]Read from MH i2c: E2 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: E2 17 00 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: E2 17 00 3B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [13:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:17:37]wFMCommunicate OK [13:17:37]CreateOFDProtocolMessage done [13:17:37]OFDSenderStorePacket 188730 [13:17:37]StoreOFDPacket docnum=188730 [13:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 34 6F 07 01 A5 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 70 F7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E1 02 00 35 04 06 00 1D BF C9 B2 94 54 9E D9 A6 77 1F B8 FB B4 [13:17:37]CheckFolder [13:17:37]dirname=/storage/ofd_packets [13:17:37]CheckFolder done [13:17:37]ProducePacketName [13:17:37]name=ofd_packets/00188730 [13:17:37]NVStorageSaveData ofd_packets/00188730 [13:17:37]File name is /storage/ofd_packets/00188730 [13:17:37]Write 301 bytes [13:17:37]NVStorageSaveData done [13:17:37]OFDSenderStorePacket done [13:17:37]KKMCreateOFDPacket done [13:17:37]NVStorageSaveData kkm_last_timestamp [13:17:37]File name is /storage/kkm_last_timestamp [13:17:37]Write 4 bytes [13:17:37]NVStorageSaveData done [13:17:37]ExternCall_PrintAddStr [13:17:37]wPrintStart [13:17:37]Write to MH i2c: 01 00 00 3C 13 4F [13:17:37]Write i2c OK [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: 01 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: 01 07 00 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: 01 07 00 3C 13 00 00 00 00 00 FF 0F 64 [13:17:37]RasterBufferAndPrint [13:17:37]line Счет N : (1)210790 [13:17:37]line ИНН: 02508201610067 [13:17:37]line Контрольно-Кассовый Чек [13:17:37]line ПРОДАЖА [13:17:37]line ТРК (МРК, ГНК) : 42 [13:17:37]line Товар: 2710124130 [13:17:37]line Аи-92-К-3 [13:17:37]line 10.470 * 66.90 [13:17:37]line = 700.44 [13:17:37]line НДС 12% НСП 1% [13:17:37]line > о реализуемом товаре [13:17:37]line ИТОГО: 700.44 [13:17:37]line НСП 1% : 6.20 [13:17:37]line НДС 12% : 74.38 [13:17:37]line Наличными: 0.00 [13:17:37]line Безнал.: 700.44 [13:17:37]line Место: АЗС № 86 "Партнер Нефть" [13:17:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:17:37]line СНО: Общий режим [13:17:37]line Чек 188 23.10.2024 13:17 [13:17:37]line Смена: 462 ФФД: 1.0 [13:17:37]line ЗНМ: 0300000155 [13:17:37]line РНМ: 0000000000100030 [13:17:37]line Версия ККМ: 001 [13:17:37]line Платежная система: Mbank [13:17:37]line ФМ: 0000000000965340 [13:17:37]line ФД: 188730 [13:17:37]line ФПД: 32709559882836 [13:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188730&fm=32709559882836&tin=02508201610067®Number=0000000000100030&sum=70044 [13:17:37]written 0, free lines is 4095 [13:17:37]OFD Sender: Processing packet 188730 [packets to send 1062, broken 1061] [13:17:37]ProducePacketName [13:17:37]name=ofd_packets/00188730 [13:17:37]OFD Sender: To server: pG, [13:17:37]CommunicateWithHost lk.salyk.kg:30040 [13:17:37]ConnectInit lk.salyk.kg [13:17:37]Connected sock=9 [13:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 34 6F 07 01 A5 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 70 F7 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E1 02 00 35 04 06 00 1D BF C9 B2 94 54 9E D9 A6 77 1F B8 FB B4 [13:17:37]Write to MH i2c: 01 00 00 65 13 78 [13:17:37]Write i2c OK [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: 01 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: 01 07 00 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: 01 07 00 65 13 00 00 00 00 00 7E 0C 09 [13:17:37]RasterBufferAndPrint [13:17:37]line [13:17:37]line [13:17:37]line [13:17:37]line [13:17:37]line [13:17:37]written 0, free lines is 3203 [13:17:37]MH_Cut [13:17:37]Write to MH i2c: D1 01 00 6C 13 01 51 [13:17:37]Write i2c OK [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: D1 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: D1 01 00 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: D1 01 00 6C 13 00 50 [13:17:37]Write to MH i2c: 01 00 00 6D 13 80 [13:17:37]Write i2c OK [13:17:37]MH_I2C_Read... [13:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 51 27 47 00 5E 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E1 02 00 F4 03 04 00 5A A1 18 67 B6 04 01 00 00 95 01 67 B0 DE 2F 6D 12 [13:17:37]CommunicateWithHost err = 0 [13:17:37]CheckOFDResponse [13:17:37]1017 (14) - 77093643461234 [13:17:37]1041 (16) - 0000000000965340 [13:17:37]1040 (4) - 188730 [13:17:37]1012 (4) - 23.10.2024 07:10 [13:17:37]1206 (1) - 0 [13:17:37]OFD Sender: Remove packet 188730 [13:17:37]ProducePacketName [13:17:37]name=ofd_packets/00188730 [13:17:37]NVStorageDeleteData [13:17:38]OFD Sender: No OFD packet to send [13:17:38]*** Cut start [13:17:38]*** Partial cut [13:17:38]*** CUTSNS_PIN = 1 [13:17:38]*** CUTSNS_PIN = 0 [13:17:39]*** Brake cut motor [13:17:39]Read from MH i2c: 01 [13:17:39]MH_I2C_Read... [13:17:39]*** Stop cut motor [13:17:39]*** Cut end [13:17:39]Read from MH i2c: 01 07 00 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 FF 0F 95 [13:17:39]process_action close_receipt done [13:17:39]requested_data is exist [13:17:39]produce_requested_data [13:17:39]requested_item fm.sn is exist - process it [13:17:39]wFMCommunicate request_size=4 [13:17:39]MH_SAM_APDU [13:17:39]CAPDU: 80 11 00 00 [13:17:39]Write to MH i2c: E2 08 00 6E 13 80 11 00 00 00 00 00 00 FB [13:17:39]Write i2c OK [13:17:39]MH_I2C_Read... [13:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:39]Read from MH i2c: E2 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: E2 17 00 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: E2 17 00 6E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [13:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:17:39]wFMCommunicate OK [13:17:39]requested_item fd.num is exist - process it [13:17:39]SAM_PROTO_GetFieldsCounters [13:17:39]wFMCommunicate request_size=4 [13:17:39]MH_SAM_APDU [13:17:39]CAPDU: 80 13 00 00 [13:17:39]Write to MH i2c: E2 08 00 6F 13 80 13 00 00 00 00 00 00 FE [13:17:39]Write i2c OK [13:17:39]MH_I2C_Read... [13:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:39]Read from MH i2c: E2 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: E2 62 00 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: E2 62 00 6F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [13:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:39]wFMCommunicate OK [13:17:39]SAM_PROTO_GetFieldsCounters done [13:17:39]requested_item shift.num is exist - process it [13:17:39]requested_item shift.opened is exist - process it [13:17:39]req_shift_opened [13:17:39]FM_GetShiftState [13:17:39]SAM_PROTO_GetShiftState [13:17:39]wFMCommunicate request_size=4 [13:17:39]MH_SAM_APDU [13:17:39]CAPDU: 80 13 01 00 [13:17:39]Write to MH i2c: E2 08 00 70 13 80 13 01 00 00 00 00 00 00 [13:17:39]Write i2c OK [13:17:39]MH_I2C_Read... [13:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:39]Read from MH i2c: E2 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: E2 0E 00 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: E2 0E 00 70 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E8 [13:17:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:17:39]wFMCommunicate OK [13:17:39]SAM_PROTO_GetShiftState done [13:17:39]FM_GetShiftState done [13:17:39]req_shift_opened done [13:17:39]requested_item shift.open_date is exist - process it [13:17:39]req_shift_open_date [13:17:39]req_shift_open_date done [13:17:39]produce_requested_data done [13:17:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188730,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:17:39]process_action_free close_receipt [13:17:39]json_value_free [13:17:39]json_value_free done [13:17:39]process_json_proto returns [13:17:39]Send response to host [13:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188730,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:17:39]free response buf [13:17:39]execute_script done [13:17:39]execute_script returns [13:17:39]free content buf [13:17:39]Sock 10.Close socket [13:17:39]Sock 10.Thread stoped [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:03]accept exits with 7 [13:22:03]New connection [13:22:03]New thread 3067161956 created [13:22:03]Thread 3067018596 joined [13:22:03]Waiting for new connection... [13:22:03] Sock 7.Parse request [13:22:03]Sock 7.Check first char [13:22:03]Sock 7.First char is OK [13:22:03]request: POST /json_proto HTTP/1.0 [13:22:03]Method: POST [13:22:03]URL: /json_proto [13:22:03]Method is POST - this is cgi request [13:22:03]url: /json_proto [13:22:03]query_string will be loaded in cgi processing [13:22:03]execute_cgi json_proto POST (null) [13:22:03]execute_cgi path=json_proto method=POST [13:22:03]POST find Content-Length [13:22:03]Host: 172.17.42.131:8080 [13:22:03]Content-Length: 769 [13:22:03]Content-Type: application/json [13:22:03] [13:22:03]POST finish read [13:22:03]Found Content-Length = 769 [13:22:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:03]execute_script... [13:22:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:03]POST & json_proto [13:22:03]process_json_proto [13:22:03]json parsed OK: [13:22:03]protocol is kg_v1.0 [13:22:03]action value=close_receipt [13:22:03]process_action close_receipt [13:22:03]cmd_close_receipt [13:22:03]MH_GetDate [13:22:03]Write to MH i2c: F0 00 00 71 13 73 [13:22:03]Write i2c OK [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: F0 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: F0 09 00 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: F0 09 00 71 13 00 7C F8 18 67 A0 18 CA 66 57 [13:22:03]GetLastDocTimeStamp 1729689456 [13:22:03]current date 1729689724 [13:22:03]FM_GetShiftState [13:22:03]SAM_PROTO_GetShiftState [13:22:03]wFMCommunicate request_size=4 [13:22:03]MH_SAM_APDU [13:22:03]CAPDU: 80 13 01 00 [13:22:03]Write to MH i2c: E2 08 00 72 13 80 13 01 00 00 00 00 00 02 [13:22:03]Write i2c OK [13:22:03]MH_I2C_Read... [13:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:03]Read from MH i2c: E2 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: E2 0E 00 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: E2 0E 00 72 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EA [13:22:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:22:03]wFMCommunicate OK [13:22:03]SAM_PROTO_GetShiftState done [13:22:03]FM_GetShiftState done [13:22:03]opened in 1729642525 [13:22:03]opened+sec_in_day 1729728925 [13:22:03]quantity*price = 200043 [13:22:03]sum+1 = 200044 [13:22:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 189 23.10.2024 13:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188731 ФПД: 83097419399006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132204&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188731&fm=83097419399006&tin=02508201610067®Number=0000000000100030&sum=200043 [13:22:04]StoreToDocumentArchive [13:22:04]shift 462 fd 188731 [13:22:04]save to /storage/0462/doc_00188731 [13:22:04]save last doc name /storage/0462/doc_00188731 to /storage/kkm_last_doc_name [13:22:04]save OK [13:22:04]Clear old archive folders... [13:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:04]tlvbuf is 01C467E0 [13:22:04]SAM_PROTO_ClearQueue [13:22:04]wFMCommunicate request_size=4 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 09 00 00 [13:22:04]Write to MH i2c: E2 08 00 7F 13 80 09 00 00 00 00 00 00 04 [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 03 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 03 00 7F 13 00 90 00 06 [13:22:04]RAPDU: 90 00 [13:22:04]wFMCommunicate OK [13:22:04]SAM_PROTO_ClearQueue done [13:22:04]KKMCreateOFDPacket [13:22:04]OFDProtocolAddRootSTLVToBuf [13:22:04]FM_MakeSignedData [13:22:04]FM_MakeSignedData [13:22:04]SAM_PROTO_SignData [13:22:04]wFMCommunicate request_size=4 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 0D 01 02 [13:22:04]Write to MH i2c: E2 08 00 80 13 80 0D 01 02 00 00 00 00 0C [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 03 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 03 00 80 13 00 90 00 07 [13:22:04]RAPDU: 90 00 [13:22:04]wFMCommunicate OK [13:22:04]wFMCommunicate request_size=255 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7C F8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E1 02 00 35 04 06 00 4B [13:22:04]Write to MH i2c: E2 02 01 81 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7C F8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E1 02 00 35 04 06 00 4B 00 00 65 [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 03 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 03 00 81 13 00 90 00 08 [13:22:04]RAPDU: 90 00 [13:22:04]wFMCommunicate OK [13:22:04]wFMCommunicate request_size=10 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 0D 02 02 05 93 A0 2A 3F 5E [13:22:04]Write to MH i2c: E2 0D 00 82 13 80 0D 02 02 05 00 93 A0 2A 3F 5E 00 00 13 [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:05]Read from MH i2c: E2 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: E2 03 00 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: E2 03 00 82 13 00 90 00 09 [13:22:05]RAPDU: 90 00 [13:22:05]wFMCommunicate OK [13:22:05]wFMCommunicate request_size=4 [13:22:05]MH_SAM_APDU [13:22:05]CAPDU: 80 0D 03 02 [13:22:05]Write to MH i2c: E2 08 00 83 13 80 0D 03 02 00 00 00 00 11 [13:22:05]Write i2c OK [13:22:05]MH_I2C_Read... [13:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:05]Read from MH i2c: E2 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: E2 0B 00 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: E2 0B 00 83 13 00 C6 EA 96 9A A3 84 0F AE 90 00 D6 [13:22:05]RAPDU: C6 EA 96 9A A3 84 0F AE 90 00 [13:22:05]wFMCommunicate OK [13:22:05]SAM_PROTO_SignData done [13:22:05]FM_MakeSignedData done [13:22:05]CreateOFDProtocolMessage [13:22:05]wFMCommunicate request_size=4 [13:22:05]MH_SAM_APDU [13:22:05]CAPDU: 80 11 00 00 [13:22:05]Write to MH i2c: E2 08 00 84 13 80 11 00 00 00 00 00 00 11 [13:22:05]Write i2c OK [13:22:05]MH_I2C_Read... [13:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:05]Read from MH i2c: E2 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: E2 17 00 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: E2 17 00 84 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [13:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:22:05]wFMCommunicate OK [13:22:05]CreateOFDProtocolMessage done [13:22:05]OFDSenderStorePacket 188731 [13:22:05]StoreOFDPacket docnum=188731 [13:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F7 FA 07 01 A1 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7C F8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E1 02 00 35 04 06 00 4B 93 A0 2A 3F 5E C6 EA 96 9A A3 84 0F AE [13:22:05]CheckFolder [13:22:05]dirname=/storage/ofd_packets [13:22:05]CheckFolder done [13:22:05]ProducePacketName [13:22:05]name=ofd_packets/00188731 [13:22:05]NVStorageSaveData ofd_packets/00188731 [13:22:05]File name is /storage/ofd_packets/00188731 [13:22:05]Write 301 bytes [13:22:05]NVStorageSaveData done [13:22:05]OFDSenderStorePacket done [13:22:05]KKMCreateOFDPacket done [13:22:05]NVStorageSaveData kkm_last_timestamp [13:22:05]File name is /storage/kkm_last_timestamp [13:22:05]Write 4 bytes [13:22:05]NVStorageSaveData done [13:22:05]ExternCall_PrintAddStr [13:22:05]wPrintStart [13:22:05]Write to MH i2c: 01 00 00 85 13 98 [13:22:05]Write i2c OK [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: 01 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: 01 07 00 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 FF 0F AD [13:22:05]RasterBufferAndPrint [13:22:05]line Счет N : (1)210791 [13:22:05]line ИНН: 02508201610067 [13:22:05]line Контрольно-Кассовый Чек [13:22:05]line ПРОДАЖА [13:22:05]line ТРК (МРК, ГНК) : 43 [13:22:05]line Товар: 2710124500 [13:22:05]line Аи-95-К-3 [13:22:05]line 26.960 * 74.20 [13:22:05]line = 2000.43 [13:22:05]line НДС 12% НСП 1% [13:22:05]line > о реализуемом товаре [13:22:05]line ИТОГО: 2000.43 [13:22:05]line НСП 1% : 17.70 [13:22:05]line НДС 12% : 212.43 [13:22:05]line Наличными: 0.00 [13:22:05]line Безнал.: 2000.43 [13:22:05]line Место: АЗС № 86 "Партнер Нефть" [13:22:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:22:05]line СНО: Общий режим [13:22:05]line Чек 189 23.10.2024 13:22 [13:22:05]line Смена: 462 ФФД: 1.0 [13:22:05]line ЗНМ: 0300000155 [13:22:05]line РНМ: 0000000000100030 [13:22:05]line Версия ККМ: 001 [13:22:05]line Платежная система: Mbank [13:22:05]line ФМ: 0000000000965340 [13:22:05]line ФД: 188731 [13:22:05]line ФПД: 83097419399006 [13:22:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132204&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188731&fm=83097419399006&tin=02508201610067®Number=0000000000100030&sum=200043 [13:22:05]OFD Sender: Processing packet 188731 [packets to send 1062, broken 1061] [13:22:05]ProducePacketName [13:22:05]name=ofd_packets/00188731 [13:22:05]OFD Sender: To server: pG, [13:22:05]CommunicateWithHost lk.salyk.kg:30040 [13:22:05]ConnectInit lk.salyk.kg [13:22:05]written 0, free lines is 4095 [13:22:05]Connected sock=10 [13:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F7 FA 07 01 A1 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7C F8 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E1 02 00 35 04 06 00 4B 93 A0 2A 3F 5E C6 EA 96 9A A3 84 0F AE [13:22:05]Write to MH i2c: 01 00 00 AE 13 C1 [13:22:05]Write i2c OK [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: 01 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: 01 07 00 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: 01 07 00 AE 13 00 00 00 00 00 90 0C 64 [13:22:05]RasterBufferAndPrint [13:22:05]line [13:22:05]line [13:22:05]line [13:22:05]line [13:22:05]line [13:22:05]written 0, free lines is 3220 [13:22:05]MH_Cut [13:22:05]Write to MH i2c: D1 01 00 B5 13 01 9A [13:22:05]Write i2c OK [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: D1 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: D1 01 00 [13:22:05]MH_I2C_Read... [13:22:05]Read from MH i2c: D1 01 00 B5 13 00 99 [13:22:05]Write to MH i2c: 01 00 00 B6 13 C9 [13:22:05]Write i2c OK [13:22:05]MH_I2C_Read... [13:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B2 37 47 00 4A 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 36 35 33 34 30 10 04 04 00 3B E1 02 00 F4 03 04 00 66 A2 18 67 B6 04 01 00 00 4C DD 91 F4 B6 43 70 83 [13:22:05]CommunicateWithHost err = 0 [13:22:05]CheckOFDResponse [13:22:05]1017 (14) - 77093643461234 [13:22:05]1041 (16) - 0000000000965340 [13:22:05]1040 (4) - 188731 [13:22:05]1012 (4) - 23.10.2024 07:14 [13:22:05]1206 (1) - 0 [13:22:05]OFD Sender: Remove packet 188731 [13:22:05]ProducePacketName [13:22:05]name=ofd_packets/00188731 [13:22:05]NVStorageDeleteData [13:22:06]OFD Sender: No OFD packet to send [13:22:06]*** Cut start [13:22:06]*** Partial cut [13:22:06]*** CUTSNS_PIN = 1 [13:22:06]*** CUTSNS_PIN = 0 [13:22:07]*** Brake cut motor [13:22:07]Read from MH i2c: 01 [13:22:07]MH_I2C_Read... [13:22:07]*** Stop cut motor [13:22:07]*** Cut end [13:22:07]Read from MH i2c: 01 07 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [13:22:07]process_action close_receipt done [13:22:07]requested_data is exist [13:22:07]produce_requested_data [13:22:07]requested_item fm.sn is exist - process it [13:22:07]wFMCommunicate request_size=4 [13:22:07]MH_SAM_APDU [13:22:07]CAPDU: 80 11 00 00 [13:22:07]Write to MH i2c: E2 08 00 B7 13 80 11 00 00 00 00 00 00 44 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:07]Read from MH i2c: E2 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 17 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 17 00 B7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [13:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:22:07]wFMCommunicate OK [13:22:07]requested_item fd.num is exist - process it [13:22:07]SAM_PROTO_GetFieldsCounters [13:22:07]wFMCommunicate request_size=4 [13:22:07]MH_SAM_APDU [13:22:07]CAPDU: 80 13 00 00 [13:22:07]Write to MH i2c: E2 08 00 B8 13 80 13 00 00 00 00 00 00 47 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:07]Read from MH i2c: E2 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 62 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 62 00 B8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [13:22:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:07]wFMCommunicate OK [13:22:07]SAM_PROTO_GetFieldsCounters done [13:22:07]requested_item shift.num is exist - process it [13:22:07]requested_item shift.opened is exist - process it [13:22:07]req_shift_opened [13:22:07]FM_GetShiftState [13:22:07]SAM_PROTO_GetShiftState [13:22:07]wFMCommunicate request_size=4 [13:22:07]MH_SAM_APDU [13:22:07]CAPDU: 80 13 01 00 [13:22:07]Write to MH i2c: E2 08 00 B9 13 80 13 01 00 00 00 00 00 49 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:07]Read from MH i2c: E2 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 0E 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 0E 00 B9 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 31 [13:22:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:22:07]wFMCommunicate OK [13:22:07]SAM_PROTO_GetShiftState done [13:22:07]FM_GetShiftState done [13:22:07]req_shift_opened done [13:22:07]requested_item shift.open_date is exist - process it [13:22:07]req_shift_open_date [13:22:07]req_shift_open_date done [13:22:07]produce_requested_data done [13:22:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188731,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:22:07]process_action_free close_receipt [13:22:07]json_value_free [13:22:07]json_value_free done [13:22:07]process_json_proto returns [13:22:07]Send response to host [13:22:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188731,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:22:07]free response buf [13:22:07]execute_script done [13:22:07]execute_script returns [13:22:07]free content buf [13:22:07]Sock 7.Close socket [13:22:07]Sock 7.Thread stoped [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:09]accept exits with 9 [13:25:09]New connection [13:25:09]New thread 3067018596 created [13:25:09]Thread 3067161956 joined [13:25:09]Waiting for new connection... [13:25:09] Sock 9.Parse request [13:25:09]Sock 9.Check first char [13:25:09]Sock 9.First char is OK [13:25:09]request: POST /json_proto HTTP/1.0 [13:25:09]Method: POST [13:25:09]URL: /json_proto [13:25:09]Method is POST - this is cgi request [13:25:09]url: /json_proto [13:25:09]query_string will be loaded in cgi processing [13:25:09]execute_cgi json_proto POST (null) [13:25:09]execute_cgi path=json_proto method=POST [13:25:09]POST find Content-Length [13:25:09]Host: 172.17.42.131:8080 [13:25:09]Content-Length: 678 [13:25:09]Content-Type: application/json [13:25:09] [13:25:09]POST finish read [13:25:09]Found Content-Length = 678 [13:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:09]execute_script... [13:25:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:09]POST & json_proto [13:25:09]process_json_proto [13:25:09]json parsed OK: [13:25:09]protocol is kg_v1.0 [13:25:09]action value=close_receipt [13:25:09]process_action close_receipt [13:25:09]cmd_close_receipt [13:25:09]MH_GetDate [13:25:09]Write to MH i2c: F0 00 00 BA 13 BC [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 09 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 09 00 BA 13 00 36 F9 18 67 A0 18 CA 66 5B [13:25:09]GetLastDocTimeStamp 1729689724 [13:25:09]current date 1729689910 [13:25:09]FM_GetShiftState [13:25:09]SAM_PROTO_GetShiftState [13:25:09]wFMCommunicate request_size=4 [13:25:09]MH_SAM_APDU [13:25:09]CAPDU: 80 13 01 00 [13:25:09]Write to MH i2c: E2 08 00 BB 13 80 13 01 00 00 00 00 00 4B [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:09]Read from MH i2c: E2 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: E2 0E 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: E2 0E 00 BB 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 33 [13:25:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:25:09]wFMCommunicate OK [13:25:09]SAM_PROTO_GetShiftState done [13:25:09]FM_GetShiftState done [13:25:09]opened in 1729642525 [13:25:09]opened+sec_in_day 1729728925 [13:25:09]quantity*price = 67033 [13:25:09]sum+1 = 67035 [13:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 190 23.10.2024 13:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188732 ФПД: 170115175263498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132510&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188732&fm=170115175263498&tin=02508201610067®Number=0000000000100030&sum=67000 [13:25:10]StoreToDocumentArchive [13:25:10]shift 462 fd 188732 [13:25:10]save to /storage/0462/doc_00188732 [13:25:10]save last doc name /storage/0462/doc_00188732 to /storage/kkm_last_doc_name [13:25:10]save OK [13:25:10]Clear old archive folders... [13:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:10]tlvbuf is 01C15570 [13:25:10]SAM_PROTO_ClearQueue [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 09 00 00 [13:25:10]Write to MH i2c: E2 08 00 C8 13 80 09 00 00 00 00 00 00 4D [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_ClearQueue done [13:25:10]KKMCreateOFDPacket [13:25:10]OFDProtocolAddRootSTLVToBuf [13:25:10]FM_MakeSignedData [13:25:10]FM_MakeSignedData [13:25:10]SAM_PROTO_SignData [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 01 02 [13:25:10]Write to MH i2c: E2 08 00 C9 13 80 0D 01 02 00 00 00 00 55 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=255 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 36 F9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E1 02 00 35 04 06 00 9A [13:25:10]Write to MH i2c: E2 02 01 CA 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 36 F9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E1 02 00 35 04 06 00 9A 00 00 57 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 CA 13 00 90 00 51 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=10 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 05 B8 06 97 AD 0A [13:25:10]Write to MH i2c: E2 0D 00 CB 13 80 0D 02 02 05 00 B8 06 97 AD 0A 00 00 6E [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 CB 13 00 90 00 52 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 03 02 [13:25:10]Write to MH i2c: E2 08 00 CC 13 80 0D 03 02 00 00 00 00 5A [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 0B 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 0B 00 CC 13 00 DD D6 FC 4F 19 8A 3F AF 90 00 EA [13:25:10]RAPDU: DD D6 FC 4F 19 8A 3F AF 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_SignData done [13:25:10]FM_MakeSignedData done [13:25:10]CreateOFDProtocolMessage [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 11 00 00 [13:25:10]Write to MH i2c: E2 08 00 CD 13 80 11 00 00 00 00 00 00 5A [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 CD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [13:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:25:10]wFMCommunicate OK [13:25:10]CreateOFDProtocolMessage done [13:25:10]OFDSenderStorePacket 188732 [13:25:10]StoreOFDPacket docnum=188732 [13:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DA 9F 07 01 7C 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 36 F9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E1 02 00 35 04 06 00 9A B8 06 97 AD 0A DD D6 FC 4F 19 8A 3F AF [13:25:10]CheckFolder [13:25:10]dirname=/storage/ofd_packets [13:25:10]CheckFolder done [13:25:10]ProducePacketName [13:25:10]name=ofd_packets/00188732 [13:25:10]NVStorageSaveData ofd_packets/00188732 [13:25:10]File name is /storage/ofd_packets/00188732 [13:25:10]Write 301 bytes [13:25:10]NVStorageSaveData done [13:25:10]OFDSenderStorePacket done [13:25:10]KKMCreateOFDPacket done [13:25:10]NVStorageSaveData kkm_last_timestamp [13:25:10]File name is /storage/kkm_last_timestamp [13:25:10]Write 4 bytes [13:25:10]NVStorageSaveData done [13:25:10]ExternCall_PrintAddStr [13:25:10]wPrintStart [13:25:10]Write to MH i2c: 01 00 00 CE 13 E1 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 CE 13 00 00 00 00 00 FF 0F F6 [13:25:10]RasterBufferAndPrint [13:25:10]line Счет N : (1)210792 [13:25:10]line ИНН: 02508201610067 [13:25:10]line Контрольно-Кассовый Чек [13:25:10]line ПРОДАЖА [13:25:10]line ТРК (МРК, ГНК) : 32 [13:25:10]line Товар: 2710124130 [13:25:10]line Аи-92-К-3 [13:25:10]line 10.020 * 66.90 [13:25:10]line = 670.34 [13:25:10]line НДС 12% НСП 1% [13:25:10]line > о реализуемом товаре [13:25:10]line ОКРУГЛЕНИЕ: -0.34 [13:25:10]line ИТОГО: 670.00 [13:25:10]line Внесено: 670.00 [13:25:10]line СДАЧА: 0.00 [13:25:10]line НСП 1% : 5.93 [13:25:10]line НДС 12% : 71.19 [13:25:10]line Наличными: 670.00 [13:25:10]line Безнал.: 0.00 [13:25:10]line Место: АЗС № 86 "Партнер Нефть" [13:25:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:25:10]line СНО: Общий режим [13:25:10]line Чек 190 23.10.2024 13:25 [13:25:10]line Смена: 462 ФФД: 1.0 [13:25:10]line ЗНМ: 0300000155 [13:25:10]line РНМ: 0000000000100030 [13:25:10]line Версия ККМ: 001 [13:25:10]line ФМ: 0000000000965340 [13:25:10]line ФД: 188732 [13:25:10]line ФПД: 170115175263498 [13:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132510&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188732&fm=170115175263498&tin=02508201610067®Number=0000000000100030&sum=67000 [13:25:10]written 0, free lines is 4095 [13:25:11]OFD Sender: Processing packet 188732 [packets to send 1062, broken 1061] [13:25:11]ProducePacketName [13:25:11]name=ofd_packets/00188732 [13:25:11]OFD Sender: To server: pG, [13:25:11]CommunicateWithHost lk.salyk.kg:30040 [13:25:11]ConnectInit lk.salyk.kg [13:25:11]Connected sock=10 [13:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DA 9F 07 01 7C 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 36 F9 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E1 02 00 35 04 06 00 9A B8 06 97 AD 0A DD D6 FC 4F 19 8A 3F AF [13:25:11]Write to MH i2c: 01 00 00 F9 13 0C [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 F9 13 00 00 00 00 00 50 0C 6F [13:25:11]RasterBufferAndPrint [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]written 0, free lines is 3157 [13:25:11]MH_Cut [13:25:11]Write to MH i2c: D1 01 00 00 14 01 E6 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 00 14 00 E5 [13:25:11]Write to MH i2c: 01 00 00 01 14 15 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B5 3C 47 00 E2 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E1 02 00 F4 03 04 00 20 A3 18 67 B6 04 01 00 00 86 87 59 F7 E7 3B 3F CE [13:25:11]CommunicateWithHost err = 0 [13:25:11]CheckOFDResponse [13:25:11]1017 (14) - 77093643461234 [13:25:11]1041 (16) - 0000000000965340 [13:25:11]1040 (4) - 188732 [13:25:11]1012 (4) - 23.10.2024 07:17 [13:25:11]1206 (1) - 0 [13:25:11]OFD Sender: Remove packet 188732 [13:25:11]ProducePacketName [13:25:11]name=ofd_packets/00188732 [13:25:11]NVStorageDeleteData [13:25:12]OFD Sender: No OFD packet to send [13:25:12]*** Cut start [13:25:12]*** Partial cut [13:25:12]*** CUTSNS_PIN = 1 [13:25:12]*** CUTSNS_PIN = 0 [13:25:12]*** Brake cut motor [13:25:13]Read from MH i2c: 01 [13:25:13]MH_I2C_Read... [13:25:13]*** Stop cut motor [13:25:13]*** Cut end [13:25:13]Read from MH i2c: 01 07 00 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: 01 07 00 01 14 00 00 00 00 00 FF 0F 2A [13:25:13]process_action close_receipt done [13:25:13]requested_data is exist [13:25:13]produce_requested_data [13:25:13]requested_item fm.sn is exist - process it [13:25:13]wFMCommunicate request_size=4 [13:25:13]MH_SAM_APDU [13:25:13]CAPDU: 80 11 00 00 [13:25:13]Write to MH i2c: E2 08 00 02 14 80 11 00 00 00 00 00 00 90 [13:25:13]Write i2c OK [13:25:13]MH_I2C_Read... [13:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:13]Read from MH i2c: E2 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: E2 17 00 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: E2 17 00 02 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [13:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:25:13]wFMCommunicate OK [13:25:13]requested_item fd.num is exist - process it [13:25:13]SAM_PROTO_GetFieldsCounters [13:25:13]wFMCommunicate request_size=4 [13:25:13]MH_SAM_APDU [13:25:13]CAPDU: 80 13 00 00 [13:25:13]Write to MH i2c: E2 08 00 03 14 80 13 00 00 00 00 00 00 93 [13:25:13]Write i2c OK [13:25:13]MH_I2C_Read... [13:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:13]Read from MH i2c: E2 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: E2 62 00 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: E2 62 00 03 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [13:25:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:13]wFMCommunicate OK [13:25:13]SAM_PROTO_GetFieldsCounters done [13:25:13]requested_item shift.num is exist - process it [13:25:13]requested_item shift.opened is exist - process it [13:25:13]req_shift_opened [13:25:13]FM_GetShiftState [13:25:13]SAM_PROTO_GetShiftState [13:25:13]wFMCommunicate request_size=4 [13:25:13]MH_SAM_APDU [13:25:13]CAPDU: 80 13 01 00 [13:25:13]Write to MH i2c: E2 08 00 04 14 80 13 01 00 00 00 00 00 95 [13:25:13]Write i2c OK [13:25:13]MH_I2C_Read... [13:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:13]Read from MH i2c: E2 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: E2 0E 00 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: E2 0E 00 04 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7D [13:25:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:25:13]wFMCommunicate OK [13:25:13]SAM_PROTO_GetShiftState done [13:25:13]FM_GetShiftState done [13:25:13]req_shift_opened done [13:25:13]requested_item shift.open_date is exist - process it [13:25:13]req_shift_open_date [13:25:13]req_shift_open_date done [13:25:13]produce_requested_data done [13:25:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188732,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:25:13]process_action_free close_receipt [13:25:13]json_value_free [13:25:13]json_value_free done [13:25:13]process_json_proto returns [13:25:13]Send response to host [13:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188732,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:25:13]free response buf [13:25:13]execute_script done [13:25:13]execute_script returns [13:25:13]free content buf [13:25:13]Sock 9.Close socket [13:25:13]Sock 9.Thread stoped [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:44]accept exits with 7 [13:29:44]New connection [13:29:44]New thread 3067161956 created [13:29:44]Thread 3067018596 joined [13:29:44]Waiting for new connection... [13:29:44] Sock 7.Parse request [13:29:44]Sock 7.Check first char [13:29:44]Sock 7.First char is OK [13:29:44]request: POST /json_proto HTTP/1.0 [13:29:44]Method: POST [13:29:44]URL: /json_proto [13:29:44]Method is POST - this is cgi request [13:29:44]url: /json_proto [13:29:44]query_string will be loaded in cgi processing [13:29:44]execute_cgi json_proto POST (null) [13:29:44]execute_cgi path=json_proto method=POST [13:29:44]POST find Content-Length [13:29:44]Host: 172.17.42.131:8080 [13:29:44]Content-Length: 688 [13:29:44]Content-Type: application/json [13:29:44] [13:29:44]POST finish read [13:29:44]Found Content-Length = 688 [13:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:44]execute_script... [13:29:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:44]POST & json_proto [13:29:44]process_json_proto [13:29:44]json parsed OK: [13:29:44]protocol is kg_v1.0 [13:29:44]action value=close_receipt [13:29:44]process_action close_receipt [13:29:44]cmd_close_receipt [13:29:44]MH_GetDate [13:29:44]Write to MH i2c: F0 00 00 05 14 08 [13:29:44]Write i2c OK [13:29:44]MH_I2C_Read... [13:29:44]Read from MH i2c: F0 [13:29:44]MH_I2C_Read... [13:29:44]Read from MH i2c: F0 09 00 [13:29:44]MH_I2C_Read... [13:29:44]Read from MH i2c: F0 09 00 05 14 00 49 FA 18 67 A0 18 CA 66 BB [13:29:44]GetLastDocTimeStamp 1729689910 [13:29:44]current date 1729690185 [13:29:44]FM_GetShiftState [13:29:44]SAM_PROTO_GetShiftState [13:29:44]wFMCommunicate request_size=4 [13:29:44]MH_SAM_APDU [13:29:44]CAPDU: 80 13 01 00 [13:29:44]Write to MH i2c: E2 08 00 06 14 80 13 01 00 00 00 00 00 97 [13:29:44]Write i2c OK [13:29:44]MH_I2C_Read... [13:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:44]Read from MH i2c: E2 [13:29:44]MH_I2C_Read... [13:29:44]Read from MH i2c: E2 0E 00 [13:29:44]MH_I2C_Read... [13:29:44]Read from MH i2c: E2 0E 00 06 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7F [13:29:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:29:44]wFMCommunicate OK [13:29:44]SAM_PROTO_GetShiftState done [13:29:44]FM_GetShiftState done [13:29:44]opened in 1729642525 [13:29:44]opened+sec_in_day 1729728925 [13:29:44]quantity*price = 250050 [13:29:44]sum+1 = 250052 [13:29:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 191 23.10.2024 13:29 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188733 ФПД: 232933024077042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132945&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188733&fm=232933024077042&tin=02508201610067®Number=0000000000100030&sum=250000 [13:29:45]StoreToDocumentArchive [13:29:45]shift 462 fd 188733 [13:29:45]save to /storage/0462/doc_00188733 [13:29:45]save last doc name /storage/0462/doc_00188733 to /storage/kkm_last_doc_name [13:29:45]save OK [13:29:45]Clear old archive folders... [13:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:29:45]tlvbuf is B6EF4A40 [13:29:45]SAM_PROTO_ClearQueue [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 09 00 00 [13:29:45]Write to MH i2c: E2 08 00 13 14 80 09 00 00 00 00 00 00 99 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [13:29:45]RAPDU: 90 00 [13:29:45]wFMCommunicate OK [13:29:45]SAM_PROTO_ClearQueue done [13:29:45]KKMCreateOFDPacket [13:29:45]OFDProtocolAddRootSTLVToBuf [13:29:45]FM_MakeSignedData [13:29:45]FM_MakeSignedData [13:29:45]SAM_PROTO_SignData [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 0D 01 02 [13:29:45]Write to MH i2c: E2 08 00 14 14 80 0D 01 02 00 00 00 00 A1 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:45]Read from MH i2c: E2 03 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [13:29:45]RAPDU: 90 00 [13:29:45]wFMCommunicate OK [13:29:45]wFMCommunicate request_size=255 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 49 FA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E1 02 [13:29:45]Write to MH i2c: E2 02 01 15 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 49 FA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E1 02 00 00 00 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 [13:29:46]MH_I2C_Read... [13:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:46]Read from MH i2c: E2 03 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 03 00 15 14 00 90 00 9D [13:29:46]RAPDU: 90 00 [13:29:46]wFMCommunicate OK [13:29:46]wFMCommunicate request_size=16 [13:29:46]MH_SAM_APDU [13:29:46]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D3 D9 F2 28 14 F2 [13:29:46]Write to MH i2c: E2 13 00 16 14 80 0D 02 02 0B 00 00 35 04 06 00 D3 D9 F2 28 14 F2 00 00 C5 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:46]Read from MH i2c: E2 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 03 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 03 00 16 14 00 90 00 9E [13:29:46]RAPDU: 90 00 [13:29:46]wFMCommunicate OK [13:29:46]wFMCommunicate request_size=4 [13:29:46]MH_SAM_APDU [13:29:46]CAPDU: 80 0D 03 02 [13:29:46]Write to MH i2c: E2 08 00 17 14 80 0D 03 02 00 00 00 00 A6 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:46]Read from MH i2c: E2 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 0B 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 0B 00 17 14 00 71 DA EE C9 ED D4 C0 C7 90 00 F1 [13:29:46]RAPDU: 71 DA EE C9 ED D4 C0 C7 90 00 [13:29:46]wFMCommunicate OK [13:29:46]SAM_PROTO_SignData done [13:29:46]FM_MakeSignedData done [13:29:46]CreateOFDProtocolMessage [13:29:46]wFMCommunicate request_size=4 [13:29:46]MH_SAM_APDU [13:29:46]CAPDU: 80 11 00 00 [13:29:46]Write to MH i2c: E2 08 00 18 14 80 11 00 00 00 00 00 00 A6 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:46]Read from MH i2c: E2 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 17 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 17 00 18 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [13:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:29:46]wFMCommunicate OK [13:29:46]CreateOFDProtocolMessage done [13:29:46]OFDSenderStorePacket 188733 [13:29:46]StoreOFDPacket docnum=188733 [13:29:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3E BA 0D 01 0A E2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 49 FA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E1 02 00 35 04 06 00 D3 D9 F2 28 14 F2 71 DA EE C9 ED D4 C0 C7 [13:29:46]CheckFolder [13:29:46]dirname=/storage/ofd_packets [13:29:46]CheckFolder done [13:29:46]ProducePacketName [13:29:46]name=ofd_packets/00188733 [13:29:46]NVStorageSaveData ofd_packets/00188733 [13:29:46]File name is /storage/ofd_packets/00188733 [13:29:46]Write 307 bytes [13:29:46]NVStorageSaveData done [13:29:46]OFDSenderStorePacket done [13:29:46]KKMCreateOFDPacket done [13:29:46]NVStorageSaveData kkm_last_timestamp [13:29:46]File name is /storage/kkm_last_timestamp [13:29:46]Write 4 bytes [13:29:46]NVStorageSaveData done [13:29:46]ExternCall_PrintAddStr [13:29:46]wPrintStart [13:29:46]Write to MH i2c: 01 00 00 19 14 2D [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 07 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 07 00 19 14 00 00 00 00 00 FF 0F 42 [13:29:46]RasterBufferAndPrint [13:29:46]line Счет N : (1)210793 [13:29:46]line ИНН: 02508201610067 [13:29:46]line Контрольно-Кассовый Чек [13:29:46]line ПРОДАЖА [13:29:46]line ТРК (МРК, ГНК) : 41 [13:29:46]line Товар: 2710194210 [13:29:46]line D-ENERGY ДТ-К-5 [13:29:46]line 32.390 * 77.20 [13:29:46]line = 2500.51 [13:29:46]line НДС 12% НСП 1% [13:29:46]line > о реализуемом товаре [13:29:46]line ОКРУГЛЕНИЕ: -0.51 [13:29:46]line ИТОГО: 2500.00 [13:29:46]line Внесено: 2500.00 [13:29:46]line СДАЧА: 0.00 [13:29:46]line НСП 1% : 22.13 [13:29:46]line НДС 12% : 265.54 [13:29:46]line Наличными: 2500.00 [13:29:46]line Безнал.: 0.00 [13:29:46]line Место: АЗС № 86 "Партнер Нефть" [13:29:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:29:46]line СНО: Общий режим [13:29:46]line Чек 191 23.10.2024 13:29 [13:29:46]line Смена: 462 ФФД: 1.0 [13:29:46]line ЗНМ: 0300000155 [13:29:46]line РНМ: 0000000000100030 [13:29:46]line Версия ККМ: 001 [13:29:46]line ФМ: 0000000000965340 [13:29:46]line ФД: 188733 [13:29:46]line ФПД: 232933024077042 [13:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132945&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188733&fm=232933024077042&tin=02508201610067®Number=0000000000100030&sum=250000 [13:29:46]OFD Sender: Processing packet 188733 [packets to send 1062, broken 1061] [13:29:46]ProducePacketName [13:29:46]name=ofd_packets/00188733 [13:29:46]OFD Sender: To server: pG, [13:29:46]CommunicateWithHost lk.salyk.kg:30040 [13:29:46]ConnectInit lk.salyk.kg [13:29:46]written 0, free lines is 4095 [13:29:46]Connected sock=10 [13:29:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3E BA 0D 01 0A E2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 49 FA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E1 02 00 35 04 06 00 D3 D9 F2 28 14 F2 71 DA EE C9 ED D4 C0 C7 [13:29:46]Write to MH i2c: 01 00 00 44 14 58 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 07 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 07 00 44 14 00 00 00 00 00 57 0C C2 [13:29:46]RasterBufferAndPrint [13:29:46]line [13:29:46]line [13:29:46]line [13:29:46]line [13:29:46]line [13:29:46]written 0, free lines is 3162 [13:29:46]MH_Cut [13:29:46]Write to MH i2c: D1 01 00 4B 14 01 31 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: D1 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: D1 01 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: D1 01 00 4B 14 00 30 [13:29:46]Write to MH i2c: 01 00 00 4C 14 60 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 42 A7 47 00 48 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E1 02 00 F4 03 04 00 34 A4 18 67 B6 04 01 00 00 C2 C3 07 24 94 A4 D2 FA [13:29:47]CommunicateWithHost err = 0 [13:29:47]CheckOFDResponse [13:29:47]1017 (14) - 77093643461234 [13:29:47]1041 (16) - 0000000000965340 [13:29:47]1040 (4) - 188733 [13:29:47]1012 (4) - 23.10.2024 07:22 [13:29:47]1206 (1) - 0 [13:29:47]OFD Sender: Remove packet 188733 [13:29:47]ProducePacketName [13:29:47]name=ofd_packets/00188733 [13:29:47]NVStorageDeleteData [13:29:47]OFD Sender: No OFD packet to send [13:29:48]*** Cut start [13:29:48]*** Partial cut [13:29:48]*** CUTSNS_PIN = 1 [13:29:48]*** CUTSNS_PIN = 0 [13:29:48]*** Brake cut motor [13:29:48]Read from MH i2c: 01 [13:29:48]MH_I2C_Read... [13:29:48]*** Stop cut motor [13:29:48]*** Cut end [13:29:48]Read from MH i2c: 01 07 00 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: 01 07 00 4C 14 00 00 00 00 00 FF 0F 75 [13:29:48]process_action close_receipt done [13:29:48]requested_data is exist [13:29:48]produce_requested_data [13:29:48]requested_item fm.sn is exist - process it [13:29:48]wFMCommunicate request_size=4 [13:29:48]MH_SAM_APDU [13:29:48]CAPDU: 80 11 00 00 [13:29:48]Write to MH i2c: E2 08 00 4D 14 80 11 00 00 00 00 00 00 DB [13:29:48]Write i2c OK [13:29:48]MH_I2C_Read... [13:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:48]Read from MH i2c: E2 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: E2 17 00 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: E2 17 00 4D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 29 [13:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:29:48]wFMCommunicate OK [13:29:48]requested_item fd.num is exist - process it [13:29:48]SAM_PROTO_GetFieldsCounters [13:29:48]wFMCommunicate request_size=4 [13:29:48]MH_SAM_APDU [13:29:48]CAPDU: 80 13 00 00 [13:29:48]Write to MH i2c: E2 08 00 4E 14 80 13 00 00 00 00 00 00 DE [13:29:48]Write i2c OK [13:29:48]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:49]Read from MH i2c: E2 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 62 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 62 00 4E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [13:29:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:49]wFMCommunicate OK [13:29:49]SAM_PROTO_GetFieldsCounters done [13:29:49]requested_item shift.num is exist - process it [13:29:49]requested_item shift.opened is exist - process it [13:29:49]req_shift_opened [13:29:49]FM_GetShiftState [13:29:49]SAM_PROTO_GetShiftState [13:29:49]wFMCommunicate request_size=4 [13:29:49]MH_SAM_APDU [13:29:49]CAPDU: 80 13 01 00 [13:29:49]Write to MH i2c: E2 08 00 4F 14 80 13 01 00 00 00 00 00 E0 [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:49]Read from MH i2c: E2 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 0E 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 0E 00 4F 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C8 [13:29:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:29:49]wFMCommunicate OK [13:29:49]SAM_PROTO_GetShiftState done [13:29:49]FM_GetShiftState done [13:29:49]req_shift_opened done [13:29:49]requested_item shift.open_date is exist - process it [13:29:49]req_shift_open_date [13:29:49]req_shift_open_date done [13:29:49]produce_requested_data done [13:29:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188733,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:29:49]process_action_free close_receipt [13:29:49]json_value_free [13:29:49]json_value_free done [13:29:49]process_json_proto returns [13:29:49]Send response to host [13:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188733,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:29:49]free response buf [13:29:49]execute_script done [13:29:49]execute_script returns [13:29:49]free content buf [13:29:49]Sock 7.Close socket [13:29:49]Sock 7.Thread stoped [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:15]accept exits with 9 [13:31:15]New connection [13:31:15]New thread 3067018596 created [13:31:15]Thread 3067161956 joined [13:31:15]Waiting for new connection... [13:31:15] Sock 9.Parse request [13:31:15]Sock 9.Check first char [13:31:15]Sock 9.First char is OK [13:31:15]request: POST /json_proto HTTP/1.0 [13:31:15]Method: POST [13:31:15]URL: /json_proto [13:31:15]Method is POST - this is cgi request [13:31:15]url: /json_proto [13:31:15]query_string will be loaded in cgi processing [13:31:15]execute_cgi json_proto POST (null) [13:31:15]execute_cgi path=json_proto method=POST [13:31:15]POST find Content-Length [13:31:15]Host: 172.17.42.131:8080 [13:31:15]Content-Length: 679 [13:31:15]Content-Type: application/json [13:31:15] [13:31:15]POST finish read [13:31:15]Found Content-Length = 679 [13:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:15]execute_script... [13:31:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:15]POST & json_proto [13:31:15]process_json_proto [13:31:15]json parsed OK: [13:31:15]protocol is kg_v1.0 [13:31:15]action value=close_receipt [13:31:15]process_action close_receipt [13:31:15]cmd_close_receipt [13:31:15]MH_GetDate [13:31:15]Write to MH i2c: F0 00 00 50 14 53 [13:31:15]Write i2c OK [13:31:15]MH_I2C_Read... [13:31:15]Read from MH i2c: F0 [13:31:15]MH_I2C_Read... [13:31:15]Read from MH i2c: F0 09 00 [13:31:15]MH_I2C_Read... [13:31:15]Read from MH i2c: F0 09 00 50 14 00 A4 FA 18 67 A0 18 CA 66 61 [13:31:15]GetLastDocTimeStamp 1729690185 [13:31:15]current date 1729690276 [13:31:15]FM_GetShiftState [13:31:15]SAM_PROTO_GetShiftState [13:31:15]wFMCommunicate request_size=4 [13:31:15]MH_SAM_APDU [13:31:15]CAPDU: 80 13 01 00 [13:31:15]Write to MH i2c: E2 08 00 51 14 80 13 01 00 00 00 00 00 E2 [13:31:15]Write i2c OK [13:31:15]MH_I2C_Read... [13:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:15]Read from MH i2c: E2 [13:31:15]MH_I2C_Read... [13:31:15]Read from MH i2c: E2 0E 00 [13:31:15]MH_I2C_Read... [13:31:15]Read from MH i2c: E2 0E 00 51 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CA [13:31:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:31:15]wFMCommunicate OK [13:31:15]SAM_PROTO_GetShiftState done [13:31:15]FM_GetShiftState done [13:31:15]opened in 1729642525 [13:31:15]opened+sec_in_day 1729728925 [13:31:15]quantity*price = 200025 [13:31:15]sum+1 = 200026 [13:31:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 192 23.10.2024 13:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188734 ФПД: 161370910400892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188734&fm=161370910400892&tin=02508201610067®Number=0000000000100030&sum=200000 [13:31:16]StoreToDocumentArchive [13:31:16]shift 462 fd 188734 [13:31:16]save to /storage/0462/doc_00188734 [13:31:16]save last doc name /storage/0462/doc_00188734 to /storage/kkm_last_doc_name [13:31:16]save OK [13:31:16]Clear old archive folders... [13:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:31:16]tlvbuf is 01C36E60 [13:31:16]SAM_PROTO_ClearQueue [13:31:16]wFMCommunicate request_size=4 [13:31:16]MH_SAM_APDU [13:31:16]CAPDU: 80 09 00 00 [13:31:16]Write to MH i2c: E2 08 00 5E 14 80 09 00 00 00 00 00 00 E4 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:16]Read from MH i2c: E2 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 03 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 03 00 5E 14 00 90 00 E6 [13:31:16]RAPDU: 90 00 [13:31:16]wFMCommunicate OK [13:31:16]SAM_PROTO_ClearQueue done [13:31:16]KKMCreateOFDPacket [13:31:16]OFDProtocolAddRootSTLVToBuf [13:31:16]FM_MakeSignedData [13:31:16]FM_MakeSignedData [13:31:16]SAM_PROTO_SignData [13:31:16]wFMCommunicate request_size=4 [13:31:16]MH_SAM_APDU [13:31:16]CAPDU: 80 0D 01 02 [13:31:16]Write to MH i2c: E2 08 00 5F 14 80 0D 01 02 00 00 00 00 EC [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:16]Read from MH i2c: E2 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 03 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [13:31:16]RAPDU: 90 00 [13:31:16]wFMCommunicate OK [13:31:16]wFMCommunicate request_size=255 [13:31:16]MH_SAM_APDU [13:31:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A4 FA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E1 02 00 35 04 06 00 92 C4 17 CA [13:31:16]Write to MH i2c: E2 02 01 60 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A4 FA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E1 02 00 35 04 06 00 92 C4 17 CA 00 00 49 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:16]Read from MH i2c: E2 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 03 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 03 00 60 14 00 90 00 E8 [13:31:16]RAPDU: 90 00 [13:31:16]wFMCommunicate OK [13:31:16]wFMCommunicate request_size=7 [13:31:16]MH_SAM_APDU [13:31:16]CAPDU: 80 0D 02 02 02 A1 7C [13:31:16]Write to MH i2c: E2 0A 00 61 14 80 0D 02 02 02 00 A1 7C 00 00 10 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:16]Read from MH i2c: E2 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 03 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 03 00 61 14 00 90 00 E9 [13:31:16]RAPDU: 90 00 [13:31:16]wFMCommunicate OK [13:31:16]wFMCommunicate request_size=4 [13:31:16]MH_SAM_APDU [13:31:16]CAPDU: 80 0D 03 02 [13:31:16]Write to MH i2c: E2 08 00 62 14 80 0D 03 02 00 00 00 00 F1 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:16]Read from MH i2c: E2 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 0B 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 0B 00 62 14 00 D3 A8 E2 8F D5 53 97 1F 90 00 BC [13:31:16]RAPDU: D3 A8 E2 8F D5 53 97 1F 90 00 [13:31:16]wFMCommunicate OK [13:31:16]SAM_PROTO_SignData done [13:31:16]FM_MakeSignedData done [13:31:16]CreateOFDProtocolMessage [13:31:16]wFMCommunicate request_size=4 [13:31:16]MH_SAM_APDU [13:31:16]CAPDU: 80 11 00 00 [13:31:16]Write to MH i2c: E2 08 00 63 14 80 11 00 00 00 00 00 00 F1 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:16]Read from MH i2c: E2 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 17 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 17 00 63 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [13:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:31:16]wFMCommunicate OK [13:31:16]CreateOFDProtocolMessage done [13:31:16]OFDSenderStorePacket 188734 [13:31:16]StoreOFDPacket docnum=188734 [13:31:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 B9 33 04 01 24 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A4 FA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E1 02 00 35 04 06 00 92 C4 17 CA A1 7C D3 A8 E2 8F D5 53 97 1F [13:31:16]CheckFolder [13:31:16]dirname=/storage/ofd_packets [13:31:16]CheckFolder done [13:31:16]ProducePacketName [13:31:16]name=ofd_packets/00188734 [13:31:16]NVStorageSaveData ofd_packets/00188734 [13:31:16]File name is /storage/ofd_packets/00188734 [13:31:16]Write 298 bytes [13:31:16]NVStorageSaveData done [13:31:16]OFDSenderStorePacket done [13:31:16]KKMCreateOFDPacket done [13:31:16]NVStorageSaveData kkm_last_timestamp [13:31:16]File name is /storage/kkm_last_timestamp [13:31:16]Write 4 bytes [13:31:16]NVStorageSaveData done [13:31:16]ExternCall_PrintAddStr [13:31:16]wPrintStart [13:31:16]Write to MH i2c: 01 00 00 64 14 78 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: 01 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: 01 07 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: 01 07 00 64 14 00 00 00 00 00 FF 0F 8D [13:31:16]RasterBufferAndPrint [13:31:16]line Счет N : (1)210794 [13:31:16]line ИНН: 02508201610067 [13:31:16]line Контрольно-Кассовый Чек [13:31:16]line ПРОДАЖА [13:31:16]line ТРК (МРК, ГНК) : 51 [13:31:16]line Товар: 2710194210 [13:31:16]line ДТ-К-5 [13:31:16]line 26.250 * 76.20 [13:31:16]line = 2000.25 [13:31:16]line НДС 12% НСП 1% [13:31:16]line > о реализуемом товаре [13:31:16]line ОКРУГЛЕНИЕ: -0.25 [13:31:16]line ИТОГО: 2000.00 [13:31:16]line Внесено: 2000.00 [13:31:16]line СДАЧА: 0.00 [13:31:16]line НСП 1% : 17.70 [13:31:16]line НДС 12% : 212.42 [13:31:16]line Наличными: 2000.00 [13:31:16]line Безнал.: 0.00 [13:31:16]line Место: АЗС № 86 "Партнер Нефть" [13:31:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:31:16]line СНО: Общий режим [13:31:16]line Чек 192 23.10.2024 13:31 [13:31:16]line Смена: 462 ФФД: 1.0 [13:31:16]line ЗНМ: 0300000155 [13:31:16]line РНМ: 0000000000100030 [13:31:16]line Версия ККМ: 001 [13:31:16]line ФМ: 0000000000965340 [13:31:16]line ФД: 188734 [13:31:16]line ФПД: 161370910400892 [13:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188734&fm=161370910400892&tin=02508201610067®Number=0000000000100030&sum=200000 [13:31:16]written 0, free lines is 4095 [13:31:16]OFD Sender: Processing packet 188734 [packets to send 1062, broken 1061] [13:31:16]ProducePacketName [13:31:16]name=ofd_packets/00188734 [13:31:16]OFD Sender: To server: pG, [13:31:16]CommunicateWithHost lk.salyk.kg:30040 [13:31:16]ConnectInit lk.salyk.kg [13:31:17]Connected sock=7 [13:31:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 B9 33 04 01 24 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A4 FA 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E1 02 00 35 04 06 00 92 C4 17 CA A1 7C D3 A8 E2 8F D5 53 97 1F [13:31:17]Write to MH i2c: 01 00 00 8F 14 A3 [13:31:17]Write i2c OK [13:31:17]MH_I2C_Read... [13:31:17]Read from MH i2c: 01 [13:31:17]MH_I2C_Read... [13:31:17]Read from MH i2c: 01 07 00 [13:31:17]MH_I2C_Read... [13:31:17]Read from MH i2c: 01 07 00 8F 14 00 00 00 00 00 50 0C 06 [13:31:17]RasterBufferAndPrint [13:31:17]line [13:31:17]line [13:31:17]line [13:31:17]line [13:31:17]line [13:31:17]written 0, free lines is 3156 [13:31:17]MH_Cut [13:31:17]Write to MH i2c: D1 01 00 96 14 01 7C [13:31:17]Write i2c OK [13:31:17]MH_I2C_Read... [13:31:17]Read from MH i2c: D1 [13:31:17]MH_I2C_Read... [13:31:17]Read from MH i2c: D1 01 00 [13:31:17]MH_I2C_Read... [13:31:17]Read from MH i2c: D1 01 00 96 14 00 7B [13:31:17]Write to MH i2c: 01 00 00 97 14 AB [13:31:17]Write i2c OK [13:31:17]MH_I2C_Read... [13:31:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5E B8 47 00 A3 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 36 35 33 34 30 10 04 04 00 3E E1 02 00 F4 03 04 00 8E A4 18 67 B6 04 01 00 00 0A 28 36 6C 2D 4F A6 6E [13:31:17]CommunicateWithHost err = 0 [13:31:17]CheckOFDResponse [13:31:17]1017 (14) - 77093643461234 [13:31:17]1041 (16) - 0000000000965340 [13:31:17]1040 (4) - 188734 [13:31:17]1012 (4) - 23.10.2024 07:23 [13:31:17]1206 (1) - 0 [13:31:17]OFD Sender: Remove packet 188734 [13:31:17]ProducePacketName [13:31:17]name=ofd_packets/00188734 [13:31:17]NVStorageDeleteData [13:31:18]OFD Sender: No OFD packet to send [13:31:18]*** Cut start [13:31:18]*** Partial cut [13:31:18]*** CUTSNS_PIN = 1 [13:31:18]*** CUTSNS_PIN = 0 [13:31:18]*** Brake cut motor [13:31:19]Read from MH i2c: 01 [13:31:19]MH_I2C_Read... [13:31:19]*** Stop cut motor [13:31:19]*** Cut end [13:31:19]Read from MH i2c: 01 07 00 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: 01 07 00 97 14 00 00 00 00 00 FF 0F C0 [13:31:19]process_action close_receipt done [13:31:19]requested_data is exist [13:31:19]produce_requested_data [13:31:19]requested_item fm.sn is exist - process it [13:31:19]wFMCommunicate request_size=4 [13:31:19]MH_SAM_APDU [13:31:19]CAPDU: 80 11 00 00 [13:31:19]Write to MH i2c: E2 08 00 98 14 80 11 00 00 00 00 00 00 26 [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:19]Read from MH i2c: E2 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: E2 17 00 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: E2 17 00 98 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [13:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:31:19]wFMCommunicate OK [13:31:19]requested_item fd.num is exist - process it [13:31:19]SAM_PROTO_GetFieldsCounters [13:31:19]wFMCommunicate request_size=4 [13:31:19]MH_SAM_APDU [13:31:19]CAPDU: 80 13 00 00 [13:31:19]Write to MH i2c: E2 08 00 99 14 80 13 00 00 00 00 00 00 29 [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:19]Read from MH i2c: E2 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: E2 62 00 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: E2 62 00 99 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [13:31:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:19]wFMCommunicate OK [13:31:19]SAM_PROTO_GetFieldsCounters done [13:31:19]requested_item shift.num is exist - process it [13:31:19]requested_item shift.opened is exist - process it [13:31:19]req_shift_opened [13:31:19]FM_GetShiftState [13:31:19]SAM_PROTO_GetShiftState [13:31:19]wFMCommunicate request_size=4 [13:31:19]MH_SAM_APDU [13:31:19]CAPDU: 80 13 01 00 [13:31:19]Write to MH i2c: E2 08 00 9A 14 80 13 01 00 00 00 00 00 2B [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:19]Read from MH i2c: E2 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: E2 0E 00 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: E2 0E 00 9A 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 13 [13:31:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:31:19]wFMCommunicate OK [13:31:19]SAM_PROTO_GetShiftState done [13:31:19]FM_GetShiftState done [13:31:19]req_shift_opened done [13:31:19]requested_item shift.open_date is exist - process it [13:31:19]req_shift_open_date [13:31:19]req_shift_open_date done [13:31:19]produce_requested_data done [13:31:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188734,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:31:19]process_action_free close_receipt [13:31:19]json_value_free [13:31:19]json_value_free done [13:31:19]process_json_proto returns [13:31:19]Send response to host [13:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188734,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:31:19]free response buf [13:31:19]execute_script done [13:31:19]execute_script returns [13:31:19]free content buf [13:31:19]Sock 9.Close socket [13:31:19]Sock 9.Thread stoped [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]accept exits with 10 [13:40:50]New connection [13:40:50]New thread 3067161956 created [13:40:50]Thread 3067018596 joined [13:40:50]Waiting for new connection... [13:40:50] Sock 10.Parse request [13:40:50]Sock 10.Check first char [13:40:50]Sock 10.First char is OK [13:40:50]request: POST /json_proto HTTP/1.0 [13:40:50]Method: POST [13:40:50]URL: /json_proto [13:40:50]Method is POST - this is cgi request [13:40:50]url: /json_proto [13:40:50]query_string will be loaded in cgi processing [13:40:50]execute_cgi json_proto POST (null) [13:40:50]execute_cgi path=json_proto method=POST [13:40:50]POST find Content-Length [13:40:50]Host: 172.17.42.131:8080 [13:40:50]Content-Length: 688 [13:40:50]Content-Type: application/json [13:40:50] [13:40:50]POST finish read [13:40:50]Found Content-Length = 688 [13:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:50]execute_script... [13:40:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:50]POST & json_proto [13:40:50]process_json_proto [13:40:50]json parsed OK: [13:40:50]protocol is kg_v1.0 [13:40:50]action value=close_receipt [13:40:50]process_action close_receipt [13:40:50]cmd_close_receipt [13:40:50]MH_GetDate [13:40:50]Write to MH i2c: F0 00 00 9B 14 9E [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: F0 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: F0 09 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: F0 09 00 9B 14 00 E3 FC 18 67 A0 18 CA 66 ED [13:40:50]GetLastDocTimeStamp 1729690276 [13:40:50]current date 1729690851 [13:40:50]FM_GetShiftState [13:40:50]SAM_PROTO_GetShiftState [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 13 01 00 [13:40:50]Write to MH i2c: E2 08 00 9C 14 80 13 01 00 00 00 00 00 2D [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]OFD Sender: No OFD packet to send [13:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 0E 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 0E 00 9C 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 15 [13:40:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:40:50]wFMCommunicate OK [13:40:50]SAM_PROTO_GetShiftState done [13:40:50]FM_GetShiftState done [13:40:50]opened in 1729642525 [13:40:50]opened+sec_in_day 1729728925 [13:40:50]quantity*price = 200025 [13:40:50]sum+1 = 200026 [13:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 193 23.10.2024 13:40 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188735 ФПД: 164073373924905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134051&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188735&fm=164073373924905&tin=02508201610067®Number=0000000000100030&sum=200000 [13:40:51]StoreToDocumentArchive [13:40:51]shift 462 fd 188735 [13:40:51]save to /storage/0462/doc_00188735 [13:40:51]save last doc name /storage/0462/doc_00188735 to /storage/kkm_last_doc_name [13:40:51]save OK [13:40:51]Clear old archive folders... [13:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:40:51]tlvbuf is 01C15860 [13:40:51]SAM_PROTO_ClearQueue [13:40:51]wFMCommunicate request_size=4 [13:40:51]MH_SAM_APDU [13:40:51]CAPDU: 80 09 00 00 [13:40:51]Write to MH i2c: E2 08 00 A9 14 80 09 00 00 00 00 00 00 2F [13:40:51]Write i2c OK [13:40:51]MH_I2C_Read... [13:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:51]Read from MH i2c: E2 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 03 00 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 03 00 A9 14 00 90 00 31 [13:40:51]RAPDU: 90 00 [13:40:51]wFMCommunicate OK [13:40:51]SAM_PROTO_ClearQueue done [13:40:51]KKMCreateOFDPacket [13:40:51]OFDProtocolAddRootSTLVToBuf [13:40:51]FM_MakeSignedData [13:40:51]FM_MakeSignedData [13:40:51]SAM_PROTO_SignData [13:40:51]wFMCommunicate request_size=4 [13:40:51]MH_SAM_APDU [13:40:51]CAPDU: 80 0D 01 02 [13:40:51]Write to MH i2c: E2 08 00 AA 14 80 0D 01 02 00 00 00 00 37 [13:40:51]Write i2c OK [13:40:51]MH_I2C_Read... [13:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:51]Read from MH i2c: E2 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 03 00 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 03 00 AA 14 00 90 00 32 [13:40:51]RAPDU: 90 00 [13:40:51]wFMCommunicate OK [13:40:51]wFMCommunicate request_size=255 [13:40:51]MH_SAM_APDU [13:40:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 E3 FC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E1 02 [13:40:51]Write to MH i2c: E2 02 01 AB 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 E3 FC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E1 02 00 00 E8 [13:40:51]Write i2c OK [13:40:51]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 03 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 03 00 AB 14 00 90 00 33 [13:40:52]RAPDU: 90 00 [13:40:52]wFMCommunicate OK [13:40:52]wFMCommunicate request_size=16 [13:40:52]MH_SAM_APDU [13:40:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 95 39 4F 2B 7E 29 [13:40:52]Write to MH i2c: E2 13 00 AC 14 80 0D 02 02 0B 00 00 35 04 06 00 95 39 4F 2B 7E 29 00 00 7E [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 03 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 03 00 AC 14 00 90 00 34 [13:40:52]RAPDU: 90 00 [13:40:52]wFMCommunicate OK [13:40:52]wFMCommunicate request_size=4 [13:40:52]MH_SAM_APDU [13:40:52]CAPDU: 80 0D 03 02 [13:40:52]Write to MH i2c: E2 08 00 AD 14 80 0D 03 02 00 00 00 00 3C [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 0B 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 0B 00 AD 14 00 69 59 6B 82 32 9C 00 85 90 00 3F [13:40:52]RAPDU: 69 59 6B 82 32 9C 00 85 90 00 [13:40:52]wFMCommunicate OK [13:40:52]SAM_PROTO_SignData done [13:40:52]FM_MakeSignedData done [13:40:52]CreateOFDProtocolMessage [13:40:52]wFMCommunicate request_size=4 [13:40:52]MH_SAM_APDU [13:40:52]CAPDU: 80 11 00 00 [13:40:52]Write to MH i2c: E2 08 00 AE 14 80 11 00 00 00 00 00 00 3C [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 17 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 17 00 AE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [13:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:40:52]wFMCommunicate OK [13:40:52]CreateOFDProtocolMessage done [13:40:52]OFDSenderStorePacket 188735 [13:40:52]StoreOFDPacket docnum=188735 [13:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EF 8F 0D 01 80 EA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 E3 FC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E1 02 00 35 04 06 00 95 39 4F 2B 7E 29 69 59 6B 82 32 9C 00 85 [13:40:52]CheckFolder [13:40:52]dirname=/storage/ofd_packets [13:40:52]CheckFolder done [13:40:52]ProducePacketName [13:40:52]name=ofd_packets/00188735 [13:40:52]NVStorageSaveData ofd_packets/00188735 [13:40:52]File name is /storage/ofd_packets/00188735 [13:40:52]Write 307 bytes [13:40:52]NVStorageSaveData done [13:40:52]OFDSenderStorePacket done [13:40:52]KKMCreateOFDPacket done [13:40:52]NVStorageSaveData kkm_last_timestamp [13:40:52]File name is /storage/kkm_last_timestamp [13:40:52]Write 4 bytes [13:40:52]NVStorageSaveData done [13:40:52]ExternCall_PrintAddStr [13:40:52]wPrintStart [13:40:52]Write to MH i2c: 01 00 00 AF 14 C3 [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: 01 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: 01 07 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: 01 07 00 AF 14 00 00 00 00 00 FF 0F D8 [13:40:52]RasterBufferAndPrint [13:40:52]line Счет N : (1)210795 [13:40:52]line ИНН: 02508201610067 [13:40:52]line Контрольно-Кассовый Чек [13:40:52]line ПРОДАЖА [13:40:52]line ТРК (МРК, ГНК) : 31 [13:40:52]line Товар: 2710194210 [13:40:52]line D-ENERGY ДТ-К-5 [13:40:52]line 25.910 * 77.20 [13:40:52]line = 2000.25 [13:40:52]line НДС 12% НСП 1% [13:40:52]line > о реализуемом товаре [13:40:52]line ОКРУГЛЕНИЕ: -0.25 [13:40:52]line ИТОГО: 2000.00 [13:40:52]line Внесено: 2000.00 [13:40:52]line СДАЧА: 0.00 [13:40:52]line НСП 1% : 17.70 [13:40:52]line НДС 12% : 212.42 [13:40:52]line Наличными: 2000.00 [13:40:52]line Безнал.: 0.00 [13:40:52]line Место: АЗС № 86 "Партнер Нефть" [13:40:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:40:52]line СНО: Общий режим [13:40:52]line Чек 193 23.10.2024 13:40 [13:40:52]line Смена: 462 ФФД: 1.0 [13:40:52]line ЗНМ: 0300000155 [13:40:52]line РНМ: 0000000000100030 [13:40:52]line Версия ККМ: 001 [13:40:52]line ФМ: 0000000000965340 [13:40:52]line ФД: 188735 [13:40:52]line ФПД: 164073373924905 [13:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134051&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188735&fm=164073373924905&tin=02508201610067®Number=0000000000100030&sum=200000 [13:40:52]written 0, free lines is 4095 [13:40:52]OFD Sender: Processing packet 188735 [packets to send 1062, broken 1061] [13:40:52]ProducePacketName [13:40:52]name=ofd_packets/00188735 [13:40:52]OFD Sender: To server: pG, [13:40:52]CommunicateWithHost lk.salyk.kg:30040 [13:40:52]ConnectInit lk.salyk.kg [13:40:52]Write to MH i2c: 01 00 00 DA 14 EE [13:40:52]Connected sock=11 [13:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EF 8F 0D 01 80 EA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 E3 FC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E1 02 00 35 04 06 00 95 39 4F 2B 7E 29 69 59 6B 82 32 9C 00 85 [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: 01 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: 01 07 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: 01 07 00 DA 14 00 00 00 00 00 5F 0C 60 [13:40:52]RasterBufferAndPrint [13:40:52]line [13:40:52]line [13:40:52]line [13:40:52]line [13:40:52]line [13:40:52]written 0, free lines is 3182 [13:40:52]MH_Cut [13:40:52]Write to MH i2c: D1 01 00 E1 14 01 C7 [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: D1 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: D1 01 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: D1 01 00 E1 14 00 C6 [13:40:52]Write to MH i2c: 01 00 00 E2 14 F6 [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 79 7D 47 00 AE E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E1 02 00 F4 03 04 00 CE A6 18 67 B6 04 01 00 00 B7 91 24 69 18 94 65 66 [13:40:53]CommunicateWithHost err = 0 [13:40:53]CheckOFDResponse [13:40:53]1017 (14) - 77093643461234 [13:40:53]1041 (16) - 0000000000965340 [13:40:53]1040 (4) - 188735 [13:40:53]1012 (4) - 23.10.2024 07:33 [13:40:53]1206 (1) - 0 [13:40:53]OFD Sender: Remove packet 188735 [13:40:53]ProducePacketName [13:40:53]name=ofd_packets/00188735 [13:40:53]NVStorageDeleteData [13:40:53]OFD Sender: No OFD packet to send [13:40:54]*** Cut start [13:40:54]*** Partial cut [13:40:54]*** CUTSNS_PIN = 1 [13:40:54]*** CUTSNS_PIN = 0 [13:40:54]*** Brake cut motor [13:40:54]Read from MH i2c: 01 [13:40:54]MH_I2C_Read... [13:40:54]*** Stop cut motor [13:40:54]*** Cut end [13:40:54]Read from MH i2c: 01 07 00 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 FF 0F 0B [13:40:54]process_action close_receipt done [13:40:54]requested_data is exist [13:40:54]produce_requested_data [13:40:54]requested_item fm.sn is exist - process it [13:40:54]wFMCommunicate request_size=4 [13:40:54]MH_SAM_APDU [13:40:54]CAPDU: 80 11 00 00 [13:40:54]Write to MH i2c: E2 08 00 E3 14 80 11 00 00 00 00 00 00 71 [13:40:54]Write i2c OK [13:40:54]MH_I2C_Read... [13:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:54]Read from MH i2c: E2 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 17 00 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 17 00 E3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [13:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:40:54]wFMCommunicate OK [13:40:54]requested_item fd.num is exist - process it [13:40:54]SAM_PROTO_GetFieldsCounters [13:40:54]wFMCommunicate request_size=4 [13:40:54]MH_SAM_APDU [13:40:54]CAPDU: 80 13 00 00 [13:40:54]Write to MH i2c: E2 08 00 E4 14 80 13 00 00 00 00 00 00 74 [13:40:54]Write i2c OK [13:40:54]MH_I2C_Read... [13:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:54]Read from MH i2c: E2 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 62 00 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 62 00 E4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [13:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:54]wFMCommunicate OK [13:40:54]SAM_PROTO_GetFieldsCounters done [13:40:54]requested_item shift.num is exist - process it [13:40:54]requested_item shift.opened is exist - process it [13:40:54]req_shift_opened [13:40:54]FM_GetShiftState [13:40:54]SAM_PROTO_GetShiftState [13:40:54]wFMCommunicate request_size=4 [13:40:54]MH_SAM_APDU [13:40:54]CAPDU: 80 13 01 00 [13:40:54]Write to MH i2c: E2 08 00 E5 14 80 13 01 00 00 00 00 00 76 [13:40:54]Write i2c OK [13:40:54]MH_I2C_Read... [13:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:54]Read from MH i2c: E2 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 0E 00 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 0E 00 E5 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5E [13:40:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:40:54]wFMCommunicate OK [13:40:54]SAM_PROTO_GetShiftState done [13:40:54]FM_GetShiftState done [13:40:54]req_shift_opened done [13:40:54]requested_item shift.open_date is exist - process it [13:40:54]req_shift_open_date [13:40:54]req_shift_open_date done [13:40:54]produce_requested_data done [13:40:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188735,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:40:54]process_action_free close_receipt [13:40:54]json_value_free [13:40:54]json_value_free done [13:40:54]process_json_proto returns [13:40:54]Send response to host [13:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188735,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:40:54]free response buf [13:40:54]execute_script done [13:40:54]execute_script returns [13:40:54]free content buf [13:40:54]Sock 10.Close socket [13:40:54]Sock 10.Thread stoped [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:09]accept exits with 7 [13:41:09]New connection [13:41:09]New thread 3067018596 created [13:41:09]Thread 3067161956 joined [13:41:09]Waiting for new connection... [13:41:09] Sock 7.Parse request [13:41:09]Sock 7.Check first char [13:41:09]Sock 7.First char is OK [13:41:09]request: POST /json_proto HTTP/1.0 [13:41:09]Method: POST [13:41:09]URL: /json_proto [13:41:09]Method is POST - this is cgi request [13:41:09]url: /json_proto [13:41:09]query_string will be loaded in cgi processing [13:41:09]execute_cgi json_proto POST (null) [13:41:09]execute_cgi path=json_proto method=POST [13:41:09]POST find Content-Length [13:41:09]Host: 172.17.42.131:8080 [13:41:09]Content-Length: 677 [13:41:09]Content-Type: application/json [13:41:09] [13:41:09]POST finish read [13:41:09]Found Content-Length = 677 [13:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:09]execute_script... [13:41:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:09]POST & json_proto [13:41:09]process_json_proto [13:41:09]json parsed OK: [13:41:09]protocol is kg_v1.0 [13:41:09]action value=close_receipt [13:41:09]process_action close_receipt [13:41:09]cmd_close_receipt [13:41:09]MH_GetDate [13:41:09]Write to MH i2c: F0 00 00 E6 14 E9 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: F0 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: F0 09 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: F0 09 00 E6 14 00 F5 FC 18 67 A0 18 CA 66 4A [13:41:09]GetLastDocTimeStamp 1729690851 [13:41:09]current date 1729690869 [13:41:09]FM_GetShiftState [13:41:09]SAM_PROTO_GetShiftState [13:41:09]wFMCommunicate request_size=4 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 13 01 00 [13:41:09]Write to MH i2c: E2 08 00 E7 14 80 13 01 00 00 00 00 00 78 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 0E 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 0E 00 E7 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 60 [13:41:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:41:09]wFMCommunicate OK [13:41:09]SAM_PROTO_GetShiftState done [13:41:09]FM_GetShiftState done [13:41:09]opened in 1729642525 [13:41:09]opened+sec_in_day 1729728925 [13:41:09]quantity*price = 50041 [13:41:09]sum+1 = 50042 [13:41:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 194 23.10.2024 13:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188736 ФПД: 200295623935607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134109&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188736&fm=200295623935607&tin=02508201610067®Number=0000000000100030&sum=50000 [13:41:10]StoreToDocumentArchive [13:41:10]shift 462 fd 188736 [13:41:10]save to /storage/0462/doc_00188736 [13:41:10]save last doc name /storage/0462/doc_00188736 to /storage/kkm_last_doc_name [13:41:10]save OK [13:41:10]Clear old archive folders... [13:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:10]tlvbuf is 01C3CA30 [13:41:10]SAM_PROTO_ClearQueue [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 09 00 00 [13:41:10]Write to MH i2c: E2 08 00 F4 14 80 09 00 00 00 00 00 00 7A [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 03 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 03 00 F4 14 00 90 00 7C [13:41:10]RAPDU: 90 00 [13:41:10]wFMCommunicate OK [13:41:10]SAM_PROTO_ClearQueue done [13:41:10]KKMCreateOFDPacket [13:41:10]OFDProtocolAddRootSTLVToBuf [13:41:10]FM_MakeSignedData [13:41:10]FM_MakeSignedData [13:41:10]SAM_PROTO_SignData [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 0D 01 02 [13:41:10]Write to MH i2c: E2 08 00 F5 14 80 0D 01 02 00 00 00 00 82 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 03 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 03 00 F5 14 00 90 00 7D [13:41:10]RAPDU: 90 00 [13:41:10]wFMCommunicate OK [13:41:10]wFMCommunicate request_size=255 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F5 FC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E1 02 00 35 04 06 00 B6 [13:41:10]Write to MH i2c: E2 02 01 F6 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F5 FC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E1 02 00 35 04 06 00 B6 00 00 CF [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 03 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 03 00 F6 14 00 90 00 7E [13:41:10]RAPDU: 90 00 [13:41:10]wFMCommunicate OK [13:41:10]wFMCommunicate request_size=10 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 0D 02 02 05 2A F5 83 C6 77 [13:41:10]Write to MH i2c: E2 0D 00 F7 14 80 0D 02 02 05 00 2A F5 83 C6 77 00 00 6E [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 03 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 03 00 F7 14 00 90 00 7F [13:41:10]RAPDU: 90 00 [13:41:10]wFMCommunicate OK [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 0D 03 02 [13:41:10]Write to MH i2c: E2 08 00 F8 14 80 0D 03 02 00 00 00 00 87 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 0B 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 0B 00 F8 14 00 75 4A B4 A3 DF 9B A0 DC 90 00 94 [13:41:10]RAPDU: 75 4A B4 A3 DF 9B A0 DC 90 00 [13:41:10]wFMCommunicate OK [13:41:10]SAM_PROTO_SignData done [13:41:10]FM_MakeSignedData done [13:41:10]CreateOFDProtocolMessage [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 11 00 00 [13:41:10]Write to MH i2c: E2 08 00 F9 14 80 11 00 00 00 00 00 00 87 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 17 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 17 00 F9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [13:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:41:10]wFMCommunicate OK [13:41:10]CreateOFDProtocolMessage done [13:41:10]OFDSenderStorePacket 188736 [13:41:10]StoreOFDPacket docnum=188736 [13:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 EE 07 01 59 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F5 FC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E1 02 00 35 04 06 00 B6 2A F5 83 C6 77 75 4A B4 A3 DF 9B A0 DC [13:41:10]CheckFolder [13:41:10]dirname=/storage/ofd_packets [13:41:10]CheckFolder done [13:41:10]ProducePacketName [13:41:10]name=ofd_packets/00188736 [13:41:10]NVStorageSaveData ofd_packets/00188736 [13:41:10]File name is /storage/ofd_packets/00188736 [13:41:10]Write 301 bytes [13:41:10]NVStorageSaveData done [13:41:10]OFDSenderStorePacket done [13:41:10]KKMCreateOFDPacket done [13:41:10]NVStorageSaveData kkm_last_timestamp [13:41:10]File name is /storage/kkm_last_timestamp [13:41:10]Write 4 bytes [13:41:10]NVStorageSaveData done [13:41:10]ExternCall_PrintAddStr [13:41:10]wPrintStart [13:41:10]Write to MH i2c: 01 00 00 FA 14 0E [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 FA 14 00 00 00 00 00 FF 0F 23 [13:41:10]RasterBufferAndPrint [13:41:10]line Счет N : (1)210797 [13:41:10]line ИНН: 02508201610067 [13:41:10]line Контрольно-Кассовый Чек [13:41:10]line ПРОДАЖА [13:41:10]line ТРК (МРК, ГНК) : 12 [13:41:10]line Товар: 2710124130 [13:41:10]line Аи-92-К-3 [13:41:10]line 7.480 * 66.90 [13:41:10]line = 500.41 [13:41:10]line НДС 12% НСП 1% [13:41:10]line > о реализуемом товаре [13:41:10]line ОКРУГЛЕНИЕ: -0.41 [13:41:10]line ИТОГО: 500.00 [13:41:10]line Внесено: 500.00 [13:41:10]line СДАЧА: 0.00 [13:41:10]line НСП 1% : 4.43 [13:41:10]line НДС 12% : 53.14 [13:41:10]line Наличными: 500.00 [13:41:10]line Безнал.: 0.00 [13:41:10]line Место: АЗС № 86 "Партнер Нефть" [13:41:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:41:10]line СНО: Общий режим [13:41:10]line Чек 194 23.10.2024 13:41 [13:41:10]line Смена: 462 ФФД: 1.0 [13:41:10]line ЗНМ: 0300000155 [13:41:10]line РНМ: 0000000000100030 [13:41:10]line Версия ККМ: 001 [13:41:10]line ФМ: 0000000000965340 [13:41:10]line ФД: 188736 [13:41:10]line ФПД: 200295623935607 [13:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134109&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188736&fm=200295623935607&tin=02508201610067®Number=0000000000100030&sum=50000 [13:41:10]written 0, free lines is 4095 [13:41:10]OFD Sender: Processing packet 188736 [packets to send 1062, broken 1061] [13:41:10]ProducePacketName [13:41:10]name=ofd_packets/00188736 [13:41:10]OFD Sender: To server: pG, [13:41:10]CommunicateWithHost lk.salyk.kg:30040 [13:41:10]ConnectInit lk.salyk.kg [13:41:11]Connected sock=9 [13:41:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 EE 07 01 59 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F5 FC 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E1 02 00 35 04 06 00 B6 2A F5 83 C6 77 75 4A B4 A3 DF 9B A0 DC [13:41:11]Write to MH i2c: 01 00 00 25 15 3A [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: 01 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: 01 07 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: 01 07 00 25 15 00 00 00 00 00 55 0C A2 [13:41:11]RasterBufferAndPrint [13:41:11]line [13:41:11]line [13:41:11]line [13:41:11]line [13:41:11]line [13:41:11]written 0, free lines is 3161 [13:41:11]MH_Cut [13:41:11]Write to MH i2c: D1 01 00 2C 15 01 13 [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: D1 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: D1 01 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: D1 01 00 2C 15 00 12 [13:41:11]Write to MH i2c: 01 00 00 2D 15 42 [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F 11 47 00 46 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E1 02 00 F4 03 04 00 E0 A6 18 67 B6 04 01 00 00 A2 4B 1E 16 56 21 4F 39 [13:41:11]CommunicateWithHost err = 0 [13:41:11]CheckOFDResponse [13:41:11]1017 (14) - 77093643461234 [13:41:11]1041 (16) - 0000000000965340 [13:41:11]1040 (4) - 188736 [13:41:11]1012 (4) - 23.10.2024 07:33 [13:41:11]1206 (1) - 0 [13:41:11]OFD Sender: Remove packet 188736 [13:41:11]ProducePacketName [13:41:11]name=ofd_packets/00188736 [13:41:11]NVStorageDeleteData [13:41:11]OFD Sender: No OFD packet to send [13:41:12]*** Cut start [13:41:12]*** Partial cut [13:41:12]*** CUTSNS_PIN = 1 [13:41:12]*** CUTSNS_PIN = 0 [13:41:12]*** Brake cut motor [13:41:13]Read from MH i2c: 01 [13:41:13]MH_I2C_Read... [13:41:13]*** Stop cut motor [13:41:13]*** Cut end [13:41:13]Read from MH i2c: 01 07 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 FF 0F 57 [13:41:13]process_action close_receipt done [13:41:13]requested_data is exist [13:41:13]produce_requested_data [13:41:13]requested_item fm.sn is exist - process it [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 11 00 00 [13:41:13]Write to MH i2c: E2 08 00 2E 15 80 11 00 00 00 00 00 00 BD [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 17 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 17 00 2E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [13:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:41:13]wFMCommunicate OK [13:41:13]requested_item fd.num is exist - process it [13:41:13]SAM_PROTO_GetFieldsCounters [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 13 00 00 [13:41:13]Write to MH i2c: E2 08 00 2F 15 80 13 00 00 00 00 00 00 C0 [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 62 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 62 00 2F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [13:41:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:13]wFMCommunicate OK [13:41:13]SAM_PROTO_GetFieldsCounters done [13:41:13]requested_item shift.num is exist - process it [13:41:13]requested_item shift.opened is exist - process it [13:41:13]req_shift_opened [13:41:13]FM_GetShiftState [13:41:13]SAM_PROTO_GetShiftState [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 13 01 00 [13:41:13]Write to MH i2c: E2 08 00 30 15 80 13 01 00 00 00 00 00 C2 [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 0E 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 0E 00 30 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AA [13:41:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:41:13]wFMCommunicate OK [13:41:13]SAM_PROTO_GetShiftState done [13:41:13]FM_GetShiftState done [13:41:13]req_shift_opened done [13:41:13]requested_item shift.open_date is exist - process it [13:41:13]req_shift_open_date [13:41:13]req_shift_open_date done [13:41:13]produce_requested_data done [13:41:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188736,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:41:13]process_action_free close_receipt [13:41:13]json_value_free [13:41:13]json_value_free done [13:41:13]process_json_proto returns [13:41:13]Send response to host [13:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188736,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:41:13]free response buf [13:41:13]execute_script done [13:41:13]execute_script returns [13:41:13]free content buf [13:41:13]Sock 7.Close socket [13:41:13]Sock 7.Thread stoped [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:33]accept exits with 10 [13:41:33]New connection [13:41:33]New thread 3067161956 created [13:41:33]Thread 3067018596 joined [13:41:33]Waiting for new connection... [13:41:33] Sock 10.Parse request [13:41:33]Sock 10.Check first char [13:41:33]Sock 10.First char is OK [13:41:33]request: POST /json_proto HTTP/1.0 [13:41:33]Method: POST [13:41:33]URL: /json_proto [13:41:33]Method is POST - this is cgi request [13:41:33]url: /json_proto [13:41:33]query_string will be loaded in cgi processing [13:41:33]execute_cgi json_proto POST (null) [13:41:33]execute_cgi path=json_proto method=POST [13:41:33]POST find Content-Length [13:41:33]Host: 172.17.42.131:8080 [13:41:33]Content-Length: 983 [13:41:33]Content-Type: application/json [13:41:33] [13:41:33]POST finish read [13:41:33]Found Content-Length = 983 [13:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:33]execute_script... [13:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:33]POST & json_proto [13:41:33]process_json_proto [13:41:33]json parsed OK: [13:41:33]protocol is kg_v1.0 [13:41:33]action value=close_receipt [13:41:33]process_action close_receipt [13:41:33]cmd_close_receipt [13:41:33]MH_GetDate [13:41:33]Write to MH i2c: F0 00 00 31 15 35 [13:41:33]Write i2c OK [13:41:33]MH_I2C_Read... [13:41:33]Read from MH i2c: F0 [13:41:33]MH_I2C_Read... [13:41:33]Read from MH i2c: F0 09 00 [13:41:33]MH_I2C_Read... [13:41:33]Read from MH i2c: F0 09 00 31 15 00 0E FD 18 67 A0 18 CA 66 B0 [13:41:33]GetLastDocTimeStamp 1729690869 [13:41:33]current date 1729690894 [13:41:33]FM_GetShiftState [13:41:33]SAM_PROTO_GetShiftState [13:41:33]wFMCommunicate request_size=4 [13:41:33]MH_SAM_APDU [13:41:33]CAPDU: 80 13 01 00 [13:41:33]Write to MH i2c: E2 08 00 32 15 80 13 01 00 00 00 00 00 C4 [13:41:33]Write i2c OK [13:41:33]MH_I2C_Read... [13:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:34]Read from MH i2c: E2 [13:41:34]MH_I2C_Read... [13:41:34]Read from MH i2c: E2 0E 00 [13:41:34]MH_I2C_Read... [13:41:34]Read from MH i2c: E2 0E 00 32 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AC [13:41:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:41:34]wFMCommunicate OK [13:41:34]SAM_PROTO_GetShiftState done [13:41:34]FM_GetShiftState done [13:41:34]opened in 1729642525 [13:41:34]opened+sec_in_day 1729728925 [13:41:34]quantity*price = 200006 [13:41:34]sum+1 = 200008 [13:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 195 23.10.2024 13:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 188737 ФПД: 60905831003555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134134&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188737&fm=60905831003555&tin=02508201610067®Number=0000000000100030&sum=200000 [13:41:35]StoreToDocumentArchive [13:41:35]shift 462 fd 188737 [13:41:35]save to /storage/0462/doc_00188737 [13:41:35]save last doc name /storage/0462/doc_00188737 to /storage/kkm_last_doc_name [13:41:35]save OK [13:41:35]Clear old archive folders... [13:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:35]tlvbuf is 01C0C930 [13:41:35]SAM_PROTO_ClearQueue [13:41:35]wFMCommunicate request_size=4 [13:41:35]MH_SAM_APDU [13:41:35]CAPDU: 80 09 00 00 [13:41:35]Write to MH i2c: E2 08 00 3F 15 80 09 00 00 00 00 00 00 C6 [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:35]Read from MH i2c: E2 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 03 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 03 00 3F 15 00 90 00 C8 [13:41:35]RAPDU: 90 00 [13:41:35]wFMCommunicate OK [13:41:35]SAM_PROTO_ClearQueue done [13:41:35]KKMCreateOFDPacket [13:41:35]OFDProtocolAddRootSTLVToBuf [13:41:35]FM_MakeSignedData [13:41:35]FM_MakeSignedData [13:41:35]SAM_PROTO_SignData [13:41:35]wFMCommunicate request_size=4 [13:41:35]MH_SAM_APDU [13:41:35]CAPDU: 80 0D 01 02 [13:41:35]Write to MH i2c: E2 08 00 40 15 80 0D 01 02 00 00 00 00 CE [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:35]Read from MH i2c: E2 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 03 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [13:41:35]RAPDU: 90 00 [13:41:35]wFMCommunicate OK [13:41:35]wFMCommunicate request_size=255 [13:41:35]MH_SAM_APDU [13:41:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0E FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E1 02 00 35 04 06 00 37 [13:41:35]Write to MH i2c: E2 02 01 41 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0E FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E1 02 00 35 04 06 00 37 00 00 3F [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:35]Read from MH i2c: E2 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 03 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 03 00 41 15 00 90 00 CA [13:41:35]RAPDU: 90 00 [13:41:35]wFMCommunicate OK [13:41:35]wFMCommunicate request_size=10 [13:41:35]MH_SAM_APDU [13:41:35]CAPDU: 80 0D 02 02 05 64 BE 6B F5 A3 [13:41:35]Write to MH i2c: E2 0D 00 42 15 80 0D 02 02 05 00 64 BE 6B F5 A3 00 00 00 [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:35]Read from MH i2c: E2 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 03 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 03 00 42 15 00 90 00 CB [13:41:35]RAPDU: 90 00 [13:41:35]wFMCommunicate OK [13:41:35]wFMCommunicate request_size=4 [13:41:35]MH_SAM_APDU [13:41:35]CAPDU: 80 0D 03 02 [13:41:35]Write to MH i2c: E2 08 00 43 15 80 0D 03 02 00 00 00 00 D3 [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:35]Read from MH i2c: E2 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 0B 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 0B 00 43 15 00 44 83 CA 2B C0 59 36 D0 90 00 AF [13:41:35]RAPDU: 44 83 CA 2B C0 59 36 D0 90 00 [13:41:35]wFMCommunicate OK [13:41:35]SAM_PROTO_SignData done [13:41:35]FM_MakeSignedData done [13:41:35]CreateOFDProtocolMessage [13:41:35]wFMCommunicate request_size=4 [13:41:35]MH_SAM_APDU [13:41:35]CAPDU: 80 11 00 00 [13:41:35]Write to MH i2c: E2 08 00 44 15 80 11 00 00 00 00 00 00 D3 [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:35]Read from MH i2c: E2 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 17 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 17 00 44 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [13:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:41:35]wFMCommunicate OK [13:41:35]CreateOFDProtocolMessage done [13:41:35]OFDSenderStorePacket 188737 [13:41:35]StoreOFDPacket docnum=188737 [13:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F2 99 07 01 74 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0E FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E1 02 00 35 04 06 00 37 64 BE 6B F5 A3 44 83 CA 2B C0 59 36 D0 [13:41:35]CheckFolder [13:41:35]dirname=/storage/ofd_packets [13:41:35]CheckFolder done [13:41:35]ProducePacketName [13:41:35]name=ofd_packets/00188737 [13:41:35]NVStorageSaveData ofd_packets/00188737 [13:41:35]File name is /storage/ofd_packets/00188737 [13:41:35]Write 301 bytes [13:41:35]NVStorageSaveData done [13:41:35]OFDSenderStorePacket done [13:41:35]KKMCreateOFDPacket done [13:41:35]NVStorageSaveData kkm_last_timestamp [13:41:35]File name is /storage/kkm_last_timestamp [13:41:35]Write 4 bytes [13:41:35]NVStorageSaveData done [13:41:35]ExternCall_PrintAddStr [13:41:35]wPrintStart [13:41:35]Write to MH i2c: 01 00 00 45 15 5A [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: 01 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: 01 07 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: 01 07 00 45 15 00 00 00 00 00 FF 0F 6F [13:41:35]RasterBufferAndPrint [13:41:35]line Счет N : (1)210796 [13:41:35]line ИНН: 02508201610067 [13:41:35]line Контрольно-Кассовый Чек [13:41:35]line ПРОДАЖА [13:41:35]line ТРК (МРК, ГНК) : 42 [13:41:35]line Товар: 2710124130 [13:41:35]line Аи-92-К-3 [13:41:35]line 30.350 * 65.90 [13:41:35]line = 2000.07 [13:41:35]line НДС 12% НСП 1% [13:41:35]line > о реализуемом товаре [13:41:35]line ОКРУГЛЕНИЕ: -0.07 [13:41:35]line ИТОГО: 2000.00 [13:41:35]line Внесено: 2000.00 [13:41:35]line СДАЧА: 0.00 [13:41:35]line НСП 1% : 17.70 [13:41:35]line НДС 12% : 212.40 [13:41:35]line Наличными: 2000.00 [13:41:35]line Безнал.: 0.00 [13:41:35]line Место: АЗС № 86 "Партнер Нефть" [13:41:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:41:35]line СНО: Общий режим [13:41:35]line Чек 195 23.10.2024 13:41 [13:41:35]line Смена: 462 ФФД: 1.0 [13:41:35]line ЗНМ: 0300000155 [13:41:35]line РНМ: 0000000000100030 [13:41:35]line Версия ККМ: 001 [13:41:35]line [13:41:35]line Дисконтная программа [13:41:35]line АИ-92 [13:41:35]line номер 86 [13:41:35]line сэкономлено 30.35 сом [13:41:35]line ФМ: 0000000000965340 [13:41:35]line ФД: 188737 [13:41:35]line ФПД: 60905831003555 [13:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134134&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188737&fm=60905831003555&tin=02508201610067®Number=0000000000100030&sum=200000 [13:41:35]written 0, free lines is 4095 [13:41:35]OFD Sender: Processing packet 188737 [packets to send 1062, broken 1061] [13:41:35]ProducePacketName [13:41:35]name=ofd_packets/00188737 [13:41:35]OFD Sender: To server: pG, [13:41:35]CommunicateWithHost lk.salyk.kg:30040 [13:41:35]ConnectInit lk.salyk.kg [13:41:36]Connected sock=9 [13:41:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F2 99 07 01 74 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0E FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E1 02 00 35 04 06 00 37 64 BE 6B F5 A3 44 83 CA 2B C0 59 36 D0 [13:41:36]Write to MH i2c: 01 00 00 75 15 8A [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: 01 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: 01 07 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: 01 07 00 75 15 00 00 00 00 00 E2 0B 7E [13:41:36]RasterBufferAndPrint [13:41:36]line [13:41:36]line [13:41:36]line [13:41:36]line [13:41:36]line [13:41:36]written 0, free lines is 3044 [13:41:36]MH_Cut [13:41:36]Write to MH i2c: D1 01 00 7C 15 01 63 [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: D1 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: D1 01 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: D1 01 00 7C 15 00 62 [13:41:36]Write to MH i2c: 01 00 00 7D 15 92 [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 9A 47 00 B5 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E1 02 00 F4 03 04 00 F9 A6 18 67 B6 04 01 00 00 A4 A2 F7 5F BF 0A FF 21 [13:41:36]CommunicateWithHost err = 0 [13:41:36]CheckOFDResponse [13:41:36]1017 (14) - 77093643461234 [13:41:36]1041 (16) - 0000000000965340 [13:41:36]1040 (4) - 188737 [13:41:36]1012 (4) - 23.10.2024 07:34 [13:41:36]1206 (1) - 0 [13:41:36]OFD Sender: Remove packet 188737 [13:41:36]ProducePacketName [13:41:36]name=ofd_packets/00188737 [13:41:36]NVStorageDeleteData [13:41:36]OFD Sender: No OFD packet to send [13:41:37]*** Cut start [13:41:37]*** Partial cut [13:41:37]*** CUTSNS_PIN = 1 [13:41:37]*** CUTSNS_PIN = 0 [13:41:37]*** Brake cut motor [13:41:38]Read from MH i2c: 01 [13:41:38]MH_I2C_Read... [13:41:38]*** Stop cut motor [13:41:38]*** Cut end [13:41:38]Read from MH i2c: 01 07 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 7D 15 00 00 00 00 00 FF 0F A7 [13:41:38]process_action close_receipt done [13:41:38]requested_data is exist [13:41:38]produce_requested_data [13:41:38]requested_item fm.sn is exist - process it [13:41:38]wFMCommunicate request_size=4 [13:41:38]MH_SAM_APDU [13:41:38]CAPDU: 80 11 00 00 [13:41:38]Write to MH i2c: E2 08 00 7E 15 80 11 00 00 00 00 00 00 0D [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:38]Read from MH i2c: E2 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 17 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 17 00 7E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [13:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:41:38]wFMCommunicate OK [13:41:38]requested_item fd.num is exist - process it [13:41:38]SAM_PROTO_GetFieldsCounters [13:41:38]wFMCommunicate request_size=4 [13:41:38]MH_SAM_APDU [13:41:38]CAPDU: 80 13 00 00 [13:41:38]Write to MH i2c: E2 08 00 7F 15 80 13 00 00 00 00 00 00 10 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:38]Read from MH i2c: E2 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 62 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 62 00 7F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:41:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:38]wFMCommunicate OK [13:41:38]SAM_PROTO_GetFieldsCounters done [13:41:38]requested_item shift.num is exist - process it [13:41:38]requested_item shift.opened is exist - process it [13:41:38]req_shift_opened [13:41:38]FM_GetShiftState [13:41:38]SAM_PROTO_GetShiftState [13:41:38]wFMCommunicate request_size=4 [13:41:38]MH_SAM_APDU [13:41:38]CAPDU: 80 13 01 00 [13:41:38]Write to MH i2c: E2 08 00 80 15 80 13 01 00 00 00 00 00 12 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:38]Read from MH i2c: E2 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 0E 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 0E 00 80 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FA [13:41:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:41:38]wFMCommunicate OK [13:41:38]SAM_PROTO_GetShiftState done [13:41:38]FM_GetShiftState done [13:41:38]req_shift_opened done [13:41:38]requested_item shift.open_date is exist - process it [13:41:38]req_shift_open_date [13:41:38]req_shift_open_date done [13:41:38]produce_requested_data done [13:41:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188737,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:41:38]process_action_free close_receipt [13:41:38]json_value_free [13:41:38]json_value_free done [13:41:38]process_json_proto returns [13:41:38]Send response to host [13:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188737,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:41:38]free response buf [13:41:38]execute_script done [13:41:38]execute_script returns [13:41:38]free content buf [13:41:38]Sock 10.Close socket [13:41:38]Sock 10.Thread stoped [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:42:58]accept exits with 7 [13:42:58]New connection [13:42:58]New thread 3067018596 created [13:42:58]Thread 3067161956 joined [13:42:58]Waiting for new connection... [13:42:58] Sock 7.Parse request [13:42:58]Sock 7.Check first char [13:42:58]Sock 7.First char is OK [13:42:58]request: POST /json_proto HTTP/1.0 [13:42:58]Method: POST [13:42:58]URL: /json_proto [13:42:58]Method is POST - this is cgi request [13:42:58]url: /json_proto [13:42:58]query_string will be loaded in cgi processing [13:42:58]execute_cgi json_proto POST (null) [13:42:58]execute_cgi path=json_proto method=POST [13:42:58]POST find Content-Length [13:42:58]Host: 172.17.42.131:8080 [13:42:58]Content-Length: 678 [13:42:58]Content-Type: application/json [13:42:58] [13:42:58]POST finish read [13:42:58]Found Content-Length = 678 [13:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:58]execute_script... [13:42:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:58]POST & json_proto [13:42:58]process_json_proto [13:42:58]json parsed OK: [13:42:58]protocol is kg_v1.0 [13:42:58]action value=close_receipt [13:42:58]process_action close_receipt [13:42:58]cmd_close_receipt [13:42:58]MH_GetDate [13:42:58]Write to MH i2c: F0 00 00 81 15 85 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: F0 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: F0 09 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: F0 09 00 81 15 00 63 FD 18 67 A0 18 CA 66 55 [13:42:58]GetLastDocTimeStamp 1729690894 [13:42:58]current date 1729690979 [13:42:58]FM_GetShiftState [13:42:58]SAM_PROTO_GetShiftState [13:42:58]wFMCommunicate request_size=4 [13:42:58]MH_SAM_APDU [13:42:58]CAPDU: 80 13 01 00 [13:42:58]Write to MH i2c: E2 08 00 82 15 80 13 01 00 00 00 00 00 14 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:58]Read from MH i2c: E2 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 0E 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 0E 00 82 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FC [13:42:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:42:58]wFMCommunicate OK [13:42:58]SAM_PROTO_GetShiftState done [13:42:58]FM_GetShiftState done [13:42:58]opened in 1729642525 [13:42:58]opened+sec_in_day 1729728925 [13:42:58]quantity*price = 70044 [13:42:58]sum+1 = 70045 [13:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 196 23.10.2024 13:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188738 ФПД: 204994366955742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134259&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188738&fm=204994366955742&tin=02508201610067®Number=0000000000100030&sum=70000 [13:42:59]StoreToDocumentArchive [13:42:59]shift 462 fd 188738 [13:42:59]save to /storage/0462/doc_00188738 [13:42:59]save last doc name /storage/0462/doc_00188738 to /storage/kkm_last_doc_name [13:42:59]save OK [13:42:59]Clear old archive folders... [13:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:59]tlvbuf is B6EF4830 [13:42:59]SAM_PROTO_ClearQueue [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 09 00 00 [13:42:59]Write to MH i2c: E2 08 00 8F 15 80 09 00 00 00 00 00 00 16 [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 8F 15 00 90 00 18 [13:42:59]RAPDU: 90 00 [13:42:59]wFMCommunicate OK [13:42:59]SAM_PROTO_ClearQueue done [13:42:59]KKMCreateOFDPacket [13:42:59]OFDProtocolAddRootSTLVToBuf [13:42:59]FM_MakeSignedData [13:42:59]FM_MakeSignedData [13:42:59]SAM_PROTO_SignData [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 0D 01 02 [13:42:59]Write to MH i2c: E2 08 00 90 15 80 0D 01 02 00 00 00 00 1E [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [13:42:59]RAPDU: 90 00 [13:42:59]wFMCommunicate OK [13:42:59]wFMCommunicate request_size=255 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 63 FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E1 02 00 35 04 06 00 BA [13:42:59]Write to MH i2c: E2 02 01 91 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 63 FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E1 02 00 35 04 06 00 BA 00 00 F2 [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [13:42:59]RAPDU: 90 00 [13:42:59]wFMCommunicate OK [13:42:59]wFMCommunicate request_size=10 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 0D 02 02 05 70 F8 6C 60 DE [13:42:59]Write to MH i2c: E2 0D 00 92 15 80 0D 02 02 05 00 70 F8 6C 60 DE 00 00 3D [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [13:42:59]RAPDU: 90 00 [13:42:59]wFMCommunicate OK [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 0D 03 02 [13:42:59]Write to MH i2c: E2 08 00 93 15 80 0D 03 02 00 00 00 00 23 [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 0B 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 0B 00 93 15 00 D6 17 23 DE F9 55 96 D9 90 00 CF [13:42:59]RAPDU: D6 17 23 DE F9 55 96 D9 90 00 [13:42:59]wFMCommunicate OK [13:42:59]SAM_PROTO_SignData done [13:42:59]FM_MakeSignedData done [13:42:59]CreateOFDProtocolMessage [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 11 00 00 [13:42:59]Write to MH i2c: E2 08 00 94 15 80 11 00 00 00 00 00 00 23 [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 17 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 17 00 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [13:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:42:59]wFMCommunicate OK [13:42:59]CreateOFDProtocolMessage done [13:42:59]OFDSenderStorePacket 188738 [13:42:59]StoreOFDPacket docnum=188738 [13:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 69 AB 07 01 99 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 63 FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E1 02 00 35 04 06 00 BA 70 F8 6C 60 DE D6 17 23 DE F9 55 96 D9 [13:42:59]CheckFolder [13:42:59]dirname=/storage/ofd_packets [13:42:59]CheckFolder done [13:42:59]ProducePacketName [13:42:59]name=ofd_packets/00188738 [13:42:59]NVStorageSaveData ofd_packets/00188738 [13:42:59]File name is /storage/ofd_packets/00188738 [13:42:59]Write 301 bytes [13:42:59]NVStorageSaveData done [13:42:59]OFDSenderStorePacket done [13:42:59]KKMCreateOFDPacket done [13:42:59]NVStorageSaveData kkm_last_timestamp [13:42:59]File name is /storage/kkm_last_timestamp [13:42:59]Write 4 bytes [13:42:59]NVStorageSaveData done [13:42:59]ExternCall_PrintAddStr [13:42:59]wPrintStart [13:42:59]Write to MH i2c: 01 00 00 95 15 AA [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: 01 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: 01 07 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: 01 07 00 95 15 00 00 00 00 00 FF 0F BF [13:42:59]RasterBufferAndPrint [13:42:59]line Счет N : (1)210798 [13:42:59]line ИНН: 02508201610067 [13:42:59]line Контрольно-Кассовый Чек [13:42:59]line ПРОДАЖА [13:42:59]line ТРК (МРК, ГНК) : 32 [13:42:59]line Товар: 2710124130 [13:42:59]line Аи-92-К-3 [13:42:59]line 10.470 * 66.90 [13:42:59]line = 700.44 [13:42:59]line НДС 12% НСП 1% [13:42:59]line > о реализуемом товаре [13:42:59]line ОКРУГЛЕНИЕ: -0.44 [13:42:59]line ИТОГО: 700.00 [13:42:59]line Внесено: 700.00 [13:42:59]line СДАЧА: 0.00 [13:42:59]line НСП 1% : 6.20 [13:42:59]line НДС 12% : 74.38 [13:42:59]line Наличными: 700.00 [13:42:59]line Безнал.: 0.00 [13:42:59]line Место: АЗС № 86 "Партнер Нефть" [13:42:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:42:59]line СНО: Общий режим [13:42:59]line Чек 196 23.10.2024 13:42 [13:42:59]line Смена: 462 ФФД: 1.0 [13:42:59]line ЗНМ: 0300000155 [13:42:59]line РНМ: 0000000000100030 [13:42:59]line Версия ККМ: 001 [13:42:59]line ФМ: 0000000000965340 [13:42:59]line ФД: 188738 [13:42:59]line ФПД: 204994366955742 [13:42:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134259&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188738&fm=204994366955742&tin=02508201610067®Number=0000000000100030&sum=70000 [13:42:59]written 0, free lines is 4095 [13:42:59]OFD Sender: Processing packet 188738 [packets to send 1062, broken 1061] [13:42:59]ProducePacketName [13:42:59]name=ofd_packets/00188738 [13:42:59]OFD Sender: To server: pG, [13:42:59]CommunicateWithHost lk.salyk.kg:30040 [13:42:59]ConnectInit lk.salyk.kg [13:43:00]Connected sock=10 [13:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 69 AB 07 01 99 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 63 FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E1 02 00 35 04 06 00 BA 70 F8 6C 60 DE D6 17 23 DE F9 55 96 D9 [13:43:00]Write to MH i2c: 01 00 00 C0 15 D5 [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: 01 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: 01 07 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 58 0C 40 [13:43:00]RasterBufferAndPrint [13:43:00]line [13:43:00]line [13:43:00]line [13:43:00]line [13:43:00]line [13:43:00]written 0, free lines is 3164 [13:43:00]MH_Cut [13:43:00]Write to MH i2c: D1 01 00 C7 15 01 AE [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: D1 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: D1 01 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: D1 01 00 C7 15 00 AD [13:43:00]Write to MH i2c: 01 00 00 C8 15 DD [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 6C 47 00 F3 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E1 02 00 F4 03 04 00 4D A7 18 67 B6 04 01 00 00 EF 1C 77 A8 E6 54 67 5B [13:43:00]CommunicateWithHost err = 0 [13:43:00]CheckOFDResponse [13:43:00]1017 (14) - 77093643461234 [13:43:00]1041 (16) - 0000000000965340 [13:43:00]1040 (4) - 188738 [13:43:00]1012 (4) - 23.10.2024 07:35 [13:43:00]1206 (1) - 0 [13:43:00]OFD Sender: Remove packet 188738 [13:43:00]ProducePacketName [13:43:00]name=ofd_packets/00188738 [13:43:00]NVStorageDeleteData [13:43:01]OFD Sender: No OFD packet to send [13:43:01]*** Cut start [13:43:01]*** Partial cut [13:43:01]*** CUTSNS_PIN = 1 [13:43:01]*** CUTSNS_PIN = 0 [13:43:01]*** Brake cut motor [13:43:02]Read from MH i2c: 01 [13:43:02]MH_I2C_Read... [13:43:02]*** Stop cut motor [13:43:02]*** Cut end [13:43:02]Read from MH i2c: 01 07 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: 01 07 00 C8 15 00 00 00 00 00 FF 0F F2 [13:43:02]process_action close_receipt done [13:43:02]requested_data is exist [13:43:02]produce_requested_data [13:43:02]requested_item fm.sn is exist - process it [13:43:02]wFMCommunicate request_size=4 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 11 00 00 [13:43:02]Write to MH i2c: E2 08 00 C9 15 80 11 00 00 00 00 00 00 58 [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 17 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 17 00 C9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [13:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:43:02]wFMCommunicate OK [13:43:02]requested_item fd.num is exist - process it [13:43:02]SAM_PROTO_GetFieldsCounters [13:43:02]wFMCommunicate request_size=4 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 13 00 00 [13:43:02]Write to MH i2c: E2 08 00 CA 15 80 13 00 00 00 00 00 00 5B [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 62 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 62 00 CA 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [13:43:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:02]wFMCommunicate OK [13:43:02]SAM_PROTO_GetFieldsCounters done [13:43:02]requested_item shift.num is exist - process it [13:43:02]requested_item shift.opened is exist - process it [13:43:02]req_shift_opened [13:43:02]FM_GetShiftState [13:43:02]SAM_PROTO_GetShiftState [13:43:02]wFMCommunicate request_size=4 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 13 01 00 [13:43:02]Write to MH i2c: E2 08 00 CB 15 80 13 01 00 00 00 00 00 5D [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 0E 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 0E 00 CB 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 45 [13:43:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:43:02]wFMCommunicate OK [13:43:02]SAM_PROTO_GetShiftState done [13:43:02]FM_GetShiftState done [13:43:02]req_shift_opened done [13:43:02]requested_item shift.open_date is exist - process it [13:43:02]req_shift_open_date [13:43:02]req_shift_open_date done [13:43:02]produce_requested_data done [13:43:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188738,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:43:02]process_action_free close_receipt [13:43:02]json_value_free [13:43:02]json_value_free done [13:43:02]process_json_proto returns [13:43:02]Send response to host [13:43:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188738,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:43:02]free response buf [13:43:02]execute_script done [13:43:02]execute_script returns [13:43:02]free content buf [13:43:02]Sock 7.Close socket [13:43:02]Sock 7.Thread stoped [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:12]accept exits with 9 [13:44:12]New connection [13:44:12]New thread 3067161956 created [13:44:12]Thread 3067018596 joined [13:44:12]Waiting for new connection... [13:44:12] Sock 9.Parse request [13:44:12]Sock 9.Check first char [13:44:12]Sock 9.First char is OK [13:44:12]request: POST /json_proto HTTP/1.0 [13:44:12]Method: POST [13:44:12]URL: /json_proto [13:44:12]Method is POST - this is cgi request [13:44:12]url: /json_proto [13:44:12]query_string will be loaded in cgi processing [13:44:12]execute_cgi json_proto POST (null) [13:44:12]execute_cgi path=json_proto method=POST [13:44:12]POST find Content-Length [13:44:12]Host: 172.17.42.131:8080 [13:44:12]Content-Length: 677 [13:44:12]Content-Type: application/json [13:44:12] [13:44:12]POST finish read [13:44:12]Found Content-Length = 677 [13:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:12]execute_script... [13:44:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:12]POST & json_proto [13:44:12]process_json_proto [13:44:12]json parsed OK: [13:44:12]protocol is kg_v1.0 [13:44:12]action value=close_receipt [13:44:12]process_action close_receipt [13:44:12]cmd_close_receipt [13:44:12]MH_GetDate [13:44:12]Write to MH i2c: F0 00 00 CC 15 D0 [13:44:12]Write i2c OK [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: F0 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: F0 09 00 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: F0 09 00 CC 15 00 AD FD 18 67 A0 18 CA 66 EA [13:44:12]GetLastDocTimeStamp 1729690979 [13:44:12]current date 1729691053 [13:44:12]FM_GetShiftState [13:44:12]SAM_PROTO_GetShiftState [13:44:12]wFMCommunicate request_size=4 [13:44:12]MH_SAM_APDU [13:44:12]CAPDU: 80 13 01 00 [13:44:12]Write to MH i2c: E2 08 00 CD 15 80 13 01 00 00 00 00 00 5F [13:44:12]Write i2c OK [13:44:12]MH_I2C_Read... [13:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:12]Read from MH i2c: E2 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 0E 00 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 0E 00 CD 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 47 [13:44:12]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:44:12]wFMCommunicate OK [13:44:12]SAM_PROTO_GetShiftState done [13:44:12]FM_GetShiftState done [13:44:12]opened in 1729642525 [13:44:12]opened+sec_in_day 1729728925 [13:44:12]quantity*price = 34052 [13:44:12]sum+1 = 34053 [13:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 197 23.10.2024 13:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188739 ФПД: 83455934796455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188739&fm=83455934796455&tin=02508201610067®Number=0000000000100030&sum=34000 [13:44:13]StoreToDocumentArchive [13:44:13]shift 462 fd 188739 [13:44:13]save to /storage/0462/doc_00188739 [13:44:13]save last doc name /storage/0462/doc_00188739 to /storage/kkm_last_doc_name [13:44:13]save OK [13:44:13]Clear old archive folders... [13:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:13]tlvbuf is 01C4C660 [13:44:13]SAM_PROTO_ClearQueue [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 09 00 00 [13:44:13]Write to MH i2c: E2 08 00 DA 15 80 09 00 00 00 00 00 00 61 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]SAM_PROTO_ClearQueue done [13:44:13]KKMCreateOFDPacket [13:44:13]OFDProtocolAddRootSTLVToBuf [13:44:13]FM_MakeSignedData [13:44:13]FM_MakeSignedData [13:44:13]SAM_PROTO_SignData [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 01 02 [13:44:13]Write to MH i2c: E2 08 00 DB 15 80 0D 01 02 00 00 00 00 69 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=255 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 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 C5 00 00 00 F4 03 04 00 AD FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E1 02 00 35 04 06 00 4B [13:44:13]Write to MH i2c: E2 02 01 DC 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 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 C5 00 00 00 F4 03 04 00 AD FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E1 02 00 35 04 06 00 4B 00 00 43 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 03 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [13:44:14]RAPDU: 90 00 [13:44:14]wFMCommunicate OK [13:44:14]wFMCommunicate request_size=10 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 0D 02 02 05 E7 19 59 12 A7 [13:44:14]Write to MH i2c: E2 0D 00 DD 15 80 0D 02 02 05 00 E7 19 59 12 A7 00 00 88 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 03 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [13:44:14]RAPDU: 90 00 [13:44:14]wFMCommunicate OK [13:44:14]wFMCommunicate request_size=4 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 0D 03 02 [13:44:14]Write to MH i2c: E2 08 00 DE 15 80 0D 03 02 00 00 00 00 6E [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 0B 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 0B 00 DE 15 00 C4 78 36 E3 6F 3A 13 1C 90 00 9C [13:44:14]RAPDU: C4 78 36 E3 6F 3A 13 1C 90 00 [13:44:14]wFMCommunicate OK [13:44:14]SAM_PROTO_SignData done [13:44:14]FM_MakeSignedData done [13:44:14]CreateOFDProtocolMessage [13:44:14]wFMCommunicate request_size=4 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 11 00 00 [13:44:14]Write to MH i2c: E2 08 00 DF 15 80 11 00 00 00 00 00 00 6E [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 17 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 17 00 DF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [13:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:44:14]wFMCommunicate OK [13:44:14]CreateOFDProtocolMessage done [13:44:14]OFDSenderStorePacket 188739 [13:44:14]StoreOFDPacket docnum=188739 [13:44:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4A 6F 07 01 01 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 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 C5 00 00 00 F4 03 04 00 AD FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E1 02 00 35 04 06 00 4B E7 19 59 12 A7 C4 78 36 E3 6F 3A 13 1C [13:44:14]CheckFolder [13:44:14]dirname=/storage/ofd_packets [13:44:14]CheckFolder done [13:44:14]ProducePacketName [13:44:14]name=ofd_packets/00188739 [13:44:14]NVStorageSaveData ofd_packets/00188739 [13:44:14]File name is /storage/ofd_packets/00188739 [13:44:14]Write 301 bytes [13:44:14]NVStorageSaveData done [13:44:14]OFDSenderStorePacket done [13:44:14]KKMCreateOFDPacket done [13:44:14]NVStorageSaveData kkm_last_timestamp [13:44:14]File name is /storage/kkm_last_timestamp [13:44:14]Write 4 bytes [13:44:14]NVStorageSaveData done [13:44:14]ExternCall_PrintAddStr [13:44:14]wPrintStart [13:44:14]Write to MH i2c: 01 00 00 E0 15 F5 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 E0 15 00 00 00 00 00 FF 0F 0A [13:44:14]RasterBufferAndPrint [13:44:14]line Счет N : (1)210799 [13:44:14]line ИНН: 02508201610067 [13:44:14]line Контрольно-Кассовый Чек [13:44:14]line ПРОДАЖА [13:44:14]line ТРК (МРК, ГНК) : 22 [13:44:14]line Товар: 2710124130 [13:44:14]line Аи-92-К-3 [13:44:14]line 5.090 * 66.90 [13:44:14]line = 340.52 [13:44:14]line НДС 12% НСП 1% [13:44:14]line > о реализуемом товаре [13:44:14]line ОКРУГЛЕНИЕ: -0.52 [13:44:14]line ИТОГО: 340.00 [13:44:14]line Внесено: 340.00 [13:44:14]line СДАЧА: 0.00 [13:44:14]line НСП 1% : 3.01 [13:44:14]line НДС 12% : 36.16 [13:44:14]line Наличными: 340.00 [13:44:14]line Безнал.: 0.00 [13:44:14]line Место: АЗС № 86 "Партнер Нефть" [13:44:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:44:14]line СНО: Общий режим [13:44:14]line Чек 197 23.10.2024 13:44 [13:44:14]line Смена: 462 ФФД: 1.0 [13:44:14]line ЗНМ: 0300000155 [13:44:14]line РНМ: 0000000000100030 [13:44:14]line Версия ККМ: 001 [13:44:14]line ФМ: 0000000000965340 [13:44:14]line ФД: 188739 [13:44:14]line ФПД: 83455934796455 [13:44:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188739&fm=83455934796455&tin=02508201610067®Number=0000000000100030&sum=34000 [13:44:14]written 0, free lines is 4095 [13:44:14]OFD Sender: Processing packet 188739 [packets to send 1062, broken 1061] [13:44:14]ProducePacketName [13:44:14]name=ofd_packets/00188739 [13:44:14]OFD Sender: To server: pG, [13:44:14]CommunicateWithHost lk.salyk.kg:30040 [13:44:14]ConnectInit lk.salyk.kg [13:44:14]Connected sock=10 [13:44:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4A 6F 07 01 01 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 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 C5 00 00 00 F4 03 04 00 AD FD 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E1 02 00 35 04 06 00 4B E7 19 59 12 A7 C4 78 36 E3 6F 3A 13 1C [13:44:14]Write to MH i2c: 01 00 00 0B 16 21 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 0B 16 00 00 00 00 00 5D 0C 91 [13:44:14]RasterBufferAndPrint [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]written 0, free lines is 3168 [13:44:14]MH_Cut [13:44:14]Write to MH i2c: D1 01 00 12 16 01 FA [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 01 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 01 00 12 16 00 F9 [13:44:14]Write to MH i2c: 01 00 00 13 16 29 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 54 C0 47 00 94 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E1 02 00 F4 03 04 00 97 A7 18 67 B6 04 01 00 00 89 EF 01 A0 31 A5 F0 3E [13:44:14]CommunicateWithHost err = 0 [13:44:14]CheckOFDResponse [13:44:14]1017 (14) - 77093643461234 [13:44:14]1041 (16) - 0000000000965340 [13:44:14]1040 (4) - 188739 [13:44:14]1012 (4) - 23.10.2024 07:36 [13:44:14]1206 (1) - 0 [13:44:14]OFD Sender: Remove packet 188739 [13:44:14]ProducePacketName [13:44:14]name=ofd_packets/00188739 [13:44:14]NVStorageDeleteData [13:44:15]OFD Sender: No OFD packet to send [13:44:15]*** Cut start [13:44:15]*** Partial cut [13:44:15]*** CUTSNS_PIN = 1 [13:44:16]*** CUTSNS_PIN = 0 [13:44:16]*** Brake cut motor [13:44:16]Read from MH i2c: 01 [13:44:16]MH_I2C_Read... [13:44:16]*** Stop cut motor [13:44:16]*** Cut end [13:44:16]Read from MH i2c: 01 07 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: 01 07 00 13 16 00 00 00 00 00 FF 0F 3E [13:44:16]process_action close_receipt done [13:44:16]requested_data is exist [13:44:16]produce_requested_data [13:44:16]requested_item fm.sn is exist - process it [13:44:16]wFMCommunicate request_size=4 [13:44:16]MH_SAM_APDU [13:44:16]CAPDU: 80 11 00 00 [13:44:16]Write to MH i2c: E2 08 00 14 16 80 11 00 00 00 00 00 00 A4 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 17 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 17 00 14 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [13:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:44:16]wFMCommunicate OK [13:44:16]requested_item fd.num is exist - process it [13:44:16]SAM_PROTO_GetFieldsCounters [13:44:16]wFMCommunicate request_size=4 [13:44:16]MH_SAM_APDU [13:44:16]CAPDU: 80 13 00 00 [13:44:16]Write to MH i2c: E2 08 00 15 16 80 13 00 00 00 00 00 00 A7 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 62 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 62 00 15 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [13:44:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:16]wFMCommunicate OK [13:44:16]SAM_PROTO_GetFieldsCounters done [13:44:16]requested_item shift.num is exist - process it [13:44:16]requested_item shift.opened is exist - process it [13:44:16]req_shift_opened [13:44:16]FM_GetShiftState [13:44:16]SAM_PROTO_GetShiftState [13:44:16]wFMCommunicate request_size=4 [13:44:16]MH_SAM_APDU [13:44:16]CAPDU: 80 13 01 00 [13:44:16]Write to MH i2c: E2 08 00 16 16 80 13 01 00 00 00 00 00 A9 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 0E 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 0E 00 16 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 91 [13:44:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:44:16]wFMCommunicate OK [13:44:16]SAM_PROTO_GetShiftState done [13:44:16]FM_GetShiftState done [13:44:16]req_shift_opened done [13:44:16]requested_item shift.open_date is exist - process it [13:44:16]req_shift_open_date [13:44:16]req_shift_open_date done [13:44:16]produce_requested_data done [13:44:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188739,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:44:16]process_action_free close_receipt [13:44:16]json_value_free [13:44:16]json_value_free done [13:44:16]process_json_proto returns [13:44:16]Send response to host [13:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188739,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:44:16]free response buf [13:44:16]execute_script done [13:44:16]execute_script returns [13:44:16]free content buf [13:44:16]Sock 9.Close socket [13:44:16]Sock 9.Thread stoped [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]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:23]accept exits with 7 [13:48:23]New connection [13:48:23]New thread 3067018596 created [13:48:23]Thread 3067161956 joined [13:48:23]Waiting for new connection... [13:48:23] Sock 7.Parse request [13:48:23]Sock 7.Check first char [13:48:23]Sock 7.First char is OK [13:48:23]request: POST /json_proto HTTP/1.0 [13:48:23]Method: POST [13:48:23]URL: /json_proto [13:48:23]Method is POST - this is cgi request [13:48:23]url: /json_proto [13:48:23]query_string will be loaded in cgi processing [13:48:23]execute_cgi json_proto POST (null) [13:48:23]execute_cgi path=json_proto method=POST [13:48:23]POST find Content-Length [13:48:23]Host: 172.17.42.131:8080 [13:48:23]Content-Length: 682 [13:48:23]Content-Type: application/json [13:48:23] [13:48:23]POST finish read [13:48:23]Found Content-Length = 682 [13:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:23]execute_script... [13:48:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:23]POST & json_proto [13:48:23]process_json_proto [13:48:23]json parsed OK: [13:48:23]protocol is kg_v1.0 [13:48:23]action value=close_receipt [13:48:23]process_action close_receipt [13:48:23]cmd_close_receipt [13:48:23]MH_GetDate [13:48:23]Write to MH i2c: F0 00 00 17 16 1C [13:48:23]Write i2c OK [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: F0 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: F0 09 00 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: F0 09 00 17 16 00 A8 FE 18 67 A0 18 CA 66 32 [13:48:23]GetLastDocTimeStamp 1729691053 [13:48:23]current date 1729691304 [13:48:23]FM_GetShiftState [13:48:23]SAM_PROTO_GetShiftState [13:48:23]wFMCommunicate request_size=4 [13:48:23]MH_SAM_APDU [13:48:23]CAPDU: 80 13 01 00 [13:48:23]Write to MH i2c: E2 08 00 18 16 80 13 01 00 00 00 00 00 AB [13:48:23]Write i2c OK [13:48:23]MH_I2C_Read... [13:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:23]Read from MH i2c: E2 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 0E 00 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 0E 00 18 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 93 [13:48:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:48:23]wFMCommunicate OK [13:48:23]SAM_PROTO_GetShiftState done [13:48:23]FM_GetShiftState done [13:48:23]opened in 1729642525 [13:48:23]opened+sec_in_day 1729728925 [13:48:23]quantity*price = 150032 [13:48:23]sum+1 = 150033 [13:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 198 23.10.2024 13:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188740 ФПД: 64212220701658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134824&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188740&fm=64212220701658&tin=02508201610067®Number=0000000000100030&sum=150000 [13:48:24]StoreToDocumentArchive [13:48:24]shift 462 fd 188740 [13:48:24]save to /storage/0462/doc_00188740 [13:48:24]save last doc name /storage/0462/doc_00188740 to /storage/kkm_last_doc_name [13:48:24]save OK [13:48:24]Clear old archive folders... [13:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:24]tlvbuf is B6EF4E60 [13:48:24]SAM_PROTO_ClearQueue [13:48:24]wFMCommunicate request_size=4 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 09 00 00 [13:48:24]Write to MH i2c: E2 08 00 25 16 80 09 00 00 00 00 00 00 AD [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [13:48:24]RAPDU: 90 00 [13:48:24]wFMCommunicate OK [13:48:24]SAM_PROTO_ClearQueue done [13:48:24]KKMCreateOFDPacket [13:48:24]OFDProtocolAddRootSTLVToBuf [13:48:24]FM_MakeSignedData [13:48:24]FM_MakeSignedData [13:48:24]SAM_PROTO_SignData [13:48:24]wFMCommunicate request_size=4 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 0D 01 02 [13:48:24]Write to MH i2c: E2 08 00 26 16 80 0D 01 02 00 00 00 00 B5 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [13:48:24]RAPDU: 90 00 [13:48:24]wFMCommunicate OK [13:48:24]wFMCommunicate request_size=255 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 A8 FE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E1 02 00 35 04 06 00 3A [13:48:24]Write to MH i2c: E2 02 01 27 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 A8 FE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E1 02 00 35 04 06 00 3A 00 00 A6 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [13:48:24]RAPDU: 90 00 [13:48:24]wFMCommunicate OK [13:48:24]wFMCommunicate request_size=10 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 0D 02 02 05 66 92 9A EB DA [13:48:24]Write to MH i2c: E2 0D 00 28 16 80 0D 02 02 05 00 66 92 9A EB DA 00 00 19 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [13:48:24]RAPDU: 90 00 [13:48:24]wFMCommunicate OK [13:48:24]wFMCommunicate request_size=4 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 0D 03 02 [13:48:24]Write to MH i2c: E2 08 00 29 16 80 0D 03 02 00 00 00 00 BA [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 0B 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 0B 00 29 16 00 91 03 71 F2 AD 7F D8 14 90 00 CA [13:48:24]RAPDU: 91 03 71 F2 AD 7F D8 14 90 00 [13:48:24]wFMCommunicate OK [13:48:24]SAM_PROTO_SignData done [13:48:24]FM_MakeSignedData done [13:48:24]CreateOFDProtocolMessage [13:48:24]wFMCommunicate request_size=4 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 11 00 00 [13:48:24]Write to MH i2c: E2 08 00 2A 16 80 11 00 00 00 00 00 00 BA [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 17 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 17 00 2A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [13:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:48:24]wFMCommunicate OK [13:48:24]CreateOFDProtocolMessage done [13:48:24]OFDSenderStorePacket 188740 [13:48:24]StoreOFDPacket docnum=188740 [13:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E0 24 07 01 F7 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 A8 FE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E1 02 00 35 04 06 00 3A 66 92 9A EB DA 91 03 71 F2 AD 7F D8 14 [13:48:24]CheckFolder [13:48:24]dirname=/storage/ofd_packets [13:48:24]CheckFolder done [13:48:24]ProducePacketName [13:48:24]name=ofd_packets/00188740 [13:48:24]NVStorageSaveData ofd_packets/00188740 [13:48:24]File name is /storage/ofd_packets/00188740 [13:48:24]Write 301 bytes [13:48:24]NVStorageSaveData done [13:48:24]OFDSenderStorePacket done [13:48:24]KKMCreateOFDPacket done [13:48:24]NVStorageSaveData kkm_last_timestamp [13:48:24]File name is /storage/kkm_last_timestamp [13:48:24]Write 4 bytes [13:48:24]NVStorageSaveData done [13:48:24]ExternCall_PrintAddStr [13:48:24]wPrintStart [13:48:24]Write to MH i2c: 01 00 00 2B 16 41 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: 01 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: 01 07 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: 01 07 00 2B 16 00 00 00 00 00 FF 0F 56 [13:48:24]RasterBufferAndPrint [13:48:24]line Счет N : (1)210800 [13:48:24]line ИНН: 02508201610067 [13:48:24]line Контрольно-Кассовый Чек [13:48:24]line ПРОДАЖА [13:48:24]line ТРК (МРК, ГНК) : 33 [13:48:24]line Товар: 2710124500 [13:48:24]line Аи-95-К-3 [13:48:24]line 20.220 * 74.20 [13:48:24]line = 1500.32 [13:48:24]line НДС 12% НСП 1% [13:48:24]line > о реализуемом товаре [13:48:24]line ОКРУГЛЕНИЕ: -0.32 [13:48:24]line ИТОГО: 1500.00 [13:48:24]line Внесено: 1500.00 [13:48:24]line СДАЧА: 0.00 [13:48:24]line НСП 1% : 13.28 [13:48:24]line НДС 12% : 159.33 [13:48:24]line Наличными: 1500.00 [13:48:24]line Безнал.: 0.00 [13:48:24]line Место: АЗС № 86 "Партнер Нефть" [13:48:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:48:24]line СНО: Общий режим [13:48:24]line Чек 198 23.10.2024 13:48 [13:48:24]line Смена: 462 ФФД: 1.0 [13:48:24]line ЗНМ: 0300000155 [13:48:24]line РНМ: 0000000000100030 [13:48:24]line Версия ККМ: 001 [13:48:24]line ФМ: 0000000000965340 [13:48:24]line ФД: 188740 [13:48:24]line ФПД: 64212220701658 [13:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134824&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188740&fm=64212220701658&tin=02508201610067®Number=0000000000100030&sum=150000 [13:48:24]written 0, free lines is 4095 [13:48:25]OFD Sender: Processing packet 188740 [packets to send 1062, broken 1061] [13:48:25]ProducePacketName [13:48:25]name=ofd_packets/00188740 [13:48:25]OFD Sender: To server: pG, [13:48:25]CommunicateWithHost lk.salyk.kg:30040 [13:48:25]ConnectInit lk.salyk.kg [13:48:25]Write to MH i2c: 01 00 00 56 16 6C [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 07 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 07 00 56 16 00 00 00 00 00 54 0C D3 [13:48:25]RasterBufferAndPrint [13:48:25]line [13:48:25]line [13:48:25]line [13:48:25]line [13:48:25]line [13:48:25]written 0, free lines is 3160 [13:48:25]MH_Cut [13:48:25]Write to MH i2c: D1 01 00 5D 16 01 45 [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: D1 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: D1 01 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: D1 01 00 5D 16 00 44 [13:48:25]Write to MH i2c: 01 00 00 5E 16 74 [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]Connected sock=11 [13:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E0 24 07 01 F7 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 A8 FE 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E1 02 00 35 04 06 00 3A 66 92 9A EB DA 91 03 71 F2 AD 7F D8 14 [13:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 60 57 47 00 BC 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 36 35 33 34 30 10 04 04 00 44 E1 02 00 F4 03 04 00 92 A8 18 67 B6 04 01 00 00 ED 2A 50 55 5B 52 87 2D [13:48:25]CommunicateWithHost err = 0 [13:48:25]CheckOFDResponse [13:48:25]1017 (14) - 77093643461234 [13:48:25]1041 (16) - 0000000000965340 [13:48:25]1040 (4) - 188740 [13:48:25]1012 (4) - 23.10.2024 07:41 [13:48:25]1206 (1) - 0 [13:48:25]OFD Sender: Remove packet 188740 [13:48:25]ProducePacketName [13:48:25]name=ofd_packets/00188740 [13:48:25]NVStorageDeleteData [13:48:26]OFD Sender: No OFD packet to send [13:48:26]*** Cut start [13:48:26]*** Partial cut [13:48:26]*** CUTSNS_PIN = 1 [13:48:26]*** CUTSNS_PIN = 0 [13:48:27]*** Brake cut motor [13:48:27]Read from MH i2c: 01 [13:48:27]MH_I2C_Read... [13:48:27]*** Stop cut motor [13:48:27]*** Cut end [13:48:27]Read from MH i2c: 01 07 00 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: 01 07 00 5E 16 00 00 00 00 00 FF 0F 89 [13:48:27]process_action close_receipt done [13:48:27]requested_data is exist [13:48:27]produce_requested_data [13:48:27]requested_item fm.sn is exist - process it [13:48:27]wFMCommunicate request_size=4 [13:48:27]MH_SAM_APDU [13:48:27]CAPDU: 80 11 00 00 [13:48:27]Write to MH i2c: E2 08 00 5F 16 80 11 00 00 00 00 00 00 EF [13:48:27]Write i2c OK [13:48:27]MH_I2C_Read... [13:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:27]Read from MH i2c: E2 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 17 00 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 17 00 5F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [13:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:48:27]wFMCommunicate OK [13:48:27]requested_item fd.num is exist - process it [13:48:27]SAM_PROTO_GetFieldsCounters [13:48:27]wFMCommunicate request_size=4 [13:48:27]MH_SAM_APDU [13:48:27]CAPDU: 80 13 00 00 [13:48:27]Write to MH i2c: E2 08 00 60 16 80 13 00 00 00 00 00 00 F2 [13:48:27]Write i2c OK [13:48:27]MH_I2C_Read... [13:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:27]Read from MH i2c: E2 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 62 00 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 62 00 60 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [13:48:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:27]wFMCommunicate OK [13:48:27]SAM_PROTO_GetFieldsCounters done [13:48:27]requested_item shift.num is exist - process it [13:48:27]requested_item shift.opened is exist - process it [13:48:27]req_shift_opened [13:48:27]FM_GetShiftState [13:48:27]SAM_PROTO_GetShiftState [13:48:27]wFMCommunicate request_size=4 [13:48:27]MH_SAM_APDU [13:48:27]CAPDU: 80 13 01 00 [13:48:27]Write to MH i2c: E2 08 00 61 16 80 13 01 00 00 00 00 00 F4 [13:48:27]Write i2c OK [13:48:27]MH_I2C_Read... [13:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:27]Read from MH i2c: E2 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 0E 00 [13:48:27]MH_I2C_Read... [13:48:27]Read from MH i2c: E2 0E 00 61 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DC [13:48:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:48:27]wFMCommunicate OK [13:48:27]SAM_PROTO_GetShiftState done [13:48:27]FM_GetShiftState done [13:48:27]req_shift_opened done [13:48:27]requested_item shift.open_date is exist - process it [13:48:27]req_shift_open_date [13:48:27]req_shift_open_date done [13:48:27]produce_requested_data done [13:48:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188740,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:48:27]process_action_free close_receipt [13:48:27]json_value_free [13:48:27]json_value_free done [13:48:27]process_json_proto returns [13:48:27]Send response to host [13:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188740,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:48:27]free response buf [13:48:27]execute_script done [13:48:27]execute_script returns [13:48:27]free content buf [13:48:27]Sock 7.Close socket [13:48:27]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:43]accept exits with 9 [13:51:43]New connection [13:51:43]New thread 3067161956 created [13:51:43]Thread 3067018596 joined [13:51:43]Waiting for new connection... [13:51:43] Sock 9.Parse request [13:51:43]Sock 9.Check first char [13:51:43]Sock 9.First char is OK [13:51:43]request: POST /json_proto HTTP/1.0 [13:51:43]Method: POST [13:51:43]URL: /json_proto [13:51:43]Method is POST - this is cgi request [13:51:43]url: /json_proto [13:51:43]query_string will be loaded in cgi processing [13:51:43]execute_cgi json_proto POST (null) [13:51:43]execute_cgi path=json_proto method=POST [13:51:43]POST find Content-Length [13:51:43]Host: 172.17.42.131:8080 [13:51:43]Content-Length: 754 [13:51:43]Content-Type: application/json [13:51:43] [13:51:43]POST finish read [13:51:43]Found Content-Length = 754 [13:51:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30133153", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:43]execute_script... [13:51:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30133153", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:43]POST & json_proto [13:51:43]process_json_proto [13:51:43]json parsed OK: [13:51:43]protocol is kg_v1.0 [13:51:43]action value=close_receipt [13:51:43]process_action close_receipt [13:51:43]cmd_close_receipt [13:51:43]MH_GetDate [13:51:43]Write to MH i2c: F0 00 00 62 16 67 [13:51:43]Write i2c OK [13:51:43]MH_I2C_Read... [13:51:43]Read from MH i2c: F0 [13:51:43]MH_I2C_Read... [13:51:43]Read from MH i2c: F0 09 00 [13:51:43]MH_I2C_Read... [13:51:43]Read from MH i2c: F0 09 00 62 16 00 70 FF 18 67 A0 18 CA 66 46 [13:51:43]GetLastDocTimeStamp 1729691304 [13:51:43]current date 1729691504 [13:51:43]FM_GetShiftState [13:51:43]SAM_PROTO_GetShiftState [13:51:43]wFMCommunicate request_size=4 [13:51:43]MH_SAM_APDU [13:51:43]CAPDU: 80 13 01 00 [13:51:43]Write to MH i2c: E2 08 00 63 16 80 13 01 00 00 00 00 00 F6 [13:51:43]Write i2c OK [13:51:43]MH_I2C_Read... [13:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:44]Read from MH i2c: E2 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 0E 00 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 0E 00 63 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DE [13:51:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:51:44]wFMCommunicate OK [13:51:44]SAM_PROTO_GetShiftState done [13:51:44]FM_GetShiftState done [13:51:44]opened in 1729642525 [13:51:44]opened+sec_in_day 1729728925 [13:51:44]quantity*price = 0 [13:51:44]sum+1 = 1 [13:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 199 23.10.2024 13:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30133153 ФМ: 0000000000965340 ФД: 188741 ФПД: 134727932023260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135144&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188741&fm=134727932023260&tin=02508201610067®Number=0000000000100030&sum=0 [13:51:45]StoreToDocumentArchive [13:51:45]shift 462 fd 188741 [13:51:45]save to /storage/0462/doc_00188741 [13:51:45]save last doc name /storage/0462/doc_00188741 to /storage/kkm_last_doc_name [13:51:45]save OK [13:51:45]Clear old archive folders... [13:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:45]tlvbuf is 01BF8A00 [13:51:45]SAM_PROTO_ClearQueue [13:51:45]wFMCommunicate request_size=4 [13:51:45]MH_SAM_APDU [13:51:45]CAPDU: 80 09 00 00 [13:51:45]Write to MH i2c: E2 08 00 70 16 80 09 00 00 00 00 00 00 F8 [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:45]Read from MH i2c: E2 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 03 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [13:51:45]RAPDU: 90 00 [13:51:45]wFMCommunicate OK [13:51:45]SAM_PROTO_ClearQueue done [13:51:45]KKMCreateOFDPacket [13:51:45]OFDProtocolAddRootSTLVToBuf [13:51:45]FM_MakeSignedData [13:51:45]FM_MakeSignedData [13:51:45]SAM_PROTO_SignData [13:51:45]wFMCommunicate request_size=4 [13:51:45]MH_SAM_APDU [13:51:45]CAPDU: 80 0D 01 02 [13:51:45]Write to MH i2c: E2 08 00 71 16 80 0D 01 02 00 00 00 00 00 [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:45]Read from MH i2c: E2 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 03 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [13:51:45]RAPDU: 90 00 [13:51:45]wFMCommunicate OK [13:51:45]wFMCommunicate request_size=255 [13:51:45]MH_SAM_APDU [13:51:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 70 FF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E1 02 00 35 04 06 00 7A [13:51:45]Write to MH i2c: E2 02 01 72 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 70 FF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E1 02 00 35 04 06 00 7A 00 00 BD [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:45]Read from MH i2c: E2 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 03 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [13:51:45]RAPDU: 90 00 [13:51:45]wFMCommunicate OK [13:51:45]wFMCommunicate request_size=10 [13:51:45]MH_SAM_APDU [13:51:45]CAPDU: 80 0D 02 02 05 88 CA 87 91 DC [13:51:45]Write to MH i2c: E2 0D 00 73 16 80 0D 02 02 05 00 88 CA 87 91 DC 00 00 53 [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:45]Read from MH i2c: E2 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 03 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 03 00 73 16 00 90 00 FD [13:51:45]RAPDU: 90 00 [13:51:45]wFMCommunicate OK [13:51:45]wFMCommunicate request_size=4 [13:51:45]MH_SAM_APDU [13:51:45]CAPDU: 80 0D 03 02 [13:51:45]Write to MH i2c: E2 08 00 74 16 80 0D 03 02 00 00 00 00 05 [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:45]Read from MH i2c: E2 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 0B 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 0B 00 74 16 00 02 97 84 F7 CA 1B 0B C3 90 00 CD [13:51:45]RAPDU: 02 97 84 F7 CA 1B 0B C3 90 00 [13:51:45]wFMCommunicate OK [13:51:45]SAM_PROTO_SignData done [13:51:45]FM_MakeSignedData done [13:51:45]CreateOFDProtocolMessage [13:51:45]wFMCommunicate request_size=4 [13:51:45]MH_SAM_APDU [13:51:45]CAPDU: 80 11 00 00 [13:51:45]Write to MH i2c: E2 08 00 75 16 80 11 00 00 00 00 00 00 05 [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:45]Read from MH i2c: E2 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 17 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 17 00 75 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [13:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:51:45]wFMCommunicate OK [13:51:45]CreateOFDProtocolMessage done [13:51:45]OFDSenderStorePacket 188741 [13:51:45]StoreOFDPacket docnum=188741 [13:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9B 0F 07 01 13 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 70 FF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E1 02 00 35 04 06 00 7A 88 CA 87 91 DC 02 97 84 F7 CA 1B 0B C3 [13:51:45]CheckFolder [13:51:45]dirname=/storage/ofd_packets [13:51:45]CheckFolder done [13:51:45]ProducePacketName [13:51:45]name=ofd_packets/00188741 [13:51:45]NVStorageSaveData ofd_packets/00188741 [13:51:45]File name is /storage/ofd_packets/00188741 [13:51:45]Write 301 bytes [13:51:45]NVStorageSaveData done [13:51:45]OFDSenderStorePacket done [13:51:45]KKMCreateOFDPacket done [13:51:45]NVStorageSaveData kkm_last_timestamp [13:51:45]File name is /storage/kkm_last_timestamp [13:51:45]Write 4 bytes [13:51:45]NVStorageSaveData done [13:51:45]ExternCall_PrintAddStr [13:51:45]wPrintStart [13:51:45]Write to MH i2c: 01 00 00 76 16 8C [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: 01 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: 01 07 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 FF 0F A1 [13:51:45]RasterBufferAndPrint [13:51:45]line Счет N : (1)210801 [13:51:45]line ИНН: 02508201610067 [13:51:45]line Контрольно-Кассовый Чек [13:51:45]line ПРОДАЖА [13:51:45]line ТРК (МРК, ГНК) : 13 [13:51:45]line Товар: 2710124500 [13:51:45]line Аи-95-К-3 [13:51:45]line 30.000 * 0.00 [13:51:45]line = 0.00 [13:51:45]line НДС 12% НСП 1% [13:51:45]line > о реализуемом товаре [13:51:45]line ИТОГО: 0.00 [13:51:45]line НСП 1% : 0.00 [13:51:45]line НДС 12% : 0.00 [13:51:45]line Наличными: 0.00 [13:51:45]line Безнал.: 0.00 [13:51:45]line Место: АЗС № 86 "Партнер Нефть" [13:51:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:51:45]line СНО: Общий режим [13:51:45]line Чек 199 23.10.2024 13:51 [13:51:45]line Смена: 462 ФФД: 1.0 [13:51:45]line ЗНМ: 0300000155 [13:51:45]line РНМ: 0000000000100030 [13:51:45]line Версия ККМ: 001 [13:51:45]line Талоны: ТК ГПНА Online [13:51:45]line 30133153 [13:51:45]line ФМ: 0000000000965340 [13:51:45]line ФД: 188741 [13:51:45]line ФПД: 134727932023260 [13:51:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135144&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188741&fm=134727932023260&tin=02508201610067®Number=0000000000100030&sum=0 [13:51:45]OFD Sender: Processing packet 188741 [packets to send 1062, broken 1061] [13:51:45]ProducePacketName [13:51:45]name=ofd_packets/00188741 [13:51:45]OFD Sender: To server: pG, [13:51:45]CommunicateWithHost lk.salyk.kg:30040 [13:51:45]ConnectInit lk.salyk.kg [13:51:45]written 0, free lines is 4095 [13:51:45]Connected sock=10 [13:51:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9B 0F 07 01 13 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 70 FF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E1 02 00 35 04 06 00 7A 88 CA 87 91 DC 02 97 84 F7 CA 1B 0B C3 [13:51:46]Write to MH i2c: 01 00 00 A0 16 B6 [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: 01 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: 01 07 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: 01 07 00 A0 16 00 00 00 00 00 6F 0C 38 [13:51:46]RasterBufferAndPrint [13:51:46]line [13:51:46]line [13:51:46]line [13:51:46]line [13:51:46]line [13:51:46]written 0, free lines is 3189 [13:51:46]MH_Cut [13:51:46]Write to MH i2c: D1 01 00 A7 16 01 8F [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: D1 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: D1 01 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: D1 01 00 A7 16 00 8E [13:51:46]Write to MH i2c: 01 00 00 A8 16 BE [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 30 47 00 39 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E1 02 00 F4 03 04 00 5B A9 18 67 B6 04 01 00 00 5E 46 D5 D8 11 EE AE 01 [13:51:46]CommunicateWithHost err = 0 [13:51:46]CheckOFDResponse [13:51:46]1017 (14) - 77093643461234 [13:51:46]1041 (16) - 0000000000965340 [13:51:46]1040 (4) - 188741 [13:51:46]1012 (4) - 23.10.2024 07:44 [13:51:46]1206 (1) - 0 [13:51:46]OFD Sender: Remove packet 188741 [13:51:46]ProducePacketName [13:51:46]name=ofd_packets/00188741 [13:51:46]NVStorageDeleteData [13:51:46]OFD Sender: No OFD packet to send [13:51:47]*** Cut start [13:51:47]*** Partial cut [13:51:47]*** CUTSNS_PIN = 1 [13:51:47]*** CUTSNS_PIN = 0 [13:51:47]*** Brake cut motor [13:51:48]Read from MH i2c: 01 [13:51:48]MH_I2C_Read... [13:51:48]*** Stop cut motor [13:51:48]*** Cut end [13:51:48]Read from MH i2c: 01 07 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: 01 07 00 A8 16 00 00 00 00 00 FF 0F D3 [13:51:48]process_action close_receipt done [13:51:48]requested_data is exist [13:51:48]produce_requested_data [13:51:48]requested_item fm.sn is exist - process it [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 11 00 00 [13:51:48]Write to MH i2c: E2 08 00 A9 16 80 11 00 00 00 00 00 00 39 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 17 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 17 00 A9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [13:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:51:48]wFMCommunicate OK [13:51:48]requested_item fd.num is exist - process it [13:51:48]SAM_PROTO_GetFieldsCounters [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 13 00 00 [13:51:48]Write to MH i2c: E2 08 00 AA 16 80 13 00 00 00 00 00 00 3C [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 62 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 62 00 AA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [13:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:48]wFMCommunicate OK [13:51:48]SAM_PROTO_GetFieldsCounters done [13:51:48]requested_item shift.num is exist - process it [13:51:48]requested_item shift.opened is exist - process it [13:51:48]req_shift_opened [13:51:48]FM_GetShiftState [13:51:48]SAM_PROTO_GetShiftState [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 13 01 00 [13:51:48]Write to MH i2c: E2 08 00 AB 16 80 13 01 00 00 00 00 00 3E [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 0E 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 0E 00 AB 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 26 [13:51:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:51:48]wFMCommunicate OK [13:51:48]SAM_PROTO_GetShiftState done [13:51:48]FM_GetShiftState done [13:51:48]req_shift_opened done [13:51:48]requested_item shift.open_date is exist - process it [13:51:48]req_shift_open_date [13:51:48]req_shift_open_date done [13:51:48]produce_requested_data done [13:51:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188741,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:51:48]process_action_free close_receipt [13:51:48]json_value_free [13:51:48]json_value_free done [13:51:48]process_json_proto returns [13:51:48]Send response to host [13:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188741,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:51:48]free response buf [13:51:48]execute_script done [13:51:48]execute_script returns [13:51:48]free content buf [13:51:48]Sock 9.Close socket [13:51:48]Sock 9.Thread stoped [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:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:50]accept exits with 7 [13:52:50]New connection [13:52:50]New thread 3067018596 created [13:52:50]Thread 3067161956 joined [13:52:50]Waiting for new connection... [13:52:50] Sock 7.Parse request [13:52:50]Sock 7.Check first char [13:52:50]Sock 7.First char is OK [13:52:50]request: POST /json_proto HTTP/1.0 [13:52:50]Method: POST [13:52:50]URL: /json_proto [13:52:50]Method is POST - this is cgi request [13:52:50]url: /json_proto [13:52:50]query_string will be loaded in cgi processing [13:52:50]execute_cgi json_proto POST (null) [13:52:50]execute_cgi path=json_proto method=POST [13:52:50]POST find Content-Length [13:52:50]Host: 172.17.42.131:8080 [13:52:50]Content-Length: 688 [13:52:50]Content-Type: application/json [13:52:50] [13:52:50]POST finish read [13:52:50]Found Content-Length = 688 [13:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:50]execute_script... [13:52:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:50]POST & json_proto [13:52:50]process_json_proto [13:52:50]json parsed OK: [13:52:50]protocol is kg_v1.0 [13:52:50]action value=close_receipt [13:52:50]process_action close_receipt [13:52:50]cmd_close_receipt [13:52:50]MH_GetDate [13:52:50]Write to MH i2c: F0 00 00 AC 16 B1 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 09 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 09 00 AC 16 00 B3 FF 18 67 A0 18 CA 66 D3 [13:52:50]GetLastDocTimeStamp 1729691504 [13:52:50]current date 1729691571 [13:52:50]FM_GetShiftState [13:52:50]SAM_PROTO_GetShiftState [13:52:50]wFMCommunicate request_size=4 [13:52:50]MH_SAM_APDU [13:52:50]CAPDU: 80 13 01 00 [13:52:50]Write to MH i2c: E2 08 00 AD 16 80 13 01 00 00 00 00 00 40 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 0E 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 0E 00 AD 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 28 [13:52:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:52:50]wFMCommunicate OK [13:52:50]SAM_PROTO_GetShiftState done [13:52:50]FM_GetShiftState done [13:52:50]opened in 1729642525 [13:52:50]opened+sec_in_day 1729728925 [13:52:50]quantity*price = 100051 [13:52:50]sum+1 = 100052 [13:52:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 200 23.10.2024 13:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188742 ФПД: 2382859379279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135251&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188742&fm=2382859379279&tin=02508201610067®Number=0000000000100030&sum=100000 [13:52:51]StoreToDocumentArchive [13:52:51]shift 462 fd 188742 [13:52:51]save to /storage/0462/doc_00188742 [13:52:51]save last doc name /storage/0462/doc_00188742 to /storage/kkm_last_doc_name [13:52:51]save OK [13:52:51]Clear old archive folders... [13:52:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:52:51]tlvbuf is 01BF81E0 [13:52:51]SAM_PROTO_ClearQueue [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 09 00 00 [13:52:51]Write to MH i2c: E2 08 00 BA 16 80 09 00 00 00 00 00 00 42 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]SAM_PROTO_ClearQueue done [13:52:51]KKMCreateOFDPacket [13:52:51]OFDProtocolAddRootSTLVToBuf [13:52:51]FM_MakeSignedData [13:52:51]FM_MakeSignedData [13:52:51]SAM_PROTO_SignData [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 01 02 [13:52:51]Write to MH i2c: E2 08 00 BB 16 80 0D 01 02 00 00 00 00 4A [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]wFMCommunicate request_size=255 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 B3 FF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E1 02 [13:52:51]Write to MH i2c: E2 02 01 BC 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 B3 FF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E1 02 00 00 98 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]wFMCommunicate request_size=16 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 02 2A CD 7C A2 4F [13:52:51]Write to MH i2c: E2 13 00 BD 16 80 0D 02 02 0B 00 00 35 04 06 00 02 2A CD 7C A2 4F 00 00 08 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 BD 16 00 90 00 47 [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 03 02 [13:52:51]Write to MH i2c: E2 08 00 BE 16 80 0D 03 02 00 00 00 00 4F [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 0B 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 0B 00 BE 16 00 5F 22 30 DB 84 A2 04 50 90 00 56 [13:52:51]RAPDU: 5F 22 30 DB 84 A2 04 50 90 00 [13:52:51]wFMCommunicate OK [13:52:51]SAM_PROTO_SignData done [13:52:51]FM_MakeSignedData done [13:52:51]CreateOFDProtocolMessage [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 11 00 00 [13:52:51]Write to MH i2c: E2 08 00 BF 16 80 11 00 00 00 00 00 00 4F [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 17 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 17 00 BF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [13:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:52:51]wFMCommunicate OK [13:52:51]CreateOFDProtocolMessage done [13:52:51]OFDSenderStorePacket 188742 [13:52:51]StoreOFDPacket docnum=188742 [13:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FA 87 0D 01 6C 5B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 B3 FF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E1 02 00 35 04 06 00 02 2A CD 7C A2 4F 5F 22 30 DB 84 A2 04 50 [13:52:51]CheckFolder [13:52:51]dirname=/storage/ofd_packets [13:52:51]CheckFolder done [13:52:51]ProducePacketName [13:52:51]name=ofd_packets/00188742 [13:52:51]NVStorageSaveData ofd_packets/00188742 [13:52:51]File name is /storage/ofd_packets/00188742 [13:52:51]Write 307 bytes [13:52:51]NVStorageSaveData done [13:52:51]OFDSenderStorePacket done [13:52:51]KKMCreateOFDPacket done [13:52:51]NVStorageSaveData kkm_last_timestamp [13:52:51]File name is /storage/kkm_last_timestamp [13:52:51]Write 4 bytes [13:52:51]NVStorageSaveData done [13:52:51]ExternCall_PrintAddStr [13:52:51]wPrintStart [13:52:51]Write to MH i2c: 01 00 00 C0 16 D6 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 C0 16 00 00 00 00 00 FF 0F EB [13:52:51]RasterBufferAndPrint [13:52:51]line Счет N : (1)210802 [13:52:51]line ИНН: 02508201610067 [13:52:51]line Контрольно-Кассовый Чек [13:52:51]line ПРОДАЖА [13:52:51]line ТРК (МРК, ГНК) : 31 [13:52:51]line Товар: 2710194210 [13:52:51]line D-ENERGY ДТ-К-5 [13:52:51]line 12.960 * 77.20 [13:52:51]line = 1000.51 [13:52:51]line НДС 12% НСП 1% [13:52:51]line > о реализуемом товаре [13:52:51]line ОКРУГЛЕНИЕ: -0.51 [13:52:51]line ИТОГО: 1000.00 [13:52:51]line Внесено: 1000.00 [13:52:51]line СДАЧА: 0.00 [13:52:51]line НСП 1% : 8.85 [13:52:51]line НДС 12% : 106.25 [13:52:51]line Наличными: 1000.00 [13:52:51]line Безнал.: 0.00 [13:52:51]line Место: АЗС № 86 "Партнер Нефть" [13:52:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:52:51]line СНО: Общий режим [13:52:51]line Чек 200 23.10.2024 13:52 [13:52:51]line Смена: 462 ФФД: 1.0 [13:52:51]line ЗНМ: 0300000155 [13:52:51]line РНМ: 0000000000100030 [13:52:51]line Версия ККМ: 001 [13:52:51]line ФМ: 0000000000965340 [13:52:51]line ФД: 188742 [13:52:51]line ФПД: 2382859379279 [13:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135251&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188742&fm=2382859379279&tin=02508201610067®Number=0000000000100030&sum=100000 [13:52:51]written 0, free lines is 4095 [13:52:51]OFD Sender: Processing packet 188742 [packets to send 1062, broken 1061] [13:52:51]ProducePacketName [13:52:51]name=ofd_packets/00188742 [13:52:51]OFD Sender: To server: pG, [13:52:51]CommunicateWithHost lk.salyk.kg:30040 [13:52:51]ConnectInit lk.salyk.kg [13:52:52]Connected sock=10 [13:52:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FA 87 0D 01 6C 5B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 B3 FF 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E1 02 00 35 04 06 00 02 2A CD 7C A2 4F 5F 22 30 DB 84 A2 04 50 [13:52:52]Write to MH i2c: 01 00 00 EB 16 01 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 07 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 07 00 EB 16 00 00 00 00 00 57 0C 6B [13:52:52]RasterBufferAndPrint [13:52:52]line [13:52:52]line [13:52:52]line [13:52:52]line [13:52:52]line [13:52:52]written 0, free lines is 3163 [13:52:52]MH_Cut [13:52:52]Write to MH i2c: D1 01 00 F2 16 01 DA [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: D1 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: D1 01 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: D1 01 00 F2 16 00 D9 [13:52:52]Write to MH i2c: 01 00 00 F3 16 09 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 23 56 47 00 5F 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E1 02 00 F4 03 04 00 9D A9 18 67 B6 04 01 00 00 12 6B BC 8B 17 3D 6D 00 [13:52:52]CommunicateWithHost err = 0 [13:52:52]CheckOFDResponse [13:52:52]1017 (14) - 77093643461234 [13:52:52]1041 (16) - 0000000000965340 [13:52:52]1040 (4) - 188742 [13:52:52]1012 (4) - 23.10.2024 07:45 [13:52:52]1206 (1) - 0 [13:52:52]OFD Sender: Remove packet 188742 [13:52:52]ProducePacketName [13:52:52]name=ofd_packets/00188742 [13:52:52]NVStorageDeleteData [13:52:52]OFD Sender: No OFD packet to send [13:52:53]*** Cut start [13:52:53]*** Partial cut [13:52:53]*** CUTSNS_PIN = 1 [13:52:53]*** CUTSNS_PIN = 0 [13:52:53]*** Brake cut motor [13:52:54]Read from MH i2c: 01 [13:52:54]MH_I2C_Read... [13:52:54]*** Stop cut motor [13:52:54]*** Cut end [13:52:54]Read from MH i2c: 01 07 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: 01 07 00 F3 16 00 00 00 00 00 FF 0F 1E [13:52:54]process_action close_receipt done [13:52:54]requested_data is exist [13:52:54]produce_requested_data [13:52:54]requested_item fm.sn is exist - process it [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 11 00 00 [13:52:54]Write to MH i2c: E2 08 00 F4 16 80 11 00 00 00 00 00 00 84 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 17 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 17 00 F4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [13:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:52:54]wFMCommunicate OK [13:52:54]requested_item fd.num is exist - process it [13:52:54]SAM_PROTO_GetFieldsCounters [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 13 00 00 [13:52:54]Write to MH i2c: E2 08 00 F5 16 80 13 00 00 00 00 00 00 87 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 62 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 62 00 F5 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [13: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:54]wFMCommunicate OK [13:52:54]SAM_PROTO_GetFieldsCounters done [13:52:54]requested_item shift.num is exist - process it [13:52:54]requested_item shift.opened is exist - process it [13:52:54]req_shift_opened [13:52:54]FM_GetShiftState [13:52:54]SAM_PROTO_GetShiftState [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 13 01 00 [13:52:54]Write to MH i2c: E2 08 00 F6 16 80 13 01 00 00 00 00 00 89 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 0E 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 0E 00 F6 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 71 [13:52:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:52:54]wFMCommunicate OK [13:52:54]SAM_PROTO_GetShiftState done [13:52:54]FM_GetShiftState done [13:52:54]req_shift_opened done [13:52:54]requested_item shift.open_date is exist - process it [13:52:54]req_shift_open_date [13:52:54]req_shift_open_date done [13:52:54]produce_requested_data done [13:52:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188742,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:52:54]process_action_free close_receipt [13:52:54]json_value_free [13:52:54]json_value_free done [13:52:54]process_json_proto returns [13:52:54]Send response to host [13:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188742,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:52:54]free response buf [13:52:54]execute_script done [13:52:54]execute_script returns [13:52:54]free content buf [13:52:54]Sock 7.Close socket [13:52:54]Sock 7.Thread stoped [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]accept exits with 9 [13:55:33]New connection [13:55:33]New thread 3067161956 created [13:55:33]Thread 3067018596 joined [13:55:33]Waiting for new connection... [13:55:33] Sock 9.Parse request [13:55:33]Sock 9.Check first char [13:55:33]Sock 9.First char is OK [13:55:33]request: POST /json_proto HTTP/1.0 [13:55:33]Method: POST [13:55:33]URL: /json_proto [13:55:33]Method is POST - this is cgi request [13:55:33]url: /json_proto [13:55:33]query_string will be loaded in cgi processing [13:55:33]execute_cgi json_proto POST (null) [13:55:33]execute_cgi path=json_proto method=POST [13:55:33]POST find Content-Length [13:55:33]Host: 172.17.42.131:8080 [13:55:33]Content-Length: 688 [13:55:33]Content-Type: application/json [13:55:33] [13:55:33]POST finish read [13:55:33]Found Content-Length = 688 [13:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:33]execute_script... [13:55:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:33]POST & json_proto [13:55:33]process_json_proto [13:55:33]json parsed OK: [13:55:33]protocol is kg_v1.0 [13:55:33]action value=close_receipt [13:55:33]process_action close_receipt [13:55:33]cmd_close_receipt [13:55:33]MH_GetDate [13:55:33]Write to MH i2c: F0 00 00 F7 16 FC [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: F0 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: F0 09 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: F0 09 00 F7 16 00 56 00 19 67 A0 18 CA 66 C3 [13:55:33]GetLastDocTimeStamp 1729691571 [13:55:33]current date 1729691734 [13:55:33]FM_GetShiftState [13:55:33]SAM_PROTO_GetShiftState [13:55:33]wFMCommunicate request_size=4 [13:55:33]MH_SAM_APDU [13:55:33]CAPDU: 80 13 01 00 [13:55:33]Write to MH i2c: E2 08 00 F8 16 80 13 01 00 00 00 00 00 8B [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:33]Read from MH i2c: E2 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: E2 0E 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: E2 0E 00 F8 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 73 [13:55:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:55:33]wFMCommunicate OK [13:55:33]SAM_PROTO_GetShiftState done [13:55:33]FM_GetShiftState done [13:55:33]opened in 1729642525 [13:55:33]opened+sec_in_day 1729728925 [13:55:33]quantity*price = 300076 [13:55:33]sum+1 = 300077 [13:55:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 201 23.10.2024 13:55 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188743 ФПД: 99238847152418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135534&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188743&fm=99238847152418&tin=02508201610067®Number=0000000000100030&sum=300000 [13:55:34]StoreToDocumentArchive [13:55:34]shift 462 fd 188743 [13:55:34]save to /storage/0462/doc_00188743 [13:55:34]save last doc name /storage/0462/doc_00188743 to /storage/kkm_last_doc_name [13:55:34]save OK [13:55:34]Clear old archive folders... [13:55:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:55:34]tlvbuf is 01C73C10 [13:55:34]SAM_PROTO_ClearQueue [13:55:34]wFMCommunicate request_size=4 [13:55:34]MH_SAM_APDU [13:55:34]CAPDU: 80 09 00 00 [13:55:34]Write to MH i2c: E2 08 00 05 17 80 09 00 00 00 00 00 00 8E [13:55:34]Write i2c OK [13:55:34]MH_I2C_Read... [13:55:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:34]Read from MH i2c: E2 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 03 00 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [13:55:34]RAPDU: 90 00 [13:55:34]wFMCommunicate OK [13:55:34]SAM_PROTO_ClearQueue done [13:55:34]KKMCreateOFDPacket [13:55:34]OFDProtocolAddRootSTLVToBuf [13:55:34]FM_MakeSignedData [13:55:34]FM_MakeSignedData [13:55:34]SAM_PROTO_SignData [13:55:34]wFMCommunicate request_size=4 [13:55:34]MH_SAM_APDU [13:55:34]CAPDU: 80 0D 01 02 [13:55:34]Write to MH i2c: E2 08 00 06 17 80 0D 01 02 00 00 00 00 96 [13:55:34]Write i2c OK [13:55:34]MH_I2C_Read... [13:55:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:34]Read from MH i2c: E2 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 03 00 [13:55:34]MH_I2C_Read... [13:55:34]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [13:55:34]RAPDU: 90 00 [13:55:34]wFMCommunicate OK [13:55:34]wFMCommunicate request_size=255 [13:55:34]MH_SAM_APDU [13:55:34]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 56 00 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E1 02 [13:55:34]Write to MH i2c: E2 02 01 07 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 56 00 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E1 02 00 00 6D [13:55:34]Write i2c OK [13:55:34]MH_I2C_Read... [13:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:35]Read from MH i2c: E2 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: E2 03 00 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [13:55:35]RAPDU: 90 00 [13:55:35]wFMCommunicate OK [13:55:35]wFMCommunicate request_size=16 [13:55:35]MH_SAM_APDU [13:55:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5A 41 D8 3B 81 22 [13:55:35]Write to MH i2c: E2 13 00 08 17 80 0D 02 02 0B 00 00 35 04 06 00 5A 41 D8 3B 81 22 00 00 3F [13:55:35]Write i2c OK [13:55:35]MH_I2C_Read... [13:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:35]Read from MH i2c: E2 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: E2 03 00 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: E2 03 00 08 17 00 90 00 93 [13:55:35]RAPDU: 90 00 [13:55:35]wFMCommunicate OK [13:55:35]wFMCommunicate request_size=4 [13:55:35]MH_SAM_APDU [13:55:35]CAPDU: 80 0D 03 02 [13:55:35]Write to MH i2c: E2 08 00 09 17 80 0D 03 02 00 00 00 00 9B [13:55:35]Write i2c OK [13:55:35]MH_I2C_Read... [13:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:35]Read from MH i2c: E2 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: E2 0B 00 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: E2 0B 00 09 17 00 02 AD C4 DB 53 72 61 20 90 00 30 [13:55:35]RAPDU: 02 AD C4 DB 53 72 61 20 90 00 [13:55:35]wFMCommunicate OK [13:55:35]SAM_PROTO_SignData done [13:55:35]FM_MakeSignedData done [13:55:35]CreateOFDProtocolMessage [13:55:35]wFMCommunicate request_size=4 [13:55:35]MH_SAM_APDU [13:55:35]CAPDU: 80 11 00 00 [13:55:35]Write to MH i2c: E2 08 00 0A 17 80 11 00 00 00 00 00 00 9B [13:55:35]Write i2c OK [13:55:35]MH_I2C_Read... [13:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:35]Read from MH i2c: E2 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: E2 17 00 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: E2 17 00 0A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [13:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:55:35]wFMCommunicate OK [13:55:35]CreateOFDProtocolMessage done [13:55:35]OFDSenderStorePacket 188743 [13:55:35]StoreOFDPacket docnum=188743 [13:55:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 12 66 0D 01 B2 B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 56 00 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E1 02 00 35 04 06 00 5A 41 D8 3B 81 22 02 AD C4 DB 53 72 61 20 [13:55:35]CheckFolder [13:55:35]dirname=/storage/ofd_packets [13:55:35]CheckFolder done [13:55:35]ProducePacketName [13:55:35]name=ofd_packets/00188743 [13:55:35]NVStorageSaveData ofd_packets/00188743 [13:55:35]File name is /storage/ofd_packets/00188743 [13:55:35]Write 307 bytes [13:55:35]NVStorageSaveData done [13:55:35]OFDSenderStorePacket done [13:55:35]KKMCreateOFDPacket done [13:55:35]NVStorageSaveData kkm_last_timestamp [13:55:35]File name is /storage/kkm_last_timestamp [13:55:35]Write 4 bytes [13:55:35]NVStorageSaveData done [13:55:35]ExternCall_PrintAddStr [13:55:35]wPrintStart [13:55:35]Write to MH i2c: 01 00 00 0B 17 22 [13:55:35]Write i2c OK [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: 01 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: 01 07 00 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: 01 07 00 0B 17 00 00 00 00 00 FF 0F 37 [13:55:35]RasterBufferAndPrint [13:55:35]line Счет N : (1)210803 [13:55:35]line ИНН: 02508201610067 [13:55:35]line Контрольно-Кассовый Чек [13:55:35]line ПРОДАЖА [13:55:35]line ТРК (МРК, ГНК) : 21 [13:55:35]line Товар: 2710194210 [13:55:35]line D-ENERGY ДТ-К-5 [13:55:35]line 38.870 * 77.20 [13:55:35]line = 3000.76 [13:55:35]line НДС 12% НСП 1% [13:55:35]line > о реализуемом товаре [13:55:35]line ОКРУГЛЕНИЕ: -0.76 [13:55:35]line ИТОГО: 3000.00 [13:55:35]line Внесено: 3000.00 [13:55:35]line СДАЧА: 0.00 [13:55:35]line НСП 1% : 26.55 [13:55:35]line НДС 12% : 318.66 [13:55:35]line Наличными: 3000.00 [13:55:35]line Безнал.: 0.00 [13:55:35]line Место: АЗС № 86 "Партнер Нефть" [13:55:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:55:35]line СНО: Общий режим [13:55:35]line Чек 201 23.10.2024 13:55 [13:55:35]line Смена: 462 ФФД: 1.0 [13:55:35]line ЗНМ: 0300000155 [13:55:35]line РНМ: 0000000000100030 [13:55:35]line Версия ККМ: 001 [13:55:35]line ФМ: 0000000000965340 [13:55:35]line ФД: 188743 [13:55:35]line ФПД: 99238847152418 [13:55:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135534&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188743&fm=99238847152418&tin=02508201610067®Number=0000000000100030&sum=300000 [13:55:35]written 0, free lines is 4095 [13:55:35]OFD Sender: Processing packet 188743 [packets to send 1062, broken 1061] [13:55:35]ProducePacketName [13:55:35]name=ofd_packets/00188743 [13:55:35]OFD Sender: To server: pG, [13:55:35]CommunicateWithHost lk.salyk.kg:30040 [13:55:35]ConnectInit lk.salyk.kg [13:55:35]Write to MH i2c: 01 00 00 36 17 4D [13:55:35]Write i2c OK [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: 01 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: 01 07 00 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 56 0C B6 [13:55:35]RasterBufferAndPrint [13:55:35]line [13:55:35]line [13:55:35]line [13:55:35]line [13:55:35]line [13:55:35]written 0, free lines is 3160 [13:55:35]MH_Cut [13:55:35]Write to MH i2c: D1 01 00 3D 17 01 26 [13:55:35]Write i2c OK [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: D1 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: D1 01 00 [13:55:35]MH_I2C_Read... [13:55:35]Read from MH i2c: D1 01 00 3D 17 00 25 [13:55:35]Write to MH i2c: 01 00 00 3E 17 55 [13:55:35]Write i2c OK [13:55:35]MH_I2C_Read... [13:55:35]Connected sock=11 [13:55:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 12 66 0D 01 B2 B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 56 00 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E1 02 00 35 04 06 00 5A 41 D8 3B 81 22 02 AD C4 DB 53 72 61 20 [13:55:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BE 46 47 00 32 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E1 02 00 F4 03 04 00 41 AA 18 67 B6 04 01 00 00 05 D0 4A DD DB 62 9A 47 [13:55:36]CommunicateWithHost err = 0 [13:55:36]CheckOFDResponse [13:55:36]1017 (14) - 77093643461234 [13:55:36]1041 (16) - 0000000000965340 [13:55:36]1040 (4) - 188743 [13:55:36]1012 (4) - 23.10.2024 07:48 [13:55:36]1206 (1) - 0 [13:55:36]OFD Sender: Remove packet 188743 [13:55:36]ProducePacketName [13:55:36]name=ofd_packets/00188743 [13:55:36]NVStorageDeleteData [13:55:36]OFD Sender: No OFD packet to send [13:55:36]*** Cut start [13:55:36]*** Partial cut [13:55:36]*** CUTSNS_PIN = 1 [13:55:37]*** CUTSNS_PIN = 0 [13:55:37]*** Brake cut motor [13:55:37]Read from MH i2c: 01 [13:55:37]MH_I2C_Read... [13:55:37]*** Stop cut motor [13:55:37]*** Cut end [13:55:37]Read from MH i2c: 01 07 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: 01 07 00 3E 17 00 00 00 00 00 FF 0F 6A [13:55:37]process_action close_receipt done [13:55:37]requested_data is exist [13:55:37]produce_requested_data [13:55:37]requested_item fm.sn is exist - process it [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 11 00 00 [13:55:37]Write to MH i2c: E2 08 00 3F 17 80 11 00 00 00 00 00 00 D0 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 17 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 17 00 3F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [13:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:55:37]wFMCommunicate OK [13:55:37]requested_item fd.num is exist - process it [13:55:37]SAM_PROTO_GetFieldsCounters [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 13 00 00 [13:55:37]Write to MH i2c: E2 08 00 40 17 80 13 00 00 00 00 00 00 D3 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 62 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 62 00 40 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [13:55:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:37]wFMCommunicate OK [13:55:37]SAM_PROTO_GetFieldsCounters done [13:55:37]requested_item shift.num is exist - process it [13:55:37]requested_item shift.opened is exist - process it [13:55:37]req_shift_opened [13:55:37]FM_GetShiftState [13:55:37]SAM_PROTO_GetShiftState [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 13 01 00 [13:55:37]Write to MH i2c: E2 08 00 41 17 80 13 01 00 00 00 00 00 D5 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 0E 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 0E 00 41 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BD [13:55:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:55:37]wFMCommunicate OK [13:55:37]SAM_PROTO_GetShiftState done [13:55:37]FM_GetShiftState done [13:55:37]req_shift_opened done [13:55:37]requested_item shift.open_date is exist - process it [13:55:37]req_shift_open_date [13:55:37]req_shift_open_date done [13:55:37]produce_requested_data done [13:55:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188743,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:55:37]process_action_free close_receipt [13:55:37]json_value_free [13:55:37]json_value_free done [13:55:37]process_json_proto returns [13:55:37]Send response to host [13:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188743,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:55:37]free response buf [13:55:37]execute_script done [13:55:37]execute_script returns [13:55:37]free content buf [13:55:37]Sock 9.Close socket [13:55:37]Sock 9.Thread stoped [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:52]accept exits with 7 [13:59:52]New connection [13:59:52]New thread 3067018596 created [13:59:52]Thread 3067161956 joined [13:59:52]Waiting for new connection... [13:59:52] Sock 7.Parse request [13:59:52]Sock 7.Check first char [13:59:52]Sock 7.First char is OK [13:59:52]request: POST /json_proto HTTP/1.0 [13:59:52]Method: POST [13:59:52]URL: /json_proto [13:59:52]Method is POST - this is cgi request [13:59:52]url: /json_proto [13:59:52]query_string will be loaded in cgi processing [13:59:52]execute_cgi json_proto POST (null) [13:59:52]execute_cgi path=json_proto method=POST [13:59:52]POST find Content-Length [13:59:52]Host: 172.17.42.131:8080 [13:59:52]Content-Length: 688 [13:59:52]Content-Type: application/json [13:59:52] [13:59:52]POST finish read [13:59:52]Found Content-Length = 688 [13:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:52]execute_script... [13:59:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:52]POST & json_proto [13:59:52]process_json_proto [13:59:52]json parsed OK: [13:59:52]protocol is kg_v1.0 [13:59:52]action value=close_receipt [13:59:52]process_action close_receipt [13:59:52]cmd_close_receipt [13:59:52]MH_GetDate [13:59:52]Write to MH i2c: F0 00 00 42 17 48 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 09 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 09 00 42 17 00 59 01 19 67 A0 18 CA 66 13 [13:59:52]GetLastDocTimeStamp 1729691734 [13:59:52]current date 1729691993 [13:59:52]FM_GetShiftState [13:59:52]SAM_PROTO_GetShiftState [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 13 01 00 [13:59:52]Write to MH i2c: E2 08 00 43 17 80 13 01 00 00 00 00 00 D7 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 43 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BF [13:59:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_GetShiftState done [13:59:52]FM_GetShiftState done [13:59:52]opened in 1729642525 [13:59:52]opened+sec_in_day 1729728925 [13:59:52]quantity*price = 100051 [13:59:52]sum+1 = 100052 [13:59:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 202 23.10.2024 13:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188744 ФПД: 146774065517297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135953&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188744&fm=146774065517297&tin=02508201610067®Number=0000000000100030&sum=100000 [13:59:53]StoreToDocumentArchive [13:59:53]shift 462 fd 188744 [13:59:53]save to /storage/0462/doc_00188744 [13:59:53]save last doc name /storage/0462/doc_00188744 to /storage/kkm_last_doc_name [13:59:53]save OK [13:59:53]Clear old archive folders... [13:59:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:59:53]tlvbuf is 01C441A0 [13:59:53]SAM_PROTO_ClearQueue [13:59:53]wFMCommunicate request_size=4 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 09 00 00 [13:59:53]Write to MH i2c: E2 08 00 50 17 80 09 00 00 00 00 00 00 D9 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]SAM_PROTO_ClearQueue done [13:59:54]KKMCreateOFDPacket [13:59:54]OFDProtocolAddRootSTLVToBuf [13:59:54]FM_MakeSignedData [13:59:54]FM_MakeSignedData [13:59:54]SAM_PROTO_SignData [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 0D 01 02 [13:59:54]Write to MH i2c: E2 08 00 51 17 80 0D 01 02 00 00 00 00 E1 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]wFMCommunicate request_size=255 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 59 01 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E1 02 [13:59:54]Write to MH i2c: E2 02 01 52 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 59 01 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E1 02 00 00 DC [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 52 17 00 90 00 DD [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]wFMCommunicate request_size=16 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 85 7D 80 09 92 F1 [13:59:54]Write to MH i2c: E2 13 00 53 17 80 0D 02 02 0B 00 00 35 04 06 00 85 7D 80 09 92 F1 00 00 47 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 03 00 53 17 00 90 00 DE [13:59:54]RAPDU: 90 00 [13:59:54]wFMCommunicate OK [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 0D 03 02 [13:59:54]Write to MH i2c: E2 08 00 54 17 80 0D 03 02 00 00 00 00 E6 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 0B 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 0B 00 54 17 00 D8 A9 72 12 D8 D7 A2 55 90 00 92 [13:59:54]RAPDU: D8 A9 72 12 D8 D7 A2 55 90 00 [13:59:54]wFMCommunicate OK [13:59:54]SAM_PROTO_SignData done [13:59:54]FM_MakeSignedData done [13:59:54]CreateOFDProtocolMessage [13:59:54]wFMCommunicate request_size=4 [13:59:54]MH_SAM_APDU [13:59:54]CAPDU: 80 11 00 00 [13:59:54]Write to MH i2c: E2 08 00 55 17 80 11 00 00 00 00 00 00 E6 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:54]Read from MH i2c: E2 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 17 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: E2 17 00 55 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [13:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:59:54]wFMCommunicate OK [13:59:54]CreateOFDProtocolMessage done [13:59:54]OFDSenderStorePacket 188744 [13:59:54]StoreOFDPacket docnum=188744 [13:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 44 DB 0D 01 68 69 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 59 01 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E1 02 00 35 04 06 00 85 7D 80 09 92 F1 D8 A9 72 12 D8 D7 A2 55 [13:59:54]CheckFolder [13:59:54]dirname=/storage/ofd_packets [13:59:54]CheckFolder done [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00188744 [13:59:54]NVStorageSaveData ofd_packets/00188744 [13:59:54]File name is /storage/ofd_packets/00188744 [13:59:54]Write 307 bytes [13:59:54]NVStorageSaveData done [13:59:54]OFDSenderStorePacket done [13:59:54]KKMCreateOFDPacket done [13:59:54]NVStorageSaveData kkm_last_timestamp [13:59:54]File name is /storage/kkm_last_timestamp [13:59:54]Write 4 bytes [13:59:54]NVStorageSaveData done [13:59:54]ExternCall_PrintAddStr [13:59:54]wPrintStart [13:59:54]Write to MH i2c: 01 00 00 56 17 6D [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 FF 0F 82 [13:59:54]RasterBufferAndPrint [13:59:54]line Счет N : (1)210804 [13:59:54]line ИНН: 02508201610067 [13:59:54]line Контрольно-Кассовый Чек [13:59:54]line ПРОДАЖА [13:59:54]line ТРК (МРК, ГНК) : 11 [13:59:54]line Товар: 2710194210 [13:59:54]line D-ENERGY ДТ-К-5 [13:59:54]line 12.960 * 77.20 [13:59:54]line = 1000.51 [13:59:54]line НДС 12% НСП 1% [13:59:54]line > о реализуемом товаре [13:59:54]line ОКРУГЛЕНИЕ: -0.51 [13:59:54]line ИТОГО: 1000.00 [13:59:54]line Внесено: 1000.00 [13:59:54]line СДАЧА: 0.00 [13:59:54]line НСП 1% : 8.85 [13:59:54]line НДС 12% : 106.25 [13:59:54]line Наличными: 1000.00 [13:59:54]line Безнал.: 0.00 [13:59:54]line Место: АЗС № 86 "Партнер Нефть" [13:59:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:59:54]line СНО: Общий режим [13:59:54]line Чек 202 23.10.2024 13:59 [13:59:54]line Смена: 462 ФФД: 1.0 [13:59:54]line ЗНМ: 0300000155 [13:59:54]line РНМ: 0000000000100030 [13:59:54]line Версия ККМ: 001 [13:59:54]line ФМ: 0000000000965340 [13:59:54]line ФД: 188744 [13:59:54]line ФПД: 146774065517297 [13:59:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135953&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188744&fm=146774065517297&tin=02508201610067®Number=0000000000100030&sum=100000 [13:59:54]written 0, free lines is 4095 [13:59:54]OFD Sender: Processing packet 188744 [packets to send 1062, broken 1061] [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00188744 [13:59:54]OFD Sender: To server: pG, [13:59:54]CommunicateWithHost lk.salyk.kg:30040 [13:59:54]ConnectInit lk.salyk.kg [13:59:54]Connected sock=10 [13:59:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 44 DB 0D 01 68 69 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 59 01 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E1 02 00 35 04 06 00 85 7D 80 09 92 F1 D8 A9 72 12 D8 D7 A2 55 [13:59:54]Write to MH i2c: 01 00 00 81 17 98 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 81 17 00 00 00 00 00 53 0C FE [13:59:54]RasterBufferAndPrint [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]written 0, free lines is 3160 [13:59:54]MH_Cut [13:59:54]Write to MH i2c: D1 01 00 88 17 01 71 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 01 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 01 00 88 17 00 70 [13:59:54]Write to MH i2c: 01 00 00 89 17 A0 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A 3E 47 00 62 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E1 02 00 F4 03 04 00 44 AB 18 67 B6 04 01 00 00 B3 F9 E5 06 EB F4 A9 1F [13:59:55]CommunicateWithHost err = 0 [13:59:55]CheckOFDResponse [13:59:55]1017 (14) - 77093643461234 [13:59:55]1041 (16) - 0000000000965340 [13:59:55]1040 (4) - 188744 [13:59:55]1012 (4) - 23.10.2024 07:52 [13:59:55]1206 (1) - 0 [13:59:55]OFD Sender: Remove packet 188744 [13:59:55]ProducePacketName [13:59:55]name=ofd_packets/00188744 [13:59:55]NVStorageDeleteData [13:59:55]OFD Sender: No OFD packet to send [13:59:56]*** Cut start [13:59:56]*** Partial cut [13:59:56]*** CUTSNS_PIN = 1 [13:59:56]*** CUTSNS_PIN = 0 [13:59:56]*** Brake cut motor [13:59:56]Read from MH i2c: 01 [13:59:56]MH_I2C_Read... [13:59:56]*** Stop cut motor [13:59:56]*** Cut end [13:59:56]Read from MH i2c: 01 07 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 FF 0F B5 [13:59:56]process_action close_receipt done [13:59:56]requested_data is exist [13:59:56]produce_requested_data [13:59:56]requested_item fm.sn is exist - process it [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 11 00 00 [13:59:56]Write to MH i2c: E2 08 00 8A 17 80 11 00 00 00 00 00 00 1B [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:56]Read from MH i2c: E2 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 17 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 17 00 8A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [13:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:59:56]wFMCommunicate OK [13:59:56]requested_item fd.num is exist - process it [13:59:56]SAM_PROTO_GetFieldsCounters [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 13 00 00 [13:59:56]Write to MH i2c: E2 08 00 8B 17 80 13 00 00 00 00 00 00 1E [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:57]Read from MH i2c: E2 [13:59:57]MH_I2C_Read... [13:59:57]Read from MH i2c: E2 62 00 [13:59:57]MH_I2C_Read... [13:59:57]Read from MH i2c: E2 62 00 8B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [13:59:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:57]wFMCommunicate OK [13:59:57]SAM_PROTO_GetFieldsCounters done [13:59:57]requested_item shift.num is exist - process it [13:59:57]requested_item shift.opened is exist - process it [13:59:57]req_shift_opened [13:59:57]FM_GetShiftState [13:59:57]SAM_PROTO_GetShiftState [13:59:57]wFMCommunicate request_size=4 [13:59:57]MH_SAM_APDU [13:59:57]CAPDU: 80 13 01 00 [13:59:57]Write to MH i2c: E2 08 00 8C 17 80 13 01 00 00 00 00 00 20 [13:59:57]Write i2c OK [13:59:57]MH_I2C_Read... [13:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:57]Read from MH i2c: E2 [13:59:57]MH_I2C_Read... [13:59:57]Read from MH i2c: E2 0E 00 [13:59:57]MH_I2C_Read... [13:59:57]Read from MH i2c: E2 0E 00 8C 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 08 [13:59:57]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [13:59:57]wFMCommunicate OK [13:59:57]SAM_PROTO_GetShiftState done [13:59:57]FM_GetShiftState done [13:59:57]req_shift_opened done [13:59:57]requested_item shift.open_date is exist - process it [13:59:57]req_shift_open_date [13:59:57]req_shift_open_date done [13:59:57]produce_requested_data done [13:59:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188744,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [13:59:57]process_action_free close_receipt [13:59:57]json_value_free [13:59:57]json_value_free done [13:59:57]process_json_proto returns [13:59:57]Send response to host [13:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188744,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [13:59:57]free response buf [13:59:57]execute_script done [13:59:57]execute_script returns [13:59:57]free content buf [13:59:57]Sock 7.Close socket [13:59:57]Sock 7.Thread stoped [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:00]accept exits with 9 [14:02:00]New connection [14:02:00]New thread 3067161956 created [14:02:00]Thread 3067018596 joined [14:02:00]Waiting for new connection... [14:02:00] Sock 9.Parse request [14:02:00]Sock 9.Check first char [14:02:00]Sock 9.First char is OK [14:02:00]request: POST /json_proto HTTP/1.0 [14:02:00]Method: POST [14:02:00]URL: /json_proto [14:02:00]Method is POST - this is cgi request [14:02:00]url: /json_proto [14:02:00]query_string will be loaded in cgi processing [14:02:00]execute_cgi json_proto POST (null) [14:02:00]execute_cgi path=json_proto method=POST [14:02:00]POST find Content-Length [14:02:00]Host: 172.17.42.131:8080 [14:02:00]Content-Length: 677 [14:02:00]Content-Type: application/json [14:02:00] [14:02:00]POST finish read [14:02:00]Found Content-Length = 677 [14:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:00]execute_script... [14:02:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:00]POST & json_proto [14:02:00]process_json_proto [14:02:00]json parsed OK: [14:02:00]protocol is kg_v1.0 [14:02:00]action value=close_receipt [14:02:00]process_action close_receipt [14:02:00]cmd_close_receipt [14:02:00]MH_GetDate [14:02:00]Write to MH i2c: F0 00 00 8D 17 93 [14:02:00]Write i2c OK [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: F0 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: F0 09 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: F0 09 00 8D 17 00 D9 01 19 67 A0 18 CA 66 DE [14:02:00]GetLastDocTimeStamp 1729691993 [14:02:00]current date 1729692121 [14:02:00]FM_GetShiftState [14:02:00]SAM_PROTO_GetShiftState [14:02:00]wFMCommunicate request_size=4 [14:02:00]MH_SAM_APDU [14:02:00]CAPDU: 80 13 01 00 [14:02:00]Write to MH i2c: E2 08 00 8E 17 80 13 01 00 00 00 00 00 22 [14:02:00]Write i2c OK [14:02:00]MH_I2C_Read... [14:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:00]Read from MH i2c: E2 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 0E 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 0E 00 8E 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0A [14:02:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:02:00]wFMCommunicate OK [14:02:00]SAM_PROTO_GetShiftState done [14:02:00]FM_GetShiftState done [14:02:00]opened in 1729642525 [14:02:00]opened+sec_in_day 1729728925 [14:02:00]quantity*price = 60009 [14:02:00]sum+1 = 60010 [14:02:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 203 23.10.2024 14:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188745 ФПД: 151576738886673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140201&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188745&fm=151576738886673&tin=02508201610067®Number=0000000000100030&sum=60000 [14:02:01]StoreToDocumentArchive [14:02:01]shift 462 fd 188745 [14:02:01]save to /storage/0462/doc_00188745 [14:02:01]save last doc name /storage/0462/doc_00188745 to /storage/kkm_last_doc_name [14:02:01]save OK [14:02:01]Clear old archive folders... [14:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:01]tlvbuf is B6EF40E0 [14:02:01]SAM_PROTO_ClearQueue [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 09 00 00 [14:02:01]Write to MH i2c: E2 08 00 9B 17 80 09 00 00 00 00 00 00 24 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 9B 17 00 90 00 26 [14:02:01]RAPDU: 90 00 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_ClearQueue done [14:02:01]KKMCreateOFDPacket [14:02:01]OFDProtocolAddRootSTLVToBuf [14:02:01]FM_MakeSignedData [14:02:01]FM_MakeSignedData [14:02:01]SAM_PROTO_SignData [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 0D 01 02 [14:02:01]Write to MH i2c: E2 08 00 9C 17 80 0D 01 02 00 00 00 00 2C [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 9C 17 00 90 00 27 [14:02:01]RAPDU: 90 00 [14:02:01]wFMCommunicate OK [14:02:01]wFMCommunicate request_size=255 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D9 01 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E1 02 00 35 04 06 00 89 [14:02:01]Write to MH i2c: E2 02 01 9D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D9 01 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E1 02 00 35 04 06 00 89 00 00 25 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 9D 17 00 90 00 28 [14:02:01]RAPDU: 90 00 [14:02:01]wFMCommunicate OK [14:02:01]wFMCommunicate request_size=10 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 0D 02 02 05 DB B5 AD 74 11 [14:02:01]Write to MH i2c: E2 0D 00 9E 17 80 0D 02 02 05 00 DB B5 AD 74 11 00 00 FB [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 9E 17 00 90 00 29 [14:02:01]RAPDU: 90 00 [14:02:01]wFMCommunicate OK [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 0D 03 02 [14:02:01]Write to MH i2c: E2 08 00 9F 17 80 0D 03 02 00 00 00 00 31 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 0B 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 0B 00 9F 17 00 B8 2B 51 38 24 BE D2 63 90 00 B5 [14:02:01]RAPDU: B8 2B 51 38 24 BE D2 63 90 00 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_SignData done [14:02:01]FM_MakeSignedData done [14:02:01]CreateOFDProtocolMessage [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 11 00 00 [14:02:01]Write to MH i2c: E2 08 00 A0 17 80 11 00 00 00 00 00 00 31 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 17 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 17 00 A0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [14:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:02:01]wFMCommunicate OK [14:02:01]CreateOFDProtocolMessage done [14:02:01]OFDSenderStorePacket 188745 [14:02:01]StoreOFDPacket docnum=188745 [14:02:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 A1 07 01 AE AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D9 01 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E1 02 00 35 04 06 00 89 DB B5 AD 74 11 B8 2B 51 38 24 BE D2 63 [14:02:01]CheckFolder [14:02:01]dirname=/storage/ofd_packets [14:02:01]CheckFolder done [14:02:01]ProducePacketName [14:02:01]name=ofd_packets/00188745 [14:02:01]NVStorageSaveData ofd_packets/00188745 [14:02:01]File name is /storage/ofd_packets/00188745 [14:02:01]Write 301 bytes [14:02:01]NVStorageSaveData done [14:02:01]OFDSenderStorePacket done [14:02:01]KKMCreateOFDPacket done [14:02:01]NVStorageSaveData kkm_last_timestamp [14:02:01]File name is /storage/kkm_last_timestamp [14:02:01]Write 4 bytes [14:02:01]NVStorageSaveData done [14:02:01]ExternCall_PrintAddStr [14:02:01]wPrintStart [14:02:01]Write to MH i2c: 01 00 00 A1 17 B8 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: 01 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: 01 07 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: 01 07 00 A1 17 00 00 00 00 00 FF 0F CD [14:02:01]RasterBufferAndPrint [14:02:01]line Счет N : (1)210806 [14:02:01]line ИНН: 02508201610067 [14:02:01]line Контрольно-Кассовый Чек [14:02:01]line ПРОДАЖА [14:02:01]line ТРК (МРК, ГНК) : 12 [14:02:01]line Товар: 2710124130 [14:02:01]line Аи-92-К-3 [14:02:01]line 8.970 * 66.90 [14:02:01]line = 600.09 [14:02:01]line НДС 12% НСП 1% [14:02:01]line > о реализуемом товаре [14:02:01]line ОКРУГЛЕНИЕ: -0.09 [14:02:01]line ИТОГО: 600.00 [14:02:01]line Внесено: 600.00 [14:02:01]line СДАЧА: 0.00 [14:02:01]line НСП 1% : 5.31 [14:02:01]line НДС 12% : 63.73 [14:02:01]line Наличными: 600.00 [14:02:01]line Безнал.: 0.00 [14:02:01]line Место: АЗС № 86 "Партнер Нефть" [14:02:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:02:01]line СНО: Общий режим [14:02:01]line Чек 203 23.10.2024 14:02 [14:02:01]line Смена: 462 ФФД: 1.0 [14:02:01]line ЗНМ: 0300000155 [14:02:01]line РНМ: 0000000000100030 [14:02:01]line Версия ККМ: 001 [14:02:01]line ФМ: 0000000000965340 [14:02:01]line ФД: 188745 [14:02:01]line ФПД: 151576738886673 [14:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140201&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188745&fm=151576738886673&tin=02508201610067®Number=0000000000100030&sum=60000 [14:02:01]written 0, free lines is 4095 [14:02:02]OFD Sender: Processing packet 188745 [packets to send 1062, broken 1061] [14:02:02]ProducePacketName [14:02:02]name=ofd_packets/00188745 [14:02:02]OFD Sender: To server: pG, [14:02:02]CommunicateWithHost lk.salyk.kg:30040 [14:02:02]ConnectInit lk.salyk.kg [14:02:02]Connected sock=7 [14:02:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 A1 07 01 AE AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D9 01 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E1 02 00 35 04 06 00 89 DB B5 AD 74 11 B8 2B 51 38 24 BE D2 63 [14:02:02]Write to MH i2c: 01 00 00 CC 17 E3 [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: 01 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: 01 07 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: 01 07 00 CC 17 00 00 00 00 00 58 0C 4E [14:02:02]RasterBufferAndPrint [14:02:02]line [14:02:02]line [14:02:02]line [14:02:02]line [14:02:02]line [14:02:02]written 0, free lines is 3164 [14:02:02]MH_Cut [14:02:02]Write to MH i2c: D1 01 00 D3 17 01 BC [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: D1 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: D1 01 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: D1 01 00 D3 17 00 BB [14:02:02]Write to MH i2c: 01 00 00 D4 17 EB [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD D1 47 00 3D 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E1 02 00 F4 03 04 00 C3 AB 18 67 B6 04 01 00 00 2A 2F 9F 9C A2 20 88 F9 [14:02:02]CommunicateWithHost err = 0 [14:02:02]CheckOFDResponse [14:02:02]1017 (14) - 77093643461234 [14:02:02]1041 (16) - 0000000000965340 [14:02:02]1040 (4) - 188745 [14:02:02]1012 (4) - 23.10.2024 07:54 [14:02:02]1206 (1) - 0 [14:02:02]OFD Sender: Remove packet 188745 [14:02:02]ProducePacketName [14:02:02]name=ofd_packets/00188745 [14:02:02]NVStorageDeleteData [14:02:03]OFD Sender: No OFD packet to send [14:02:03]*** Cut start [14:02:03]*** Partial cut [14:02:03]*** CUTSNS_PIN = 1 [14:02:03]*** CUTSNS_PIN = 0 [14:02:04]*** Brake cut motor [14:02:04]Read from MH i2c: 01 [14:02:04]MH_I2C_Read... [14:02:04]*** Stop cut motor [14:02:04]*** Cut end [14:02:04]Read from MH i2c: 01 07 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: 01 07 00 D4 17 00 00 00 00 00 FF 0F 00 [14:02:04]process_action close_receipt done [14:02:04]requested_data is exist [14:02:04]produce_requested_data [14:02:04]requested_item fm.sn is exist - process it [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 11 00 00 [14:02:04]Write to MH i2c: E2 08 00 D5 17 80 11 00 00 00 00 00 00 66 [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 17 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 17 00 D5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [14:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:02:04]wFMCommunicate OK [14:02:04]requested_item fd.num is exist - process it [14:02:04]SAM_PROTO_GetFieldsCounters [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 13 00 00 [14:02:04]Write to MH i2c: E2 08 00 D6 17 80 13 00 00 00 00 00 00 69 [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 62 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 62 00 D6 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:02:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:04]wFMCommunicate OK [14:02:04]SAM_PROTO_GetFieldsCounters done [14:02:04]requested_item shift.num is exist - process it [14:02:04]requested_item shift.opened is exist - process it [14:02:04]req_shift_opened [14:02:04]FM_GetShiftState [14:02:04]SAM_PROTO_GetShiftState [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 13 01 00 [14:02:04]Write to MH i2c: E2 08 00 D7 17 80 13 01 00 00 00 00 00 6B [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0E 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0E 00 D7 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 53 [14:02:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:02:04]wFMCommunicate OK [14:02:04]SAM_PROTO_GetShiftState done [14:02:04]FM_GetShiftState done [14:02:04]req_shift_opened done [14:02:04]requested_item shift.open_date is exist - process it [14:02:04]req_shift_open_date [14:02:04]req_shift_open_date done [14:02:04]produce_requested_data done [14:02:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188745,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:02:04]process_action_free close_receipt [14:02:04]json_value_free [14:02:04]json_value_free done [14:02:04]process_json_proto returns [14:02:04]Send response to host [14:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188745,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:02:04]free response buf [14:02:04]execute_script done [14:02:04]execute_script returns [14:02:04]free content buf [14:02:04]Sock 9.Close socket [14:02:04]Sock 9.Thread stoped [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:01]accept exits with 10 [14:03:01]New connection [14:03:01]New thread 3067018596 created [14:03:01]Thread 3067161956 joined [14:03:01]Waiting for new connection... [14:03:01] Sock 10.Parse request [14:03:01]Sock 10.Check first char [14:03:01]Sock 10.First char is OK [14:03:01]request: POST /json_proto HTTP/1.0 [14:03:01]Method: POST [14:03:01]URL: /json_proto [14:03:01]Method is POST - this is cgi request [14:03:01]url: /json_proto [14:03:01]query_string will be loaded in cgi processing [14:03:01]execute_cgi json_proto POST (null) [14:03:01]execute_cgi path=json_proto method=POST [14:03:01]POST find Content-Length [14:03:01]Host: 172.17.42.131:8080 [14:03:01]Content-Length: 679 [14:03:01]Content-Type: application/json [14:03:01] [14:03:01]POST finish read [14:03:01]Found Content-Length = 679 [14:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:01]execute_script... [14:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:01]POST & json_proto [14:03:01]process_json_proto [14:03:01]json parsed OK: [14:03:01]protocol is kg_v1.0 [14:03:01]action value=close_receipt [14:03:01]process_action close_receipt [14:03:01]cmd_close_receipt [14:03:01]MH_GetDate [14:03:01]Write to MH i2c: F0 00 00 D8 17 DE [14:03:01]Write i2c OK [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: F0 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: F0 09 00 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: F0 09 00 D8 17 00 16 02 19 67 A0 18 CA 66 67 [14:03:01]GetLastDocTimeStamp 1729692121 [14:03:01]current date 1729692182 [14:03:01]FM_GetShiftState [14:03:01]SAM_PROTO_GetShiftState [14:03:01]wFMCommunicate request_size=4 [14:03:01]MH_SAM_APDU [14:03:01]CAPDU: 80 13 01 00 [14:03:01]Write to MH i2c: E2 08 00 D9 17 80 13 01 00 00 00 00 00 6D [14:03:01]Write i2c OK [14:03:01]MH_I2C_Read... [14:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:01]Read from MH i2c: E2 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: E2 0E 00 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: E2 0E 00 D9 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 55 [14:03:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:03:01]wFMCommunicate OK [14:03:01]SAM_PROTO_GetShiftState done [14:03:01]FM_GetShiftState done [14:03:01]opened in 1729642525 [14:03:01]opened+sec_in_day 1729728925 [14:03:01]quantity*price = 300075 [14:03:01]sum+1 = 300077 [14:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 204 23.10.2024 14:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188746 ФПД: 223704664203315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140302&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188746&fm=223704664203315&tin=02508201610067®Number=0000000000100030&sum=300000 [14:03:02]StoreToDocumentArchive [14:03:02]shift 462 fd 188746 [14:03:02]save to /storage/0462/doc_00188746 [14:03:02]save last doc name /storage/0462/doc_00188746 to /storage/kkm_last_doc_name [14:03:02]save OK [14:03:02]Clear old archive folders... [14:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:03:02]tlvbuf is 01C4BD10 [14:03:02]SAM_PROTO_ClearQueue [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 09 00 00 [14:03:02]Write to MH i2c: E2 08 00 E6 17 80 09 00 00 00 00 00 00 6F [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 E6 17 00 90 00 71 [14:03:02]RAPDU: 90 00 [14:03:02]wFMCommunicate OK [14:03:02]SAM_PROTO_ClearQueue done [14:03:02]KKMCreateOFDPacket [14:03:02]OFDProtocolAddRootSTLVToBuf [14:03:02]FM_MakeSignedData [14:03:02]FM_MakeSignedData [14:03:02]SAM_PROTO_SignData [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 0D 01 02 [14:03:02]Write to MH i2c: E2 08 00 E7 17 80 0D 01 02 00 00 00 00 77 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 E7 17 00 90 00 72 [14:03:02]RAPDU: 90 00 [14:03:02]wFMCommunicate OK [14:03:02]wFMCommunicate request_size=255 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 16 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E1 02 00 35 04 06 00 CB 75 4D 0B [14:03:02]Write to MH i2c: E2 02 01 E8 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 16 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E1 02 00 35 04 06 00 CB 75 4D 0B 00 00 11 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 03 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 03 00 E8 17 00 90 00 73 [14:03:03]RAPDU: 90 00 [14:03:03]wFMCommunicate OK [14:03:03]wFMCommunicate request_size=7 [14:03:03]MH_SAM_APDU [14:03:03]CAPDU: 80 0D 02 02 02 60 33 [14:03:03]Write to MH i2c: E2 0A 00 E9 17 80 0D 02 02 02 00 60 33 00 00 11 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 03 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 03 00 E9 17 00 90 00 74 [14:03:03]RAPDU: 90 00 [14:03:03]wFMCommunicate OK [14:03:03]wFMCommunicate request_size=4 [14:03:03]MH_SAM_APDU [14:03:03]CAPDU: 80 0D 03 02 [14:03:03]Write to MH i2c: E2 08 00 EA 17 80 0D 03 02 00 00 00 00 7C [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0B 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0B 00 EA 17 00 76 EC 55 A1 76 7A DD F3 90 00 95 [14:03:03]RAPDU: 76 EC 55 A1 76 7A DD F3 90 00 [14:03:03]wFMCommunicate OK [14:03:03]SAM_PROTO_SignData done [14:03:03]FM_MakeSignedData done [14:03:03]CreateOFDProtocolMessage [14:03:03]wFMCommunicate request_size=4 [14:03:03]MH_SAM_APDU [14:03:03]CAPDU: 80 11 00 00 [14:03:03]Write to MH i2c: E2 08 00 EB 17 80 11 00 00 00 00 00 00 7C [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 17 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 17 00 EB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [14:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:03]wFMCommunicate OK [14:03:03]CreateOFDProtocolMessage done [14:03:03]OFDSenderStorePacket 188746 [14:03:03]StoreOFDPacket docnum=188746 [14:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 36 7F 04 01 5C 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 16 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E1 02 00 35 04 06 00 CB 75 4D 0B 60 33 76 EC 55 A1 76 7A DD F3 [14:03:03]CheckFolder [14:03:03]dirname=/storage/ofd_packets [14:03:03]CheckFolder done [14:03:03]ProducePacketName [14:03:03]name=ofd_packets/00188746 [14:03:03]NVStorageSaveData ofd_packets/00188746 [14:03:03]File name is /storage/ofd_packets/00188746 [14:03:03]Write 298 bytes [14:03:03]NVStorageSaveData done [14:03:03]OFDSenderStorePacket done [14:03:03]KKMCreateOFDPacket done [14:03:03]NVStorageSaveData kkm_last_timestamp [14:03:03]File name is /storage/kkm_last_timestamp [14:03:03]Write 4 bytes [14:03:03]NVStorageSaveData done [14:03:03]ExternCall_PrintAddStr [14:03:03]wPrintStart [14:03:03]Write to MH i2c: 01 00 00 EC 17 03 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 07 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 07 00 EC 17 00 00 00 00 00 FF 0F 18 [14:03:03]RasterBufferAndPrint [14:03:03]line Счет N : (1)210805 [14:03:03]line ИНН: 02508201610067 [14:03:03]line Контрольно-Кассовый Чек [14:03:03]line ПРОДАЖА [14:03:03]line ТРК (МРК, ГНК) : 51 [14:03:03]line Товар: 2710194210 [14:03:03]line ДТ-К-5 [14:03:03]line 39.380 * 76.20 [14:03:03]line = 3000.76 [14:03:03]line НДС 12% НСП 1% [14:03:03]line > о реализуемом товаре [14:03:03]line ОКРУГЛЕНИЕ: -0.76 [14:03:03]line ИТОГО: 3000.00 [14:03:03]line Внесено: 3000.00 [14:03:03]line СДАЧА: 0.00 [14:03:03]line НСП 1% : 26.55 [14:03:03]line НДС 12% : 318.66 [14:03:03]line Наличными: 3000.00 [14:03:03]line Безнал.: 0.00 [14:03:03]line Место: АЗС № 86 "Партнер Нефть" [14:03:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:03:03]line СНО: Общий режим [14:03:03]line Чек 204 23.10.2024 14:03 [14:03:03]line Смена: 462 ФФД: 1.0 [14:03:03]line ЗНМ: 0300000155 [14:03:03]line РНМ: 0000000000100030 [14:03:03]line Версия ККМ: 001 [14:03:03]line ФМ: 0000000000965340 [14:03:03]line ФД: 188746 [14:03:03]line ФПД: 223704664203315 [14:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140302&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188746&fm=223704664203315&tin=02508201610067®Number=0000000000100030&sum=300000 [14:03:03]OFD Sender: Processing packet 188746 [packets to send 1062, broken 1061] [14:03:03]ProducePacketName [14:03:03]name=ofd_packets/00188746 [14:03:03]OFD Sender: To server: pG, [14:03:03]CommunicateWithHost lk.salyk.kg:30040 [14:03:03]ConnectInit lk.salyk.kg [14:03:03]written 0, free lines is 4095 [14:03:03]Connected sock=7 [14:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 36 7F 04 01 5C 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 16 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E1 02 00 35 04 06 00 CB 75 4D 0B 60 33 76 EC 55 A1 76 7A DD F3 [14:03:04]Write to MH i2c: 01 00 00 17 18 2F [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 07 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 07 00 17 18 00 00 00 00 00 5F 0C A1 [14:03:04]RasterBufferAndPrint [14:03:04]line [14:03:04]line [14:03:04]line [14:03:04]line [14:03:04]line [14:03:04]written 0, free lines is 3172 [14:03:04]MH_Cut [14:03:04]Write to MH i2c: D1 01 00 1E 18 01 08 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: D1 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: D1 01 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: D1 01 00 1E 18 00 07 [14:03:04]Write to MH i2c: 01 00 00 1F 18 37 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 44 3B 47 00 3C D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E1 02 00 F4 03 04 00 01 AC 18 67 B6 04 01 00 00 53 2C 53 D6 DE 7D 1D E6 [14:03:04]CommunicateWithHost err = 0 [14:03:04]CheckOFDResponse [14:03:04]1017 (14) - 77093643461234 [14:03:04]1041 (16) - 0000000000965340 [14:03:04]1040 (4) - 188746 [14:03:04]1012 (4) - 23.10.2024 07:55 [14:03:04]1206 (1) - 0 [14:03:04]OFD Sender: Remove packet 188746 [14:03:04]ProducePacketName [14:03:04]name=ofd_packets/00188746 [14:03:04]NVStorageDeleteData [14:03:04]OFD Sender: No OFD packet to send [14:03:05]*** Cut start [14:03:05]*** Partial cut [14:03:05]*** CUTSNS_PIN = 1 [14:03:05]*** CUTSNS_PIN = 0 [14:03:05]*** Brake cut motor [14:03:05]Read from MH i2c: 01 [14:03:05]MH_I2C_Read... [14:03:05]*** Stop cut motor [14:03:05]*** Cut end [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 1F 18 00 00 00 00 00 FF 0F 4C [14:03:05]process_action close_receipt done [14:03:05]requested_data is exist [14:03:05]produce_requested_data [14:03:05]requested_item fm.sn is exist - process it [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 20 18 80 11 00 00 00 00 00 00 B2 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 20 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [14:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:06]wFMCommunicate OK [14:03:06]requested_item fd.num is exist - process it [14:03:06]SAM_PROTO_GetFieldsCounters [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 13 00 00 [14:03:06]Write to MH i2c: E2 08 00 21 18 80 13 00 00 00 00 00 00 B5 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 62 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 62 00 21 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [14:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_GetFieldsCounters done [14:03:06]requested_item shift.num is exist - process it [14:03:06]requested_item shift.opened is exist - process it [14:03:06]req_shift_opened [14:03:06]FM_GetShiftState [14:03:06]SAM_PROTO_GetShiftState [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 13 01 00 [14:03:06]Write to MH i2c: E2 08 00 22 18 80 13 01 00 00 00 00 00 B7 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0E 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0E 00 22 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9F [14:03:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_GetShiftState done [14:03:06]FM_GetShiftState done [14:03:06]req_shift_opened done [14:03:06]requested_item shift.open_date is exist - process it [14:03:06]req_shift_open_date [14:03:06]req_shift_open_date done [14:03:06]produce_requested_data done [14:03:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188746,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:03:06]process_action_free close_receipt [14:03:06]json_value_free [14:03:06]json_value_free done [14:03:06]process_json_proto returns [14:03:06]Send response to host [14:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188746,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:03:06]free response buf [14:03:06]execute_script done [14:03:06]execute_script returns [14:03:06]free content buf [14:03:06]Sock 10.Close socket [14:03:06]Sock 10.Thread stoped [14:03:09]OFD Sender: No OFD packet to send [14:03:10]accept exits with 9 [14:03:10]New connection [14:03:10]New thread 3067161956 created [14:03:10]Thread 3067018596 joined [14:03:10]Waiting for new connection... [14:03:10] Sock 9.Parse request [14:03:10]Sock 9.Check first char [14:03:10]Sock 9.First char is OK [14:03:10]request: POST /json_proto HTTP/1.0 [14:03:10]Method: POST [14:03:10]URL: /json_proto [14:03:10]Method is POST - this is cgi request [14:03:10]url: /json_proto [14:03:10]query_string will be loaded in cgi processing [14:03:10]execute_cgi json_proto POST (null) [14:03:10]execute_cgi path=json_proto method=POST [14:03:10]POST find Content-Length [14:03:10]Host: 172.17.42.131:8080 [14:03:10]Content-Length: 766 [14:03:10]Content-Type: application/json [14:03:10] [14:03:10]POST finish read [14:03:10]Found Content-Length = 766 [14:03:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:10]execute_script... [14:03:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:10]POST & json_proto [14:03:10]process_json_proto [14:03:10]json parsed OK: [14:03:10]protocol is kg_v1.0 [14:03:10]action value=close_receipt [14:03:10]process_action close_receipt [14:03:10]cmd_close_receipt [14:03:10]MH_GetDate [14:03:10]Write to MH i2c: F0 00 00 23 18 2A [14:03:10]Write i2c OK [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: F0 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: F0 09 00 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: F0 09 00 23 18 00 1F 02 19 67 A0 18 CA 66 BC [14:03:10]GetLastDocTimeStamp 1729692182 [14:03:10]current date 1729692191 [14:03:10]FM_GetShiftState [14:03:10]SAM_PROTO_GetShiftState [14:03:10]wFMCommunicate request_size=4 [14:03:10]MH_SAM_APDU [14:03:10]CAPDU: 80 13 01 00 [14:03:10]Write to MH i2c: E2 08 00 24 18 80 13 01 00 00 00 00 00 B9 [14:03:10]Write i2c OK [14:03:10]MH_I2C_Read... [14:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:10]Read from MH i2c: E2 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 0E 00 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 0E 00 24 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A1 [14:03:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:03:10]wFMCommunicate OK [14:03:10]SAM_PROTO_GetShiftState done [14:03:10]FM_GetShiftState done [14:03:10]opened in 1729642525 [14:03:10]opened+sec_in_day 1729728925 [14:03:10]quantity*price = 30038 [14:03:10]sum+1 = 30039 [14:03:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 205 23.10.2024 14:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188747 ФПД: 131255408802614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140311&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188747&fm=131255408802614&tin=02508201610067®Number=0000000000100030&sum=30038 [14:03:12]StoreToDocumentArchive [14:03:12]shift 462 fd 188747 [14:03:12]save to /storage/0462/doc_00188747 [14:03:12]save last doc name /storage/0462/doc_00188747 to /storage/kkm_last_doc_name [14:03:12]save OK [14:03:12]Clear old archive folders... [14:03:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:12]tlvbuf is 01C9FE60 [14:03:12]SAM_PROTO_ClearQueue [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 09 00 00 [14:03:12]Write to MH i2c: E2 08 00 31 18 80 09 00 00 00 00 00 00 BB [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 31 18 00 90 00 BD [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]SAM_PROTO_ClearQueue done [14:03:12]KKMCreateOFDPacket [14:03:12]OFDProtocolAddRootSTLVToBuf [14:03:12]FM_MakeSignedData [14:03:12]FM_MakeSignedData [14:03:12]SAM_PROTO_SignData [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 01 02 [14:03:12]Write to MH i2c: E2 08 00 32 18 80 0D 01 02 00 00 00 00 C3 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 32 18 00 90 00 BE [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=255 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 1F 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E1 02 00 35 04 06 00 77 [14:03:12]Write to MH i2c: E2 02 01 33 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 1F 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E1 02 00 35 04 06 00 77 00 00 58 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 33 18 00 90 00 BF [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=10 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 02 02 05 60 48 04 3B 36 [14:03:12]Write to MH i2c: E2 0D 00 34 18 80 0D 02 02 05 00 60 48 04 3B 36 00 00 ED [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 34 18 00 90 00 C0 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 03 02 [14:03:12]Write to MH i2c: E2 08 00 35 18 80 0D 03 02 00 00 00 00 C8 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 0B 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 0B 00 35 18 00 CF 0B 54 86 6B C5 09 73 90 00 29 [14:03:12]RAPDU: CF 0B 54 86 6B C5 09 73 90 00 [14:03:12]wFMCommunicate OK [14:03:12]SAM_PROTO_SignData done [14:03:12]FM_MakeSignedData done [14:03:12]CreateOFDProtocolMessage [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 11 00 00 [14:03:12]Write to MH i2c: E2 08 00 36 18 80 11 00 00 00 00 00 00 C8 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 17 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 17 00 36 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [14:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:12]wFMCommunicate OK [14:03:12]CreateOFDProtocolMessage done [14:03:12]OFDSenderStorePacket 188747 [14:03:12]StoreOFDPacket docnum=188747 [14:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 1C 07 01 B5 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 1F 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E1 02 00 35 04 06 00 77 60 48 04 3B 36 CF 0B 54 86 6B C5 09 73 [14:03:12]CheckFolder [14:03:12]dirname=/storage/ofd_packets [14:03:12]CheckFolder done [14:03:12]ProducePacketName [14:03:12]name=ofd_packets/00188747 [14:03:12]NVStorageSaveData ofd_packets/00188747 [14:03:12]File name is /storage/ofd_packets/00188747 [14:03:12]Write 301 bytes [14:03:12]NVStorageSaveData done [14:03:12]OFDSenderStorePacket done [14:03:12]KKMCreateOFDPacket done [14:03:12]NVStorageSaveData kkm_last_timestamp [14:03:12]File name is /storage/kkm_last_timestamp [14:03:12]Write 4 bytes [14:03:12]NVStorageSaveData done [14:03:12]ExternCall_PrintAddStr [14:03:12]wPrintStart [14:03:12]Write to MH i2c: 01 00 00 37 18 4F [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 07 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 07 00 37 18 00 00 00 00 00 FF 0F 64 [14:03:12]RasterBufferAndPrint [14:03:12]line Счет N : (1)210808 [14:03:12]line ИНН: 02508201610067 [14:03:12]line Контрольно-Кассовый Чек [14:03:12]line ПРОДАЖА [14:03:12]line ТРК (МРК, ГНК) : 32 [14:03:12]line Товар: 2710124130 [14:03:12]line Аи-92-К-3 [14:03:12]line 4.490 * 66.90 [14:03:12]line = 300.38 [14:03:12]line НДС 12% НСП 1% [14:03:12]line > о реализуемом товаре [14:03:12]line ИТОГО: 300.38 [14:03:12]line НСП 1% : 2.66 [14:03:12]line НДС 12% : 31.90 [14:03:12]line Наличными: 0.00 [14:03:12]line Безнал.: 300.38 [14:03:12]line Место: АЗС № 86 "Партнер Нефть" [14:03:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:03:12]line СНО: Общий режим [14:03:12]line Чек 205 23.10.2024 14:03 [14:03:12]line Смена: 462 ФФД: 1.0 [14:03:12]line ЗНМ: 0300000155 [14:03:12]line РНМ: 0000000000100030 [14:03:12]line Версия ККМ: 001 [14:03:12]line Платежная система: Mbank [14:03:12]line ФМ: 0000000000965340 [14:03:12]line ФД: 188747 [14:03:12]line ФПД: 131255408802614 [14:03:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140311&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188747&fm=131255408802614&tin=02508201610067®Number=0000000000100030&sum=30038 [14:03:12]OFD Sender: Processing packet 188747 [packets to send 1062, broken 1061] [14:03:12]ProducePacketName [14:03:12]name=ofd_packets/00188747 [14:03:12]OFD Sender: To server: pG, [14:03:12]CommunicateWithHost lk.salyk.kg:30040 [14:03:12]ConnectInit lk.salyk.kg [14:03:12]written 0, free lines is 4095 [14:03:12]Connected sock=10 [14:03:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 1C 07 01 B5 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 1F 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E1 02 00 35 04 06 00 77 60 48 04 3B 36 CF 0B 54 86 6B C5 09 73 [14:03:13]Write to MH i2c: 01 00 00 60 18 78 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 07 00 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 07 00 60 18 00 00 00 00 00 97 0C 22 [14:03:13]RasterBufferAndPrint [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]written 0, free lines is 3228 [14:03:13]MH_Cut [14:03:13]Write to MH i2c: D1 01 00 67 18 01 51 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 01 00 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 01 00 67 18 00 50 [14:03:13]Write to MH i2c: 01 00 00 68 18 80 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BA D4 47 00 7B 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E1 02 00 F4 03 04 00 0A AC 18 67 B6 04 01 00 00 7C A5 27 48 CE 99 F8 3F [14:03:13]CommunicateWithHost err = 0 [14:03:13]CheckOFDResponse [14:03:13]1017 (14) - 77093643461234 [14:03:13]1041 (16) - 0000000000965340 [14:03:13]1040 (4) - 188747 [14:03:13]1012 (4) - 23.10.2024 07:55 [14:03:13]1206 (1) - 0 [14:03:13]OFD Sender: Remove packet 188747 [14:03:13]ProducePacketName [14:03:13]name=ofd_packets/00188747 [14:03:13]NVStorageDeleteData [14:03:13]OFD Sender: No OFD packet to send [14:03:14]*** Cut start [14:03:14]*** Partial cut [14:03:14]*** CUTSNS_PIN = 1 [14:03:14]*** CUTSNS_PIN = 0 [14:03:14]*** Brake cut motor [14:03:14]Read from MH i2c: 01 [14:03:14]MH_I2C_Read... [14:03:14]*** Stop cut motor [14:03:15]*** Cut end [14:03:15]Read from MH i2c: 01 07 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: 01 07 00 68 18 00 00 00 00 00 FF 0F 95 [14:03:15]process_action close_receipt done [14:03:15]requested_data is exist [14:03:15]produce_requested_data [14:03:15]requested_item fm.sn is exist - process it [14:03:15]wFMCommunicate request_size=4 [14:03:15]MH_SAM_APDU [14:03:15]CAPDU: 80 11 00 00 [14:03:15]Write to MH i2c: E2 08 00 69 18 80 11 00 00 00 00 00 00 FB [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:15]Read from MH i2c: E2 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 17 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 17 00 69 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [14:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:15]wFMCommunicate OK [14:03:15]requested_item fd.num is exist - process it [14:03:15]SAM_PROTO_GetFieldsCounters [14:03:15]wFMCommunicate request_size=4 [14:03:15]MH_SAM_APDU [14:03:15]CAPDU: 80 13 00 00 [14:03:15]Write to MH i2c: E2 08 00 6A 18 80 13 00 00 00 00 00 00 FE [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:15]Read from MH i2c: E2 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 62 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 62 00 6A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [14:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:15]wFMCommunicate OK [14:03:15]SAM_PROTO_GetFieldsCounters done [14:03:15]requested_item shift.num is exist - process it [14:03:15]requested_item shift.opened is exist - process it [14:03:15]req_shift_opened [14:03:15]FM_GetShiftState [14:03:15]SAM_PROTO_GetShiftState [14:03:15]wFMCommunicate request_size=4 [14:03:15]MH_SAM_APDU [14:03:15]CAPDU: 80 13 01 00 [14:03:15]Write to MH i2c: E2 08 00 6B 18 80 13 01 00 00 00 00 00 00 [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:15]Read from MH i2c: E2 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 0E 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 0E 00 6B 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E8 [14:03:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:03:15]wFMCommunicate OK [14:03:15]SAM_PROTO_GetShiftState done [14:03:15]FM_GetShiftState done [14:03:15]req_shift_opened done [14:03:15]requested_item shift.open_date is exist - process it [14:03:15]req_shift_open_date [14:03:15]req_shift_open_date done [14:03:15]produce_requested_data done [14:03:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188747,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:03:15]process_action_free close_receipt [14:03:15]json_value_free [14:03:15]json_value_free done [14:03:15]process_json_proto returns [14:03:15]Send response to host [14:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188747,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:03:15]free response buf [14:03:15]execute_script done [14:03:15]execute_script returns [14:03:15]free content buf [14:03:15]Sock 9.Close socket [14:03:15]Sock 9.Thread stoped [14:03:17]accept exits with 7 [14:03:17]New connection [14:03:17]New thread 3067018596 created [14:03:17]Thread 3067161956 joined [14:03:17]Waiting for new connection... [14:03:17] Sock 7.Parse request [14:03:17]Sock 7.Check first char [14:03:17]Sock 7.First char is OK [14:03:17]request: POST /json_proto HTTP/1.0 [14:03:17]Method: POST [14:03:17]URL: /json_proto [14:03:17]Method is POST - this is cgi request [14:03:17]url: /json_proto [14:03:17]query_string will be loaded in cgi processing [14:03:17]execute_cgi json_proto POST (null) [14:03:17]execute_cgi path=json_proto method=POST [14:03:17]POST find Content-Length [14:03:17]Host: 172.17.42.131:8080 [14:03:17]Content-Length: 677 [14:03:17]Content-Type: application/json [14:03:17] [14:03:17]POST finish read [14:03:17]Found Content-Length = 677 [14:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:17]execute_script... [14:03:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:17]POST & json_proto [14:03:17]process_json_proto [14:03:17]json parsed OK: [14:03:17]protocol is kg_v1.0 [14:03:17]action value=close_receipt [14:03:17]process_action close_receipt [14:03:17]cmd_close_receipt [14:03:17]MH_GetDate [14:03:17]Write to MH i2c: F0 00 00 6C 18 73 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: F0 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: F0 09 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: F0 09 00 6C 18 00 26 02 19 67 A0 18 CA 66 0C [14:03:17]GetLastDocTimeStamp 1729692191 [14:03:17]current date 1729692198 [14:03:17]FM_GetShiftState [14:03:17]SAM_PROTO_GetShiftState [14:03:17]wFMCommunicate request_size=4 [14:03:17]MH_SAM_APDU [14:03:17]CAPDU: 80 13 01 00 [14:03:17]Write to MH i2c: E2 08 00 6D 18 80 13 01 00 00 00 00 00 02 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 0E 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 0E 00 6D 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EA [14:03:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:03:17]wFMCommunicate OK [14:03:17]SAM_PROTO_GetShiftState done [14:03:17]FM_GetShiftState done [14:03:17]opened in 1729642525 [14:03:17]opened+sec_in_day 1729728925 [14:03:17]quantity*price = 60009 [14:03:17]sum+1 = 60010 [14:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 206 23.10.2024 14:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188748 ФПД: 114284060799715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140318&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188748&fm=114284060799715&tin=02508201610067®Number=0000000000100030&sum=60000 [14:03:18]StoreToDocumentArchive [14:03:18]shift 462 fd 188748 [14:03:18]save to /storage/0462/doc_00188748 [14:03:18]save last doc name /storage/0462/doc_00188748 to /storage/kkm_last_doc_name [14:03:18]save OK [14:03:18]Clear old archive folders... [14:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:18]tlvbuf is 01CA17A0 [14:03:18]SAM_PROTO_ClearQueue [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 09 00 00 [14:03:18]Write to MH i2c: E2 08 00 7A 18 80 09 00 00 00 00 00 00 04 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 7A 18 00 90 00 06 [14:03:18]RAPDU: 90 00 [14:03:18]wFMCommunicate OK [14:03:18]SAM_PROTO_ClearQueue done [14:03:18]KKMCreateOFDPacket [14:03:18]OFDProtocolAddRootSTLVToBuf [14:03:18]FM_MakeSignedData [14:03:18]FM_MakeSignedData [14:03:18]SAM_PROTO_SignData [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 0D 01 02 [14:03:18]Write to MH i2c: E2 08 00 7B 18 80 0D 01 02 00 00 00 00 0C [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 7B 18 00 90 00 07 [14:03:18]RAPDU: 90 00 [14:03:18]wFMCommunicate OK [14:03:18]wFMCommunicate request_size=255 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 26 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E1 02 00 35 04 06 00 67 [14:03:18]Write to MH i2c: E2 02 01 7C 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 26 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E1 02 00 35 04 06 00 67 00 00 37 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 7C 18 00 90 00 08 [14:03:18]RAPDU: 90 00 [14:03:18]wFMCommunicate OK [14:03:18]wFMCommunicate request_size=10 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 0D 02 02 05 F0 D4 D8 F2 E3 [14:03:18]Write to MH i2c: E2 0D 00 7D 18 80 0D 02 02 05 00 F0 D4 D8 F2 E3 00 00 8A [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 7D 18 00 90 00 09 [14:03:18]RAPDU: 90 00 [14:03:18]wFMCommunicate OK [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 0D 03 02 [14:03:18]Write to MH i2c: E2 08 00 7E 18 80 0D 03 02 00 00 00 00 11 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:18]OFD Sender: No OFD packet to send [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 0B 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 0B 00 7E 18 00 D2 5D DC 98 43 4D C0 A2 90 00 A7 [14:03:18]RAPDU: D2 5D DC 98 43 4D C0 A2 90 00 [14:03:18]wFMCommunicate OK [14:03:18]SAM_PROTO_SignData done [14:03:18]FM_MakeSignedData done [14:03:18]CreateOFDProtocolMessage [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 11 00 00 [14:03:18]Write to MH i2c: E2 08 00 7F 18 80 11 00 00 00 00 00 00 11 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 17 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 17 00 7F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [14:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:19]wFMCommunicate OK [14:03:19]CreateOFDProtocolMessage done [14:03:19]OFDSenderStorePacket 188748 [14:03:19]StoreOFDPacket docnum=188748 [14:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FE 9F 07 01 31 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 26 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E1 02 00 35 04 06 00 67 F0 D4 D8 F2 E3 D2 5D DC 98 43 4D C0 A2 [14:03:19]CheckFolder [14:03:19]dirname=/storage/ofd_packets [14:03:19]CheckFolder done [14:03:19]ProducePacketName [14:03:19]name=ofd_packets/00188748 [14:03:19]NVStorageSaveData ofd_packets/00188748 [14:03:19]File name is /storage/ofd_packets/00188748 [14:03:19]Write 301 bytes [14:03:19]NVStorageSaveData done [14:03:19]OFDSenderStorePacket done [14:03:19]KKMCreateOFDPacket done [14:03:19]NVStorageSaveData kkm_last_timestamp [14:03:19]File name is /storage/kkm_last_timestamp [14:03:19]Write 4 bytes [14:03:19]NVStorageSaveData done [14:03:19]ExternCall_PrintAddStr [14:03:19]wPrintStart [14:03:19]Write to MH i2c: 01 00 00 80 18 98 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 80 18 00 00 00 00 00 FF 0F AD [14:03:19]RasterBufferAndPrint [14:03:19]line Счет N : (1)210807 [14:03:19]line ИНН: 02508201610067 [14:03:19]line Контрольно-Кассовый Чек [14:03:19]line ПРОДАЖА [14:03:19]line ТРК (МРК, ГНК) : 42 [14:03:19]line Товар: 2710124130 [14:03:19]line Аи-92-К-3 [14:03:19]line 8.970 * 66.90 [14:03:19]line = 600.09 [14:03:19]line НДС 12% НСП 1% [14:03:19]line > о реализуемом товаре [14:03:19]line ОКРУГЛЕНИЕ: -0.09 [14:03:19]line ИТОГО: 600.00 [14:03:19]line Внесено: 600.00 [14:03:19]line СДАЧА: 0.00 [14:03:19]line НСП 1% : 5.31 [14:03:19]line НДС 12% : 63.73 [14:03:19]line Наличными: 600.00 [14:03:19]line Безнал.: 0.00 [14:03:19]line Место: АЗС № 86 "Партнер Нефть" [14:03:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:03:19]line СНО: Общий режим [14:03:19]line Чек 206 23.10.2024 14:03 [14:03:19]line Смена: 462 ФФД: 1.0 [14:03:19]line ЗНМ: 0300000155 [14:03:19]line РНМ: 0000000000100030 [14:03:19]line Версия ККМ: 001 [14:03:19]line ФМ: 0000000000965340 [14:03:19]line ФД: 188748 [14:03:19]line ФПД: 114284060799715 [14:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140318&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188748&fm=114284060799715&tin=02508201610067®Number=0000000000100030&sum=60000 [14:03:19]written 0, free lines is 4095 [14:03:19]OFD Sender: Processing packet 188748 [packets to send 1062, broken 1061] [14:03:19]ProducePacketName [14:03:19]name=ofd_packets/00188748 [14:03:19]OFD Sender: To server: pG, [14:03:19]CommunicateWithHost lk.salyk.kg:30040 [14:03:19]ConnectInit lk.salyk.kg [14:03:19]Connected sock=10 [14:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FE 9F 07 01 31 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 26 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E1 02 00 35 04 06 00 67 F0 D4 D8 F2 E3 D2 5D DC 98 43 4D C0 A2 [14:03:19]Write to MH i2c: 01 00 00 AB 18 C3 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 AB 18 00 00 00 00 00 61 0C 37 [14:03:19]RasterBufferAndPrint [14:03:19]line [14:03:19]line [14:03:19]line [14:03:19]line [14:03:19]line [14:03:19]written 0, free lines is 3179 [14:03:19]MH_Cut [14:03:19]Write to MH i2c: D1 01 00 B2 18 01 9C [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: D1 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: D1 01 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: D1 01 00 B2 18 00 9B [14:03:19]Write to MH i2c: 01 00 00 B3 18 CB [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 1C 47 00 2B 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 36 35 33 34 30 10 04 04 00 4C E1 02 00 F4 03 04 00 10 AC 18 67 B6 04 01 00 00 D1 C5 F6 0E E1 BB 27 C9 [14:03:19]CommunicateWithHost err = 0 [14:03:19]CheckOFDResponse [14:03:19]1017 (14) - 77093643461234 [14:03:19]1041 (16) - 0000000000965340 [14:03:19]1040 (4) - 188748 [14:03:19]1012 (4) - 23.10.2024 07:56 [14:03:19]1206 (1) - 0 [14:03:19]OFD Sender: Remove packet 188748 [14:03:19]ProducePacketName [14:03:19]name=ofd_packets/00188748 [14:03:19]NVStorageDeleteData [14:03:20]OFD Sender: No OFD packet to send [14:03:20]*** Cut start [14:03:20]*** Partial cut [14:03:20]*** CUTSNS_PIN = 1 [14:03:20]*** CUTSNS_PIN = 0 [14:03:21]*** Brake cut motor [14:03:21]Read from MH i2c: 01 [14:03:21]MH_I2C_Read... [14:03:21]*** Stop cut motor [14:03:21]*** Cut end [14:03:21]Read from MH i2c: 01 07 00 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 FF 0F E0 [14:03:21]process_action close_receipt done [14:03:21]requested_data is exist [14:03:21]produce_requested_data [14:03:21]requested_item fm.sn is exist - process it [14:03:21]wFMCommunicate request_size=4 [14:03:21]MH_SAM_APDU [14:03:21]CAPDU: 80 11 00 00 [14:03:21]Write to MH i2c: E2 08 00 B4 18 80 11 00 00 00 00 00 00 46 [14:03:21]Write i2c OK [14:03:21]MH_I2C_Read... [14:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:21]Read from MH i2c: E2 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: E2 17 00 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: E2 17 00 B4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [14:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:21]wFMCommunicate OK [14:03:21]requested_item fd.num is exist - process it [14:03:21]SAM_PROTO_GetFieldsCounters [14:03:21]wFMCommunicate request_size=4 [14:03:21]MH_SAM_APDU [14:03:21]CAPDU: 80 13 00 00 [14:03:21]Write to MH i2c: E2 08 00 B5 18 80 13 00 00 00 00 00 00 49 [14:03:21]Write i2c OK [14:03:21]MH_I2C_Read... [14:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:21]Read from MH i2c: E2 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: E2 62 00 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: E2 62 00 B5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [14:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:21]wFMCommunicate OK [14:03:21]SAM_PROTO_GetFieldsCounters done [14:03:21]requested_item shift.num is exist - process it [14:03:21]requested_item shift.opened is exist - process it [14:03:21]req_shift_opened [14:03:21]FM_GetShiftState [14:03:21]SAM_PROTO_GetShiftState [14:03:21]wFMCommunicate request_size=4 [14:03:21]MH_SAM_APDU [14:03:21]CAPDU: 80 13 01 00 [14:03:21]Write to MH i2c: E2 08 00 B6 18 80 13 01 00 00 00 00 00 4B [14:03:21]Write i2c OK [14:03:21]MH_I2C_Read... [14:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:21]Read from MH i2c: E2 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: E2 0E 00 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: E2 0E 00 B6 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 33 [14:03:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:03:21]wFMCommunicate OK [14:03:21]SAM_PROTO_GetShiftState done [14:03:21]FM_GetShiftState done [14:03:21]req_shift_opened done [14:03:21]requested_item shift.open_date is exist - process it [14:03:21]req_shift_open_date [14:03:21]req_shift_open_date done [14:03:21]produce_requested_data done [14:03:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188748,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:03:21]process_action_free close_receipt [14:03:21]json_value_free [14:03:21]json_value_free done [14:03:21]process_json_proto returns [14:03:21]Send response to host [14:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188748,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:03:21]free response buf [14:03:21]execute_script done [14:03:21]execute_script returns [14:03:21]free content buf [14:03:21]Sock 7.Close socket [14:03:21]Sock 7.Thread stoped [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:49]accept exits with 9 [14:03:49]New connection [14:03:49]New thread 3067161956 created [14:03:49]Thread 3067018596 joined [14:03:49]Waiting for new connection... [14:03:49] Sock 9.Parse request [14:03:49]Sock 9.Check first char [14:03:49]Sock 9.First char is OK [14:03:49]request: POST /json_proto HTTP/1.0 [14:03:49]Method: POST [14:03:49]URL: /json_proto [14:03:49]Method is POST - this is cgi request [14:03:49]url: /json_proto [14:03:49]query_string will be loaded in cgi processing [14:03:49]execute_cgi json_proto POST (null) [14:03:49]execute_cgi path=json_proto method=POST [14:03:49]POST find Content-Length [14:03:49]Host: 172.17.42.131:8080 [14:03:49]Content-Length: 677 [14:03:49]Content-Type: application/json [14:03:49] [14:03:49]POST finish read [14:03:49]Found Content-Length = 677 [14:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:49]execute_script... [14:03:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:49]POST & json_proto [14:03:49]process_json_proto [14:03:49]json parsed OK: [14:03:49]protocol is kg_v1.0 [14:03:49]action value=close_receipt [14:03:49]process_action close_receipt [14:03:49]cmd_close_receipt [14:03:49]MH_GetDate [14:03:49]Write to MH i2c: F0 00 00 B7 18 BE [14:03:49]Write i2c OK [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: F0 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: F0 09 00 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: F0 09 00 B7 18 00 46 02 19 67 A0 18 CA 66 77 [14:03:49]GetLastDocTimeStamp 1729692198 [14:03:49]current date 1729692230 [14:03:49]FM_GetShiftState [14:03:49]SAM_PROTO_GetShiftState [14:03:49]wFMCommunicate request_size=4 [14:03:49]MH_SAM_APDU [14:03:49]CAPDU: 80 13 01 00 [14:03:49]Write to MH i2c: E2 08 00 B8 18 80 13 01 00 00 00 00 00 4D [14:03:49]Write i2c OK [14:03:49]MH_I2C_Read... [14:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:49]Read from MH i2c: E2 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: E2 0E 00 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: E2 0E 00 B8 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 35 [14:03:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:03:49]wFMCommunicate OK [14:03:49]SAM_PROTO_GetShiftState done [14:03:49]FM_GetShiftState done [14:03:49]opened in 1729642525 [14:03:49]opened+sec_in_day 1729728925 [14:03:49]quantity*price = 50041 [14:03:49]sum+1 = 50042 [14:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 207 23.10.2024 14:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188749 ФПД: 185596093693223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188749&fm=185596093693223&tin=02508201610067®Number=0000000000100030&sum=50000 [14:03:50]StoreToDocumentArchive [14:03:50]shift 462 fd 188749 [14:03:50]save to /storage/0462/doc_00188749 [14:03:50]save last doc name /storage/0462/doc_00188749 to /storage/kkm_last_doc_name [14:03:50]save OK [14:03:50]Clear old archive folders... [14:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:50]tlvbuf is 01C8C980 [14:03:50]SAM_PROTO_ClearQueue [14:03:50]wFMCommunicate request_size=4 [14:03:50]MH_SAM_APDU [14:03:50]CAPDU: 80 09 00 00 [14:03:50]Write to MH i2c: E2 08 00 C5 18 80 09 00 00 00 00 00 00 4F [14:03:50]Write i2c OK [14:03:50]MH_I2C_Read... [14:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:50]Read from MH i2c: E2 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 03 00 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 03 00 C5 18 00 90 00 51 [14:03:50]RAPDU: 90 00 [14:03:50]wFMCommunicate OK [14:03:50]SAM_PROTO_ClearQueue done [14:03:50]KKMCreateOFDPacket [14:03:50]OFDProtocolAddRootSTLVToBuf [14:03:50]FM_MakeSignedData [14:03:50]FM_MakeSignedData [14:03:50]SAM_PROTO_SignData [14:03:50]wFMCommunicate request_size=4 [14:03:50]MH_SAM_APDU [14:03:50]CAPDU: 80 0D 01 02 [14:03:50]Write to MH i2c: E2 08 00 C6 18 80 0D 01 02 00 00 00 00 57 [14:03:50]Write i2c OK [14:03:50]MH_I2C_Read... [14:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:50]Read from MH i2c: E2 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 03 00 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 03 00 C6 18 00 90 00 52 [14:03:50]RAPDU: 90 00 [14:03:50]wFMCommunicate OK [14:03:50]wFMCommunicate request_size=255 [14:03:50]MH_SAM_APDU [14:03:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 46 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E1 02 00 35 04 06 00 A8 [14:03:50]Write to MH i2c: E2 02 01 C7 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 46 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E1 02 00 35 04 06 00 A8 00 00 08 [14:03:50]OFD Sender: No OFD packet to send [14:03:50]Write i2c OK [14:03:50]MH_I2C_Read... [14:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:50]Read from MH i2c: E2 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 03 00 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 03 00 C7 18 00 90 00 53 [14:03:50]RAPDU: 90 00 [14:03:50]wFMCommunicate OK [14:03:50]wFMCommunicate request_size=10 [14:03:50]MH_SAM_APDU [14:03:50]CAPDU: 80 0D 02 02 05 CC 75 3C 7D 27 [14:03:50]Write to MH i2c: E2 0D 00 C8 18 80 0D 02 02 05 00 CC 75 3C 7D 27 00 00 85 [14:03:50]Write i2c OK [14:03:50]MH_I2C_Read... [14:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:50]Read from MH i2c: E2 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 03 00 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 03 00 C8 18 00 90 00 54 [14:03:50]RAPDU: 90 00 [14:03:50]wFMCommunicate OK [14:03:50]wFMCommunicate request_size=4 [14:03:50]MH_SAM_APDU [14:03:50]CAPDU: 80 0D 03 02 [14:03:50]Write to MH i2c: E2 08 00 C9 18 80 0D 03 02 00 00 00 00 5C [14:03:50]Write i2c OK [14:03:50]MH_I2C_Read... [14:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:50]Read from MH i2c: E2 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 0B 00 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 0B 00 C9 18 00 FF 56 5A 91 19 11 0D E7 90 00 BB [14:03:50]RAPDU: FF 56 5A 91 19 11 0D E7 90 00 [14:03:50]wFMCommunicate OK [14:03:50]SAM_PROTO_SignData done [14:03:50]FM_MakeSignedData done [14:03:50]CreateOFDProtocolMessage [14:03:50]wFMCommunicate request_size=4 [14:03:50]MH_SAM_APDU [14:03:50]CAPDU: 80 11 00 00 [14:03:50]Write to MH i2c: E2 08 00 CA 18 80 11 00 00 00 00 00 00 5C [14:03:50]Write i2c OK [14:03:50]MH_I2C_Read... [14:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:50]Read from MH i2c: E2 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 17 00 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: E2 17 00 CA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [14:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:50]wFMCommunicate OK [14:03:50]CreateOFDProtocolMessage done [14:03:50]OFDSenderStorePacket 188749 [14:03:50]StoreOFDPacket docnum=188749 [14:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A C4 07 01 E0 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 46 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E1 02 00 35 04 06 00 A8 CC 75 3C 7D 27 FF 56 5A 91 19 11 0D E7 [14:03:50]CheckFolder [14:03:50]dirname=/storage/ofd_packets [14:03:50]CheckFolder done [14:03:50]ProducePacketName [14:03:50]name=ofd_packets/00188749 [14:03:50]NVStorageSaveData ofd_packets/00188749 [14:03:50]File name is /storage/ofd_packets/00188749 [14:03:50]Write 301 bytes [14:03:50]NVStorageSaveData done [14:03:50]OFDSenderStorePacket done [14:03:50]KKMCreateOFDPacket done [14:03:50]NVStorageSaveData kkm_last_timestamp [14:03:50]File name is /storage/kkm_last_timestamp [14:03:50]Write 4 bytes [14:03:50]NVStorageSaveData done [14:03:50]ExternCall_PrintAddStr [14:03:50]wPrintStart [14:03:50]Write to MH i2c: 01 00 00 CB 18 E3 [14:03:50]Write i2c OK [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: 01 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: 01 07 00 [14:03:50]MH_I2C_Read... [14:03:50]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 FF 0F F8 [14:03:50]RasterBufferAndPrint [14:03:50]line Счет N : (1)210809 [14:03:50]line ИНН: 02508201610067 [14:03:50]line Контрольно-Кассовый Чек [14:03:50]line ПРОДАЖА [14:03:50]line ТРК (МРК, ГНК) : 32 [14:03:50]line Товар: 2710124130 [14:03:50]line Аи-92-К-3 [14:03:50]line 7.480 * 66.90 [14:03:50]line = 500.41 [14:03:50]line НДС 12% НСП 1% [14:03:50]line > о реализуемом товаре [14:03:50]line ОКРУГЛЕНИЕ: -0.41 [14:03:50]line ИТОГО: 500.00 [14:03:50]line Внесено: 500.00 [14:03:50]line СДАЧА: 0.00 [14:03:50]line НСП 1% : 4.43 [14:03:50]line НДС 12% : 53.14 [14:03:50]line Наличными: 500.00 [14:03:50]line Безнал.: 0.00 [14:03:50]line Место: АЗС № 86 "Партнер Нефть" [14:03:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:03:50]line СНО: Общий режим [14:03:50]line Чек 207 23.10.2024 14:03 [14:03:50]line Смена: 462 ФФД: 1.0 [14:03:50]line ЗНМ: 0300000155 [14:03:50]line РНМ: 0000000000100030 [14:03:50]line Версия ККМ: 001 [14:03:50]line ФМ: 0000000000965340 [14:03:50]line ФД: 188749 [14:03:50]line ФПД: 185596093693223 [14:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188749&fm=185596093693223&tin=02508201610067®Number=0000000000100030&sum=50000 [14:03:50]written 0, free lines is 4095 [14:03:51]OFD Sender: Processing packet 188749 [packets to send 1062, broken 1061] [14:03:51]ProducePacketName [14:03:51]name=ofd_packets/00188749 [14:03:51]OFD Sender: To server: pG, [14:03:51]CommunicateWithHost lk.salyk.kg:30040 [14:03:51]ConnectInit lk.salyk.kg [14:03:51]Connected sock=10 [14:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A C4 07 01 E0 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 46 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E1 02 00 35 04 06 00 A8 CC 75 3C 7D 27 FF 56 5A 91 19 11 0D E7 [14:03:51]Write to MH i2c: 01 00 00 F6 18 0E [14:03:51]Write i2c OK [14:03:51]MH_I2C_Read... [14:03:51]Read from MH i2c: 01 [14:03:51]MH_I2C_Read... [14:03:51]Read from MH i2c: 01 07 00 [14:03:51]MH_I2C_Read... [14:03:51]Read from MH i2c: 01 07 00 F6 18 00 00 00 00 00 5C 0C 7D [14:03:51]RasterBufferAndPrint [14:03:51]line [14:03:51]line [14:03:51]line [14:03:51]line [14:03:51]line [14:03:51]written 0, free lines is 3168 [14:03:51]MH_Cut [14:03:51]Write to MH i2c: D1 01 00 FD 18 01 E7 [14:03:51]Write i2c OK [14:03:51]MH_I2C_Read... [14:03:51]Read from MH i2c: D1 [14:03:51]MH_I2C_Read... [14:03:51]Read from MH i2c: D1 01 00 [14:03:51]MH_I2C_Read... [14:03:51]Read from MH i2c: D1 01 00 FD 18 00 E6 [14:03:51]Write to MH i2c: 01 00 00 FE 18 16 [14:03:51]Write i2c OK [14:03:51]MH_I2C_Read... [14:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B3 AC 47 00 CB 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E1 02 00 F4 03 04 00 30 AC 18 67 B6 04 01 00 00 15 E3 DC 31 66 C5 F7 B1 [14:03:51]CommunicateWithHost err = 0 [14:03:51]CheckOFDResponse [14:03:51]1017 (14) - 77093643461234 [14:03:51]1041 (16) - 0000000000965340 [14:03:51]1040 (4) - 188749 [14:03:51]1012 (4) - 23.10.2024 07:56 [14:03:51]1206 (1) - 0 [14:03:51]OFD Sender: Remove packet 188749 [14:03:51]ProducePacketName [14:03:51]name=ofd_packets/00188749 [14:03:51]NVStorageDeleteData [14:03:52]OFD Sender: No OFD packet to send [14:03:52]*** Cut start [14:03:52]*** Partial cut [14:03:52]*** CUTSNS_PIN = 1 [14:03:52]*** CUTSNS_PIN = 0 [14:03:52]*** Brake cut motor [14:03:53]Read from MH i2c: 01 [14:03:53]MH_I2C_Read... [14:03:53]*** Stop cut motor [14:03:53]*** Cut end [14:03:53]Read from MH i2c: 01 07 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 FF 0F 2B [14:03:53]process_action close_receipt done [14:03:53]requested_data is exist [14:03:53]produce_requested_data [14:03:53]requested_item fm.sn is exist - process it [14:03:53]wFMCommunicate request_size=4 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 11 00 00 [14:03:53]Write to MH i2c: E2 08 00 FF 18 80 11 00 00 00 00 00 00 91 [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 17 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 17 00 FF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [14:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:53]wFMCommunicate OK [14:03:53]requested_item fd.num is exist - process it [14:03:53]SAM_PROTO_GetFieldsCounters [14:03:53]wFMCommunicate request_size=4 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 13 00 00 [14:03:53]Write to MH i2c: E2 08 00 00 19 80 13 00 00 00 00 00 00 95 [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 62 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 62 00 00 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [14:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:53]wFMCommunicate OK [14:03:53]SAM_PROTO_GetFieldsCounters done [14:03:53]requested_item shift.num is exist - process it [14:03:53]requested_item shift.opened is exist - process it [14:03:53]req_shift_opened [14:03:53]FM_GetShiftState [14:03:53]SAM_PROTO_GetShiftState [14:03:53]wFMCommunicate request_size=4 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 13 01 00 [14:03:53]Write to MH i2c: E2 08 00 01 19 80 13 01 00 00 00 00 00 97 [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 0E 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 0E 00 01 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7F [14:03:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:03:53]wFMCommunicate OK [14:03:53]SAM_PROTO_GetShiftState done [14:03:53]FM_GetShiftState done [14:03:53]req_shift_opened done [14:03:53]requested_item shift.open_date is exist - process it [14:03:53]req_shift_open_date [14:03:53]req_shift_open_date done [14:03:53]produce_requested_data done [14:03:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188749,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:03:53]process_action_free close_receipt [14:03:53]json_value_free [14:03:53]json_value_free done [14:03:53]process_json_proto returns [14:03:53]Send response to host [14:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188749,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:03:53]free response buf [14:03:53]execute_script done [14:03:53]execute_script returns [14:03:53]free content buf [14:03:53]Sock 9.Close socket [14:03:53]Sock 9.Thread stoped [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:02]accept exits with 7 [14:05:02]New connection [14:05:02]New thread 3067018596 created [14:05:02]Thread 3067161956 joined [14:05:02]Waiting for new connection... [14:05:02] Sock 7.Parse request [14:05:02]Sock 7.Check first char [14:05:02]Sock 7.First char is OK [14:05:02]request: POST /json_proto HTTP/1.0 [14:05:02]Method: POST [14:05:02]URL: /json_proto [14:05:02]Method is POST - this is cgi request [14:05:02]url: /json_proto [14:05:02]query_string will be loaded in cgi processing [14:05:02]execute_cgi json_proto POST (null) [14:05:02]execute_cgi path=json_proto method=POST [14:05:02]POST find Content-Length [14:05:02]Host: 172.17.42.131:8080 [14:05:02]Content-Length: 683 [14:05:02]Content-Type: application/json [14:05:02] [14:05:02]POST finish read [14:05:02]Found Content-Length = 683 [14:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:02]execute_script... [14:05:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:02]POST & json_proto [14:05:02]process_json_proto [14:05:02]json parsed OK: [14:05:02]protocol is kg_v1.0 [14:05:02]action value=close_receipt [14:05:02]process_action close_receipt [14:05:02]cmd_close_receipt [14:05:02]MH_GetDate [14:05:02]Write to MH i2c: F0 00 00 02 19 0A [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: F0 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: F0 09 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: F0 09 00 02 19 00 8F 02 19 67 A0 18 CA 66 0C [14:05:02]GetLastDocTimeStamp 1729692230 [14:05:02]current date 1729692303 [14:05:02]FM_GetShiftState [14:05:02]SAM_PROTO_GetShiftState [14:05:02]wFMCommunicate request_size=4 [14:05:02]MH_SAM_APDU [14:05:02]CAPDU: 80 13 01 00 [14:05:02]Write to MH i2c: E2 08 00 03 19 80 13 01 00 00 00 00 00 99 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 0E 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 0E 00 03 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 81 [14:05:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:05:02]wFMCommunicate OK [14:05:02]SAM_PROTO_GetShiftState done [14:05:02]FM_GetShiftState done [14:05:02]opened in 1729642525 [14:05:02]opened+sec_in_day 1729728925 [14:05:02]quantity*price = 50025 [14:05:02]sum+1 = 50027 [14:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 208 23.10.2024 14:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188750 ФПД: 117451357919201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188750&fm=117451357919201&tin=02508201610067®Number=0000000000100030&sum=50000 [14:05:03]StoreToDocumentArchive [14:05:03]shift 462 fd 188750 [14:05:03]save to /storage/0462/doc_00188750 [14:05:03]save last doc name /storage/0462/doc_00188750 to /storage/kkm_last_doc_name [14:05:03]save OK [14:05:03]Clear old archive folders... [14:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:05:03]tlvbuf is B6EF42C0 [14:05:03]SAM_PROTO_ClearQueue [14:05:03]wFMCommunicate request_size=4 [14:05:03]MH_SAM_APDU [14:05:03]CAPDU: 80 09 00 00 [14:05:03]Write to MH i2c: E2 08 00 10 19 80 09 00 00 00 00 00 00 9B [14:05:03]Write i2c OK [14:05:03]MH_I2C_Read... [14:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:03]Read from MH i2c: E2 [14:05:03]MH_I2C_Read... [14:05:03]Read from MH i2c: E2 03 00 [14:05:03]MH_I2C_Read... [14:05:03]Read from MH i2c: E2 03 00 10 19 00 90 00 9D [14:05:03]RAPDU: 90 00 [14:05:03]wFMCommunicate OK [14:05:03]SAM_PROTO_ClearQueue done [14:05:03]KKMCreateOFDPacket [14:05:03]OFDProtocolAddRootSTLVToBuf [14:05:03]FM_MakeSignedData [14:05:03]FM_MakeSignedData [14:05:03]SAM_PROTO_SignData [14:05:03]wFMCommunicate request_size=4 [14:05:03]MH_SAM_APDU [14:05:03]CAPDU: 80 0D 01 02 [14:05:03]Write to MH i2c: E2 08 00 11 19 80 0D 01 02 00 00 00 00 A3 [14:05:03]Write i2c OK [14:05:03]MH_I2C_Read... [14:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:03]Read from MH i2c: E2 [14:05:03]MH_I2C_Read... [14:05:03]Read from MH i2c: E2 03 00 [14:05:03]MH_I2C_Read... [14:05:03]Read from MH i2c: E2 03 00 11 19 00 90 00 9E [14:05:03]RAPDU: 90 00 [14:05:03]wFMCommunicate OK [14:05:03]wFMCommunicate request_size=255 [14:05:03]MH_SAM_APDU [14:05:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 8F 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E1 02 [14:05:03]Write to MH i2c: E2 02 01 12 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 8F 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E1 02 00 00 91 [14:05:03]Write i2c OK [14:05:03]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 12 19 00 90 00 9F [14:05:04]RAPDU: 90 00 [14:05:04]wFMCommunicate OK [14:05:04]wFMCommunicate request_size=16 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6A D2 46 77 97 E1 [14:05:04]Write to MH i2c: E2 13 00 13 19 80 0D 02 02 0B 00 00 35 04 06 00 6A D2 46 77 97 E1 00 00 6C [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 13 19 00 90 00 A0 [14:05:04]RAPDU: 90 00 [14:05:04]wFMCommunicate OK [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 0D 03 02 [14:05:04]Write to MH i2c: E2 08 00 14 19 80 0D 03 02 00 00 00 00 A8 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0B 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0B 00 14 19 00 FC 9A EA F0 60 2A 26 8A 90 00 53 [14:05:04]RAPDU: FC 9A EA F0 60 2A 26 8A 90 00 [14:05:04]wFMCommunicate OK [14:05:04]SAM_PROTO_SignData done [14:05:04]FM_MakeSignedData done [14:05:04]CreateOFDProtocolMessage [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 11 00 00 [14:05:04]Write to MH i2c: E2 08 00 15 19 80 11 00 00 00 00 00 00 A8 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 17 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 17 00 15 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [14:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:04]wFMCommunicate OK [14:05:04]CreateOFDProtocolMessage done [14:05:04]OFDSenderStorePacket 188750 [14:05:04]StoreOFDPacket docnum=188750 [14:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8E 4D 0D 01 FF 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 8F 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E1 02 00 35 04 06 00 6A D2 46 77 97 E1 FC 9A EA F0 60 2A 26 8A [14:05:04]CheckFolder [14:05:04]dirname=/storage/ofd_packets [14:05:04]CheckFolder done [14:05:04]ProducePacketName [14:05:04]name=ofd_packets/00188750 [14:05:04]NVStorageSaveData ofd_packets/00188750 [14:05:04]File name is /storage/ofd_packets/00188750 [14:05:04]Write 307 bytes [14:05:04]NVStorageSaveData done [14:05:04]OFDSenderStorePacket done [14:05:04]KKMCreateOFDPacket done [14:05:04]NVStorageSaveData kkm_last_timestamp [14:05:04]File name is /storage/kkm_last_timestamp [14:05:04]Write 4 bytes [14:05:04]NVStorageSaveData done [14:05:04]ExternCall_PrintAddStr [14:05:04]wPrintStart [14:05:04]Write to MH i2c: 01 00 00 16 19 2F [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 07 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 07 00 16 19 00 00 00 00 00 FF 0F 44 [14:05:04]RasterBufferAndPrint [14:05:04]line Счет N : (1)210810 [14:05:04]line ИНН: 02508201610067 [14:05:04]line Контрольно-Кассовый Чек [14:05:04]line ПРОДАЖА [14:05:04]line ТРК (МРК, ГНК) : 31 [14:05:04]line Товар: 2710194210 [14:05:04]line D-ENERGY ДТ-К-5 [14:05:04]line 6.480 * 77.20 [14:05:04]line = 500.26 [14:05:04]line НДС 12% НСП 1% [14:05:04]line > о реализуемом товаре [14:05:04]line ОКРУГЛЕНИЕ: -0.26 [14:05:04]line ИТОГО: 500.00 [14:05:04]line Внесено: 500.00 [14:05:04]line СДАЧА: 0.00 [14:05:04]line НСП 1% : 4.43 [14:05:04]line НДС 12% : 53.12 [14:05:04]line Наличными: 500.00 [14:05:04]line Безнал.: 0.00 [14:05:04]line Место: АЗС № 86 "Партнер Нефть" [14:05:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:05:04]line СНО: Общий режим [14:05:04]line Чек 208 23.10.2024 14:05 [14:05:04]line Смена: 462 ФФД: 1.0 [14:05:04]line ЗНМ: 0300000155 [14:05:04]line РНМ: 0000000000100030 [14:05:04]line Версия ККМ: 001 [14:05:04]line ФМ: 0000000000965340 [14:05:04]line ФД: 188750 [14:05:04]line ФПД: 117451357919201 [14:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188750&fm=117451357919201&tin=02508201610067®Number=0000000000100030&sum=50000 [14:05:04]written 0, free lines is 4095 [14:05:04]OFD Sender: Processing packet 188750 [packets to send 1062, broken 1061] [14:05:04]ProducePacketName [14:05:04]name=ofd_packets/00188750 [14:05:04]OFD Sender: To server: pG, [14:05:04]CommunicateWithHost lk.salyk.kg:30040 [14:05:04]ConnectInit lk.salyk.kg [14:05:04]Write to MH i2c: 01 00 00 41 19 5A [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 07 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 07 00 41 19 00 00 00 00 00 57 0C C4 [14:05:04]RasterBufferAndPrint [14:05:04]line [14:05:04]line [14:05:04]line [14:05:04]line [14:05:04]line [14:05:04]written 0, free lines is 3162 [14:05:04]MH_Cut [14:05:04]Write to MH i2c: D1 01 00 48 19 01 33 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: D1 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: D1 01 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: D1 01 00 48 19 00 32 [14:05:04]Write to MH i2c: 01 00 00 49 19 62 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]Connected sock=11 [14:05:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8E 4D 0D 01 FF 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 8F 02 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E1 02 00 35 04 06 00 6A D2 46 77 97 E1 FC 9A EA F0 60 2A 26 8A [14:05:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6C A8 47 00 3D 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E1 02 00 F4 03 04 00 7A AC 18 67 B6 04 01 00 00 78 77 93 DB BD D0 44 F7 [14:05:05]CommunicateWithHost err = 0 [14:05:05]CheckOFDResponse [14:05:05]1017 (14) - 77093643461234 [14:05:05]1041 (16) - 0000000000965340 [14:05:05]1040 (4) - 188750 [14:05:05]1012 (4) - 23.10.2024 07:57 [14:05:05]1206 (1) - 0 [14:05:05]OFD Sender: Remove packet 188750 [14:05:05]ProducePacketName [14:05:05]name=ofd_packets/00188750 [14:05:05]NVStorageDeleteData [14:05:05]OFD Sender: No OFD packet to send [14:05:05]*** Cut start [14:05:05]*** Partial cut [14:05:05]*** CUTSNS_PIN = 1 [14:05:06]*** CUTSNS_PIN = 0 [14:05:06]*** Brake cut motor [14:05:06]Read from MH i2c: 01 [14:05:06]MH_I2C_Read... [14:05:06]*** Stop cut motor [14:05:06]*** Cut end [14:05:06]Read from MH i2c: 01 07 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 07 00 49 19 00 00 00 00 00 FF 0F 77 [14:05:06]process_action close_receipt done [14:05:06]requested_data is exist [14:05:06]produce_requested_data [14:05:06]requested_item fm.sn is exist - process it [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 11 00 00 [14:05:06]Write to MH i2c: E2 08 00 4A 19 80 11 00 00 00 00 00 00 DD [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 17 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 17 00 4A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [14:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:06]wFMCommunicate OK [14:05:06]requested_item fd.num is exist - process it [14:05:06]SAM_PROTO_GetFieldsCounters [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 13 00 00 [14:05:06]Write to MH i2c: E2 08 00 4B 19 80 13 00 00 00 00 00 00 E0 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 62 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 62 00 4B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [14:05:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:06]wFMCommunicate OK [14:05:06]SAM_PROTO_GetFieldsCounters done [14:05:06]requested_item shift.num is exist - process it [14:05:06]requested_item shift.opened is exist - process it [14:05:06]req_shift_opened [14:05:06]FM_GetShiftState [14:05:06]SAM_PROTO_GetShiftState [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 13 01 00 [14:05:06]Write to MH i2c: E2 08 00 4C 19 80 13 01 00 00 00 00 00 E2 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0E 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0E 00 4C 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CA [14:05:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:05:06]wFMCommunicate OK [14:05:06]SAM_PROTO_GetShiftState done [14:05:06]FM_GetShiftState done [14:05:06]req_shift_opened done [14:05:06]requested_item shift.open_date is exist - process it [14:05:06]req_shift_open_date [14:05:06]req_shift_open_date done [14:05:06]produce_requested_data done [14:05:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188750,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:05:06]process_action_free close_receipt [14:05:06]json_value_free [14:05:06]json_value_free done [14:05:06]process_json_proto returns [14:05:06]Send response to host [14:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188750,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:05:06]free response buf [14:05:06]execute_script done [14:05:06]execute_script returns [14:05:06]free content buf [14:05:06]Sock 7.Close socket [14:05:06]Sock 7.Thread stoped [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10: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:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [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:19]accept exits with 9 [14:16:19]New connection [14:16:19]New thread 3067161956 created [14:16:19]Thread 3067018596 joined [14:16:19]Waiting for new connection... [14:16:19] Sock 9.Parse request [14:16:19]Sock 9.Check first char [14:16:19]Sock 9.First char is OK [14:16:19]request: POST /json_proto HTTP/1.0 [14:16:19]Method: POST [14:16:19]URL: /json_proto [14:16:19]Method is POST - this is cgi request [14:16:19]url: /json_proto [14:16:19]query_string will be loaded in cgi processing [14:16:19]execute_cgi json_proto POST (null) [14:16:19]execute_cgi path=json_proto method=POST [14:16:19]POST find Content-Length [14:16:19]Host: 172.17.42.131:8080 [14:16:19]Content-Length: 677 [14:16:19]Content-Type: application/json [14:16:19] [14:16:19]POST finish read [14:16:19]Found Content-Length = 677 [14:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:19]execute_script... [14:16:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:19]POST & json_proto [14:16:19]process_json_proto [14:16:19]json parsed OK: [14:16:19]protocol is kg_v1.0 [14:16:19]action value=close_receipt [14:16:19]process_action close_receipt [14:16:19]cmd_close_receipt [14:16:19]MH_GetDate [14:16:19]Write to MH i2c: F0 00 00 4D 19 55 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: F0 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: F0 09 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: F0 09 00 4D 19 00 34 05 19 67 A0 18 CA 66 FF [14:16:19]GetLastDocTimeStamp 1729692303 [14:16:19]current date 1729692980 [14:16:19]FM_GetShiftState [14:16:19]SAM_PROTO_GetShiftState [14:16:19]wFMCommunicate request_size=4 [14:16:19]MH_SAM_APDU [14:16:19]CAPDU: 80 13 01 00 [14:16:19]Write to MH i2c: E2 08 00 4E 19 80 13 01 00 00 00 00 00 E4 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 0E 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 0E 00 4E 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CC [14:16:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:16:19]wFMCommunicate OK [14:16:19]SAM_PROTO_GetShiftState done [14:16:19]FM_GetShiftState done [14:16:19]opened in 1729642525 [14:16:19]opened+sec_in_day 1729728925 [14:16:19]quantity*price = 40006 [14:16:19]sum+1 = 40007 [14:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 209 23.10.2024 14:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188751 ФПД: 4733641445928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141620&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188751&fm=4733641445928&tin=02508201610067®Number=0000000000100030&sum=40000 [14:16:20]StoreToDocumentArchive [14:16:20]shift 462 fd 188751 [14:16:20]save to /storage/0462/doc_00188751 [14:16:20]save last doc name /storage/0462/doc_00188751 to /storage/kkm_last_doc_name [14:16:20]save OK [14:16:20]Clear old archive folders... [14:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:20]tlvbuf is 01C2D4E0 [14:16:20]SAM_PROTO_ClearQueue [14:16:20]wFMCommunicate request_size=4 [14:16:20]MH_SAM_APDU [14:16:20]CAPDU: 80 09 00 00 [14:16:20]Write to MH i2c: E2 08 00 5B 19 80 09 00 00 00 00 00 00 E6 [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:20]Read from MH i2c: E2 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 03 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [14:16:20]RAPDU: 90 00 [14:16:20]wFMCommunicate OK [14:16:20]SAM_PROTO_ClearQueue done [14:16:20]KKMCreateOFDPacket [14:16:20]OFDProtocolAddRootSTLVToBuf [14:16:20]FM_MakeSignedData [14:16:20]FM_MakeSignedData [14:16:20]SAM_PROTO_SignData [14:16:20]wFMCommunicate request_size=4 [14:16:20]MH_SAM_APDU [14:16:20]CAPDU: 80 0D 01 02 [14:16:20]Write to MH i2c: E2 08 00 5C 19 80 0D 01 02 00 00 00 00 EE [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:20]Read from MH i2c: E2 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 03 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 03 00 5C 19 00 90 00 E9 [14:16:20]RAPDU: 90 00 [14:16:20]wFMCommunicate OK [14:16:20]wFMCommunicate request_size=255 [14:16:20]MH_SAM_APDU [14:16:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 34 05 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E1 02 00 35 04 06 00 04 [14:16:20]Write to MH i2c: E2 02 01 5D 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 34 05 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E1 02 00 35 04 06 00 04 00 00 BF [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:20]Read from MH i2c: E2 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 03 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 03 00 5D 19 00 90 00 EA [14:16:20]RAPDU: 90 00 [14:16:20]wFMCommunicate OK [14:16:20]wFMCommunicate request_size=10 [14:16:20]MH_SAM_APDU [14:16:20]CAPDU: 80 0D 02 02 05 4E 23 04 52 28 [14:16:20]Write to MH i2c: E2 0D 00 5E 19 80 0D 02 02 05 00 4E 23 04 52 28 00 00 EA [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:20]Read from MH i2c: E2 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 03 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 03 00 5E 19 00 90 00 EB [14:16:20]RAPDU: 90 00 [14:16:20]wFMCommunicate OK [14:16:20]wFMCommunicate request_size=4 [14:16:20]MH_SAM_APDU [14:16:20]CAPDU: 80 0D 03 02 [14:16:20]Write to MH i2c: E2 08 00 5F 19 80 0D 03 02 00 00 00 00 F3 [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:20]Read from MH i2c: E2 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 0B 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 0B 00 5F 19 00 AF E1 31 A7 98 3A E4 25 90 00 37 [14:16:20]RAPDU: AF E1 31 A7 98 3A E4 25 90 00 [14:16:20]wFMCommunicate OK [14:16:20]SAM_PROTO_SignData done [14:16:20]FM_MakeSignedData done [14:16:20]CreateOFDProtocolMessage [14:16:20]wFMCommunicate request_size=4 [14:16:20]MH_SAM_APDU [14:16:20]CAPDU: 80 11 00 00 [14:16:20]Write to MH i2c: E2 08 00 60 19 80 11 00 00 00 00 00 00 F3 [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:20]Read from MH i2c: E2 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 17 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: E2 17 00 60 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [14:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:16:20]wFMCommunicate OK [14:16:20]CreateOFDProtocolMessage done [14:16:20]OFDSenderStorePacket 188751 [14:16:20]StoreOFDPacket docnum=188751 [14:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 3B 07 01 07 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 34 05 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E1 02 00 35 04 06 00 04 4E 23 04 52 28 AF E1 31 A7 98 3A E4 25 [14:16:20]CheckFolder [14:16:20]dirname=/storage/ofd_packets [14:16:20]CheckFolder done [14:16:20]ProducePacketName [14:16:20]name=ofd_packets/00188751 [14:16:20]NVStorageSaveData ofd_packets/00188751 [14:16:20]File name is /storage/ofd_packets/00188751 [14:16:20]Write 301 bytes [14:16:20]NVStorageSaveData done [14:16:20]OFDSenderStorePacket done [14:16:20]KKMCreateOFDPacket done [14:16:20]NVStorageSaveData kkm_last_timestamp [14:16:20]File name is /storage/kkm_last_timestamp [14:16:20]Write 4 bytes [14:16:20]NVStorageSaveData done [14:16:20]ExternCall_PrintAddStr [14:16:20]wPrintStart [14:16:20]Write to MH i2c: 01 00 00 61 19 7A [14:16:20]Write i2c OK [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: 01 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: 01 07 00 [14:16:20]MH_I2C_Read... [14:16:20]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 FF 0F 8F [14:16:20]RasterBufferAndPrint [14:16:20]line Счет N : (1)210811 [14:16:20]line ИНН: 02508201610067 [14:16:20]line Контрольно-Кассовый Чек [14:16:20]line ПРОДАЖА [14:16:20]line ТРК (МРК, ГНК) : 42 [14:16:20]line Товар: 2710124130 [14:16:20]line Аи-92-К-3 [14:16:20]line 5.980 * 66.90 [14:16:20]line = 400.06 [14:16:20]line НДС 12% НСП 1% [14:16:20]line > о реализуемом товаре [14:16:20]line ОКРУГЛЕНИЕ: -0.06 [14:16:20]line ИТОГО: 400.00 [14:16:20]line Внесено: 400.00 [14:16:20]line СДАЧА: 0.00 [14:16:20]line НСП 1% : 3.54 [14:16:20]line НДС 12% : 42.48 [14:16:20]line Наличными: 400.00 [14:16:20]line Безнал.: 0.00 [14:16:20]line Место: АЗС № 86 "Партнер Нефть" [14:16:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:16:20]line СНО: Общий режим [14:16:20]line Чек 209 23.10.2024 14:16 [14:16:20]line Смена: 462 ФФД: 1.0 [14:16:20]line ЗНМ: 0300000155 [14:16:20]line РНМ: 0000000000100030 [14:16:20]line Версия ККМ: 001 [14:16:20]line ФМ: 0000000000965340 [14:16:20]line ФД: 188751 [14:16:20]line ФПД: 4733641445928 [14:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141620&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188751&fm=4733641445928&tin=02508201610067®Number=0000000000100030&sum=40000 [14:16:21]OFD Sender: Processing packet 188751 [packets to send 1062, broken 1061] [14:16:21]ProducePacketName [14:16:21]name=ofd_packets/00188751 [14:16:21]OFD Sender: To server: pG, [14:16:21]CommunicateWithHost lk.salyk.kg:30040 [14:16:21]ConnectInit lk.salyk.kg [14:16:21]written 0, free lines is 4095 [14:16:21]Connected sock=10 [14:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 3B 07 01 07 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 34 05 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E1 02 00 35 04 06 00 04 4E 23 04 52 28 AF E1 31 A7 98 3A E4 25 [14:16:21]Write to MH i2c: 01 00 00 8C 19 A5 [14:16:21]Write i2c OK [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: 01 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: 01 07 00 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: 01 07 00 8C 19 00 00 00 00 00 50 0C 08 [14:16:21]RasterBufferAndPrint [14:16:21]line [14:16:21]line [14:16:21]line [14:16:21]line [14:16:21]line [14:16:21]written 0, free lines is 3155 [14:16:21]MH_Cut [14:16:21]Write to MH i2c: D1 01 00 93 19 01 7E [14:16:21]Write i2c OK [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: D1 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: D1 01 00 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: D1 01 00 93 19 00 7D [14:16:21]Write to MH i2c: 01 00 00 94 19 AD [14:16:21]Write i2c OK [14:16:21]MH_I2C_Read... [14:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 1A 47 00 C3 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E1 02 00 F4 03 04 00 1E AF 18 67 B6 04 01 00 00 7B 64 34 CB 94 36 52 DE [14:16:21]CommunicateWithHost err = 0 [14:16:21]CheckOFDResponse [14:16:21]1017 (14) - 77093643461234 [14:16:21]1041 (16) - 0000000000965340 [14:16:21]1040 (4) - 188751 [14:16:21]1012 (4) - 23.10.2024 08:09 [14:16:21]1206 (1) - 0 [14:16:21]OFD Sender: Remove packet 188751 [14:16:21]ProducePacketName [14:16:21]name=ofd_packets/00188751 [14:16:21]NVStorageDeleteData [14:16:22]OFD Sender: No OFD packet to send [14:16:22]*** Cut start [14:16:22]*** Partial cut [14:16:22]*** CUTSNS_PIN = 1 [14:16:23]*** CUTSNS_PIN = 0 [14:16:23]*** Brake cut motor [14:16:23]Read from MH i2c: 01 [14:16:23]MH_I2C_Read... [14:16:23]*** Stop cut motor [14:16:23]*** Cut end [14:16:23]Read from MH i2c: 01 07 00 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 FF 0F C2 [14:16:23]process_action close_receipt done [14:16:23]requested_data is exist [14:16:23]produce_requested_data [14:16:23]requested_item fm.sn is exist - process it [14:16:23]wFMCommunicate request_size=4 [14:16:23]MH_SAM_APDU [14:16:23]CAPDU: 80 11 00 00 [14:16:23]Write to MH i2c: E2 08 00 95 19 80 11 00 00 00 00 00 00 28 [14:16:23]Write i2c OK [14:16:23]MH_I2C_Read... [14:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:23]Read from MH i2c: E2 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 17 00 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 17 00 95 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [14:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:16:23]wFMCommunicate OK [14:16:23]requested_item fd.num is exist - process it [14:16:23]SAM_PROTO_GetFieldsCounters [14:16:23]wFMCommunicate request_size=4 [14:16:23]MH_SAM_APDU [14:16:23]CAPDU: 80 13 00 00 [14:16:23]Write to MH i2c: E2 08 00 96 19 80 13 00 00 00 00 00 00 2B [14:16:23]Write i2c OK [14:16:23]MH_I2C_Read... [14:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:23]Read from MH i2c: E2 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 62 00 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 62 00 96 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [14:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:23]wFMCommunicate OK [14:16:23]SAM_PROTO_GetFieldsCounters done [14:16:23]requested_item shift.num is exist - process it [14:16:23]requested_item shift.opened is exist - process it [14:16:23]req_shift_opened [14:16:23]FM_GetShiftState [14:16:23]SAM_PROTO_GetShiftState [14:16:23]wFMCommunicate request_size=4 [14:16:23]MH_SAM_APDU [14:16:23]CAPDU: 80 13 01 00 [14:16:23]Write to MH i2c: E2 08 00 97 19 80 13 01 00 00 00 00 00 2D [14:16:23]Write i2c OK [14:16:23]MH_I2C_Read... [14:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:23]Read from MH i2c: E2 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 0E 00 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 0E 00 97 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 15 [14:16:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:16:23]wFMCommunicate OK [14:16:23]SAM_PROTO_GetShiftState done [14:16:23]FM_GetShiftState done [14:16:23]req_shift_opened done [14:16:23]requested_item shift.open_date is exist - process it [14:16:23]req_shift_open_date [14:16:23]req_shift_open_date done [14:16:23]produce_requested_data done [14:16:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188751,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:16:23]process_action_free close_receipt [14:16:23]json_value_free [14:16:23]json_value_free done [14:16:23]process_json_proto returns [14:16:23]Send response to host [14:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188751,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:16:23]free response buf [14:16:23]execute_script done [14:16:23]execute_script returns [14:16:23]free content buf [14:16:23]Sock 9.Close socket [14:16:23]Sock 9.Thread stoped [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18: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:07]accept exits with 7 [14:21:07]New connection [14:21:07]New thread 3067018596 created [14:21:07]Thread 3067161956 joined [14:21:07]Waiting for new connection... [14:21:07] Sock 7.Parse request [14:21:07]Sock 7.Check first char [14:21:07]Sock 7.First char is OK [14:21:07]request: POST /json_proto HTTP/1.0 [14:21:07]Method: POST [14:21:07]URL: /json_proto [14:21:07]Method is POST - this is cgi request [14:21:07]url: /json_proto [14:21:07]query_string will be loaded in cgi processing [14:21:07]execute_cgi json_proto POST (null) [14:21:07]execute_cgi path=json_proto method=POST [14:21:07]POST find Content-Length [14:21:07]Host: 172.17.42.131:8080 [14:21:07]Content-Length: 769 [14:21:07]Content-Type: application/json [14:21:07] [14:21:07]POST finish read [14:21:07]Found Content-Length = 769 [14:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:07]execute_script... [14:21:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:07]POST & json_proto [14:21:07]process_json_proto [14:21:07]json parsed OK: [14:21:07]protocol is kg_v1.0 [14:21:07]action value=close_receipt [14:21:07]process_action close_receipt [14:21:07]cmd_close_receipt [14:21:07]MH_GetDate [14:21:07]Write to MH i2c: F0 00 00 98 19 A0 [14:21:07]Write i2c OK [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: F0 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: F0 09 00 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: F0 09 00 98 19 00 54 06 19 67 A0 18 CA 66 6B [14:21:07]GetLastDocTimeStamp 1729692980 [14:21:07]current date 1729693268 [14:21:07]FM_GetShiftState [14:21:07]SAM_PROTO_GetShiftState [14:21:07]wFMCommunicate request_size=4 [14:21:07]MH_SAM_APDU [14:21:07]CAPDU: 80 13 01 00 [14:21:07]Write to MH i2c: E2 08 00 99 19 80 13 01 00 00 00 00 00 2F [14:21:07]Write i2c OK [14:21:07]MH_I2C_Read... [14:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:07]Read from MH i2c: E2 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 0E 00 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 0E 00 99 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 17 [14:21:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:21:07]wFMCommunicate OK [14:21:07]SAM_PROTO_GetShiftState done [14:21:07]FM_GetShiftState done [14:21:07]opened in 1729642525 [14:21:07]opened+sec_in_day 1729728925 [14:21:07]quantity*price = 250005 [14:21:07]sum+1 = 250006 [14:21:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.05 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.05 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 210 23.10.2024 14:21 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188752 ФПД: 264877615015828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142108&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188752&fm=264877615015828&tin=02508201610067®Number=0000000000100030&sum=250005 [14:21:08]StoreToDocumentArchive [14:21:08]shift 462 fd 188752 [14:21:08]save to /storage/0462/doc_00188752 [14:21:08]save last doc name /storage/0462/doc_00188752 to /storage/kkm_last_doc_name [14:21:08]save OK [14:21:08]Clear old archive folders... [14:21:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:08]tlvbuf is 01C77D90 [14:21:08]SAM_PROTO_ClearQueue [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 09 00 00 [14:21:08]Write to MH i2c: E2 08 00 A6 19 80 09 00 00 00 00 00 00 31 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 A6 19 00 90 00 33 [14:21:08]RAPDU: 90 00 [14:21:08]wFMCommunicate OK [14:21:08]SAM_PROTO_ClearQueue done [14:21:08]KKMCreateOFDPacket [14:21:08]OFDProtocolAddRootSTLVToBuf [14:21:08]FM_MakeSignedData [14:21:08]FM_MakeSignedData [14:21:08]SAM_PROTO_SignData [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 0D 01 02 [14:21:08]Write to MH i2c: E2 08 00 A7 19 80 0D 01 02 00 00 00 00 39 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 A7 19 00 90 00 34 [14:21:08]RAPDU: 90 00 [14:21:08]wFMCommunicate OK [14:21:08]wFMCommunicate request_size=255 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 54 06 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E1 02 00 35 04 06 00 F0 [14:21:08]Write to MH i2c: E2 02 01 A8 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 54 06 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E1 02 00 35 04 06 00 F0 00 00 8C [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [14:21:08]RAPDU: 90 00 [14:21:08]wFMCommunicate OK [14:21:08]wFMCommunicate request_size=10 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 0D 02 02 05 E7 A0 26 E7 94 [14:21:08]Write to MH i2c: E2 0D 00 A9 19 80 0D 02 02 05 00 E7 A0 26 E7 94 00 00 6E [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]OFD Sender: No OFD packet to send [14:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 A9 19 00 90 00 36 [14:21:08]RAPDU: 90 00 [14:21:08]wFMCommunicate OK [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 0D 03 02 [14:21:08]Write to MH i2c: E2 08 00 AA 19 80 0D 03 02 00 00 00 00 3E [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0B 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0B 00 AA 19 00 12 3B AE 97 8A 1A 82 91 90 00 88 [14:21:08]RAPDU: 12 3B AE 97 8A 1A 82 91 90 00 [14:21:08]wFMCommunicate OK [14:21:08]SAM_PROTO_SignData done [14:21:08]FM_MakeSignedData done [14:21:08]CreateOFDProtocolMessage [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 11 00 00 [14:21:08]Write to MH i2c: E2 08 00 AB 19 80 11 00 00 00 00 00 00 3E [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 17 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 17 00 AB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [14:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:21:08]wFMCommunicate OK [14:21:08]CreateOFDProtocolMessage done [14:21:08]OFDSenderStorePacket 188752 [14:21:08]StoreOFDPacket docnum=188752 [14:23:27]ConnectInit Can't connect to host [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:11]accept exits with 9 [14:24:11]New connection [14:24:11]New thread 3067350372 created [14:24:11]Waiting for new connection... [14:24:11] Sock 9.Parse request [14:24:11]Sock 9.Check first char [14:24:11]Sock 9.First char is OK [14:24:11]request: POST /json_proto HTTP/1.0 [14:24:11]Method: POST [14:24:11]URL: /json_proto [14:24:11]Method is POST - this is cgi request [14:24:11]url: /json_proto [14:24:11]query_string will be loaded in cgi processing [14:24:11]execute_cgi json_proto POST (null) [14:24:11]execute_cgi path=json_proto method=POST [14:24:11]POST find Content-Length [14:24:11]Host: 172.17.42.131:8080 [14:24:11]Content-Length: 215 [14:24:11]Content-Type: application/json [14:24:11] [14:24:11]POST finish read [14:24:11]Found Content-Length = 215 [14:24:11]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" ] } } [14:24:11]execute_script... [14:24:11]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" ] } } [14:24:11]POST & json_proto [14:24:11]process_json_proto [14:24:11]json parsed OK: [14:24:11]protocol is kg_v1.0 [14:24:11]action value=get_value [14:24:11]process_action get_value [14:24:11]cmd_get_value [14:24:11]process_action get_value done [14:24:11]requested_data is exist [14:24:11]produce_requested_data [14:24:11]requested_item kkm.sn is exist - process it [14:24:11]requested_item kkm.ver is exist - process it [14:24:11]requested_item fm.sn is exist - process it [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 11 00 00 [14:24:11]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 17 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [14:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:24:11]wFMCommunicate OK [14:24:11]requested_item fd.num is exist - process it [14:24:11]SAM_PROTO_GetFieldsCounters [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 13 00 00 [14:24:11]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 62 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:24:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:11]wFMCommunicate OK [14:24:11]SAM_PROTO_GetFieldsCounters done [14:24:11]requested_item shift.num is exist - process it [14:24:11]requested_item shift.opened is exist - process it [14:24:11]req_shift_opened [14:24:11]FM_GetShiftState [14:24:11]SAM_PROTO_GetShiftState [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 13 01 00 [14:24:11]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 0E 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 77 [14:24:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:24:11]wFMCommunicate OK [14:24:11]SAM_PROTO_GetShiftState done [14:24:11]FM_GetShiftState done [14:24:11]req_shift_opened done [14:24:11]requested_item shift.open_date is exist - process it [14:24:11]req_shift_open_date [14:24:11]req_shift_open_date done [14:24:11]produce_requested_data done [14:24:11]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188752,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:24:11]process_action_free get_value [14:24:11]json_value_free [14:24:11]json_value_free done [14:24:11]process_json_proto returns [14:24:11]Send response to host [14:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188752,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:24:11]free response buf [14:24:11]execute_script done [14:24:11]execute_script returns [14:24:11]free content buf [14:24:11]Sock 9.Close socket [14:24:11]Sock 9.Thread stoped [14:24:11]accept exits with 7 [14:24:11]New connection [14:24:11]New thread 3067207012 created [14:24:11]Thread 3067350372 joined [14:24:11]Waiting for new connection... [14:24:11] Sock 7.Parse request [14:24:11]Sock 7.Check first char [14:24:11]Sock 7.First char is OK [14:24:11]request: POST /json_proto HTTP/1.0 [14:24:11]Method: POST [14:24:11]URL: /json_proto [14:24:11]Method is POST - this is cgi request [14:24:11]url: /json_proto [14:24:11]query_string will be loaded in cgi processing [14:24:11]execute_cgi json_proto POST (null) [14:24:11]execute_cgi path=json_proto method=POST [14:24:11]POST find Content-Length [14:24:11]Host: 172.17.42.131:8080 [14:24:11]Content-Length: 331 [14:24:11]Content-Type: application/json [14:24:11] [14:24:11]POST finish read [14:24:11]Found Content-Length = 331 [14:24:11]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" ] } } [14:24:11]execute_script... [14:24:11]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" ] } } [14:24:11]POST & json_proto [14:24:11]process_json_proto [14:24:11]json parsed OK: [14:24:11]protocol is kg_v1.0 [14:24:11]action value=get_value [14:24:11]process_action get_value [14:24:11]cmd_get_value [14:24:11]process_action get_value done [14:24:11]requested_data is exist [14:24:11]produce_requested_data [14:24:11]requested_item fm.sale.total is exist - process it [14:24:11]SAM_PROTO_GetFMData [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 13 03 00 [14:24:11]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 FD 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 B4 DD 02 00 69 04 A4 00 6F 04 04 00 25 DD 02 00 B1 04 05 00 B8 CA CB BE 06 70 04 05 00 A8 D4 6B A4 04 72 04 05 00 10 F6 5F 1A 02 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 4E 69 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 8C 48 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 36 17 90 00 DE [14:24:12]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 B4 DD 02 00 69 04 A4 00 6F 04 04 00 25 DD 02 00 B1 04 05 00 B8 CA CB BE 06 70 04 05 00 A8 D4 6B A4 04 72 04 05 00 10 F6 5F 1A 02 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 4E 69 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A4 8C 48 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 36 17 90 00 [14:24:12]wFMCommunicate OK [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 17 00 00 [14:24:12]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 FD 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 FD 00 14 00 00 7B 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [14:24:12]RAPDU: 7B 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:24:12]wFMCommunicate OK [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 17 00 00 [14:24:12]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 FD 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [14:24:12]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:24:12]wFMCommunicate OK [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 17 00 00 [14:24:12]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 FD 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [14:24:12]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:24:12]wFMCommunicate OK [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 17 00 00 [14:24:12]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 E8 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 E8 00 17 00 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 75 [14:24:13]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_GetFMData done [14:24:13]requested_item fm.sale_refund.total is exist - process it [14:24:13]requested_item fm.buy.total is exist - process it [14:24:13]requested_item shift.sale.total is exist - process it [14:24:13]SAM_PROTO_GetShiftData [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 13 02 00 [14:24:13]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 FD 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 D2 00 00 00 69 04 9E 00 6F 04 04 00 D2 00 00 00 B1 04 04 00 6D 36 9C 01 70 04 04 00 68 FB 3B 01 72 04 03 00 05 3B 60 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7F C8 2B 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 FD A5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 A7 [14:24:13]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 D2 00 00 00 69 04 9E 00 6F 04 04 00 D2 00 00 00 B1 04 04 00 6D 36 9C 01 70 04 04 00 68 FB 3B 01 72 04 03 00 05 3B 60 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7F C8 2B 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 FD A5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [14:24:13]wFMCommunicate OK [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 17 00 00 [14:24:13]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 FD 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 B2 [14:24:13]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [14:24:13]wFMCommunicate OK [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 17 00 00 [14:24:13]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 FD 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [14:24:14]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [14:24:14]wFMCommunicate OK [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 17 00 00 [14:24:14]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 FD 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 FD 00 1B 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 13 [14:24:14]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [14:24:14]wFMCommunicate OK [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 17 00 00 [14:24:14]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 CE 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [14:24:14]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:24:14]wFMCommunicate OK [14:24:14]SAM_PROTO_GetShiftData done [14:24:14]requested_item shift.sale.total_cash is exist - process it [14:24:14]requested_item shift.sale_refund.total is exist - process it [14:24:14]requested_item shift.sale_refund.total_cash is exist - process it [14:24:14]requested_item shift.buy.total is exist - process it [14:24:14]requested_item shift.buy.total_cash is exist - process it [14:24:14]produce_requested_data done [14:24:14]produce_requested_data return {"fm.sale.total":289708305.20,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":270147.65,"shift.sale.total_cash":207082.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} [14:24:14]process_action_free get_value [14:24:14]json_value_free [14:24:14]json_value_free done [14:24:14]process_json_proto returns [14:24:14]Send response to host [14:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289708305.20,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":270147.65,"shift.sale.total_cash":207082.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}}} [14:24:14]free response buf [14:24:14]execute_script done [14:24:14]execute_script returns [14:24:14]free content buf [14:24:14]Sock 7.Close socket [14:24:14]Sock 7.Thread stoped [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:02]accept exits with 9 [14:27:02]New connection [14:27:02]New thread 3067350372 created [14:27:02]Thread 3067207012 joined [14:27:02]Waiting for new connection... [14:27:02] Sock 9.Parse request [14:27:02]Sock 9.Check first char [14:27:02]Sock 9.First char is OK [14:27:02]request: POST /json_proto HTTP/1.0 [14:27:02]Method: POST [14:27:02]URL: /json_proto [14:27:02]Method is POST - this is cgi request [14:27:02]url: /json_proto [14:27:02]query_string will be loaded in cgi processing [14:27:02]execute_cgi json_proto POST (null) [14:27:02]execute_cgi path=json_proto method=POST [14:27:02]POST find Content-Length [14:27:02]Host: 172.17.42.131:8080 [14:27:02]Content-Length: 677 [14:27:02]Content-Type: application/json [14:27:02] [14:27:02]POST finish read [14:27:02]Found Content-Length = 677 [14:27:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:02]execute_script... [14:27:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:02]POST & json_proto [14:27:02]process_json_proto [14:27:02]json parsed OK: [14:27:02]protocol is kg_v1.0 [14:27:02]action value=close_receipt [14:27:02]process_action close_receipt [14:27:02]cmd_close_receipt [14:27:02]MH_GetDate [14:27:02]Write to MH i2c: F0 00 00 1D 00 0C [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: F0 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: F0 09 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: F0 09 00 1D 00 00 B7 07 19 67 A0 18 CA 66 3B [14:27:02]GetLastDocTimeStamp 97 [14:27:02]current date 1729693623 [14:27:02]FM_GetShiftState [14:27:02]SAM_PROTO_GetShiftState [14:27:02]wFMCommunicate request_size=4 [14:27:02]MH_SAM_APDU [14:27:02]CAPDU: 80 13 01 00 [14:27:02]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:02]Read from MH i2c: E2 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 0E 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 83 [14:27:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:27:02]wFMCommunicate OK [14:27:02]SAM_PROTO_GetShiftState done [14:27:02]FM_GetShiftState done [14:27:02]opened in 1729642525 [14:27:02]opened+sec_in_day 1729728925 [14:27:02]quantity*price = 50041 [14:27:02]sum+1 = 50042 [14:27:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 211 23.10.2024 14:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188753 ФПД: 84726837265645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142703&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188753&fm=84726837265645&tin=02508201610067®Number=0000000000100030&sum=50000 [14:27:03]StoreToDocumentArchive [14:27:03]shift 462 fd 188753 [14:27:03]save to /storage/0462/doc_00188753 [14:27:03]save last doc name /storage/0462/doc_00188753 to /storage/kkm_last_doc_name [14:27:03]save OK [14:27:03]Clear old archive folders... [14:27:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:03]tlvbuf is 0111DA30 [14:27:03]SAM_PROTO_ClearQueue [14:27:03]wFMCommunicate request_size=4 [14:27:03]MH_SAM_APDU [14:27:03]CAPDU: 80 09 00 00 [14:27:03]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:27:03]Write i2c OK [14:27:03]MH_I2C_Read... [14:27:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:03]Read from MH i2c: E2 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 03 00 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:27:03]RAPDU: 90 00 [14:27:03]wFMCommunicate OK [14:27:03]SAM_PROTO_ClearQueue done [14:27:03]KKMCreateOFDPacket [14:27:03]OFDProtocolAddRootSTLVToBuf [14:27:03]FM_MakeSignedData [14:27:03]FM_MakeSignedData [14:27:03]SAM_PROTO_SignData [14:27:03]wFMCommunicate request_size=4 [14:27:03]MH_SAM_APDU [14:27:03]CAPDU: 80 0D 01 02 [14:27:03]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:27:03]Write i2c OK [14:27:03]MH_I2C_Read... [14:27:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:03]Read from MH i2c: E2 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 03 00 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:27:03]RAPDU: 90 00 [14:27:03]wFMCommunicate OK [14:27:03]wFMCommunicate request_size=255 [14:27:03]MH_SAM_APDU [14:27:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 B7 07 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E1 02 00 35 04 06 00 4D [14:27:03]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 B7 07 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E1 02 00 35 04 06 00 4D 00 00 79 [14:27:03]Write i2c OK [14:27:03]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:27:04]RAPDU: 90 00 [14:27:04]wFMCommunicate OK [14:27:04]wFMCommunicate request_size=10 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 0D 02 02 05 0F 01 09 C4 ED [14:27:04]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 0F 01 09 C4 ED 00 00 7C [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:27:04]RAPDU: 90 00 [14:27:04]wFMCommunicate OK [14:27:04]wFMCommunicate request_size=4 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 0D 03 02 [14:27:04]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 0B 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 0B 00 2F 00 00 11 3D D5 4A 47 C4 73 CA 90 00 60 [14:27:04]RAPDU: 11 3D D5 4A 47 C4 73 CA 90 00 [14:27:04]wFMCommunicate OK [14:27:04]SAM_PROTO_SignData done [14:27:04]FM_MakeSignedData done [14:27:04]CreateOFDProtocolMessage [14:27:04]wFMCommunicate request_size=4 [14:27:04]MH_SAM_APDU [14:27:04]CAPDU: 80 11 00 00 [14:27:04]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:04]Read from MH i2c: E2 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: E2 17 00 [14:27:04]MH_I2C_Read... [14:27:04]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 36 35 33 34 30 90 00 F8 [14:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:27:04]wFMCommunicate OK [14:27:04]CreateOFDProtocolMessage done [14:27:04]OFDSenderStorePacket 188753 [14:27:04]StoreOFDPacket docnum=188753 [14:27:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0D D1 07 01 F7 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 B7 07 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E1 02 00 35 04 06 00 4D 0F 01 09 C4 ED 11 3D D5 4A 47 C4 73 CA [14:27:04]CheckFolder [14:27:04]dirname=/storage/ofd_packets [14:27:04]CheckFolder done [14:27:04]ProducePacketName [14:27:04]name=ofd_packets/00188753 [14:27:04]NVStorageSaveData ofd_packets/00188753 [14:27:04]File name is /storage/ofd_packets/00188753 [14:27:04]Write 301 bytes [14:27:04]NVStorageSaveData done [14:27:04]OFDSenderStorePacket done [14:27:04]KKMCreateOFDPacket done [14:27:04]NVStorageSaveData kkm_last_timestamp [14:27:04]File name is /storage/kkm_last_timestamp [14:27:04]Write 4 bytes [14:27:04]NVStorageSaveData done [14:27:04]ExternCall_PrintAddStr [14:27:04]wPrintStart [14:27:04]Write to MH i2c: 01 00 00 31 00 31 [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 07 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:27:04]RasterBufferAndPrint [14:27:04]line Счет N : (1)210813 [14:27:04]line ИНН: 02508201610067 [14:27:04]line Контрольно-Кассовый Чек [14:27:04]line ПРОДАЖА [14:27:04]line ТРК (МРК, ГНК) : 42 [14:27:04]line Товар: 2710124130 [14:27:04]line Аи-92-К-3 [14:27:04]line 7.480 * 66.90 [14:27:04]line = 500.41 [14:27:04]line НДС 12% НСП 1% [14:27:04]line > о реализуемом товаре [14:27:04]line ОКРУГЛЕНИЕ: -0.41 [14:27:04]line ИТОГО: 500.00 [14:27:04]line Внесено: 500.00 [14:27:04]line СДАЧА: 0.00 [14:27:04]line НСП 1% : 4.43 [14:27:04]line НДС 12% : 53.14 [14:27:04]line Наличными: 500.00 [14:27:04]line Безнал.: 0.00 [14:27:04]line Место: АЗС № 86 "Партнер Нефть" [14:27:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:27:04]line СНО: Общий режим [14:27:04]line Чек 211 23.10.2024 14:27 [14:27:04]line Смена: 462 ФФД: 1.0 [14:27:04]line ЗНМ: 0300000155 [14:27:04]line РНМ: 0000000000100030 [14:27:04]line Версия ККМ: 001 [14:27:04]line ФМ: 0000000000965340 [14:27:04]line ФД: 188753 [14:27:04]line ФПД: 84726837265645 [14:27:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142703&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188753&fm=84726837265645&tin=02508201610067®Number=0000000000100030&sum=50000 [14:27:04]written 0, free lines is 4095 [14:27:04]OFD Sender: Processing packet 188753 [packets to send 1062, broken 1061] [14:27:04]ProducePacketName [14:27:04]name=ofd_packets/00188753 [14:27:04]OFD Sender: To server: pG, [14:27:04]CommunicateWithHost lk.salyk.kg:30040 [14:27:04]ConnectInit lk.salyk.kg [14:27:04]Connected sock=7 [14:27:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0D D1 07 01 F7 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 B7 07 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E1 02 00 35 04 06 00 4D 0F 01 09 C4 ED 11 3D D5 4A 47 C4 73 CA [14:27:04]Write to MH i2c: 01 00 00 5C 00 5C [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 07 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 5A 0C C9 [14:27:04]RasterBufferAndPrint [14:27:04]line [14:27:04]line [14:27:04]line [14:27:04]line [14:27:04]line [14:27:04]written 0, free lines is 3166 [14:27:04]MH_Cut [14:27:04]Write to MH i2c: D1 01 00 63 00 01 35 [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: D1 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: D1 01 00 [14:27:04]MH_I2C_Read... [14:27:04]Read from MH i2c: D1 01 00 63 00 00 34 [14:27:04]Write to MH i2c: 01 00 00 64 00 64 [14:27:04]Write i2c OK [14:27:04]MH_I2C_Read... [14:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E1 07 47 00 27 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E1 02 00 F4 03 04 00 A1 B1 18 67 B6 04 01 00 00 F4 C6 B8 6F D3 CC B9 A7 [14:27:05]CommunicateWithHost err = 0 [14:27:05]CheckOFDResponse [14:27:05]1017 (14) - 77093643461234 [14:27:05]1041 (16) - 0000000000965340 [14:27:05]1040 (4) - 188753 [14:27:05]1012 (4) - 23.10.2024 08:19 [14:27:05]1206 (1) - 0 [14:27:05]OFD Sender: Remove packet 188753 [14:27:05]ProducePacketName [14:27:05]name=ofd_packets/00188753 [14:27:05]NVStorageDeleteData [14:27:05]OFD Sender: No OFD packet to send [14:27:06]*** Cut start [14:27:06]*** Partial cut [14:27:06]*** CUTSNS_PIN = 1 [14:27:06]*** CUTSNS_PIN = 0 [14:27:06]*** Brake cut motor [14:27:06]Read from MH i2c: 01 [14:27:06]MH_I2C_Read... [14:27:06]*** Stop cut motor [14:27:06]*** Cut end [14:27:06]Read from MH i2c: 01 07 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:27:06]process_action close_receipt done [14:27:06]requested_data is exist [14:27:06]produce_requested_data [14:27:06]requested_item fm.sn is exist - process it [14:27:06]wFMCommunicate request_size=4 [14:27:06]MH_SAM_APDU [14:27:06]CAPDU: 80 11 00 00 [14:27:06]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:06]Read from MH i2c: E2 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 17 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [14:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:27:06]wFMCommunicate OK [14:27:06]requested_item fd.num is exist - process it [14:27:06]SAM_PROTO_GetFieldsCounters [14:27:06]wFMCommunicate request_size=4 [14:27:06]MH_SAM_APDU [14:27:06]CAPDU: 80 13 00 00 [14:27:06]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 62 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:07]wFMCommunicate OK [14:27:07]SAM_PROTO_GetFieldsCounters done [14:27:07]requested_item shift.num is exist - process it [14:27:07]requested_item shift.opened is exist - process it [14:27:07]req_shift_opened [14:27:07]FM_GetShiftState [14:27:07]SAM_PROTO_GetShiftState [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 13 01 00 [14:27:07]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 0E 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CC [14:27:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:27:07]wFMCommunicate OK [14:27:07]SAM_PROTO_GetShiftState done [14:27:07]FM_GetShiftState done [14:27:07]req_shift_opened done [14:27:07]requested_item shift.open_date is exist - process it [14:27:07]req_shift_open_date [14:27:07]req_shift_open_date done [14:27:07]produce_requested_data done [14:27:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188753,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:27:07]process_action_free close_receipt [14:27:07]json_value_free [14:27:07]json_value_free done [14:27:07]process_json_proto returns [14:27:07]Send response to host [14:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188753,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:27:07]free response buf [14:27:07]execute_script done [14:27:07]execute_script returns [14:27:07]free content buf [14:27:07]Sock 9.Close socket [14:27:07]Sock 9.Thread stoped [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:16]accept exits with 10 [14:32:16]New connection [14:32:16]New thread 3067207012 created [14:32:16]Thread 3067350372 joined [14:32:16]Waiting for new connection... [14:32:16] Sock 10.Parse request [14:32:16]Sock 10.Check first char [14:32:16]Sock 10.First char is OK [14:32:16]request: POST /json_proto HTTP/1.0 [14:32:16]Method: POST [14:32:16]URL: /json_proto [14:32:16]Method is POST - this is cgi request [14:32:16]url: /json_proto [14:32:16]query_string will be loaded in cgi processing [14:32:16]execute_cgi json_proto POST (null) [14:32:16]execute_cgi path=json_proto method=POST [14:32:16]POST find Content-Length [14:32:16]Host: 172.17.42.131:8080 [14:32:16]Content-Length: 679 [14:32:16]Content-Type: application/json [14:32:16] [14:32:16]POST finish read [14:32:16]Found Content-Length = 679 [14:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:16]execute_script... [14:32:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:16]POST & json_proto [14:32:16]process_json_proto [14:32:16]json parsed OK: [14:32:16]protocol is kg_v1.0 [14:32:16]action value=close_receipt [14:32:16]process_action close_receipt [14:32:16]cmd_close_receipt [14:32:16]MH_GetDate [14:32:16]Write to MH i2c: F0 00 00 68 00 57 [14:32:16]Write i2c OK [14:32:16]MH_I2C_Read... [14:32:16]Read from MH i2c: F0 [14:32:16]MH_I2C_Read... [14:32:16]Read from MH i2c: F0 09 00 [14:32:16]MH_I2C_Read... [14:32:16]Read from MH i2c: F0 09 00 68 00 00 F1 08 19 67 A0 18 CA 66 C1 [14:32:16]GetLastDocTimeStamp 1729693623 [14:32:16]current date 1729693937 [14:32:16]FM_GetShiftState [14:32:16]SAM_PROTO_GetShiftState [14:32:16]wFMCommunicate request_size=4 [14:32:16]MH_SAM_APDU [14:32:16]CAPDU: 80 13 01 00 [14:32:16]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [14:32:16]Write i2c OK [14:32:16]MH_I2C_Read... [14:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:17]Read from MH i2c: E2 [14:32:17]MH_I2C_Read... [14:32:17]Read from MH i2c: E2 0E 00 [14:32:17]MH_I2C_Read... [14:32:17]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CE [14:32:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:32:17]wFMCommunicate OK [14:32:17]SAM_PROTO_GetShiftState done [14:32:17]FM_GetShiftState done [14:32:17]opened in 1729642525 [14:32:17]opened+sec_in_day 1729728925 [14:32:17]quantity*price = 100050 [14:32:17]sum+1 = 100052 [14:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 212 23.10.2024 14:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188754 ФПД: 105896181056040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143217&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188754&fm=105896181056040&tin=02508201610067®Number=0000000000100030&sum=100000 [14:32:18]StoreToDocumentArchive [14:32:18]shift 462 fd 188754 [14:32:18]save to /storage/0462/doc_00188754 [14:32:18]save last doc name /storage/0462/doc_00188754 to /storage/kkm_last_doc_name [14:32:18]save OK [14:32:18]Clear old archive folders... [14:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:32:18]tlvbuf is 01114640 [14:32:18]SAM_PROTO_ClearQueue [14:32:18]wFMCommunicate request_size=4 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 09 00 00 [14:32:18]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:32:18]RAPDU: 90 00 [14:32:18]wFMCommunicate OK [14:32:18]SAM_PROTO_ClearQueue done [14:32:18]KKMCreateOFDPacket [14:32:18]OFDProtocolAddRootSTLVToBuf [14:32:18]FM_MakeSignedData [14:32:18]FM_MakeSignedData [14:32:18]SAM_PROTO_SignData [14:32:18]wFMCommunicate request_size=4 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 0D 01 02 [14:32:18]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:32:18]RAPDU: 90 00 [14:32:18]wFMCommunicate OK [14:32:18]wFMCommunicate request_size=255 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F1 08 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E1 02 00 35 04 06 00 60 4F E0 41 [14:32:18]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F1 08 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E1 02 00 35 04 06 00 60 4F E0 41 00 00 7C [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:32:18]RAPDU: 90 00 [14:32:18]wFMCommunicate OK [14:32:18]wFMCommunicate request_size=7 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 0D 02 02 02 42 28 [14:32:18]Write to MH i2c: E2 0A 00 79 00 80 0D 02 02 02 00 42 28 00 00 61 [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:32:18]RAPDU: 90 00 [14:32:18]wFMCommunicate OK [14:32:18]wFMCommunicate request_size=4 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 0D 03 02 [14:32:18]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 0B 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 0B 00 7A 00 00 37 DA A3 36 9F AF 1D C9 90 00 14 [14:32:18]RAPDU: 37 DA A3 36 9F AF 1D C9 90 00 [14:32:18]wFMCommunicate OK [14:32:18]SAM_PROTO_SignData done [14:32:18]FM_MakeSignedData done [14:32:18]CreateOFDProtocolMessage [14:32:18]wFMCommunicate request_size=4 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 11 00 00 [14:32:18]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 17 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [14:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:32:18]wFMCommunicate OK [14:32:18]CreateOFDProtocolMessage done [14:32:18]OFDSenderStorePacket 188754 [14:32:18]StoreOFDPacket docnum=188754 [14:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 93 10 04 01 88 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F1 08 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E1 02 00 35 04 06 00 60 4F E0 41 42 28 37 DA A3 36 9F AF 1D C9 [14:32:18]CheckFolder [14:32:18]dirname=/storage/ofd_packets [14:32:18]CheckFolder done [14:32:18]ProducePacketName [14:32:18]name=ofd_packets/00188754 [14:32:18]NVStorageSaveData ofd_packets/00188754 [14:32:18]File name is /storage/ofd_packets/00188754 [14:32:18]Write 298 bytes [14:32:18]NVStorageSaveData done [14:32:18]OFDSenderStorePacket done [14:32:18]KKMCreateOFDPacket done [14:32:18]NVStorageSaveData kkm_last_timestamp [14:32:18]File name is /storage/kkm_last_timestamp [14:32:18]Write 4 bytes [14:32:18]NVStorageSaveData done [14:32:18]ExternCall_PrintAddStr [14:32:18]wPrintStart [14:32:18]Write to MH i2c: 01 00 00 7C 00 7C [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: 01 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: 01 07 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [14:32:18]RasterBufferAndPrint [14:32:18]line Счет N : (1)210814 [14:32:18]line ИНН: 02508201610067 [14:32:18]line Контрольно-Кассовый Чек [14:32:18]line ПРОДАЖА [14:32:18]line ТРК (МРК, ГНК) : 51 [14:32:18]line Товар: 2710194210 [14:32:18]line ДТ-К-5 [14:32:18]line 13.130 * 76.20 [14:32:18]line = 1000.51 [14:32:18]line НДС 12% НСП 1% [14:32:18]line > о реализуемом товаре [14:32:18]line ОКРУГЛЕНИЕ: -0.51 [14:32:18]line ИТОГО: 1000.00 [14:32:18]line Внесено: 1000.00 [14:32:18]line СДАЧА: 0.00 [14:32:18]line НСП 1% : 8.85 [14:32:18]line НДС 12% : 106.25 [14:32:18]line Наличными: 1000.00 [14:32:18]line Безнал.: 0.00 [14:32:18]line Место: АЗС № 86 "Партнер Нефть" [14:32:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:32:18]line СНО: Общий режим [14:32:18]line Чек 212 23.10.2024 14:32 [14:32:18]line Смена: 462 ФФД: 1.0 [14:32:18]line ЗНМ: 0300000155 [14:32:18]line РНМ: 0000000000100030 [14:32:18]line Версия ККМ: 001 [14:32:18]line ФМ: 0000000000965340 [14:32:18]line ФД: 188754 [14:32:18]line ФПД: 105896181056040 [14:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143217&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188754&fm=105896181056040&tin=02508201610067®Number=0000000000100030&sum=100000 [14:32:18]written 0, free lines is 4095 [14:32:18]OFD Sender: Processing packet 188754 [packets to send 1062, broken 1061] [14:32:18]ProducePacketName [14:32:18]name=ofd_packets/00188754 [14:32:18]OFD Sender: To server: pG, [14:32:18]CommunicateWithHost lk.salyk.kg:30040 [14:32:18]ConnectInit lk.salyk.kg [14:32:19]Connected sock=9 [14:32:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 93 10 04 01 88 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F1 08 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E1 02 00 35 04 06 00 60 4F E0 41 42 28 37 DA A3 36 9F AF 1D C9 [14:32:19]Write to MH i2c: 01 00 00 A7 00 A7 [14:32:19]Write i2c OK [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: 01 [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: 01 07 00 [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 4F 0C 09 [14:32:19]RasterBufferAndPrint [14:32:19]line [14:32:19]line [14:32:19]line [14:32:19]line [14:32:19]line [14:32:19]written 0, free lines is 3155 [14:32:19]MH_Cut [14:32:19]Write to MH i2c: D1 01 00 AE 00 01 80 [14:32:19]Write i2c OK [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: D1 [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: D1 01 00 [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: D1 01 00 AE 00 00 7F [14:32:19]Write to MH i2c: 01 00 00 AF 00 AF [14:32:19]Write i2c OK [14:32:19]MH_I2C_Read... [14:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD D4 47 00 7F E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E1 02 00 F4 03 04 00 DC B2 18 67 B6 04 01 00 00 DE 66 F9 4D 51 26 35 77 [14:32:19]CommunicateWithHost err = 0 [14:32:19]CheckOFDResponse [14:32:19]1017 (14) - 77093643461234 [14:32:19]1041 (16) - 0000000000965340 [14:32:19]1040 (4) - 188754 [14:32:19]1012 (4) - 23.10.2024 08:25 [14:32:19]1206 (1) - 0 [14:32:19]OFD Sender: Remove packet 188754 [14:32:19]ProducePacketName [14:32:19]name=ofd_packets/00188754 [14:32:19]NVStorageDeleteData [14:32:19]OFD Sender: No OFD packet to send [14:32:20]*** Cut start [14:32:20]*** Partial cut [14:32:20]*** CUTSNS_PIN = 1 [14:32:20]*** CUTSNS_PIN = 0 [14:32:20]*** Brake cut motor [14:32:21]Read from MH i2c: 01 [14:32:21]MH_I2C_Read... [14:32:21]*** Stop cut motor [14:32:21]*** Cut end [14:32:21]Read from MH i2c: 01 07 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [14:32:21]process_action close_receipt done [14:32:21]requested_data is exist [14:32:21]produce_requested_data [14:32:21]requested_item fm.sn is exist - process it [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 11 00 00 [14:32:21]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 17 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [14:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:32:21]wFMCommunicate OK [14:32:21]requested_item fd.num is exist - process it [14:32:21]SAM_PROTO_GetFieldsCounters [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 13 00 00 [14:32:21]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 62 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [14:32:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:21]wFMCommunicate OK [14:32:21]SAM_PROTO_GetFieldsCounters done [14:32:21]requested_item shift.num is exist - process it [14:32:21]requested_item shift.opened is exist - process it [14:32:21]req_shift_opened [14:32:21]FM_GetShiftState [14:32:21]SAM_PROTO_GetShiftState [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 13 01 00 [14:32:21]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0E 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 17 [14:32:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:32:21]wFMCommunicate OK [14:32:21]SAM_PROTO_GetShiftState done [14:32:21]FM_GetShiftState done [14:32:21]req_shift_opened done [14:32:21]requested_item shift.open_date is exist - process it [14:32:21]req_shift_open_date [14:32:21]req_shift_open_date done [14:32:21]produce_requested_data done [14:32:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188754,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:32:21]process_action_free close_receipt [14:32:21]json_value_free [14:32:21]json_value_free done [14:32:21]process_json_proto returns [14:32:21]Send response to host [14:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188754,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:32:21]free response buf [14:32:21]execute_script done [14:32:21]execute_script returns [14:32:21]free content buf [14:32:21]Sock 10.Close socket [14:32:21]Sock 10.Thread stoped [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:51]accept exits with 7 [14:33:51]New connection [14:33:51]New thread 3067350372 created [14:33:51]Thread 3067207012 joined [14:33:51]Waiting for new connection... [14:33:51] Sock 7.Parse request [14:33:51]Sock 7.Check first char [14:33:51]Sock 7.First char is OK [14:33:51]request: POST /json_proto HTTP/1.0 [14:33:51]Method: POST [14:33:51]URL: /json_proto [14:33:51]Method is POST - this is cgi request [14:33:51]url: /json_proto [14:33:51]query_string will be loaded in cgi processing [14:33:51]execute_cgi json_proto POST (null) [14:33:51]execute_cgi path=json_proto method=POST [14:33:51]POST find Content-Length [14:33:51]Host: 172.17.42.131:8080 [14:33:51]Content-Length: 682 [14:33:51]Content-Type: application/json [14:33:51] [14:33:51]POST finish read [14:33:51]Found Content-Length = 682 [14:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:51]execute_script... [14:33:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:51]POST & json_proto [14:33:51]process_json_proto [14:33:51]json parsed OK: [14:33:51]protocol is kg_v1.0 [14:33:51]action value=close_receipt [14:33:51]process_action close_receipt [14:33:51]cmd_close_receipt [14:33:51]MH_GetDate [14:33:51]Write to MH i2c: F0 00 00 B3 00 A2 [14:33:51]Write i2c OK [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: F0 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: F0 09 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: F0 09 00 B3 00 00 4F 09 19 67 A0 18 CA 66 6B [14:33:51]GetLastDocTimeStamp 1729693937 [14:33:51]current date 1729694031 [14:33:51]FM_GetShiftState [14:33:51]SAM_PROTO_GetShiftState [14:33:51]wFMCommunicate request_size=4 [14:33:51]MH_SAM_APDU [14:33:51]CAPDU: 80 13 01 00 [14:33:51]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [14:33:51]Write i2c OK [14:33:51]MH_I2C_Read... [14:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:51]Read from MH i2c: E2 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 0E 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 19 [14:33:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:33:51]wFMCommunicate OK [14:33:51]SAM_PROTO_GetShiftState done [14:33:51]FM_GetShiftState done [14:33:51]opened in 1729642525 [14:33:51]opened+sec_in_day 1729728925 [14:33:51]quantity*price = 200043 [14:33:51]sum+1 = 200044 [14:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 213 23.10.2024 14:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188755 ФПД: 188717391667016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143351&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188755&fm=188717391667016&tin=02508201610067®Number=0000000000100030&sum=200000 [14:33:52]StoreToDocumentArchive [14:33:52]shift 462 fd 188755 [14:33:52]save to /storage/0462/doc_00188755 [14:33:52]save last doc name /storage/0462/doc_00188755 to /storage/kkm_last_doc_name [14:33:52]save OK [14:33:52]Clear old archive folders... [14:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:52]tlvbuf is 0110E830 [14:33:52]SAM_PROTO_ClearQueue [14:33:52]wFMCommunicate request_size=4 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 09 00 00 [14:33:52]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:33:52]RAPDU: 90 00 [14:33:52]wFMCommunicate OK [14:33:52]SAM_PROTO_ClearQueue done [14:33:52]KKMCreateOFDPacket [14:33:52]OFDProtocolAddRootSTLVToBuf [14:33:52]FM_MakeSignedData [14:33:52]FM_MakeSignedData [14:33:52]SAM_PROTO_SignData [14:33:52]wFMCommunicate request_size=4 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 0D 01 02 [14:33:52]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:33:52]RAPDU: 90 00 [14:33:52]wFMCommunicate OK [14:33:52]wFMCommunicate request_size=255 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 4F 09 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E1 02 00 35 04 06 00 AB [14:33:52]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 4F 09 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E1 02 00 35 04 06 00 AB 00 00 B3 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [14:33:52]RAPDU: 90 00 [14:33:52]wFMCommunicate OK [14:33:52]wFMCommunicate request_size=10 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 0D 02 02 05 A3 31 17 DF 48 [14:33:52]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 A3 31 17 DF 48 00 00 5A [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [14:33:52]RAPDU: 90 00 [14:33:52]wFMCommunicate OK [14:33:52]wFMCommunicate request_size=4 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 0D 03 02 [14:33:52]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 0B 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 0B 00 C5 00 00 59 A8 6A DC F4 7E 1F 16 90 00 2F [14:33:52]RAPDU: 59 A8 6A DC F4 7E 1F 16 90 00 [14:33:52]wFMCommunicate OK [14:33:52]SAM_PROTO_SignData done [14:33:52]FM_MakeSignedData done [14:33:52]CreateOFDProtocolMessage [14:33:52]wFMCommunicate request_size=4 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 11 00 00 [14:33:52]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 17 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [14:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:33:52]wFMCommunicate OK [14:33:52]CreateOFDProtocolMessage done [14:33:52]OFDSenderStorePacket 188755 [14:33:52]StoreOFDPacket docnum=188755 [14:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BB 75 07 01 9E 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 4F 09 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E1 02 00 35 04 06 00 AB A3 31 17 DF 48 59 A8 6A DC F4 7E 1F 16 [14:33:52]CheckFolder [14:33:52]dirname=/storage/ofd_packets [14:33:52]CheckFolder done [14:33:52]ProducePacketName [14:33:52]name=ofd_packets/00188755 [14:33:52]NVStorageSaveData ofd_packets/00188755 [14:33:52]File name is /storage/ofd_packets/00188755 [14:33:52]Write 301 bytes [14:33:52]NVStorageSaveData done [14:33:52]OFDSenderStorePacket done [14:33:52]KKMCreateOFDPacket done [14:33:52]NVStorageSaveData kkm_last_timestamp [14:33:52]File name is /storage/kkm_last_timestamp [14:33:52]Write 4 bytes [14:33:52]NVStorageSaveData done [14:33:52]ExternCall_PrintAddStr [14:33:52]wPrintStart [14:33:52]Write to MH i2c: 01 00 00 C7 00 C7 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: 01 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: 01 07 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [14:33:52]RasterBufferAndPrint [14:33:52]line Счет N : (1)210815 [14:33:52]line ИНН: 02508201610067 [14:33:52]line Контрольно-Кассовый Чек [14:33:52]line ПРОДАЖА [14:33:52]line ТРК (МРК, ГНК) : 23 [14:33:52]line Товар: 2710124500 [14:33:52]line Аи-95-К-3 [14:33:52]line 26.960 * 74.20 [14:33:52]line = 2000.43 [14:33:52]line НДС 12% НСП 1% [14:33:52]line > о реализуемом товаре [14:33:52]line ОКРУГЛЕНИЕ: -0.43 [14:33:52]line ИТОГО: 2000.00 [14:33:52]line Внесено: 2000.00 [14:33:52]line СДАЧА: 0.00 [14:33:52]line НСП 1% : 17.70 [14:33:52]line НДС 12% : 212.43 [14:33:52]line Наличными: 2000.00 [14:33:52]line Безнал.: 0.00 [14:33:52]line Место: АЗС № 86 "Партнер Нефть" [14:33:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:33:52]line СНО: Общий режим [14:33:52]line Чек 213 23.10.2024 14:33 [14:33:52]line Смена: 462 ФФД: 1.0 [14:33:52]line ЗНМ: 0300000155 [14:33:52]line РНМ: 0000000000100030 [14:33:52]line Версия ККМ: 001 [14:33:52]line ФМ: 0000000000965340 [14:33:52]line ФД: 188755 [14:33:52]line ФПД: 188717391667016 [14:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143351&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188755&fm=188717391667016&tin=02508201610067®Number=0000000000100030&sum=200000 [14:33:52]written 0, free lines is 4095 [14:33:52]OFD Sender: Processing packet 188755 [packets to send 1062, broken 1061] [14:33:52]ProducePacketName [14:33:52]name=ofd_packets/00188755 [14:33:52]OFD Sender: To server: pG, [14:33:52]CommunicateWithHost lk.salyk.kg:30040 [14:33:52]ConnectInit lk.salyk.kg [14:33:53]Connected sock=9 [14:33:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BB 75 07 01 9E 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 4F 09 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E1 02 00 35 04 06 00 AB A3 31 17 DF 48 59 A8 6A DC F4 7E 1F 16 [14:33:53]Write to MH i2c: 01 00 00 F2 00 F2 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: 01 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: 01 07 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 52 0C 57 [14:33:53]RasterBufferAndPrint [14:33:53]line [14:33:53]line [14:33:53]line [14:33:53]line [14:33:53]line [14:33:53]written 0, free lines is 3158 [14:33:53]MH_Cut [14:33:53]Write to MH i2c: D1 01 00 F9 00 01 CB [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: D1 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: D1 01 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: D1 01 00 F9 00 00 CA [14:33:53]Write to MH i2c: 01 00 00 FA 00 FA [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 19 E1 47 00 4A 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 36 35 33 34 30 10 04 04 00 53 E1 02 00 F4 03 04 00 3A B3 18 67 B6 04 01 00 00 67 F9 F2 B2 8D AD 07 C4 [14:33:53]CommunicateWithHost err = 0 [14:33:53]CheckOFDResponse [14:33:53]1017 (14) - 77093643461234 [14:33:53]1041 (16) - 0000000000965340 [14:33:53]1040 (4) - 188755 [14:33:53]1012 (4) - 23.10.2024 08:26 [14:33:53]1206 (1) - 0 [14:33:53]OFD Sender: Remove packet 188755 [14:33:53]ProducePacketName [14:33:53]name=ofd_packets/00188755 [14:33:53]NVStorageDeleteData [14:33:53]OFD Sender: No OFD packet to send [14:33:54]*** Cut start [14:33:54]*** Partial cut [14:33:54]*** CUTSNS_PIN = 1 [14:33:54]*** CUTSNS_PIN = 0 [14:33:54]*** Brake cut motor [14:33:55]Read from MH i2c: 01 [14:33:55]MH_I2C_Read... [14:33:55]*** Stop cut motor [14:33:55]*** Cut end [14:33:55]Read from MH i2c: 01 07 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [14:33:55]process_action close_receipt done [14:33:55]requested_data is exist [14:33:55]produce_requested_data [14:33:55]requested_item fm.sn is exist - process it [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 11 00 00 [14:33:55]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [14:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:33:55]wFMCommunicate OK [14:33:55]requested_item fd.num is exist - process it [14:33:55]SAM_PROTO_GetFieldsCounters [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 00 00 [14:33:55]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 62 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [14:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetFieldsCounters done [14:33:55]requested_item shift.num is exist - process it [14:33:55]requested_item shift.opened is exist - process it [14:33:55]req_shift_opened [14:33:55]FM_GetShiftState [14:33:55]SAM_PROTO_GetShiftState [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 01 00 [14:33:55]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 62 [14:33:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetShiftState done [14:33:55]FM_GetShiftState done [14:33:55]req_shift_opened done [14:33:55]requested_item shift.open_date is exist - process it [14:33:55]req_shift_open_date [14:33:55]req_shift_open_date done [14:33:55]produce_requested_data done [14:33:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188755,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:33:55]process_action_free close_receipt [14:33:55]json_value_free [14:33:55]json_value_free done [14:33:55]process_json_proto returns [14:33:55]Send response to host [14:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188755,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:33:55]free response buf [14:33:55]execute_script done [14:33:55]execute_script returns [14:33:55]free content buf [14:33:55]Sock 7.Close socket [14:33:55]Sock 7.Thread stoped [14:33:58]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:46]accept exits with 10 [14:34:46]New connection [14:34:46]New thread 3067207012 created [14:34:46]Thread 3067350372 joined [14:34:46]Waiting for new connection... [14:34:46] Sock 10.Parse request [14:34:46]Sock 10.Check first char [14:34:46]Sock 10.First char is OK [14:34:46]request: POST /json_proto HTTP/1.0 [14:34:46]Method: POST [14:34:46]URL: /json_proto [14:34:46]Method is POST - this is cgi request [14:34:46]url: /json_proto [14:34:46]query_string will be loaded in cgi processing [14:34:46]execute_cgi json_proto POST (null) [14:34:46]execute_cgi path=json_proto method=POST [14:34:46]POST find Content-Length [14:34:46]Host: 172.17.42.131:8080 [14:34:46]Content-Length: 677 [14:34:46]Content-Type: application/json [14:34:46] [14:34:46]POST finish read [14:34:46]Found Content-Length = 677 [14:34:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:46]execute_script... [14:34:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:46]POST & json_proto [14:34:46]process_json_proto [14:34:46]json parsed OK: [14:34:46]protocol is kg_v1.0 [14:34:46]action value=close_receipt [14:34:46]process_action close_receipt [14:34:46]cmd_close_receipt [14:34:46]MH_GetDate [14:34:46]Write to MH i2c: F0 00 00 FE 00 ED [14:34:46]Write i2c OK [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: F0 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: F0 09 00 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: F0 09 00 FE 00 00 87 09 19 67 A0 18 CA 66 EE [14:34:46]GetLastDocTimeStamp 1729694031 [14:34:46]current date 1729694087 [14:34:46]FM_GetShiftState [14:34:46]SAM_PROTO_GetShiftState [14:34:46]wFMCommunicate request_size=4 [14:34:46]MH_SAM_APDU [14:34:46]CAPDU: 80 13 01 00 [14:34:46]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [14:34:46]Write i2c OK [14:34:46]MH_I2C_Read... [14:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:46]Read from MH i2c: E2 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: E2 0E 00 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 64 [14:34:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:34:46]wFMCommunicate OK [14:34:46]SAM_PROTO_GetShiftState done [14:34:46]FM_GetShiftState done [14:34:46]opened in 1729642525 [14:34:46]opened+sec_in_day 1729728925 [14:34:46]quantity*price = 50041 [14:34:46]sum+1 = 50042 [14:34:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 214 23.10.2024 14:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188756 ФПД: 57789835355252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143447&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188756&fm=57789835355252&tin=02508201610067®Number=0000000000100030&sum=50000 [14:34:47]StoreToDocumentArchive [14:34:47]shift 462 fd 188756 [14:34:47]save to /storage/0462/doc_00188756 [14:34:47]save last doc name /storage/0462/doc_00188756 to /storage/kkm_last_doc_name [14:34:47]save OK [14:34:47]Clear old archive folders... [14:34:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:47]tlvbuf is 0115A7C0 [14:34:47]SAM_PROTO_ClearQueue [14:34:47]wFMCommunicate request_size=4 [14:34:47]MH_SAM_APDU [14:34:47]CAPDU: 80 09 00 00 [14:34:47]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [14:34:47]Write i2c OK [14:34:47]MH_I2C_Read... [14:34:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:47]Read from MH i2c: E2 [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: E2 03 00 [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:34:47]RAPDU: 90 00 [14:34:47]wFMCommunicate OK [14:34:47]SAM_PROTO_ClearQueue done [14:34:47]KKMCreateOFDPacket [14:34:47]OFDProtocolAddRootSTLVToBuf [14:34:47]FM_MakeSignedData [14:34:47]FM_MakeSignedData [14:34:47]SAM_PROTO_SignData [14:34:47]wFMCommunicate request_size=4 [14:34:47]MH_SAM_APDU [14:34:47]CAPDU: 80 0D 01 02 [14:34:47]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [14:34:47]Write i2c OK [14:34:47]MH_I2C_Read... [14:34:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:47]Read from MH i2c: E2 [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: E2 03 00 [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [14:34:47]RAPDU: 90 00 [14:34:47]wFMCommunicate OK [14:34:47]wFMCommunicate request_size=255 [14:34:47]MH_SAM_APDU [14:34:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 87 09 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E1 02 00 35 04 06 00 34 [14:34:47]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 87 09 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E1 02 00 35 04 06 00 34 00 00 1A [14:34:47]Write i2c OK [14:34:47]MH_I2C_Read... [14:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:48]Read from MH i2c: E2 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 03 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [14:34:48]RAPDU: 90 00 [14:34:48]wFMCommunicate OK [14:34:48]wFMCommunicate request_size=10 [14:34:48]MH_SAM_APDU [14:34:48]CAPDU: 80 0D 02 02 05 8F 3E 9B A4 74 [14:34:48]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 8F 3E 9B A4 74 00 00 14 [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:48]Read from MH i2c: E2 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 03 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [14:34:48]RAPDU: 90 00 [14:34:48]wFMCommunicate OK [14:34:48]wFMCommunicate request_size=4 [14:34:48]MH_SAM_APDU [14:34:48]CAPDU: 80 0D 03 02 [14:34:48]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:48]Read from MH i2c: E2 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 0B 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 0B 00 10 01 00 53 9B 47 43 43 D1 9A 08 90 00 BB [14:34:48]RAPDU: 53 9B 47 43 43 D1 9A 08 90 00 [14:34:48]wFMCommunicate OK [14:34:48]SAM_PROTO_SignData done [14:34:48]FM_MakeSignedData done [14:34:48]CreateOFDProtocolMessage [14:34:48]wFMCommunicate request_size=4 [14:34:48]MH_SAM_APDU [14:34:48]CAPDU: 80 11 00 00 [14:34:48]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:48]Read from MH i2c: E2 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 17 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [14:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:34:48]wFMCommunicate OK [14:34:48]CreateOFDProtocolMessage done [14:34:48]OFDSenderStorePacket 188756 [14:34:48]StoreOFDPacket docnum=188756 [14:34:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 50 2A 07 01 74 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 87 09 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E1 02 00 35 04 06 00 34 8F 3E 9B A4 74 53 9B 47 43 43 D1 9A 08 [14:34:48]CheckFolder [14:34:48]dirname=/storage/ofd_packets [14:34:48]CheckFolder done [14:34:48]ProducePacketName [14:34:48]name=ofd_packets/00188756 [14:34:48]NVStorageSaveData ofd_packets/00188756 [14:34:48]File name is /storage/ofd_packets/00188756 [14:34:48]Write 301 bytes [14:34:48]NVStorageSaveData done [14:34:48]OFDSenderStorePacket done [14:34:48]KKMCreateOFDPacket done [14:34:48]NVStorageSaveData kkm_last_timestamp [14:34:48]File name is /storage/kkm_last_timestamp [14:34:48]Write 4 bytes [14:34:48]NVStorageSaveData done [14:34:48]ExternCall_PrintAddStr [14:34:48]wPrintStart [14:34:48]Write to MH i2c: 01 00 00 12 01 13 [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: 01 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: 01 07 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [14:34:48]RasterBufferAndPrint [14:34:48]line Счет N : (1)210816 [14:34:48]line ИНН: 02508201610067 [14:34:48]line Контрольно-Кассовый Чек [14:34:48]line ПРОДАЖА [14:34:48]line ТРК (МРК, ГНК) : 12 [14:34:48]line Товар: 2710124130 [14:34:48]line Аи-92-К-3 [14:34:48]line 7.480 * 66.90 [14:34:48]line = 500.41 [14:34:48]line НДС 12% НСП 1% [14:34:48]line > о реализуемом товаре [14:34:48]line ОКРУГЛЕНИЕ: -0.41 [14:34:48]line ИТОГО: 500.00 [14:34:48]line Внесено: 500.00 [14:34:48]line СДАЧА: 0.00 [14:34:48]line НСП 1% : 4.43 [14:34:48]line НДС 12% : 53.14 [14:34:48]line Наличными: 500.00 [14:34:48]line Безнал.: 0.00 [14:34:48]line Место: АЗС № 86 "Партнер Нефть" [14:34:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:34:48]line СНО: Общий режим [14:34:48]line Чек 214 23.10.2024 14:34 [14:34:48]line Смена: 462 ФФД: 1.0 [14:34:48]line ЗНМ: 0300000155 [14:34:48]line РНМ: 0000000000100030 [14:34:48]line Версия ККМ: 001 [14:34:48]line ФМ: 0000000000965340 [14:34:48]line ФД: 188756 [14:34:48]line ФПД: 57789835355252 [14:34:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143447&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188756&fm=57789835355252&tin=02508201610067®Number=0000000000100030&sum=50000 [14:34:48]written 0, free lines is 4095 [14:34:48]OFD Sender: Processing packet 188756 [packets to send 1062, broken 1061] [14:34:48]ProducePacketName [14:34:48]name=ofd_packets/00188756 [14:34:48]OFD Sender: To server: pG, [14:34:48]CommunicateWithHost lk.salyk.kg:30040 [14:34:48]ConnectInit lk.salyk.kg [14:34:48]Connected sock=9 [14:34:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 50 2A 07 01 74 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 87 09 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E1 02 00 35 04 06 00 34 8F 3E 9B A4 74 53 9B 47 43 43 D1 9A 08 [14:34:48]Write to MH i2c: 01 00 00 3D 01 3E [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: 01 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: 01 07 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 57 0C A8 [14:34:48]RasterBufferAndPrint [14:34:48]line [14:34:48]line [14:34:48]line [14:34:48]line [14:34:48]line [14:34:48]written 0, free lines is 3162 [14:34:48]MH_Cut [14:34:48]Write to MH i2c: D1 01 00 44 01 01 17 [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: D1 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: D1 01 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: D1 01 00 44 01 00 16 [14:34:48]Write to MH i2c: 01 00 00 45 01 46 [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8A 63 47 00 94 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E1 02 00 F4 03 04 00 71 B3 18 67 B6 04 01 00 00 9D 79 04 E0 4A 8E BC AF [14:34:48]CommunicateWithHost err = 0 [14:34:48]CheckOFDResponse [14:34:48]1017 (14) - 77093643461234 [14:34:48]1041 (16) - 0000000000965340 [14:34:48]1040 (4) - 188756 [14:34:48]1012 (4) - 23.10.2024 08:27 [14:34:48]1206 (1) - 0 [14:34:48]OFD Sender: Remove packet 188756 [14:34:48]ProducePacketName [14:34:48]name=ofd_packets/00188756 [14:34:48]NVStorageDeleteData [14:34:49]OFD Sender: No OFD packet to send [14:34:49]*** Cut start [14:34:49]*** Partial cut [14:34:49]*** CUTSNS_PIN = 1 [14:34:49]*** CUTSNS_PIN = 0 [14:34:50]*** Brake cut motor [14:34:50]Read from MH i2c: 01 [14:34:50]MH_I2C_Read... [14:34:50]*** Stop cut motor [14:34:50]*** Cut end [14:34:50]Read from MH i2c: 01 07 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [14:34:50]process_action close_receipt done [14:34:50]requested_data is exist [14:34:50]produce_requested_data [14:34:50]requested_item fm.sn is exist - process it [14:34:50]wFMCommunicate request_size=4 [14:34:50]MH_SAM_APDU [14:34:50]CAPDU: 80 11 00 00 [14:34:50]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:50]Read from MH i2c: E2 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 17 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [14:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:34:50]wFMCommunicate OK [14:34:50]requested_item fd.num is exist - process it [14:34:50]SAM_PROTO_GetFieldsCounters [14:34:50]wFMCommunicate request_size=4 [14:34:50]MH_SAM_APDU [14:34:50]CAPDU: 80 13 00 00 [14:34:50]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:50]Read from MH i2c: E2 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 62 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [14:34:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:50]wFMCommunicate OK [14:34:50]SAM_PROTO_GetFieldsCounters done [14:34:50]requested_item shift.num is exist - process it [14:34:50]requested_item shift.opened is exist - process it [14:34:50]req_shift_opened [14:34:50]FM_GetShiftState [14:34:50]SAM_PROTO_GetShiftState [14:34:50]wFMCommunicate request_size=4 [14:34:50]MH_SAM_APDU [14:34:50]CAPDU: 80 13 01 00 [14:34:50]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:50]Read from MH i2c: E2 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 0E 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AE [14:34:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:34:50]wFMCommunicate OK [14:34:50]SAM_PROTO_GetShiftState done [14:34:50]FM_GetShiftState done [14:34:50]req_shift_opened done [14:34:50]requested_item shift.open_date is exist - process it [14:34:50]req_shift_open_date [14:34:50]req_shift_open_date done [14:34:50]produce_requested_data done [14:34:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188756,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:34:50]process_action_free close_receipt [14:34:50]json_value_free [14:34:50]json_value_free done [14:34:50]process_json_proto returns [14:34:50]Send response to host [14:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188756,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:34:50]free response buf [14:34:50]execute_script done [14:34:50]execute_script returns [14:34:50]free content buf [14:34:50]Sock 10.Close socket [14:34:50]Sock 10.Thread stoped [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:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:48]accept exits with 7 [14:38:48]New connection [14:38:48]New thread 3067350372 created [14:38:48]Thread 3067207012 joined [14:38:48]Waiting for new connection... [14:38:48] Sock 7.Parse request [14:38:48]Sock 7.Check first char [14:38:48]Sock 7.First char is OK [14:38:48]request: POST /json_proto HTTP/1.0 [14:38:48]Method: POST [14:38:48]URL: /json_proto [14:38:48]Method is POST - this is cgi request [14:38:48]url: /json_proto [14:38:48]query_string will be loaded in cgi processing [14:38:48]execute_cgi json_proto POST (null) [14:38:48]execute_cgi path=json_proto method=POST [14:38:48]POST find Content-Length [14:38:48]Host: 172.17.42.131:8080 [14:38:48]Content-Length: 754 [14:38:48]Content-Type: application/json [14:38:48] [14:38:48]POST finish read [14:38:48]Found Content-Length = 754 [14:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 17.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069829", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:48]execute_script... [14:38:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 17.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069829", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:48]POST & json_proto [14:38:48]process_json_proto [14:38:48]json parsed OK: [14:38:48]protocol is kg_v1.0 [14:38:48]action value=close_receipt [14:38:48]process_action close_receipt [14:38:48]cmd_close_receipt [14:38:48]MH_GetDate [14:38:48]Write to MH i2c: F0 00 00 49 01 39 [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 49 01 00 79 0A 19 67 A0 18 CA 66 2D [14:38:48]GetLastDocTimeStamp 1729694087 [14:38:48]current date 1729694329 [14:38:48]FM_GetShiftState [14:38:48]SAM_PROTO_GetShiftState [14:38:48]wFMCommunicate request_size=4 [14:38:48]MH_SAM_APDU [14:38:48]CAPDU: 80 13 01 00 [14:38:48]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:48]Read from MH i2c: E2 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B0 [14:38:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:38:48]wFMCommunicate OK [14:38:48]SAM_PROTO_GetShiftState done [14:38:48]FM_GetShiftState done [14:38:48]opened in 1729642525 [14:38:48]opened+sec_in_day 1729728925 [14:38:48]quantity*price = 0 [14:38:48]sum+1 = 1 [14:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 215 23.10.2024 14:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30069829 ФМ: 0000000000965340 ФД: 188757 ФПД: 173176665372493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143849&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188757&fm=173176665372493&tin=02508201610067®Number=0000000000100030&sum=0 [14:38:49]StoreToDocumentArchive [14:38:49]shift 462 fd 188757 [14:38:49]save to /storage/0462/doc_00188757 [14:38:49]save last doc name /storage/0462/doc_00188757 to /storage/kkm_last_doc_name [14:38:49]save OK [14:38:49]Clear old archive folders... [14:38:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:49]tlvbuf is 0112D140 [14:38:49]SAM_PROTO_ClearQueue [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 09 00 00 [14:38:49]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]SAM_PROTO_ClearQueue done [14:38:50]KKMCreateOFDPacket [14:38:50]OFDProtocolAddRootSTLVToBuf [14:38:50]FM_MakeSignedData [14:38:50]FM_MakeSignedData [14:38:50]SAM_PROTO_SignData [14:38:50]wFMCommunicate request_size=4 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 01 02 [14:38:50]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]wFMCommunicate request_size=255 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 79 0A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E1 02 00 35 04 06 00 9D [14:38:50]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 79 0A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E1 02 00 35 04 06 00 9D 00 00 E8 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]wFMCommunicate request_size=10 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 02 02 05 80 D5 9F 77 4D [14:38:50]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 80 D5 9F 77 4D 00 00 97 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]wFMCommunicate request_size=4 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 03 02 [14:38:50]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 0B 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 0B 00 5B 01 00 B4 4F 2F 9E CA 27 C1 5B 90 00 B5 [14:38:50]RAPDU: B4 4F 2F 9E CA 27 C1 5B 90 00 [14:38:50]wFMCommunicate OK [14:38:50]SAM_PROTO_SignData done [14:38:50]FM_MakeSignedData done [14:38:50]CreateOFDProtocolMessage [14:38:50]wFMCommunicate request_size=4 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 11 00 00 [14:38:50]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:50]OFD Sender: No OFD packet to send [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 17 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [14:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:38:50]wFMCommunicate OK [14:38:50]CreateOFDProtocolMessage done [14:38:50]OFDSenderStorePacket 188757 [14:38:50]StoreOFDPacket docnum=188757 [14:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B7 F8 07 01 E2 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 79 0A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E1 02 00 35 04 06 00 9D 80 D5 9F 77 4D B4 4F 2F 9E CA 27 C1 5B [14:38:50]CheckFolder [14:38:50]dirname=/storage/ofd_packets [14:38:50]CheckFolder done [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00188757 [14:38:50]NVStorageSaveData ofd_packets/00188757 [14:38:50]File name is /storage/ofd_packets/00188757 [14:38:50]Write 301 bytes [14:38:50]NVStorageSaveData done [14:38:50]OFDSenderStorePacket done [14:38:50]KKMCreateOFDPacket done [14:38:50]NVStorageSaveData kkm_last_timestamp [14:38:50]File name is /storage/kkm_last_timestamp [14:38:50]Write 4 bytes [14:38:50]NVStorageSaveData done [14:38:50]ExternCall_PrintAddStr [14:38:50]wPrintStart [14:38:50]Write to MH i2c: 01 00 00 5D 01 5E [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [14:38:50]RasterBufferAndPrint [14:38:50]line Счет N : (1)210817 [14:38:50]line ИНН: 02508201610067 [14:38:50]line Контрольно-Кассовый Чек [14:38:50]line ПРОДАЖА [14:38:50]line ТРК (МРК, ГНК) : 42 [14:38:50]line Товар: 2710124130 [14:38:50]line Аи-92-К-3 [14:38:50]line 17.000 * 0.00 [14:38:50]line = 0.00 [14:38:50]line НДС 12% НСП 1% [14:38:50]line > о реализуемом товаре [14:38:50]line ИТОГО: 0.00 [14:38:50]line НСП 1% : 0.00 [14:38:50]line НДС 12% : 0.00 [14:38:50]line Наличными: 0.00 [14:38:50]line Безнал.: 0.00 [14:38:50]line Место: АЗС № 86 "Партнер Нефть" [14:38:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:38:50]line СНО: Общий режим [14:38:50]line Чек 215 23.10.2024 14:38 [14:38:50]line Смена: 462 ФФД: 1.0 [14:38:50]line ЗНМ: 0300000155 [14:38:50]line РНМ: 0000000000100030 [14:38:50]line Версия ККМ: 001 [14:38:50]line Талоны: ТК ГПНА Online [14:38:50]line 30069829 [14:38:50]line ФМ: 0000000000965340 [14:38:50]line ФД: 188757 [14:38:50]line ФПД: 173176665372493 [14:38:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143849&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188757&fm=173176665372493&tin=02508201610067®Number=0000000000100030&sum=0 [14:38:50]written 0, free lines is 4095 [14:38:50]OFD Sender: Processing packet 188757 [packets to send 1062, broken 1061] [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00188757 [14:38:50]OFD Sender: To server: pG, [14:38:50]CommunicateWithHost lk.salyk.kg:30040 [14:38:50]ConnectInit lk.salyk.kg [14:38:50]Connected sock=10 [14:38:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B7 F8 07 01 E2 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 79 0A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E1 02 00 35 04 06 00 9D 80 D5 9F 77 4D B4 4F 2F 9E CA 27 C1 5B [14:38:50]Write to MH i2c: 01 00 00 87 01 88 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 68 0C 03 [14:38:50]RasterBufferAndPrint [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]written 0, free lines is 3182 [14:38:50]MH_Cut [14:38:50]Write to MH i2c: D1 01 00 8E 01 01 61 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 01 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 01 00 8E 01 00 60 [14:38:50]Write to MH i2c: 01 00 00 8F 01 90 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 29 2D 47 00 9C 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E1 02 00 F4 03 04 00 63 B4 18 67 B6 04 01 00 00 91 E4 AD 10 EB 11 2C 45 [14:38:51]CommunicateWithHost err = 0 [14:38:51]CheckOFDResponse [14:38:51]1017 (14) - 77093643461234 [14:38:51]1041 (16) - 0000000000965340 [14:38:51]1040 (4) - 188757 [14:38:51]1012 (4) - 23.10.2024 08:31 [14:38:51]1206 (1) - 0 [14:38:51]OFD Sender: Remove packet 188757 [14:38:51]ProducePacketName [14:38:51]name=ofd_packets/00188757 [14:38:51]NVStorageDeleteData [14:38:51]OFD Sender: No OFD packet to send [14:38:52]*** Cut start [14:38:52]*** Partial cut [14:38:52]*** CUTSNS_PIN = 1 [14:38:52]*** CUTSNS_PIN = 0 [14:38:52]*** Brake cut motor [14:38:52]Read from MH i2c: 01 [14:38:52]MH_I2C_Read... [14:38:52]*** Stop cut motor [14:38:52]*** Cut end [14:38:52]Read from MH i2c: 01 07 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [14:38:52]process_action close_receipt done [14:38:52]requested_data is exist [14:38:52]produce_requested_data [14:38:52]requested_item fm.sn is exist - process it [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 11 00 00 [14:38:52]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [14:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:38:52]wFMCommunicate OK [14:38:52]requested_item fd.num is exist - process it [14:38:52]SAM_PROTO_GetFieldsCounters [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 00 00 [14:38:52]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:53]Read from MH i2c: E2 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 62 00 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [14:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:53]wFMCommunicate OK [14:38:53]SAM_PROTO_GetFieldsCounters done [14:38:53]requested_item shift.num is exist - process it [14:38:53]requested_item shift.opened is exist - process it [14:38:53]req_shift_opened [14:38:53]FM_GetShiftState [14:38:53]SAM_PROTO_GetShiftState [14:38:53]wFMCommunicate request_size=4 [14:38:53]MH_SAM_APDU [14:38:53]CAPDU: 80 13 01 00 [14:38:53]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [14:38:53]Write i2c OK [14:38:53]MH_I2C_Read... [14:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:53]Read from MH i2c: E2 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 0E 00 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F8 [14:38:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:38:53]wFMCommunicate OK [14:38:53]SAM_PROTO_GetShiftState done [14:38:53]FM_GetShiftState done [14:38:53]req_shift_opened done [14:38:53]requested_item shift.open_date is exist - process it [14:38:53]req_shift_open_date [14:38:53]req_shift_open_date done [14:38:53]produce_requested_data done [14:38:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188757,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:38:53]process_action_free close_receipt [14:38:53]json_value_free [14:38:53]json_value_free done [14:38:53]process_json_proto returns [14:38:53]Send response to host [14:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188757,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:38:53]free response buf [14:38:53]execute_script done [14:38:53]execute_script returns [14:38:53]free content buf [14:38:53]Sock 7.Close socket [14:38:53]Sock 7.Thread stoped [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:43]accept exits with 9 [14:40:43]New connection [14:40:43]New thread 3067207012 created [14:40:43]Thread 3067350372 joined [14:40:43]Waiting for new connection... [14:40:43] Sock 9.Parse request [14:40:43]Sock 9.Check first char [14:40:43]Sock 9.First char is OK [14:40:43]request: POST /json_proto HTTP/1.0 [14:40:43]Method: POST [14:40:43]URL: /json_proto [14:40:43]Method is POST - this is cgi request [14:40:43]url: /json_proto [14:40:43]query_string will be loaded in cgi processing [14:40:43]execute_cgi json_proto POST (null) [14:40:43]execute_cgi path=json_proto method=POST [14:40:43]POST find Content-Length [14:40:43]Host: 172.17.42.131:8080 [14:40:43]Content-Length: 688 [14:40:43]Content-Type: application/json [14:40:43] [14:40:43]POST finish read [14:40:43]Found Content-Length = 688 [14:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 41.460, "sum" : 3200.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:43]execute_script... [14:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 41.460, "sum" : 3200.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:43]POST & json_proto [14:40:43]process_json_proto [14:40:43]json parsed OK: [14:40:43]protocol is kg_v1.0 [14:40:43]action value=close_receipt [14:40:43]process_action close_receipt [14:40:43]cmd_close_receipt [14:40:43]MH_GetDate [14:40:43]Write to MH i2c: F0 00 00 93 01 83 [14:40:43]Write i2c OK [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: F0 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: F0 09 00 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: F0 09 00 93 01 00 EC 0A 19 67 A0 18 CA 66 EA [14:40:43]GetLastDocTimeStamp 1729694329 [14:40:43]current date 1729694444 [14:40:43]FM_GetShiftState [14:40:43]SAM_PROTO_GetShiftState [14:40:43]wFMCommunicate request_size=4 [14:40:43]MH_SAM_APDU [14:40:43]CAPDU: 80 13 01 00 [14:40:43]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [14:40:43]Write i2c OK [14:40:43]MH_I2C_Read... [14:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:43]Read from MH i2c: E2 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 0E 00 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FA [14:40:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:40:43]wFMCommunicate OK [14:40:43]SAM_PROTO_GetShiftState done [14:40:43]FM_GetShiftState done [14:40:43]opened in 1729642525 [14:40:43]opened+sec_in_day 1729728925 [14:40:43]quantity*price = 320071 [14:40:43]sum+1 = 320072 [14:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 3200.00 Внесено: 3200.00 СДАЧА: 0.00 НСП 1% : 28.32 НДС 12% : 339.90 Наличными: 3200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 216 23.10.2024 14:40 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188758 ФПД: 28189200415181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144044&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188758&fm=28189200415181&tin=02508201610067®Number=0000000000100030&sum=320000 [14:40:44]StoreToDocumentArchive [14:40:44]shift 462 fd 188758 [14:40:44]save to /storage/0462/doc_00188758 [14:40:44]save last doc name /storage/0462/doc_00188758 to /storage/kkm_last_doc_name [14:40:44]save OK [14:40:44]Clear old archive folders... [14:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:40:44]tlvbuf is 0112ED50 [14:40:44]SAM_PROTO_ClearQueue [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 09 00 00 [14:40:44]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [14:40:44]RAPDU: 90 00 [14:40:44]wFMCommunicate OK [14:40:44]SAM_PROTO_ClearQueue done [14:40:44]KKMCreateOFDPacket [14:40:44]OFDProtocolAddRootSTLVToBuf [14:40:44]FM_MakeSignedData [14:40:44]FM_MakeSignedData [14:40:44]SAM_PROTO_SignData [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 0D 01 02 [14:40:44]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [14:40:44]RAPDU: 90 00 [14:40:44]wFMCommunicate OK [14:40:44]wFMCommunicate request_size=255 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EC 0A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E1 02 [14:40:44]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EC 0A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E1 02 00 00 26 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [14:40:45]RAPDU: 90 00 [14:40:45]wFMCommunicate OK [14:40:45]wFMCommunicate request_size=16 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 19 A3 4F 46 F9 CD [14:40:45]Write to MH i2c: E2 13 00 A4 01 80 0D 02 02 0B 00 00 35 04 06 00 19 A3 4F 46 F9 CD 00 00 8B [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [14:40:45]RAPDU: 90 00 [14:40:45]wFMCommunicate OK [14:40:45]wFMCommunicate request_size=4 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 0D 03 02 [14:40:45]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 0B 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 0B 00 A5 01 00 82 14 49 51 20 FE 61 A4 90 00 75 [14:40:45]RAPDU: 82 14 49 51 20 FE 61 A4 90 00 [14:40:45]wFMCommunicate OK [14:40:45]SAM_PROTO_SignData done [14:40:45]FM_MakeSignedData done [14:40:45]CreateOFDProtocolMessage [14:40:45]wFMCommunicate request_size=4 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 11 00 00 [14:40:45]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 17 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [14:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:40:45]wFMCommunicate OK [14:40:45]CreateOFDProtocolMessage done [14:40:45]OFDSenderStorePacket 188758 [14:40:45]StoreOFDPacket docnum=188758 [14:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 37 8F 0D 01 E8 D5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EC 0A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E1 02 00 35 04 06 00 19 A3 4F 46 F9 CD 82 14 49 51 20 FE 61 A4 [14:40:45]CheckFolder [14:40:45]dirname=/storage/ofd_packets [14:40:45]CheckFolder done [14:40:45]ProducePacketName [14:40:45]name=ofd_packets/00188758 [14:40:45]NVStorageSaveData ofd_packets/00188758 [14:40:45]File name is /storage/ofd_packets/00188758 [14:40:45]Write 307 bytes [14:40:45]NVStorageSaveData done [14:40:45]OFDSenderStorePacket done [14:40:45]KKMCreateOFDPacket done [14:40:45]NVStorageSaveData kkm_last_timestamp [14:40:45]File name is /storage/kkm_last_timestamp [14:40:45]Write 4 bytes [14:40:45]NVStorageSaveData done [14:40:45]ExternCall_PrintAddStr [14:40:45]wPrintStart [14:40:45]Write to MH i2c: 01 00 00 A7 01 A8 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [14:40:45]RasterBufferAndPrint [14:40:45]line Счет N : (1)210818 [14:40:45]line ИНН: 02508201610067 [14:40:45]line Контрольно-Кассовый Чек [14:40:45]line ПРОДАЖА [14:40:45]line ТРК (МРК, ГНК) : 21 [14:40:45]line Товар: 2710194210 [14:40:45]line D-ENERGY ДТ-К-5 [14:40:45]line 41.460 * 77.20 [14:40:45]line = 3200.71 [14:40:45]line НДС 12% НСП 1% [14:40:45]line > о реализуемом товаре [14:40:45]line ОКРУГЛЕНИЕ: -0.71 [14:40:45]line ИТОГО: 3200.00 [14:40:45]line Внесено: 3200.00 [14:40:45]line СДАЧА: 0.00 [14:40:45]line НСП 1% : 28.32 [14:40:45]line НДС 12% : 339.90 [14:40:45]line Наличными: 3200.00 [14:40:45]line Безнал.: 0.00 [14:40:45]line Место: АЗС № 86 "Партнер Нефть" [14:40:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:40:45]line СНО: Общий режим [14:40:45]line Чек 216 23.10.2024 14:40 [14:40:45]line Смена: 462 ФФД: 1.0 [14:40:45]line ЗНМ: 0300000155 [14:40:45]line РНМ: 0000000000100030 [14:40:45]line Версия ККМ: 001 [14:40:45]line ФМ: 0000000000965340 [14:40:45]line ФД: 188758 [14:40:45]line ФПД: 28189200415181 [14:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144044&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188758&fm=28189200415181&tin=02508201610067®Number=0000000000100030&sum=320000 [14:40:45]written 0, free lines is 4095 [14:40:45]OFD Sender: Processing packet 188758 [packets to send 1062, broken 1061] [14:40:45]ProducePacketName [14:40:45]name=ofd_packets/00188758 [14:40:45]OFD Sender: To server: pG, [14:40:45]CommunicateWithHost lk.salyk.kg:30040 [14:40:45]ConnectInit lk.salyk.kg [14:40:45]Connected sock=7 [14:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 37 8F 0D 01 E8 D5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EC 0A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E1 02 00 35 04 06 00 19 A3 4F 46 F9 CD 82 14 49 51 20 FE 61 A4 [14:40:45]Write to MH i2c: 01 00 00 D2 01 D3 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 5A 0C 40 [14:40:45]RasterBufferAndPrint [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]written 0, free lines is 3166 [14:40:45]MH_Cut [14:40:45]Write to MH i2c: D1 01 00 D9 01 01 AC [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 01 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 01 00 D9 01 00 AB [14:40:45]Write to MH i2c: 01 00 00 DA 01 DB [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7C CA 47 00 B5 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 36 35 33 34 30 10 04 04 00 56 E1 02 00 F4 03 04 00 D6 B4 18 67 B6 04 01 00 00 E4 14 7E 97 58 1B 46 EC [14:40:46]CommunicateWithHost err = 0 [14:40:46]CheckOFDResponse [14:40:46]1017 (14) - 77093643461234 [14:40:46]1041 (16) - 0000000000965340 [14:40:46]1040 (4) - 188758 [14:40:46]1012 (4) - 23.10.2024 08:33 [14:40:46]1206 (1) - 0 [14:40:46]OFD Sender: Remove packet 188758 [14:40:46]ProducePacketName [14:40:46]name=ofd_packets/00188758 [14:40:46]NVStorageDeleteData [14:40:46]OFD Sender: No OFD packet to send [14:40:47]*** Cut start [14:40:47]*** Partial cut [14:40:47]*** CUTSNS_PIN = 1 [14:40:47]*** CUTSNS_PIN = 0 [14:40:47]*** Brake cut motor [14:40:47]Read from MH i2c: 01 [14:40:47]MH_I2C_Read... [14:40:47]*** Stop cut motor [14:40:47]*** Cut end [14:40:47]Read from MH i2c: 01 07 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [14:40:47]process_action close_receipt done [14:40:47]requested_data is exist [14:40:47]produce_requested_data [14:40:47]requested_item fm.sn is exist - process it [14:40:47]wFMCommunicate request_size=4 [14:40:47]MH_SAM_APDU [14:40:47]CAPDU: 80 11 00 00 [14:40:47]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [14:40:47]Write i2c OK [14:40:47]MH_I2C_Read... [14:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:47]Read from MH i2c: E2 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 17 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [14:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:40:47]wFMCommunicate OK [14:40:47]requested_item fd.num is exist - process it [14:40:47]SAM_PROTO_GetFieldsCounters [14:40:47]wFMCommunicate request_size=4 [14:40:47]MH_SAM_APDU [14:40:47]CAPDU: 80 13 00 00 [14:40:47]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [14:40:47]Write i2c OK [14:40:47]MH_I2C_Read... [14:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:47]Read from MH i2c: E2 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 62 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [14:40:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:48]wFMCommunicate OK [14:40:48]SAM_PROTO_GetFieldsCounters done [14:40:48]requested_item shift.num is exist - process it [14:40:48]requested_item shift.opened is exist - process it [14:40:48]req_shift_opened [14:40:48]FM_GetShiftState [14:40:48]SAM_PROTO_GetShiftState [14:40:48]wFMCommunicate request_size=4 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 13 01 00 [14:40:48]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 0E 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 43 [14:40:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:40:48]wFMCommunicate OK [14:40:48]SAM_PROTO_GetShiftState done [14:40:48]FM_GetShiftState done [14:40:48]req_shift_opened done [14:40:48]requested_item shift.open_date is exist - process it [14:40:48]req_shift_open_date [14:40:48]req_shift_open_date done [14:40:48]produce_requested_data done [14:40:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188758,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:40:48]process_action_free close_receipt [14:40:48]json_value_free [14:40:48]json_value_free done [14:40:48]process_json_proto returns [14:40:48]Send response to host [14:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188758,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:40:48]free response buf [14:40:48]execute_script done [14:40:48]execute_script returns [14:40:48]free content buf [14:40:48]Sock 9.Close socket [14:40:48]Sock 9.Thread stoped [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:20]accept exits with 10 [14:41:20]New connection [14:41:20]New thread 3067350372 created [14:41:20]Thread 3067207012 joined [14:41:20]Waiting for new connection... [14:41:20] Sock 10.Parse request [14:41:20]Sock 10.Check first char [14:41:20]Sock 10.First char is OK [14:41:20]request: POST /json_proto HTTP/1.0 [14:41:20]Method: POST [14:41:20]URL: /json_proto [14:41:20]Method is POST - this is cgi request [14:41:20]url: /json_proto [14:41:20]query_string will be loaded in cgi processing [14:41:20]execute_cgi json_proto POST (null) [14:41:20]execute_cgi path=json_proto method=POST [14:41:20]POST find Content-Length [14:41:20]Host: 172.17.42.131:8080 [14:41:20]Content-Length: 797 [14:41:20]Content-Type: application/json [14:41:20] [14:41:20]POST finish read [14:41:20]Found Content-Length = 797 [14:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4339723", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:20]execute_script... [14:41:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4339723", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:20]POST & json_proto [14:41:20]process_json_proto [14:41:20]json parsed OK: [14:41:20]protocol is kg_v1.0 [14:41:20]action value=close_receipt [14:41:20]process_action close_receipt [14:41:20]cmd_close_receipt [14:41:20]MH_GetDate [14:41:20]Write to MH i2c: F0 00 00 DE 01 CE [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: F0 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: F0 09 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: F0 09 00 DE 01 00 11 0B 19 67 A0 18 CA 66 5B [14:41:20]GetLastDocTimeStamp 1729694444 [14:41:20]current date 1729694481 [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 DF 01 80 13 01 00 00 00 00 00 5D [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 DF 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 45 [14:41:20]RAPDU: 09 00 01 1D 40 18 67 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]opened in 1729642525 [14:41:20]opened+sec_in_day 1729728925 [14:41:20]quantity*price = 0 [14:41:20]sum+1 = 1 [14:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 217 23.10.2024 14:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4339723 ФМ: 0000000000965340 ФД: 188759 ФПД: 133682971855738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144121&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188759&fm=133682971855738&tin=02508201610067®Number=0000000000100030&sum=0 [14:41:21]StoreToDocumentArchive [14:41:21]shift 462 fd 188759 [14:41:21]save to /storage/0462/doc_00188759 [14:41:21]save last doc name /storage/0462/doc_00188759 to /storage/kkm_last_doc_name [14:41:21]save OK [14:41:21]Clear old archive folders... [14:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:21]tlvbuf is 01109310 [14:41:21]SAM_PROTO_ClearQueue [14:41:21]wFMCommunicate request_size=4 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 09 00 00 [14:41:21]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [14:41:21]RAPDU: 90 00 [14:41:21]wFMCommunicate OK [14:41:21]SAM_PROTO_ClearQueue done [14:41:21]KKMCreateOFDPacket [14:41:21]OFDProtocolAddRootSTLVToBuf [14:41:21]FM_MakeSignedData [14:41:21]FM_MakeSignedData [14:41:21]SAM_PROTO_SignData [14:41:21]wFMCommunicate request_size=4 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 0D 01 02 [14:41:21]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [14:41:21]RAPDU: 90 00 [14:41:21]wFMCommunicate OK [14:41:21]wFMCommunicate request_size=255 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 11 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E1 02 00 35 04 06 00 79 95 7E 0C [14:41:21]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 11 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E1 02 00 35 04 06 00 79 95 7E 0C 00 00 2E [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]OFD Sender: No OFD packet to send [14:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [14:41:21]RAPDU: 90 00 [14:41:21]wFMCommunicate OK [14:41:21]wFMCommunicate request_size=7 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 0D 02 02 02 CB 7A [14:41:21]Write to MH i2c: E2 0A 00 EF 01 80 0D 02 02 02 00 CB 7A 00 00 B3 [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 [14:41:21]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [14:41:22]RAPDU: 90 00 [14:41:22]wFMCommunicate OK [14:41:22]wFMCommunicate request_size=4 [14:41:22]MH_SAM_APDU [14:41:22]CAPDU: 80 0D 03 02 [14:41:22]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:22]Read from MH i2c: E2 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 0B 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 0B 00 F0 01 00 4D EF 8F EE 56 D7 31 88 90 00 0C [14:41:22]RAPDU: 4D EF 8F EE 56 D7 31 88 90 00 [14:41:22]wFMCommunicate OK [14:41:22]SAM_PROTO_SignData done [14:41:22]FM_MakeSignedData done [14:41:22]CreateOFDProtocolMessage [14:41:22]wFMCommunicate request_size=4 [14:41:22]MH_SAM_APDU [14:41:22]CAPDU: 80 11 00 00 [14:41:22]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:22]Read from MH i2c: E2 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 17 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [14:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:41:22]wFMCommunicate OK [14:41:22]CreateOFDProtocolMessage done [14:41:22]OFDSenderStorePacket 188759 [14:41:22]StoreOFDPacket docnum=188759 [14:41:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 37 96 04 01 E1 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 11 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E1 02 00 35 04 06 00 79 95 7E 0C CB 7A 4D EF 8F EE 56 D7 31 88 [14:41:22]CheckFolder [14:41:22]dirname=/storage/ofd_packets [14:41:22]CheckFolder done [14:41:22]ProducePacketName [14:41:22]name=ofd_packets/00188759 [14:41:22]NVStorageSaveData ofd_packets/00188759 [14:41:22]File name is /storage/ofd_packets/00188759 [14:41:22]Write 298 bytes [14:41:22]NVStorageSaveData done [14:41:22]OFDSenderStorePacket done [14:41:22]KKMCreateOFDPacket done [14:41:22]NVStorageSaveData kkm_last_timestamp [14:41:22]File name is /storage/kkm_last_timestamp [14:41:22]Write 4 bytes [14:41:22]NVStorageSaveData done [14:41:22]ExternCall_PrintAddStr [14:41:22]wPrintStart [14:41:22]Write to MH i2c: 01 00 00 F2 01 F3 [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: 01 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: 01 07 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [14:41:22]RasterBufferAndPrint [14:41:22]line Счет N : (1)210821 [14:41:22]line ИНН: 02508201610067 [14:41:22]line Контрольно-Кассовый Чек [14:41:22]line ПРОДАЖА [14:41:22]line ТРК (МРК, ГНК) : 51 [14:41:22]line Товар: 2710194210 [14:41:22]line ДТ-К-5 [14:41:22]line 20.000 * 0.00 [14:41:22]line = 0.00 [14:41:22]line НДС 12% НСП 1% [14:41:22]line > о реализуемом товаре [14:41:22]line ИТОГО: 0.00 [14:41:22]line НСП 1% : 0.00 [14:41:22]line НДС 12% : 0.00 [14:41:22]line Наличными: 0.00 [14:41:22]line Безнал.: 0.00 [14:41:22]line Место: АЗС № 86 "Партнер Нефть" [14:41:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:41:22]line СНО: Общий режим [14:41:22]line Чек 217 23.10.2024 14:41 [14:41:22]line Смена: 462 ФФД: 1.0 [14:41:22]line ЗНМ: 0300000155 [14:41:22]line РНМ: 0000000000100030 [14:41:22]line Версия ККМ: 001 [14:41:22]line Талоны: Топливные Талоны [14:41:22]line 4339723 [14:41:22]line ФМ: 0000000000965340 [14:41:22]line ФД: 188759 [14:41:22]line ФПД: 133682971855738 [14:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144121&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188759&fm=133682971855738&tin=02508201610067®Number=0000000000100030&sum=0 [14:41:22]written 0, free lines is 4095 [14:41:22]OFD Sender: Processing packet 188759 [packets to send 1062, broken 1061] [14:41:22]ProducePacketName [14:41:22]name=ofd_packets/00188759 [14:41:22]OFD Sender: To server: pG, [14:41:22]CommunicateWithHost lk.salyk.kg:30040 [14:41:22]ConnectInit lk.salyk.kg [14:41:22]Write to MH i2c: 01 00 00 1C 02 1E [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: 01 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: 01 07 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 68 0C 99 [14:41:22]RasterBufferAndPrint [14:41:22]line [14:41:22]line [14:41:22]line [14:41:22]line [14:41:22]line [14:41:22]written 0, free lines is 3180 [14:41:22]MH_Cut [14:41:22]Write to MH i2c: D1 01 00 23 02 01 F7 [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: D1 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: D1 01 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: D1 01 00 23 02 00 F6 [14:41:22]Write to MH i2c: 01 00 00 24 02 26 [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:23]*** Cut start [14:41:23]*** Partial cut [14:41:23]*** CUTSNS_PIN = 1 [14:41:23]*** CUTSNS_PIN = 0 [14:41:24]*** Brake cut motor [14:41:24]Read from MH i2c: 01 [14:41:24]MH_I2C_Read... [14:41:24]*** Stop cut motor [14:41:24]*** Cut end [14:41:24]Read from MH i2c: 01 07 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [14:41:24]process_action close_receipt done [14:41:24]requested_data is exist [14:41:24]produce_requested_data [14:41:24]requested_item fm.sn is exist - process it [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 11 00 00 [14:41:24]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 17 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [14:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:41:24]wFMCommunicate OK [14:41:24]requested_item fd.num is exist - process it [14:41:24]SAM_PROTO_GetFieldsCounters [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 13 00 00 [14:41:24]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 62 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [14:41:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:24]wFMCommunicate OK [14:41:24]SAM_PROTO_GetFieldsCounters done [14:41:24]requested_item shift.num is exist - process it [14:41:24]requested_item shift.opened is exist - process it [14:41:24]req_shift_opened [14:41:24]FM_GetShiftState [14:41:24]SAM_PROTO_GetShiftState [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 13 01 00 [14:41:24]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 0E 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8E [14:41:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:41:24]wFMCommunicate OK [14:41:24]SAM_PROTO_GetShiftState done [14:41:24]FM_GetShiftState done [14:41:24]req_shift_opened done [14:41:24]requested_item shift.open_date is exist - process it [14:41:24]req_shift_open_date [14:41:24]req_shift_open_date done [14:41:24]produce_requested_data done [14:41:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188759,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:41:24]process_action_free close_receipt [14:41:24]json_value_free [14:41:24]json_value_free done [14:41:24]process_json_proto returns [14:41:24]Send response to host [14:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188759,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:41:24]free response buf [14:41:24]execute_script done [14:41:24]execute_script returns [14:41:24]free content buf [14:41:24]Sock 10.Close socket [14:41:24]Sock 10.Thread stoped [14:41:44]accept exits with 7 [14:41:44]New connection [14:41:44]New thread 3067207012 created [14:41:44]Thread 3067350372 joined [14:41:44]Waiting for new connection... [14:41:44] Sock 7.Parse request [14:41:44]Sock 7.Check first char [14:41:44]Sock 7.First char is OK [14:41:44]request: POST /json_proto HTTP/1.0 [14:41:44]Method: POST [14:41:44]URL: /json_proto [14:41:44]Method is POST - this is cgi request [14:41:44]url: /json_proto [14:41:44]query_string will be loaded in cgi processing [14:41:44]execute_cgi json_proto POST (null) [14:41:44]execute_cgi path=json_proto method=POST [14:41:44]POST find Content-Length [14:41:44]Host: 172.17.42.131:8080 [14:41:44]Content-Length: 800 [14:41:44]Content-Type: application/json [14:41:44] [14:41:44]POST finish read [14:41:44]Found Content-Length = 800 [14:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3945286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:44]execute_script... [14:41:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3945286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:44]POST & json_proto [14:41:44]process_json_proto [14:41:44]json parsed OK: [14:41:44]protocol is kg_v1.0 [14:41:44]action value=close_receipt [14:41:44]process_action close_receipt [14:41:44]cmd_close_receipt [14:41:44]MH_GetDate [14:41:44]Write to MH i2c: F0 00 00 28 02 19 [14:41:44]Write i2c OK [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: F0 [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: F0 09 00 [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: F0 09 00 28 02 00 29 0B 19 67 A0 18 CA 66 BE [14:41:44]GetLastDocTimeStamp 1729694481 [14:41:44]current date 1729694505 [14:41:44]FM_GetShiftState [14:41:44]SAM_PROTO_GetShiftState [14:41:44]wFMCommunicate request_size=4 [14:41:44]MH_SAM_APDU [14:41:44]CAPDU: 80 13 01 00 [14:41:44]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [14:41:44]Write i2c OK [14:41:44]MH_I2C_Read... [14:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:44]Read from MH i2c: E2 [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: E2 0E 00 [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 90 [14:41:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:41:44]wFMCommunicate OK [14:41:44]SAM_PROTO_GetShiftState done [14:41:44]FM_GetShiftState done [14:41:44]opened in 1729642525 [14:41:44]opened+sec_in_day 1729728925 [14:41:44]quantity*price = 0 [14:41:44]sum+1 = 1 [14:41:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 218 23.10.2024 14:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3945286 ФМ: 0000000000965340 ФД: 188760 ФПД: 114238346268279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188760&fm=114238346268279&tin=02508201610067®Number=0000000000100030&sum=0 [14:41:45]StoreToDocumentArchive [14:41:45]shift 462 fd 188760 [14:41:45]save to /storage/0462/doc_00188760 [14:41:45]save last doc name /storage/0462/doc_00188760 to /storage/kkm_last_doc_name [14:41:45]save OK [14:41:45]Clear old archive folders... [14:41:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:45]tlvbuf is 01122D50 [14:41:45]SAM_PROTO_ClearQueue [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 09 00 00 [14:41:45]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:45]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 03 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [14:41:46]RAPDU: 90 00 [14:41:46]wFMCommunicate OK [14:41:46]SAM_PROTO_ClearQueue done [14:41:46]KKMCreateOFDPacket [14:41:46]OFDProtocolAddRootSTLVToBuf [14:41:46]FM_MakeSignedData [14:41:46]FM_MakeSignedData [14:41:46]SAM_PROTO_SignData [14:41:46]wFMCommunicate request_size=4 [14:41:46]MH_SAM_APDU [14:41:46]CAPDU: 80 0D 01 02 [14:41:46]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:46]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 03 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [14:41:46]RAPDU: 90 00 [14:41:46]wFMCommunicate OK [14:41:46]wFMCommunicate request_size=255 [14:41:46]MH_SAM_APDU [14:41:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 29 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E1 02 00 35 04 06 00 67 [14:41:46]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 29 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E1 02 00 35 04 06 00 67 00 00 0D [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:46]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 03 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [14:41:46]RAPDU: 90 00 [14:41:46]wFMCommunicate OK [14:41:46]wFMCommunicate request_size=10 [14:41:46]MH_SAM_APDU [14:41:46]CAPDU: 80 0D 02 02 05 E6 30 0C 8E 77 [14:41:46]Write to MH i2c: E2 0D 00 39 02 80 0D 02 02 05 00 E6 30 0C 8E 77 00 00 E6 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:46]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 03 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [14:41:46]RAPDU: 90 00 [14:41:46]wFMCommunicate OK [14:41:46]wFMCommunicate request_size=4 [14:41:46]MH_SAM_APDU [14:41:46]CAPDU: 80 0D 03 02 [14:41:46]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:46]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 0B 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 0B 00 3A 02 00 05 E4 4F AF C0 93 EF 1F 90 00 00 [14:41:46]RAPDU: 05 E4 4F AF C0 93 EF 1F 90 00 [14:41:46]wFMCommunicate OK [14:41:46]SAM_PROTO_SignData done [14:41:46]FM_MakeSignedData done [14:41:46]CreateOFDProtocolMessage [14:41:46]wFMCommunicate request_size=4 [14:41:46]MH_SAM_APDU [14:41:46]CAPDU: 80 11 00 00 [14:41:46]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:46]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 17 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [14:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:41:46]wFMCommunicate OK [14:41:46]CreateOFDProtocolMessage done [14:41:46]OFDSenderStorePacket 188760 [14:41:46]StoreOFDPacket docnum=188760 [14:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 1D 07 01 31 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 29 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E1 02 00 35 04 06 00 67 E6 30 0C 8E 77 05 E4 4F AF C0 93 EF 1F [14:41:46]CheckFolder [14:41:46]dirname=/storage/ofd_packets [14:41:46]CheckFolder done [14:41:46]ProducePacketName [14:41:46]name=ofd_packets/00188760 [14:41:46]NVStorageSaveData ofd_packets/00188760 [14:41:46]File name is /storage/ofd_packets/00188760 [14:41:46]Write 301 bytes [14:41:46]NVStorageSaveData done [14:41:46]OFDSenderStorePacket done [14:41:46]KKMCreateOFDPacket done [14:41:46]NVStorageSaveData kkm_last_timestamp [14:41:46]File name is /storage/kkm_last_timestamp [14:41:46]Write 4 bytes [14:41:46]NVStorageSaveData done [14:41:46]ExternCall_PrintAddStr [14:41:46]wPrintStart [14:41:46]Write to MH i2c: 01 00 00 3C 02 3E [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 07 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [14:41:46]RasterBufferAndPrint [14:41:46]line Счет N : (1)210819 [14:41:46]line ИНН: 02508201610067 [14:41:46]line Контрольно-Кассовый Чек [14:41:46]line ПРОДАЖА [14:41:46]line ТРК (МРК, ГНК) : 32 [14:41:46]line Товар: 2710124130 [14:41:46]line Аи-92-К-3 [14:41:46]line 20.000 * 0.00 [14:41:46]line = 0.00 [14:41:46]line НДС 12% НСП 1% [14:41:46]line > о реализуемом товаре [14:41:46]line ИТОГО: 0.00 [14:41:46]line НСП 1% : 0.00 [14:41:46]line НДС 12% : 0.00 [14:41:46]line Наличными: 0.00 [14:41:46]line Безнал.: 0.00 [14:41:46]line Место: АЗС № 86 "Партнер Нефть" [14:41:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:41:46]line СНО: Общий режим [14:41:46]line Чек 218 23.10.2024 14:41 [14:41:46]line Смена: 462 ФФД: 1.0 [14:41:46]line ЗНМ: 0300000155 [14:41:46]line РНМ: 0000000000100030 [14:41:46]line Версия ККМ: 001 [14:41:46]line Талоны: Топливные Талоны [14:41:46]line 3945286 [14:41:46]line ФМ: 0000000000965340 [14:41:46]line ФД: 188760 [14:41:46]line ФПД: 114238346268279 [14:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188760&fm=114238346268279&tin=02508201610067®Number=0000000000100030&sum=0 [14:41:46]written 0, free lines is 4095 [14:41:46]Write to MH i2c: 01 00 00 66 02 68 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 07 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 6B 0C E6 [14:41:46]RasterBufferAndPrint [14:41:46]line [14:41:46]line [14:41:46]line [14:41:46]line [14:41:46]line [14:41:46]written 0, free lines is 3184 [14:41:46]MH_Cut [14:41:46]Write to MH i2c: D1 01 00 6D 02 01 41 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: D1 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: D1 01 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: D1 01 00 6D 02 00 40 [14:41:46]Write to MH i2c: 01 00 00 6E 02 70 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:48]*** Cut start [14:41:48]*** Partial cut [14:41:48]*** CUTSNS_PIN = 1 [14:41:48]*** CUTSNS_PIN = 0 [14:41:48]*** Brake cut motor [14:41:48]Read from MH i2c: 01 [14:41:48]MH_I2C_Read... [14:41:48]*** Stop cut motor [14:41:48]*** Cut end [14:41:48]Read from MH i2c: 01 07 00 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [14:41:48]process_action close_receipt done [14:41:48]requested_data is exist [14:41:48]produce_requested_data [14:41:48]requested_item fm.sn is exist - process it [14:41:48]wFMCommunicate request_size=4 [14:41:48]MH_SAM_APDU [14:41:48]CAPDU: 80 11 00 00 [14:41:48]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [14:41:48]Write i2c OK [14:41:48]MH_I2C_Read... [14:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:48]Read from MH i2c: E2 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 17 00 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [14:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:41:48]wFMCommunicate OK [14:41:48]requested_item fd.num is exist - process it [14:41:48]SAM_PROTO_GetFieldsCounters [14:41:48]wFMCommunicate request_size=4 [14:41:48]MH_SAM_APDU [14:41:48]CAPDU: 80 13 00 00 [14:41:48]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [14:41:48]Write i2c OK [14:41:48]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 [14:41:49]MH_I2C_Read... [14:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:49]Read from MH i2c: E2 62 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 62 00 70 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [14:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:49]wFMCommunicate OK [14:41:49]SAM_PROTO_GetFieldsCounters done [14:41:49]requested_item shift.num is exist - process it [14:41:49]requested_item shift.opened is exist - process it [14:41:49]req_shift_opened [14:41:49]FM_GetShiftState [14:41:49]SAM_PROTO_GetShiftState [14:41:49]wFMCommunicate request_size=4 [14:41:49]MH_SAM_APDU [14:41:49]CAPDU: 80 13 01 00 [14:41:49]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [14:41:49]Write i2c OK [14:41:49]MH_I2C_Read... [14:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:49]Read from MH i2c: E2 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 0E 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D8 [14:41:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:41:49]wFMCommunicate OK [14:41:49]SAM_PROTO_GetShiftState done [14:41:49]FM_GetShiftState done [14:41:49]req_shift_opened done [14:41:49]requested_item shift.open_date is exist - process it [14:41:49]req_shift_open_date [14:41:49]req_shift_open_date done [14:41:49]produce_requested_data done [14:41:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188760,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:41:49]process_action_free close_receipt [14:41:49]json_value_free [14:41:49]json_value_free done [14:41:49]process_json_proto returns [14:41:49]Send response to host [14:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188760,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:41:49]free response buf [14:41:49]execute_script done [14:41:49]execute_script returns [14:41:49]free content buf [14:41:49]Sock 7.Close socket [14:41:49]Sock 7.Thread stoped [14:41:54]accept exits with 10 [14:41:54]New connection [14:41:54]New thread 3067350372 created [14:41:54]Thread 3067207012 joined [14:41:54]Waiting for new connection... [14:41:54] Sock 10.Parse request [14:41:54]Sock 10.Check first char [14:41:54]Sock 10.First char is OK [14:41:54]request: POST /json_proto HTTP/1.0 [14:41:54]Method: POST [14:41:54]URL: /json_proto [14:41:54]Method is POST - this is cgi request [14:41:54]url: /json_proto [14:41:54]query_string will be loaded in cgi processing [14:41:54]execute_cgi json_proto POST (null) [14:41:54]execute_cgi path=json_proto method=POST [14:41:54]POST find Content-Length [14:41:54]Host: 172.17.42.131:8080 [14:41:54]Content-Length: 766 [14:41:54]Content-Type: application/json [14:41:54] [14:41:54]POST finish read [14:41:54]Found Content-Length = 766 [14:41:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:54]execute_script... [14:41:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:54]POST & json_proto [14:41:54]process_json_proto [14:41:54]json parsed OK: [14:41:54]protocol is kg_v1.0 [14:41:54]action value=close_receipt [14:41:54]process_action close_receipt [14:41:54]cmd_close_receipt [14:41:54]MH_GetDate [14:41:54]Write to MH i2c: F0 00 00 72 02 63 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: F0 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: F0 09 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: F0 09 00 72 02 00 32 0B 19 67 A0 18 CA 66 11 [14:41:54]GetLastDocTimeStamp 1729694505 [14:41:54]current date 1729694514 [14:41:54]FM_GetShiftState [14:41:54]SAM_PROTO_GetShiftState [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 13 01 00 [14:41:54]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 0E 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DA [14:41:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:41:54]wFMCommunicate OK [14:41:54]SAM_PROTO_GetShiftState done [14:41:54]FM_GetShiftState done [14:41:54]opened in 1729642525 [14:41:54]opened+sec_in_day 1729728925 [14:41:54]quantity*price = 50041 [14:41:54]sum+1 = 50042 [14:41:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 219 23.10.2024 14:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188761 ФПД: 38510558529680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144154&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188761&fm=38510558529680&tin=02508201610067®Number=0000000000100030&sum=50041 [14:41:55]StoreToDocumentArchive [14:41:55]shift 462 fd 188761 [14:41:55]save to /storage/0462/doc_00188761 [14:41:55]save last doc name /storage/0462/doc_00188761 to /storage/kkm_last_doc_name [14:41:55]save OK [14:41:55]Clear old archive folders... [14:41:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:55]tlvbuf is 01122C20 [14:41:55]SAM_PROTO_ClearQueue [14:41:55]wFMCommunicate request_size=4 [14:41:55]MH_SAM_APDU [14:41:55]CAPDU: 80 09 00 00 [14:41:55]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [14:41:55]Write i2c OK [14:41:55]MH_I2C_Read... [14:41:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:55]Read from MH i2c: E2 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 03 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [14:41:55]RAPDU: 90 00 [14:41:55]wFMCommunicate OK [14:41:55]SAM_PROTO_ClearQueue done [14:41:55]KKMCreateOFDPacket [14:41:55]OFDProtocolAddRootSTLVToBuf [14:41:55]FM_MakeSignedData [14:41:55]FM_MakeSignedData [14:41:55]SAM_PROTO_SignData [14:41:55]wFMCommunicate request_size=4 [14:41:55]MH_SAM_APDU [14:41:55]CAPDU: 80 0D 01 02 [14:41:55]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [14:41:55]Write i2c OK [14:41:55]MH_I2C_Read... [14:41:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:55]Read from MH i2c: E2 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 03 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [14:41:55]RAPDU: 90 00 [14:41:55]wFMCommunicate OK [14:41:55]wFMCommunicate request_size=255 [14:41:55]MH_SAM_APDU [14:41:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 32 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E1 02 00 35 04 06 00 23 [14:41:55]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 32 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E1 02 00 35 04 06 00 23 00 00 87 [14:41:55]Write i2c OK [14:41:55]MH_I2C_Read... [14:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:55]Read from MH i2c: E2 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 03 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [14:41:55]RAPDU: 90 00 [14:41:55]wFMCommunicate OK [14:41:55]wFMCommunicate request_size=10 [14:41:55]MH_SAM_APDU [14:41:55]CAPDU: 80 0D 02 02 05 06 70 29 48 90 [14:41:55]Write to MH i2c: E2 0D 00 83 02 80 0D 02 02 05 00 06 70 29 48 90 00 00 80 [14:41:55]Write i2c OK [14:41:55]MH_I2C_Read... [14:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:55]Read from MH i2c: E2 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 03 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [14:41:55]RAPDU: 90 00 [14:41:55]wFMCommunicate OK [14:41:55]wFMCommunicate request_size=4 [14:41:55]MH_SAM_APDU [14:41:55]CAPDU: 80 0D 03 02 [14:41:55]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [14:41:55]Write i2c OK [14:41:55]MH_I2C_Read... [14:41:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:55]Read from MH i2c: E2 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 0B 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 0B 00 84 02 00 BE 75 B1 89 F7 E2 B1 CC 90 00 C5 [14:41:55]RAPDU: BE 75 B1 89 F7 E2 B1 CC 90 00 [14:41:55]wFMCommunicate OK [14:41:55]SAM_PROTO_SignData done [14:41:55]FM_MakeSignedData done [14:41:55]CreateOFDProtocolMessage [14:41:55]wFMCommunicate request_size=4 [14:41:55]MH_SAM_APDU [14:41:55]CAPDU: 80 11 00 00 [14:41:55]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [14:41:55]Write i2c OK [14:41:55]MH_I2C_Read... [14:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:55]Read from MH i2c: E2 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 17 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [14:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:41:55]wFMCommunicate OK [14:41:55]CreateOFDProtocolMessage done [14:41:55]OFDSenderStorePacket 188761 [14:41:55]StoreOFDPacket docnum=188761 [14:41:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6D 99 07 01 4B ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 32 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E1 02 00 35 04 06 00 23 06 70 29 48 90 BE 75 B1 89 F7 E2 B1 CC [14:41:55]CheckFolder [14:41:55]dirname=/storage/ofd_packets [14:41:55]CheckFolder done [14:41:55]ProducePacketName [14:41:55]name=ofd_packets/00188761 [14:41:55]NVStorageSaveData ofd_packets/00188761 [14:41:55]File name is /storage/ofd_packets/00188761 [14:41:55]Write 301 bytes [14:41:55]NVStorageSaveData done [14:41:55]OFDSenderStorePacket done [14:41:55]KKMCreateOFDPacket done [14:41:55]NVStorageSaveData kkm_last_timestamp [14:41:55]File name is /storage/kkm_last_timestamp [14:41:55]Write 4 bytes [14:41:55]NVStorageSaveData done [14:41:55]ExternCall_PrintAddStr [14:41:55]wPrintStart [14:41:55]Write to MH i2c: 01 00 00 86 02 88 [14:41:55]Write i2c OK [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: 01 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: 01 07 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [14:41:55]RasterBufferAndPrint [14:41:55]line Счет N : (1)210820 [14:41:55]line ИНН: 02508201610067 [14:41:55]line Контрольно-Кассовый Чек [14:41:55]line ПРОДАЖА [14:41:55]line ТРК (МРК, ГНК) : 12 [14:41:55]line Товар: 2710124130 [14:41:55]line Аи-92-К-3 [14:41:55]line 7.480 * 66.90 [14:41:55]line = 500.41 [14:41:55]line НДС 12% НСП 1% [14:41:55]line > о реализуемом товаре [14:41:55]line ИТОГО: 500.41 [14:41:55]line НСП 1% : 4.43 [14:41:55]line НДС 12% : 53.14 [14:41:55]line Наличными: 0.00 [14:41:55]line Безнал.: 500.41 [14:41:55]line Место: АЗС № 86 "Партнер Нефть" [14:41:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:41:55]line СНО: Общий режим [14:41:55]line Чек 219 23.10.2024 14:41 [14:41:55]line Смена: 462 ФФД: 1.0 [14:41:55]line ЗНМ: 0300000155 [14:41:55]line РНМ: 0000000000100030 [14:41:55]line Версия ККМ: 001 [14:41:55]line Платежная система: Mbank [14:41:55]line ФМ: 0000000000965340 [14:41:55]line ФД: 188761 [14:41:55]line ФПД: 38510558529680 [14:41:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144154&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188761&fm=38510558529680&tin=02508201610067®Number=0000000000100030&sum=50041 [14:41:55]written 0, free lines is 4095 [14:41:56]Write to MH i2c: 01 00 00 AF 02 B1 [14:41:56]Write i2c OK [14:41:56]MH_I2C_Read... [14:41:56]Read from MH i2c: 01 [14:41:56]MH_I2C_Read... [14:41:56]Read from MH i2c: 01 07 00 [14:41:56]MH_I2C_Read... [14:41:56]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 84 0C 48 [14:41:56]RasterBufferAndPrint [14:41:56]line [14:41:56]line [14:41:56]line [14:41:56]line [14:41:56]line [14:41:56]written 0, free lines is 3210 [14:41:56]MH_Cut [14:41:56]Write to MH i2c: D1 01 00 B6 02 01 8A [14:41:56]Write i2c OK [14:41:56]MH_I2C_Read... [14:41:56]Read from MH i2c: D1 [14:41:56]MH_I2C_Read... [14:41:56]Read from MH i2c: D1 01 00 [14:41:56]MH_I2C_Read... [14:41:56]Read from MH i2c: D1 01 00 B6 02 00 89 [14:41:56]Write to MH i2c: 01 00 00 B7 02 B9 [14:41:56]Write i2c OK [14:41:56]MH_I2C_Read... [14:41:57]*** Cut start [14:41:57]*** Partial cut [14:41:57]*** CUTSNS_PIN = 1 [14:41:57]*** CUTSNS_PIN = 0 [14:41:57]*** Brake cut motor [14:41:58]Read from MH i2c: 01 [14:41:58]MH_I2C_Read... [14:41:58]*** Stop cut motor [14:41:58]*** Cut end [14:41:58]Read from MH i2c: 01 07 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [14:41:58]process_action close_receipt done [14:41:58]requested_data is exist [14:41:58]produce_requested_data [14:41:58]requested_item fm.sn is exist - process it [14:41:58]wFMCommunicate request_size=4 [14:41:58]MH_SAM_APDU [14:41:58]CAPDU: 80 11 00 00 [14:41:58]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [14:41:58]Write i2c OK [14:41:58]MH_I2C_Read... [14:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:58]Read from MH i2c: E2 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 17 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [14:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:41:58]wFMCommunicate OK [14:41:58]requested_item fd.num is exist - process it [14:41:58]SAM_PROTO_GetFieldsCounters [14:41:58]wFMCommunicate request_size=4 [14:41:58]MH_SAM_APDU [14:41:58]CAPDU: 80 13 00 00 [14:41:58]Write to MH i2c: E2 08 00 B9 02 80 13 00 00 00 00 00 00 37 [14:41:58]Write i2c OK [14:41:58]MH_I2C_Read... [14:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:58]Read from MH i2c: E2 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 62 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 62 00 B9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [14:41:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:58]wFMCommunicate OK [14:41:58]SAM_PROTO_GetFieldsCounters done [14:41:58]requested_item shift.num is exist - process it [14:41:58]requested_item shift.opened is exist - process it [14:41:58]req_shift_opened [14:41:58]FM_GetShiftState [14:41:58]SAM_PROTO_GetShiftState [14:41:58]wFMCommunicate request_size=4 [14:41:58]MH_SAM_APDU [14:41:58]CAPDU: 80 13 01 00 [14:41:58]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [14:41:58]Write i2c OK [14:41:58]MH_I2C_Read... [14:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:58]Read from MH i2c: E2 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 0E 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 21 [14:41:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:41:58]wFMCommunicate OK [14:41:58]SAM_PROTO_GetShiftState done [14:41:58]FM_GetShiftState done [14:41:58]req_shift_opened done [14:41:58]requested_item shift.open_date is exist - process it [14:41:58]req_shift_open_date [14:41:58]req_shift_open_date done [14:41:58]produce_requested_data done [14:41:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188761,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:41:58]process_action_free close_receipt [14:41:58]json_value_free [14:41:58]json_value_free done [14:41:58]process_json_proto returns [14:41:58]Send response to host [14:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188761,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:41:58]free response buf [14:41:58]execute_script done [14:41:58]execute_script returns [14:41:58]free content buf [14:41:58]Sock 10.Close socket [14:41:58]Sock 10.Thread stoped [14:42:03]accept exits with 7 [14:42:03]New connection [14:42:03]New thread 3067207012 created [14:42:03]Thread 3067350372 joined [14:42:03]Waiting for new connection... [14:42:03] Sock 7.Parse request [14:42:03]Sock 7.Check first char [14:42:03]Sock 7.First char is OK [14:42:03]request: POST /json_proto HTTP/1.0 [14:42:03]Method: POST [14:42:03]URL: /json_proto [14:42:03]Method is POST - this is cgi request [14:42:03]url: /json_proto [14:42:03]query_string will be loaded in cgi processing [14:42:03]execute_cgi json_proto POST (null) [14:42:03]execute_cgi path=json_proto method=POST [14:42:03]POST find Content-Length [14:42:03]Host: 172.17.42.131:8080 [14:42:03]Content-Length: 674 [14:42:03]Content-Type: application/json [14:42:03] [14:42:03]POST finish read [14:42:03]Found Content-Length = 674 [14:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:03]execute_script... [14:42:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:03]POST & json_proto [14:42:03]process_json_proto [14:42:03]json parsed OK: [14:42:03]protocol is kg_v1.0 [14:42:03]action value=close_receipt [14:42:03]process_action close_receipt [14:42:03]cmd_close_receipt [14:42:03]MH_GetDate [14:42:03]Write to MH i2c: F0 00 00 BB 02 AC [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: F0 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: F0 09 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: F0 09 00 BB 02 00 3B 0B 19 67 A0 18 CA 66 63 [14:42:03]GetLastDocTimeStamp 1729694514 [14:42:03]current date 1729694523 [14:42:03]FM_GetShiftState [14:42:03]SAM_PROTO_GetShiftState [14:42:03]wFMCommunicate request_size=4 [14:42:03]MH_SAM_APDU [14:42:03]CAPDU: 80 13 01 00 [14:42:03]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:03]Read from MH i2c: E2 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 0E 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 23 [14:42:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:42:03]wFMCommunicate OK [14:42:03]SAM_PROTO_GetShiftState done [14:42:03]FM_GetShiftState done [14:42:03]opened in 1729642525 [14:42:03]opened+sec_in_day 1729728925 [14:42:03]quantity*price = 60045 [14:42:03]sum+1 = 60047 [14:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 220 23.10.2024 14:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188762 ФПД: 164046586117814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144203&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188762&fm=164046586117814&tin=02508201610067®Number=0000000000100030&sum=60000 [14:42:04]StoreToDocumentArchive [14:42:04]shift 462 fd 188762 [14:42:04]save to /storage/0462/doc_00188762 [14:42:04]save last doc name /storage/0462/doc_00188762 to /storage/kkm_last_doc_name [14:42:04]save OK [14:42:04]Clear old archive folders... [14:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:42:04]tlvbuf is 0113AB40 [14:42:04]SAM_PROTO_ClearQueue [14:42:04]wFMCommunicate request_size=4 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 09 00 00 [14:42:04]Write to MH i2c: E2 08 00 C9 02 80 09 00 00 00 00 00 00 3D [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:04]Read from MH i2c: E2 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 03 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [14:42:04]RAPDU: 90 00 [14:42:04]wFMCommunicate OK [14:42:04]SAM_PROTO_ClearQueue done [14:42:04]KKMCreateOFDPacket [14:42:04]OFDProtocolAddRootSTLVToBuf [14:42:04]FM_MakeSignedData [14:42:04]FM_MakeSignedData [14:42:04]SAM_PROTO_SignData [14:42:04]wFMCommunicate request_size=4 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 0D 01 02 [14:42:04]Write to MH i2c: E2 08 00 CA 02 80 0D 01 02 00 00 00 00 45 [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:04]Read from MH i2c: E2 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 03 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [14:42:04]RAPDU: 90 00 [14:42:04]wFMCommunicate OK [14:42:04]wFMCommunicate request_size=255 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 3B 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E1 02 00 35 04 06 00 95 33 12 7D [14:42:04]Write to MH i2c: E2 02 01 CB 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 3B 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E1 02 00 35 04 06 00 95 33 12 7D 00 00 76 [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:04]Read from MH i2c: E2 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 03 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [14:42:04]RAPDU: 90 00 [14:42:04]wFMCommunicate OK [14:42:04]wFMCommunicate request_size=7 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 0D 02 02 02 FE B6 [14:42:04]Write to MH i2c: E2 0A 00 CC 02 80 0D 02 02 02 00 FE B6 00 00 00 [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:04]Read from MH i2c: E2 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 03 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [14:42:04]RAPDU: 90 00 [14:42:04]wFMCommunicate OK [14:42:04]wFMCommunicate request_size=4 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 0D 03 02 [14:42:04]Write to MH i2c: E2 08 00 CD 02 80 0D 03 02 00 00 00 00 4A [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:04]Read from MH i2c: E2 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 0B 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 0B 00 CD 02 00 30 26 89 F3 B2 0B 57 24 90 00 55 [14:42:04]RAPDU: 30 26 89 F3 B2 0B 57 24 90 00 [14:42:04]wFMCommunicate OK [14:42:04]SAM_PROTO_SignData done [14:42:04]FM_MakeSignedData done [14:42:04]CreateOFDProtocolMessage [14:42:04]wFMCommunicate request_size=4 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 11 00 00 [14:42:04]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:04]Read from MH i2c: E2 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 17 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 17 00 CE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [14:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:42:04]wFMCommunicate OK [14:42:04]CreateOFDProtocolMessage done [14:42:04]OFDSenderStorePacket 188762 [14:42:04]StoreOFDPacket docnum=188762 [14:42:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F2 59 04 01 45 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 3B 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E1 02 00 35 04 06 00 95 33 12 7D FE B6 30 26 89 F3 B2 0B 57 24 [14:42:04]CheckFolder [14:42:04]dirname=/storage/ofd_packets [14:42:04]CheckFolder done [14:42:04]ProducePacketName [14:42:04]name=ofd_packets/00188762 [14:42:04]NVStorageSaveData ofd_packets/00188762 [14:42:04]File name is /storage/ofd_packets/00188762 [14:42:04]Write 298 bytes [14:42:04]NVStorageSaveData done [14:42:04]OFDSenderStorePacket done [14:42:04]KKMCreateOFDPacket done [14:42:04]NVStorageSaveData kkm_last_timestamp [14:42:04]File name is /storage/kkm_last_timestamp [14:42:04]Write 4 bytes [14:42:04]NVStorageSaveData done [14:42:04]ExternCall_PrintAddStr [14:42:04]wPrintStart [14:42:04]Write to MH i2c: 01 00 00 CF 02 D1 [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: 01 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: 01 07 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [14:42:04]RasterBufferAndPrint [14:42:04]line Счет N : (1)210822 [14:42:04]line ИНН: 02508201610067 [14:42:04]line Контрольно-Кассовый Чек [14:42:04]line ПРОДАЖА [14:42:04]line ТРК (МРК, ГНК) : 51 [14:42:04]line Товар: 2710194210 [14:42:04]line ДТ-К-5 [14:42:04]line 7.880 * 76.20 [14:42:04]line = 600.46 [14:42:04]line НДС 12% НСП 1% [14:42:04]line > о реализуемом товаре [14:42:04]line ОКРУГЛЕНИЕ: -0.46 [14:42:04]line ИТОГО: 600.00 [14:42:04]line Внесено: 600.00 [14:42:04]line СДАЧА: 0.00 [14:42:04]line НСП 1% : 5.31 [14:42:04]line НДС 12% : 63.77 [14:42:04]line Наличными: 600.00 [14:42:04]line Безнал.: 0.00 [14:42:04]line Место: АЗС № 86 "Партнер Нефть" [14:42:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:42:04]line СНО: Общий режим [14:42:04]line Чек 220 23.10.2024 14:42 [14:42:04]line Смена: 462 ФФД: 1.0 [14:42:04]line ЗНМ: 0300000155 [14:42:04]line РНМ: 0000000000100030 [14:42:04]line Версия ККМ: 001 [14:42:04]line ФМ: 0000000000965340 [14:42:04]line ФД: 188762 [14:42:04]line ФПД: 164046586117814 [14:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144203&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188762&fm=164046586117814&tin=02508201610067®Number=0000000000100030&sum=60000 [14:42:04]written 0, free lines is 4095 [14:42:05]Write to MH i2c: 01 00 00 FA 02 FC [14:42:05]Write i2c OK [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: 01 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: 01 07 00 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 55 0C 64 [14:42:05]RasterBufferAndPrint [14:42:05]line [14:42:05]line [14:42:05]line [14:42:05]line [14:42:05]line [14:42:05]written 0, free lines is 3165 [14:42:05]MH_Cut [14:42:05]Write to MH i2c: D1 01 00 01 03 01 D6 [14:42:05]Write i2c OK [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: D1 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: D1 01 00 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: D1 01 00 01 03 00 D5 [14:42:05]Write to MH i2c: 01 00 00 02 03 05 [14:42:05]Write i2c OK [14:42:05]MH_I2C_Read... [14:42:06]*** Cut start [14:42:06]*** Partial cut [14:42:06]*** CUTSNS_PIN = 1 [14:42:06]*** CUTSNS_PIN = 0 [14:42:06]*** Brake cut motor [14:42:07]Read from MH i2c: 01 [14:42:07]MH_I2C_Read... [14:42:07]*** Stop cut motor [14:42:07]*** Cut end [14:42:07]Read from MH i2c: 01 07 00 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 FF 0F 1A [14:42:07]process_action close_receipt done [14:42:07]requested_data is exist [14:42:07]produce_requested_data [14:42:07]requested_item fm.sn is exist - process it [14:42:07]wFMCommunicate request_size=4 [14:42:07]MH_SAM_APDU [14:42:07]CAPDU: 80 11 00 00 [14:42:07]Write to MH i2c: E2 08 00 03 03 80 11 00 00 00 00 00 00 80 [14:42:07]Write i2c OK [14:42:07]MH_I2C_Read... [14:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:07]Read from MH i2c: E2 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: E2 17 00 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: E2 17 00 03 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [14:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:42:07]wFMCommunicate OK [14:42:07]requested_item fd.num is exist - process it [14:42:07]SAM_PROTO_GetFieldsCounters [14:42:07]wFMCommunicate request_size=4 [14:42:07]MH_SAM_APDU [14:42:07]CAPDU: 80 13 00 00 [14:42:07]Write to MH i2c: E2 08 00 04 03 80 13 00 00 00 00 00 00 83 [14:42:07]Write i2c OK [14:42:07]MH_I2C_Read... [14:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:07]Read from MH i2c: E2 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: E2 62 00 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: E2 62 00 04 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:42:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:07]wFMCommunicate OK [14:42:07]SAM_PROTO_GetFieldsCounters done [14:42:07]requested_item shift.num is exist - process it [14:42:07]requested_item shift.opened is exist - process it [14:42:07]req_shift_opened [14:42:07]FM_GetShiftState [14:42:07]SAM_PROTO_GetShiftState [14:42:07]wFMCommunicate request_size=4 [14:42:07]MH_SAM_APDU [14:42:07]CAPDU: 80 13 01 00 [14:42:07]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [14:42:07]Write i2c OK [14:42:07]MH_I2C_Read... [14:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:07]Read from MH i2c: E2 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: E2 0E 00 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6D [14:42:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:42:07]wFMCommunicate OK [14:42:07]SAM_PROTO_GetShiftState done [14:42:07]FM_GetShiftState done [14:42:07]req_shift_opened done [14:42:07]requested_item shift.open_date is exist - process it [14:42:07]req_shift_open_date [14:42:07]req_shift_open_date done [14:42:07]produce_requested_data done [14:42:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188762,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:42:07]process_action_free close_receipt [14:42:07]json_value_free [14:42:07]json_value_free done [14:42:07]process_json_proto returns [14:42:07]Send response to host [14:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188762,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:42:07]free response buf [14:42:07]execute_script done [14:42:07]execute_script returns [14:42:07]free content buf [14:42:07]Sock 7.Close socket [14:42:07]Sock 7.Thread stoped [14:43:02]accept exits with 10 [14:43:02]New connection [14:43:02]New thread 3067350372 created [14:43:02]Thread 3067207012 joined [14:43:02]Waiting for new connection... [14:43:02] Sock 10.Parse request [14:43:02]Sock 10.Check first char [14:43:02]Sock 10.First char is OK [14:43:02]request: POST /json_proto HTTP/1.0 [14:43:02]Method: POST [14:43:02]URL: /json_proto [14:43:02]Method is POST - this is cgi request [14:43:02]url: /json_proto [14:43:02]query_string will be loaded in cgi processing [14:43:02]execute_cgi json_proto POST (null) [14:43:02]execute_cgi path=json_proto method=POST [14:43:02]POST find Content-Length [14:43:02]Host: 172.17.42.131:8080 [14:43:02]Content-Length: 678 [14:43:02]Content-Type: application/json [14:43:02] [14:43:02]POST finish read [14:43:02]Found Content-Length = 678 [14:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:02]execute_script... [14:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:02]POST & json_proto [14:43:02]process_json_proto [14:43:02]json parsed OK: [14:43:02]protocol is kg_v1.0 [14:43:02]action value=close_receipt [14:43:02]process_action close_receipt [14:43:02]cmd_close_receipt [14:43:02]MH_GetDate [14:43:02]Write to MH i2c: F0 00 00 06 03 F8 [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: F0 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: F0 09 00 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: F0 09 00 06 03 00 76 0B 19 67 A0 18 CA 66 EA [14:43:02]GetLastDocTimeStamp 1729694523 [14:43:02]current date 1729694582 [14:43:02]FM_GetShiftState [14:43:02]SAM_PROTO_GetShiftState [14:43:02]wFMCommunicate request_size=4 [14:43:02]MH_SAM_APDU [14:43:02]CAPDU: 80 13 01 00 [14:43:02]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:02]Read from MH i2c: E2 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: E2 0E 00 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6F [14:43:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:43:02]wFMCommunicate OK [14:43:02]SAM_PROTO_GetShiftState done [14:43:02]FM_GetShiftState done [14:43:02]opened in 1729642525 [14:43:02]opened+sec_in_day 1729728925 [14:43:02]quantity*price = 70044 [14:43:02]sum+1 = 70045 [14:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 221 23.10.2024 14:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188763 ФПД: 237785647605960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144303&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188763&fm=237785647605960&tin=02508201610067®Number=0000000000100030&sum=70000 [14:43:03]StoreToDocumentArchive [14:43:03]shift 462 fd 188763 [14:43:03]save to /storage/0462/doc_00188763 [14:43:03]save last doc name /storage/0462/doc_00188763 to /storage/kkm_last_doc_name [14:43:03]save OK [14:43:03]Clear old archive folders... [14:43:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:03]tlvbuf is 011546D0 [14:43:03]SAM_PROTO_ClearQueue [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 09 00 00 [14:43:03]Write to MH i2c: E2 08 00 14 03 80 09 00 00 00 00 00 00 89 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [14:43:03]RAPDU: 90 00 [14:43:03]wFMCommunicate OK [14:43:03]SAM_PROTO_ClearQueue done [14:43:03]KKMCreateOFDPacket [14:43:03]OFDProtocolAddRootSTLVToBuf [14:43:03]FM_MakeSignedData [14:43:03]FM_MakeSignedData [14:43:03]SAM_PROTO_SignData [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 0D 01 02 [14:43:03]Write to MH i2c: E2 08 00 15 03 80 0D 01 02 00 00 00 00 91 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [14:43:03]RAPDU: 90 00 [14:43:03]wFMCommunicate OK [14:43:03]wFMCommunicate request_size=255 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 77 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E1 02 00 35 04 06 00 D8 [14:43:03]Write to MH i2c: E2 02 01 16 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 77 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E1 02 00 35 04 06 00 D8 00 00 D8 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [14:43:03]RAPDU: 90 00 [14:43:03]wFMCommunicate OK [14:43:03]wFMCommunicate request_size=10 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 0D 02 02 05 43 C9 0E E8 C8 [14:43:03]Write to MH i2c: E2 0D 00 17 03 80 0D 02 02 05 00 43 C9 0E E8 C8 00 00 68 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [14:43:03]RAPDU: 90 00 [14:43:03]wFMCommunicate OK [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 0D 03 02 [14:43:03]Write to MH i2c: E2 08 00 18 03 80 0D 03 02 00 00 00 00 96 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 0B 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 0B 00 18 03 00 79 E8 5B C4 73 E3 97 0E 90 00 12 [14:43:03]RAPDU: 79 E8 5B C4 73 E3 97 0E 90 00 [14:43:03]wFMCommunicate OK [14:43:03]SAM_PROTO_SignData done [14:43:03]FM_MakeSignedData done [14:43:03]CreateOFDProtocolMessage [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 19 03 80 11 00 00 00 00 00 00 96 [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 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [14:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:43:03]wFMCommunicate OK [14:43:03]CreateOFDProtocolMessage done [14:43:03]OFDSenderStorePacket 188763 [14:43:03]StoreOFDPacket docnum=188763 [14:43:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CA DF 07 01 AA 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 77 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E1 02 00 35 04 06 00 D8 43 C9 0E E8 C8 79 E8 5B C4 73 E3 97 0E [14:43:03]CheckFolder [14:43:03]dirname=/storage/ofd_packets [14:43:03]CheckFolder done [14:43:03]ProducePacketName [14:43:03]name=ofd_packets/00188763 [14:43:03]NVStorageSaveData ofd_packets/00188763 [14:43:03]File name is /storage/ofd_packets/00188763 [14:43:03]Write 301 bytes [14:43:03]NVStorageSaveData done [14:43:03]OFDSenderStorePacket done [14:43:03]KKMCreateOFDPacket done [14:43:03]NVStorageSaveData kkm_last_timestamp [14:43:03]File name is /storage/kkm_last_timestamp [14:43:03]Write 4 bytes [14:43:03]NVStorageSaveData done [14:43:04]ExternCall_PrintAddStr [14:43:04]wPrintStart [14:43:04]Write to MH i2c: 01 00 00 1A 03 1D [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 07 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FF 0F 32 [14:43:04]RasterBufferAndPrint [14:43:04]line Счет N : (1)210823 [14:43:04]line ИНН: 02508201610067 [14:43:04]line Контрольно-Кассовый Чек [14:43:04]line ПРОДАЖА [14:43:04]line ТРК (МРК, ГНК) : 32 [14:43:04]line Товар: 2710124130 [14:43:04]line Аи-92-К-3 [14:43:04]line 10.470 * 66.90 [14:43:04]line = 700.44 [14:43:04]line НДС 12% НСП 1% [14:43:04]line > о реализуемом товаре [14:43:04]line ОКРУГЛЕНИЕ: -0.44 [14:43:04]line ИТОГО: 700.00 [14:43:04]line Внесено: 700.00 [14:43:04]line СДАЧА: 0.00 [14:43:04]line НСП 1% : 6.20 [14:43:04]line НДС 12% : 74.38 [14:43:04]line Наличными: 700.00 [14:43:04]line Безнал.: 0.00 [14:43:04]line Место: АЗС № 86 "Партнер Нефть" [14:43:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:43:04]line СНО: Общий режим [14:43:04]line Чек 221 23.10.2024 14:43 [14:43:04]line Смена: 462 ФФД: 1.0 [14:43:04]line ЗНМ: 0300000155 [14:43:04]line РНМ: 0000000000100030 [14:43:04]line Версия ККМ: 001 [14:43:04]line ФМ: 0000000000965340 [14:43:04]line ФД: 188763 [14:43:04]line ФПД: 237785647605960 [14:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144303&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188763&fm=237785647605960&tin=02508201610067®Number=0000000000100030&sum=70000 [14:43:04]written 0, free lines is 4095 [14:43:04]Write to MH i2c: 01 00 00 45 03 48 [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 07 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 56 0C B1 [14:43:04]RasterBufferAndPrint [14:43:04]line [14:43:04]line [14:43:04]line [14:43:04]line [14:43:04]line [14:43:04]written 0, free lines is 3160 [14:43:04]MH_Cut [14:43:04]Write to MH i2c: D1 01 00 4C 03 01 21 [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: D1 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: D1 01 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: D1 01 00 4C 03 00 20 [14:43:04]Write to MH i2c: 01 00 00 4D 03 50 [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:05]*** Cut start [14:43:05]*** Partial cut [14:43:05]*** CUTSNS_PIN = 1 [14:43:05]*** CUTSNS_PIN = 0 [14:43:06]*** Brake cut motor [14:43:06]Read from MH i2c: 01 [14:43:06]MH_I2C_Read... [14:43:06]*** Stop cut motor [14:43:06]*** Cut end [14:43:06]Read from MH i2c: 01 07 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [14:43:06]process_action close_receipt done [14:43:06]requested_data is exist [14:43:06]produce_requested_data [14:43:06]requested_item fm.sn is exist - process it [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 11 00 00 [14:43:06]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 17 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [14:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:43:06]wFMCommunicate OK [14:43:06]requested_item fd.num is exist - process it [14:43:06]SAM_PROTO_GetFieldsCounters [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 13 00 00 [14:43:06]Write to MH i2c: E2 08 00 4F 03 80 13 00 00 00 00 00 00 CE [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 62 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 62 00 4F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [14: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:06]wFMCommunicate OK [14:43:06]SAM_PROTO_GetFieldsCounters done [14:43:06]requested_item shift.num is exist - process it [14:43:06]requested_item shift.opened is exist - process it [14:43:06]req_shift_opened [14:43:06]FM_GetShiftState [14:43:06]SAM_PROTO_GetShiftState [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 13 01 00 [14:43:06]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 0E 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B8 [14:43:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:43:06]wFMCommunicate OK [14:43:06]SAM_PROTO_GetShiftState done [14:43:06]FM_GetShiftState done [14:43:06]req_shift_opened done [14:43:06]requested_item shift.open_date is exist - process it [14:43:06]req_shift_open_date [14:43:06]req_shift_open_date done [14:43:06]produce_requested_data done [14:43:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188763,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:43:06]process_action_free close_receipt [14:43:06]json_value_free [14:43:06]json_value_free done [14:43:06]process_json_proto returns [14:43:06]Send response to host [14:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188763,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:43:06]free response buf [14:43:06]execute_script done [14:43:06]execute_script returns [14:43:06]free content buf [14:43:06]Sock 10.Close socket [14:43:06]Sock 10.Thread stoped [14:43:36]ConnectInit Can't connect to host [14:43:36]CommunicateWithHost connect error [14:43:36]CommunicateWithHost err = -1 [14:43:36]OFD Sender: Server communicate error [14:43:36]OFD Sender: Processing packet 188759 [packets to send 1066, broken 1061] [14:43:36]ProducePacketName [14:43:36]name=ofd_packets/00188759 [14:43:36]OFD Sender: To server: pG, [14:43:36]CommunicateWithHost lk.salyk.kg:30040 [14:43:36]ConnectInit lk.salyk.kg [14:43:36]Connected sock=9 [14:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 37 96 04 01 E1 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 11 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E1 02 00 35 04 06 00 79 95 7E 0C CB 7A 4D EF 8F EE 56 D7 31 88 [14:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E0 12 47 00 5F 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 36 35 33 34 30 10 04 04 00 57 E1 02 00 F4 03 04 00 81 B5 18 67 B6 04 01 00 00 BF B9 21 2C 6C F0 DE 54 [14:43:36]CommunicateWithHost err = 0 [14:43:36]CheckOFDResponse [14:43:36]1017 (14) - 77093643461234 [14:43:36]1041 (16) - 0000000000965340 [14:43:36]1040 (4) - 188759 [14:43:36]1012 (4) - 23.10.2024 08:36 [14:43:36]1206 (1) - 0 [14:43:36]OFD Sender: Remove packet 188759 [14:43:36]ProducePacketName [14:43:36]name=ofd_packets/00188759 [14:43:36]NVStorageDeleteData [14:43:37]OFD Sender: Processing packet 188760 [packets to send 1065, broken 1061] [14:43:37]ProducePacketName [14:43:37]name=ofd_packets/00188760 [14:43:37]OFD Sender: To server: pG, [14:43:37]CommunicateWithHost lk.salyk.kg:30040 [14:43:37]ConnectInit lk.salyk.kg [14:43:37]Connected sock=9 [14:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 1D 07 01 31 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 29 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E1 02 00 35 04 06 00 67 E6 30 0C 8E 77 05 E4 4F AF C0 93 EF 1F [14:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7B 10 47 00 DA BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E1 02 00 F4 03 04 00 83 B5 18 67 B6 04 01 00 00 CE CE BF 73 69 7B A9 C5 [14:43:38]CommunicateWithHost err = 0 [14:43:38]CheckOFDResponse [14:43:38]1017 (14) - 77093643461234 [14:43:38]1041 (16) - 0000000000965340 [14:43:38]1040 (4) - 188760 [14:43:38]1012 (4) - 23.10.2024 08:36 [14:43:38]1206 (1) - 0 [14:43:38]OFD Sender: Remove packet 188760 [14:43:38]ProducePacketName [14:43:38]name=ofd_packets/00188760 [14:43:38]NVStorageDeleteData [14:43:38]OFD Sender: Processing packet 188761 [packets to send 1064, broken 1061] [14:43:38]ProducePacketName [14:43:38]name=ofd_packets/00188761 [14:43:38]OFD Sender: To server: pG, [14:43:38]CommunicateWithHost lk.salyk.kg:30040 [14:43:38]ConnectInit lk.salyk.kg [14:43:39]Connected sock=9 [14:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6D 99 07 01 4B ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 32 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E1 02 00 35 04 06 00 23 06 70 29 48 90 BE 75 B1 89 F7 E2 B1 CC [14:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 1D 47 00 6E 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 36 35 33 34 30 10 04 04 00 59 E1 02 00 F4 03 04 00 84 B5 18 67 B6 04 01 00 00 56 3D D0 A3 BD 50 8B 4E [14:43:39]CommunicateWithHost err = 0 [14:43:39]CheckOFDResponse [14:43:39]1017 (14) - 77093643461234 [14:43:39]1041 (16) - 0000000000965340 [14:43:39]1040 (4) - 188761 [14:43:39]1012 (4) - 23.10.2024 08:36 [14:43:39]1206 (1) - 0 [14:43:39]OFD Sender: Remove packet 188761 [14:43:39]ProducePacketName [14:43:39]name=ofd_packets/00188761 [14:43:39]NVStorageDeleteData [14:43:39]OFD Sender: Processing packet 188762 [packets to send 1063, broken 1061] [14:43:39]ProducePacketName [14:43:39]name=ofd_packets/00188762 [14:43:39]OFD Sender: To server: pG, [14:43:39]CommunicateWithHost lk.salyk.kg:30040 [14:43:39]ConnectInit lk.salyk.kg [14:44:51]accept exits with 7 [14:44:51]New connection [14:44:51]New thread 3067207012 created [14:44:51]Thread 3067350372 joined [14:44:51]Waiting for new connection... [14:44:51] Sock 7.Parse request [14:44:51]Sock 7.Check first char [14:44:51]Sock 7.First char is OK [14:44:51]request: POST /json_proto HTTP/1.0 [14:44:51]Method: POST [14:44:51]URL: /json_proto [14:44:51]Method is POST - this is cgi request [14:44:51]url: /json_proto [14:44:51]query_string will be loaded in cgi processing [14:44:51]execute_cgi json_proto POST (null) [14:44:51]execute_cgi path=json_proto method=POST [14:44:51]POST find Content-Length [14:44:51]Host: 172.17.42.131:8080 [14:44:51]Content-Length: 682 [14:44:51]Content-Type: application/json [14:44:51] [14:44:51]POST finish read [14:44:51]Found Content-Length = 682 [14:44:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:51]execute_script... [14:44:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:51]POST & json_proto [14:44:51]process_json_proto [14:44:51]json parsed OK: [14:44:51]protocol is kg_v1.0 [14:44:51]action value=close_receipt [14:44:51]process_action close_receipt [14:44:51]cmd_close_receipt [14:44:51]MH_GetDate [14:44:51]Write to MH i2c: F0 00 00 51 03 43 [14:44:51]Write i2c OK [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: F0 [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: F0 09 00 [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: F0 09 00 51 03 00 E3 0B 19 67 A0 18 CA 66 A2 [14:44:51]GetLastDocTimeStamp 1729694583 [14:44:51]current date 1729694691 [14:44:51]FM_GetShiftState [14:44:51]SAM_PROTO_GetShiftState [14:44:51]wFMCommunicate request_size=4 [14:44:51]MH_SAM_APDU [14:44:51]CAPDU: 80 13 01 00 [14:44:51]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [14:44:51]Write i2c OK [14:44:51]MH_I2C_Read... [14:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:51]Read from MH i2c: E2 [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: E2 0E 00 [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BA [14:44:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:44:51]wFMCommunicate OK [14:44:51]SAM_PROTO_GetShiftState done [14:44:51]FM_GetShiftState done [14:44:51]opened in 1729642525 [14:44:51]opened+sec_in_day 1729728925 [14:44:51]quantity*price = 100015 [14:44:51]sum+1 = 100017 [14:44:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 222 23.10.2024 14:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188764 ФПД: 217331617354250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188764&fm=217331617354250&tin=02508201610067®Number=0000000000100030&sum=100000 [14:44:52]StoreToDocumentArchive [14:44:52]shift 462 fd 188764 [14:44:52]save to /storage/0462/doc_00188764 [14:44:52]save last doc name /storage/0462/doc_00188764 to /storage/kkm_last_doc_name [14:44:52]save OK [14:44:52]Clear old archive folders... [14:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:52]tlvbuf is 0110DFA0 [14:44:52]SAM_PROTO_ClearQueue [14:44:52]wFMCommunicate request_size=4 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 09 00 00 [14:44:52]Write to MH i2c: E2 08 00 5F 03 80 09 00 00 00 00 00 00 D4 [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [14:44:52]RAPDU: 90 00 [14:44:52]wFMCommunicate OK [14:44:52]SAM_PROTO_ClearQueue done [14:44:52]KKMCreateOFDPacket [14:44:52]OFDProtocolAddRootSTLVToBuf [14:44:52]FM_MakeSignedData [14:44:52]FM_MakeSignedData [14:44:52]SAM_PROTO_SignData [14:44:52]wFMCommunicate request_size=4 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 0D 01 02 [14:44:52]Write to MH i2c: E2 08 00 60 03 80 0D 01 02 00 00 00 00 DC [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [14:44:52]RAPDU: 90 00 [14:44:52]wFMCommunicate OK [14:44:52]wFMCommunicate request_size=255 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E3 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E1 02 00 35 04 06 00 C5 [14:44:52]Write to MH i2c: E2 02 01 61 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E3 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E1 02 00 35 04 06 00 C5 00 00 68 [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [14:44:52]RAPDU: 90 00 [14:44:52]wFMCommunicate OK [14:44:52]wFMCommunicate request_size=10 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 0D 02 02 05 A9 75 D9 D2 0A [14:44:52]Write to MH i2c: E2 0D 00 62 03 80 0D 02 02 05 00 A9 75 D9 D2 0A 00 00 BC [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [14:44:52]RAPDU: 90 00 [14:44:52]wFMCommunicate OK [14:44:52]wFMCommunicate request_size=4 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 0D 03 02 [14:44:52]Write to MH i2c: E2 08 00 63 03 80 0D 03 02 00 00 00 00 E1 [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 0B 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 0B 00 63 03 00 A4 E5 71 5B 25 07 72 9C 90 00 71 [14:44:52]RAPDU: A4 E5 71 5B 25 07 72 9C 90 00 [14:44:52]wFMCommunicate OK [14:44:52]SAM_PROTO_SignData done [14:44:52]FM_MakeSignedData done [14:44:52]CreateOFDProtocolMessage [14:44:52]wFMCommunicate request_size=4 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 11 00 00 [14:44:52]Write to MH i2c: E2 08 00 64 03 80 11 00 00 00 00 00 00 E1 [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 17 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 17 00 64 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [14:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:44:52]wFMCommunicate OK [14:44:52]CreateOFDProtocolMessage done [14:44:52]OFDSenderStorePacket 188764 [14:44:52]StoreOFDPacket docnum=188764 [14:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BF 1E 07 01 07 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E3 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E1 02 00 35 04 06 00 C5 A9 75 D9 D2 0A A4 E5 71 5B 25 07 72 9C [14:44:52]CheckFolder [14:44:52]dirname=/storage/ofd_packets [14:44:52]CheckFolder done [14:44:52]ProducePacketName [14:44:52]name=ofd_packets/00188764 [14:44:52]NVStorageSaveData ofd_packets/00188764 [14:44:52]File name is /storage/ofd_packets/00188764 [14:44:52]Write 301 bytes [14:44:52]NVStorageSaveData done [14:44:52]OFDSenderStorePacket done [14:44:52]KKMCreateOFDPacket done [14:44:52]NVStorageSaveData kkm_last_timestamp [14:44:52]File name is /storage/kkm_last_timestamp [14:44:52]Write 4 bytes [14:44:52]NVStorageSaveData done [14:44:52]ExternCall_PrintAddStr [14:44:52]wPrintStart [14:44:52]Write to MH i2c: 01 00 00 65 03 68 [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: 01 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: 01 07 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 FF 0F 7D [14:44:52]RasterBufferAndPrint [14:44:52]line Счет N : (1)210824 [14:44:52]line ИНН: 02508201610067 [14:44:52]line Контрольно-Кассовый Чек [14:44:52]line ПРОДАЖА [14:44:52]line ТРК (МРК, ГНК) : 42 [14:44:52]line Товар: 2710124130 [14:44:52]line Аи-92-К-3 [14:44:52]line 14.950 * 66.90 [14:44:52]line = 1000.16 [14:44:52]line НДС 12% НСП 1% [14:44:52]line > о реализуемом товаре [14:44:52]line ОКРУГЛЕНИЕ: -0.16 [14:44:52]line ИТОГО: 1000.00 [14:44:52]line Внесено: 1000.00 [14:44:52]line СДАЧА: 0.00 [14:44:52]line НСП 1% : 8.85 [14:44:52]line НДС 12% : 106.21 [14:44:52]line Наличными: 1000.00 [14:44:52]line Безнал.: 0.00 [14:44:52]line Место: АЗС № 86 "Партнер Нефть" [14:44:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:44:52]line СНО: Общий режим [14:44:52]line Чек 222 23.10.2024 14:44 [14:44:52]line Смена: 462 ФФД: 1.0 [14:44:52]line ЗНМ: 0300000155 [14:44:52]line РНМ: 0000000000100030 [14:44:52]line Версия ККМ: 001 [14:44:52]line ФМ: 0000000000965340 [14:44:52]line ФД: 188764 [14:44:52]line ФПД: 217331617354250 [14:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188764&fm=217331617354250&tin=02508201610067®Number=0000000000100030&sum=100000 [14:44:52]written 0, free lines is 4095 [14:44:53]Write to MH i2c: 01 00 00 90 03 93 [14:44:53]Write i2c OK [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: 01 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: 01 07 00 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 55 0C FB [14:44:53]RasterBufferAndPrint [14:44:53]line [14:44:53]line [14:44:53]line [14:44:53]line [14:44:53]line [14:44:53]written 0, free lines is 3161 [14:44:53]MH_Cut [14:44:53]Write to MH i2c: D1 01 00 97 03 01 6C [14:44:53]Write i2c OK [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: D1 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: D1 01 00 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: D1 01 00 97 03 00 6B [14:44:53]Write to MH i2c: 01 00 00 98 03 9B [14:44:53]Write i2c OK [14:44:53]MH_I2C_Read... [14:44:54]*** Cut start [14:44:54]*** Partial cut [14:44:54]*** CUTSNS_PIN = 1 [14:44:54]*** CUTSNS_PIN = 0 [14:44:54]*** Brake cut motor [14:44:55]Read from MH i2c: 01 [14:44:55]MH_I2C_Read... [14:44:55]*** Stop cut motor [14:44:55]*** Cut end [14:44:55]Read from MH i2c: 01 07 00 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 FF 0F B0 [14:44:55]process_action close_receipt done [14:44:55]requested_data is exist [14:44:55]produce_requested_data [14:44:55]requested_item fm.sn is exist - process it [14:44:55]wFMCommunicate request_size=4 [14:44:55]MH_SAM_APDU [14:44:55]CAPDU: 80 11 00 00 [14:44:55]Write to MH i2c: E2 08 00 99 03 80 11 00 00 00 00 00 00 16 [14:44:55]Write i2c OK [14:44:55]MH_I2C_Read... [14:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:55]Read from MH i2c: E2 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: E2 17 00 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: E2 17 00 99 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [14:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:44:55]wFMCommunicate OK [14:44:55]requested_item fd.num is exist - process it [14:44:55]SAM_PROTO_GetFieldsCounters [14:44:55]wFMCommunicate request_size=4 [14:44:55]MH_SAM_APDU [14:44:55]CAPDU: 80 13 00 00 [14:44:55]Write to MH i2c: E2 08 00 9A 03 80 13 00 00 00 00 00 00 19 [14:44:55]Write i2c OK [14:44:55]MH_I2C_Read... [14:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:55]Read from MH i2c: E2 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: E2 62 00 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: E2 62 00 9A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [14:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:55]wFMCommunicate OK [14:44:55]SAM_PROTO_GetFieldsCounters done [14:44:55]requested_item shift.num is exist - process it [14:44:55]requested_item shift.opened is exist - process it [14:44:55]req_shift_opened [14:44:55]FM_GetShiftState [14:44:55]SAM_PROTO_GetShiftState [14:44:55]wFMCommunicate request_size=4 [14:44:55]MH_SAM_APDU [14:44:55]CAPDU: 80 13 01 00 [14:44:55]Write to MH i2c: E2 08 00 9B 03 80 13 01 00 00 00 00 00 1B [14:44:55]Write i2c OK [14:44:55]MH_I2C_Read... [14:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:55]Read from MH i2c: E2 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: E2 0E 00 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: E2 0E 00 9B 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 03 [14:44:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:44:55]wFMCommunicate OK [14:44:55]SAM_PROTO_GetShiftState done [14:44:55]FM_GetShiftState done [14:44:55]req_shift_opened done [14:44:55]requested_item shift.open_date is exist - process it [14:44:55]req_shift_open_date [14:44:55]req_shift_open_date done [14:44:55]produce_requested_data done [14:44:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188764,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:44:55]process_action_free close_receipt [14:44:55]json_value_free [14:44:55]json_value_free done [14:44:55]process_json_proto returns [14:44:55]Send response to host [14:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188764,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:44:55]free response buf [14:44:55]execute_script done [14:44:55]execute_script returns [14:44:55]free content buf [14:44:55]Sock 7.Close socket [14:44:55]Sock 7.Thread stoped [14:45:53]accept exits with 10 [14:45:53]New connection [14:45:53]New thread 3067350372 created [14:45:53]Thread 3067207012 joined [14:45:53]Waiting for new connection... [14:45:53] Sock 10.Parse request [14:45:53]Sock 10.Check first char [14:45:53]Sock 10.First char is OK [14:45:53]request: POST /json_proto HTTP/1.0 [14:45:53]Method: POST [14:45:53]URL: /json_proto [14:45:53]Method is POST - this is cgi request [14:45:53]url: /json_proto [14:45:53]query_string will be loaded in cgi processing [14:45:53]execute_cgi json_proto POST (null) [14:45:53]execute_cgi path=json_proto method=POST [14:45:53]POST find Content-Length [14:45:53]Host: 172.17.42.131:8080 [14:45:53]Content-Length: 816 [14:45:53]Content-Type: application/json [14:45:53] [14:45:53]POST finish read [14:45:53]Found Content-Length = 816 [14:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:53]execute_script... [14:45:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:53]POST & json_proto [14:45:53]process_json_proto [14:45:53]json parsed OK: [14:45:53]protocol is kg_v1.0 [14:45:53]action value=close_receipt [14:45:53]process_action close_receipt [14:45:53]cmd_close_receipt [14:45:53]MH_GetDate [14:45:53]Write to MH i2c: F0 00 00 9C 03 8E [14:45:53]Write i2c OK [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: F0 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: F0 09 00 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: F0 09 00 9C 03 00 22 0C 19 67 A0 18 CA 66 2D [14:45:53]GetLastDocTimeStamp 1729694691 [14:45:53]current date 1729694754 [14:45:53]FM_GetShiftState [14:45:53]SAM_PROTO_GetShiftState [14:45:53]wFMCommunicate request_size=4 [14:45:53]MH_SAM_APDU [14:45:53]CAPDU: 80 13 01 00 [14:45:53]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [14:45:53]Write i2c OK [14:45:53]MH_I2C_Read... [14:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:53]Read from MH i2c: E2 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: E2 0E 00 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 05 [14:45:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:45:53]wFMCommunicate OK [14:45:53]SAM_PROTO_GetShiftState done [14:45:53]FM_GetShiftState done [14:45:53]opened in 1729642525 [14:45:53]opened+sec_in_day 1729728925 [14:45:53]quantity*price = 50041 [14:45:53]sum+1 = 50042 [14:45:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 223 23.10.2024 14:45 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188765 ФПД: 112269873620883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188765&fm=112269873620883&tin=02508201610067®Number=0000000000100030&sum=50041 [14:45:54]StoreToDocumentArchive [14:45:54]shift 462 fd 188765 [14:45:54]save to /storage/0462/doc_00188765 [14:45:54]save last doc name /storage/0462/doc_00188765 to /storage/kkm_last_doc_name [14:45:54]save OK [14:45:54]Clear old archive folders... [14:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:54]tlvbuf is 01109500 [14:45:54]SAM_PROTO_ClearQueue [14:45:54]wFMCommunicate request_size=4 [14:45:54]MH_SAM_APDU [14:45:54]CAPDU: 80 09 00 00 [14:45:54]Write to MH i2c: E2 08 00 AA 03 80 09 00 00 00 00 00 00 1F [14:45:54]OFD Sender: Processing packet 188762 [packets to send 1064, broken 1061] [14:45:54]ProducePacketName [14:45:54]name=ofd_packets/00188762 [14:45:54]OFD Sender: To server: pG, [14:45:54]CommunicateWithHost lk.salyk.kg:30040 [14:45:54]ConnectInit lk.salyk.kg [14:45:54]Write i2c OK [14:45:54]MH_I2C_Read... [14:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:54]Read from MH i2c: E2 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 03 00 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [14:45:54]RAPDU: 90 00 [14:45:54]wFMCommunicate OK [14:45:54]SAM_PROTO_ClearQueue done [14:45:54]KKMCreateOFDPacket [14:45:54]OFDProtocolAddRootSTLVToBuf [14:45:54]FM_MakeSignedData [14:45:54]FM_MakeSignedData [14:45:54]SAM_PROTO_SignData [14:45:54]wFMCommunicate request_size=4 [14:45:54]MH_SAM_APDU [14:45:54]CAPDU: 80 0D 01 02 [14:45:54]Write to MH i2c: E2 08 00 AB 03 80 0D 01 02 00 00 00 00 27 [14:45:54]Write i2c OK [14:45:54]MH_I2C_Read... [14:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:54]Read from MH i2c: E2 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 03 00 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [14:45:54]RAPDU: 90 00 [14:45:54]wFMCommunicate OK [14:45:54]wFMCommunicate request_size=255 [14:45:54]MH_SAM_APDU [14:45:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 22 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E1 02 00 35 04 06 00 66 [14:45:54]Write to MH i2c: E2 02 01 AC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 22 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E1 02 00 35 04 06 00 66 00 00 EE [14:45:54]Write i2c OK [14:45:54]MH_I2C_Read... [14:45:54]Connected sock=9 [14:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F2 59 04 01 45 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 3B 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E1 02 00 35 04 06 00 95 33 12 7D FE B6 30 26 89 F3 B2 0B 57 24 [14:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:54]Read from MH i2c: E2 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 03 00 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [14:45:54]RAPDU: 90 00 [14:45:54]wFMCommunicate OK [14:45:54]wFMCommunicate request_size=10 [14:45:54]MH_SAM_APDU [14:45:54]CAPDU: 80 0D 02 02 05 1B DD EF A7 93 [14:45:54]Write to MH i2c: E2 0D 00 AD 03 80 0D 02 02 05 00 1B DD EF A7 93 00 00 55 [14:45:54]Write i2c OK [14:45:54]MH_I2C_Read... [14:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:55]Read from MH i2c: E2 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: E2 03 00 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [14:45:55]RAPDU: 90 00 [14:45:55]wFMCommunicate OK [14:45:55]wFMCommunicate request_size=4 [14:45:55]MH_SAM_APDU [14:45:55]CAPDU: 80 0D 03 02 [14:45:55]Write to MH i2c: E2 08 00 AE 03 80 0D 03 02 00 00 00 00 2C [14:45:55]Write i2c OK [14:45:55]MH_I2C_Read... [14:45:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:55]Read from MH i2c: E2 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: E2 0B 00 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: E2 0B 00 AE 03 00 1D 73 0D 93 31 0B 21 A5 90 00 5F [14:45:55]RAPDU: 1D 73 0D 93 31 0B 21 A5 90 00 [14:45:55]wFMCommunicate OK [14:45:55]SAM_PROTO_SignData done [14:45:55]FM_MakeSignedData done [14:45:55]CreateOFDProtocolMessage [14:45:55]wFMCommunicate request_size=4 [14:45:55]MH_SAM_APDU [14:45:55]CAPDU: 80 11 00 00 [14:45:55]Write to MH i2c: E2 08 00 AF 03 80 11 00 00 00 00 00 00 2C [14:45:55]Write i2c OK [14:45:55]MH_I2C_Read... [14:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:55]Read from MH i2c: E2 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: E2 17 00 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: E2 17 00 AF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [14:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:45:55]wFMCommunicate OK [14:45:55]CreateOFDProtocolMessage done [14:45:55]OFDSenderStorePacket 188765 [14:45:55]StoreOFDPacket docnum=188765 [14:45:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A D2 07 01 A3 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 22 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E1 02 00 35 04 06 00 66 1B DD EF A7 93 1D 73 0D 93 31 0B 21 A5 [14:45:55]CheckFolder [14:45:55]dirname=/storage/ofd_packets [14:45:55]CheckFolder done [14:45:55]ProducePacketName [14:45:55]name=ofd_packets/00188765 [14:45:55]NVStorageSaveData ofd_packets/00188765 [14:45:55]File name is /storage/ofd_packets/00188765 [14:45:55]Write 301 bytes [14:45:55]NVStorageSaveData done [14:45:55]OFDSenderStorePacket done [14:45:55]KKMCreateOFDPacket done [14:45:55]NVStorageSaveData kkm_last_timestamp [14:45:55]File name is /storage/kkm_last_timestamp [14:45:55]Write 4 bytes [14:45:55]NVStorageSaveData done [14:45:55]ExternCall_PrintAddStr [14:45:55]wPrintStart [14:45:55]Write to MH i2c: 01 00 00 B0 03 B3 [14:45:55]Write i2c OK [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: 01 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: 01 07 00 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: 01 07 00 B0 03 00 00 00 00 00 FF 0F C8 [14:45:55]RasterBufferAndPrint [14:45:55]line Счет N : (1)210825 [14:45:55]line ИНН: 02508201610067 [14:45:55]line Контрольно-Кассовый Чек [14:45:55]line ПРОДАЖА [14:45:55]line ТРК (МРК, ГНК) : 32 [14:45:55]line Товар: 2710124130 [14:45:55]line Аи-92-К-3 [14:45:55]line 7.480 * 66.90 [14:45:55]line = 500.41 [14:45:55]line НДС 12% НСП 1% [14:45:55]line > о реализуемом товаре [14:45:55]line ИТОГО: 500.41 [14:45:55]line НСП 1% : 4.43 [14:45:55]line НДС 12% : 53.14 [14:45:55]line Наличными: 0.00 [14:45:55]line Безнал.: 500.41 [14:45:55]line Место: АЗС № 86 "Партнер Нефть" [14:45:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:45:55]line СНО: Общий режим [14:45:55]line Чек 223 23.10.2024 14:45 [14:45:55]line Смена: 462 ФФД: 1.0 [14:45:55]line ЗНМ: 0300000155 [14:45:55]line РНМ: 0000000000100030 [14:45:55]line Версия ККМ: 001 [14:45:55]line Платежная система: Бакай Банк [14:45:55]line ФМ: 0000000000965340 [14:45:55]line ФД: 188765 [14:45:55]line ФПД: 112269873620883 [14:45:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188765&fm=112269873620883&tin=02508201610067®Number=0000000000100030&sum=50041 [14:45:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 18 BC 47 00 F6 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 36 35 33 34 30 10 04 04 00 5A E1 02 00 F4 03 04 00 0B B6 18 67 B6 04 01 00 00 73 6E 11 4F 5B E7 37 1C [14:45:55]CommunicateWithHost err = 0 [14:45:55]CheckOFDResponse [14:45:55]1017 (14) - 77093643461234 [14:45:55]1041 (16) - 0000000000965340 [14:45:55]1040 (4) - 188762 [14:45:55]1012 (4) - 23.10.2024 08:38 [14:45:55]1206 (1) - 0 [14:45:55]OFD Sender: Remove packet 188762 [14:45:55]ProducePacketName [14:45:55]name=ofd_packets/00188762 [14:45:55]NVStorageDeleteData [14:45:55]written 0, free lines is 4095 [14:45:55]Write to MH i2c: 01 00 00 DA 03 DD [14:45:55]Write i2c OK [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: 01 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: 01 07 00 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 6C 0C 5C [14:45:55]RasterBufferAndPrint [14:45:55]line [14:45:55]line [14:45:55]line [14:45:55]line [14:45:55]line [14:45:55]written 0, free lines is 3184 [14:45:55]MH_Cut [14:45:55]Write to MH i2c: D1 01 00 E1 03 01 B6 [14:45:55]Write i2c OK [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: D1 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: D1 01 00 [14:45:55]MH_I2C_Read... [14:45:55]Read from MH i2c: D1 01 00 E1 03 00 B5 [14:45:55]Write to MH i2c: 01 00 00 E2 03 E5 [14:45:55]Write i2c OK [14:45:55]MH_I2C_Read... [14:45:56]OFD Sender: Processing packet 188763 [packets to send 1064, broken 1061] [14:45:56]ProducePacketName [14:45:56]name=ofd_packets/00188763 [14:45:56]OFD Sender: To server: pG, [14:45:56]CommunicateWithHost lk.salyk.kg:30040 [14:45:56]ConnectInit lk.salyk.kg [14:45:56]Connected sock=9 [14:45:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CA DF 07 01 AA 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 77 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E1 02 00 35 04 06 00 D8 43 C9 0E E8 C8 79 E8 5B C4 73 E3 97 0E [14:45:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 46 F3 47 00 7A 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E1 02 00 F4 03 04 00 0D B6 18 67 B6 04 01 00 00 5E 66 E8 06 48 2E 70 EA [14:45:56]CommunicateWithHost err = 0 [14:45:56]CheckOFDResponse [14:45:56]1017 (14) - 77093643461234 [14:45:56]1041 (16) - 0000000000965340 [14:45:56]1040 (4) - 188763 [14:45:56]1012 (4) - 23.10.2024 08:38 [14:45:56]1206 (1) - 0 [14:45:56]OFD Sender: Remove packet 188763 [14:45:56]ProducePacketName [14:45:56]name=ofd_packets/00188763 [14:45:56]NVStorageDeleteData [14:45:57]OFD Sender: Processing packet 188764 [packets to send 1063, broken 1061] [14:45:57]ProducePacketName [14:45:57]name=ofd_packets/00188764 [14:45:57]OFD Sender: To server: pG, [14:45:57]CommunicateWithHost lk.salyk.kg:30040 [14:45:57]ConnectInit lk.salyk.kg [14:45:57]*** Cut start [14:45:57]*** Partial cut [14:45:57]*** CUTSNS_PIN = 1 [14:45:57]*** CUTSNS_PIN = 0 [14:45:57]Connected sock=9 [14:45:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BF 1E 07 01 07 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E3 0B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E1 02 00 35 04 06 00 C5 A9 75 D9 D2 0A A4 E5 71 5B 25 07 72 9C [14:45:57]*** Brake cut motor [14:45:57]Read from MH i2c: 01 [14:45:57]MH_I2C_Read... [14:45:57]*** Stop cut motor [14:45:57]*** Cut end [14:45:57]Read from MH i2c: 01 07 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 FF 0F FA [14:45:57]process_action close_receipt done [14:45:57]requested_data is exist [14:45:57]produce_requested_data [14:45:57]requested_item fm.sn is exist - process it [14:45:57]wFMCommunicate request_size=4 [14:45:57]MH_SAM_APDU [14:45:57]CAPDU: 80 11 00 00 [14:45:57]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:57]Read from MH i2c: E2 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 17 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [14:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:45:57]wFMCommunicate OK [14:45:57]requested_item fd.num is exist - process it [14:45:57]SAM_PROTO_GetFieldsCounters [14:45:57]wFMCommunicate request_size=4 [14:45:57]MH_SAM_APDU [14:45:57]CAPDU: 80 13 00 00 [14:45:57]Write to MH i2c: E2 08 00 E4 03 80 13 00 00 00 00 00 00 63 [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:58]Read from MH i2c: E2 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: E2 62 00 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: E2 62 00 E4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [14:45:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:58]wFMCommunicate OK [14:45:58]SAM_PROTO_GetFieldsCounters done [14:45:58]requested_item shift.num is exist - process it [14:45:58]requested_item shift.opened is exist - process it [14:45:58]req_shift_opened [14:45:58]FM_GetShiftState [14:45:58]SAM_PROTO_GetShiftState [14:45:58]wFMCommunicate request_size=4 [14:45:58]MH_SAM_APDU [14:45:58]CAPDU: 80 13 01 00 [14:45:58]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [14:45:58]Write i2c OK [14:45:58]MH_I2C_Read... [14:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:58]Read from MH i2c: E2 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: E2 0E 00 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4D [14:45:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:45:58]wFMCommunicate OK [14:45:58]SAM_PROTO_GetShiftState done [14:45:58]FM_GetShiftState done [14:45:58]req_shift_opened done [14:45:58]requested_item shift.open_date is exist - process it [14:45:58]req_shift_open_date [14:45:58]req_shift_open_date done [14:45:58]produce_requested_data done [14:45:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188765,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:45:58]process_action_free close_receipt [14:45:58]json_value_free [14:45:58]json_value_free done [14:45:58]process_json_proto returns [14:45:58]Send response to host [14:45:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188765,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:45:58]free response buf [14:45:58]execute_script done [14:45:58]execute_script returns [14:45:58]free content buf [14:45:58]Sock 10.Close socket [14:45:58]Sock 10.Thread stoped [14:45:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3A F1 47 00 63 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E1 02 00 F4 03 04 00 0E B6 18 67 B6 04 01 00 00 60 68 87 AD BD 75 7F F5 [14:45:58]CommunicateWithHost err = 0 [14:45:58]CheckOFDResponse [14:45:58]1017 (14) - 77093643461234 [14:45:58]1041 (16) - 0000000000965340 [14:45:58]1040 (4) - 188764 [14:45:58]1012 (4) - 23.10.2024 08:38 [14:45:58]1206 (1) - 0 [14:45:58]OFD Sender: Remove packet 188764 [14:45:58]ProducePacketName [14:45:58]name=ofd_packets/00188764 [14:45:58]NVStorageDeleteData [14:45:58]OFD Sender: Processing packet 188765 [packets to send 1062, broken 1061] [14:45:58]ProducePacketName [14:45:58]name=ofd_packets/00188765 [14:45:58]OFD Sender: To server: pG, [14:45:58]CommunicateWithHost lk.salyk.kg:30040 [14:45:58]ConnectInit lk.salyk.kg [14:45:58]Connected sock=9 [14:45:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A D2 07 01 A3 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 22 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E1 02 00 35 04 06 00 66 1B DD EF A7 93 1D 73 0D 93 31 0B 21 A5 [14:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 55 FD 47 00 D3 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E1 02 00 F4 03 04 00 0F B6 18 67 B6 04 01 00 00 4B CA B9 13 E1 59 74 D7 [14:45:59]CommunicateWithHost err = 0 [14:45:59]CheckOFDResponse [14:45:59]1017 (14) - 77093643461234 [14:45:59]1041 (16) - 0000000000965340 [14:45:59]1040 (4) - 188765 [14:45:59]1012 (4) - 23.10.2024 08:38 [14:45:59]1206 (1) - 0 [14:45:59]OFD Sender: Remove packet 188765 [14:45:59]ProducePacketName [14:45:59]name=ofd_packets/00188765 [14:45:59]NVStorageDeleteData [14:45:59]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:10]recv_with_timeout no data received [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:19]accept exits with 7 [14:48:19]New connection [14:48:19]New thread 3067207012 created [14:48:19]Thread 3067350372 joined [14:48:19]Waiting for new connection... [14:48:19] Sock 7.Parse request [14:48:19]Sock 7.Check first char [14:48:19]Sock 7.First char is OK [14:48:19]request: POST /json_proto HTTP/1.0 [14:48:19]Method: POST [14:48:19]URL: /json_proto [14:48:19]Method is POST - this is cgi request [14:48:19]url: /json_proto [14:48:19]query_string will be loaded in cgi processing [14:48:19]execute_cgi json_proto POST (null) [14:48:19]execute_cgi path=json_proto method=POST [14:48:19]POST find Content-Length [14:48:19]Host: 172.17.42.131:8080 [14:48:19]Content-Length: 677 [14:48:19]Content-Type: application/json [14:48:19] [14:48:19]POST finish read [14:48:19]Found Content-Length = 677 [14:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:19]execute_script... [14:48:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:19]POST & json_proto [14:48:19]process_json_proto [14:48:19]json parsed OK: [14:48:19]protocol is kg_v1.0 [14:48:19]action value=close_receipt [14:48:19]process_action close_receipt [14:48:19]cmd_close_receipt [14:48:19]MH_GetDate [14:48:19]Write to MH i2c: F0 00 00 E6 03 D8 [14:48:19]Write i2c OK [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: F0 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: F0 09 00 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: F0 09 00 E6 03 00 B4 0C 19 67 A0 18 CA 66 09 [14:48:19]GetLastDocTimeStamp 1729694754 [14:48:19]current date 1729694900 [14:48:19]FM_GetShiftState [14:48:19]SAM_PROTO_GetShiftState [14:48:19]wFMCommunicate request_size=4 [14:48:19]MH_SAM_APDU [14:48:19]CAPDU: 80 13 01 00 [14:48:19]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [14:48:19]Write i2c OK [14:48:19]MH_I2C_Read... [14:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:19]Read from MH i2c: E2 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: E2 0E 00 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4F [14:48:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:48:19]wFMCommunicate OK [14:48:19]SAM_PROTO_GetShiftState done [14:48:19]FM_GetShiftState done [14:48:19]opened in 1729642525 [14:48:19]opened+sec_in_day 1729728925 [14:48:19]quantity*price = 20003 [14:48:19]sum+1 = 20004 [14:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 224 23.10.2024 14:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188766 ФПД: 176900891509854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144820&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188766&fm=176900891509854&tin=02508201610067®Number=0000000000100030&sum=20000 [14:48:20]StoreToDocumentArchive [14:48:20]shift 462 fd 188766 [14:48:20]save to /storage/0462/doc_00188766 [14:48:20]save last doc name /storage/0462/doc_00188766 to /storage/kkm_last_doc_name [14:48:20]save OK [14:48:20]Clear old archive folders... [14:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:20]tlvbuf is 01122F50 [14:48:20]SAM_PROTO_ClearQueue [14:48:20]wFMCommunicate request_size=4 [14:48:20]MH_SAM_APDU [14:48:20]CAPDU: 80 09 00 00 [14:48:20]Write to MH i2c: E2 08 00 F4 03 80 09 00 00 00 00 00 00 69 [14:48:20]Write i2c OK [14:48:20]MH_I2C_Read... [14:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:20]Read from MH i2c: E2 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 03 00 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [14:48:20]RAPDU: 90 00 [14:48:20]wFMCommunicate OK [14:48:20]SAM_PROTO_ClearQueue done [14:48:20]KKMCreateOFDPacket [14:48:20]OFDProtocolAddRootSTLVToBuf [14:48:20]FM_MakeSignedData [14:48:20]FM_MakeSignedData [14:48:20]SAM_PROTO_SignData [14:48:20]wFMCommunicate request_size=4 [14:48:20]MH_SAM_APDU [14:48:20]CAPDU: 80 0D 01 02 [14:48:20]Write to MH i2c: E2 08 00 F5 03 80 0D 01 02 00 00 00 00 71 [14:48:20]Write i2c OK [14:48:20]MH_I2C_Read... [14:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:20]Read from MH i2c: E2 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 03 00 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [14:48:20]RAPDU: 90 00 [14:48:20]wFMCommunicate OK [14:48:20]wFMCommunicate request_size=255 [14:48:20]MH_SAM_APDU [14:48:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 B4 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E1 02 00 35 04 06 00 A0 [14:48:20]Write to MH i2c: E2 02 01 F6 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 B4 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E1 02 00 35 04 06 00 A0 00 00 76 [14:48:20]Write i2c OK [14:48:20]MH_I2C_Read... [14:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:21]Read from MH i2c: E2 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: E2 03 00 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [14:48:21]RAPDU: 90 00 [14:48:21]wFMCommunicate OK [14:48:21]wFMCommunicate request_size=10 [14:48:21]MH_SAM_APDU [14:48:21]CAPDU: 80 0D 02 02 05 E3 F2 CC 84 5E [14:48:21]Write to MH i2c: E2 0D 00 F7 03 80 0D 02 02 05 00 E3 F2 CC 84 5E 00 00 01 [14:48:21]Write i2c OK [14:48:21]MH_I2C_Read... [14:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:21]Read from MH i2c: E2 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: E2 03 00 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [14:48:21]RAPDU: 90 00 [14:48:21]wFMCommunicate OK [14:48:21]wFMCommunicate request_size=4 [14:48:21]MH_SAM_APDU [14:48:21]CAPDU: 80 0D 03 02 [14:48:21]Write to MH i2c: E2 08 00 F8 03 80 0D 03 02 00 00 00 00 76 [14:48:21]Write i2c OK [14:48:21]MH_I2C_Read... [14:48:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:21]Read from MH i2c: E2 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: E2 0B 00 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: E2 0B 00 F8 03 00 DB EB 53 87 A0 57 3C A3 90 00 ED [14:48:21]RAPDU: DB EB 53 87 A0 57 3C A3 90 00 [14:48:21]wFMCommunicate OK [14:48:21]SAM_PROTO_SignData done [14:48:21]FM_MakeSignedData done [14:48:21]CreateOFDProtocolMessage [14:48:21]wFMCommunicate request_size=4 [14:48:21]MH_SAM_APDU [14:48:21]CAPDU: 80 11 00 00 [14:48:21]Write to MH i2c: E2 08 00 F9 03 80 11 00 00 00 00 00 00 76 [14:48:21]Write i2c OK [14:48:21]MH_I2C_Read... [14:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:21]Read from MH i2c: E2 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: E2 17 00 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: E2 17 00 F9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [14:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:48:21]wFMCommunicate OK [14:48:21]CreateOFDProtocolMessage done [14:48:21]OFDSenderStorePacket 188766 [14:48:21]StoreOFDPacket docnum=188766 [14:48:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 0A 07 01 C0 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 B4 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E1 02 00 35 04 06 00 A0 E3 F2 CC 84 5E DB EB 53 87 A0 57 3C A3 [14:48:21]CheckFolder [14:48:21]dirname=/storage/ofd_packets [14:48:21]CheckFolder done [14:48:21]ProducePacketName [14:48:21]name=ofd_packets/00188766 [14:48:21]NVStorageSaveData ofd_packets/00188766 [14:48:21]File name is /storage/ofd_packets/00188766 [14:48:21]Write 301 bytes [14:48:21]NVStorageSaveData done [14:48:21]OFDSenderStorePacket done [14:48:21]KKMCreateOFDPacket done [14:48:21]NVStorageSaveData kkm_last_timestamp [14:48:21]File name is /storage/kkm_last_timestamp [14:48:21]Write 4 bytes [14:48:21]NVStorageSaveData done [14:48:21]ExternCall_PrintAddStr [14:48:21]wPrintStart [14:48:21]Write to MH i2c: 01 00 00 FA 03 FD [14:48:21]Write i2c OK [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: 01 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: 01 07 00 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [14:48:21]RasterBufferAndPrint [14:48:21]line Счет N : (1)210827 [14:48:21]line ИНН: 02508201610067 [14:48:21]line Контрольно-Кассовый Чек [14:48:21]line ПРОДАЖА [14:48:21]line ТРК (МРК, ГНК) : 22 [14:48:21]line Товар: 2710124130 [14:48:21]line Аи-92-К-3 [14:48:21]line 2.990 * 66.90 [14:48:21]line = 200.03 [14:48:21]line НДС 12% НСП 1% [14:48:21]line > о реализуемом товаре [14:48:21]line ОКРУГЛЕНИЕ: -0.03 [14:48:21]line ИТОГО: 200.00 [14:48:21]line Внесено: 200.00 [14:48:21]line СДАЧА: 0.00 [14:48:21]line НСП 1% : 1.77 [14:48:21]line НДС 12% : 21.24 [14:48:21]line Наличными: 200.00 [14:48:21]line Безнал.: 0.00 [14:48:21]line Место: АЗС № 86 "Партнер Нефть" [14:48:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:48:21]line СНО: Общий режим [14:48:21]line Чек 224 23.10.2024 14:48 [14:48:21]line Смена: 462 ФФД: 1.0 [14:48:21]line ЗНМ: 0300000155 [14:48:21]line РНМ: 0000000000100030 [14:48:21]line Версия ККМ: 001 [14:48:21]line ФМ: 0000000000965340 [14:48:21]line ФД: 188766 [14:48:21]line ФПД: 176900891509854 [14:48:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144820&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188766&fm=176900891509854&tin=02508201610067®Number=0000000000100030&sum=20000 [14:48:21]written 0, free lines is 4095 [14:48:21]OFD Sender: Processing packet 188766 [packets to send 1062, broken 1061] [14:48:21]ProducePacketName [14:48:21]name=ofd_packets/00188766 [14:48:21]OFD Sender: To server: pG, [14:48:21]CommunicateWithHost lk.salyk.kg:30040 [14:48:21]ConnectInit lk.salyk.kg [14:48:21]Connected sock=10 [14:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 0A 07 01 C0 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 B4 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E1 02 00 35 04 06 00 A0 E3 F2 CC 84 5E DB EB 53 87 A0 57 3C A3 [14:48:21]Write to MH i2c: 01 00 00 25 04 29 [14:48:21]Write i2c OK [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: 01 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: 01 07 00 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 53 0C 8F [14:48:21]RasterBufferAndPrint [14:48:21]line [14:48:21]line [14:48:21]line [14:48:21]line [14:48:21]line [14:48:21]written 0, free lines is 3159 [14:48:21]MH_Cut [14:48:21]Write to MH i2c: D1 01 00 2C 04 01 02 [14:48:21]Write i2c OK [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: D1 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: D1 01 00 [14:48:21]MH_I2C_Read... [14:48:21]Read from MH i2c: D1 01 00 2C 04 00 01 [14:48:21]Write to MH i2c: 01 00 00 2D 04 31 [14:48:21]Write i2c OK [14:48:21]MH_I2C_Read... [14:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9F 38 47 00 DD 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E1 02 00 F4 03 04 00 9E B6 18 67 B6 04 01 00 00 3A 3A 56 52 F2 7F 15 EE [14:48:21]CommunicateWithHost err = 0 [14:48:21]CheckOFDResponse [14:48:21]1017 (14) - 77093643461234 [14:48:21]1041 (16) - 0000000000965340 [14:48:21]1040 (4) - 188766 [14:48:21]1012 (4) - 23.10.2024 08:41 [14:48:21]1206 (1) - 0 [14:48:21]OFD Sender: Remove packet 188766 [14:48:21]ProducePacketName [14:48:21]name=ofd_packets/00188766 [14:48:21]NVStorageDeleteData [14:48:22]OFD Sender: No OFD packet to send [14:48:22]*** Cut start [14:48:22]*** Partial cut [14:48:22]*** CUTSNS_PIN = 1 [14:48:23]*** CUTSNS_PIN = 0 [14:48:23]*** Brake cut motor [14:48:23]Read from MH i2c: 01 [14:48:23]MH_I2C_Read... [14:48:23]*** Stop cut motor [14:48:23]*** Cut end [14:48:23]Read from MH i2c: 01 07 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 FF 0F 46 [14:48:23]process_action close_receipt done [14:48:23]requested_data is exist [14:48:23]produce_requested_data [14:48:23]requested_item fm.sn is exist - process it [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 11 00 00 [14:48:23]Write to MH i2c: E2 08 00 2E 04 80 11 00 00 00 00 00 00 AC [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 17 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 17 00 2E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [14:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:48:23]wFMCommunicate OK [14:48:23]requested_item fd.num is exist - process it [14:48:23]SAM_PROTO_GetFieldsCounters [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 13 00 00 [14:48:23]Write to MH i2c: E2 08 00 2F 04 80 13 00 00 00 00 00 00 AF [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 62 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 62 00 2F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [14:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:23]wFMCommunicate OK [14:48:23]SAM_PROTO_GetFieldsCounters done [14:48:23]requested_item shift.num is exist - process it [14:48:23]requested_item shift.opened is exist - process it [14:48:23]req_shift_opened [14:48:23]FM_GetShiftState [14:48:23]SAM_PROTO_GetShiftState [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 13 01 00 [14:48:23]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 0E 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 99 [14:48:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:48:23]wFMCommunicate OK [14:48:23]SAM_PROTO_GetShiftState done [14:48:23]FM_GetShiftState done [14:48:23]req_shift_opened done [14:48:23]requested_item shift.open_date is exist - process it [14:48:23]req_shift_open_date [14:48:23]req_shift_open_date done [14:48:23]produce_requested_data done [14:48:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188766,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:48:23]process_action_free close_receipt [14:48:23]json_value_free [14:48:23]json_value_free done [14:48:23]process_json_proto returns [14:48:23]Send response to host [14:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188766,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:48:23]free response buf [14:48:23]execute_script done [14:48:23]execute_script returns [14:48:23]free content buf [14:48:23]Sock 7.Close socket [14:48:23]Sock 7.Thread stoped [14:48:24]accept exits with 9 [14:48:24]New connection [14:48:24]New thread 3067350372 created [14:48:24]Thread 3067207012 joined [14:48:24]Waiting for new connection... [14:48:24] Sock 9.Parse request [14:48:24]Sock 9.Check first char [14:48:24]Sock 9.First char is OK [14:48:24]request: POST /json_proto HTTP/1.0 [14:48:24]Method: POST [14:48:24]URL: /json_proto [14:48:24]Method is POST - this is cgi request [14:48:24]url: /json_proto [14:48:24]query_string will be loaded in cgi processing [14:48:24]execute_cgi json_proto POST (null) [14:48:24]execute_cgi path=json_proto method=POST [14:48:24]POST find Content-Length [14:48:24]Host: 172.17.42.131:8080 [14:48:24]Content-Length: 754 [14:48:24]Content-Type: application/json [14:48:24] [14:48:24]POST finish read [14:48:24]Found Content-Length = 754 [14:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30113510", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:24]execute_script... [14:48:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30113510", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:24]POST & json_proto [14:48:24]process_json_proto [14:48:24]json parsed OK: [14:48:24]protocol is kg_v1.0 [14:48:24]action value=close_receipt [14:48:24]process_action close_receipt [14:48:24]cmd_close_receipt [14:48:24]MH_GetDate [14:48:24]Write to MH i2c: F0 00 00 31 04 24 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 09 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 09 00 31 04 00 B8 0C 19 67 A0 18 CA 66 59 [14:48:24]GetLastDocTimeStamp 1729694900 [14:48:24]current date 1729694904 [14:48:24]FM_GetShiftState [14:48:24]SAM_PROTO_GetShiftState [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 13 01 00 [14:48:24]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0E 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9B [14:48:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:48:24]wFMCommunicate OK [14:48:24]SAM_PROTO_GetShiftState done [14:48:24]FM_GetShiftState done [14:48:24]opened in 1729642525 [14:48:24]opened+sec_in_day 1729728925 [14:48:24]quantity*price = 0 [14:48:24]sum+1 = 1 [14:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 225 23.10.2024 14:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30113510 ФМ: 0000000000965340 ФД: 188767 ФПД: 139944190397828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144824&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188767&fm=139944190397828&tin=02508201610067®Number=0000000000100030&sum=0 [14:48:25]StoreToDocumentArchive [14:48:25]shift 462 fd 188767 [14:48:25]save to /storage/0462/doc_00188767 [14:48:25]save last doc name /storage/0462/doc_00188767 to /storage/kkm_last_doc_name [14:48:25]save OK [14:48:25]Clear old archive folders... [14:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:25]tlvbuf is 01135D10 [14:48:25]SAM_PROTO_ClearQueue [14:48:25]wFMCommunicate request_size=4 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 09 00 00 [14:48:25]Write to MH i2c: E2 08 00 3F 04 80 09 00 00 00 00 00 00 B5 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [14:48:25]RAPDU: 90 00 [14:48:25]wFMCommunicate OK [14:48:25]SAM_PROTO_ClearQueue done [14:48:25]KKMCreateOFDPacket [14:48:25]OFDProtocolAddRootSTLVToBuf [14:48:25]FM_MakeSignedData [14:48:25]FM_MakeSignedData [14:48:25]SAM_PROTO_SignData [14:48:25]wFMCommunicate request_size=4 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 0D 01 02 [14:48:25]Write to MH i2c: E2 08 00 40 04 80 0D 01 02 00 00 00 00 BD [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [14:48:25]RAPDU: 90 00 [14:48:25]wFMCommunicate OK [14:48:25]wFMCommunicate request_size=255 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 B8 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E1 02 00 35 04 06 00 7F [14:48:25]Write to MH i2c: E2 02 01 41 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 B8 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E1 02 00 35 04 06 00 7F 00 00 40 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [14:48:25]RAPDU: 90 00 [14:48:25]wFMCommunicate OK [14:48:25]wFMCommunicate request_size=10 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 0D 02 02 05 47 4B C1 CD 84 [14:48:25]Write to MH i2c: E2 0D 00 42 04 80 0D 02 02 05 00 47 4B C1 CD 84 00 00 6E [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [14:48:26]RAPDU: 90 00 [14:48:26]wFMCommunicate OK [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 0D 03 02 [14:48:26]Write to MH i2c: E2 08 00 43 04 80 0D 03 02 00 00 00 00 C2 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0B 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0B 00 43 04 00 68 B4 6C 50 D4 20 3D B6 90 00 82 [14:48:26]RAPDU: 68 B4 6C 50 D4 20 3D B6 90 00 [14:48:26]wFMCommunicate OK [14:48:26]SAM_PROTO_SignData done [14:48:26]FM_MakeSignedData done [14:48:26]CreateOFDProtocolMessage [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 11 00 00 [14:48:26]Write to MH i2c: E2 08 00 44 04 80 11 00 00 00 00 00 00 C2 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 17 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 17 00 44 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [14:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:48:26]wFMCommunicate OK [14:48:26]CreateOFDProtocolMessage done [14:48:26]OFDSenderStorePacket 188767 [14:48:26]StoreOFDPacket docnum=188767 [14:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 23 07 01 33 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 B8 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E1 02 00 35 04 06 00 7F 47 4B C1 CD 84 68 B4 6C 50 D4 20 3D B6 [14:48:26]CheckFolder [14:48:26]dirname=/storage/ofd_packets [14:48:26]CheckFolder done [14:48:26]ProducePacketName [14:48:26]name=ofd_packets/00188767 [14:48:26]NVStorageSaveData ofd_packets/00188767 [14:48:26]File name is /storage/ofd_packets/00188767 [14:48:26]Write 301 bytes [14:48:26]NVStorageSaveData done [14:48:26]OFDSenderStorePacket done [14:48:26]KKMCreateOFDPacket done [14:48:26]NVStorageSaveData kkm_last_timestamp [14:48:26]File name is /storage/kkm_last_timestamp [14:48:26]Write 4 bytes [14:48:26]NVStorageSaveData done [14:48:26]ExternCall_PrintAddStr [14:48:26]wPrintStart [14:48:26]Write to MH i2c: 01 00 00 45 04 49 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [14:48:26]RasterBufferAndPrint [14:48:26]line Счет N : (1)210826 [14:48:26]line ИНН: 02508201610067 [14:48:26]line Контрольно-Кассовый Чек [14:48:26]line ПРОДАЖА [14:48:26]line ТРК (МРК, ГНК) : 13 [14:48:26]line Товар: 2710124500 [14:48:26]line Аи-95-К-3 [14:48:26]line 40.000 * 0.00 [14:48:26]line = 0.00 [14:48:26]line НДС 12% НСП 1% [14:48:26]line > о реализуемом товаре [14:48:26]line ИТОГО: 0.00 [14:48:26]line НСП 1% : 0.00 [14:48:26]line НДС 12% : 0.00 [14:48:26]line Наличными: 0.00 [14:48:26]line Безнал.: 0.00 [14:48:26]line Место: АЗС № 86 "Партнер Нефть" [14:48:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:48:26]line СНО: Общий режим [14:48:26]line Чек 225 23.10.2024 14:48 [14:48:26]line Смена: 462 ФФД: 1.0 [14:48:26]line ЗНМ: 0300000155 [14:48:26]line РНМ: 0000000000100030 [14:48:26]line Версия ККМ: 001 [14:48:26]line Талоны: ТК ГПНА Online [14:48:26]line 30113510 [14:48:26]line ФМ: 0000000000965340 [14:48:26]line ФД: 188767 [14:48:26]line ФПД: 139944190397828 [14:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144824&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188767&fm=139944190397828&tin=02508201610067®Number=0000000000100030&sum=0 [14:48:26]OFD Sender: Processing packet 188767 [packets to send 1062, broken 1061] [14:48:26]ProducePacketName [14:48:26]name=ofd_packets/00188767 [14:48:26]OFD Sender: To server: pG, [14:48:26]CommunicateWithHost lk.salyk.kg:30040 [14:48:26]ConnectInit lk.salyk.kg [14:48:26]written 0, free lines is 4095 [14:48:27]Write to MH i2c: 01 00 00 6F 04 73 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 07 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 75 0C FB [14:48:27]RasterBufferAndPrint [14:48:27]line [14:48:27]line [14:48:27]line [14:48:27]line [14:48:27]line [14:48:27]written 0, free lines is 3198 [14:48:27]MH_Cut [14:48:27]Write to MH i2c: D1 01 00 76 04 01 4C [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: D1 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: D1 01 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: D1 01 00 76 04 00 4B [14:48:27]Write to MH i2c: 01 00 00 77 04 7B [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]Connected sock=10 [14:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 23 07 01 33 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 B8 0C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E1 02 00 35 04 06 00 7F 47 4B C1 CD 84 68 B4 6C 50 D4 20 3D B6 [14:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 29 47 00 3E 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 36 35 33 34 30 10 04 04 00 5F E1 02 00 F4 03 04 00 A4 B6 18 67 B6 04 01 00 00 3B 96 CF 9A 20 78 64 70 [14:48:27]CommunicateWithHost err = 0 [14:48:27]CheckOFDResponse [14:48:27]1017 (14) - 77093643461234 [14:48:27]1041 (16) - 0000000000965340 [14:48:27]1040 (4) - 188767 [14:48:27]1012 (4) - 23.10.2024 08:41 [14:48:27]1206 (1) - 0 [14:48:27]OFD Sender: Remove packet 188767 [14:48:27]ProducePacketName [14:48:27]name=ofd_packets/00188767 [14:48:27]NVStorageDeleteData [14:48:28]OFD Sender: No OFD packet to send [14:48:28]*** Cut start [14:48:28]*** Partial cut [14:48:28]*** CUTSNS_PIN = 1 [14:48:28]*** CUTSNS_PIN = 0 [14:48:28]*** Brake cut motor [14:48:28]Read from MH i2c: 01 [14:48:28]MH_I2C_Read... [14:48:28]*** Stop cut motor [14:48:28]*** Cut end [14:48:28]Read from MH i2c: 01 07 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 FF 0F 90 [14:48:28]process_action close_receipt done [14:48:28]requested_data is exist [14:48:28]produce_requested_data [14:48:28]requested_item fm.sn is exist - process it [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 11 00 00 [14:48:28]Write to MH i2c: E2 08 00 78 04 80 11 00 00 00 00 00 00 F6 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 17 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 17 00 78 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 44 [14:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:48:28]wFMCommunicate OK [14:48:28]requested_item fd.num is exist - process it [14:48:28]SAM_PROTO_GetFieldsCounters [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 13 00 00 [14:48:28]Write to MH i2c: E2 08 00 79 04 80 13 00 00 00 00 00 00 F9 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:29]Read from MH i2c: E2 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 62 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 62 00 79 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [14:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:29]wFMCommunicate OK [14:48:29]SAM_PROTO_GetFieldsCounters done [14:48:29]requested_item shift.num is exist - process it [14:48:29]requested_item shift.opened is exist - process it [14:48:29]req_shift_opened [14:48:29]FM_GetShiftState [14:48:29]SAM_PROTO_GetShiftState [14:48:29]wFMCommunicate request_size=4 [14:48:29]MH_SAM_APDU [14:48:29]CAPDU: 80 13 01 00 [14:48:29]Write to MH i2c: E2 08 00 7A 04 80 13 01 00 00 00 00 00 FB [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:29]Read from MH i2c: E2 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 0E 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 0E 00 7A 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E3 [14:48:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:48:29]wFMCommunicate OK [14:48:29]SAM_PROTO_GetShiftState done [14:48:29]FM_GetShiftState done [14:48:29]req_shift_opened done [14:48:29]requested_item shift.open_date is exist - process it [14:48:29]req_shift_open_date [14:48:29]req_shift_open_date done [14:48:29]produce_requested_data done [14:48:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188767,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:48:29]process_action_free close_receipt [14:48:29]json_value_free [14:48:29]json_value_free done [14:48:29]process_json_proto returns [14:48:29]Send response to host [14:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188767,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:48:29]free response buf [14:48:29]execute_script done [14:48:29]execute_script returns [14:48:29]free content buf [14:48:29]Sock 9.Close socket [14:48:29]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:09]accept exits with 7 [14:52:09]New connection [14:52:09]New thread 3067207012 created [14:52:09]Thread 3067350372 joined [14:52:09]Waiting for new connection... [14:52:09] Sock 7.Parse request [14:52:09]Sock 7.Check first char [14:52:09]Sock 7.First char is OK [14:52:09]request: POST /json_proto HTTP/1.0 [14:52:09]Method: POST [14:52:09]URL: /json_proto [14:52:09]Method is POST - this is cgi request [14:52:09]url: /json_proto [14:52:09]query_string will be loaded in cgi processing [14:52:09]execute_cgi json_proto POST (null) [14:52:09]execute_cgi path=json_proto method=POST [14:52:09]POST find Content-Length [14:52:09]Host: 172.17.42.131:8080 [14:52:09]Content-Length: 800 [14:52:09]Content-Type: application/json [14:52:09] [14:52:09]POST finish read [14:52:09]Found Content-Length = 800 [14:52:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913693", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:09]execute_script... [14:52:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913693", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:09]POST & json_proto [14:52:09]process_json_proto [14:52:09]json parsed OK: [14:52:09]protocol is kg_v1.0 [14:52:09]action value=close_receipt [14:52:09]process_action close_receipt [14:52:09]cmd_close_receipt [14:52:09]MH_GetDate [14:52:09]Write to MH i2c: F0 00 00 7B 04 6E [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: F0 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: F0 09 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: F0 09 00 7B 04 00 9A 0D 19 67 A0 18 CA 66 86 [14:52:09]GetLastDocTimeStamp 1729694904 [14:52:09]current date 1729695130 [14:52:09]FM_GetShiftState [14:52:09]SAM_PROTO_GetShiftState [14:52:09]wFMCommunicate request_size=4 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 13 01 00 [14:52:09]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:09]Read from MH i2c: E2 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 0E 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E5 [14:52:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:52:09]wFMCommunicate OK [14:52:09]SAM_PROTO_GetShiftState done [14:52:09]FM_GetShiftState done [14:52:09]opened in 1729642525 [14:52:09]opened+sec_in_day 1729728925 [14:52:09]quantity*price = 0 [14:52:09]sum+1 = 1 [14:52:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 226 23.10.2024 14:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3913693 ФМ: 0000000000965340 ФД: 188768 ФПД: 87179995376386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145210&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188768&fm=87179995376386&tin=02508201610067®Number=0000000000100030&sum=0 [14:52:11]StoreToDocumentArchive [14:52:11]shift 462 fd 188768 [14:52:11]save to /storage/0462/doc_00188768 [14:52:11]save last doc name /storage/0462/doc_00188768 to /storage/kkm_last_doc_name [14:52:11]save OK [14:52:11]Clear old archive folders... [14:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:11]tlvbuf is 0110A090 [14:52:11]SAM_PROTO_ClearQueue [14:52:11]wFMCommunicate request_size=4 [14:52:11]MH_SAM_APDU [14:52:11]CAPDU: 80 09 00 00 [14:52:11]Write to MH i2c: E2 08 00 89 04 80 09 00 00 00 00 00 00 FF [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:11]Read from MH i2c: E2 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 03 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [14:52:11]RAPDU: 90 00 [14:52:11]wFMCommunicate OK [14:52:11]SAM_PROTO_ClearQueue done [14:52:11]KKMCreateOFDPacket [14:52:11]OFDProtocolAddRootSTLVToBuf [14:52:11]FM_MakeSignedData [14:52:11]FM_MakeSignedData [14:52:11]SAM_PROTO_SignData [14:52:11]wFMCommunicate request_size=4 [14:52:11]MH_SAM_APDU [14:52:11]CAPDU: 80 0D 01 02 [14:52:11]Write to MH i2c: E2 08 00 8A 04 80 0D 01 02 00 00 00 00 07 [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:11]Read from MH i2c: E2 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 03 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [14:52:11]RAPDU: 90 00 [14:52:11]wFMCommunicate OK [14:52:11]wFMCommunicate request_size=255 [14:52:11]MH_SAM_APDU [14:52:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9A 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E1 02 00 35 04 06 00 4F [14:52:11]Write to MH i2c: E2 02 01 8B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9A 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E1 02 00 35 04 06 00 4F 00 00 96 [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:11]Read from MH i2c: E2 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 03 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [14:52:11]RAPDU: 90 00 [14:52:11]wFMCommunicate OK [14:52:11]wFMCommunicate request_size=10 [14:52:11]MH_SAM_APDU [14:52:11]CAPDU: 80 0D 02 02 05 4A 2C A7 EB 02 [14:52:11]Write to MH i2c: E2 0D 00 8C 04 80 0D 02 02 05 00 4A 2C A7 EB 02 00 00 1E [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:11]Read from MH i2c: E2 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 03 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [14:52:11]RAPDU: 90 00 [14:52:11]wFMCommunicate OK [14:52:11]wFMCommunicate request_size=4 [14:52:11]MH_SAM_APDU [14:52:11]CAPDU: 80 0D 03 02 [14:52:11]Write to MH i2c: E2 08 00 8D 04 80 0D 03 02 00 00 00 00 0C [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:11]Read from MH i2c: E2 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 0B 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 0B 00 8D 04 00 5F BB 47 93 89 8C C1 76 90 00 4D [14:52:11]RAPDU: 5F BB 47 93 89 8C C1 76 90 00 [14:52:11]wFMCommunicate OK [14:52:11]SAM_PROTO_SignData done [14:52:11]FM_MakeSignedData done [14:52:11]CreateOFDProtocolMessage [14:52:11]wFMCommunicate request_size=4 [14:52:11]MH_SAM_APDU [14:52:11]CAPDU: 80 11 00 00 [14:52:11]Write to MH i2c: E2 08 00 8E 04 80 11 00 00 00 00 00 00 0C [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:11]Read from MH i2c: E2 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 17 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: E2 17 00 8E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5A [14:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:52:11]wFMCommunicate OK [14:52:11]CreateOFDProtocolMessage done [14:52:11]OFDSenderStorePacket 188768 [14:52:11]StoreOFDPacket docnum=188768 [14:52:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D BB 07 01 B8 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9A 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E1 02 00 35 04 06 00 4F 4A 2C A7 EB 02 5F BB 47 93 89 8C C1 76 [14:52:11]CheckFolder [14:52:11]dirname=/storage/ofd_packets [14:52:11]CheckFolder done [14:52:11]ProducePacketName [14:52:11]name=ofd_packets/00188768 [14:52:11]NVStorageSaveData ofd_packets/00188768 [14:52:11]File name is /storage/ofd_packets/00188768 [14:52:11]Write 301 bytes [14:52:11]NVStorageSaveData done [14:52:11]OFDSenderStorePacket done [14:52:11]KKMCreateOFDPacket done [14:52:11]NVStorageSaveData kkm_last_timestamp [14:52:11]File name is /storage/kkm_last_timestamp [14:52:11]Write 4 bytes [14:52:11]NVStorageSaveData done [14:52:11]ExternCall_PrintAddStr [14:52:11]wPrintStart [14:52:11]Write to MH i2c: 01 00 00 8F 04 93 [14:52:11]Write i2c OK [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: 01 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: 01 07 00 [14:52:11]MH_I2C_Read... [14:52:11]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 FF 0F A8 [14:52:11]RasterBufferAndPrint [14:52:11]line Счет N : (1)210828 [14:52:11]line ИНН: 02508201610067 [14:52:11]line Контрольно-Кассовый Чек [14:52:11]line ПРОДАЖА [14:52:11]line ТРК (МРК, ГНК) : 42 [14:52:11]line Товар: 2710124130 [14:52:11]line Аи-92-К-3 [14:52:11]line 10.000 * 0.00 [14:52:11]line = 0.00 [14:52:11]line НДС 12% НСП 1% [14:52:11]line > о реализуемом товаре [14:52:11]line ИТОГО: 0.00 [14:52:11]line НСП 1% : 0.00 [14:52:11]line НДС 12% : 0.00 [14:52:11]line Наличными: 0.00 [14:52:11]line Безнал.: 0.00 [14:52:11]line Место: АЗС № 86 "Партнер Нефть" [14:52:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:52:11]line СНО: Общий режим [14:52:11]line Чек 226 23.10.2024 14:52 [14:52:11]line Смена: 462 ФФД: 1.0 [14:52:11]line ЗНМ: 0300000155 [14:52:11]line РНМ: 0000000000100030 [14:52:11]line Версия ККМ: 001 [14:52:11]line Талоны: Топливные Талоны [14:52:11]line 3913693 [14:52:11]line ФМ: 0000000000965340 [14:52:11]line ФД: 188768 [14:52:11]line ФПД: 87179995376386 [14:52:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145210&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188768&fm=87179995376386&tin=02508201610067®Number=0000000000100030&sum=0 [14:52:11]written 0, free lines is 4095 [14:52:11]OFD Sender: Processing packet 188768 [packets to send 1062, broken 1061] [14:52:11]ProducePacketName [14:52:11]name=ofd_packets/00188768 [14:52:11]OFD Sender: To server: pG, [14:52:11]CommunicateWithHost lk.salyk.kg:30040 [14:52:11]ConnectInit lk.salyk.kg [14:52:11]Connected sock=10 [14:52:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D BB 07 01 B8 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9A 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E1 02 00 35 04 06 00 4F 4A 2C A7 EB 02 5F BB 47 93 89 8C C1 76 [14:52:12]Write to MH i2c: 01 00 00 B9 04 BD [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: 01 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: 01 07 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 77 0C 47 [14:52:12]RasterBufferAndPrint [14:52:12]line [14:52:12]line [14:52:12]line [14:52:12]line [14:52:12]line [14:52:12]written 0, free lines is 3195 [14:52:12]MH_Cut [14:52:12]Write to MH i2c: D1 01 00 C0 04 01 96 [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: D1 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: D1 01 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: D1 01 00 C0 04 00 95 [14:52:12]Write to MH i2c: 01 00 00 C1 04 C5 [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 6F 47 00 AF 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E1 02 00 F4 03 04 00 85 B7 18 67 B6 04 01 00 00 9B 0D D5 13 AC F5 F2 03 [14:52:12]CommunicateWithHost err = 0 [14:52:12]CheckOFDResponse [14:52:12]1017 (14) - 77093643461234 [14:52:12]1041 (16) - 0000000000965340 [14:52:12]1040 (4) - 188768 [14:52:12]1012 (4) - 23.10.2024 08:44 [14:52:12]1206 (1) - 0 [14:52:12]OFD Sender: Remove packet 188768 [14:52:12]ProducePacketName [14:52:12]name=ofd_packets/00188768 [14:52:12]NVStorageDeleteData [14:52:12]OFD Sender: No OFD packet to send [14:52:13]*** Cut start [14:52:13]*** Partial cut [14:52:13]*** CUTSNS_PIN = 1 [14:52:13]*** CUTSNS_PIN = 0 [14:52:13]*** Brake cut motor [14:52:13]Read from MH i2c: 01 [14:52:13]MH_I2C_Read... [14:52:13]*** Stop cut motor [14:52:13]*** Cut end [14:52:13]Read from MH i2c: 01 07 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 07 00 C1 04 00 00 00 00 00 FF 0F DA [14:52:13]process_action close_receipt done [14:52:13]requested_data is exist [14:52:13]produce_requested_data [14:52:13]requested_item fm.sn is exist - process it [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 11 00 00 [14:52:13]Write to MH i2c: E2 08 00 C2 04 80 11 00 00 00 00 00 00 40 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 17 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 17 00 C2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [14:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:52:13]wFMCommunicate OK [14:52:13]requested_item fd.num is exist - process it [14:52:13]SAM_PROTO_GetFieldsCounters [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 13 00 00 [14:52:13]Write to MH i2c: E2 08 00 C3 04 80 13 00 00 00 00 00 00 43 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:14]Read from MH i2c: E2 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: E2 62 00 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: E2 62 00 C3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [14:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:14]wFMCommunicate OK [14:52:14]SAM_PROTO_GetFieldsCounters done [14:52:14]requested_item shift.num is exist - process it [14:52:14]requested_item shift.opened is exist - process it [14:52:14]req_shift_opened [14:52:14]FM_GetShiftState [14:52:14]SAM_PROTO_GetShiftState [14:52:14]wFMCommunicate request_size=4 [14:52:14]MH_SAM_APDU [14:52:14]CAPDU: 80 13 01 00 [14:52:14]Write to MH i2c: E2 08 00 C4 04 80 13 01 00 00 00 00 00 45 [14:52:14]Write i2c OK [14:52:14]MH_I2C_Read... [14:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:14]Read from MH i2c: E2 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: E2 0E 00 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: E2 0E 00 C4 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2D [14:52:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:52:14]wFMCommunicate OK [14:52:14]SAM_PROTO_GetShiftState done [14:52:14]FM_GetShiftState done [14:52:14]req_shift_opened done [14:52:14]requested_item shift.open_date is exist - process it [14:52:14]req_shift_open_date [14:52:14]req_shift_open_date done [14:52:14]produce_requested_data done [14:52:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188768,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:52:14]process_action_free close_receipt [14:52:14]json_value_free [14:52:14]json_value_free done [14:52:14]process_json_proto returns [14:52:14]Send response to host [14:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188768,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:52:14]free response buf [14:52:14]execute_script done [14:52:14]execute_script returns [14:52:14]free content buf [14:52:14]Sock 7.Close socket [14:52:14]Sock 7.Thread stoped [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:02]accept exits with 9 [14:53:02]New connection [14:53:02]New thread 3067350372 created [14:53:02]Thread 3067207012 joined [14:53:02]Waiting for new connection... [14:53:02] Sock 9.Parse request [14:53:02]Sock 9.Check first char [14:53:02]Sock 9.First char is OK [14:53:02]request: POST /json_proto HTTP/1.0 [14:53:02]Method: POST [14:53:02]URL: /json_proto [14:53:02]Method is POST - this is cgi request [14:53:02]url: /json_proto [14:53:02]query_string will be loaded in cgi processing [14:53:02]execute_cgi json_proto POST (null) [14:53:02]execute_cgi path=json_proto method=POST [14:53:02]POST find Content-Length [14:53:02]Host: 172.17.42.131:8080 [14:53:02]Content-Length: 800 [14:53:02]Content-Type: application/json [14:53:02] [14:53:02]POST finish read [14:53:02]Found Content-Length = 800 [14:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913697", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:02]execute_script... [14:53:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913697", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:02]POST & json_proto [14:53:02]process_json_proto [14:53:02]json parsed OK: [14:53:02]protocol is kg_v1.0 [14:53:02]action value=close_receipt [14:53:02]process_action close_receipt [14:53:02]cmd_close_receipt [14:53:02]MH_GetDate [14:53:02]Write to MH i2c: F0 00 00 C5 04 B8 [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: F0 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: F0 09 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: F0 09 00 C5 04 00 CF 0D 19 67 A0 18 CA 66 05 [14:53:02]GetLastDocTimeStamp 1729695130 [14:53:02]current date 1729695183 [14:53:02]FM_GetShiftState [14:53:02]SAM_PROTO_GetShiftState [14:53:02]wFMCommunicate request_size=4 [14:53:02]MH_SAM_APDU [14:53:02]CAPDU: 80 13 01 00 [14:53:02]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:03]OFD Sender: No OFD packet to send [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2F [14:53:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:53:03]wFMCommunicate OK [14:53:03]SAM_PROTO_GetShiftState done [14:53:03]FM_GetShiftState done [14:53:03]opened in 1729642525 [14:53:03]opened+sec_in_day 1729728925 [14:53:03]quantity*price = 0 [14:53:03]sum+1 = 1 [14:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 227 23.10.2024 14:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3913697 ФМ: 0000000000965340 ФД: 188769 ФПД: 185236820912887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145303&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188769&fm=185236820912887&tin=02508201610067®Number=0000000000100030&sum=0 [14:53:04]StoreToDocumentArchive [14:53:04]shift 462 fd 188769 [14:53:04]save to /storage/0462/doc_00188769 [14:53:04]save last doc name /storage/0462/doc_00188769 to /storage/kkm_last_doc_name [14:53:04]save OK [14:53:04]Clear old archive folders... [14:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:04]tlvbuf is 01109F10 [14:53:04]SAM_PROTO_ClearQueue [14:53:04]wFMCommunicate request_size=4 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 09 00 00 [14:53:04]Write to MH i2c: E2 08 00 D3 04 80 09 00 00 00 00 00 00 49 [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [14:53:04]RAPDU: 90 00 [14:53:04]wFMCommunicate OK [14:53:04]SAM_PROTO_ClearQueue done [14:53:04]KKMCreateOFDPacket [14:53:04]OFDProtocolAddRootSTLVToBuf [14:53:04]FM_MakeSignedData [14:53:04]FM_MakeSignedData [14:53:04]SAM_PROTO_SignData [14:53:04]wFMCommunicate request_size=4 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 0D 01 02 [14:53:04]Write to MH i2c: E2 08 00 D4 04 80 0D 01 02 00 00 00 00 51 [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [14:53:04]RAPDU: 90 00 [14:53:04]wFMCommunicate OK [14:53:04]wFMCommunicate request_size=255 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CF 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E1 02 00 35 04 06 00 A8 [14:53:04]Write to MH i2c: E2 02 01 D5 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CF 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E1 02 00 35 04 06 00 A8 00 00 70 [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [14:53:04]RAPDU: 90 00 [14:53:04]wFMCommunicate OK [14:53:04]wFMCommunicate request_size=10 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 0D 02 02 05 78 CE E8 EA F7 [14:53:04]Write to MH i2c: E2 0D 00 D6 04 80 0D 02 02 05 00 78 CE E8 EA F7 00 00 6D [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [14:53:04]RAPDU: 90 00 [14:53:04]wFMCommunicate OK [14:53:04]wFMCommunicate request_size=4 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 0D 03 02 [14:53:04]Write to MH i2c: E2 08 00 D7 04 80 0D 03 02 00 00 00 00 56 [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 0B 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 0B 00 D7 04 00 6B EE 2D B2 30 7D A7 8C 90 00 6F [14:53:04]RAPDU: 6B EE 2D B2 30 7D A7 8C 90 00 [14:53:04]wFMCommunicate OK [14:53:04]SAM_PROTO_SignData done [14:53:04]FM_MakeSignedData done [14:53:04]CreateOFDProtocolMessage [14:53:04]wFMCommunicate request_size=4 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 11 00 00 [14:53:04]Write to MH i2c: E2 08 00 D8 04 80 11 00 00 00 00 00 00 56 [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 17 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 17 00 D8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [14:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:53:04]wFMCommunicate OK [14:53:04]CreateOFDProtocolMessage done [14:53:04]OFDSenderStorePacket 188769 [14:53:04]StoreOFDPacket docnum=188769 [14:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 95 D0 07 01 0A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CF 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E1 02 00 35 04 06 00 A8 78 CE E8 EA F7 6B EE 2D B2 30 7D A7 8C [14:53:04]CheckFolder [14:53:04]dirname=/storage/ofd_packets [14:53:04]CheckFolder done [14:53:04]ProducePacketName [14:53:04]name=ofd_packets/00188769 [14:53:04]NVStorageSaveData ofd_packets/00188769 [14:53:04]File name is /storage/ofd_packets/00188769 [14:53:04]Write 301 bytes [14:53:04]NVStorageSaveData done [14:53:04]OFDSenderStorePacket done [14:53:04]KKMCreateOFDPacket done [14:53:04]NVStorageSaveData kkm_last_timestamp [14:53:04]File name is /storage/kkm_last_timestamp [14:53:04]Write 4 bytes [14:53:04]NVStorageSaveData done [14:53:04]ExternCall_PrintAddStr [14:53:04]wPrintStart [14:53:04]Write to MH i2c: 01 00 00 D9 04 DD [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: 01 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: 01 07 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: 01 07 00 D9 04 00 00 00 00 00 FF 0F F2 [14:53:04]RasterBufferAndPrint [14:53:04]line Счет N : (1)210829 [14:53:04]line ИНН: 02508201610067 [14:53:04]line Контрольно-Кассовый Чек [14:53:04]line ПРОДАЖА [14:53:04]line ТРК (МРК, ГНК) : 42 [14:53:04]line Товар: 2710124130 [14:53:04]line Аи-92-К-3 [14:53:04]line 10.000 * 0.00 [14:53:04]line = 0.00 [14:53:04]line НДС 12% НСП 1% [14:53:04]line > о реализуемом товаре [14:53:04]line ИТОГО: 0.00 [14:53:04]line НСП 1% : 0.00 [14:53:04]line НДС 12% : 0.00 [14:53:04]line Наличными: 0.00 [14:53:04]line Безнал.: 0.00 [14:53:04]line Место: АЗС № 86 "Партнер Нефть" [14:53:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:53:04]line СНО: Общий режим [14:53:04]line Чек 227 23.10.2024 14:53 [14:53:04]line Смена: 462 ФФД: 1.0 [14:53:04]line ЗНМ: 0300000155 [14:53:04]line РНМ: 0000000000100030 [14:53:04]line Версия ККМ: 001 [14:53:04]line Талоны: Топливные Талоны [14:53:04]line 3913697 [14:53:04]line ФМ: 0000000000965340 [14:53:04]line ФД: 188769 [14:53:04]line ФПД: 185236820912887 [14:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145303&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188769&fm=185236820912887&tin=02508201610067®Number=0000000000100030&sum=0 [14:53:04]written 0, free lines is 4095 [14:53:04]OFD Sender: Processing packet 188769 [packets to send 1062, broken 1061] [14:53:04]ProducePacketName [14:53:04]name=ofd_packets/00188769 [14:53:04]OFD Sender: To server: pG, [14:53:04]CommunicateWithHost lk.salyk.kg:30040 [14:53:04]ConnectInit lk.salyk.kg [14:53:05]Connected sock=10 [14:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 95 D0 07 01 0A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CF 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E1 02 00 35 04 06 00 A8 78 CE E8 EA F7 6B EE 2D B2 30 7D A7 8C [14:53:05]Write to MH i2c: 01 00 00 03 05 08 [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: 01 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: 01 07 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 71 0C 8C [14:53:05]RasterBufferAndPrint [14:53:05]line [14:53:05]line [14:53:05]line [14:53:05]line [14:53:05]line [14:53:05]written 0, free lines is 3191 [14:53:05]MH_Cut [14:53:05]Write to MH i2c: D1 01 00 0A 05 01 E1 [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: D1 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: D1 01 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: D1 01 00 0A 05 00 E0 [14:53:05]Write to MH i2c: 01 00 00 0B 05 10 [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DB 1A 47 00 CC E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E1 02 00 F4 03 04 00 BA B7 18 67 B6 04 01 00 00 4B 62 BD EA F9 B5 72 AE [14:53:05]CommunicateWithHost err = 0 [14:53:05]CheckOFDResponse [14:53:05]1017 (14) - 77093643461234 [14:53:05]1041 (16) - 0000000000965340 [14:53:05]1040 (4) - 188769 [14:53:05]1012 (4) - 23.10.2024 08:45 [14:53:05]1206 (1) - 0 [14:53:05]OFD Sender: Remove packet 188769 [14:53:05]ProducePacketName [14:53:05]name=ofd_packets/00188769 [14:53:05]NVStorageDeleteData [14:53:06]OFD Sender: No OFD packet to send [14:53:06]*** Cut start [14:53:06]*** Partial cut [14:53:06]*** CUTSNS_PIN = 1 [14:53:06]*** CUTSNS_PIN = 0 [14:53:06]*** Brake cut motor [14:53:07]Read from MH i2c: 01 [14:53:07]MH_I2C_Read... [14:53:07]*** Stop cut motor [14:53:07]*** Cut end [14:53:07]Read from MH i2c: 01 07 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 FF 0F 25 [14:53:07]process_action close_receipt done [14:53:07]requested_data is exist [14:53:07]produce_requested_data [14:53:07]requested_item fm.sn is exist - process it [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 11 00 00 [14:53:07]Write to MH i2c: E2 08 00 0C 05 80 11 00 00 00 00 00 00 8B [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 17 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 17 00 0C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [14:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:53:07]wFMCommunicate OK [14:53:07]requested_item fd.num is exist - process it [14:53:07]SAM_PROTO_GetFieldsCounters [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 13 00 00 [14:53:07]Write to MH i2c: E2 08 00 0D 05 80 13 00 00 00 00 00 00 8E [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 62 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 62 00 0D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [14:53:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:07]wFMCommunicate OK [14:53:07]SAM_PROTO_GetFieldsCounters done [14:53:07]requested_item shift.num is exist - process it [14:53:07]requested_item shift.opened is exist - process it [14:53:07]req_shift_opened [14:53:07]FM_GetShiftState [14:53:07]SAM_PROTO_GetShiftState [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 13 01 00 [14:53:07]Write to MH i2c: E2 08 00 0E 05 80 13 01 00 00 00 00 00 90 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 0E 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 0E 00 0E 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 78 [14:53:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:53:07]wFMCommunicate OK [14:53:07]SAM_PROTO_GetShiftState done [14:53:07]FM_GetShiftState done [14:53:07]req_shift_opened done [14:53:07]requested_item shift.open_date is exist - process it [14:53:07]req_shift_open_date [14:53:07]req_shift_open_date done [14:53:07]produce_requested_data done [14:53:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188769,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:53:07]process_action_free close_receipt [14:53:07]json_value_free [14:53:07]json_value_free done [14:53:07]process_json_proto returns [14:53:07]Send response to host [14:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188769,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:53:07]free response buf [14:53:07]execute_script done [14:53:07]execute_script returns [14:53:07]free content buf [14:53:07]Sock 9.Close socket [14:53:07]Sock 9.Thread stoped [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:37]accept exits with 7 [14:53:37]New connection [14:53:37]New thread 3067207012 created [14:53:37]Thread 3067350372 joined [14:53:37]Waiting for new connection... [14:53:37] Sock 7.Parse request [14:53:37]Sock 7.Check first char [14:53:37]Sock 7.First char is OK [14:53:37]request: POST /json_proto HTTP/1.0 [14:53:37]Method: POST [14:53:37]URL: /json_proto [14:53:37]Method is POST - this is cgi request [14:53:37]url: /json_proto [14:53:37]query_string will be loaded in cgi processing [14:53:37]execute_cgi json_proto POST (null) [14:53:37]execute_cgi path=json_proto method=POST [14:53:37]POST find Content-Length [14:53:37]Host: 172.17.42.131:8080 [14:53:37]Content-Length: 677 [14:53:37]Content-Type: application/json [14:53:37] [14:53:37]POST finish read [14:53:37]Found Content-Length = 677 [14:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:37]execute_script... [14:53:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:37]POST & json_proto [14:53:37]process_json_proto [14:53:37]json parsed OK: [14:53:37]protocol is kg_v1.0 [14:53:37]action value=close_receipt [14:53:37]process_action close_receipt [14:53:37]cmd_close_receipt [14:53:37]MH_GetDate [14:53:37]Write to MH i2c: F0 00 00 0F 05 03 [14:53:37]Write i2c OK [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: F0 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: F0 09 00 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: F0 09 00 0F 05 00 F2 0D 19 67 A0 18 CA 66 73 [14:53:37]GetLastDocTimeStamp 1729695183 [14:53:37]current date 1729695218 [14:53:37]FM_GetShiftState [14:53:37]SAM_PROTO_GetShiftState [14:53:37]wFMCommunicate request_size=4 [14:53:37]MH_SAM_APDU [14:53:37]CAPDU: 80 13 01 00 [14:53:37]Write to MH i2c: E2 08 00 10 05 80 13 01 00 00 00 00 00 92 [14:53:37]Write i2c OK [14:53:37]MH_I2C_Read... [14:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:37]Read from MH i2c: E2 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: E2 0E 00 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: E2 0E 00 10 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7A [14:53:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:53:37]wFMCommunicate OK [14:53:37]SAM_PROTO_GetShiftState done [14:53:37]FM_GetShiftState done [14:53:37]opened in 1729642525 [14:53:37]opened+sec_in_day 1729728925 [14:53:37]quantity*price = 40006 [14:53:37]sum+1 = 40007 [14:53:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 228 23.10.2024 14:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188770 ФПД: 178460817810018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145338&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188770&fm=178460817810018&tin=02508201610067®Number=0000000000100030&sum=40000 [14:53:39]StoreToDocumentArchive [14:53:39]shift 462 fd 188770 [14:53:39]save to /storage/0462/doc_00188770 [14:53:39]save last doc name /storage/0462/doc_00188770 to /storage/kkm_last_doc_name [14:53:39]save OK [14:53:39]Clear old archive folders... [14:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:39]tlvbuf is 01115270 [14:53:39]SAM_PROTO_ClearQueue [14:53:39]wFMCommunicate request_size=4 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 09 00 00 [14:53:39]Write to MH i2c: E2 08 00 1D 05 80 09 00 00 00 00 00 00 94 [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 03 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [14:53:39]RAPDU: 90 00 [14:53:39]wFMCommunicate OK [14:53:39]SAM_PROTO_ClearQueue done [14:53:39]KKMCreateOFDPacket [14:53:39]OFDProtocolAddRootSTLVToBuf [14:53:39]FM_MakeSignedData [14:53:39]FM_MakeSignedData [14:53:39]SAM_PROTO_SignData [14:53:39]wFMCommunicate request_size=4 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 0D 01 02 [14:53:39]Write to MH i2c: E2 08 00 1E 05 80 0D 01 02 00 00 00 00 9C [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 03 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [14:53:39]RAPDU: 90 00 [14:53:39]wFMCommunicate OK [14:53:39]wFMCommunicate request_size=255 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 F2 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E1 02 00 35 04 06 00 A2 [14:53:39]Write to MH i2c: E2 02 01 1F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 F2 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E1 02 00 35 04 06 00 A2 00 00 F7 [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 03 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [14:53:39]RAPDU: 90 00 [14:53:39]wFMCommunicate OK [14:53:39]wFMCommunicate request_size=10 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 0D 02 02 05 4F 25 A6 E2 62 [14:53:39]Write to MH i2c: E2 0D 00 20 05 80 0D 02 02 05 00 4F 25 A6 E2 62 00 00 07 [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 03 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [14:53:39]RAPDU: 90 00 [14:53:39]wFMCommunicate OK [14:53:39]wFMCommunicate request_size=4 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 0D 03 02 [14:53:39]Write to MH i2c: E2 08 00 21 05 80 0D 03 02 00 00 00 00 A1 [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 0B 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 0B 00 21 05 00 30 83 51 02 84 BD 59 46 90 00 88 [14:53:39]RAPDU: 30 83 51 02 84 BD 59 46 90 00 [14:53:39]wFMCommunicate OK [14:53:39]SAM_PROTO_SignData done [14:53:39]FM_MakeSignedData done [14:53:39]CreateOFDProtocolMessage [14:53:39]wFMCommunicate request_size=4 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 11 00 00 [14:53:39]Write to MH i2c: E2 08 00 22 05 80 11 00 00 00 00 00 00 A1 [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 17 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [14:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:53:39]wFMCommunicate OK [14:53:39]CreateOFDProtocolMessage done [14:53:39]OFDSenderStorePacket 188770 [14:53:39]StoreOFDPacket docnum=188770 [14:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D 5F 07 01 03 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 F2 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E1 02 00 35 04 06 00 A2 4F 25 A6 E2 62 30 83 51 02 84 BD 59 46 [14:53:39]CheckFolder [14:53:39]dirname=/storage/ofd_packets [14:53:39]CheckFolder done [14:53:39]ProducePacketName [14:53:39]name=ofd_packets/00188770 [14:53:39]NVStorageSaveData ofd_packets/00188770 [14:53:39]File name is /storage/ofd_packets/00188770 [14:53:39]Write 301 bytes [14:53:39]NVStorageSaveData done [14:53:39]OFDSenderStorePacket done [14:53:39]KKMCreateOFDPacket done [14:53:39]NVStorageSaveData kkm_last_timestamp [14:53:39]File name is /storage/kkm_last_timestamp [14:53:39]Write 4 bytes [14:53:39]NVStorageSaveData done [14:53:39]ExternCall_PrintAddStr [14:53:39]wPrintStart [14:53:39]Write to MH i2c: 01 00 00 23 05 28 [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: 01 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: 01 07 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: 01 07 00 23 05 00 00 00 00 00 FF 0F 3D [14:53:39]RasterBufferAndPrint [14:53:39]line Счет N : (1)210830 [14:53:39]line ИНН: 02508201610067 [14:53:39]line Контрольно-Кассовый Чек [14:53:39]line ПРОДАЖА [14:53:39]line ТРК (МРК, ГНК) : 32 [14:53:39]line Товар: 2710124130 [14:53:39]line Аи-92-К-3 [14:53:39]line 5.980 * 66.90 [14:53:39]line = 400.06 [14:53:39]line НДС 12% НСП 1% [14:53:39]line > о реализуемом товаре [14:53:39]line ОКРУГЛЕНИЕ: -0.06 [14:53:39]line ИТОГО: 400.00 [14:53:39]line Внесено: 400.00 [14:53:39]line СДАЧА: 0.00 [14:53:39]line НСП 1% : 3.54 [14:53:39]line НДС 12% : 42.48 [14:53:39]line Наличными: 400.00 [14:53:39]line Безнал.: 0.00 [14:53:39]line Место: АЗС № 86 "Партнер Нефть" [14:53:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:53:39]line СНО: Общий режим [14:53:39]line Чек 228 23.10.2024 14:53 [14:53:39]line Смена: 462 ФФД: 1.0 [14:53:39]line ЗНМ: 0300000155 [14:53:39]line РНМ: 0000000000100030 [14:53:39]line Версия ККМ: 001 [14:53:39]line ФМ: 0000000000965340 [14:53:39]line ФД: 188770 [14:53:39]line ФПД: 178460817810018 [14:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145338&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188770&fm=178460817810018&tin=02508201610067®Number=0000000000100030&sum=40000 [14:53:39]written 0, free lines is 4095 [14:53:39]OFD Sender: Processing packet 188770 [packets to send 1062, broken 1061] [14:53:39]ProducePacketName [14:53:39]name=ofd_packets/00188770 [14:53:39]OFD Sender: To server: pG, [14:53:39]CommunicateWithHost lk.salyk.kg:30040 [14:53:39]ConnectInit lk.salyk.kg [14:53:39]Connected sock=10 [14:53:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D 5F 07 01 03 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 F2 0D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E1 02 00 35 04 06 00 A2 4F 25 A6 E2 62 30 83 51 02 84 BD 59 46 [14:53:40]Write to MH i2c: 01 00 00 4E 05 53 [14:53:40]Write i2c OK [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: 01 [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: 01 07 00 [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 66 0C CC [14:53:40]RasterBufferAndPrint [14:53:40]line [14:53:40]line [14:53:40]line [14:53:40]line [14:53:40]line [14:53:40]written 0, free lines is 3177 [14:53:40]MH_Cut [14:53:40]Write to MH i2c: D1 01 00 55 05 01 2C [14:53:40]Write i2c OK [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: D1 [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: D1 01 00 [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: D1 01 00 55 05 00 2B [14:53:40]Write to MH i2c: 01 00 00 56 05 5B [14:53:40]Write i2c OK [14:53:40]MH_I2C_Read... [14:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 9F 47 00 E9 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E1 02 00 F4 03 04 00 DD B7 18 67 B6 04 01 00 00 0C FB C1 A3 42 55 B8 F7 [14:53:40]CommunicateWithHost err = 0 [14:53:40]CheckOFDResponse [14:53:40]1017 (14) - 77093643461234 [14:53:40]1041 (16) - 0000000000965340 [14:53:40]1040 (4) - 188770 [14:53:40]1012 (4) - 23.10.2024 08:46 [14:53:40]1206 (1) - 0 [14:53:40]OFD Sender: Remove packet 188770 [14:53:40]ProducePacketName [14:53:40]name=ofd_packets/00188770 [14:53:40]NVStorageDeleteData [14:53:40]OFD Sender: No OFD packet to send [14:53:41]*** Cut start [14:53:41]*** Partial cut [14:53:41]*** CUTSNS_PIN = 1 [14:53:41]*** CUTSNS_PIN = 0 [14:53:41]*** Brake cut motor [14:53:41]Read from MH i2c: 01 [14:53:41]MH_I2C_Read... [14:53:41]*** Stop cut motor [14:53:41]*** Cut end [14:53:41]Read from MH i2c: 01 07 00 [14:53:41]MH_I2C_Read... [14:53:41]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 FF 0F 70 [14:53:41]process_action close_receipt done [14:53:41]requested_data is exist [14:53:41]produce_requested_data [14:53:41]requested_item fm.sn is exist - process it [14:53:41]wFMCommunicate request_size=4 [14:53:41]MH_SAM_APDU [14:53:41]CAPDU: 80 11 00 00 [14:53:41]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [14:53:41]Write i2c OK [14:53:41]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 17 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [14:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:53:42]wFMCommunicate OK [14:53:42]requested_item fd.num is exist - process it [14:53:42]SAM_PROTO_GetFieldsCounters [14:53:42]wFMCommunicate request_size=4 [14:53:42]MH_SAM_APDU [14:53:42]CAPDU: 80 13 00 00 [14:53:42]Write to MH i2c: E2 08 00 58 05 80 13 00 00 00 00 00 00 D9 [14:53:42]Write i2c OK [14:53:42]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 62 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 62 00 58 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [14:53:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:42]wFMCommunicate OK [14:53:42]SAM_PROTO_GetFieldsCounters done [14:53:42]requested_item shift.num is exist - process it [14:53:42]requested_item shift.opened is exist - process it [14:53:42]req_shift_opened [14:53:42]FM_GetShiftState [14:53:42]SAM_PROTO_GetShiftState [14:53:42]wFMCommunicate request_size=4 [14:53:42]MH_SAM_APDU [14:53:42]CAPDU: 80 13 01 00 [14:53:42]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [14:53:42]Write i2c OK [14:53:42]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 0E 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C3 [14:53:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:53:42]wFMCommunicate OK [14:53:42]SAM_PROTO_GetShiftState done [14:53:42]FM_GetShiftState done [14:53:42]req_shift_opened done [14:53:42]requested_item shift.open_date is exist - process it [14:53:42]req_shift_open_date [14:53:42]req_shift_open_date done [14:53:42]produce_requested_data done [14:53:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188770,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:53:42]process_action_free close_receipt [14:53:42]json_value_free [14:53:42]json_value_free done [14:53:42]process_json_proto returns [14:53:42]Send response to host [14:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188770,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:53:42]free response buf [14:53:42]execute_script done [14:53:42]execute_script returns [14:53:42]free content buf [14:53:42]Sock 7.Close socket [14:53:42]Sock 7.Thread stoped [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:50]accept exits with 9 [14:54:50]New connection [14:54:50]New thread 3067350372 created [14:54:50]Thread 3067207012 joined [14:54:50]Waiting for new connection... [14:54:50] Sock 9.Parse request [14:54:50]Sock 9.Check first char [14:54:50]Sock 9.First char is OK [14:54:50]request: POST /json_proto HTTP/1.0 [14:54:50]Method: POST [14:54:50]URL: /json_proto [14:54:50]Method is POST - this is cgi request [14:54:50]url: /json_proto [14:54:50]query_string will be loaded in cgi processing [14:54:50]execute_cgi json_proto POST (null) [14:54:50]execute_cgi path=json_proto method=POST [14:54:50]POST find Content-Length [14:54:50]Host: 172.17.42.131:8080 [14:54:50]Content-Length: 688 [14:54:50]Content-Type: application/json [14:54:50] [14:54:50]POST finish read [14:54:50]Found Content-Length = 688 [14:54:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:50]execute_script... [14:54:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:50]POST & json_proto [14:54:50]process_json_proto [14:54:50]json parsed OK: [14:54:50]protocol is kg_v1.0 [14:54:50]action value=close_receipt [14:54:50]process_action close_receipt [14:54:50]cmd_close_receipt [14:54:50]MH_GetDate [14:54:50]Write to MH i2c: F0 00 00 5A 05 4E [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: F0 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: F0 09 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: F0 09 00 5A 05 00 3B 0E 19 67 A0 18 CA 66 08 [14:54:50]GetLastDocTimeStamp 1729695218 [14:54:50]current date 1729695291 [14:54:50]FM_GetShiftState [14:54:50]SAM_PROTO_GetShiftState [14:54:50]wFMCommunicate request_size=4 [14:54:50]MH_SAM_APDU [14:54:50]CAPDU: 80 13 01 00 [14:54:50]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:50]Read from MH i2c: E2 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 0E 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C5 [14:54:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:54:50]wFMCommunicate OK [14:54:50]SAM_PROTO_GetShiftState done [14:54:50]FM_GetShiftState done [14:54:50]opened in 1729642525 [14:54:50]opened+sec_in_day 1729728925 [14:54:50]quantity*price = 120046 [14:54:50]sum+1 = 120047 [14:54:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 229 23.10.2024 14:54 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188771 ФПД: 153057694059984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188771&fm=153057694059984&tin=02508201610067®Number=0000000000100030&sum=120000 [14:54:52]StoreToDocumentArchive [14:54:52]shift 462 fd 188771 [14:54:52]save to /storage/0462/doc_00188771 [14:54:52]save last doc name /storage/0462/doc_00188771 to /storage/kkm_last_doc_name [14:54:52]save OK [14:54:52]Clear old archive folders... [14:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:54:52]tlvbuf is 011279B0 [14:54:52]SAM_PROTO_ClearQueue [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 09 00 00 [14:54:52]Write to MH i2c: E2 08 00 68 05 80 09 00 00 00 00 00 00 DF [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [14:54:52]RAPDU: 90 00 [14:54:52]wFMCommunicate OK [14:54:52]SAM_PROTO_ClearQueue done [14:54:52]KKMCreateOFDPacket [14:54:52]OFDProtocolAddRootSTLVToBuf [14:54:52]FM_MakeSignedData [14:54:52]FM_MakeSignedData [14:54:52]SAM_PROTO_SignData [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 0D 01 02 [14:54:52]Write to MH i2c: E2 08 00 69 05 80 0D 01 02 00 00 00 00 E7 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [14:54:52]RAPDU: 90 00 [14:54:52]wFMCommunicate OK [14:54:52]wFMCommunicate request_size=255 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 3B 0E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E1 02 [14:54:52]Write to MH i2c: E2 02 01 6A 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 3B 0E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E1 02 00 00 79 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [14:54:52]RAPDU: 90 00 [14:54:52]wFMCommunicate OK [14:54:52]wFMCommunicate request_size=16 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8B 34 85 7C 0D D0 [14:54:52]Write to MH i2c: E2 13 00 6B 05 80 0D 02 02 0B 00 00 35 04 06 00 8B 34 85 7C 0D D0 00 00 DC [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [14:54:52]RAPDU: 90 00 [14:54:52]wFMCommunicate OK [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 0D 03 02 [14:54:52]Write to MH i2c: E2 08 00 6C 05 80 0D 03 02 00 00 00 00 EC [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 0B 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 0B 00 6C 05 00 D3 40 04 2C 39 58 7A 43 90 00 7E [14:54:52]RAPDU: D3 40 04 2C 39 58 7A 43 90 00 [14:54:52]wFMCommunicate OK [14:54:52]SAM_PROTO_SignData done [14:54:52]FM_MakeSignedData done [14:54:52]CreateOFDProtocolMessage [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 11 00 00 [14:54:52]Write to MH i2c: E2 08 00 6D 05 80 11 00 00 00 00 00 00 EC [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 17 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 17 00 6D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [14:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:54:52]wFMCommunicate OK [14:54:52]CreateOFDProtocolMessage done [14:54:52]OFDSenderStorePacket 188771 [14:54:52]StoreOFDPacket docnum=188771 [14:54:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BD A9 0D 01 63 59 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 3B 0E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E1 02 00 35 04 06 00 8B 34 85 7C 0D D0 D3 40 04 2C 39 58 7A 43 [14:54:52]CheckFolder [14:54:52]dirname=/storage/ofd_packets [14:54:52]CheckFolder done [14:54:52]ProducePacketName [14:54:52]name=ofd_packets/00188771 [14:54:52]NVStorageSaveData ofd_packets/00188771 [14:54:52]File name is /storage/ofd_packets/00188771 [14:54:52]Write 307 bytes [14:54:52]NVStorageSaveData done [14:54:52]OFDSenderStorePacket done [14:54:52]KKMCreateOFDPacket done [14:54:52]NVStorageSaveData kkm_last_timestamp [14:54:52]File name is /storage/kkm_last_timestamp [14:54:52]Write 4 bytes [14:54:52]NVStorageSaveData done [14:54:52]ExternCall_PrintAddStr [14:54:52]wPrintStart [14:54:52]Write to MH i2c: 01 00 00 6E 05 73 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 6E 05 00 00 00 00 00 FF 0F 88 [14:54:52]RasterBufferAndPrint [14:54:52]line Счет N : (1)210831 [14:54:52]line ИНН: 02508201610067 [14:54:52]line Контрольно-Кассовый Чек [14:54:52]line ПРОДАЖА [14:54:52]line ТРК (МРК, ГНК) : 21 [14:54:52]line Товар: 2710194210 [14:54:52]line D-ENERGY ДТ-К-5 [14:54:52]line 15.550 * 77.20 [14:54:52]line = 1200.46 [14:54:52]line НДС 12% НСП 1% [14:54:52]line > о реализуемом товаре [14:54:52]line ОКРУГЛЕНИЕ: -0.46 [14:54:52]line ИТОГО: 1200.00 [14:54:52]line Внесено: 1200.00 [14:54:52]line СДАЧА: 0.00 [14:54:52]line НСП 1% : 10.62 [14:54:52]line НДС 12% : 127.48 [14:54:52]line Наличными: 1200.00 [14:54:52]line Безнал.: 0.00 [14:54:52]line Место: АЗС № 86 "Партнер Нефть" [14:54:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:54:52]line СНО: Общий режим [14:54:52]line Чек 229 23.10.2024 14:54 [14:54:52]line Смена: 462 ФФД: 1.0 [14:54:52]line ЗНМ: 0300000155 [14:54:52]line РНМ: 0000000000100030 [14:54:52]line Версия ККМ: 001 [14:54:52]line ФМ: 0000000000965340 [14:54:52]line ФД: 188771 [14:54:52]line ФПД: 153057694059984 [14:54:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188771&fm=153057694059984&tin=02508201610067®Number=0000000000100030&sum=120000 [14:54:52]written 0, free lines is 4095 [14:54:52]OFD Sender: Processing packet 188771 [packets to send 1062, broken 1061] [14:54:52]ProducePacketName [14:54:52]name=ofd_packets/00188771 [14:54:52]OFD Sender: To server: pG, [14:54:52]CommunicateWithHost lk.salyk.kg:30040 [14:54:52]ConnectInit lk.salyk.kg [14:54:53]Connected sock=10 [14:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BD A9 0D 01 63 59 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 3B 0E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E1 02 00 35 04 06 00 8B 34 85 7C 0D D0 D3 40 04 2C 39 58 7A 43 [14:54:53]Write to MH i2c: 01 00 00 99 05 9E [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: 01 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: 01 07 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 63 0C 14 [14:54:53]RasterBufferAndPrint [14:54:53]line [14:54:53]line [14:54:53]line [14:54:53]line [14:54:53]line [14:54:53]written 0, free lines is 3174 [14:54:53]MH_Cut [14:54:53]Write to MH i2c: D1 01 00 A0 05 01 77 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: D1 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: D1 01 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: D1 01 00 A0 05 00 76 [14:54:53]Write to MH i2c: 01 00 00 A1 05 A6 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3C 25 47 00 F0 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 36 35 33 34 30 10 04 04 00 63 E1 02 00 F4 03 04 00 26 B8 18 67 B6 04 01 00 00 39 B5 FD C9 CA DA 0F 8F [14:54:53]CommunicateWithHost err = 0 [14:54:53]CheckOFDResponse [14:54:53]1017 (14) - 77093643461234 [14:54:53]1041 (16) - 0000000000965340 [14:54:53]1040 (4) - 188771 [14:54:53]1012 (4) - 23.10.2024 08:47 [14:54:53]1206 (1) - 0 [14:54:53]OFD Sender: Remove packet 188771 [14:54:53]ProducePacketName [14:54:53]name=ofd_packets/00188771 [14:54:53]NVStorageDeleteData [14:54:53]OFD Sender: No OFD packet to send [14:54:54]*** Cut start [14:54:54]*** Partial cut [14:54:54]*** CUTSNS_PIN = 1 [14:54:54]*** CUTSNS_PIN = 0 [14:54:54]*** Brake cut motor [14:54:55]Read from MH i2c: 01 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: 01 07 00 [14:54:55]MH_I2C_Read... [14:54:55]*** Stop cut motor [14:54:55]*** Cut end [14:54:55]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 FF 0F BB [14:54:55]process_action close_receipt done [14:54:55]requested_data is exist [14:54:55]produce_requested_data [14:54:55]requested_item fm.sn is exist - process it [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 11 00 00 [14:54:55]Write to MH i2c: E2 08 00 A2 05 80 11 00 00 00 00 00 00 21 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 17 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 17 00 A2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [14:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:54:55]wFMCommunicate OK [14:54:55]requested_item fd.num is exist - process it [14:54:55]SAM_PROTO_GetFieldsCounters [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 13 00 00 [14:54:55]Write to MH i2c: E2 08 00 A3 05 80 13 00 00 00 00 00 00 24 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 62 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 62 00 A3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [14:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:55]wFMCommunicate OK [14:54:55]SAM_PROTO_GetFieldsCounters done [14:54:55]requested_item shift.num is exist - process it [14:54:55]requested_item shift.opened is exist - process it [14:54:55]req_shift_opened [14:54:55]FM_GetShiftState [14:54:55]SAM_PROTO_GetShiftState [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 13 01 00 [14:54:55]Write to MH i2c: E2 08 00 A4 05 80 13 01 00 00 00 00 00 26 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 0E 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 0E 00 A4 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0E [14:54:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:54:55]wFMCommunicate OK [14:54:55]SAM_PROTO_GetShiftState done [14:54:55]FM_GetShiftState done [14:54:55]req_shift_opened done [14:54:55]requested_item shift.open_date is exist - process it [14:54:55]req_shift_open_date [14:54:55]req_shift_open_date done [14:54:55]produce_requested_data done [14:54:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188771,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:54:55]process_action_free close_receipt [14:54:55]json_value_free [14:54:55]json_value_free done [14:54:55]process_json_proto returns [14:54:55]Send response to host [14:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188771,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:54:55]free response buf [14:54:55]execute_script done [14:54:55]execute_script returns [14:54:55]free content buf [14:54:55]Sock 9.Close socket [14:54:55]Sock 9.Thread stoped [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]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:25]accept exits with 7 [14:56:25]New connection [14:56:25]New thread 3067207012 created [14:56:25]Thread 3067350372 joined [14:56:25]Waiting for new connection... [14:56:25] Sock 7.Parse request [14:56:25]Sock 7.Check first char [14:56:25]Sock 7.First char is OK [14:56:25]request: POST /json_proto HTTP/1.0 [14:56:25]Method: POST [14:56:25]URL: /json_proto [14:56:25]Method is POST - this is cgi request [14:56:25]url: /json_proto [14:56:25]query_string will be loaded in cgi processing [14:56:25]execute_cgi json_proto POST (null) [14:56:25]execute_cgi path=json_proto method=POST [14:56:25]POST find Content-Length [14:56:25]Host: 172.17.42.131:8080 [14:56:25]Content-Length: 684 [14:56:25]Content-Type: application/json [14:56:25] [14:56:25]POST finish read [14:56:25]Found Content-Length = 684 [14:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.110, "sum" : 780.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 780.00, "total" : 780.00, "payments": [ { "type": 0, "sum" : 780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:25]execute_script... [14:56:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.110, "sum" : 780.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 780.00, "total" : 780.00, "payments": [ { "type": 0, "sum" : 780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:25]POST & json_proto [14:56:25]process_json_proto [14:56:25]json parsed OK: [14:56:25]protocol is kg_v1.0 [14:56:25]action value=close_receipt [14:56:25]process_action close_receipt [14:56:25]cmd_close_receipt [14:56:25]MH_GetDate [14:56:25]Write to MH i2c: F0 00 00 A5 05 99 [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: F0 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: F0 09 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: F0 09 00 A5 05 00 9A 0E 19 67 A0 18 CA 66 B2 [14:56:25]GetLastDocTimeStamp 1729695291 [14:56:25]current date 1729695386 [14:56:25]FM_GetShiftState [14:56:25]SAM_PROTO_GetShiftState [14:56:25]wFMCommunicate request_size=4 [14:56:25]MH_SAM_APDU [14:56:25]CAPDU: 80 13 01 00 [14:56:25]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:25]Read from MH i2c: E2 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 0E 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 10 [14:56:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:56:25]wFMCommunicate OK [14:56:25]SAM_PROTO_GetShiftState done [14:56:25]FM_GetShiftState done [14:56:25]opened in 1729642525 [14:56:25]opened+sec_in_day 1729728925 [14:56:25]quantity*price = 78049 [14:56:25]sum+1 = 78050 [14:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 780.00 Внесено: 780.00 СДАЧА: 0.00 НСП 1% : 6.91 НДС 12% : 82.88 Наличными: 780.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 230 23.10.2024 14:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188772 ФПД: 136569681166344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145626&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188772&fm=136569681166344&tin=02508201610067®Number=0000000000100030&sum=78000 [14:56:26]StoreToDocumentArchive [14:56:26]shift 462 fd 188772 [14:56:26]save to /storage/0462/doc_00188772 [14:56:26]save last doc name /storage/0462/doc_00188772 to /storage/kkm_last_doc_name [14:56:26]save OK [14:56:26]Clear old archive folders... [14:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:56:26]tlvbuf is 01158220 [14:56:26]SAM_PROTO_ClearQueue [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 09 00 00 [14:56:26]Write to MH i2c: E2 08 00 B3 05 80 09 00 00 00 00 00 00 2A [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [14:56:26]RAPDU: 90 00 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_ClearQueue done [14:56:26]KKMCreateOFDPacket [14:56:26]OFDProtocolAddRootSTLVToBuf [14:56:26]FM_MakeSignedData [14:56:26]FM_MakeSignedData [14:56:26]SAM_PROTO_SignData [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 0D 01 02 [14:56:26]Write to MH i2c: E2 08 00 B4 05 80 0D 01 02 00 00 00 00 32 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [14:56:26]RAPDU: 90 00 [14:56:26]wFMCommunicate OK [14:56:26]wFMCommunicate request_size=255 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E1 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 9A 0E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E1 02 [14:56:26]Write to MH i2c: E2 02 01 B5 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E1 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 9A 0E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E1 02 00 00 C5 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [14:56:27]RAPDU: 90 00 [14:56:27]wFMCommunicate OK [14:56:27]wFMCommunicate request_size=16 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7C 35 9B 55 40 08 [14:56:27]Write to MH i2c: E2 13 00 B6 05 80 0D 02 02 0B 00 00 35 04 06 00 7C 35 9B 55 40 08 00 00 73 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [14:56:27]RAPDU: 90 00 [14:56:27]wFMCommunicate OK [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 0D 03 02 [14:56:27]Write to MH i2c: E2 08 00 B7 05 80 0D 03 02 00 00 00 00 37 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 0B 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 0B 00 B7 05 00 60 02 C2 27 23 71 41 A4 90 00 FC [14:56:27]RAPDU: 60 02 C2 27 23 71 41 A4 90 00 [14:56:27]wFMCommunicate OK [14:56:27]SAM_PROTO_SignData done [14:56:27]FM_MakeSignedData done [14:56:27]CreateOFDProtocolMessage [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 11 00 00 [14:56:27]Write to MH i2c: E2 08 00 B8 05 80 11 00 00 00 00 00 00 37 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 17 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 17 00 B8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [14:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:56:27]wFMCommunicate OK [14:56:27]CreateOFDProtocolMessage done [14:56:27]OFDSenderStorePacket 188772 [14:56:27]StoreOFDPacket docnum=188772 [14:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 72 C9 0D 01 3B E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E1 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 9A 0E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E1 02 00 35 04 06 00 7C 35 9B 55 40 08 60 02 C2 27 23 71 41 A4 [14:56:27]CheckFolder [14:56:27]dirname=/storage/ofd_packets [14:56:27]CheckFolder done [14:56:27]ProducePacketName [14:56:27]name=ofd_packets/00188772 [14:56:27]NVStorageSaveData ofd_packets/00188772 [14:56:27]File name is /storage/ofd_packets/00188772 [14:56:27]Write 307 bytes [14:56:27]NVStorageSaveData done [14:56:27]OFDSenderStorePacket done [14:56:27]KKMCreateOFDPacket done [14:56:27]NVStorageSaveData kkm_last_timestamp [14:56:27]File name is /storage/kkm_last_timestamp [14:56:27]Write 4 bytes [14:56:27]NVStorageSaveData done [14:56:27]ExternCall_PrintAddStr [14:56:27]wPrintStart [14:56:27]Write to MH i2c: 01 00 00 B9 05 BE [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 07 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 07 00 B9 05 00 00 00 00 00 FF 0F D3 [14:56:27]RasterBufferAndPrint [14:56:27]line Счет N : (1)210832 [14:56:27]line ИНН: 02508201610067 [14:56:27]line Контрольно-Кассовый Чек [14:56:27]line ПРОДАЖА [14:56:27]line ТРК (МРК, ГНК) : 11 [14:56:27]line Товар: 2710194210 [14:56:27]line D-ENERGY ДТ-К-5 [14:56:27]line 10.110 * 77.20 [14:56:27]line = 780.49 [14:56:27]line НДС 12% НСП 1% [14:56:27]line > о реализуемом товаре [14:56:27]line ОКРУГЛЕНИЕ: -0.49 [14:56:27]line ИТОГО: 780.00 [14:56:27]line Внесено: 780.00 [14:56:27]line СДАЧА: 0.00 [14:56:27]line НСП 1% : 6.91 [14:56:27]line НДС 12% : 82.88 [14:56:27]line Наличными: 780.00 [14:56:27]line Безнал.: 0.00 [14:56:27]line Место: АЗС № 86 "Партнер Нефть" [14:56:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:56:27]line СНО: Общий режим [14:56:27]line Чек 230 23.10.2024 14:56 [14:56:27]line Смена: 462 ФФД: 1.0 [14:56:27]line ЗНМ: 0300000155 [14:56:27]line РНМ: 0000000000100030 [14:56:27]line Версия ККМ: 001 [14:56:27]line ФМ: 0000000000965340 [14:56:27]line ФД: 188772 [14:56:27]line ФПД: 136569681166344 [14:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145626&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188772&fm=136569681166344&tin=02508201610067®Number=0000000000100030&sum=78000 [14:56:27]written 0, free lines is 4095 [14:56:27]OFD Sender: Processing packet 188772 [packets to send 1062, broken 1061] [14:56:27]ProducePacketName [14:56:27]name=ofd_packets/00188772 [14:56:27]OFD Sender: To server: pG, [14:56:27]CommunicateWithHost lk.salyk.kg:30040 [14:56:27]ConnectInit lk.salyk.kg [14:56:27]Connected sock=10 [14:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 72 C9 0D 01 3B E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E1 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 9A 0E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E1 02 00 35 04 06 00 7C 35 9B 55 40 08 60 02 C2 27 23 71 41 A4 [14:56:27]Write to MH i2c: 01 00 00 E4 05 E9 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 07 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 58 0C 54 [14:56:27]RasterBufferAndPrint [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]written 0, free lines is 3164 [14:56:27]MH_Cut [14:56:27]Write to MH i2c: D1 01 00 EB 05 01 C2 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 01 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 01 00 EB 05 00 C1 [14:56:27]Write to MH i2c: 01 00 00 EC 05 F1 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB D4 47 00 A9 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E1 02 00 F4 03 04 00 84 B8 18 67 B6 04 01 00 00 A4 01 1D 6B 9B 5F 89 B1 [14:56:27]CommunicateWithHost err = 0 [14:56:27]CheckOFDResponse [14:56:27]1017 (14) - 77093643461234 [14:56:27]1041 (16) - 0000000000965340 [14:56:27]1040 (4) - 188772 [14:56:27]1012 (4) - 23.10.2024 08:49 [14:56:27]1206 (1) - 0 [14:56:27]OFD Sender: Remove packet 188772 [14:56:27]ProducePacketName [14:56:27]name=ofd_packets/00188772 [14:56:27]NVStorageDeleteData [14:56:28]OFD Sender: No OFD packet to send [14:56:29]*** Cut start [14:56:29]*** Partial cut [14:56:29]*** CUTSNS_PIN = 1 [14:56:29]*** CUTSNS_PIN = 0 [14:56:29]*** Brake cut motor [14:56:29]Read from MH i2c: 01 [14:56:29]MH_I2C_Read... [14:56:29]*** Stop cut motor [14:56:29]*** Cut end [14:56:29]Read from MH i2c: 01 07 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 EC 05 00 00 00 00 00 FF 0F 06 [14:56:29]process_action close_receipt done [14:56:29]requested_data is exist [14:56:29]produce_requested_data [14:56:29]requested_item fm.sn is exist - process it [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 11 00 00 [14:56:29]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 17 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [14:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:56:29]wFMCommunicate OK [14:56:29]requested_item fd.num is exist - process it [14:56:29]SAM_PROTO_GetFieldsCounters [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 13 00 00 [14:56:29]Write to MH i2c: E2 08 00 EE 05 80 13 00 00 00 00 00 00 6F [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 62 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 62 00 EE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [14:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:29]wFMCommunicate OK [14:56:29]SAM_PROTO_GetFieldsCounters done [14:56:29]requested_item shift.num is exist - process it [14:56:29]requested_item shift.opened is exist - process it [14:56:29]req_shift_opened [14:56:29]FM_GetShiftState [14:56:29]SAM_PROTO_GetShiftState [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 13 01 00 [14:56:29]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 0E 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 59 [14:56:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:56:29]wFMCommunicate OK [14:56:29]SAM_PROTO_GetShiftState done [14:56:29]FM_GetShiftState done [14:56:29]req_shift_opened done [14:56:29]requested_item shift.open_date is exist - process it [14:56:29]req_shift_open_date [14:56:29]req_shift_open_date done [14:56:29]produce_requested_data done [14:56:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188772,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:56:29]process_action_free close_receipt [14:56:29]json_value_free [14:56:29]json_value_free done [14:56:29]process_json_proto returns [14:56:29]Send response to host [14:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188772,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:56:29]free response buf [14:56:29]execute_script done [14:56:29]execute_script returns [14:56:29]free content buf [14:56:29]Sock 7.Close socket [14:56:29]Sock 7.Thread stoped [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58: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:58]accept exits with 9 [14:58:58]New connection [14:58:58]New thread 3067350372 created [14:58:58]Thread 3067207012 joined [14:58:58]Waiting for new connection... [14:58:58] Sock 9.Parse request [14:58:58]Sock 9.Check first char [14:58:58]Sock 9.First char is OK [14:58:58]request: POST /json_proto HTTP/1.0 [14:58:58]Method: POST [14:58:58]URL: /json_proto [14:58:58]Method is POST - this is cgi request [14:58:58]url: /json_proto [14:58:58]query_string will be loaded in cgi processing [14:58:58]execute_cgi json_proto POST (null) [14:58:58]execute_cgi path=json_proto method=POST [14:58:58]POST find Content-Length [14:58:58]Host: 172.17.42.131:8080 [14:58:58]Content-Length: 825 [14:58:58]Content-Type: application/json [14:58:58] [14:58:58]POST finish read [14:58:58]Found Content-Length = 825 [14:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:58]execute_script... [14:58:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:58]POST & json_proto [14:58:58]process_json_proto [14:58:58]json parsed OK: [14:58:58]protocol is kg_v1.0 [14:58:58]action value=close_receipt [14:58:58]process_action close_receipt [14:58:58]cmd_close_receipt [14:58:58]MH_GetDate [14:58:58]Write to MH i2c: F0 00 00 F0 05 E4 [14:58:58]Write i2c OK [14:58:58]MH_I2C_Read... [14:58:58]Read from MH i2c: F0 [14:58:58]MH_I2C_Read... [14:58:58]Read from MH i2c: F0 09 00 [14:58:58]MH_I2C_Read... [14:58:58]Read from MH i2c: F0 09 00 F0 05 00 32 0F 19 67 A0 18 CA 66 96 [14:58:58]GetLastDocTimeStamp 1729695386 [14:58:58]current date 1729695538 [14:58:58]FM_GetShiftState [14:58:58]SAM_PROTO_GetShiftState [14:58:58]wFMCommunicate request_size=4 [14:58:58]MH_SAM_APDU [14:58:58]CAPDU: 80 13 01 00 [14:58:58]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [14:58:58]Write i2c OK [14:58:58]MH_I2C_Read... [14:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:58]Read from MH i2c: E2 [14:58:58]MH_I2C_Read... [14:58:58]Read from MH i2c: E2 0E 00 [14:58:58]MH_I2C_Read... [14:58:58]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5B [14:58:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:58:58]wFMCommunicate OK [14:58:58]SAM_PROTO_GetShiftState done [14:58:58]FM_GetShiftState done [14:58:58]opened in 1729642525 [14:58:58]opened+sec_in_day 1729728925 [14:58:58]quantity*price = 100051 [14:58:58]sum+1 = 100052 [14:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 231 23.10.2024 14:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188773 ФПД: 261597794429969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188773&fm=261597794429969&tin=02508201610067®Number=0000000000100030&sum=100051 [14:58:59]StoreToDocumentArchive [14:58:59]shift 462 fd 188773 [14:58:59]save to /storage/0462/doc_00188773 [14:58:59]save last doc name /storage/0462/doc_00188773 to /storage/kkm_last_doc_name [14:58:59]save OK [14:58:59]Clear old archive folders... [14:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:58:59]tlvbuf is 01115270 [14:58:59]SAM_PROTO_ClearQueue [14:58:59]wFMCommunicate request_size=4 [14:58:59]MH_SAM_APDU [14:58:59]CAPDU: 80 09 00 00 [14:58:59]Write to MH i2c: E2 08 00 FE 05 80 09 00 00 00 00 00 00 75 [14:58:59]Write i2c OK [14:58:59]MH_I2C_Read... [14:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:59]Read from MH i2c: E2 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 03 00 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [14:58:59]RAPDU: 90 00 [14:58:59]wFMCommunicate OK [14:58:59]SAM_PROTO_ClearQueue done [14:58:59]KKMCreateOFDPacket [14:58:59]OFDProtocolAddRootSTLVToBuf [14:58:59]FM_MakeSignedData [14:58:59]FM_MakeSignedData [14:58:59]SAM_PROTO_SignData [14:58:59]wFMCommunicate request_size=4 [14:58:59]MH_SAM_APDU [14:58:59]CAPDU: 80 0D 01 02 [14:58:59]Write to MH i2c: E2 08 00 FF 05 80 0D 01 02 00 00 00 00 7D [14:58:59]Write i2c OK [14:58:59]MH_I2C_Read... [14:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:59]Read from MH i2c: E2 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 03 00 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [14:58:59]RAPDU: 90 00 [14:58:59]wFMCommunicate OK [14:58:59]wFMCommunicate request_size=255 [14:58:59]MH_SAM_APDU [14:58:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 32 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E1 02 [14:58:59]Write to MH i2c: E2 02 01 00 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 32 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E1 02 00 00 00 [14:58:59]Write i2c OK [14:58:59]MH_I2C_Read... [14:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:59]Read from MH i2c: E2 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 03 00 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [14:58:59]RAPDU: 90 00 [14:58:59]wFMCommunicate OK [14:58:59]wFMCommunicate request_size=16 [14:58:59]MH_SAM_APDU [14:58:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 ED EB FB 9C 6C 11 [14:58:59]Write to MH i2c: E2 13 00 01 06 80 0D 02 02 0B 00 00 35 04 06 00 ED EB FB 9C 6C 11 00 00 C2 [14:58:59]Write i2c OK [14:58:59]MH_I2C_Read... [14:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:59]Read from MH i2c: E2 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 03 00 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [14:58:59]RAPDU: 90 00 [14:58:59]wFMCommunicate OK [14:58:59]wFMCommunicate request_size=4 [14:58:59]MH_SAM_APDU [14:58:59]CAPDU: 80 0D 03 02 [14:58:59]Write to MH i2c: E2 08 00 02 06 80 0D 03 02 00 00 00 00 83 [14:58:59]Write i2c OK [14:58:59]MH_I2C_Read... [14:58:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:59]Read from MH i2c: E2 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 0B 00 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 0B 00 02 06 00 89 85 31 09 AE C5 07 57 90 00 9D [14:58:59]RAPDU: 89 85 31 09 AE C5 07 57 90 00 [14:58:59]wFMCommunicate OK [14:58:59]SAM_PROTO_SignData done [14:58:59]FM_MakeSignedData done [14:58:59]CreateOFDProtocolMessage [14:58:59]wFMCommunicate request_size=4 [14:58:59]MH_SAM_APDU [14:58:59]CAPDU: 80 11 00 00 [14:58:59]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [14:58:59]Write i2c OK [14:58:59]MH_I2C_Read... [14:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:59]Read from MH i2c: E2 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: E2 17 00 [14:58:59]MH_I2C_Read... [14:58:59]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 36 35 33 34 30 90 00 D1 [14:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:58:59]wFMCommunicate OK [14:58:59]CreateOFDProtocolMessage done [14:58:59]OFDSenderStorePacket 188773 [14:58:59]StoreOFDPacket docnum=188773 [14:58:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 22 59 0D 01 28 9D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 32 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E1 02 00 35 04 06 00 ED EB FB 9C 6C 11 89 85 31 09 AE C5 07 57 [14:58:59]CheckFolder [14:58:59]dirname=/storage/ofd_packets [14:58:59]CheckFolder done [14:58:59]ProducePacketName [14:58:59]name=ofd_packets/00188773 [14:58:59]NVStorageSaveData ofd_packets/00188773 [14:58:59]File name is /storage/ofd_packets/00188773 [14:58:59]Write 307 bytes [14:58:59]NVStorageSaveData done [14:58:59]OFDSenderStorePacket done [14:58:59]KKMCreateOFDPacket done [14:58:59]NVStorageSaveData kkm_last_timestamp [14:58:59]File name is /storage/kkm_last_timestamp [14:58:59]Write 4 bytes [14:58:59]NVStorageSaveData done [14:58:59]ExternCall_PrintAddStr [14:58:59]wPrintStart [14:58:59]Write to MH i2c: 01 00 00 04 06 0A [14:58:59]Write i2c OK [14:58:59]MH_I2C_Read... [14:58:59]OFD Sender: Processing packet 188773 [packets to send 1062, broken 1061] [14:58:59]ProducePacketName [14:58:59]name=ofd_packets/00188773 [14:58:59]Read from MH i2c: OFD Sender: To server: pG, [14:58:59]01 CommunicateWithHost lk.salyk.kg:30040 [14:58:59] [14:58:59]ConnectInit lk.salyk.kg [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: 01 07 00 [14:58:59]MH_I2C_Read... [14:58:59]Read from MH i2c: 01 07 00 04 06 00 00 00 00 00 FF 0F 1F [14:58:59]RasterBufferAndPrint [14:58:59]line Счет N : (1)210833 [14:58:59]line ИНН: 02508201610067 [14:58:59]line Контрольно-Кассовый Чек [14:58:59]line ПРОДАЖА [14:58:59]line ТРК (МРК, ГНК) : 41 [14:58:59]line Товар: 2710194210 [14:58:59]line D-ENERGY ДТ-К-5 [14:58:59]line 12.960 * 77.20 [14:58:59]line = 1000.51 [14:58:59]line НДС 12% НСП 1% [14:58:59]line > о реализуемом товаре [14:58:59]line ИТОГО: 1000.51 [14:58:59]line НСП 1% : 8.85 [14:58:59]line НДС 12% : 106.25 [14:58:59]line Наличными: 0.00 [14:58:59]line Безнал.: 1000.51 [14:58:59]line Место: АЗС № 86 "Партнер Нефть" [14:58:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:58:59]line СНО: Общий режим [14:58:59]line Чек 231 23.10.2024 14:58 [14:58:59]line Смена: 462 ФФД: 1.0 [14:58:59]line ЗНМ: 0300000155 [14:58:59]line РНМ: 0000000000100030 [14:58:59]line Версия ККМ: 001 [14:58:59]line Платежная система: Бакай Банк [14:58:59]line ФМ: 0000000000965340 [14:58:59]line ФД: 188773 [14:58:59]line ФПД: 261597794429969 [14:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188773&fm=261597794429969&tin=02508201610067®Number=0000000000100030&sum=100051 [14:58:59]written 0, free lines is 4095 [14:59:00]Connected sock=10 [14:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 22 59 0D 01 28 9D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 32 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E1 02 00 35 04 06 00 ED EB FB 9C 6C 11 89 85 31 09 AE C5 07 57 [14:59:00]Write to MH i2c: 01 00 00 2E 06 34 [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: 01 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: 01 07 00 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 76 0C BD [14:59:00]RasterBufferAndPrint [14:59:00]line [14:59:00]line [14:59:00]line [14:59:00]line [14:59:00]line [14:59:00]written 0, free lines is 3194 [14:59:00]MH_Cut [14:59:00]Write to MH i2c: D1 01 00 35 06 01 0D [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: D1 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: D1 01 00 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: D1 01 00 35 06 00 0C [14:59:00]Write to MH i2c: 01 00 00 36 06 3C [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E0 55 47 00 57 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E1 02 00 F4 03 04 00 1D B9 18 67 B6 04 01 00 00 04 6E 8F B5 B5 6D 50 14 [14:59:00]CommunicateWithHost err = 0 [14:59:00]CheckOFDResponse [14:59:00]1017 (14) - 77093643461234 [14:59:00]1041 (16) - 0000000000965340 [14:59:00]1040 (4) - 188773 [14:59:00]1012 (4) - 23.10.2024 08:51 [14:59:00]1206 (1) - 0 [14:59:00]OFD Sender: Remove packet 188773 [14:59:00]ProducePacketName [14:59:00]name=ofd_packets/00188773 [14:59:00]NVStorageDeleteData [14:59:00]OFD Sender: No OFD packet to send [14:59:01]*** Cut start [14:59:01]*** Partial cut [14:59:01]*** CUTSNS_PIN = 1 [14:59:01]*** CUTSNS_PIN = 0 [14:59:01]*** Brake cut motor [14:59:02]Read from MH i2c: 01 [14:59:02]MH_I2C_Read... [14:59:02]*** Stop cut motor [14:59:02]*** Cut end [14:59:02]Read from MH i2c: 01 07 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 FF 0F 51 [14:59:02]process_action close_receipt done [14:59:02]requested_data is exist [14:59:02]produce_requested_data [14:59:02]requested_item fm.sn is exist - process it [14:59:02]wFMCommunicate request_size=4 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 11 00 00 [14:59:02]Write to MH i2c: E2 08 00 37 06 80 11 00 00 00 00 00 00 B7 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 17 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 17 00 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [14:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:59:02]wFMCommunicate OK [14:59:02]requested_item fd.num is exist - process it [14:59:02]SAM_PROTO_GetFieldsCounters [14:59:02]wFMCommunicate request_size=4 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 13 00 00 [14:59:02]Write to MH i2c: E2 08 00 38 06 80 13 00 00 00 00 00 00 BA [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 62 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 62 00 38 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [14:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:02]wFMCommunicate OK [14:59:02]SAM_PROTO_GetFieldsCounters done [14:59:02]requested_item shift.num is exist - process it [14:59:02]requested_item shift.opened is exist - process it [14:59:02]req_shift_opened [14:59:02]FM_GetShiftState [14:59:02]SAM_PROTO_GetShiftState [14:59:02]wFMCommunicate request_size=4 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 13 01 00 [14:59:02]Write to MH i2c: E2 08 00 39 06 80 13 01 00 00 00 00 00 BC [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 0E 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 0E 00 39 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A4 [14:59:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [14:59:02]wFMCommunicate OK [14:59:02]SAM_PROTO_GetShiftState done [14:59:02]FM_GetShiftState done [14:59:02]req_shift_opened done [14:59:02]requested_item shift.open_date is exist - process it [14:59:02]req_shift_open_date [14:59:02]req_shift_open_date done [14:59:02]produce_requested_data done [14:59:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188773,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [14:59:02]process_action_free close_receipt [14:59:02]json_value_free [14:59:02]json_value_free done [14:59:02]process_json_proto returns [14:59:02]Send response to host [14:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188773,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [14:59:02]free response buf [14:59:02]execute_script done [14:59:02]execute_script returns [14:59:02]free content buf [14:59:02]Sock 9.Close socket [14:59:02]Sock 9.Thread stoped [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:36]accept exits with 7 [15:00:36]New connection [15:00:36]New thread 3067207012 created [15:00:36]Thread 3067350372 joined [15:00:36]Waiting for new connection... [15:00:36] Sock 7.Parse request [15:00:36]Sock 7.Check first char [15:00:36]Sock 7.First char is OK [15:00:36]request: POST /json_proto HTTP/1.0 [15:00:36]Method: POST [15:00:36]URL: /json_proto [15:00:36]Method is POST - this is cgi request [15:00:36]url: /json_proto [15:00:36]query_string will be loaded in cgi processing [15:00:36]execute_cgi json_proto POST (null) [15:00:36]execute_cgi path=json_proto method=POST [15:00:36]POST find Content-Length [15:00:36]Host: 172.17.42.131:8080 [15:00:36]Content-Length: 684 [15:00:36]Content-Type: application/json [15:00:36] [15:00:36]POST finish read [15:00:36]Found Content-Length = 684 [15:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:36]execute_script... [15:00:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:36]POST & json_proto [15:00:36]process_json_proto [15:00:36]json parsed OK: [15:00:36]protocol is kg_v1.0 [15:00:36]action value=close_receipt [15:00:36]process_action close_receipt [15:00:36]cmd_close_receipt [15:00:36]MH_GetDate [15:00:36]Write to MH i2c: F0 00 00 3A 06 2F [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: F0 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: F0 09 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: F0 09 00 3A 06 00 95 0F 19 67 A0 18 CA 66 44 [15:00:36]GetLastDocTimeStamp 1729695538 [15:00:36]current date 1729695637 [15:00:36]FM_GetShiftState [15:00:36]SAM_PROTO_GetShiftState [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 13 01 00 [15:00:36]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 0E 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A6 [15:00:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:00:36]wFMCommunicate OK [15:00:36]SAM_PROTO_GetShiftState done [15:00:36]FM_GetShiftState done [15:00:36]opened in 1729642525 [15:00:36]opened+sec_in_day 1729728925 [15:00:36]quantity*price = 90015 [15:00:36]sum+1 = 90016 [15:00:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 232 23.10.2024 15:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188774 ФПД: 250133515688698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150037&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188774&fm=250133515688698&tin=02508201610067®Number=0000000000100030&sum=90000 [15:00:37]StoreToDocumentArchive [15:00:37]shift 462 fd 188774 [15:00:37]save to /storage/0462/doc_00188774 [15:00:37]save last doc name /storage/0462/doc_00188774 to /storage/kkm_last_doc_name [15:00:37]save OK [15:00:37]Clear old archive folders... [15:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:00:37]tlvbuf is 01114D60 [15:00:37]SAM_PROTO_ClearQueue [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 09 00 00 [15:00:37]Write to MH i2c: E2 08 00 48 06 80 09 00 00 00 00 00 00 C0 [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [15:00:37]RAPDU: 90 00 [15:00:37]wFMCommunicate OK [15:00:37]SAM_PROTO_ClearQueue done [15:00:37]KKMCreateOFDPacket [15:00:37]OFDProtocolAddRootSTLVToBuf [15:00:37]FM_MakeSignedData [15:00:37]FM_MakeSignedData [15:00:37]SAM_PROTO_SignData [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 0D 01 02 [15:00:37]Write to MH i2c: E2 08 00 49 06 80 0D 01 02 00 00 00 00 C8 [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [15:00:37]RAPDU: 90 00 [15:00:37]wFMCommunicate OK [15:00:37]wFMCommunicate request_size=255 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 95 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E1 02 [15:00:37]Write to MH i2c: E2 02 01 4A 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 95 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E1 02 00 00 E1 [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:38]Read from MH i2c: E2 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 03 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [15:00:38]RAPDU: 90 00 [15:00:38]wFMCommunicate OK [15:00:38]wFMCommunicate request_size=16 [15:00:38]MH_SAM_APDU [15:00:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E3 7E BF 59 5A FA [15:00:38]Write to MH i2c: E2 13 00 4B 06 80 0D 02 02 0B 00 00 35 04 06 00 E3 7E BF 59 5A FA 00 00 ED [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:38]Read from MH i2c: E2 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 03 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [15:00:38]RAPDU: 90 00 [15:00:38]wFMCommunicate OK [15:00:38]wFMCommunicate request_size=4 [15:00:38]MH_SAM_APDU [15:00:38]CAPDU: 80 0D 03 02 [15:00:38]Write to MH i2c: E2 08 00 4C 06 80 0D 03 02 00 00 00 00 CD [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:38]Read from MH i2c: E2 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 0B 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 0B 00 4C 06 00 0F B8 BA 2F D6 49 55 D7 90 00 C9 [15:00:38]RAPDU: 0F B8 BA 2F D6 49 55 D7 90 00 [15:00:38]wFMCommunicate OK [15:00:38]SAM_PROTO_SignData done [15:00:38]FM_MakeSignedData done [15:00:38]CreateOFDProtocolMessage [15:00:38]wFMCommunicate request_size=4 [15:00:38]MH_SAM_APDU [15:00:38]CAPDU: 80 11 00 00 [15:00:38]Write to MH i2c: E2 08 00 4D 06 80 11 00 00 00 00 00 00 CD [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:38]Read from MH i2c: E2 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 17 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 17 00 4D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [15:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:00:38]wFMCommunicate OK [15:00:38]CreateOFDProtocolMessage done [15:00:38]OFDSenderStorePacket 188774 [15:00:38]StoreOFDPacket docnum=188774 [15:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 17 8E 0D 01 7E 29 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 95 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E1 02 00 35 04 06 00 E3 7E BF 59 5A FA 0F B8 BA 2F D6 49 55 D7 [15:00:38]CheckFolder [15:00:38]dirname=/storage/ofd_packets [15:00:38]CheckFolder done [15:00:38]ProducePacketName [15:00:38]name=ofd_packets/00188774 [15:00:38]NVStorageSaveData ofd_packets/00188774 [15:00:38]File name is /storage/ofd_packets/00188774 [15:00:38]Write 307 bytes [15:00:38]NVStorageSaveData done [15:00:38]OFDSenderStorePacket done [15:00:38]KKMCreateOFDPacket done [15:00:38]NVStorageSaveData kkm_last_timestamp [15:00:38]File name is /storage/kkm_last_timestamp [15:00:38]Write 4 bytes [15:00:38]NVStorageSaveData done [15:00:38]ExternCall_PrintAddStr [15:00:38]wPrintStart [15:00:38]Write to MH i2c: 01 00 00 4E 06 54 [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 07 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 FF 0F 69 [15:00:38]RasterBufferAndPrint [15:00:38]line Счет N : (1)210834 [15:00:38]line ИНН: 02508201610067 [15:00:38]line Контрольно-Кассовый Чек [15:00:38]line ПРОДАЖА [15:00:38]line ТРК (МРК, ГНК) : 11 [15:00:38]line Товар: 2710194210 [15:00:38]line D-ENERGY ДТ-К-5 [15:00:38]line 11.660 * 77.20 [15:00:38]line = 900.15 [15:00:38]line НДС 12% НСП 1% [15:00:38]line > о реализуемом товаре [15:00:38]line ОКРУГЛЕНИЕ: -0.15 [15:00:38]line ИТОГО: 900.00 [15:00:38]line Внесено: 900.00 [15:00:38]line СДАЧА: 0.00 [15:00:38]line НСП 1% : 7.97 [15:00:38]line НДС 12% : 95.59 [15:00:38]line Наличными: 900.00 [15:00:38]line Безнал.: 0.00 [15:00:38]line Место: АЗС № 86 "Партнер Нефть" [15:00:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:00:38]line СНО: Общий режим [15:00:38]line Чек 232 23.10.2024 15:00 [15:00:38]line Смена: 462 ФФД: 1.0 [15:00:38]line ЗНМ: 0300000155 [15:00:38]line РНМ: 0000000000100030 [15:00:38]line Версия ККМ: 001 [15:00:38]line ФМ: 0000000000965340 [15:00:38]line ФД: 188774 [15:00:38]line ФПД: 250133515688698 [15:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150037&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188774&fm=250133515688698&tin=02508201610067®Number=0000000000100030&sum=90000 [15:00:38]written 0, free lines is 4095 [15:00:38]OFD Sender: Processing packet 188774 [packets to send 1062, broken 1061] [15:00:38]ProducePacketName [15:00:38]name=ofd_packets/00188774 [15:00:38]OFD Sender: To server: pG, [15:00:38]CommunicateWithHost lk.salyk.kg:30040 [15:00:38]ConnectInit lk.salyk.kg [15:00:38]Write to MH i2c: 01 00 00 79 06 7F [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 07 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 4E 0C E0 [15:00:38]RasterBufferAndPrint [15:00:38]line [15:00:38]line [15:00:38]line [15:00:38]line [15:00:38]line [15:00:38]written 0, free lines is 3154 [15:00:38]Connected sock=9 [15:00:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 17 8E 0D 01 7E 29 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 95 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E1 02 00 35 04 06 00 E3 7E BF 59 5A FA 0F B8 BA 2F D6 49 55 D7 [15:00:38]MH_Cut [15:00:38]Write to MH i2c: D1 01 00 80 06 01 58 [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: D1 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: D1 01 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: D1 01 00 80 06 00 57 [15:00:38]Write to MH i2c: 01 00 00 81 06 87 [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB E7 47 00 31 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 36 35 33 34 30 10 04 04 00 66 E1 02 00 F4 03 04 00 7F B9 18 67 B6 04 01 00 00 08 4E 29 11 58 98 CE A7 [15:00:39]CommunicateWithHost err = 0 [15:00:39]CheckOFDResponse [15:00:39]1017 (14) - 77093643461234 [15:00:39]1041 (16) - 0000000000965340 [15:00:39]1040 (4) - 188774 [15:00:39]1012 (4) - 23.10.2024 08:53 [15:00:39]1206 (1) - 0 [15:00:39]OFD Sender: Remove packet 188774 [15:00:39]ProducePacketName [15:00:39]name=ofd_packets/00188774 [15:00:39]NVStorageDeleteData [15:00:39]OFD Sender: No OFD packet to send [15:00:39]*** Cut start [15:00:39]*** Partial cut [15:00:39]*** CUTSNS_PIN = 1 [15:00:40]*** CUTSNS_PIN = 0 [15:00:40]*** Brake cut motor [15:00:40]Read from MH i2c: 01 [15:00:40]MH_I2C_Read... [15:00:40]*** Stop cut motor [15:00:40]*** Cut end [15:00:40]Read from MH i2c: 01 07 00 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 FF 0F 9C [15:00:40]process_action close_receipt done [15:00:40]requested_data is exist [15:00:40]produce_requested_data [15:00:40]requested_item fm.sn is exist - process it [15:00:40]wFMCommunicate request_size=4 [15:00:40]MH_SAM_APDU [15:00:40]CAPDU: 80 11 00 00 [15:00:40]Write to MH i2c: E2 08 00 82 06 80 11 00 00 00 00 00 00 02 [15:00:40]Write i2c OK [15:00:40]MH_I2C_Read... [15:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:40]Read from MH i2c: E2 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: E2 17 00 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: E2 17 00 82 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [15:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:00:40]wFMCommunicate OK [15:00:40]requested_item fd.num is exist - process it [15:00:40]SAM_PROTO_GetFieldsCounters [15:00:40]wFMCommunicate request_size=4 [15:00:40]MH_SAM_APDU [15:00:40]CAPDU: 80 13 00 00 [15:00:40]Write to MH i2c: E2 08 00 83 06 80 13 00 00 00 00 00 00 05 [15:00:40]Write i2c OK [15:00:40]MH_I2C_Read... [15:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:40]Read from MH i2c: E2 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: E2 62 00 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: E2 62 00 83 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [15:00:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:40]wFMCommunicate OK [15:00:40]SAM_PROTO_GetFieldsCounters done [15:00:40]requested_item shift.num is exist - process it [15:00:40]requested_item shift.opened is exist - process it [15:00:40]req_shift_opened [15:00:40]FM_GetShiftState [15:00:40]SAM_PROTO_GetShiftState [15:00:40]wFMCommunicate request_size=4 [15:00:40]MH_SAM_APDU [15:00:40]CAPDU: 80 13 01 00 [15:00:40]Write to MH i2c: E2 08 00 84 06 80 13 01 00 00 00 00 00 07 [15:00:40]Write i2c OK [15:00:40]MH_I2C_Read... [15:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:40]Read from MH i2c: E2 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: E2 0E 00 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: E2 0E 00 84 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EF [15:00:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:00:40]wFMCommunicate OK [15:00:40]SAM_PROTO_GetShiftState done [15:00:40]FM_GetShiftState done [15:00:40]req_shift_opened done [15:00:40]requested_item shift.open_date is exist - process it [15:00:40]req_shift_open_date [15:00:40]req_shift_open_date done [15:00:40]produce_requested_data done [15:00:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188774,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:00:40]process_action_free close_receipt [15:00:40]json_value_free [15:00:40]json_value_free done [15:00:40]process_json_proto returns [15:00:40]Send response to host [15:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188774,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:00:40]free response buf [15:00:40]execute_script done [15:00:40]execute_script returns [15:00:40]free content buf [15:00:40]Sock 7.Close socket [15:00:40]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:55]accept exits with 10 [15:01:55]New connection [15:01:55]New thread 3067350372 created [15:01:55]Thread 3067207012 joined [15:01:55]Waiting for new connection... [15:01:55] Sock 10.Parse request [15:01:55]Sock 10.Check first char [15:01:55]Sock 10.First char is OK [15:01:55]request: POST /json_proto HTTP/1.0 [15:01:55]Method: POST [15:01:55]URL: /json_proto [15:01:55]Method is POST - this is cgi request [15:01:55]url: /json_proto [15:01:55]query_string will be loaded in cgi processing [15:01:55]execute_cgi json_proto POST (null) [15:01:55]execute_cgi path=json_proto method=POST [15:01:55]POST find Content-Length [15:01:55]Host: 172.17.42.131:8080 [15:01:55]Content-Length: 677 [15:01:55]Content-Type: application/json [15:01:55] [15:01:55]POST finish read [15:01:55]Found Content-Length = 677 [15:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 7.010, "sum" : 520.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:55]execute_script... [15:01:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 7.010, "sum" : 520.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:55]POST & json_proto [15:01:55]process_json_proto [15:01:55]json parsed OK: [15:01:55]protocol is kg_v1.0 [15:01:55]action value=close_receipt [15:01:55]process_action close_receipt [15:01:55]cmd_close_receipt [15:01:55]MH_GetDate [15:01:55]Write to MH i2c: F0 00 00 85 06 7A [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: F0 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: F0 09 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: F0 09 00 85 06 00 E4 0F 19 67 A0 18 CA 66 DE [15:01:55]GetLastDocTimeStamp 1729695637 [15:01:55]current date 1729695716 [15:01:55]FM_GetShiftState [15:01:55]SAM_PROTO_GetShiftState [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 13 01 00 [15:01:55]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0E 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F1 [15:01:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_GetShiftState done [15:01:55]FM_GetShiftState done [15:01:55]opened in 1729642525 [15:01:55]opened+sec_in_day 1729728925 [15:01:55]quantity*price = 52014 [15:01:55]sum+1 = 52015 [15:01:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.24 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 233 23.10.2024 15:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188775 ФПД: 111170060121469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188775&fm=111170060121469&tin=02508201610067®Number=0000000000100030&sum=52000 [15:01:57]StoreToDocumentArchive [15:01:57]shift 462 fd 188775 [15:01:57]save to /storage/0462/doc_00188775 [15:01:57]save last doc name /storage/0462/doc_00188775 to /storage/kkm_last_doc_name [15:01:57]save OK [15:01:57]Clear old archive folders... [15:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:57]tlvbuf is 01112FA0 [15:01:57]SAM_PROTO_ClearQueue [15:01:57]wFMCommunicate request_size=4 [15:01:57]MH_SAM_APDU [15:01:57]CAPDU: 80 09 00 00 [15:01:57]Write to MH i2c: E2 08 00 93 06 80 09 00 00 00 00 00 00 0B [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:57]Read from MH i2c: E2 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 03 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [15:01:57]RAPDU: 90 00 [15:01:57]wFMCommunicate OK [15:01:57]SAM_PROTO_ClearQueue done [15:01:57]KKMCreateOFDPacket [15:01:57]OFDProtocolAddRootSTLVToBuf [15:01:57]FM_MakeSignedData [15:01:57]FM_MakeSignedData [15:01:57]SAM_PROTO_SignData [15:01:57]wFMCommunicate request_size=4 [15:01:57]MH_SAM_APDU [15:01:57]CAPDU: 80 0D 01 02 [15:01:57]Write to MH i2c: E2 08 00 94 06 80 0D 01 02 00 00 00 00 13 [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:57]Read from MH i2c: E2 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 03 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [15:01:57]RAPDU: 90 00 [15:01:57]wFMCommunicate OK [15:01:57]wFMCommunicate request_size=255 [15:01:57]MH_SAM_APDU [15:01:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E4 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E1 02 00 35 04 06 00 65 [15:01:57]Write to MH i2c: E2 02 01 95 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E4 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E1 02 00 35 04 06 00 65 00 00 B9 [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:57]Read from MH i2c: E2 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 03 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [15:01:57]RAPDU: 90 00 [15:01:57]wFMCommunicate OK [15:01:57]wFMCommunicate request_size=10 [15:01:57]MH_SAM_APDU [15:01:57]CAPDU: 80 0D 02 02 05 1B CB F1 75 7D [15:01:57]Write to MH i2c: E2 0D 00 96 06 80 0D 02 02 05 00 1B CB F1 75 7D 00 00 E9 [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:57]Read from MH i2c: E2 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 03 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [15:01:57]RAPDU: 90 00 [15:01:57]wFMCommunicate OK [15:01:57]wFMCommunicate request_size=4 [15:01:57]MH_SAM_APDU [15:01:57]CAPDU: 80 0D 03 02 [15:01:57]Write to MH i2c: E2 08 00 97 06 80 0D 03 02 00 00 00 00 18 [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:57]Read from MH i2c: E2 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 0B 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 0B 00 97 06 00 C7 AE 96 1B 46 A1 1A 1F 90 00 5F [15:01:57]RAPDU: C7 AE 96 1B 46 A1 1A 1F 90 00 [15:01:57]wFMCommunicate OK [15:01:57]SAM_PROTO_SignData done [15:01:57]FM_MakeSignedData done [15:01:57]CreateOFDProtocolMessage [15:01:57]wFMCommunicate request_size=4 [15:01:57]MH_SAM_APDU [15:01:57]CAPDU: 80 11 00 00 [15:01:57]Write to MH i2c: E2 08 00 98 06 80 11 00 00 00 00 00 00 18 [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:57]Read from MH i2c: E2 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 17 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 17 00 98 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [15:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:01:57]wFMCommunicate OK [15:01:57]CreateOFDProtocolMessage done [15:01:57]OFDSenderStorePacket 188775 [15:01:57]StoreOFDPacket docnum=188775 [15:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 31 39 07 01 A7 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E4 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E1 02 00 35 04 06 00 65 1B CB F1 75 7D C7 AE 96 1B 46 A1 1A 1F [15:01:57]CheckFolder [15:01:57]dirname=/storage/ofd_packets [15:01:57]CheckFolder done [15:01:57]ProducePacketName [15:01:57]name=ofd_packets/00188775 [15:01:57]NVStorageSaveData ofd_packets/00188775 [15:01:57]File name is /storage/ofd_packets/00188775 [15:01:57]Write 301 bytes [15:01:57]NVStorageSaveData done [15:01:57]OFDSenderStorePacket done [15:01:57]KKMCreateOFDPacket done [15:01:57]NVStorageSaveData kkm_last_timestamp [15:01:57]File name is /storage/kkm_last_timestamp [15:01:57]Write 4 bytes [15:01:57]NVStorageSaveData done [15:01:57]ExternCall_PrintAddStr [15:01:57]wPrintStart [15:01:57]Write to MH i2c: 01 00 00 99 06 9F [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: 01 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: 01 07 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: 01 07 00 99 06 00 00 00 00 00 FF 0F B4 [15:01:57]RasterBufferAndPrint [15:01:57]line Счет N : (1)210835 [15:01:57]line ИНН: 02508201610067 [15:01:57]line Контрольно-Кассовый Чек [15:01:57]line ПРОДАЖА [15:01:57]line ТРК (МРК, ГНК) : 43 [15:01:57]line Товар: 2710124500 [15:01:57]line Аи-95-К-3 [15:01:57]line 7.010 * 74.20 [15:01:57]line = 520.14 [15:01:57]line НДС 12% НСП 1% [15:01:57]line > о реализуемом товаре [15:01:57]line ОКРУГЛЕНИЕ: -0.14 [15:01:57]line ИТОГО: 520.00 [15:01:57]line Внесено: 520.00 [15:01:57]line СДАЧА: 0.00 [15:01:57]line НСП 1% : 4.60 [15:01:57]line НДС 12% : 55.24 [15:01:57]line Наличными: 520.00 [15:01:57]line Безнал.: 0.00 [15:01:57]line Место: АЗС № 86 "Партнер Нефть" [15:01:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:01:57]line СНО: Общий режим [15:01:57]line Чек 233 23.10.2024 15:01 [15:01:57]line Смена: 462 ФФД: 1.0 [15:01:57]line ЗНМ: 0300000155 [15:01:57]line РНМ: 0000000000100030 [15:01:57]line Версия ККМ: 001 [15:01:57]line ФМ: 0000000000965340 [15:01:57]line ФД: 188775 [15:01:57]line ФПД: 111170060121469 [15:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188775&fm=111170060121469&tin=02508201610067®Number=0000000000100030&sum=52000 [15:01:57]written 0, free lines is 4095 [15:01:57]OFD Sender: Processing packet 188775 [packets to send 1062, broken 1061] [15:01:57]ProducePacketName [15:01:57]name=ofd_packets/00188775 [15:01:57]OFD Sender: To server: pG, [15:01:57]CommunicateWithHost lk.salyk.kg:30040 [15:01:57]ConnectInit lk.salyk.kg [15:01:57]Connected sock=9 [15:01:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 31 39 07 01 A7 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E4 0F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E1 02 00 35 04 06 00 65 1B CB F1 75 7D C7 AE 96 1B 46 A1 1A 1F [15:01:58]Write to MH i2c: 01 00 00 C4 06 CA [15:01:58]Write i2c OK [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: 01 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: 01 07 00 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: 01 07 00 C4 06 00 00 00 00 00 57 0C 34 [15:01:58]RasterBufferAndPrint [15:01:58]line [15:01:58]line [15:01:58]line [15:01:58]line [15:01:58]line [15:01:58]written 0, free lines is 3162 [15:01:58]MH_Cut [15:01:58]Write to MH i2c: D1 01 00 CB 06 01 A3 [15:01:58]Write i2c OK [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: D1 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: D1 01 00 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: D1 01 00 CB 06 00 A2 [15:01:58]Write to MH i2c: 01 00 00 CC 06 D2 [15:01:58]Write i2c OK [15:01:58]MH_I2C_Read... [15:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD B1 47 00 A3 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E1 02 00 F4 03 04 00 CF B9 18 67 B6 04 01 00 00 96 BE 71 59 85 DF 9E 08 [15:01:58]CommunicateWithHost err = 0 [15:01:58]CheckOFDResponse [15:01:58]1017 (14) - 77093643461234 [15:01:58]1041 (16) - 0000000000965340 [15:01:58]1040 (4) - 188775 [15:01:58]1012 (4) - 23.10.2024 08:54 [15:01:58]1206 (1) - 0 [15:01:58]OFD Sender: Remove packet 188775 [15:01:58]ProducePacketName [15:01:58]name=ofd_packets/00188775 [15:01:58]NVStorageDeleteData [15:01:58]OFD Sender: No OFD packet to send [15:01:59]*** Cut start [15:01:59]*** Partial cut [15:01:59]*** CUTSNS_PIN = 1 [15:01:59]*** CUTSNS_PIN = 0 [15:01:59]*** Brake cut motor [15:01:59]Read from MH i2c: 01 [15:01:59]MH_I2C_Read... [15:01:59]*** Stop cut motor [15:01:59]*** Cut end [15:01:59]Read from MH i2c: 01 07 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 FF 0F E7 [15:01:59]process_action close_receipt done [15:01:59]requested_data is exist [15:01:59]produce_requested_data [15:01:59]requested_item fm.sn is exist - process it [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 11 00 00 [15:01:59]Write to MH i2c: E2 08 00 CD 06 80 11 00 00 00 00 00 00 4D [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:59]Read from MH i2c: E2 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: E2 17 00 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: E2 17 00 CD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [15:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:02:00]wFMCommunicate OK [15:02:00]requested_item fd.num is exist - process it [15:02:00]SAM_PROTO_GetFieldsCounters [15:02:00]wFMCommunicate request_size=4 [15:02:00]MH_SAM_APDU [15:02:00]CAPDU: 80 13 00 00 [15:02:00]Write to MH i2c: E2 08 00 CE 06 80 13 00 00 00 00 00 00 50 [15:02:00]Write i2c OK [15:02:00]MH_I2C_Read... [15:02:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:00]Read from MH i2c: E2 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: E2 62 00 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: E2 62 00 CE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [15:02:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:00]wFMCommunicate OK [15:02:00]SAM_PROTO_GetFieldsCounters done [15:02:00]requested_item shift.num is exist - process it [15:02:00]requested_item shift.opened is exist - process it [15:02:00]req_shift_opened [15:02:00]FM_GetShiftState [15:02:00]SAM_PROTO_GetShiftState [15:02:00]wFMCommunicate request_size=4 [15:02:00]MH_SAM_APDU [15:02:00]CAPDU: 80 13 01 00 [15:02:00]Write to MH i2c: E2 08 00 CF 06 80 13 01 00 00 00 00 00 52 [15:02:00]Write i2c OK [15:02:00]MH_I2C_Read... [15:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:00]Read from MH i2c: E2 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: E2 0E 00 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: E2 0E 00 CF 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3A [15:02:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:02:00]wFMCommunicate OK [15:02:00]SAM_PROTO_GetShiftState done [15:02:00]FM_GetShiftState done [15:02:00]req_shift_opened done [15:02:00]requested_item shift.open_date is exist - process it [15:02:00]req_shift_open_date [15:02:00]req_shift_open_date done [15:02:00]produce_requested_data done [15:02:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188775,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:02:00]process_action_free close_receipt [15:02:00]json_value_free [15:02:00]json_value_free done [15:02:00]process_json_proto returns [15:02:00]Send response to host [15:02:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188775,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:02:00]free response buf [15:02:00]execute_script done [15:02:00]execute_script returns [15:02:00]free content buf [15:02:00]Sock 10.Close socket [15:02:00]Sock 10.Thread stoped [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:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:42]accept exits with 7 [15:03:42]New connection [15:03:42]New thread 3067207012 created [15:03:42]Thread 3067350372 joined [15:03:42]Waiting for new connection... [15:03:42] Sock 7.Parse request [15:03:42]Sock 7.Check first char [15:03:42]Sock 7.First char is OK [15:03:42]request: POST /json_proto HTTP/1.0 [15:03:42]Method: POST [15:03:42]URL: /json_proto [15:03:42]Method is POST - this is cgi request [15:03:42]url: /json_proto [15:03:42]query_string will be loaded in cgi processing [15:03:42]execute_cgi json_proto POST (null) [15:03:42]execute_cgi path=json_proto method=POST [15:03:42]POST find Content-Length [15:03:42]Host: 172.17.42.131:8080 [15:03:42]Content-Length: 688 [15:03:42]Content-Type: application/json [15:03:42] [15:03:42]POST finish read [15:03:42]Found Content-Length = 688 [15:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:42]execute_script... [15:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:42]POST & json_proto [15:03:42]process_json_proto [15:03:42]json parsed OK: [15:03:42]protocol is kg_v1.0 [15:03:42]action value=close_receipt [15:03:42]process_action close_receipt [15:03:42]cmd_close_receipt [15:03:42]MH_GetDate [15:03:42]Write to MH i2c: F0 00 00 D0 06 C5 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: F0 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: F0 09 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: F0 09 00 D0 06 00 4F 10 19 67 A0 18 CA 66 95 [15:03:42]GetLastDocTimeStamp 1729695716 [15:03:42]current date 1729695823 [15:03:42]FM_GetShiftState [15:03:42]SAM_PROTO_GetShiftState [15:03:42]wFMCommunicate request_size=4 [15:03:42]MH_SAM_APDU [15:03:42]CAPDU: 80 13 01 00 [15:03:42]Write to MH i2c: E2 08 00 D1 06 80 13 01 00 00 00 00 00 54 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:42]Read from MH i2c: E2 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 0E 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 0E 00 D1 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3C [15:03:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:03:42]wFMCommunicate OK [15:03:42]SAM_PROTO_GetShiftState done [15:03:42]FM_GetShiftState done [15:03:42]opened in 1729642525 [15:03:42]opened+sec_in_day 1729728925 [15:03:42]quantity*price = 200025 [15:03:42]sum+1 = 200026 [15:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 234 23.10.2024 15:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188776 ФПД: 75361398464486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150343&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188776&fm=75361398464486&tin=02508201610067®Number=0000000000100030&sum=200000 [15:03:43]StoreToDocumentArchive [15:03:43]shift 462 fd 188776 [15:03:43]save to /storage/0462/doc_00188776 [15:03:43]save last doc name /storage/0462/doc_00188776 to /storage/kkm_last_doc_name [15:03:43]save OK [15:03:43]Clear old archive folders... [15:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:03:43]tlvbuf is 01128A10 [15:03:43]SAM_PROTO_ClearQueue [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 09 00 00 [15:03:43]Write to MH i2c: E2 08 00 DE 06 80 09 00 00 00 00 00 00 56 [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 03 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [15:03:43]RAPDU: 90 00 [15:03:43]wFMCommunicate OK [15:03:43]SAM_PROTO_ClearQueue done [15:03:43]KKMCreateOFDPacket [15:03:43]OFDProtocolAddRootSTLVToBuf [15:03:43]FM_MakeSignedData [15:03:43]FM_MakeSignedData [15:03:43]SAM_PROTO_SignData [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 0D 01 02 [15:03:43]Write to MH i2c: E2 08 00 DF 06 80 0D 01 02 00 00 00 00 5E [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 03 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [15:03:43]RAPDU: 90 00 [15:03:43]wFMCommunicate OK [15:03:43]wFMCommunicate request_size=255 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 4F 10 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E1 02 [15:03:43]Write to MH i2c: E2 02 01 E0 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 4F 10 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E1 02 00 00 E2 [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 03 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [15:03:43]RAPDU: 90 00 [15:03:43]wFMCommunicate OK [15:03:43]wFMCommunicate request_size=16 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 44 8A 71 62 9F E6 [15:03:43]Write to MH i2c: E2 13 00 E1 06 80 0D 02 02 0B 00 00 35 04 06 00 44 8A 71 62 9F E6 00 00 DC [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 03 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [15:03:43]RAPDU: 90 00 [15:03:43]wFMCommunicate OK [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 0D 03 02 [15:03:43]Write to MH i2c: E2 08 00 E2 06 80 0D 03 02 00 00 00 00 63 [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 0B 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 0B 00 E2 06 00 6A 1B 7B 4F 24 E5 75 CC 90 00 FD [15:03:43]RAPDU: 6A 1B 7B 4F 24 E5 75 CC 90 00 [15:03:43]wFMCommunicate OK [15:03:43]SAM_PROTO_SignData done [15:03:43]FM_MakeSignedData done [15:03:43]CreateOFDProtocolMessage [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 11 00 00 [15:03:43]Write to MH i2c: E2 08 00 E3 06 80 11 00 00 00 00 00 00 63 [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:44]Read from MH i2c: E2 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: E2 17 00 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: E2 17 00 E3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [15:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:03:44]wFMCommunicate OK [15:03:44]CreateOFDProtocolMessage done [15:03:44]OFDSenderStorePacket 188776 [15:03:44]StoreOFDPacket docnum=188776 [15:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D6 6E 0D 01 55 39 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 4F 10 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E1 02 00 35 04 06 00 44 8A 71 62 9F E6 6A 1B 7B 4F 24 E5 75 CC [15:03:44]CheckFolder [15:03:44]dirname=/storage/ofd_packets [15:03:44]CheckFolder done [15:03:44]ProducePacketName [15:03:44]name=ofd_packets/00188776 [15:03:44]NVStorageSaveData ofd_packets/00188776 [15:03:44]File name is /storage/ofd_packets/00188776 [15:03:44]Write 307 bytes [15:03:44]NVStorageSaveData done [15:03:44]OFDSenderStorePacket done [15:03:44]KKMCreateOFDPacket done [15:03:44]NVStorageSaveData kkm_last_timestamp [15:03:44]File name is /storage/kkm_last_timestamp [15:03:44]Write 4 bytes [15:03:44]NVStorageSaveData done [15:03:44]ExternCall_PrintAddStr [15:03:44]wPrintStart [15:03:44]Write to MH i2c: 01 00 00 E4 06 EA [15:03:44]Write i2c OK [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: 01 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: 01 07 00 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: 01 07 00 E4 06 00 00 00 00 00 FF 0F FF [15:03:44]RasterBufferAndPrint [15:03:44]line Счет N : (1)210836 [15:03:44]line ИНН: 02508201610067 [15:03:44]line Контрольно-Кассовый Чек [15:03:44]line ПРОДАЖА [15:03:44]line ТРК (МРК, ГНК) : 31 [15:03:44]line Товар: 2710194210 [15:03:44]line D-ENERGY ДТ-К-5 [15:03:44]line 25.910 * 77.20 [15:03:44]line = 2000.25 [15:03:44]line НДС 12% НСП 1% [15:03:44]line > о реализуемом товаре [15:03:44]line ОКРУГЛЕНИЕ: -0.25 [15:03:44]line ИТОГО: 2000.00 [15:03:44]line Внесено: 2000.00 [15:03:44]line СДАЧА: 0.00 [15:03:44]line НСП 1% : 17.70 [15:03:44]line НДС 12% : 212.42 [15:03:44]line Наличными: 2000.00 [15:03:44]line Безнал.: 0.00 [15:03:44]line Место: АЗС № 86 "Партнер Нефть" [15:03:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:03:44]line СНО: Общий режим [15:03:44]line Чек 234 23.10.2024 15:03 [15:03:44]line Смена: 462 ФФД: 1.0 [15:03:44]line ЗНМ: 0300000155 [15:03:44]line РНМ: 0000000000100030 [15:03:44]line Версия ККМ: 001 [15:03:44]line ФМ: 0000000000965340 [15:03:44]line ФД: 188776 [15:03:44]line ФПД: 75361398464486 [15:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150343&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188776&fm=75361398464486&tin=02508201610067®Number=0000000000100030&sum=200000 [15:03:44]written 0, free lines is 4095 [15:03:44]OFD Sender: Processing packet 188776 [packets to send 1062, broken 1061] [15:03:44]ProducePacketName [15:03:44]name=ofd_packets/00188776 [15:03:44]OFD Sender: To server: pG, [15:03:44]CommunicateWithHost lk.salyk.kg:30040 [15:03:44]ConnectInit lk.salyk.kg [15:03:44]Connected sock=10 [15:03:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D6 6E 0D 01 55 39 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 4F 10 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E1 02 00 35 04 06 00 44 8A 71 62 9F E6 6A 1B 7B 4F 24 E5 75 CC [15:03:44]Write to MH i2c: 01 00 00 0F 07 16 [15:03:44]Write i2c OK [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: 01 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: 01 07 00 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: 01 07 00 0F 07 00 00 00 00 00 58 0C 81 [15:03:44]RasterBufferAndPrint [15:03:44]line [15:03:44]line [15:03:44]line [15:03:44]line [15:03:44]line [15:03:44]written 0, free lines is 3164 [15:03:44]MH_Cut [15:03:44]Write to MH i2c: D1 01 00 16 07 01 EF [15:03:44]Write i2c OK [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: D1 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: D1 01 00 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: D1 01 00 16 07 00 EE [15:03:44]Write to MH i2c: 01 00 00 17 07 1E [15:03:44]Write i2c OK [15:03:44]MH_I2C_Read... [15:03:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D8 6E 47 00 F8 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E1 02 00 F4 03 04 00 39 BA 18 67 B6 04 01 00 00 AF B4 0E 11 05 2D 1C 47 [15:03:44]CommunicateWithHost err = 0 [15:03:44]CheckOFDResponse [15:03:44]1017 (14) - 77093643461234 [15:03:44]1041 (16) - 0000000000965340 [15:03:44]1040 (4) - 188776 [15:03:44]1012 (4) - 23.10.2024 08:56 [15:03:44]1206 (1) - 0 [15:03:44]OFD Sender: Remove packet 188776 [15:03:44]ProducePacketName [15:03:44]name=ofd_packets/00188776 [15:03:44]NVStorageDeleteData [15:03:45]OFD Sender: No OFD packet to send [15:03:45]*** Cut start [15:03:45]*** Partial cut [15:03:45]*** CUTSNS_PIN = 1 [15:03:45]*** CUTSNS_PIN = 0 [15:03:46]*** Brake cut motor [15:03:46]Read from MH i2c: 01 [15:03:46]MH_I2C_Read... [15:03:46]*** Stop cut motor [15:03:46]*** Cut end [15:03:46]Read from MH i2c: 01 07 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: 01 07 00 17 07 00 00 00 00 00 FF 0F 33 [15:03:46]process_action close_receipt done [15:03:46]requested_data is exist [15:03:46]produce_requested_data [15:03:46]requested_item fm.sn is exist - process it [15:03:46]wFMCommunicate request_size=4 [15:03:46]MH_SAM_APDU [15:03:46]CAPDU: 80 11 00 00 [15:03:46]Write to MH i2c: E2 08 00 18 07 80 11 00 00 00 00 00 00 99 [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 17 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 17 00 18 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [15:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:03:46]wFMCommunicate OK [15:03:46]requested_item fd.num is exist - process it [15:03:46]SAM_PROTO_GetFieldsCounters [15:03:46]wFMCommunicate request_size=4 [15:03:46]MH_SAM_APDU [15:03:46]CAPDU: 80 13 00 00 [15:03:46]Write to MH i2c: E2 08 00 19 07 80 13 00 00 00 00 00 00 9C [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 62 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 62 00 19 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:03:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:46]wFMCommunicate OK [15:03:46]SAM_PROTO_GetFieldsCounters done [15:03:46]requested_item shift.num is exist - process it [15:03:46]requested_item shift.opened is exist - process it [15:03:46]req_shift_opened [15:03:46]FM_GetShiftState [15:03:46]SAM_PROTO_GetShiftState [15:03:46]wFMCommunicate request_size=4 [15:03:46]MH_SAM_APDU [15:03:46]CAPDU: 80 13 01 00 [15:03:46]Write to MH i2c: E2 08 00 1A 07 80 13 01 00 00 00 00 00 9E [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 0E 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 0E 00 1A 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 86 [15:03:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:03:46]wFMCommunicate OK [15:03:46]SAM_PROTO_GetShiftState done [15:03:46]FM_GetShiftState done [15:03:46]req_shift_opened done [15:03:46]requested_item shift.open_date is exist - process it [15:03:46]req_shift_open_date [15:03:46]req_shift_open_date done [15:03:46]produce_requested_data done [15:03:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188776,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:03:46]process_action_free close_receipt [15:03:46]json_value_free [15:03:46]json_value_free done [15:03:46]process_json_proto returns [15:03:46]Send response to host [15:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188776,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:03:46]free response buf [15:03:46]execute_script done [15:03:46]execute_script returns [15:03:46]free content buf [15:03:46]Sock 7.Close socket [15:03:46]Sock 7.Thread stoped [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:29]accept exits with 9 [15:06:29]New connection [15:06:29]New thread 3067350372 created [15:06:29]Thread 3067207012 joined [15:06:29]Waiting for new connection... [15:06:29] Sock 9.Parse request [15:06:29]Sock 9.Check first char [15:06:29]Sock 9.First char is OK [15:06:29]request: POST /json_proto HTTP/1.0 [15:06:29]Method: POST [15:06:29]URL: /json_proto [15:06:29]Method is POST - this is cgi request [15:06:29]url: /json_proto [15:06:29]query_string will be loaded in cgi processing [15:06:29]execute_cgi json_proto POST (null) [15:06:29]execute_cgi path=json_proto method=POST [15:06:29]POST find Content-Length [15:06:29]Host: 172.17.42.131:8080 [15:06:29]Content-Length: 688 [15:06:29]Content-Type: application/json [15:06:29] [15:06:29]POST finish read [15:06:29]Found Content-Length = 688 [15:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:29]execute_script... [15:06:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:29]POST & json_proto [15:06:29]process_json_proto [15:06:29]json parsed OK: [15:06:29]protocol is kg_v1.0 [15:06:29]action value=close_receipt [15:06:29]process_action close_receipt [15:06:29]cmd_close_receipt [15:06:29]MH_GetDate [15:06:29]Write to MH i2c: F0 00 00 1B 07 11 [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: F0 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: F0 09 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: F0 09 00 1B 07 00 F6 10 19 67 A0 18 CA 66 88 [15:06:29]GetLastDocTimeStamp 1729695823 [15:06:29]current date 1729695990 [15:06:29]FM_GetShiftState [15:06:29]SAM_PROTO_GetShiftState [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 13 01 00 [15:06:29]Write to MH i2c: E2 08 00 1C 07 80 13 01 00 00 00 00 00 A0 [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 0E 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 0E 00 1C 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 88 [15:06:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:06:29]wFMCommunicate OK [15:06:29]SAM_PROTO_GetShiftState done [15:06:29]FM_GetShiftState done [15:06:29]opened in 1729642525 [15:06:29]opened+sec_in_day 1729728925 [15:06:29]quantity*price = 100051 [15:06:29]sum+1 = 100052 [15:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 235 23.10.2024 15:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188777 ФПД: 6808158288524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150630&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188777&fm=6808158288524&tin=02508201610067®Number=0000000000100030&sum=100000 [15:06:30]StoreToDocumentArchive [15:06:30]shift 462 fd 188777 [15:06:30]save to /storage/0462/doc_00188777 [15:06:30]save last doc name /storage/0462/doc_00188777 to /storage/kkm_last_doc_name [15:06:30]save OK [15:06:30]Clear old archive folders... [15:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:06:30]tlvbuf is 011391B0 [15:06:30]SAM_PROTO_ClearQueue [15:06:30]wFMCommunicate request_size=4 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 09 00 00 [15:06:30]Write to MH i2c: E2 08 00 29 07 80 09 00 00 00 00 00 00 A2 [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [15:06:30]RAPDU: 90 00 [15:06:30]wFMCommunicate OK [15:06:30]SAM_PROTO_ClearQueue done [15:06:30]KKMCreateOFDPacket [15:06:30]OFDProtocolAddRootSTLVToBuf [15:06:30]FM_MakeSignedData [15:06:30]FM_MakeSignedData [15:06:30]SAM_PROTO_SignData [15:06:30]wFMCommunicate request_size=4 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 0D 01 02 [15:06:30]Write to MH i2c: E2 08 00 2A 07 80 0D 01 02 00 00 00 00 AA [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [15:06:30]RAPDU: 90 00 [15:06:30]wFMCommunicate OK [15:06:30]wFMCommunicate request_size=255 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 F6 10 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E1 02 [15:06:30]Write to MH i2c: E2 02 01 2B 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 F6 10 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E1 02 00 00 93 [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [15:06:30]RAPDU: 90 00 [15:06:30]wFMCommunicate OK [15:06:30]wFMCommunicate request_size=16 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 06 31 25 DB 3A 8C [15:06:30]Write to MH i2c: E2 13 00 2C 07 80 0D 02 02 0B 00 00 35 04 06 00 06 31 25 DB 3A 8C 00 00 FF [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [15:06:30]RAPDU: 90 00 [15:06:30]wFMCommunicate OK [15:06:30]wFMCommunicate request_size=4 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 0D 03 02 [15:06:30]Write to MH i2c: E2 08 00 2D 07 80 0D 03 02 00 00 00 00 AF [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 0B 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 0B 00 2D 07 00 53 39 8D E4 6B 7C 2D 5B 90 00 1C [15:06:30]RAPDU: 53 39 8D E4 6B 7C 2D 5B 90 00 [15:06:30]wFMCommunicate OK [15:06:30]SAM_PROTO_SignData done [15:06:30]FM_MakeSignedData done [15:06:30]CreateOFDProtocolMessage [15:06:30]wFMCommunicate request_size=4 [15:06:30]MH_SAM_APDU [15:06:30]CAPDU: 80 11 00 00 [15:06:30]Write to MH i2c: E2 08 00 2E 07 80 11 00 00 00 00 00 00 AF [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 17 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 17 00 2E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [15:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:06:30]wFMCommunicate OK [15:06:30]CreateOFDProtocolMessage done [15:06:30]OFDSenderStorePacket 188777 [15:06:30]StoreOFDPacket docnum=188777 [15:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A0 96 0D 01 09 E8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 F6 10 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E1 02 00 35 04 06 00 06 31 25 DB 3A 8C 53 39 8D E4 6B 7C 2D 5B [15:06:30]CheckFolder [15:06:30]dirname=/storage/ofd_packets [15:06:30]CheckFolder done [15:06:30]ProducePacketName [15:06:30]name=ofd_packets/00188777 [15:06:30]NVStorageSaveData ofd_packets/00188777 [15:06:30]File name is /storage/ofd_packets/00188777 [15:06:30]Write 307 bytes [15:06:30]NVStorageSaveData done [15:06:30]OFDSenderStorePacket done [15:06:30]KKMCreateOFDPacket done [15:06:30]NVStorageSaveData kkm_last_timestamp [15:06:30]File name is /storage/kkm_last_timestamp [15:06:30]Write 4 bytes [15:06:30]NVStorageSaveData done [15:06:30]ExternCall_PrintAddStr [15:06:30]wPrintStart [15:06:30]Write to MH i2c: 01 00 00 2F 07 36 [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 07 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 07 00 2F 07 00 00 00 00 00 FF 0F 4B [15:06:31]RasterBufferAndPrint [15:06:31]line Счет N : (1)210837 [15:06:31]line ИНН: 02508201610067 [15:06:31]line Контрольно-Кассовый Чек [15:06:31]line ПРОДАЖА [15:06:31]line ТРК (МРК, ГНК) : 11 [15:06:31]line Товар: 2710194210 [15:06:31]line D-ENERGY ДТ-К-5 [15:06:31]line 12.960 * 77.20 [15:06:31]line = 1000.51 [15:06:31]line НДС 12% НСП 1% [15:06:31]line > о реализуемом товаре [15:06:31]line ОКРУГЛЕНИЕ: -0.51 [15:06:31]line ИТОГО: 1000.00 [15:06:31]line Внесено: 1000.00 [15:06:31]line СДАЧА: 0.00 [15:06:31]line НСП 1% : 8.85 [15:06:31]line НДС 12% : 106.25 [15:06:31]line Наличными: 1000.00 [15:06:31]line Безнал.: 0.00 [15:06:31]line Место: АЗС № 86 "Партнер Нефть" [15:06:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:06:31]line СНО: Общий режим [15:06:31]line Чек 235 23.10.2024 15:06 [15:06:31]line Смена: 462 ФФД: 1.0 [15:06:31]line ЗНМ: 0300000155 [15:06:31]line РНМ: 0000000000100030 [15:06:31]line Версия ККМ: 001 [15:06:31]line ФМ: 0000000000965340 [15:06:31]line ФД: 188777 [15:06:31]line ФПД: 6808158288524 [15:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150630&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188777&fm=6808158288524&tin=02508201610067®Number=0000000000100030&sum=100000 [15:06:31]written 0, free lines is 4095 [15:06:31]OFD Sender: Processing packet 188777 [packets to send 1062, broken 1061] [15:06:31]ProducePacketName [15:06:31]name=ofd_packets/00188777 [15:06:31]OFD Sender: To server: pG, [15:06:31]CommunicateWithHost lk.salyk.kg:30040 [15:06:31]ConnectInit lk.salyk.kg [15:06:31]Connected sock=10 [15:06:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A0 96 0D 01 09 E8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 F6 10 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E1 02 00 35 04 06 00 06 31 25 DB 3A 8C 53 39 8D E4 6B 7C 2D 5B [15:06:31]Write to MH i2c: 01 00 00 5A 07 61 [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 07 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 50 0C C4 [15:06:31]RasterBufferAndPrint [15:06:31]line [15:06:31]line [15:06:31]line [15:06:31]line [15:06:31]line [15:06:31]written 0, free lines is 3157 [15:06:31]MH_Cut [15:06:31]Write to MH i2c: D1 01 00 61 07 01 3A [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: D1 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: D1 01 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: D1 01 00 61 07 00 39 [15:06:31]Write to MH i2c: 01 00 00 62 07 69 [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4B 8F 47 00 4C AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E1 02 00 F4 03 04 00 E0 BA 18 67 B6 04 01 00 00 54 5C A7 9A 7F 0A 04 E9 [15:06:31]CommunicateWithHost err = 0 [15:06:31]CheckOFDResponse [15:06:31]1017 (14) - 77093643461234 [15:06:31]1041 (16) - 0000000000965340 [15:06:31]1040 (4) - 188777 [15:06:31]1012 (4) - 23.10.2024 08:59 [15:06:31]1206 (1) - 0 [15:06:31]OFD Sender: Remove packet 188777 [15:06:31]ProducePacketName [15:06:31]name=ofd_packets/00188777 [15:06:31]NVStorageDeleteData [15:06:32]OFD Sender: No OFD packet to send [15:06:32]*** Cut start [15:06:32]*** Partial cut [15:06:32]*** CUTSNS_PIN = 1 [15:06:32]*** CUTSNS_PIN = 0 [15:06:33]*** Brake cut motor [15:06:33]Read from MH i2c: 01 [15:06:33]MH_I2C_Read... [15:06:33]*** Stop cut motor [15:06:33]*** Cut end [15:06:33]Read from MH i2c: 01 07 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 07 00 62 07 00 00 00 00 00 FF 0F 7E [15:06:33]process_action close_receipt done [15:06:33]requested_data is exist [15:06:33]produce_requested_data [15:06:33]requested_item fm.sn is exist - process it [15:06:33]wFMCommunicate request_size=4 [15:06:33]MH_SAM_APDU [15:06:33]CAPDU: 80 11 00 00 [15:06:33]Write to MH i2c: E2 08 00 63 07 80 11 00 00 00 00 00 00 E4 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:33]Read from MH i2c: E2 17 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 17 00 63 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [15:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:06:33]wFMCommunicate OK [15:06:33]requested_item fd.num is exist - process it [15:06:33]SAM_PROTO_GetFieldsCounters [15:06:33]wFMCommunicate request_size=4 [15:06:33]MH_SAM_APDU [15:06:33]CAPDU: 80 13 00 00 [15:06:33]Write to MH i2c: E2 08 00 64 07 80 13 00 00 00 00 00 00 E7 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 62 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 62 00 64 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [15:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:33]wFMCommunicate OK [15:06:33]SAM_PROTO_GetFieldsCounters done [15:06:33]requested_item shift.num is exist - process it [15:06:33]requested_item shift.opened is exist - process it [15:06:33]req_shift_opened [15:06:33]FM_GetShiftState [15:06:33]SAM_PROTO_GetShiftState [15:06:33]wFMCommunicate request_size=4 [15:06:33]MH_SAM_APDU [15:06:33]CAPDU: 80 13 01 00 [15:06:33]Write to MH i2c: E2 08 00 65 07 80 13 01 00 00 00 00 00 E9 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 0E 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 0E 00 65 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D1 [15:06:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:06:33]wFMCommunicate OK [15:06:33]SAM_PROTO_GetShiftState done [15:06:33]FM_GetShiftState done [15:06:33]req_shift_opened done [15:06:33]requested_item shift.open_date is exist - process it [15:06:33]req_shift_open_date [15:06:33]req_shift_open_date done [15:06:33]produce_requested_data done [15:06:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188777,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:06:33]process_action_free close_receipt [15:06:33]json_value_free [15:06:33]json_value_free done [15:06:33]process_json_proto returns [15:06:33]Send response to host [15:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188777,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:06:33]free response buf [15:06:33]execute_script done [15:06:33]execute_script returns [15:06:33]free content buf [15:06:33]Sock 9.Close socket [15:06:33]Sock 9.Thread stoped [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:48]accept exits with 7 [15:08:48]New connection [15:08:48]New thread 3067207012 created [15:08:48]Thread 3067350372 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.42.131:8080 [15:08:48]Content-Length: 682 [15:08:48]Content-Type: application/json [15:08:48] [15:08:48]POST finish read [15:08:48]Found Content-Length = 682 [15:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 : (1)210838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 66 07 5C [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 66 07 00 80 11 19 67 A0 18 CA 66 5E [15:08:48]GetLastDocTimeStamp 1729695990 [15:08:48]current date 1729696128 [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 67 07 80 13 01 00 00 00 00 00 EB [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 67 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D3 [15:08:48]RAPDU: 09 00 01 1D 40 18 67 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 1729642525 [15:08:48]opened+sec_in_day 1729728925 [15:08:48]quantity*price = 100021 [15:08:48]sum+1 = 100023 [15:08:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 236 23.10.2024 15:08 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188778 ФПД: 42598729231597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150848&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188778&fm=42598729231597&tin=02508201610067®Number=0000000000100030&sum=100000 [15:08:49]StoreToDocumentArchive [15:08:49]shift 462 fd 188778 [15:08:49]save to /storage/0462/doc_00188778 [15:08:49]save last doc name /storage/0462/doc_00188778 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=251 [15:08:49]tlvbuf is 011146B0 [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 74 07 80 09 00 00 00 00 00 00 ED [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 74 07 00 90 00 EF [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 75 07 80 0D 01 02 00 00 00 00 F5 [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 75 07 00 90 00 F0 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 80 11 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E1 02 00 35 04 06 00 26 [15:08:49]Write to MH i2c: E2 02 01 76 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 80 11 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E1 02 00 35 04 06 00 26 00 00 C4 [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 76 07 00 90 00 F1 [15:08:49]RAPDU: 90 00 [15:08:49]wFMCommunicate OK [15:08:49]wFMCommunicate request_size=10 [15:08:49]MH_SAM_APDU [15:08:49]CAPDU: 80 0D 02 02 05 BE 4A 1F AC ED [15:08:49]Write to MH i2c: E2 0D 00 77 07 80 0D 02 02 05 00 BE 4A 1F AC ED 00 00 C2 [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 77 07 00 90 00 F2 [15:08:49]RAPDU: 90 00 [15:08:49]wFMCommunicate OK [15:08:49]wFMCommunicate request_size=4 [15:08:49]MH_SAM_APDU [15:08:49]CAPDU: 80 0D 03 02 [15:08:49]Write to MH i2c: E2 08 00 78 07 80 0D 03 02 00 00 00 00 FA [15:08:49]Write i2c OK [15:08:49]MH_I2C_Read... [15:08:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:49]Read from MH i2c: E2 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 0B 00 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 0B 00 78 07 00 08 73 26 43 2D 81 B8 36 90 00 7B [15:08:49]RAPDU: 08 73 26 43 2D 81 B8 36 90 00 [15:08:49]wFMCommunicate OK [15:08:49]SAM_PROTO_SignData done [15:08:49]FM_MakeSignedData done [15:08:49]CreateOFDProtocolMessage [15:08:49]wFMCommunicate request_size=4 [15:08:49]MH_SAM_APDU [15:08:49]CAPDU: 80 11 00 00 [15:08:49]Write to MH i2c: E2 08 00 79 07 80 11 00 00 00 00 00 00 FA [15:08:49]Write i2c OK [15:08:49]MH_I2C_Read... [15:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:49]Read from MH i2c: E2 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 17 00 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 17 00 79 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [15:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:08:49]wFMCommunicate OK [15:08:49]CreateOFDProtocolMessage done [15:08:49]OFDSenderStorePacket 188778 [15:08:49]StoreOFDPacket docnum=188778 [15:08:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E4 20 07 01 6B 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 80 11 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E1 02 00 35 04 06 00 26 BE 4A 1F AC ED 08 73 26 43 2D 81 B8 36 [15:08:49]CheckFolder [15:08:49]dirname=/storage/ofd_packets [15:08:49]CheckFolder done [15:08:49]ProducePacketName [15:08:49]name=ofd_packets/00188778 [15:08:49]NVStorageSaveData ofd_packets/00188778 [15:08:49]File name is /storage/ofd_packets/00188778 [15:08:49]Write 301 bytes [15:08:49]NVStorageSaveData done [15:08:49]OFDSenderStorePacket done [15:08:49]KKMCreateOFDPacket done [15:08:49]NVStorageSaveData kkm_last_timestamp [15:08:49]File name is /storage/kkm_last_timestamp [15:08:49]Write 4 bytes [15:08:49]NVStorageSaveData done [15:08:49]ExternCall_PrintAddStr [15:08:49]wPrintStart [15:08:49]Write to MH i2c: 01 00 00 7A 07 81 [15:08:49]Write i2c OK [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: 01 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: 01 07 00 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: 01 07 00 7A 07 00 00 00 00 00 FF 0F 96 [15:08:49]RasterBufferAndPrint [15:08:49]line Счет N : (1)210838 [15:08:49]line ИНН: 02508201610067 [15:08:49]line Контрольно-Кассовый Чек [15:08:49]line ПРОДАЖА [15:08:49]line ТРК (МРК, ГНК) : 13 [15:08:49]line Товар: 2710124500 [15:08:49]line Аи-95-К-3 [15:08:49]line 13.480 * 74.20 [15:08:49]line = 1000.22 [15:08:49]line НДС 12% НСП 1% [15:08:49]line > о реализуемом товаре [15:08:49]line ОКРУГЛЕНИЕ: -0.22 [15:08:49]line ИТОГО: 1000.00 [15:08:49]line Внесено: 1000.00 [15:08:49]line СДАЧА: 0.00 [15:08:49]line НСП 1% : 8.85 [15:08:49]line НДС 12% : 106.22 [15:08:49]line Наличными: 1000.00 [15:08:49]line Безнал.: 0.00 [15:08:49]line Место: АЗС № 86 "Партнер Нефть" [15:08:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:08:49]line СНО: Общий режим [15:08:49]line Чек 236 23.10.2024 15:08 [15:08:49]line Смена: 462 ФФД: 1.0 [15:08:49]line ЗНМ: 0300000155 [15:08:49]line РНМ: 0000000000100030 [15:08:49]line Версия ККМ: 001 [15:08:49]line ФМ: 0000000000965340 [15:08:49]line ФД: 188778 [15:08:49]line ФПД: 42598729231597 [15:08:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150848&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188778&fm=42598729231597&tin=02508201610067®Number=0000000000100030&sum=100000 [15:08:49]written 0, free lines is 4095 [15:08:49]OFD Sender: Processing packet 188778 [packets to send 1062, broken 1061] [15:08:49]ProducePacketName [15:08:49]name=ofd_packets/00188778 [15:08:49]OFD Sender: To server: pG, [15:08:49]CommunicateWithHost lk.salyk.kg:30040 [15:08:49]ConnectInit lk.salyk.kg [15:08:50]Connected sock=9 [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 36 35 33 34 30 0F 01 00 00 E4 20 07 01 6B 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 80 11 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E1 02 00 35 04 06 00 26 BE 4A 1F AC ED 08 73 26 43 2D 81 B8 36 [15:08:50]Write to MH i2c: 01 00 00 A5 07 AC [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 A5 07 00 00 00 00 00 58 0C 17 [15:08:50]RasterBufferAndPrint [15:08:50]line [15:08:50]line [15:08:50]line [15:08:50]line [15:08:50]line [15:08:50]written 0, free lines is 3164 [15:08:50]MH_Cut [15:08:50]Write to MH i2c: D1 01 00 AC 07 01 85 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: D1 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: D1 01 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: D1 01 00 AC 07 00 84 [15:08:50]Write to MH i2c: 01 00 00 AD 07 B4 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 22 47 00 5A 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E1 02 00 F4 03 04 00 6B BB 18 67 B6 04 01 00 00 C2 1F 9A 6D D7 65 04 41 [15:08:50]CommunicateWithHost err = 0 [15:08:50]CheckOFDResponse [15:08:50]1017 (14) - 77093643461234 [15:08:50]1041 (16) - 0000000000965340 [15:08:50]1040 (4) - 188778 [15:08:50]1012 (4) - 23.10.2024 09:01 [15:08:50]1206 (1) - 0 [15:08:50]OFD Sender: Remove packet 188778 [15:08:50]ProducePacketName [15:08:50]name=ofd_packets/00188778 [15:08:50]NVStorageDeleteData [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 AD 07 00 00 00 00 00 FF 0F C9 [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 AE 07 80 11 00 00 00 00 00 00 2F [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 AE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [15:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 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 AF 07 80 13 00 00 00 00 00 00 32 [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 AF 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 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 B0 07 80 13 01 00 00 00 00 00 34 [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 B0 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1C [15:08:52]RAPDU: 09 00 01 1D 40 18 67 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":"0000000000965340","fd.num":188778,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [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":"0000000000965340","fd.num":188778,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [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:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:23]accept exits with 10 [15:10:23]New connection [15:10:23]New thread 3067350372 created [15:10:23]Thread 3067207012 joined [15:10:23]Waiting for new connection... [15:10:23] Sock 10.Parse request [15:10:23]Sock 10.Check first char [15:10:23]Sock 10.First char is OK [15:10:23]request: POST /json_proto HTTP/1.0 [15:10:23]Method: POST [15:10:23]URL: /json_proto [15:10:23]Method is POST - this is cgi request [15:10:23]url: /json_proto [15:10:23]query_string will be loaded in cgi processing [15:10:23]execute_cgi json_proto POST (null) [15:10:23]execute_cgi path=json_proto method=POST [15:10:23]POST find Content-Length [15:10:23]Host: 172.17.42.131:8080 [15:10:23]Content-Length: 775 [15:10:23]Content-Type: application/json [15:10:23] [15:10:23]POST finish read [15:10:23]Found Content-Length = 775 [15:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:23]execute_script... [15:10:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:23]POST & json_proto [15:10:23]process_json_proto [15:10:23]json parsed OK: [15:10:23]protocol is kg_v1.0 [15:10:23]action value=close_receipt [15:10:23]process_action close_receipt [15:10:23]cmd_close_receipt [15:10:23]MH_GetDate [15:10:23]Write to MH i2c: F0 00 00 B1 07 A7 [15:10:23]Write i2c OK [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: F0 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: F0 09 00 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: F0 09 00 B1 07 00 E0 11 19 67 A0 18 CA 66 09 [15:10:23]GetLastDocTimeStamp 1729696128 [15:10:23]current date 1729696224 [15:10:23]FM_GetShiftState [15:10:23]SAM_PROTO_GetShiftState [15:10:23]wFMCommunicate request_size=4 [15:10:23]MH_SAM_APDU [15:10:23]CAPDU: 80 13 01 00 [15:10:23]Write to MH i2c: E2 08 00 B2 07 80 13 01 00 00 00 00 00 36 [15:10:23]Write i2c OK [15:10:23]MH_I2C_Read... [15:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:23]Read from MH i2c: E2 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: E2 0E 00 [15:10:23]MH_I2C_Read... [15:10:23]Read from MH i2c: E2 0E 00 B2 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1E [15:10:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:10:23]wFMCommunicate OK [15:10:23]SAM_PROTO_GetShiftState done [15:10:23]FM_GetShiftState done [15:10:23]opened in 1729642525 [15:10:23]opened+sec_in_day 1729728925 [15:10:23]quantity*price = 150076 [15:10:23]sum+1 = 150078 [15:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 237 23.10.2024 15:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188779 ФПД: 179131608987212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151024&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188779&fm=179131608987212&tin=02508201610067®Number=0000000000100030&sum=150077 [15:10:24]StoreToDocumentArchive [15:10:24]shift 462 fd 188779 [15:10:24]save to /storage/0462/doc_00188779 [15:10:24]save last doc name /storage/0462/doc_00188779 to /storage/kkm_last_doc_name [15:10:24]save OK [15:10:24]Clear old archive folders... [15:10:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:10:24]tlvbuf is 01158A70 [15:10:24]SAM_PROTO_ClearQueue [15:10:24]wFMCommunicate request_size=4 [15:10:24]MH_SAM_APDU [15:10:24]CAPDU: 80 09 00 00 [15:10:24]Write to MH i2c: E2 08 00 BF 07 80 09 00 00 00 00 00 00 38 [15:10:24]Write i2c OK [15:10:24]MH_I2C_Read... [15:10:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:24]Read from MH i2c: E2 [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: E2 03 00 [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: E2 03 00 BF 07 00 90 00 3A [15:10:24]RAPDU: 90 00 [15:10:24]wFMCommunicate OK [15:10:24]SAM_PROTO_ClearQueue done [15:10:24]KKMCreateOFDPacket [15:10:24]OFDProtocolAddRootSTLVToBuf [15:10:24]FM_MakeSignedData [15:10:24]FM_MakeSignedData [15:10:24]SAM_PROTO_SignData [15:10:24]wFMCommunicate request_size=4 [15:10:24]MH_SAM_APDU [15:10:24]CAPDU: 80 0D 01 02 [15:10:24]Write to MH i2c: E2 08 00 C0 07 80 0D 01 02 00 00 00 00 40 [15:10:24]Write i2c OK [15:10:24]MH_I2C_Read... [15:10:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:24]Read from MH i2c: E2 [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: E2 03 00 [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [15:10:24]RAPDU: 90 00 [15:10:24]wFMCommunicate OK [15:10:24]wFMCommunicate request_size=255 [15:10:24]MH_SAM_APDU [15:10:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 E0 11 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E1 02 [15:10:24]Write to MH i2c: E2 02 01 C1 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 E0 11 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E1 02 00 00 06 [15:10:24]Write i2c OK [15:10:24]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [15:10:25]RAPDU: 90 00 [15:10:25]wFMCommunicate OK [15:10:25]wFMCommunicate request_size=16 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A2 EB 53 EB F6 4C [15:10:25]Write to MH i2c: E2 13 00 C2 07 80 0D 02 02 0B 00 00 35 04 06 00 A2 EB 53 EB F6 4C 00 00 A5 [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [15:10:25]RAPDU: 90 00 [15:10:25]wFMCommunicate OK [15:10:25]wFMCommunicate request_size=4 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 0D 03 02 [15:10:25]Write to MH i2c: E2 08 00 C3 07 80 0D 03 02 00 00 00 00 45 [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 0B 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 0B 00 C3 07 00 EE 1A D6 17 30 BB 82 A4 90 00 4C [15:10:25]RAPDU: EE 1A D6 17 30 BB 82 A4 90 00 [15:10:25]wFMCommunicate OK [15:10:25]SAM_PROTO_SignData done [15:10:25]FM_MakeSignedData done [15:10:25]CreateOFDProtocolMessage [15:10:25]wFMCommunicate request_size=4 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 11 00 00 [15:10:25]Write to MH i2c: E2 08 00 C4 07 80 11 00 00 00 00 00 00 45 [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 17 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 17 00 C4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [15:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:10:25]wFMCommunicate OK [15:10:25]CreateOFDProtocolMessage done [15:10:25]OFDSenderStorePacket 188779 [15:10:25]StoreOFDPacket docnum=188779 [15:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 10 AE 0D 01 5D C2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 E0 11 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E1 02 00 35 04 06 00 A2 EB 53 EB F6 4C EE 1A D6 17 30 BB 82 A4 [15:10:25]CheckFolder [15:10:25]dirname=/storage/ofd_packets [15:10:25]CheckFolder done [15:10:25]ProducePacketName [15:10:25]name=ofd_packets/00188779 [15:10:25]NVStorageSaveData ofd_packets/00188779 [15:10:25]File name is /storage/ofd_packets/00188779 [15:10:25]Write 307 bytes [15:10:25]NVStorageSaveData done [15:10:25]OFDSenderStorePacket done [15:10:25]KKMCreateOFDPacket done [15:10:25]NVStorageSaveData kkm_last_timestamp [15:10:25]File name is /storage/kkm_last_timestamp [15:10:25]Write 4 bytes [15:10:25]NVStorageSaveData done [15:10:25]ExternCall_PrintAddStr [15:10:25]wPrintStart [15:10:25]Write to MH i2c: 01 00 00 C5 07 CC [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 07 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 07 00 C5 07 00 00 00 00 00 FF 0F E1 [15:10:25]RasterBufferAndPrint [15:10:25]line Счет N : (1)210839 [15:10:25]line ИНН: 02508201610067 [15:10:25]line Контрольно-Кассовый Чек [15:10:25]line ПРОДАЖА [15:10:25]line ТРК (МРК, ГНК) : 41 [15:10:25]line Товар: 2710194210 [15:10:25]line D-ENERGY ДТ-К-5 [15:10:25]line 19.440 * 77.20 [15:10:25]line = 1500.77 [15:10:25]line НДС 12% НСП 1% [15:10:25]line > о реализуемом товаре [15:10:25]line ИТОГО: 1500.77 [15:10:25]line НСП 1% : 13.28 [15:10:25]line НДС 12% : 159.37 [15:10:25]line Наличными: 0.00 [15:10:25]line Безнал.: 1500.77 [15:10:25]line Место: АЗС № 86 "Партнер Нефть" [15:10:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:10:25]line СНО: Общий режим [15:10:25]line Чек 237 23.10.2024 15:10 [15:10:25]line Смена: 462 ФФД: 1.0 [15:10:25]line ЗНМ: 0300000155 [15:10:25]line РНМ: 0000000000100030 [15:10:25]line Версия ККМ: 001 [15:10:25]line Платежная система: Mbank [15:10:25]line ФМ: 0000000000965340 [15:10:25]line ФД: 188779 [15:10:25]line ФПД: 179131608987212 [15:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151024&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188779&fm=179131608987212&tin=02508201610067®Number=0000000000100030&sum=150077 [15:10:25]written 0, free lines is 4095 [15:10:25]OFD Sender: Processing packet 188779 [packets to send 1062, broken 1061] [15:10:25]ProducePacketName [15:10:25]name=ofd_packets/00188779 [15:10:25]OFD Sender: To server: pG, [15:10:25]CommunicateWithHost lk.salyk.kg:30040 [15:10:25]ConnectInit lk.salyk.kg [15:10:25]Connected sock=7 [15:10:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 10 AE 0D 01 5D C2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 E0 11 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E1 02 00 35 04 06 00 A2 EB 53 EB F6 4C EE 1A D6 17 30 BB 82 A4 [15:10:25]Write to MH i2c: 01 00 00 EE 07 F5 [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 07 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 87 0C 8F [15:10:25]RasterBufferAndPrint [15:10:25]line [15:10:25]line [15:10:25]line [15:10:25]line [15:10:25]line [15:10:25]written 0, free lines is 3212 [15:10:25]MH_Cut [15:10:25]Write to MH i2c: D1 01 00 F5 07 01 CE [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: D1 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: D1 01 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: D1 01 00 F5 07 00 CD [15:10:25]Write to MH i2c: 01 00 00 F6 07 FD [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 75 95 47 00 D5 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 36 35 33 34 30 10 04 04 00 6B E1 02 00 F4 03 04 00 CB BB 18 67 B6 04 01 00 00 0F DC C1 52 23 E1 3B 93 [15:10:26]CommunicateWithHost err = 0 [15:10:26]CheckOFDResponse [15:10:26]1017 (14) - 77093643461234 [15:10:26]1041 (16) - 0000000000965340 [15:10:26]1040 (4) - 188779 [15:10:26]1012 (4) - 23.10.2024 09:03 [15:10:26]1206 (1) - 0 [15:10:26]OFD Sender: Remove packet 188779 [15:10:26]ProducePacketName [15:10:26]name=ofd_packets/00188779 [15:10:26]NVStorageDeleteData [15:10:26]OFD Sender: No OFD packet to send [15:10:26]*** Cut start [15:10:26]*** Partial cut [15:10:27]*** CUTSNS_PIN = 1 [15:10:27]*** CUTSNS_PIN = 0 [15:10:27]*** Brake cut motor [15:10:27]Read from MH i2c: 01 [15:10:27]MH_I2C_Read... [15:10:27]*** Stop cut motor [15:10:27]*** Cut end [15:10:27]Read from MH i2c: 01 07 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 FF 0F 12 [15:10:27]process_action close_receipt done [15:10:27]requested_data is exist [15:10:27]produce_requested_data [15:10:27]requested_item fm.sn is exist - process it [15:10:27]wFMCommunicate request_size=4 [15:10:27]MH_SAM_APDU [15:10:27]CAPDU: 80 11 00 00 [15:10:27]Write to MH i2c: E2 08 00 F7 07 80 11 00 00 00 00 00 00 78 [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:27]Read from MH i2c: E2 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 17 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 17 00 F7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [15:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:10:27]wFMCommunicate OK [15:10:27]requested_item fd.num is exist - process it [15:10:27]SAM_PROTO_GetFieldsCounters [15:10:27]wFMCommunicate request_size=4 [15:10:27]MH_SAM_APDU [15:10:27]CAPDU: 80 13 00 00 [15:10:27]Write to MH i2c: E2 08 00 F8 07 80 13 00 00 00 00 00 00 7B [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:27]Read from MH i2c: E2 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 62 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 62 00 F8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [15:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:27]wFMCommunicate OK [15:10:27]SAM_PROTO_GetFieldsCounters done [15:10:27]requested_item shift.num is exist - process it [15:10:27]requested_item shift.opened is exist - process it [15:10:27]req_shift_opened [15:10:27]FM_GetShiftState [15:10:27]SAM_PROTO_GetShiftState [15:10:27]wFMCommunicate request_size=4 [15:10:27]MH_SAM_APDU [15:10:27]CAPDU: 80 13 01 00 [15:10:27]Write to MH i2c: E2 08 00 F9 07 80 13 01 00 00 00 00 00 7D [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:27]Read from MH i2c: E2 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 0E 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 0E 00 F9 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 65 [15:10:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:10:27]wFMCommunicate OK [15:10:27]SAM_PROTO_GetShiftState done [15:10:27]FM_GetShiftState done [15:10:27]req_shift_opened done [15:10:27]requested_item shift.open_date is exist - process it [15:10:27]req_shift_open_date [15:10:27]req_shift_open_date done [15:10:27]produce_requested_data done [15:10:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188779,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:10:27]process_action_free close_receipt [15:10:27]json_value_free [15:10:27]json_value_free done [15:10:27]process_json_proto returns [15:10:27]Send response to host [15:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188779,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:10:27]free response buf [15:10:27]execute_script done [15:10:27]execute_script returns [15:10:27]free content buf [15:10:27]Sock 10.Close socket [15:10:27]Sock 10.Thread stoped [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:19]accept exits with 9 [15:16:19]New connection [15:16:19]New thread 3067207012 created [15:16:19]Thread 3067350372 joined [15:16:19]Waiting for new connection... [15:16:19] Sock 9.Parse request [15:16:19]Sock 9.Check first char [15:16:19]Sock 9.First char is OK [15:16:19]request: POST /json_proto HTTP/1.0 [15:16:19]Method: POST [15:16:19]URL: /json_proto [15:16:19]Method is POST - this is cgi request [15:16:19]url: /json_proto [15:16:19]query_string will be loaded in cgi processing [15:16:19]execute_cgi json_proto POST (null) [15:16:19]execute_cgi path=json_proto method=POST [15:16:19]POST find Content-Length [15:16:19]Host: 172.17.42.131:8080 [15:16:19]Content-Length: 688 [15:16:19]Content-Type: application/json [15:16:19] [15:16:19]POST finish read [15:16:19]Found Content-Length = 688 [15:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:19]execute_script... [15:16:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:19]POST & json_proto [15:16:19]process_json_proto [15:16:19]json parsed OK: [15:16:19]protocol is kg_v1.0 [15:16:19]action value=close_receipt [15:16:19]process_action close_receipt [15:16:19]cmd_close_receipt [15:16:19]MH_GetDate [15:16:19]Write to MH i2c: F0 00 00 FA 07 F0 [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: F0 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: F0 09 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: F0 09 00 FA 07 00 44 13 19 67 A0 18 CA 66 B8 [15:16:19]GetLastDocTimeStamp 1729696224 [15:16:19]current date 1729696580 [15:16:19]FM_GetShiftState [15:16:19]SAM_PROTO_GetShiftState [15:16:19]wFMCommunicate request_size=4 [15:16:19]MH_SAM_APDU [15:16:19]CAPDU: 80 13 01 00 [15:16:19]Write to MH i2c: E2 08 00 FB 07 80 13 01 00 00 00 00 00 7F [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:19]Read from MH i2c: E2 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 0E 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 0E 00 FB 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 67 [15:16:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:16:19]wFMCommunicate OK [15:16:19]SAM_PROTO_GetShiftState done [15:16:19]FM_GetShiftState done [15:16:19]opened in 1729642525 [15:16:19]opened+sec_in_day 1729728925 [15:16:19]quantity*price = 350024 [15:16:19]sum+1 = 350026 [15:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 238 23.10.2024 15:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188780 ФПД: 143498838725444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151620&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188780&fm=143498838725444&tin=02508201610067®Number=0000000000100030&sum=350000 [15:16:20]StoreToDocumentArchive [15:16:20]shift 462 fd 188780 [15:16:20]save to /storage/0462/doc_00188780 [15:16:20]save last doc name /storage/0462/doc_00188780 to /storage/kkm_last_doc_name [15:16:20]save OK [15:16:20]Clear old archive folders... [15:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:16:20]tlvbuf is 011150F0 [15:16:20]SAM_PROTO_ClearQueue [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 09 00 00 [15:16:20]Write to MH i2c: E2 08 00 08 08 80 09 00 00 00 00 00 00 82 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [15:16:20]RAPDU: 90 00 [15:16:20]wFMCommunicate OK [15:16:20]SAM_PROTO_ClearQueue done [15:16:20]KKMCreateOFDPacket [15:16:20]OFDProtocolAddRootSTLVToBuf [15:16:20]FM_MakeSignedData [15:16:20]FM_MakeSignedData [15:16:20]SAM_PROTO_SignData [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 0D 01 02 [15:16:20]Write to MH i2c: E2 08 00 09 08 80 0D 01 02 00 00 00 00 8A [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 09 08 00 90 00 85 [15:16:20]RAPDU: 90 00 [15:16:20]wFMCommunicate OK [15:16:20]wFMCommunicate request_size=255 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 44 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E1 02 [15:16:20]Write to MH i2c: E2 02 01 0A 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 44 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E1 02 00 00 A2 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 0A 08 00 90 00 86 [15:16:20]RAPDU: 90 00 [15:16:20]wFMCommunicate OK [15:16:20]wFMCommunicate request_size=16 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 82 82 ED 4E D3 44 [15:16:20]Write to MH i2c: E2 13 00 0B 08 80 0D 02 02 0B 00 00 35 04 06 00 82 82 ED 4E D3 44 00 00 38 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 0B 08 00 90 00 87 [15:16:20]RAPDU: 90 00 [15:16:20]wFMCommunicate OK [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 0D 03 02 [15:16:20]Write to MH i2c: E2 08 00 0C 08 80 0D 03 02 00 00 00 00 8F [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 0B 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 0B 00 0C 08 00 E2 DD 42 17 CF A0 94 A3 90 00 4E [15:16:20]RAPDU: E2 DD 42 17 CF A0 94 A3 90 00 [15:16:20]wFMCommunicate OK [15:16:20]SAM_PROTO_SignData done [15:16:20]FM_MakeSignedData done [15:16:20]CreateOFDProtocolMessage [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 11 00 00 [15:16:20]Write to MH i2c: E2 08 00 0D 08 80 11 00 00 00 00 00 00 8F [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 17 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 17 00 0D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [15:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:16:20]wFMCommunicate OK [15:16:20]CreateOFDProtocolMessage done [15:16:20]OFDSenderStorePacket 188780 [15:16:20]StoreOFDPacket docnum=188780 [15:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DD 17 0D 01 67 0C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 44 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E1 02 00 35 04 06 00 82 82 ED 4E D3 44 E2 DD 42 17 CF A0 94 A3 [15:16:20]CheckFolder [15:16:20]dirname=/storage/ofd_packets [15:16:20]CheckFolder done [15:16:20]ProducePacketName [15:16:20]name=ofd_packets/00188780 [15:16:20]NVStorageSaveData ofd_packets/00188780 [15:16:20]File name is /storage/ofd_packets/00188780 [15:16:20]Write 307 bytes [15:16:20]NVStorageSaveData done [15:16:20]OFDSenderStorePacket done [15:16:20]KKMCreateOFDPacket done [15:16:20]NVStorageSaveData kkm_last_timestamp [15:16:20]File name is /storage/kkm_last_timestamp [15:16:20]Write 4 bytes [15:16:20]NVStorageSaveData done [15:16:20]ExternCall_PrintAddStr [15:16:20]wPrintStart [15:16:20]Write to MH i2c: 01 00 00 0E 08 16 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: 01 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: 01 07 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: 01 07 00 0E 08 00 00 00 00 00 FF 0F 2B [15:16:20]RasterBufferAndPrint [15:16:20]line Счет N : (1)210841 [15:16:20]line ИНН: 02508201610067 [15:16:20]line Контрольно-Кассовый Чек [15:16:20]line ПРОДАЖА [15:16:20]line ТРК (МРК, ГНК) : 41 [15:16:20]line Товар: 2710194210 [15:16:20]line D-ENERGY ДТ-К-5 [15:16:20]line 45.340 * 77.20 [15:16:20]line = 3500.25 [15:16:20]line НДС 12% НСП 1% [15:16:20]line > о реализуемом товаре [15:16:20]line ОКРУГЛЕНИЕ: -0.25 [15:16:20]line ИТОГО: 3500.00 [15:16:20]line Внесено: 3500.00 [15:16:20]line СДАЧА: 0.00 [15:16:20]line НСП 1% : 30.98 [15:16:20]line НДС 12% : 371.71 [15:16:20]line Наличными: 3500.00 [15:16:20]line Безнал.: 0.00 [15:16:20]line Место: АЗС № 86 "Партнер Нефть" [15:16:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:16:20]line СНО: Общий режим [15:16:20]line Чек 238 23.10.2024 15:16 [15:16:20]line Смена: 462 ФФД: 1.0 [15:16:20]line ЗНМ: 0300000155 [15:16:20]line РНМ: 0000000000100030 [15:16:20]line Версия ККМ: 001 [15:16:20]line ФМ: 0000000000965340 [15:16:20]line ФД: 188780 [15:16:20]line ФПД: 143498838725444 [15:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151620&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188780&fm=143498838725444&tin=02508201610067®Number=0000000000100030&sum=350000 [15:16:21]written 0, free lines is 4095 [15:16:21]OFD Sender: Processing packet 188780 [packets to send 1062, broken 1061] [15:16:21]ProducePacketName [15:16:21]name=ofd_packets/00188780 [15:16:21]OFD Sender: To server: pG, [15:16:21]CommunicateWithHost lk.salyk.kg:30040 [15:16:21]ConnectInit lk.salyk.kg [15:16:21]Connected sock=10 [15:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DD 17 0D 01 67 0C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 44 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E1 02 00 35 04 06 00 82 82 ED 4E D3 44 E2 DD 42 17 CF A0 94 A3 [15:16:21]Write to MH i2c: 01 00 00 39 08 41 [15:16:21]Write i2c OK [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: 01 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: 01 07 00 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: 01 07 00 39 08 00 00 00 00 00 5F 0C B3 [15:16:21]RasterBufferAndPrint [15:16:21]line [15:16:21]line [15:16:21]line [15:16:21]line [15:16:21]line [15:16:21]written 0, free lines is 3170 [15:16:21]MH_Cut [15:16:21]Write to MH i2c: D1 01 00 40 08 01 1A [15:16:21]Write i2c OK [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: D1 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: D1 01 00 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: D1 01 00 40 08 00 19 [15:16:21]Write to MH i2c: 01 00 00 41 08 49 [15:16:21]Write i2c OK [15:16:21]MH_I2C_Read... [15:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 00 8F 47 00 87 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E1 02 00 F4 03 04 00 2E BD 18 67 B6 04 01 00 00 A3 FF F5 BF 77 CB 8E F1 [15:16:21]CommunicateWithHost err = 0 [15:16:21]CheckOFDResponse [15:16:21]1017 (14) - 77093643461234 [15:16:21]1041 (16) - 0000000000965340 [15:16:21]1040 (4) - 188780 [15:16:21]1012 (4) - 23.10.2024 09:09 [15:16:21]1206 (1) - 0 [15:16:21]OFD Sender: Remove packet 188780 [15:16:21]ProducePacketName [15:16:21]name=ofd_packets/00188780 [15:16:21]NVStorageDeleteData [15:16:22]OFD Sender: No OFD packet to send [15:16:22]*** Cut start [15:16:22]*** Partial cut [15:16:22]*** CUTSNS_PIN = 1 [15:16:22]*** CUTSNS_PIN = 0 [15:16:23]*** Brake cut motor [15:16:23]Read from MH i2c: 01 [15:16:23]MH_I2C_Read... [15:16:23]*** Stop cut motor [15:16:23]*** Cut end [15:16:23]Read from MH i2c: 01 07 00 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 FF 0F 5E [15:16:23]process_action close_receipt done [15:16:23]requested_data is exist [15:16:23]produce_requested_data [15:16:23]requested_item fm.sn is exist - process it [15:16:23]wFMCommunicate request_size=4 [15:16:23]MH_SAM_APDU [15:16:23]CAPDU: 80 11 00 00 [15:16:23]Write to MH i2c: E2 08 00 42 08 80 11 00 00 00 00 00 00 C4 [15:16:23]Write i2c OK [15:16:23]MH_I2C_Read... [15:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:23]Read from MH i2c: E2 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: E2 17 00 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: E2 17 00 42 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [15:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:16:23]wFMCommunicate OK [15:16:23]requested_item fd.num is exist - process it [15:16:23]SAM_PROTO_GetFieldsCounters [15:16:23]wFMCommunicate request_size=4 [15:16:23]MH_SAM_APDU [15:16:23]CAPDU: 80 13 00 00 [15:16:23]Write to MH i2c: E2 08 00 43 08 80 13 00 00 00 00 00 00 C7 [15:16:23]Write i2c OK [15:16:23]MH_I2C_Read... [15:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:23]Read from MH i2c: E2 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: E2 62 00 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: E2 62 00 43 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [15:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:23]wFMCommunicate OK [15:16:23]SAM_PROTO_GetFieldsCounters done [15:16:23]requested_item shift.num is exist - process it [15:16:23]requested_item shift.opened is exist - process it [15:16:23]req_shift_opened [15:16:23]FM_GetShiftState [15:16:23]SAM_PROTO_GetShiftState [15:16:23]wFMCommunicate request_size=4 [15:16:23]MH_SAM_APDU [15:16:23]CAPDU: 80 13 01 00 [15:16:23]Write to MH i2c: E2 08 00 44 08 80 13 01 00 00 00 00 00 C9 [15:16:23]Write i2c OK [15:16:23]MH_I2C_Read... [15:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:23]Read from MH i2c: E2 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: E2 0E 00 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: E2 0E 00 44 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B1 [15:16:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:16:23]wFMCommunicate OK [15:16:23]SAM_PROTO_GetShiftState done [15:16:23]FM_GetShiftState done [15:16:23]req_shift_opened done [15:16:23]requested_item shift.open_date is exist - process it [15:16:23]req_shift_open_date [15:16:23]req_shift_open_date done [15:16:23]produce_requested_data done [15:16:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188780,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:16:23]process_action_free close_receipt [15:16:23]json_value_free [15:16:23]json_value_free done [15:16:23]process_json_proto returns [15:16:23]Send response to host [15:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188780,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:16:23]free response buf [15:16:23]execute_script done [15:16:23]execute_script returns [15:16:23]free content buf [15:16:23]Sock 9.Close socket [15:16:23]Sock 9.Thread stoped [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:46]accept exits with 7 [15:17:46]New connection [15:17:46]New thread 3067350372 created [15:17:46]Thread 3067207012 joined [15:17:46]Waiting for new connection... [15:17:46] Sock 7.Parse request [15:17:46]Sock 7.Check first char [15:17:46]Sock 7.First char is OK [15:17:46]request: POST /json_proto HTTP/1.0 [15:17:46]Method: POST [15:17:46]URL: /json_proto [15:17:46]Method is POST - this is cgi request [15:17:46]url: /json_proto [15:17:46]query_string will be loaded in cgi processing [15:17:46]execute_cgi json_proto POST (null) [15:17:46]execute_cgi path=json_proto method=POST [15:17:46]POST find Content-Length [15:17:46]Host: 172.17.42.131:8080 [15:17:46]Content-Length: 689 [15:17:46]Content-Type: application/json [15:17:46] [15:17:46]POST finish read [15:17:46]Found Content-Length = 689 [15:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 116.590, "sum" : 9000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:46]execute_script... [15:17:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 116.590, "sum" : 9000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:46]POST & json_proto [15:17:46]process_json_proto [15:17:46]json parsed OK: [15:17:46]protocol is kg_v1.0 [15:17:46]action value=close_receipt [15:17:46]process_action close_receipt [15:17:46]cmd_close_receipt [15:17:46]MH_GetDate [15:17:46]Write to MH i2c: F0 00 00 45 08 3C [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: F0 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: F0 09 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: F0 09 00 45 08 00 9B 13 19 67 A0 18 CA 66 5B [15:17:46]GetLastDocTimeStamp 1729696580 [15:17:46]current date 1729696667 [15:17:46]FM_GetShiftState [15:17:46]SAM_PROTO_GetShiftState [15:17:46]wFMCommunicate request_size=4 [15:17:46]MH_SAM_APDU [15:17:46]CAPDU: 80 13 01 00 [15:17:46]Write to MH i2c: E2 08 00 46 08 80 13 01 00 00 00 00 00 CB [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:46]Read from MH i2c: E2 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 0E 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 0E 00 46 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B3 [15:17:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:17:46]wFMCommunicate OK [15:17:46]SAM_PROTO_GetShiftState done [15:17:46]FM_GetShiftState done [15:17:46]opened in 1729642525 [15:17:46]opened+sec_in_day 1729728925 [15:17:46]quantity*price = 900074 [15:17:46]sum+1 = 900076 [15:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 239 23.10.2024 15:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188781 ФПД: 620970949976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188781&fm=620970949976&tin=02508201610067®Number=0000000000100030&sum=900000 [15:17:47]StoreToDocumentArchive [15:17:47]shift 462 fd 188781 [15:17:47]save to /storage/0462/doc_00188781 [15:17:47]save last doc name /storage/0462/doc_00188781 to /storage/kkm_last_doc_name [15:17:47]save OK [15:17:47]Clear old archive folders... [15:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:17:47]tlvbuf is 011144E0 [15:17:47]SAM_PROTO_ClearQueue [15:17:47]wFMCommunicate request_size=4 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 09 00 00 [15:17:47]Write to MH i2c: E2 08 00 53 08 80 09 00 00 00 00 00 00 CD [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [15:17:47]RAPDU: 90 00 [15:17:47]wFMCommunicate OK [15:17:47]SAM_PROTO_ClearQueue done [15:17:47]KKMCreateOFDPacket [15:17:47]OFDProtocolAddRootSTLVToBuf [15:17:47]FM_MakeSignedData [15:17:47]FM_MakeSignedData [15:17:47]SAM_PROTO_SignData [15:17:47]wFMCommunicate request_size=4 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 0D 01 02 [15:17:47]Write to MH i2c: E2 08 00 54 08 80 0D 01 02 00 00 00 00 D5 [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [15:17:47]RAPDU: 90 00 [15:17:47]wFMCommunicate OK [15:17:47]wFMCommunicate request_size=255 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E C7 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EB BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 9B 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E1 02 [15:17:47]Write to MH i2c: E2 02 01 55 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E C7 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EB BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 9B 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E1 02 00 00 9C [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:48]Read from MH i2c: E2 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 03 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 03 00 55 08 00 90 00 D1 [15:17:48]RAPDU: 90 00 [15:17:48]wFMCommunicate OK [15:17:48]wFMCommunicate request_size=16 [15:17:48]MH_SAM_APDU [15:17:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 00 90 94 C0 BD 58 [15:17:48]Write to MH i2c: E2 13 00 56 08 80 0D 02 02 0B 00 00 35 04 06 00 00 90 94 C0 BD 58 00 00 26 [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:48]Read from MH i2c: E2 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 03 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 03 00 56 08 00 90 00 D2 [15:17:48]RAPDU: 90 00 [15:17:48]wFMCommunicate OK [15:17:48]wFMCommunicate request_size=4 [15:17:48]MH_SAM_APDU [15:17:48]CAPDU: 80 0D 03 02 [15:17:48]Write to MH i2c: E2 08 00 57 08 80 0D 03 02 00 00 00 00 DA [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:48]Read from MH i2c: E2 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 0B 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 0B 00 57 08 00 2A 6D 4D 2E 37 A8 DB 7D 90 00 24 [15:17:48]RAPDU: 2A 6D 4D 2E 37 A8 DB 7D 90 00 [15:17:48]wFMCommunicate OK [15:17:48]SAM_PROTO_SignData done [15:17:48]FM_MakeSignedData done [15:17:48]CreateOFDProtocolMessage [15:17:48]wFMCommunicate request_size=4 [15:17:48]MH_SAM_APDU [15:17:48]CAPDU: 80 11 00 00 [15:17:48]Write to MH i2c: E2 08 00 58 08 80 11 00 00 00 00 00 00 DA [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:48]Read from MH i2c: E2 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 17 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 17 00 58 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [15:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:17:48]wFMCommunicate OK [15:17:48]CreateOFDProtocolMessage done [15:17:48]OFDSenderStorePacket 188781 [15:17:48]StoreOFDPacket docnum=188781 [15:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 74 3F 0D 01 5C 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E C7 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EB BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 9B 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E1 02 00 35 04 06 00 00 90 94 C0 BD 58 2A 6D 4D 2E 37 A8 DB 7D [15:17:48]CheckFolder [15:17:48]dirname=/storage/ofd_packets [15:17:48]CheckFolder done [15:17:48]ProducePacketName [15:17:48]name=ofd_packets/00188781 [15:17:48]NVStorageSaveData ofd_packets/00188781 [15:17:48]File name is /storage/ofd_packets/00188781 [15:17:48]Write 307 bytes [15:17:48]NVStorageSaveData done [15:17:48]OFDSenderStorePacket done [15:17:48]KKMCreateOFDPacket done [15:17:48]NVStorageSaveData kkm_last_timestamp [15:17:48]File name is /storage/kkm_last_timestamp [15:17:48]Write 4 bytes [15:17:48]NVStorageSaveData done [15:17:48]ExternCall_PrintAddStr [15:17:48]wPrintStart [15:17:48]Write to MH i2c: 01 00 00 59 08 61 [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 07 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 07 00 59 08 00 00 00 00 00 FF 0F 76 [15:17:48]RasterBufferAndPrint [15:17:48]line Счет N : (1)210840 [15:17:48]line ИНН: 02508201610067 [15:17:48]line Контрольно-Кассовый Чек [15:17:48]line ПРОДАЖА [15:17:48]line ТРК (МРК, ГНК) : 31 [15:17:48]line Товар: 2710194210 [15:17:48]line D-ENERGY ДТ-К-5 [15:17:48]line 116.590 * 77.20 [15:17:48]line = 9000.75 [15:17:48]line НДС 12% НСП 1% [15:17:48]line > о реализуемом товаре [15:17:48]line ОКРУГЛЕНИЕ: -0.75 [15:17:48]line ИТОГО: 9000.00 [15:17:48]line Внесено: 9000.00 [15:17:48]line СДАЧА: 0.00 [15:17:48]line НСП 1% : 79.65 [15:17:48]line НДС 12% : 955.83 [15:17:48]line Наличными: 9000.00 [15:17:48]line Безнал.: 0.00 [15:17:48]line Место: АЗС № 86 "Партнер Нефть" [15:17:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:17:48]line СНО: Общий режим [15:17:48]line Чек 239 23.10.2024 15:17 [15:17:48]line Смена: 462 ФФД: 1.0 [15:17:48]line ЗНМ: 0300000155 [15:17:48]line РНМ: 0000000000100030 [15:17:48]line Версия ККМ: 001 [15:17:48]line ФМ: 0000000000965340 [15:17:48]line ФД: 188781 [15:17:48]line ФПД: 620970949976 [15:17:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188781&fm=620970949976&tin=02508201610067®Number=0000000000100030&sum=900000 [15:17:48]written 0, free lines is 4095 [15:17:48]OFD Sender: Processing packet 188781 [packets to send 1062, broken 1061] [15:17:48]ProducePacketName [15:17:48]name=ofd_packets/00188781 [15:17:48]OFD Sender: To server: pG, [15:17:48]CommunicateWithHost lk.salyk.kg:30040 [15:17:48]ConnectInit lk.salyk.kg [15:17:48]Connected sock=10 [15:17:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 74 3F 0D 01 5C 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E C7 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EB BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 9B 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E1 02 00 35 04 06 00 00 90 94 C0 BD 58 2A 6D 4D 2E 37 A8 DB 7D [15:17:48]Write to MH i2c: 01 00 00 84 08 8C [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 07 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 50 0C EF [15:17:48]RasterBufferAndPrint [15:17:48]line [15:17:48]line [15:17:48]line [15:17:48]line [15:17:48]line [15:17:48]written 0, free lines is 3156 [15:17:48]MH_Cut [15:17:48]Write to MH i2c: D1 01 00 8B 08 01 65 [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: D1 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: D1 01 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: D1 01 00 8B 08 00 64 [15:17:48]Write to MH i2c: 01 00 00 8C 08 94 [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 4B 47 00 B2 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 36 35 33 34 30 10 04 04 00 6D E1 02 00 F4 03 04 00 85 BD 18 67 B6 04 01 00 00 18 7E A1 DD B9 CD 05 5A [15:17:48]CommunicateWithHost err = 0 [15:17:48]CheckOFDResponse [15:17:48]1017 (14) - 77093643461234 [15:17:48]1041 (16) - 0000000000965340 [15:17:48]1040 (4) - 188781 [15:17:48]1012 (4) - 23.10.2024 09:10 [15:17:48]1206 (1) - 0 [15:17:48]OFD Sender: Remove packet 188781 [15:17:48]ProducePacketName [15:17:48]name=ofd_packets/00188781 [15:17:48]NVStorageDeleteData [15:17:49]OFD Sender: No OFD packet to send [15:17:50]*** Cut start [15:17:50]*** Partial cut [15:17:50]*** CUTSNS_PIN = 1 [15:17:50]*** CUTSNS_PIN = 0 [15:17:50]*** Brake cut motor [15:17:50]Read from MH i2c: 01 [15:17:50]MH_I2C_Read... [15:17:50]*** Stop cut motor [15:17:50]*** Cut end [15:17:50]Read from MH i2c: 01 07 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 FF 0F A9 [15:17:50]process_action close_receipt done [15:17:50]requested_data is exist [15:17:50]produce_requested_data [15:17:50]requested_item fm.sn is exist - process it [15:17:50]wFMCommunicate request_size=4 [15:17:50]MH_SAM_APDU [15:17:50]CAPDU: 80 11 00 00 [15:17:50]Write to MH i2c: E2 08 00 8D 08 80 11 00 00 00 00 00 00 0F [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:50]Read from MH i2c: E2 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 17 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 17 00 8D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [15:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:17:50]wFMCommunicate OK [15:17:50]requested_item fd.num is exist - process it [15:17:50]SAM_PROTO_GetFieldsCounters [15:17:50]wFMCommunicate request_size=4 [15:17:50]MH_SAM_APDU [15:17:50]CAPDU: 80 13 00 00 [15:17:50]Write to MH i2c: E2 08 00 8E 08 80 13 00 00 00 00 00 00 12 [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:50]Read from MH i2c: E2 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 62 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 62 00 8E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [15:17:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:50]wFMCommunicate OK [15:17:50]SAM_PROTO_GetFieldsCounters done [15:17:50]requested_item shift.num is exist - process it [15:17:50]requested_item shift.opened is exist - process it [15:17:50]req_shift_opened [15:17:50]FM_GetShiftState [15:17:50]SAM_PROTO_GetShiftState [15:17:50]wFMCommunicate request_size=4 [15:17:50]MH_SAM_APDU [15:17:50]CAPDU: 80 13 01 00 [15:17:50]Write to MH i2c: E2 08 00 8F 08 80 13 01 00 00 00 00 00 14 [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:51]Read from MH i2c: E2 [15:17:51]MH_I2C_Read... [15:17:51]Read from MH i2c: E2 0E 00 [15:17:51]MH_I2C_Read... [15:17:51]Read from MH i2c: E2 0E 00 8F 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FC [15:17:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:17:51]wFMCommunicate OK [15:17:51]SAM_PROTO_GetShiftState done [15:17:51]FM_GetShiftState done [15:17:51]req_shift_opened done [15:17:51]requested_item shift.open_date is exist - process it [15:17:51]req_shift_open_date [15:17:51]req_shift_open_date done [15:17:51]produce_requested_data done [15:17:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188781,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:17:51]process_action_free close_receipt [15:17:51]json_value_free [15:17:51]json_value_free done [15:17:51]process_json_proto returns [15:17:51]Send response to host [15:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188781,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:17:51]free response buf [15:17:51]execute_script done [15:17:51]execute_script returns [15:17:51]free content buf [15:17:51]Sock 7.Close socket [15:17:51]Sock 7.Thread stoped [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:27]accept exits with 9 [15:18:27]New connection [15:18:27]New thread 3067207012 created [15:18:27]Thread 3067350372 joined [15:18:27]Waiting for new connection... [15:18:27] Sock 9.Parse request [15:18:27]Sock 9.Check first char [15:18:27]Sock 9.First char is OK [15:18:27]request: POST /json_proto HTTP/1.0 [15:18:27]Method: POST [15:18:27]URL: /json_proto [15:18:27]Method is POST - this is cgi request [15:18:27]url: /json_proto [15:18:27]query_string will be loaded in cgi processing [15:18:27]execute_cgi json_proto POST (null) [15:18:27]execute_cgi path=json_proto method=POST [15:18:27]POST find Content-Length [15:18:27]Host: 172.17.42.131:8080 [15:18:27]Content-Length: 688 [15:18:27]Content-Type: application/json [15:18:27] [15:18:27]POST finish read [15:18:27]Found Content-Length = 688 [15:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:27]execute_script... [15:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:27]POST & json_proto [15:18:27]process_json_proto [15:18:27]json parsed OK: [15:18:27]protocol is kg_v1.0 [15:18:27]action value=close_receipt [15:18:27]process_action close_receipt [15:18:27]cmd_close_receipt [15:18:27]MH_GetDate [15:18:27]Write to MH i2c: F0 00 00 90 08 87 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: F0 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: F0 09 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: F0 09 00 90 08 00 C4 13 19 67 A0 18 CA 66 CF [15:18:27]GetLastDocTimeStamp 1729696667 [15:18:27]current date 1729696708 [15:18:27]FM_GetShiftState [15:18:27]SAM_PROTO_GetShiftState [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 13 01 00 [15:18:27]Write to MH i2c: E2 08 00 91 08 80 13 01 00 00 00 00 00 16 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 0E 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 0E 00 91 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FE [15:18:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:18:27]wFMCommunicate OK [15:18:27]SAM_PROTO_GetShiftState done [15:18:27]FM_GetShiftState done [15:18:27]opened in 1729642525 [15:18:27]opened+sec_in_day 1729728925 [15:18:27]quantity*price = 100051 [15:18:27]sum+1 = 100052 [15:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 240 23.10.2024 15:18 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188782 ФПД: 105380760594059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151828&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188782&fm=105380760594059&tin=02508201610067®Number=0000000000100030&sum=100000 [15:18:28]StoreToDocumentArchive [15:18:28]shift 462 fd 188782 [15:18:28]save to /storage/0462/doc_00188782 [15:18:28]save last doc name /storage/0462/doc_00188782 to /storage/kkm_last_doc_name [15:18:28]save OK [15:18:28]Clear old archive folders... [15:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:18:28]tlvbuf is 010EEA20 [15:18:28]SAM_PROTO_ClearQueue [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 09 00 00 [15:18:28]Write to MH i2c: E2 08 00 9E 08 80 09 00 00 00 00 00 00 18 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]SAM_PROTO_ClearQueue done [15:18:28]KKMCreateOFDPacket [15:18:28]OFDProtocolAddRootSTLVToBuf [15:18:28]FM_MakeSignedData [15:18:28]FM_MakeSignedData [15:18:28]SAM_PROTO_SignData [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 01 02 [15:18:28]Write to MH i2c: E2 08 00 9F 08 80 0D 01 02 00 00 00 00 20 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 9F 08 00 90 00 1B [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]wFMCommunicate request_size=255 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C4 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E1 02 [15:18:28]Write to MH i2c: E2 02 01 A0 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C4 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E1 02 00 00 E4 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]wFMCommunicate request_size=16 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5F D7 DE CD 26 8B [15:18:28]Write to MH i2c: E2 13 00 A1 08 80 0D 02 02 0B 00 00 35 04 06 00 5F D7 DE CD 26 8B 00 00 0A [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 03 02 [15:18:28]Write to MH i2c: E2 08 00 A2 08 80 0D 03 02 00 00 00 00 25 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:29]Read from MH i2c: E2 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 0B 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 0B 00 A2 08 00 3C 9A 35 7A 17 20 87 87 90 00 F0 [15:18:29]RAPDU: 3C 9A 35 7A 17 20 87 87 90 00 [15:18:29]wFMCommunicate OK [15:18:29]SAM_PROTO_SignData done [15:18:29]FM_MakeSignedData done [15:18:29]CreateOFDProtocolMessage [15:18:29]wFMCommunicate request_size=4 [15:18:29]MH_SAM_APDU [15:18:29]CAPDU: 80 11 00 00 [15:18:29]Write to MH i2c: E2 08 00 A3 08 80 11 00 00 00 00 00 00 25 [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:29]Read from MH i2c: E2 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 17 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: E2 17 00 A3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [15:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:18:29]wFMCommunicate OK [15:18:29]CreateOFDProtocolMessage done [15:18:29]OFDSenderStorePacket 188782 [15:18:29]StoreOFDPacket docnum=188782 [15:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AA DD 0D 01 51 8A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C4 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E1 02 00 35 04 06 00 5F D7 DE CD 26 8B 3C 9A 35 7A 17 20 87 87 [15:18:29]CheckFolder [15:18:29]dirname=/storage/ofd_packets [15:18:29]CheckFolder done [15:18:29]ProducePacketName [15:18:29]name=ofd_packets/00188782 [15:18:29]NVStorageSaveData ofd_packets/00188782 [15:18:29]File name is /storage/ofd_packets/00188782 [15:18:29]Write 307 bytes [15:18:29]NVStorageSaveData done [15:18:29]OFDSenderStorePacket done [15:18:29]KKMCreateOFDPacket done [15:18:29]NVStorageSaveData kkm_last_timestamp [15:18:29]File name is /storage/kkm_last_timestamp [15:18:29]Write 4 bytes [15:18:29]NVStorageSaveData done [15:18:29]ExternCall_PrintAddStr [15:18:29]wPrintStart [15:18:29]Write to MH i2c: 01 00 00 A4 08 AC [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 A4 08 00 00 00 00 00 FF 0F C1 [15:18:29]RasterBufferAndPrint [15:18:29]line Счет N : (1)210842 [15:18:29]line ИНН: 02508201610067 [15:18:29]line Контрольно-Кассовый Чек [15:18:29]line ПРОДАЖА [15:18:29]line ТРК (МРК, ГНК) : 41 [15:18:29]line Товар: 2710194210 [15:18:29]line D-ENERGY ДТ-К-5 [15:18:29]line 12.960 * 77.20 [15:18:29]line = 1000.51 [15:18:29]line НДС 12% НСП 1% [15:18:29]line > о реализуемом товаре [15:18:29]line ОКРУГЛЕНИЕ: -0.51 [15:18:29]line ИТОГО: 1000.00 [15:18:29]line Внесено: 1000.00 [15:18:29]line СДАЧА: 0.00 [15:18:29]line НСП 1% : 8.85 [15:18:29]line НДС 12% : 106.25 [15:18:29]line Наличными: 1000.00 [15:18:29]line Безнал.: 0.00 [15:18:29]line Место: АЗС № 86 "Партнер Нефть" [15:18:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:18:29]line СНО: Общий режим [15:18:29]line Чек 240 23.10.2024 15:18 [15:18:29]line Смена: 462 ФФД: 1.0 [15:18:29]line ЗНМ: 0300000155 [15:18:29]line РНМ: 0000000000100030 [15:18:29]line Версия ККМ: 001 [15:18:29]line ФМ: 0000000000965340 [15:18:29]line ФД: 188782 [15:18:29]line ФПД: 105380760594059 [15:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151828&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188782&fm=105380760594059&tin=02508201610067®Number=0000000000100030&sum=100000 [15:18:29]written 0, free lines is 4095 [15:18:29]OFD Sender: Processing packet 188782 [packets to send 1062, broken 1061] [15:18:29]ProducePacketName [15:18:29]name=ofd_packets/00188782 [15:18:29]OFD Sender: To server: pG, [15:18:29]CommunicateWithHost lk.salyk.kg:30040 [15:18:29]ConnectInit lk.salyk.kg [15:18:29]Connected sock=10 [15:18:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AA DD 0D 01 51 8A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C4 13 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E1 02 00 35 04 06 00 5F D7 DE CD 26 8B 3C 9A 35 7A 17 20 87 87 [15:18:29]Write to MH i2c: 01 00 00 CF 08 D7 [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 57 0C 41 [15:18:29]RasterBufferAndPrint [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]written 0, free lines is 3162 [15:18:29]MH_Cut [15:18:29]Write to MH i2c: D1 01 00 D6 08 01 B0 [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: D1 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: D1 01 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: D1 01 00 D6 08 00 AF [15:18:29]Write to MH i2c: 01 00 00 D7 08 DF [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 91 F5 47 00 16 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E1 02 00 F4 03 04 00 AE BD 18 67 B6 04 01 00 00 90 F5 18 B3 03 7B 43 6D [15:18:29]CommunicateWithHost err = 0 [15:18:29]CheckOFDResponse [15:18:29]1017 (14) - 77093643461234 [15:18:29]1041 (16) - 0000000000965340 [15:18:29]1040 (4) - 188782 [15:18:29]1012 (4) - 23.10.2024 09:11 [15:18:29]1206 (1) - 0 [15:18:29]OFD Sender: Remove packet 188782 [15:18:29]ProducePacketName [15:18:29]name=ofd_packets/00188782 [15:18:29]NVStorageDeleteData [15:18:30]OFD Sender: No OFD packet to send [15:18:30]*** Cut start [15:18:30]*** Partial cut [15:18:30]*** CUTSNS_PIN = 1 [15:18:30]*** CUTSNS_PIN = 0 [15:18:31]*** Brake cut motor [15:18:31]Read from MH i2c: 01 [15:18:31]MH_I2C_Read... [15:18:31]*** Stop cut motor [15:18:31]*** Cut end [15:18:31]Read from MH i2c: 01 07 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [15:18:31]process_action close_receipt done [15:18:31]requested_data is exist [15:18:31]produce_requested_data [15:18:31]requested_item fm.sn is exist - process it [15:18:31]wFMCommunicate request_size=4 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 11 00 00 [15:18:31]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 17 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [15:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:18:31]wFMCommunicate OK [15:18:31]requested_item fd.num is exist - process it [15:18:31]SAM_PROTO_GetFieldsCounters [15:18:31]wFMCommunicate request_size=4 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 13 00 00 [15:18:31]Write to MH i2c: E2 08 00 D9 08 80 13 00 00 00 00 00 00 5D [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 62 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 62 00 D9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [15:18:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:31]wFMCommunicate OK [15:18:31]SAM_PROTO_GetFieldsCounters done [15:18:31]requested_item shift.num is exist - process it [15:18:31]requested_item shift.opened is exist - process it [15:18:31]req_shift_opened [15:18:31]FM_GetShiftState [15:18:31]SAM_PROTO_GetShiftState [15:18:31]wFMCommunicate request_size=4 [15:18:31]MH_SAM_APDU [15:18:31]CAPDU: 80 13 01 00 [15:18:31]Write to MH i2c: E2 08 00 DA 08 80 13 01 00 00 00 00 00 5F [15:18:31]Write i2c OK [15:18:31]MH_I2C_Read... [15:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:31]Read from MH i2c: E2 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 0E 00 [15:18:31]MH_I2C_Read... [15:18:31]Read from MH i2c: E2 0E 00 DA 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 47 [15:18:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:18:31]wFMCommunicate OK [15:18:31]SAM_PROTO_GetShiftState done [15:18:31]FM_GetShiftState done [15:18:31]req_shift_opened done [15:18:31]requested_item shift.open_date is exist - process it [15:18:31]req_shift_open_date [15:18:31]req_shift_open_date done [15:18:31]produce_requested_data done [15:18:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188782,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:18:31]process_action_free close_receipt [15:18:31]json_value_free [15:18:31]json_value_free done [15:18:31]process_json_proto returns [15:18:31]Send response to host [15:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188782,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:18:31]free response buf [15:18:31]execute_script done [15:18:31]execute_script returns [15:18:31]free content buf [15:18:31]Sock 9.Close socket [15:18:31]Sock 9.Thread stoped [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:39]accept exits with 7 [15:19:39]New connection [15:19:39]New thread 3067350372 created [15:19:39]Thread 3067207012 joined [15:19:39]Waiting for new connection... [15:19:39] Sock 7.Parse request [15:19:39]Sock 7.Check first char [15:19:39]Sock 7.First char is OK [15:19:39]request: POST /json_proto HTTP/1.0 [15:19:39]Method: POST [15:19:39]URL: /json_proto [15:19:39]Method is POST - this is cgi request [15:19:39]url: /json_proto [15:19:39]query_string will be loaded in cgi processing [15:19:39]execute_cgi json_proto POST (null) [15:19:39]execute_cgi path=json_proto method=POST [15:19:39]POST find Content-Length [15:19:39]Host: 172.17.42.131:8080 [15:19:39]Content-Length: 677 [15:19:39]Content-Type: application/json [15:19:39] [15:19:39]POST finish read [15:19:39]Found Content-Length = 677 [15:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:39]execute_script... [15:19:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:39]POST & json_proto [15:19:39]process_json_proto [15:19:39]json parsed OK: [15:19:39]protocol is kg_v1.0 [15:19:39]action value=close_receipt [15:19:39]process_action close_receipt [15:19:39]cmd_close_receipt [15:19:39]MH_GetDate [15:19:39]Write to MH i2c: F0 00 00 DB 08 D2 [15:19:39]Write i2c OK [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: F0 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: F0 09 00 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: F0 09 00 DB 08 00 0C 14 19 67 A0 18 CA 66 63 [15:19:39]GetLastDocTimeStamp 1729696708 [15:19:39]current date 1729696780 [15:19:39]FM_GetShiftState [15:19:39]SAM_PROTO_GetShiftState [15:19:39]wFMCommunicate request_size=4 [15:19:39]MH_SAM_APDU [15:19:39]CAPDU: 80 13 01 00 [15:19:39]Write to MH i2c: E2 08 00 DC 08 80 13 01 00 00 00 00 00 61 [15:19:39]Write i2c OK [15:19:39]MH_I2C_Read... [15:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:39]Read from MH i2c: E2 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: E2 0E 00 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: E2 0E 00 DC 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 49 [15:19:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:19:39]wFMCommunicate OK [15:19:39]SAM_PROTO_GetShiftState done [15:19:39]FM_GetShiftState done [15:19:39]opened in 1729642525 [15:19:39]opened+sec_in_day 1729728925 [15:19:39]quantity*price = 60009 [15:19:39]sum+1 = 60010 [15:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 241 23.10.2024 15:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188783 ФПД: 130116492907059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151940&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188783&fm=130116492907059&tin=02508201610067®Number=0000000000100030&sum=60000 [15:19:40]StoreToDocumentArchive [15:19:40]shift 462 fd 188783 [15:19:40]save to /storage/0462/doc_00188783 [15:19:40]save last doc name /storage/0462/doc_00188783 to /storage/kkm_last_doc_name [15:19:40]save OK [15:19:40]Clear old archive folders... [15:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:40]tlvbuf is 011391B0 [15:19:40]SAM_PROTO_ClearQueue [15:19:40]wFMCommunicate request_size=4 [15:19:40]MH_SAM_APDU [15:19:40]CAPDU: 80 09 00 00 [15:19:40]Write to MH i2c: E2 08 00 E9 08 80 09 00 00 00 00 00 00 63 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 03 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [15:19:41]RAPDU: 90 00 [15:19:41]wFMCommunicate OK [15:19:41]SAM_PROTO_ClearQueue done [15:19:41]KKMCreateOFDPacket [15:19:41]OFDProtocolAddRootSTLVToBuf [15:19:41]FM_MakeSignedData [15:19:41]FM_MakeSignedData [15:19:41]SAM_PROTO_SignData [15:19:41]wFMCommunicate request_size=4 [15:19:41]MH_SAM_APDU [15:19:41]CAPDU: 80 0D 01 02 [15:19:41]Write to MH i2c: E2 08 00 EA 08 80 0D 01 02 00 00 00 00 6B [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 03 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [15:19:41]RAPDU: 90 00 [15:19:41]wFMCommunicate OK [15:19:41]wFMCommunicate request_size=255 [15:19:41]MH_SAM_APDU [15:19:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0C 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E1 02 00 35 04 06 00 76 [15:19:41]Write to MH i2c: E2 02 01 EB 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0C 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E1 02 00 35 04 06 00 76 00 00 E3 [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 03 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [15:19:41]RAPDU: 90 00 [15:19:41]wFMCommunicate OK [15:19:41]wFMCommunicate request_size=10 [15:19:41]MH_SAM_APDU [15:19:41]CAPDU: 80 0D 02 02 05 57 1B 56 D2 33 [15:19:41]Write to MH i2c: E2 0D 00 EC 08 80 0D 02 02 05 00 57 1B 56 D2 33 00 00 45 [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 03 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [15:19:41]RAPDU: 90 00 [15:19:41]wFMCommunicate OK [15:19:41]wFMCommunicate request_size=4 [15:19:41]MH_SAM_APDU [15:19:41]CAPDU: 80 0D 03 02 [15:19:41]Write to MH i2c: E2 08 00 ED 08 80 0D 03 02 00 00 00 00 70 [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 0B 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 0B 00 ED 08 00 8F 90 ED 7A 79 15 7E 31 90 00 34 [15:19:41]RAPDU: 8F 90 ED 7A 79 15 7E 31 90 00 [15:19:41]wFMCommunicate OK [15:19:41]SAM_PROTO_SignData done [15:19:41]FM_MakeSignedData done [15:19:41]CreateOFDProtocolMessage [15:19:41]wFMCommunicate request_size=4 [15:19:41]MH_SAM_APDU [15:19:41]CAPDU: 80 11 00 00 [15:19:41]Write to MH i2c: E2 08 00 EE 08 80 11 00 00 00 00 00 00 70 [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 17 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 17 00 EE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BE [15:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:19:41]wFMCommunicate OK [15:19:41]CreateOFDProtocolMessage done [15:19:41]OFDSenderStorePacket 188783 [15:19:41]StoreOFDPacket docnum=188783 [15:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C FD 07 01 F3 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0C 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E1 02 00 35 04 06 00 76 57 1B 56 D2 33 8F 90 ED 7A 79 15 7E 31 [15:19:41]CheckFolder [15:19:41]dirname=/storage/ofd_packets [15:19:41]CheckFolder done [15:19:41]ProducePacketName [15:19:41]name=ofd_packets/00188783 [15:19:41]NVStorageSaveData ofd_packets/00188783 [15:19:41]File name is /storage/ofd_packets/00188783 [15:19:41]Write 301 bytes [15:19:41]NVStorageSaveData done [15:19:41]OFDSenderStorePacket done [15:19:41]KKMCreateOFDPacket done [15:19:41]NVStorageSaveData kkm_last_timestamp [15:19:41]File name is /storage/kkm_last_timestamp [15:19:41]Write 4 bytes [15:19:41]NVStorageSaveData done [15:19:41]ExternCall_PrintAddStr [15:19:41]wPrintStart [15:19:41]Write to MH i2c: 01 00 00 EF 08 F7 [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: 01 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: 01 07 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: 01 07 00 EF 08 00 00 00 00 00 FF 0F 0C [15:19:41]RasterBufferAndPrint [15:19:41]line Счет N : (1)210844 [15:19:41]line ИНН: 02508201610067 [15:19:41]line Контрольно-Кассовый Чек [15:19:41]line ПРОДАЖА [15:19:41]line ТРК (МРК, ГНК) : 22 [15:19:41]line Товар: 2710124130 [15:19:41]line Аи-92-К-3 [15:19:41]line 8.970 * 66.90 [15:19:41]line = 600.09 [15:19:41]line НДС 12% НСП 1% [15:19:41]line > о реализуемом товаре [15:19:41]line ОКРУГЛЕНИЕ: -0.09 [15:19:41]line ИТОГО: 600.00 [15:19:41]line Внесено: 600.00 [15:19:41]line СДАЧА: 0.00 [15:19:41]line НСП 1% : 5.31 [15:19:41]line НДС 12% : 63.73 [15:19:41]line Наличными: 600.00 [15:19:41]line Безнал.: 0.00 [15:19:41]line Место: АЗС № 86 "Партнер Нефть" [15:19:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:19:41]line СНО: Общий режим [15:19:41]line Чек 241 23.10.2024 15:19 [15:19:41]line Смена: 462 ФФД: 1.0 [15:19:41]line ЗНМ: 0300000155 [15:19:41]line РНМ: 0000000000100030 [15:19:41]line Версия ККМ: 001 [15:19:41]line ФМ: 0000000000965340 [15:19:41]line ФД: 188783 [15:19:41]line ФПД: 130116492907059 [15:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151940&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188783&fm=130116492907059&tin=02508201610067®Number=0000000000100030&sum=60000 [15:19:41]written 0, free lines is 4095 [15:19:41]OFD Sender: Processing packet 188783 [packets to send 1062, broken 1061] [15:19:41]ProducePacketName [15:19:41]name=ofd_packets/00188783 [15:19:41]OFD Sender: To server: pG, [15:19:41]CommunicateWithHost lk.salyk.kg:30040 [15:19:41]ConnectInit lk.salyk.kg [15:19:41]Connected sock=10 [15:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C FD 07 01 F3 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0C 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E1 02 00 35 04 06 00 76 57 1B 56 D2 33 8F 90 ED 7A 79 15 7E 31 [15:19:42]Write to MH i2c: 01 00 00 1A 09 23 [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 07 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 57 0C 8D [15:19:42]RasterBufferAndPrint [15:19:42]line [15:19:42]line [15:19:42]line [15:19:42]line [15:19:42]line [15:19:42]written 0, free lines is 3162 [15:19:42]MH_Cut [15:19:42]Write to MH i2c: D1 01 00 21 09 01 FC [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: D1 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: D1 01 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: D1 01 00 21 09 00 FB [15:19:42]Write to MH i2c: 01 00 00 22 09 2B [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3F 9B 47 00 C1 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 36 35 33 34 30 10 04 04 00 6F E1 02 00 F4 03 04 00 F6 BD 18 67 B6 04 01 00 00 C1 E1 06 D8 34 7A EA 45 [15:19:42]CommunicateWithHost err = 0 [15:19:42]CheckOFDResponse [15:19:42]1017 (14) - 77093643461234 [15:19:42]1041 (16) - 0000000000965340 [15:19:42]1040 (4) - 188783 [15:19:42]1012 (4) - 23.10.2024 09:12 [15:19:42]1206 (1) - 0 [15:19:42]OFD Sender: Remove packet 188783 [15:19:42]ProducePacketName [15:19:42]name=ofd_packets/00188783 [15:19:42]NVStorageDeleteData [15:19:42]OFD Sender: No OFD packet to send [15:19:43]*** Cut start [15:19:43]*** Partial cut [15:19:43]*** CUTSNS_PIN = 1 [15:19:43]*** CUTSNS_PIN = 0 [15:19:43]*** Brake cut motor [15:19:43]Read from MH i2c: 01 [15:19:43]MH_I2C_Read... [15:19:43]*** Stop cut motor [15:19:43]*** Cut end [15:19:43]Read from MH i2c: 01 07 00 [15:19:43]MH_I2C_Read... [15:19:43]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [15:19:43]process_action close_receipt done [15:19:43]requested_data is exist [15:19:43]produce_requested_data [15:19:43]requested_item fm.sn is exist - process it [15:19:43]wFMCommunicate request_size=4 [15:19:43]MH_SAM_APDU [15:19:43]CAPDU: 80 11 00 00 [15:19:43]Write to MH i2c: E2 08 00 23 09 80 11 00 00 00 00 00 00 A6 [15:19:43]Write i2c OK [15:19:43]MH_I2C_Read... [15:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:43]Read from MH i2c: E2 [15:19:43]MH_I2C_Read... [15:19:43]Read from MH i2c: E2 17 00 [15:19:43]MH_I2C_Read... [15:19:43]Read from MH i2c: E2 17 00 23 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [15:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:19:43]wFMCommunicate OK [15:19:43]requested_item fd.num is exist - process it [15:19:43]SAM_PROTO_GetFieldsCounters [15:19:43]wFMCommunicate request_size=4 [15:19:43]MH_SAM_APDU [15:19:43]CAPDU: 80 13 00 00 [15:19:43]Write to MH i2c: E2 08 00 24 09 80 13 00 00 00 00 00 00 A9 [15:19:43]Write i2c OK [15:19:43]MH_I2C_Read... [15:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:44]Read from MH i2c: E2 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 62 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 62 00 24 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [15:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:44]wFMCommunicate OK [15:19:44]SAM_PROTO_GetFieldsCounters done [15:19:44]requested_item shift.num is exist - process it [15:19:44]requested_item shift.opened is exist - process it [15:19:44]req_shift_opened [15:19:44]FM_GetShiftState [15:19:44]SAM_PROTO_GetShiftState [15:19:44]wFMCommunicate request_size=4 [15:19:44]MH_SAM_APDU [15:19:44]CAPDU: 80 13 01 00 [15:19:44]Write to MH i2c: E2 08 00 25 09 80 13 01 00 00 00 00 00 AB [15:19:44]Write i2c OK [15:19:44]MH_I2C_Read... [15:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:44]Read from MH i2c: E2 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 0E 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 0E 00 25 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 93 [15:19:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:19:44]wFMCommunicate OK [15:19:44]SAM_PROTO_GetShiftState done [15:19:44]FM_GetShiftState done [15:19:44]req_shift_opened done [15:19:44]requested_item shift.open_date is exist - process it [15:19:44]req_shift_open_date [15:19:44]req_shift_open_date done [15:19:44]produce_requested_data done [15:19:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188783,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:19:44]process_action_free close_receipt [15:19:44]json_value_free [15:19:44]json_value_free done [15:19:44]process_json_proto returns [15:19:44]Send response to host [15:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188783,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:19:44]free response buf [15:19:44]execute_script done [15:19:44]execute_script returns [15:19:44]free content buf [15:19:44]Sock 7.Close socket [15:19:44]Sock 7.Thread stoped [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]accept exits with 9 [15:21:02]New connection [15:21:02]New thread 3067207012 created [15:21:02]Thread 3067350372 joined [15:21:02]Waiting for new connection... [15:21:02] Sock 9.Parse request [15:21:02]Sock 9.Check first char [15:21:02]Sock 9.First char is OK [15:21:02]request: POST /json_proto HTTP/1.0 [15:21:02]Method: POST [15:21:02]URL: /json_proto [15:21:02]Method is POST - this is cgi request [15:21:02]url: /json_proto [15:21:02]query_string will be loaded in cgi processing [15:21:02]execute_cgi json_proto POST (null) [15:21:02]execute_cgi path=json_proto method=POST [15:21:02]POST find Content-Length [15:21:02]Host: 172.17.42.131:8080 [15:21:02]Content-Length: 688 [15:21:02]Content-Type: application/json [15:21:02] [15:21:02]POST finish read [15:21:02]Found Content-Length = 688 [15:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 77.730, "sum" : 6000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:02]execute_script... [15:21:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 77.730, "sum" : 6000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:02]POST & json_proto [15:21:02]process_json_proto [15:21:02]json parsed OK: [15:21:02]protocol is kg_v1.0 [15:21:02]action value=close_receipt [15:21:02]process_action close_receipt [15:21:02]cmd_close_receipt [15:21:02]MH_GetDate [15:21:02]Write to MH i2c: F0 00 00 26 09 1E [15:21:02]Write i2c OK [15:21:02]MH_I2C_Read... [15:21:02]Read from MH i2c: F0 [15:21:02]MH_I2C_Read... [15:21:02]Read from MH i2c: F0 09 00 [15:21:02]MH_I2C_Read... [15:21:02]Read from MH i2c: F0 09 00 26 09 00 5F 14 19 67 A0 18 CA 66 02 [15:21:02]GetLastDocTimeStamp 1729696780 [15:21:02]current date 1729696863 [15:21:02]FM_GetShiftState [15:21:02]SAM_PROTO_GetShiftState [15:21:02]wFMCommunicate request_size=4 [15:21:02]MH_SAM_APDU [15:21:02]CAPDU: 80 13 01 00 [15:21:02]Write to MH i2c: E2 08 00 27 09 80 13 01 00 00 00 00 00 AD [15:21:02]Write i2c OK [15:21:02]MH_I2C_Read... [15:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:02]Read from MH i2c: E2 [15:21:02]MH_I2C_Read... [15:21:02]Read from MH i2c: E2 0E 00 [15:21:02]MH_I2C_Read... [15:21:02]Read from MH i2c: E2 0E 00 27 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 95 [15:21:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:21:02]wFMCommunicate OK [15:21:02]SAM_PROTO_GetShiftState done [15:21:02]FM_GetShiftState done [15:21:02]opened in 1729642525 [15:21:02]opened+sec_in_day 1729728925 [15:21:02]quantity*price = 600075 [15:21:02]sum+1 = 600077 [15:21:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 242 23.10.2024 15:21 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188784 ФПД: 206505877756966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188784&fm=206505877756966&tin=02508201610067®Number=0000000000100030&sum=600000 [15:21:04]StoreToDocumentArchive [15:21:04]shift 462 fd 188784 [15:21:04]save to /storage/0462/doc_00188784 [15:21:04]save last doc name /storage/0462/doc_00188784 to /storage/kkm_last_doc_name [15:21:04]save OK [15:21:04]Clear old archive folders... [15:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:21:04]tlvbuf is 01115040 [15:21:04]SAM_PROTO_ClearQueue [15:21:04]wFMCommunicate request_size=4 [15:21:04]MH_SAM_APDU [15:21:04]CAPDU: 80 09 00 00 [15:21:04]Write to MH i2c: E2 08 00 34 09 80 09 00 00 00 00 00 00 AF [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:04]Read from MH i2c: E2 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 03 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [15:21:04]RAPDU: 90 00 [15:21:04]wFMCommunicate OK [15:21:04]SAM_PROTO_ClearQueue done [15:21:04]KKMCreateOFDPacket [15:21:04]OFDProtocolAddRootSTLVToBuf [15:21:04]FM_MakeSignedData [15:21:04]FM_MakeSignedData [15:21:04]SAM_PROTO_SignData [15:21:04]wFMCommunicate request_size=4 [15:21:04]MH_SAM_APDU [15:21:04]CAPDU: 80 0D 01 02 [15:21:04]Write to MH i2c: E2 08 00 35 09 80 0D 01 02 00 00 00 00 B7 [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:04]Read from MH i2c: E2 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 03 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [15:21:04]RAPDU: 90 00 [15:21:04]wFMCommunicate OK [15:21:04]wFMCommunicate request_size=255 [15:21:04]MH_SAM_APDU [15:21:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 5F 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E1 02 [15:21:04]Write to MH i2c: E2 02 01 36 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 5F 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E1 02 00 00 25 [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:04]Read from MH i2c: E2 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 03 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [15:21:04]RAPDU: 90 00 [15:21:04]wFMCommunicate OK [15:21:04]wFMCommunicate request_size=16 [15:21:04]MH_SAM_APDU [15:21:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BB D0 E5 7C DC 26 [15:21:04]Write to MH i2c: E2 13 00 37 09 80 0D 02 02 0B 00 00 35 04 06 00 BB D0 E5 7C DC 26 00 00 FD [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:04]Read from MH i2c: E2 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 03 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [15:21:04]RAPDU: 90 00 [15:21:04]wFMCommunicate OK [15:21:04]wFMCommunicate request_size=4 [15:21:04]MH_SAM_APDU [15:21:04]CAPDU: 80 0D 03 02 [15:21:04]Write to MH i2c: E2 08 00 38 09 80 0D 03 02 00 00 00 00 BC [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:04]Read from MH i2c: E2 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 0B 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 0B 00 38 09 00 72 A3 FE 74 CE 5B 63 CA 90 00 9A [15:21:04]RAPDU: 72 A3 FE 74 CE 5B 63 CA 90 00 [15:21:04]wFMCommunicate OK [15:21:04]SAM_PROTO_SignData done [15:21:04]FM_MakeSignedData done [15:21:04]CreateOFDProtocolMessage [15:21:04]wFMCommunicate request_size=4 [15:21:04]MH_SAM_APDU [15:21:04]CAPDU: 80 11 00 00 [15:21:04]Write to MH i2c: E2 08 00 39 09 80 11 00 00 00 00 00 00 BC [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:04]Read from MH i2c: E2 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 17 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: E2 17 00 39 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [15:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:21:04]wFMCommunicate OK [15:21:04]CreateOFDProtocolMessage done [15:21:04]OFDSenderStorePacket 188784 [15:21:04]StoreOFDPacket docnum=188784 [15:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 26 C7 0D 01 93 5B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 5F 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E1 02 00 35 04 06 00 BB D0 E5 7C DC 26 72 A3 FE 74 CE 5B 63 CA [15:21:04]CheckFolder [15:21:04]dirname=/storage/ofd_packets [15:21:04]CheckFolder done [15:21:04]ProducePacketName [15:21:04]name=ofd_packets/00188784 [15:21:04]NVStorageSaveData ofd_packets/00188784 [15:21:04]File name is /storage/ofd_packets/00188784 [15:21:04]Write 307 bytes [15:21:04]NVStorageSaveData done [15:21:04]OFDSenderStorePacket done [15:21:04]KKMCreateOFDPacket done [15:21:04]NVStorageSaveData kkm_last_timestamp [15:21:04]File name is /storage/kkm_last_timestamp [15:21:04]Write 4 bytes [15:21:04]NVStorageSaveData done [15:21:04]ExternCall_PrintAddStr [15:21:04]wPrintStart [15:21:04]Write to MH i2c: 01 00 00 3A 09 43 [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: 01 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: 01 07 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: 01 07 00 3A 09 00 00 00 00 00 FF 0F 58 [15:21:04]RasterBufferAndPrint [15:21:04]line Счет N : (1)210843 [15:21:04]line ИНН: 02508201610067 [15:21:04]line Контрольно-Кассовый Чек [15:21:04]line ПРОДАЖА [15:21:04]line ТРК (МРК, ГНК) : 31 [15:21:04]line Товар: 2710194210 [15:21:04]line D-ENERGY ДТ-К-5 [15:21:04]line 77.730 * 77.20 [15:21:04]line = 6000.76 [15:21:04]line НДС 12% НСП 1% [15:21:04]line > о реализуемом товаре [15:21:04]line ОКРУГЛЕНИЕ: -0.76 [15:21:04]line ИТОГО: 6000.00 [15:21:04]line Внесено: 6000.00 [15:21:04]line СДАЧА: 0.00 [15:21:04]line НСП 1% : 53.10 [15:21:04]line НДС 12% : 637.25 [15:21:04]line Наличными: 6000.00 [15:21:04]line Безнал.: 0.00 [15:21:04]line Место: АЗС № 86 "Партнер Нефть" [15:21:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:21:04]line СНО: Общий режим [15:21:04]line Чек 242 23.10.2024 15:21 [15:21:04]line Смена: 462 ФФД: 1.0 [15:21:04]line ЗНМ: 0300000155 [15:21:04]line РНМ: 0000000000100030 [15:21:04]line Версия ККМ: 001 [15:21:04]line ФМ: 0000000000965340 [15:21:04]line ФД: 188784 [15:21:04]line ФПД: 206505877756966 [15:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188784&fm=206505877756966&tin=02508201610067®Number=0000000000100030&sum=600000 [15:21:04]written 0, free lines is 4095 [15:21:04]OFD Sender: Processing packet 188784 [packets to send 1062, broken 1061] [15:21:04]ProducePacketName [15:21:04]name=ofd_packets/00188784 [15:21:04]OFD Sender: To server: pG, [15:21:04]CommunicateWithHost lk.salyk.kg:30040 [15:21:04]ConnectInit lk.salyk.kg [15:21:04]Connected sock=10 [15:21:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 26 C7 0D 01 93 5B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 5F 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E1 02 00 35 04 06 00 BB D0 E5 7C DC 26 72 A3 FE 74 CE 5B 63 CA [15:21:05]Write to MH i2c: 01 00 00 65 09 6E [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: 01 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: 01 07 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: 01 07 00 65 09 00 00 00 00 00 5C 0C DD [15:21:05]RasterBufferAndPrint [15:21:05]line [15:21:05]line [15:21:05]line [15:21:05]line [15:21:05]line [15:21:05]written 0, free lines is 3168 [15:21:05]MH_Cut [15:21:05]Write to MH i2c: D1 01 00 6C 09 01 47 [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: D1 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: D1 01 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: D1 01 00 6C 09 00 46 [15:21:05]Write to MH i2c: 01 00 00 6D 09 76 [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F4 EE 47 00 A6 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E1 02 00 F4 03 04 00 4A BE 18 67 B6 04 01 00 00 5A 96 AF 06 B1 08 14 DA [15:21:05]CommunicateWithHost err = 0 [15:21:05]CheckOFDResponse [15:21:05]1017 (14) - 77093643461234 [15:21:05]1041 (16) - 0000000000965340 [15:21:05]1040 (4) - 188784 [15:21:05]1012 (4) - 23.10.2024 09:13 [15:21:05]1206 (1) - 0 [15:21:05]OFD Sender: Remove packet 188784 [15:21:05]ProducePacketName [15:21:05]name=ofd_packets/00188784 [15:21:05]NVStorageDeleteData [15:21:05]OFD Sender: No OFD packet to send [15:21:06]*** Cut start [15:21:06]*** Partial cut [15:21:06]*** CUTSNS_PIN = 1 [15:21:06]*** CUTSNS_PIN = 0 [15:21:06]*** Brake cut motor [15:21:07]Read from MH i2c: 01 [15:21:07]MH_I2C_Read... [15:21:07]*** Stop cut motor [15:21:07]*** Cut end [15:21:07]Read from MH i2c: 01 07 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [15:21:07]process_action close_receipt done [15:21:07]requested_data is exist [15:21:07]produce_requested_data [15:21:07]requested_item fm.sn is exist - process it [15:21:07]wFMCommunicate request_size=4 [15:21:07]MH_SAM_APDU [15:21:07]CAPDU: 80 11 00 00 [15:21:07]Write to MH i2c: E2 08 00 6E 09 80 11 00 00 00 00 00 00 F1 [15:21:07]Write i2c OK [15:21:07]MH_I2C_Read... [15:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:07]Read from MH i2c: E2 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 17 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 17 00 6E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [15:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:21:07]wFMCommunicate OK [15:21:07]requested_item fd.num is exist - process it [15:21:07]SAM_PROTO_GetFieldsCounters [15:21:07]wFMCommunicate request_size=4 [15:21:07]MH_SAM_APDU [15:21:07]CAPDU: 80 13 00 00 [15:21:07]Write to MH i2c: E2 08 00 6F 09 80 13 00 00 00 00 00 00 F4 [15:21:07]Write i2c OK [15:21:07]MH_I2C_Read... [15:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:07]Read from MH i2c: E2 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 62 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 62 00 6F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [15:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:07]wFMCommunicate OK [15:21:07]SAM_PROTO_GetFieldsCounters done [15:21:07]requested_item shift.num is exist - process it [15:21:07]requested_item shift.opened is exist - process it [15:21:07]req_shift_opened [15:21:07]FM_GetShiftState [15:21:07]SAM_PROTO_GetShiftState [15:21:07]wFMCommunicate request_size=4 [15:21:07]MH_SAM_APDU [15:21:07]CAPDU: 80 13 01 00 [15:21:07]Write to MH i2c: E2 08 00 70 09 80 13 01 00 00 00 00 00 F6 [15:21:07]Write i2c OK [15:21:07]MH_I2C_Read... [15:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:07]Read from MH i2c: E2 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 0E 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 0E 00 70 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DE [15:21:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:21:07]wFMCommunicate OK [15:21:07]SAM_PROTO_GetShiftState done [15:21:07]FM_GetShiftState done [15:21:07]req_shift_opened done [15:21:07]requested_item shift.open_date is exist - process it [15:21:07]req_shift_open_date [15:21:07]req_shift_open_date done [15:21:07]produce_requested_data done [15:21:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188784,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:21:07]process_action_free close_receipt [15:21:07]json_value_free [15:21:07]json_value_free done [15:21:07]process_json_proto returns [15:21:07]Send response to host [15:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188784,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:21:07]free response buf [15:21:07]execute_script done [15:21:07]execute_script returns [15:21:07]free content buf [15:21:07]Sock 9.Close socket [15:21:07]Sock 9.Thread stoped [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:05]accept exits with 7 [15:23:05]New connection [15:23:05]New thread 3067350372 created [15:23:05]Thread 3067207012 joined [15:23:05]Waiting for new connection... [15:23:05] Sock 7.Parse request [15:23:05]Sock 7.Check first char [15:23:05]Sock 7.First char is OK [15:23:05]request: POST /json_proto HTTP/1.0 [15:23:05]Method: POST [15:23:05]URL: /json_proto [15:23:05]Method is POST - this is cgi request [15:23:05]url: /json_proto [15:23:05]query_string will be loaded in cgi processing [15:23:05]execute_cgi json_proto POST (null) [15:23:05]execute_cgi path=json_proto method=POST [15:23:05]POST find Content-Length [15:23:05]Host: 172.17.42.131:8080 [15:23:05]Content-Length: 677 [15:23:05]Content-Type: application/json [15:23:05] [15:23:05]POST finish read [15:23:05]Found Content-Length = 677 [15:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.120, "sum" : 610.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:05]execute_script... [15:23:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.120, "sum" : 610.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:05]POST & json_proto [15:23:05]process_json_proto [15:23:05]json parsed OK: [15:23:05]protocol is kg_v1.0 [15:23:05]action value=close_receipt [15:23:05]process_action close_receipt [15:23:05]cmd_close_receipt [15:23:05]MH_GetDate [15:23:05]Write to MH i2c: F0 00 00 71 09 69 [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: F0 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: F0 09 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: F0 09 00 71 09 00 DA 14 19 67 A0 18 CA 66 C8 [15:23:05]GetLastDocTimeStamp 1729696863 [15:23:05]current date 1729696986 [15:23:05]FM_GetShiftState [15:23:05]SAM_PROTO_GetShiftState [15:23:05]wFMCommunicate request_size=4 [15:23:05]MH_SAM_APDU [15:23:05]CAPDU: 80 13 01 00 [15:23:05]Write to MH i2c: E2 08 00 72 09 80 13 01 00 00 00 00 00 F8 [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:05]Read from MH i2c: E2 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 0E 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 0E 00 72 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E0 [15:23:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:23:05]wFMCommunicate OK [15:23:05]SAM_PROTO_GetShiftState done [15:23:05]FM_GetShiftState done [15:23:05]opened in 1729642525 [15:23:05]opened+sec_in_day 1729728925 [15:23:05]quantity*price = 61012 [15:23:05]sum+1 = 61014 [15:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.79 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 243 23.10.2024 15:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188785 ФПД: 34684856312129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152306&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188785&fm=34684856312129&tin=02508201610067®Number=0000000000100030&sum=61000 [15:23:06]StoreToDocumentArchive [15:23:06]shift 462 fd 188785 [15:23:06]save to /storage/0462/doc_00188785 [15:23:06]save last doc name /storage/0462/doc_00188785 to /storage/kkm_last_doc_name [15:23:06]save OK [15:23:06]Clear old archive folders... [15:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:06]tlvbuf is 011390A0 [15:23:06]SAM_PROTO_ClearQueue [15:23:06]wFMCommunicate request_size=4 [15:23:06]MH_SAM_APDU [15:23:06]CAPDU: 80 09 00 00 [15:23:06]Write to MH i2c: E2 08 00 7F 09 80 09 00 00 00 00 00 00 FA [15:23:06]Write i2c OK [15:23:06]MH_I2C_Read... [15:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:06]Read from MH i2c: E2 [15:23:06]MH_I2C_Read... [15:23:06]Read from MH i2c: E2 03 00 [15:23:06]MH_I2C_Read... [15:23:06]Read from MH i2c: E2 03 00 7F 09 00 90 00 FC [15:23:06]RAPDU: 90 00 [15:23:06]wFMCommunicate OK [15:23:06]SAM_PROTO_ClearQueue done [15:23:06]KKMCreateOFDPacket [15:23:06]OFDProtocolAddRootSTLVToBuf [15:23:06]FM_MakeSignedData [15:23:06]FM_MakeSignedData [15:23:06]SAM_PROTO_SignData [15:23:06]wFMCommunicate request_size=4 [15:23:06]MH_SAM_APDU [15:23:06]CAPDU: 80 0D 01 02 [15:23:06]Write to MH i2c: E2 08 00 80 09 80 0D 01 02 00 00 00 00 02 [15:23:06]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:07]Read from MH i2c: E2 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 03 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [15:23:07]RAPDU: 90 00 [15:23:07]wFMCommunicate OK [15:23:07]wFMCommunicate request_size=255 [15:23:07]MH_SAM_APDU [15:23:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 DA 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E1 02 00 35 04 06 00 1F [15:23:07]Write to MH i2c: E2 02 01 81 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 DA 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E1 02 00 35 04 06 00 1F 00 00 C7 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:07]Read from MH i2c: E2 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 03 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 03 00 81 09 00 90 00 FE [15:23:07]RAPDU: 90 00 [15:23:07]wFMCommunicate OK [15:23:07]wFMCommunicate request_size=10 [15:23:07]MH_SAM_APDU [15:23:07]CAPDU: 80 0D 02 02 05 8B B2 8A 21 41 [15:23:07]Write to MH i2c: E2 0D 00 82 09 80 0D 02 02 05 00 8B B2 8A 21 41 00 00 38 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:07]Read from MH i2c: E2 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 03 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [15:23:07]RAPDU: 90 00 [15:23:07]wFMCommunicate OK [15:23:07]wFMCommunicate request_size=4 [15:23:07]MH_SAM_APDU [15:23:07]CAPDU: 80 0D 03 02 [15:23:07]Write to MH i2c: E2 08 00 83 09 80 0D 03 02 00 00 00 00 07 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:07]Read from MH i2c: E2 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 0B 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 0B 00 83 09 00 31 C8 4D FC 1D 13 32 9B 90 00 47 [15:23:07]RAPDU: 31 C8 4D FC 1D 13 32 9B 90 00 [15:23:07]wFMCommunicate OK [15:23:07]SAM_PROTO_SignData done [15:23:07]FM_MakeSignedData done [15:23:07]CreateOFDProtocolMessage [15:23:07]wFMCommunicate request_size=4 [15:23:07]MH_SAM_APDU [15:23:07]CAPDU: 80 11 00 00 [15:23:07]Write to MH i2c: E2 08 00 84 09 80 11 00 00 00 00 00 00 07 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:07]Read from MH i2c: E2 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 17 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 17 00 84 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [15:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:23:07]wFMCommunicate OK [15:23:07]CreateOFDProtocolMessage done [15:23:07]OFDSenderStorePacket 188785 [15:23:07]StoreOFDPacket docnum=188785 [15:23:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DA 0C 07 01 6A AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 DA 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E1 02 00 35 04 06 00 1F 8B B2 8A 21 41 31 C8 4D FC 1D 13 32 9B [15:23:07]CheckFolder [15:23:07]dirname=/storage/ofd_packets [15:23:07]CheckFolder done [15:23:07]ProducePacketName [15:23:07]name=ofd_packets/00188785 [15:23:07]NVStorageSaveData ofd_packets/00188785 [15:23:07]File name is /storage/ofd_packets/00188785 [15:23:07]Write 301 bytes [15:23:07]NVStorageSaveData done [15:23:07]OFDSenderStorePacket done [15:23:07]KKMCreateOFDPacket done [15:23:07]NVStorageSaveData kkm_last_timestamp [15:23:07]File name is /storage/kkm_last_timestamp [15:23:07]Write 4 bytes [15:23:07]NVStorageSaveData done [15:23:07]ExternCall_PrintAddStr [15:23:07]wPrintStart [15:23:07]Write to MH i2c: 01 00 00 85 09 8E [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: 01 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: 01 07 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: 01 07 00 85 09 00 00 00 00 00 FF 0F A3 [15:23:07]RasterBufferAndPrint [15:23:07]line Счет N : (1)210845 [15:23:07]line ИНН: 02508201610067 [15:23:07]line Контрольно-Кассовый Чек [15:23:07]line ПРОДАЖА [15:23:07]line ТРК (МРК, ГНК) : 42 [15:23:07]line Товар: 2710124130 [15:23:07]line Аи-92-К-3 [15:23:07]line 9.120 * 66.90 [15:23:07]line = 610.13 [15:23:07]line НДС 12% НСП 1% [15:23:07]line > о реализуемом товаре [15:23:07]line ОКРУГЛЕНИЕ: -0.13 [15:23:07]line ИТОГО: 610.00 [15:23:07]line Внесено: 610.00 [15:23:07]line СДАЧА: 0.00 [15:23:07]line НСП 1% : 5.40 [15:23:07]line НДС 12% : 64.79 [15:23:07]line Наличными: 610.00 [15:23:07]line Безнал.: 0.00 [15:23:07]line Место: АЗС № 86 "Партнер Нефть" [15:23:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:23:07]line СНО: Общий режим [15:23:07]line Чек 243 23.10.2024 15:23 [15:23:07]line Смена: 462 ФФД: 1.0 [15:23:07]line ЗНМ: 0300000155 [15:23:07]line РНМ: 0000000000100030 [15:23:07]line Версия ККМ: 001 [15:23:07]line ФМ: 0000000000965340 [15:23:07]line ФД: 188785 [15:23:07]line ФПД: 34684856312129 [15:23:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152306&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188785&fm=34684856312129&tin=02508201610067®Number=0000000000100030&sum=61000 [15:23:07]written 0, free lines is 4095 [15:23:07]OFD Sender: Processing packet 188785 [packets to send 1062, broken 1061] [15:23:07]ProducePacketName [15:23:07]name=ofd_packets/00188785 [15:23:07]OFD Sender: To server: pG, [15:23:07]CommunicateWithHost lk.salyk.kg:30040 [15:23:07]ConnectInit lk.salyk.kg [15:23:07]Connected sock=10 [15:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DA 0C 07 01 6A AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 DA 14 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E1 02 00 35 04 06 00 1F 8B B2 8A 21 41 31 C8 4D FC 1D 13 32 9B [15:23:07]Write to MH i2c: 01 00 00 B0 09 B9 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: 01 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: 01 07 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 51 0C 1D [15:23:07]RasterBufferAndPrint [15:23:07]line [15:23:07]line [15:23:07]line [15:23:07]line [15:23:07]line [15:23:07]written 0, free lines is 3158 [15:23:07]MH_Cut [15:23:07]Write to MH i2c: D1 01 00 B7 09 01 92 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: D1 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: D1 01 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: D1 01 00 B7 09 00 91 [15:23:07]Write to MH i2c: 01 00 00 B8 09 C1 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FC 79 47 00 62 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 36 35 33 34 30 10 04 04 00 71 E1 02 00 F4 03 04 00 C4 BE 18 67 B6 04 01 00 00 65 53 CD C9 B0 88 E6 83 [15:23:08]CommunicateWithHost err = 0 [15:23:08]CheckOFDResponse [15:23:08]1017 (14) - 77093643461234 [15:23:08]1041 (16) - 0000000000965340 [15:23:08]1040 (4) - 188785 [15:23:08]1012 (4) - 23.10.2024 09:15 [15:23:08]1206 (1) - 0 [15:23:08]OFD Sender: Remove packet 188785 [15:23:08]ProducePacketName [15:23:08]name=ofd_packets/00188785 [15:23:08]NVStorageDeleteData [15:23:08]OFD Sender: No OFD packet to send [15:23:09]*** Cut start [15:23:09]*** Partial cut [15:23:09]*** CUTSNS_PIN = 1 [15:23:09]*** CUTSNS_PIN = 0 [15:23:09]*** Brake cut motor [15:23:09]Read from MH i2c: 01 [15:23:09]MH_I2C_Read... [15:23:09]*** Stop cut motor [15:23:09]*** Cut end [15:23:09]Read from MH i2c: 01 07 00 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 FF 0F D6 [15:23:09]process_action close_receipt done [15:23:09]requested_data is exist [15:23:09]produce_requested_data [15:23:09]requested_item fm.sn is exist - process it [15:23:09]wFMCommunicate request_size=4 [15:23:09]MH_SAM_APDU [15:23:09]CAPDU: 80 11 00 00 [15:23:09]Write to MH i2c: E2 08 00 B9 09 80 11 00 00 00 00 00 00 3C [15:23:09]Write i2c OK [15:23:09]MH_I2C_Read... [15:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:09]Read from MH i2c: E2 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 17 00 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 17 00 B9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [15:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:23:09]wFMCommunicate OK [15:23:09]requested_item fd.num is exist - process it [15:23:09]SAM_PROTO_GetFieldsCounters [15:23:09]wFMCommunicate request_size=4 [15:23:09]MH_SAM_APDU [15:23:09]CAPDU: 80 13 00 00 [15:23:09]Write to MH i2c: E2 08 00 BA 09 80 13 00 00 00 00 00 00 3F [15:23:09]Write i2c OK [15:23:09]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 62 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 62 00 BA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [15:23:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:10]wFMCommunicate OK [15:23:10]SAM_PROTO_GetFieldsCounters done [15:23:10]requested_item shift.num is exist - process it [15:23:10]requested_item shift.opened is exist - process it [15:23:10]req_shift_opened [15:23:10]FM_GetShiftState [15:23:10]SAM_PROTO_GetShiftState [15:23:10]wFMCommunicate request_size=4 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 13 01 00 [15:23:10]Write to MH i2c: E2 08 00 BB 09 80 13 01 00 00 00 00 00 41 [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 0E 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 0E 00 BB 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 29 [15:23:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:23:10]wFMCommunicate OK [15:23:10]SAM_PROTO_GetShiftState done [15:23:10]FM_GetShiftState done [15:23:10]req_shift_opened done [15:23:10]requested_item shift.open_date is exist - process it [15:23:10]req_shift_open_date [15:23:10]req_shift_open_date done [15:23:10]produce_requested_data done [15:23:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188785,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:23:10]process_action_free close_receipt [15:23:10]json_value_free [15:23:10]json_value_free done [15:23:10]process_json_proto returns [15:23:10]Send response to host [15:23:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188785,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:23:10]free response buf [15:23:10]execute_script done [15:23:10]execute_script returns [15:23:10]free content buf [15:23:10]Sock 7.Close socket [15:23:10]Sock 7.Thread stoped [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]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:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:46]accept exits with 9 [15:26:46]New connection [15:26:46]New thread 3067207012 created [15:26:46]Thread 3067350372 joined [15:26:46]Waiting for new connection... [15:26:46] Sock 9.Parse request [15:26:46]Sock 9.Check first char [15:26:46]Sock 9.First char is OK [15:26:46]request: POST /json_proto HTTP/1.0 [15:26:46]Method: POST [15:26:46]URL: /json_proto [15:26:46]Method is POST - this is cgi request [15:26:46]url: /json_proto [15:26:46]query_string will be loaded in cgi processing [15:26:46]execute_cgi json_proto POST (null) [15:26:46]execute_cgi path=json_proto method=POST [15:26:46]POST find Content-Length [15:26:46]Host: 172.17.42.131:8080 [15:26:46]Content-Length: 677 [15:26:46]Content-Type: application/json [15:26:46] [15:26:46]POST finish read [15:26:46]Found Content-Length = 677 [15:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:46]execute_script... [15:26:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:46]POST & json_proto [15:26:46]process_json_proto [15:26:46]json parsed OK: [15:26:46]protocol is kg_v1.0 [15:26:46]action value=close_receipt [15:26:46]process_action close_receipt [15:26:46]cmd_close_receipt [15:26:46]MH_GetDate [15:26:46]Write to MH i2c: F0 00 00 BC 09 B4 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: F0 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: F0 09 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: F0 09 00 BC 09 00 B7 15 19 67 A0 18 CA 66 F1 [15:26:46]GetLastDocTimeStamp 1729696986 [15:26:46]current date 1729697207 [15:26:46]FM_GetShiftState [15:26:46]SAM_PROTO_GetShiftState [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 13 01 00 [15:26:46]Write to MH i2c: E2 08 00 BD 09 80 13 01 00 00 00 00 00 43 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 0E 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 0E 00 BD 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2B [15:26:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:26:46]wFMCommunicate OK [15:26:46]SAM_PROTO_GetShiftState done [15:26:46]FM_GetShiftState done [15:26:46]opened in 1729642525 [15:26:46]opened+sec_in_day 1729728925 [15:26:46]quantity*price = 50041 [15:26:46]sum+1 = 50042 [15:26:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 244 23.10.2024 15:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188786 ФПД: 234393090391608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152647&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188786&fm=234393090391608&tin=02508201610067®Number=0000000000100030&sum=50000 [15:26:47]StoreToDocumentArchive [15:26:47]shift 462 fd 188786 [15:26:47]save to /storage/0462/doc_00188786 [15:26:47]save last doc name /storage/0462/doc_00188786 to /storage/kkm_last_doc_name [15:26:47]save OK [15:26:47]Clear old archive folders... [15:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:47]tlvbuf is 010EFEB0 [15:26:47]SAM_PROTO_ClearQueue [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 09 00 00 [15:26:47]Write to MH i2c: E2 08 00 CA 09 80 09 00 00 00 00 00 00 45 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [15:26:47]RAPDU: 90 00 [15:26:47]wFMCommunicate OK [15:26:47]SAM_PROTO_ClearQueue done [15:26:47]KKMCreateOFDPacket [15:26:47]OFDProtocolAddRootSTLVToBuf [15:26:47]FM_MakeSignedData [15:26:47]FM_MakeSignedData [15:26:47]SAM_PROTO_SignData [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 0D 01 02 [15:26:47]Write to MH i2c: E2 08 00 CB 09 80 0D 01 02 00 00 00 00 4D [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [15:26:47]RAPDU: 90 00 [15:26:47]wFMCommunicate OK [15:26:47]wFMCommunicate request_size=255 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 B7 15 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E1 02 00 35 04 06 00 D5 [15:26:47]Write to MH i2c: E2 02 01 CC 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 B7 15 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E1 02 00 35 04 06 00 D5 00 00 F9 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [15:26:47]RAPDU: 90 00 [15:26:47]wFMCommunicate OK [15:26:47]wFMCommunicate request_size=10 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 0D 02 02 05 2D E4 E3 FE 38 [15:26:47]Write to MH i2c: E2 0D 00 CD 09 80 0D 02 02 05 00 2D E4 E3 FE 38 00 00 84 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [15:26:47]RAPDU: 90 00 [15:26:47]wFMCommunicate OK [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 0D 03 02 [15:26:47]Write to MH i2c: E2 08 00 CE 09 80 0D 03 02 00 00 00 00 52 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 0B 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 0B 00 CE 09 00 59 76 97 97 03 D2 0D E0 90 00 12 [15:26:47]RAPDU: 59 76 97 97 03 D2 0D E0 90 00 [15:26:47]wFMCommunicate OK [15:26:47]SAM_PROTO_SignData done [15:26:47]FM_MakeSignedData done [15:26:47]CreateOFDProtocolMessage [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 11 00 00 [15:26:47]Write to MH i2c: E2 08 00 CF 09 80 11 00 00 00 00 00 00 52 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 17 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 17 00 CF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [15:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:26:47]wFMCommunicate OK [15:26:47]CreateOFDProtocolMessage done [15:26:47]OFDSenderStorePacket 188786 [15:26:47]StoreOFDPacket docnum=188786 [15:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1F F0 07 01 28 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 B7 15 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E1 02 00 35 04 06 00 D5 2D E4 E3 FE 38 59 76 97 97 03 D2 0D E0 [15:26:47]CheckFolder [15:26:47]dirname=/storage/ofd_packets [15:26:47]CheckFolder done [15:26:47]ProducePacketName [15:26:47]name=ofd_packets/00188786 [15:26:47]NVStorageSaveData ofd_packets/00188786 [15:26:47]File name is /storage/ofd_packets/00188786 [15:26:47]Write 301 bytes [15:26:47]NVStorageSaveData done [15:26:47]OFDSenderStorePacket done [15:26:47]KKMCreateOFDPacket done [15:26:47]NVStorageSaveData kkm_last_timestamp [15:26:47]File name is /storage/kkm_last_timestamp [15:26:47]Write 4 bytes [15:26:47]NVStorageSaveData done [15:26:47]ExternCall_PrintAddStr [15:26:47]wPrintStart [15:26:47]Write to MH i2c: 01 00 00 D0 09 D9 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 D0 09 00 00 00 00 00 FF 0F EE [15:26:47]RasterBufferAndPrint [15:26:47]line Счет N : (1)210846 [15:26:47]line ИНН: 02508201610067 [15:26:47]line Контрольно-Кассовый Чек [15:26:47]line ПРОДАЖА [15:26:47]line ТРК (МРК, ГНК) : 42 [15:26:47]line Товар: 2710124130 [15:26:47]line Аи-92-К-3 [15:26:47]line 7.480 * 66.90 [15:26:47]line = 500.41 [15:26:47]line НДС 12% НСП 1% [15:26:47]line > о реализуемом товаре [15:26:47]line ОКРУГЛЕНИЕ: -0.41 [15:26:47]line ИТОГО: 500.00 [15:26:47]line Внесено: 500.00 [15:26:47]line СДАЧА: 0.00 [15:26:47]line НСП 1% : 4.43 [15:26:47]line НДС 12% : 53.14 [15:26:47]line Наличными: 500.00 [15:26:47]line Безнал.: 0.00 [15:26:47]line Место: АЗС № 86 "Партнер Нефть" [15:26:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:26:47]line СНО: Общий режим [15:26:47]line Чек 244 23.10.2024 15:26 [15:26:47]line Смена: 462 ФФД: 1.0 [15:26:47]line ЗНМ: 0300000155 [15:26:47]line РНМ: 0000000000100030 [15:26:47]line Версия ККМ: 001 [15:26:47]line ФМ: 0000000000965340 [15:26:47]line ФД: 188786 [15:26:47]line ФПД: 234393090391608 [15:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152647&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188786&fm=234393090391608&tin=02508201610067®Number=0000000000100030&sum=50000 [15:26:47]written 0, free lines is 4095 [15:26:48]OFD Sender: Processing packet 188786 [packets to send 1062, broken 1061] [15:26:48]ProducePacketName [15:26:48]name=ofd_packets/00188786 [15:26:48]OFD Sender: To server: pG, [15:26:48]CommunicateWithHost lk.salyk.kg:30040 [15:26:48]ConnectInit lk.salyk.kg [15:26:48]Connected sock=11 [15:26:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1F F0 07 01 28 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 B7 15 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E1 02 00 35 04 06 00 D5 2D E4 E3 FE 38 59 76 97 97 03 D2 0D E0 [15:26:48]Write to MH i2c: 01 00 00 FB 09 04 [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: 01 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: 01 07 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: 01 07 00 FB 09 00 00 00 00 00 55 0C 6C [15:26:48]RasterBufferAndPrint [15:26:48]line [15:26:48]line [15:26:48]line [15:26:48]line [15:26:48]line [15:26:48]written 0, free lines is 3160 [15:26:48]MH_Cut [15:26:48]Write to MH i2c: D1 01 00 02 0A 01 DE [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: D1 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: D1 01 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: D1 01 00 02 0A 00 DD [15:26:48]Write to MH i2c: 01 00 00 03 0A 0D [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0F 37 47 00 EC 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 36 35 33 34 30 10 04 04 00 72 E1 02 00 F4 03 04 00 A1 BF 18 67 B6 04 01 00 00 7E 60 1E 02 A9 D3 EA FB [15:26:48]CommunicateWithHost err = 0 [15:26:48]CheckOFDResponse [15:26:48]1017 (14) - 77093643461234 [15:26:48]1041 (16) - 0000000000965340 [15:26:48]1040 (4) - 188786 [15:26:48]1012 (4) - 23.10.2024 09:19 [15:26:48]1206 (1) - 0 [15:26:48]OFD Sender: Remove packet 188786 [15:26:48]ProducePacketName [15:26:48]name=ofd_packets/00188786 [15:26:48]NVStorageDeleteData [15:26:49]OFD Sender: No OFD packet to send [15:26:49]*** Cut start [15:26:49]*** Partial cut [15:26:49]*** CUTSNS_PIN = 1 [15:26:49]*** CUTSNS_PIN = 0 [15:26:49]*** Brake cut motor [15:26:50]Read from MH i2c: 01 [15:26:50]MH_I2C_Read... [15:26:50]*** Stop cut motor [15:26:50]*** Cut end [15:26:50]Read from MH i2c: 01 07 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 FF 0F 22 [15:26:50]process_action close_receipt done [15:26:50]requested_data is exist [15:26:50]produce_requested_data [15:26:50]requested_item fm.sn is exist - process it [15:26:50]wFMCommunicate request_size=4 [15:26:50]MH_SAM_APDU [15:26:50]CAPDU: 80 11 00 00 [15:26:50]Write to MH i2c: E2 08 00 04 0A 80 11 00 00 00 00 00 00 88 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:50]Read from MH i2c: E2 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 17 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 17 00 04 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [15:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:26:50]wFMCommunicate OK [15:26:50]requested_item fd.num is exist - process it [15:26:50]SAM_PROTO_GetFieldsCounters [15:26:50]wFMCommunicate request_size=4 [15:26:50]MH_SAM_APDU [15:26:50]CAPDU: 80 13 00 00 [15:26:50]Write to MH i2c: E2 08 00 05 0A 80 13 00 00 00 00 00 00 8B [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:50]Read from MH i2c: E2 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 62 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 62 00 05 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [15:26:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:50]wFMCommunicate OK [15:26:50]SAM_PROTO_GetFieldsCounters done [15:26:50]requested_item shift.num is exist - process it [15:26:50]requested_item shift.opened is exist - process it [15:26:50]req_shift_opened [15:26:50]FM_GetShiftState [15:26:50]SAM_PROTO_GetShiftState [15:26:50]wFMCommunicate request_size=4 [15:26:50]MH_SAM_APDU [15:26:50]CAPDU: 80 13 01 00 [15:26:50]Write to MH i2c: E2 08 00 06 0A 80 13 01 00 00 00 00 00 8D [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:50]Read from MH i2c: E2 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 0E 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 0E 00 06 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 75 [15:26:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:26:50]wFMCommunicate OK [15:26:50]SAM_PROTO_GetShiftState done [15:26:50]FM_GetShiftState done [15:26:50]req_shift_opened done [15:26:50]requested_item shift.open_date is exist - process it [15:26:50]req_shift_open_date [15:26:50]req_shift_open_date done [15:26:50]produce_requested_data done [15:26:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188786,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:26:50]process_action_free close_receipt [15:26:50]json_value_free [15:26:50]json_value_free done [15:26:50]process_json_proto returns [15:26:50]Send response to host [15:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188786,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:26:50]free response buf [15:26:50]execute_script done [15:26:50]execute_script returns [15:26:50]free content buf [15:26:50]Sock 9.Close socket [15:26:50]Sock 9.Thread stoped [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:29]accept exits with 7 [15:28:29]New connection [15:28:29]New thread 3067350372 created [15:28:29]Thread 3067207012 joined [15:28:29]Waiting for new connection... [15:28:29] Sock 7.Parse request [15:28:29]Sock 7.Check first char [15:28:29]Sock 7.First char is OK [15:28:29]request: POST /json_proto HTTP/1.0 [15:28:29]Method: POST [15:28:29]URL: /json_proto [15:28:29]Method is POST - this is cgi request [15:28:29]url: /json_proto [15:28:29]query_string will be loaded in cgi processing [15:28:29]execute_cgi json_proto POST (null) [15:28:29]execute_cgi path=json_proto method=POST [15:28:29]POST find Content-Length [15:28:29]Host: 172.17.42.131:8080 [15:28:29]Content-Length: 682 [15:28:29]Content-Type: application/json [15:28:29] [15:28:29]POST finish read [15:28:29]Found Content-Length = 682 [15:28:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:29]execute_script... [15:28:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:29]POST & json_proto [15:28:29]process_json_proto [15:28:29]json parsed OK: [15:28:29]protocol is kg_v1.0 [15:28:29]action value=close_receipt [15:28:29]process_action close_receipt [15:28:29]cmd_close_receipt [15:28:29]MH_GetDate [15:28:29]Write to MH i2c: F0 00 00 07 0A 00 [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: F0 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: F0 09 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: F0 09 00 07 0A 00 1E 16 19 67 A0 18 CA 66 A5 [15:28:29]GetLastDocTimeStamp 1729697207 [15:28:29]current date 1729697310 [15:28:29]FM_GetShiftState [15:28:29]SAM_PROTO_GetShiftState [15:28:29]wFMCommunicate request_size=4 [15:28:29]MH_SAM_APDU [15:28:29]CAPDU: 80 13 01 00 [15:28:29]Write to MH i2c: E2 08 00 08 0A 80 13 01 00 00 00 00 00 8F [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:29]Read from MH i2c: E2 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 0E 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 0E 00 08 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 77 [15:28:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:28:29]wFMCommunicate OK [15:28:29]SAM_PROTO_GetShiftState done [15:28:29]FM_GetShiftState done [15:28:29]opened in 1729642525 [15:28:29]opened+sec_in_day 1729728925 [15:28:29]quantity*price = 150032 [15:28:29]sum+1 = 150033 [15:28:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 245 23.10.2024 15:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188787 ФПД: 251094051477262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152830&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188787&fm=251094051477262&tin=02508201610067®Number=0000000000100030&sum=150000 [15:28:31]StoreToDocumentArchive [15:28:31]shift 462 fd 188787 [15:28:31]save to /storage/0462/doc_00188787 [15:28:31]save last doc name /storage/0462/doc_00188787 to /storage/kkm_last_doc_name [15:28:31]save OK [15:28:31]Clear old archive folders... [15:28:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:31]tlvbuf is 01114040 [15:28:31]SAM_PROTO_ClearQueue [15:28:31]wFMCommunicate request_size=4 [15:28:31]MH_SAM_APDU [15:28:31]CAPDU: 80 09 00 00 [15:28:31]Write to MH i2c: E2 08 00 15 0A 80 09 00 00 00 00 00 00 91 [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:31]Read from MH i2c: E2 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 03 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [15:28:31]RAPDU: 90 00 [15:28:31]wFMCommunicate OK [15:28:31]SAM_PROTO_ClearQueue done [15:28:31]KKMCreateOFDPacket [15:28:31]OFDProtocolAddRootSTLVToBuf [15:28:31]FM_MakeSignedData [15:28:31]FM_MakeSignedData [15:28:31]SAM_PROTO_SignData [15:28:31]wFMCommunicate request_size=4 [15:28:31]MH_SAM_APDU [15:28:31]CAPDU: 80 0D 01 02 [15:28:31]Write to MH i2c: E2 08 00 16 0A 80 0D 01 02 00 00 00 00 99 [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:31]Read from MH i2c: E2 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 03 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [15:28:31]RAPDU: 90 00 [15:28:31]wFMCommunicate OK [15:28:31]wFMCommunicate request_size=255 [15:28:31]MH_SAM_APDU [15:28:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 1E 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E1 02 00 35 04 06 00 E4 [15:28:31]Write to MH i2c: E2 02 01 17 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 1E 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E1 02 00 35 04 06 00 E4 00 00 21 [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:31]Read from MH i2c: E2 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 03 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 03 00 17 0A 00 90 00 95 [15:28:31]RAPDU: 90 00 [15:28:31]wFMCommunicate OK [15:28:31]wFMCommunicate request_size=10 [15:28:31]MH_SAM_APDU [15:28:31]CAPDU: 80 0D 02 02 05 5E 63 BE 57 0E [15:28:31]Write to MH i2c: E2 0D 00 18 0A 80 0D 02 02 05 00 5E 63 BE 57 0E 00 00 8A [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:31]Read from MH i2c: E2 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 03 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 03 00 18 0A 00 90 00 96 [15:28:31]RAPDU: 90 00 [15:28:31]wFMCommunicate OK [15:28:31]wFMCommunicate request_size=4 [15:28:31]MH_SAM_APDU [15:28:31]CAPDU: 80 0D 03 02 [15:28:31]Write to MH i2c: E2 08 00 19 0A 80 0D 03 02 00 00 00 00 9E [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:31]Read from MH i2c: E2 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 0B 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 0B 00 19 0A 00 FF 03 8A 37 B8 7E CA 93 90 00 F5 [15:28:31]RAPDU: FF 03 8A 37 B8 7E CA 93 90 00 [15:28:31]wFMCommunicate OK [15:28:31]SAM_PROTO_SignData done [15:28:31]FM_MakeSignedData done [15:28:31]CreateOFDProtocolMessage [15:28:31]wFMCommunicate request_size=4 [15:28:31]MH_SAM_APDU [15:28:31]CAPDU: 80 11 00 00 [15:28:31]Write to MH i2c: E2 08 00 1A 0A 80 11 00 00 00 00 00 00 9E [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:31]Read from MH i2c: E2 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 17 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 17 00 1A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [15:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:28:31]wFMCommunicate OK [15:28:31]CreateOFDProtocolMessage done [15:28:31]OFDSenderStorePacket 188787 [15:28:31]StoreOFDPacket docnum=188787 [15:28:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 8C 07 01 3A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 1E 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E1 02 00 35 04 06 00 E4 5E 63 BE 57 0E FF 03 8A 37 B8 7E CA 93 [15:28:31]CheckFolder [15:28:31]dirname=/storage/ofd_packets [15:28:31]CheckFolder done [15:28:31]ProducePacketName [15:28:31]name=ofd_packets/00188787 [15:28:31]NVStorageSaveData ofd_packets/00188787 [15:28:31]File name is /storage/ofd_packets/00188787 [15:28:31]Write 301 bytes [15:28:31]NVStorageSaveData done [15:28:31]OFDSenderStorePacket done [15:28:31]KKMCreateOFDPacket done [15:28:31]NVStorageSaveData kkm_last_timestamp [15:28:31]File name is /storage/kkm_last_timestamp [15:28:31]Write 4 bytes [15:28:31]NVStorageSaveData done [15:28:31]ExternCall_PrintAddStr [15:28:31]wPrintStart [15:28:31]Write to MH i2c: 01 00 00 1B 0A 25 [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 07 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 07 00 1B 0A 00 00 00 00 00 FF 0F 3A [15:28:31]RasterBufferAndPrint [15:28:31]line Счет N : (1)210847 [15:28:31]line ИНН: 02508201610067 [15:28:31]line Контрольно-Кассовый Чек [15:28:31]line ПРОДАЖА [15:28:31]line ТРК (МРК, ГНК) : 13 [15:28:31]line Товар: 2710124500 [15:28:31]line Аи-95-К-3 [15:28:31]line 20.220 * 74.20 [15:28:31]line = 1500.32 [15:28:31]line НДС 12% НСП 1% [15:28:31]line > о реализуемом товаре [15:28:31]line ОКРУГЛЕНИЕ: -0.32 [15:28:31]line ИТОГО: 1500.00 [15:28:31]line Внесено: 1500.00 [15:28:31]line СДАЧА: 0.00 [15:28:31]line НСП 1% : 13.28 [15:28:31]line НДС 12% : 159.33 [15:28:31]line Наличными: 1500.00 [15:28:31]line Безнал.: 0.00 [15:28:31]line Место: АЗС № 86 "Партнер Нефть" [15:28:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:28:31]line СНО: Общий режим [15:28:31]line Чек 245 23.10.2024 15:28 [15:28:31]line Смена: 462 ФФД: 1.0 [15:28:31]line ЗНМ: 0300000155 [15:28:31]line РНМ: 0000000000100030 [15:28:31]line Версия ККМ: 001 [15:28:31]line ФМ: 0000000000965340 [15:28:31]line ФД: 188787 [15:28:31]line ФПД: 251094051477262 [15:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152830&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188787&fm=251094051477262&tin=02508201610067®Number=0000000000100030&sum=150000 [15:28:31]written 0, free lines is 4095 [15:28:31]OFD Sender: Processing packet 188787 [packets to send 1062, broken 1061] [15:28:31]ProducePacketName [15:28:31]name=ofd_packets/00188787 [15:28:31]OFD Sender: To server: pG, [15:28:31]CommunicateWithHost lk.salyk.kg:30040 [15:28:31]ConnectInit lk.salyk.kg [15:28:31]Connected sock=10 [15:28:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 8C 07 01 3A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 1E 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E1 02 00 35 04 06 00 E4 5E 63 BE 57 0E FF 03 8A 37 B8 7E CA 93 [15:28:32]Write to MH i2c: 01 00 00 46 0A 50 [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: 01 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: 01 07 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: 01 07 00 46 0A 00 00 00 00 00 54 0C B7 [15:28:32]RasterBufferAndPrint [15:28:32]line [15:28:32]line [15:28:32]line [15:28:32]line [15:28:32]line [15:28:32]written 0, free lines is 3160 [15:28:32]MH_Cut [15:28:32]Write to MH i2c: D1 01 00 4D 0A 01 29 [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: D1 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: D1 01 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: D1 01 00 4D 0A 00 28 [15:28:32]Write to MH i2c: 01 00 00 4E 0A 58 [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1E 67 47 00 A9 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 36 35 33 34 30 10 04 04 00 73 E1 02 00 F4 03 04 00 09 C0 18 67 B6 04 01 00 00 D6 B9 C9 8C 68 4F 8B 7B [15:28:32]CommunicateWithHost err = 0 [15:28:32]CheckOFDResponse [15:28:32]1017 (14) - 77093643461234 [15:28:32]1041 (16) - 0000000000965340 [15:28:32]1040 (4) - 188787 [15:28:32]1012 (4) - 23.10.2024 09:21 [15:28:32]1206 (1) - 0 [15:28:32]OFD Sender: Remove packet 188787 [15:28:32]ProducePacketName [15:28:32]name=ofd_packets/00188787 [15:28:32]NVStorageDeleteData [15:28:32]OFD Sender: No OFD packet to send [15:28:33]*** Cut start [15:28:33]*** Partial cut [15:28:33]*** CUTSNS_PIN = 1 [15:28:33]*** CUTSNS_PIN = 0 [15:28:33]*** Brake cut motor [15:28:34]Read from MH i2c: 01 [15:28:34]MH_I2C_Read... [15:28:34]*** Stop cut motor [15:28:34]*** Cut end [15:28:34]Read from MH i2c: 01 07 00 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: 01 07 00 4E 0A 00 00 00 00 00 FF 0F 6D [15:28:34]process_action close_receipt done [15:28:34]requested_data is exist [15:28:34]produce_requested_data [15:28:34]requested_item fm.sn is exist - process it [15:28:34]wFMCommunicate request_size=4 [15:28:34]MH_SAM_APDU [15:28:34]CAPDU: 80 11 00 00 [15:28:34]Write to MH i2c: E2 08 00 4F 0A 80 11 00 00 00 00 00 00 D3 [15:28:34]Write i2c OK [15:28:34]MH_I2C_Read... [15:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:34]Read from MH i2c: E2 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 17 00 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 17 00 4F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [15:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:28:34]wFMCommunicate OK [15:28:34]requested_item fd.num is exist - process it [15:28:34]SAM_PROTO_GetFieldsCounters [15:28:34]wFMCommunicate request_size=4 [15:28:34]MH_SAM_APDU [15:28:34]CAPDU: 80 13 00 00 [15:28:34]Write to MH i2c: E2 08 00 50 0A 80 13 00 00 00 00 00 00 D6 [15:28:34]Write i2c OK [15:28:34]MH_I2C_Read... [15:28:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:34]Read from MH i2c: E2 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 62 00 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 62 00 50 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [15:28:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:34]wFMCommunicate OK [15:28:34]SAM_PROTO_GetFieldsCounters done [15:28:34]requested_item shift.num is exist - process it [15:28:34]requested_item shift.opened is exist - process it [15:28:34]req_shift_opened [15:28:34]FM_GetShiftState [15:28:34]SAM_PROTO_GetShiftState [15:28:34]wFMCommunicate request_size=4 [15:28:34]MH_SAM_APDU [15:28:34]CAPDU: 80 13 01 00 [15:28:34]Write to MH i2c: E2 08 00 51 0A 80 13 01 00 00 00 00 00 D8 [15:28:34]Write i2c OK [15:28:34]MH_I2C_Read... [15:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:34]Read from MH i2c: E2 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 0E 00 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 0E 00 51 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C0 [15:28:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:28:34]wFMCommunicate OK [15:28:34]SAM_PROTO_GetShiftState done [15:28:34]FM_GetShiftState done [15:28:34]req_shift_opened done [15:28:34]requested_item shift.open_date is exist - process it [15:28:34]req_shift_open_date [15:28:34]req_shift_open_date done [15:28:34]produce_requested_data done [15:28:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188787,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:28:34]process_action_free close_receipt [15:28:34]json_value_free [15:28:34]json_value_free done [15:28:34]process_json_proto returns [15:28:34]Send response to host [15:28:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188787,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:28:34]free response buf [15:28:34]execute_script done [15:28:34]execute_script returns [15:28:34]free content buf [15:28:34]Sock 7.Close socket [15:28:34]Sock 7.Thread stoped [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:11]accept exits with 9 [15:29:11]New connection [15:29:11]New thread 3067207012 created [15:29:11]Thread 3067350372 joined [15:29:11]Waiting for new connection... [15:29:11] Sock 9.Parse request [15:29:11]Sock 9.Check first char [15:29:11]Sock 9.First char is OK [15:29:11]request: POST /json_proto HTTP/1.0 [15:29:11]Method: POST [15:29:11]URL: /json_proto [15:29:11]Method is POST - this is cgi request [15:29:11]url: /json_proto [15:29:11]query_string will be loaded in cgi processing [15:29:11]execute_cgi json_proto POST (null) [15:29:11]execute_cgi path=json_proto method=POST [15:29:11]POST find Content-Length [15:29:11]Host: 172.17.42.131:8080 [15:29:11]Content-Length: 682 [15:29:11]Content-Type: application/json [15:29:11] [15:29:11]POST finish read [15:29:11]Found Content-Length = 682 [15:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:11]execute_script... [15:29:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:11]POST & json_proto [15:29:11]process_json_proto [15:29:11]json parsed OK: [15:29:11]protocol is kg_v1.0 [15:29:11]action value=close_receipt [15:29:11]process_action close_receipt [15:29:11]cmd_close_receipt [15:29:11]MH_GetDate [15:29:11]Write to MH i2c: F0 00 00 52 0A 4B [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: F0 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: F0 09 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: F0 09 00 52 0A 00 48 16 19 67 A0 18 CA 66 1A [15:29:11]GetLastDocTimeStamp 1729697310 [15:29:11]current date 1729697352 [15:29:11]FM_GetShiftState [15:29:11]SAM_PROTO_GetShiftState [15:29:11]wFMCommunicate request_size=4 [15:29:11]MH_SAM_APDU [15:29:11]CAPDU: 80 13 01 00 [15:29:11]Write to MH i2c: E2 08 00 53 0A 80 13 01 00 00 00 00 00 DA [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:11]Read from MH i2c: E2 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 0E 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 0E 00 53 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C2 [15:29:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:29:11]wFMCommunicate OK [15:29:11]SAM_PROTO_GetShiftState done [15:29:11]FM_GetShiftState done [15:29:11]opened in 1729642525 [15:29:11]opened+sec_in_day 1729728925 [15:29:11]quantity*price = 100021 [15:29:11]sum+1 = 100023 [15:29:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 246 23.10.2024 15:29 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188788 ФПД: 266155729687753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152912&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188788&fm=266155729687753&tin=02508201610067®Number=0000000000100030&sum=100000 [15:29:12]StoreToDocumentArchive [15:29:12]shift 462 fd 188788 [15:29:12]save to /storage/0462/doc_00188788 [15:29:12]save last doc name /storage/0462/doc_00188788 to /storage/kkm_last_doc_name [15:29:12]save OK [15:29:12]Clear old archive folders... [15:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:12]tlvbuf is 011615F0 [15:29:12]SAM_PROTO_ClearQueue [15:29:12]wFMCommunicate request_size=4 [15:29:12]MH_SAM_APDU [15:29:12]CAPDU: 80 09 00 00 [15:29:12]Write to MH i2c: E2 08 00 60 0A 80 09 00 00 00 00 00 00 DC [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:12]Read from MH i2c: E2 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 03 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 03 00 60 0A 00 90 00 DE [15:29:12]RAPDU: 90 00 [15:29:12]wFMCommunicate OK [15:29:12]SAM_PROTO_ClearQueue done [15:29:12]KKMCreateOFDPacket [15:29:12]OFDProtocolAddRootSTLVToBuf [15:29:12]FM_MakeSignedData [15:29:12]FM_MakeSignedData [15:29:12]SAM_PROTO_SignData [15:29:12]wFMCommunicate request_size=4 [15:29:12]MH_SAM_APDU [15:29:12]CAPDU: 80 0D 01 02 [15:29:12]Write to MH i2c: E2 08 00 61 0A 80 0D 01 02 00 00 00 00 E4 [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:12]Read from MH i2c: E2 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 03 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 03 00 61 0A 00 90 00 DF [15:29:12]RAPDU: 90 00 [15:29:12]wFMCommunicate OK [15:29:12]wFMCommunicate request_size=255 [15:29:12]MH_SAM_APDU [15:29:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 48 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E1 02 00 35 04 06 00 F2 [15:29:13]Write to MH i2c: E2 02 01 62 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 48 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E1 02 00 35 04 06 00 F2 00 00 60 [15:29:13]OFD Sender: No OFD packet to send [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 62 0A 00 90 00 E0 [15:29:13]RAPDU: 90 00 [15:29:13]wFMCommunicate OK [15:29:13]wFMCommunicate request_size=10 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 0D 02 02 05 11 35 B9 14 C9 [15:29:13]Write to MH i2c: E2 0D 00 63 0A 80 0D 02 02 05 00 11 35 B9 14 C9 00 00 CD [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [15:29:13]RAPDU: 90 00 [15:29:13]wFMCommunicate OK [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 0D 03 02 [15:29:13]Write to MH i2c: E2 08 00 64 0A 80 0D 03 02 00 00 00 00 E9 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0B 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0B 00 64 0A 00 A1 48 60 4B E6 5E 4E 65 90 00 75 [15:29:13]RAPDU: A1 48 60 4B E6 5E 4E 65 90 00 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_SignData done [15:29:13]FM_MakeSignedData done [15:29:13]CreateOFDProtocolMessage [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 11 00 00 [15:29:13]Write to MH i2c: E2 08 00 65 0A 80 11 00 00 00 00 00 00 E9 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 [15:29:13]MH_I2C_Read... [15:29:13]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 36 35 33 34 30 90 00 37 [15:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:29:13]wFMCommunicate OK [15:29:13]CreateOFDProtocolMessage done [15:29:13]OFDSenderStorePacket 188788 [15:29:13]StoreOFDPacket docnum=188788 [15:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D4 BA 07 01 CD B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 48 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E1 02 00 35 04 06 00 F2 11 35 B9 14 C9 A1 48 60 4B E6 5E 4E 65 [15:29:13]CheckFolder [15:29:13]dirname=/storage/ofd_packets [15:29:13]CheckFolder done [15:29:13]ProducePacketName [15:29:13]name=ofd_packets/00188788 [15:29:13]NVStorageSaveData ofd_packets/00188788 [15:29:13]File name is /storage/ofd_packets/00188788 [15:29:13]Write 301 bytes [15:29:13]NVStorageSaveData done [15:29:13]OFDSenderStorePacket done [15:29:13]KKMCreateOFDPacket done [15:29:13]NVStorageSaveData kkm_last_timestamp [15:29:13]File name is /storage/kkm_last_timestamp [15:29:13]Write 4 bytes [15:29:13]NVStorageSaveData done [15:29:13]ExternCall_PrintAddStr [15:29:13]wPrintStart [15:29:13]Write to MH i2c: 01 00 00 66 0A 70 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 66 0A 00 00 00 00 00 FF 0F 85 [15:29:13]RasterBufferAndPrint [15:29:13]line Счет N : (1)210848 [15:29:13]line ИНН: 02508201610067 [15:29:13]line Контрольно-Кассовый Чек [15:29:13]line ПРОДАЖА [15:29:13]line ТРК (МРК, ГНК) : 43 [15:29:13]line Товар: 2710124500 [15:29:13]line Аи-95-К-3 [15:29:13]line 13.480 * 74.20 [15:29:13]line = 1000.22 [15:29:13]line НДС 12% НСП 1% [15:29:13]line > о реализуемом товаре [15:29:13]line ОКРУГЛЕНИЕ: -0.22 [15:29:13]line ИТОГО: 1000.00 [15:29:13]line Внесено: 1000.00 [15:29:13]line СДАЧА: 0.00 [15:29:13]line НСП 1% : 8.85 [15:29:13]line НДС 12% : 106.22 [15:29:13]line Наличными: 1000.00 [15:29:13]line Безнал.: 0.00 [15:29:13]line Место: АЗС № 86 "Партнер Нефть" [15:29:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:29:13]line СНО: Общий режим [15:29:13]line Чек 246 23.10.2024 15:29 [15:29:13]line Смена: 462 ФФД: 1.0 [15:29:13]line ЗНМ: 0300000155 [15:29:13]line РНМ: 0000000000100030 [15:29:13]line Версия ККМ: 001 [15:29:13]line ФМ: 0000000000965340 [15:29:13]line ФД: 188788 [15:29:13]line ФПД: 266155729687753 [15:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152912&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188788&fm=266155729687753&tin=02508201610067®Number=0000000000100030&sum=100000 [15:29:13]written 0, free lines is 4095 [15:29:13]OFD Sender: Processing packet 188788 [packets to send 1062, broken 1061] [15:29:13]ProducePacketName [15:29:13]name=ofd_packets/00188788 [15:29:13]OFD Sender: To server: pG, [15:29:13]CommunicateWithHost lk.salyk.kg:30040 [15:29:13]ConnectInit lk.salyk.kg [15:29:13]Write to MH i2c: 01 00 00 91 0A 9B [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 5E 0C 0C [15:29:13]RasterBufferAndPrint [15:29:13]line [15:29:13]line [15:29:13]line [15:29:13]line [15:29:13]line [15:29:13]written 0, free lines is 3168 [15:29:13]MH_Cut [15:29:13]Write to MH i2c: D1 01 00 98 0A 01 74 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: D1 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: D1 01 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: D1 01 00 98 0A 00 73 [15:29:13]Write to MH i2c: 01 00 00 99 0A A3 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]Connected sock=11 [15:29:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D4 BA 07 01 CD B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 48 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E1 02 00 35 04 06 00 F2 11 35 B9 14 C9 A1 48 60 4B E6 5E 4E 65 [15:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 ED C7 47 00 25 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E1 02 00 F4 03 04 00 33 C0 18 67 B6 04 01 00 00 60 41 D5 50 E7 EA 26 F0 [15:29:14]CommunicateWithHost err = 0 [15:29:14]CheckOFDResponse [15:29:14]1017 (14) - 77093643461234 [15:29:14]1041 (16) - 0000000000965340 [15:29:14]1040 (4) - 188788 [15:29:14]1012 (4) - 23.10.2024 09:21 [15:29:14]1206 (1) - 0 [15:29:14]OFD Sender: Remove packet 188788 [15:29:14]ProducePacketName [15:29:14]name=ofd_packets/00188788 [15:29:14]NVStorageDeleteData [15:29:14]OFD Sender: No OFD packet to send [15:29:15]*** Cut start [15:29:15]*** Partial cut [15:29:15]*** CUTSNS_PIN = 1 [15:29:15]*** CUTSNS_PIN = 0 [15:29:15]*** Brake cut motor [15:29:15]Read from MH i2c: 01 [15:29:15]MH_I2C_Read... [15:29:15]*** Stop cut motor [15:29:15]*** Cut end [15:29:15]Read from MH i2c: 01 07 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: 01 07 00 99 0A 00 00 00 00 00 FF 0F B8 [15:29:15]process_action close_receipt done [15:29:15]requested_data is exist [15:29:15]produce_requested_data [15:29:15]requested_item fm.sn is exist - process it [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 11 00 00 [15:29:15]Write to MH i2c: E2 08 00 9A 0A 80 11 00 00 00 00 00 00 1E [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 17 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 17 00 9A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [15:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:29:15]wFMCommunicate OK [15:29:15]requested_item fd.num is exist - process it [15:29:15]SAM_PROTO_GetFieldsCounters [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 13 00 00 [15:29:15]Write to MH i2c: E2 08 00 9B 0A 80 13 00 00 00 00 00 00 21 [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:16]Read from MH i2c: E2 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: E2 62 00 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: E2 62 00 9B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [15:29:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:16]wFMCommunicate OK [15:29:16]SAM_PROTO_GetFieldsCounters done [15:29:16]requested_item shift.num is exist - process it [15:29:16]requested_item shift.opened is exist - process it [15:29:16]req_shift_opened [15:29:16]FM_GetShiftState [15:29:16]SAM_PROTO_GetShiftState [15:29:16]wFMCommunicate request_size=4 [15:29:16]MH_SAM_APDU [15:29:16]CAPDU: 80 13 01 00 [15:29:16]Write to MH i2c: E2 08 00 9C 0A 80 13 01 00 00 00 00 00 23 [15:29:16]Write i2c OK [15:29:16]MH_I2C_Read... [15:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:16]Read from MH i2c: E2 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: E2 0E 00 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: E2 0E 00 9C 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0B [15:29:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:29:16]wFMCommunicate OK [15:29:16]SAM_PROTO_GetShiftState done [15:29:16]FM_GetShiftState done [15:29:16]req_shift_opened done [15:29:16]requested_item shift.open_date is exist - process it [15:29:16]req_shift_open_date [15:29:16]req_shift_open_date done [15:29:16]produce_requested_data done [15:29:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188788,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:29:16]process_action_free close_receipt [15:29:16]json_value_free [15:29:16]json_value_free done [15:29:16]process_json_proto returns [15:29:16]Send response to host [15:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188788,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:29:16]free response buf [15:29:16]execute_script done [15:29:16]execute_script returns [15:29:16]free content buf [15:29:16]Sock 9.Close socket [15:29:16]Sock 9.Thread stoped [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:04]accept exits with 7 [15:30:04]New connection [15:30:04]New thread 3067350372 created [15:30:04]Thread 3067207012 joined [15:30:04]Waiting for new connection... [15:30:04] Sock 7.Parse request [15:30:04]Sock 7.Check first char [15:30:04]Sock 7.First char is OK [15:30:04]request: POST /json_proto HTTP/1.0 [15:30:04]Method: POST [15:30:04]URL: /json_proto [15:30:04]Method is POST - this is cgi request [15:30:04]url: /json_proto [15:30:04]query_string will be loaded in cgi processing [15:30:04]execute_cgi json_proto POST (null) [15:30:04]execute_cgi path=json_proto method=POST [15:30:04]POST find Content-Length [15:30:04]Host: 172.17.42.131:8080 [15:30:04]Content-Length: 682 [15:30:04]Content-Type: application/json [15:30:04] [15:30:04]POST finish read [15:30:04]Found Content-Length = 682 [15:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:04]execute_script... [15:30:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:04]POST & json_proto [15:30:04]process_json_proto [15:30:04]json parsed OK: [15:30:04]protocol is kg_v1.0 [15:30:04]action value=close_receipt [15:30:04]process_action close_receipt [15:30:04]cmd_close_receipt [15:30:04]MH_GetDate [15:30:04]Write to MH i2c: F0 00 00 9D 0A 96 [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: F0 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: F0 09 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: F0 09 00 9D 0A 00 7D 16 19 67 A0 18 CA 66 9A [15:30:04]GetLastDocTimeStamp 1729697352 [15:30:04]current date 1729697405 [15:30:04]FM_GetShiftState [15:30:04]SAM_PROTO_GetShiftState [15:30:04]wFMCommunicate request_size=4 [15:30:04]MH_SAM_APDU [15:30:04]CAPDU: 80 13 01 00 [15:30:04]Write to MH i2c: E2 08 00 9E 0A 80 13 01 00 00 00 00 00 25 [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:04]Read from MH i2c: E2 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 0E 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 0E 00 9E 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0D [15:30:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:30:04]wFMCommunicate OK [15:30:04]SAM_PROTO_GetShiftState done [15:30:04]FM_GetShiftState done [15:30:04]opened in 1729642525 [15:30:04]opened+sec_in_day 1729728925 [15:30:04]quantity*price = 100015 [15:30:04]sum+1 = 100017 [15:30:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 247 23.10.2024 15:30 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188789 ФПД: 142501216826911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153005&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188789&fm=142501216826911&tin=02508201610067®Number=0000000000100030&sum=100000 [15:30:05]StoreToDocumentArchive [15:30:05]shift 462 fd 188789 [15:30:05]save to /storage/0462/doc_00188789 [15:30:05]save last doc name /storage/0462/doc_00188789 to /storage/kkm_last_doc_name [15:30:05]save OK [15:30:05]Clear old archive folders... [15:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:05]tlvbuf is 01121050 [15:30:05]SAM_PROTO_ClearQueue [15:30:05]wFMCommunicate request_size=4 [15:30:05]MH_SAM_APDU [15:30:05]CAPDU: 80 09 00 00 [15:30:05]Write to MH i2c: E2 08 00 AB 0A 80 09 00 00 00 00 00 00 27 [15:30:05]Write i2c OK [15:30:05]MH_I2C_Read... [15:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:05]Read from MH i2c: E2 [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: E2 03 00 [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: E2 03 00 AB 0A 00 90 00 29 [15:30:05]RAPDU: 90 00 [15:30:05]wFMCommunicate OK [15:30:05]SAM_PROTO_ClearQueue done [15:30:05]KKMCreateOFDPacket [15:30:05]OFDProtocolAddRootSTLVToBuf [15:30:05]FM_MakeSignedData [15:30:05]FM_MakeSignedData [15:30:05]SAM_PROTO_SignData [15:30:05]wFMCommunicate request_size=4 [15:30:05]MH_SAM_APDU [15:30:05]CAPDU: 80 0D 01 02 [15:30:05]Write to MH i2c: E2 08 00 AC 0A 80 0D 01 02 00 00 00 00 2F [15:30:05]Write i2c OK [15:30:05]MH_I2C_Read... [15:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:05]Read from MH i2c: E2 [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: E2 03 00 [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: E2 03 00 AC 0A 00 90 00 2A [15:30:05]RAPDU: 90 00 [15:30:05]wFMCommunicate OK [15:30:05]wFMCommunicate request_size=255 [15:30:05]MH_SAM_APDU [15:30:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7D 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E1 02 00 35 04 06 00 81 [15:30:05]Write to MH i2c: E2 02 01 AD 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7D 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E1 02 00 35 04 06 00 81 00 00 4E [15:30:05]Write i2c OK [15:30:05]MH_I2C_Read... [15:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:06]Read from MH i2c: E2 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 03 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 03 00 AD 0A 00 90 00 2B [15:30:06]RAPDU: 90 00 [15:30:06]wFMCommunicate OK [15:30:06]wFMCommunicate request_size=10 [15:30:06]MH_SAM_APDU [15:30:06]CAPDU: 80 0D 02 02 05 9A A6 68 B6 1F [15:30:06]Write to MH i2c: E2 0D 00 AE 0A 80 0D 02 02 05 00 9A A6 68 B6 1F 00 00 B9 [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:06]Read from MH i2c: E2 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 03 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [15:30:06]RAPDU: 90 00 [15:30:06]wFMCommunicate OK [15:30:06]wFMCommunicate request_size=4 [15:30:06]MH_SAM_APDU [15:30:06]CAPDU: 80 0D 03 02 [15:30:06]Write to MH i2c: E2 08 00 AF 0A 80 0D 03 02 00 00 00 00 34 [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:06]Read from MH i2c: E2 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 0B 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 0B 00 AF 0A 00 1F 40 E5 67 D8 88 C9 DB 90 00 E4 [15:30:06]RAPDU: 1F 40 E5 67 D8 88 C9 DB 90 00 [15:30:06]wFMCommunicate OK [15:30:06]SAM_PROTO_SignData done [15:30:06]FM_MakeSignedData done [15:30:06]CreateOFDProtocolMessage [15:30:06]wFMCommunicate request_size=4 [15:30:06]MH_SAM_APDU [15:30:06]CAPDU: 80 11 00 00 [15:30:06]Write to MH i2c: E2 08 00 B0 0A 80 11 00 00 00 00 00 00 34 [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:06]Read from MH i2c: E2 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 17 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 17 00 B0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [15:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:30:06]wFMCommunicate OK [15:30:06]CreateOFDProtocolMessage done [15:30:06]OFDSenderStorePacket 188789 [15:30:06]StoreOFDPacket docnum=188789 [15:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DB E0 07 01 1A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7D 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E1 02 00 35 04 06 00 81 9A A6 68 B6 1F 1F 40 E5 67 D8 88 C9 DB [15:30:06]CheckFolder [15:30:06]dirname=/storage/ofd_packets [15:30:06]CheckFolder done [15:30:06]ProducePacketName [15:30:06]name=ofd_packets/00188789 [15:30:06]NVStorageSaveData ofd_packets/00188789 [15:30:06]File name is /storage/ofd_packets/00188789 [15:30:06]Write 301 bytes [15:30:06]NVStorageSaveData done [15:30:06]OFDSenderStorePacket done [15:30:06]KKMCreateOFDPacket done [15:30:06]NVStorageSaveData kkm_last_timestamp [15:30:06]File name is /storage/kkm_last_timestamp [15:30:06]Write 4 bytes [15:30:06]NVStorageSaveData done [15:30:06]ExternCall_PrintAddStr [15:30:06]wPrintStart [15:30:06]Write to MH i2c: 01 00 00 B1 0A BB [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: 01 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: 01 07 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: 01 07 00 B1 0A 00 00 00 00 00 FF 0F D0 [15:30:06]RasterBufferAndPrint [15:30:06]line Счет N : (1)210849 [15:30:06]line ИНН: 02508201610067 [15:30:06]line Контрольно-Кассовый Чек [15:30:06]line ПРОДАЖА [15:30:06]line ТРК (МРК, ГНК) : 32 [15:30:06]line Товар: 2710124130 [15:30:06]line Аи-92-К-3 [15:30:06]line 14.950 * 66.90 [15:30:06]line = 1000.16 [15:30:06]line НДС 12% НСП 1% [15:30:06]line > о реализуемом товаре [15:30:06]line ОКРУГЛЕНИЕ: -0.16 [15:30:06]line ИТОГО: 1000.00 [15:30:06]line Внесено: 1000.00 [15:30:06]line СДАЧА: 0.00 [15:30:06]line НСП 1% : 8.85 [15:30:06]line НДС 12% : 106.21 [15:30:06]line Наличными: 1000.00 [15:30:06]line Безнал.: 0.00 [15:30:06]line Место: АЗС № 86 "Партнер Нефть" [15:30:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:30:06]line СНО: Общий режим [15:30:06]line Чек 247 23.10.2024 15:30 [15:30:06]line Смена: 462 ФФД: 1.0 [15:30:06]line ЗНМ: 0300000155 [15:30:06]line РНМ: 0000000000100030 [15:30:06]line Версия ККМ: 001 [15:30:06]line ФМ: 0000000000965340 [15:30:06]line ФД: 188789 [15:30:06]line ФПД: 142501216826911 [15:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153005&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188789&fm=142501216826911&tin=02508201610067®Number=0000000000100030&sum=100000 [15:30:06]written 0, free lines is 4095 [15:30:06]OFD Sender: Processing packet 188789 [packets to send 1062, broken 1061] [15:30:06]ProducePacketName [15:30:06]name=ofd_packets/00188789 [15:30:06]OFD Sender: To server: pG, [15:30:06]CommunicateWithHost lk.salyk.kg:30040 [15:30:06]ConnectInit lk.salyk.kg [15:30:06]Connected sock=10 [15:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DB E0 07 01 1A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7D 16 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E1 02 00 35 04 06 00 81 9A A6 68 B6 1F 1F 40 E5 67 D8 88 C9 DB [15:30:06]Write to MH i2c: 01 00 00 DC 0A E6 [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: 01 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: 01 07 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: 01 07 00 DC 0A 00 00 00 00 00 5C 0C 55 [15:30:06]RasterBufferAndPrint [15:30:06]line [15:30:06]line [15:30:06]line [15:30:06]line [15:30:06]line [15:30:06]written 0, free lines is 3167 [15:30:06]MH_Cut [15:30:06]Write to MH i2c: D1 01 00 E3 0A 01 BF [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: D1 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: D1 01 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: D1 01 00 E3 0A 00 BE [15:30:06]Write to MH i2c: 01 00 00 E4 0A EE [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C3 B3 47 00 0C 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E1 02 00 F4 03 04 00 67 C0 18 67 B6 04 01 00 00 BA 3D 9A A7 73 00 5E 03 [15:30:07]CommunicateWithHost err = 0 [15:30:07]CheckOFDResponse [15:30:07]1017 (14) - 77093643461234 [15:30:07]1041 (16) - 0000000000965340 [15:30:07]1040 (4) - 188789 [15:30:07]1012 (4) - 23.10.2024 09:22 [15:30:07]1206 (1) - 0 [15:30:07]OFD Sender: Remove packet 188789 [15:30:07]ProducePacketName [15:30:07]name=ofd_packets/00188789 [15:30:07]NVStorageDeleteData [15:30:07]OFD Sender: No OFD packet to send [15:30:08]*** Cut start [15:30:08]*** Partial cut [15:30:08]*** CUTSNS_PIN = 1 [15:30:08]*** CUTSNS_PIN = 0 [15:30:08]*** Brake cut motor [15:30:08]Read from MH i2c: 01 [15:30:08]MH_I2C_Read... [15:30:08]*** Stop cut motor [15:30:08]*** Cut end [15:30:08]Read from MH i2c: 01 07 00 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: 01 07 00 E4 0A 00 00 00 00 00 FF 0F 03 [15:30:08]process_action close_receipt done [15:30:08]requested_data is exist [15:30:08]produce_requested_data [15:30:08]requested_item fm.sn is exist - process it [15:30:08]wFMCommunicate request_size=4 [15:30:08]MH_SAM_APDU [15:30:08]CAPDU: 80 11 00 00 [15:30:08]Write to MH i2c: E2 08 00 E5 0A 80 11 00 00 00 00 00 00 69 [15:30:08]Write i2c OK [15:30:08]MH_I2C_Read... [15:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:08]Read from MH i2c: E2 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: E2 17 00 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: E2 17 00 E5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [15:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:30:08]wFMCommunicate OK [15:30:08]requested_item fd.num is exist - process it [15:30:08]SAM_PROTO_GetFieldsCounters [15:30:08]wFMCommunicate request_size=4 [15:30:08]MH_SAM_APDU [15:30:08]CAPDU: 80 13 00 00 [15:30:08]Write to MH i2c: E2 08 00 E6 0A 80 13 00 00 00 00 00 00 6C [15:30:08]Write i2c OK [15:30:08]MH_I2C_Read... [15:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:08]Read from MH i2c: E2 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: E2 62 00 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: E2 62 00 E6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [15:30:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:08]wFMCommunicate OK [15:30:08]SAM_PROTO_GetFieldsCounters done [15:30:08]requested_item shift.num is exist - process it [15:30:08]requested_item shift.opened is exist - process it [15:30:08]req_shift_opened [15:30:08]FM_GetShiftState [15:30:08]SAM_PROTO_GetShiftState [15:30:08]wFMCommunicate request_size=4 [15:30:08]MH_SAM_APDU [15:30:08]CAPDU: 80 13 01 00 [15:30:08]Write to MH i2c: E2 08 00 E7 0A 80 13 01 00 00 00 00 00 6E [15:30:08]Write i2c OK [15:30:08]MH_I2C_Read... [15:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:09]Read from MH i2c: E2 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: E2 0E 00 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: E2 0E 00 E7 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 56 [15:30:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:30:09]wFMCommunicate OK [15:30:09]SAM_PROTO_GetShiftState done [15:30:09]FM_GetShiftState done [15:30:09]req_shift_opened done [15:30:09]requested_item shift.open_date is exist - process it [15:30:09]req_shift_open_date [15:30:09]req_shift_open_date done [15:30:09]produce_requested_data done [15:30:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188789,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:30:09]process_action_free close_receipt [15:30:09]json_value_free [15:30:09]json_value_free done [15:30:09]process_json_proto returns [15:30:09]Send response to host [15:30:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188789,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:30:09]free response buf [15:30:09]execute_script done [15:30:09]execute_script returns [15:30:09]free content buf [15:30:09]Sock 7.Close socket [15:30:09]Sock 7.Thread stoped [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:14]accept exits with 9 [15:33:14]New connection [15:33:14]New thread 3067207012 created [15:33:14]Thread 3067350372 joined [15:33:14]Waiting for new connection... [15:33:14] Sock 9.Parse request [15:33:14]Sock 9.Check first char [15:33:14]Sock 9.First char is OK [15:33:14]request: POST /json_proto HTTP/1.0 [15:33:14]Method: POST [15:33:14]URL: /json_proto [15:33:14]Method is POST - this is cgi request [15:33:14]url: /json_proto [15:33:14]query_string will be loaded in cgi processing [15:33:14]execute_cgi json_proto POST (null) [15:33:14]execute_cgi path=json_proto method=POST [15:33:14]POST find Content-Length [15:33:14]Host: 172.17.42.131:8080 [15:33:14]Content-Length: 677 [15:33:14]Content-Type: application/json [15:33:14] [15:33:14]POST finish read [15:33:14]Found Content-Length = 677 [15:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:14]execute_script... [15:33:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:14]POST & json_proto [15:33:14]process_json_proto [15:33:14]json parsed OK: [15:33:14]protocol is kg_v1.0 [15:33:14]action value=close_receipt [15:33:14]process_action close_receipt [15:33:14]cmd_close_receipt [15:33:14]MH_GetDate [15:33:14]Write to MH i2c: F0 00 00 E8 0A E1 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: F0 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: F0 09 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: F0 09 00 E8 0A 00 3B 17 19 67 A0 18 CA 66 A4 [15:33:14]GetLastDocTimeStamp 1729697405 [15:33:14]current date 1729697595 [15:33:14]FM_GetShiftState [15:33:14]SAM_PROTO_GetShiftState [15:33:14]wFMCommunicate request_size=4 [15:33:14]MH_SAM_APDU [15:33:14]CAPDU: 80 13 01 00 [15:33:14]Write to MH i2c: E2 08 00 E9 0A 80 13 01 00 00 00 00 00 70 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:14]Read from MH i2c: E2 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 0E 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 0E 00 E9 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 58 [15:33:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:33:14]wFMCommunicate OK [15:33:14]SAM_PROTO_GetShiftState done [15:33:14]FM_GetShiftState done [15:33:14]opened in 1729642525 [15:33:14]opened+sec_in_day 1729728925 [15:33:14]quantity*price = 30038 [15:33:14]sum+1 = 30039 [15:33:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 248 23.10.2024 15:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188790 ФПД: 91382736180218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188790&fm=91382736180218&tin=02508201610067®Number=0000000000100030&sum=30000 [15:33:15]StoreToDocumentArchive [15:33:15]shift 462 fd 188790 [15:33:15]save to /storage/0462/doc_00188790 [15:33:15]save last doc name /storage/0462/doc_00188790 to /storage/kkm_last_doc_name [15:33:15]save OK [15:33:15]Clear old archive folders... [15:33:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:15]tlvbuf is 01121410 [15:33:15]SAM_PROTO_ClearQueue [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 09 00 00 [15:33:15]Write to MH i2c: E2 08 00 F6 0A 80 09 00 00 00 00 00 00 72 [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 03 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 03 00 F6 0A 00 90 00 74 [15:33:15]RAPDU: 90 00 [15:33:15]wFMCommunicate OK [15:33:15]SAM_PROTO_ClearQueue done [15:33:15]KKMCreateOFDPacket [15:33:15]OFDProtocolAddRootSTLVToBuf [15:33:15]FM_MakeSignedData [15:33:15]FM_MakeSignedData [15:33:15]SAM_PROTO_SignData [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 0D 01 02 [15:33:15]Write to MH i2c: E2 08 00 F7 0A 80 0D 01 02 00 00 00 00 7A [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 03 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 03 00 F7 0A 00 90 00 75 [15:33:15]RAPDU: 90 00 [15:33:15]wFMCommunicate OK [15:33:15]wFMCommunicate request_size=255 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 17 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E1 02 00 35 04 06 00 53 [15:33:15]Write to MH i2c: E2 02 01 F8 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 17 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E1 02 00 35 04 06 00 53 00 00 26 [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 03 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 03 00 F8 0A 00 90 00 76 [15:33:15]RAPDU: 90 00 [15:33:15]wFMCommunicate OK [15:33:15]wFMCommunicate request_size=10 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 0D 02 02 05 1C B3 87 53 FA [15:33:15]Write to MH i2c: E2 0D 00 F9 0A 80 0D 02 02 05 00 1C B3 87 53 FA 00 00 2A [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 03 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [15:33:15]RAPDU: 90 00 [15:33:15]wFMCommunicate OK [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 0D 03 02 [15:33:15]Write to MH i2c: E2 08 00 FA 0A 80 0D 03 02 00 00 00 00 7F [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 0B 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 0B 00 FA 0A 00 42 04 88 F5 27 A9 ED 91 90 00 91 [15:33:15]RAPDU: 42 04 88 F5 27 A9 ED 91 90 00 [15:33:15]wFMCommunicate OK [15:33:15]SAM_PROTO_SignData done [15:33:15]FM_MakeSignedData done [15:33:15]CreateOFDProtocolMessage [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 11 00 00 [15:33:15]Write to MH i2c: E2 08 00 FB 0A 80 11 00 00 00 00 00 00 7F [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 17 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 17 00 FB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [15:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:33:15]wFMCommunicate OK [15:33:15]CreateOFDProtocolMessage done [15:33:15]OFDSenderStorePacket 188790 [15:33:15]StoreOFDPacket docnum=188790 [15:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B E0 07 01 F5 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 17 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E1 02 00 35 04 06 00 53 1C B3 87 53 FA 42 04 88 F5 27 A9 ED 91 [15:33:15]CheckFolder [15:33:15]dirname=/storage/ofd_packets [15:33:15]CheckFolder done [15:33:15]ProducePacketName [15:33:15]name=ofd_packets/00188790 [15:33:15]NVStorageSaveData ofd_packets/00188790 [15:33:15]File name is /storage/ofd_packets/00188790 [15:33:15]Write 301 bytes [15:33:15]NVStorageSaveData done [15:33:15]OFDSenderStorePacket done [15:33:15]KKMCreateOFDPacket done [15:33:15]NVStorageSaveData kkm_last_timestamp [15:33:15]File name is /storage/kkm_last_timestamp [15:33:15]Write 4 bytes [15:33:15]NVStorageSaveData done [15:33:15]ExternCall_PrintAddStr [15:33:15]wPrintStart [15:33:15]Write to MH i2c: 01 00 00 FC 0A 06 [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: 01 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: 01 07 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: 01 07 00 FC 0A 00 00 00 00 00 FF 0F 1B [15:33:15]RasterBufferAndPrint [15:33:15]line Счет N : (1)210850 [15:33:15]line ИНН: 02508201610067 [15:33:15]line Контрольно-Кассовый Чек [15:33:15]line ПРОДАЖА [15:33:15]line ТРК (МРК, ГНК) : 42 [15:33:15]line Товар: 2710124130 [15:33:15]line Аи-92-К-3 [15:33:15]line 4.490 * 66.90 [15:33:15]line = 300.38 [15:33:15]line НДС 12% НСП 1% [15:33:15]line > о реализуемом товаре [15:33:15]line ОКРУГЛЕНИЕ: -0.38 [15:33:15]line ИТОГО: 300.00 [15:33:15]line Внесено: 300.00 [15:33:15]line СДАЧА: 0.00 [15:33:15]line НСП 1% : 2.66 [15:33:15]line НДС 12% : 31.90 [15:33:15]line Наличными: 300.00 [15:33:15]line Безнал.: 0.00 [15:33:15]line Место: АЗС № 86 "Партнер Нефть" [15:33:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:33:15]line СНО: Общий режим [15:33:15]line Чек 248 23.10.2024 15:33 [15:33:15]line Смена: 462 ФФД: 1.0 [15:33:15]line ЗНМ: 0300000155 [15:33:15]line РНМ: 0000000000100030 [15:33:15]line Версия ККМ: 001 [15:33:15]line ФМ: 0000000000965340 [15:33:15]line ФД: 188790 [15:33:15]line ФПД: 91382736180218 [15:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188790&fm=91382736180218&tin=02508201610067®Number=0000000000100030&sum=30000 [15:33:16]written 0, free lines is 4095 [15:33:16]OFD Sender: Processing packet 188790 [packets to send 1062, broken 1061] [15:33:16]ProducePacketName [15:33:16]name=ofd_packets/00188790 [15:33:16]OFD Sender: To server: pG, [15:33:16]CommunicateWithHost lk.salyk.kg:30040 [15:33:16]ConnectInit lk.salyk.kg [15:33:16]Connected sock=10 [15:33:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B E0 07 01 F5 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 17 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E1 02 00 35 04 06 00 53 1C B3 87 53 FA 42 04 88 F5 27 A9 ED 91 [15:33:16]Write to MH i2c: 01 00 00 27 0B 32 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: 01 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: 01 07 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 5C 0C A1 [15:33:16]RasterBufferAndPrint [15:33:16]line [15:33:16]line [15:33:16]line [15:33:16]line [15:33:16]line [15:33:16]written 0, free lines is 3167 [15:33:16]MH_Cut [15:33:16]Write to MH i2c: D1 01 00 2E 0B 01 0B [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: D1 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: D1 01 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: D1 01 00 2E 0B 00 0A [15:33:16]Write to MH i2c: 01 00 00 2F 0B 3A [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 36 79 47 00 C0 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 36 35 33 34 30 10 04 04 00 76 E1 02 00 F4 03 04 00 25 C1 18 67 B6 04 01 00 00 9E 53 1D 92 59 73 6B AF [15:33:16]CommunicateWithHost err = 0 [15:33:16]CheckOFDResponse [15:33:16]1017 (14) - 77093643461234 [15:33:16]1041 (16) - 0000000000965340 [15:33:16]1040 (4) - 188790 [15:33:16]1012 (4) - 23.10.2024 09:25 [15:33:16]1206 (1) - 0 [15:33:16]OFD Sender: Remove packet 188790 [15:33:16]ProducePacketName [15:33:16]name=ofd_packets/00188790 [15:33:16]NVStorageDeleteData [15:33:17]OFD Sender: No OFD packet to send [15:33:17]*** Cut start [15:33:17]*** Partial cut [15:33:17]*** CUTSNS_PIN = 1 [15:33:17]*** CUTSNS_PIN = 0 [15:33:18]*** Brake cut motor [15:33:18]Read from MH i2c: 01 [15:33:18]MH_I2C_Read... [15:33:18]*** Stop cut motor [15:33:18]*** Cut end [15:33:18]Read from MH i2c: 01 07 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 07 00 2F 0B 00 00 00 00 00 FF 0F 4F [15:33:18]process_action close_receipt done [15:33:18]requested_data is exist [15:33:18]produce_requested_data [15:33:18]requested_item fm.sn is exist - process it [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 11 00 00 [15:33:18]Write to MH i2c: E2 08 00 30 0B 80 11 00 00 00 00 00 00 B5 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:18]Read from MH i2c: E2 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 17 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 17 00 30 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [15:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:33:18]wFMCommunicate OK [15:33:18]requested_item fd.num is exist - process it [15:33:18]SAM_PROTO_GetFieldsCounters [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 13 00 00 [15:33:18]Write to MH i2c: E2 08 00 31 0B 80 13 00 00 00 00 00 00 B8 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:18]Read from MH i2c: E2 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 62 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 62 00 31 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [15:33:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:18]wFMCommunicate OK [15:33:18]SAM_PROTO_GetFieldsCounters done [15:33:18]requested_item shift.num is exist - process it [15:33:18]requested_item shift.opened is exist - process it [15:33:18]req_shift_opened [15:33:18]FM_GetShiftState [15:33:18]SAM_PROTO_GetShiftState [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 13 01 00 [15:33:18]Write to MH i2c: E2 08 00 32 0B 80 13 01 00 00 00 00 00 BA [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:18]Read from MH i2c: E2 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 0E 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 0E 00 32 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A2 [15:33:18]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:33:18]wFMCommunicate OK [15:33:18]SAM_PROTO_GetShiftState done [15:33:18]FM_GetShiftState done [15:33:18]req_shift_opened done [15:33:18]requested_item shift.open_date is exist - process it [15:33:18]req_shift_open_date [15:33:18]req_shift_open_date done [15:33:18]produce_requested_data done [15:33:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188790,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:33:18]process_action_free close_receipt [15:33:18]json_value_free [15:33:18]json_value_free done [15:33:18]process_json_proto returns [15:33:18]Send response to host [15:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188790,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:33:18]free response buf [15:33:18]execute_script done [15:33:18]execute_script returns [15:33:18]free content buf [15:33:18]Sock 9.Close socket [15:33:18]Sock 9.Thread stoped [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:29]accept exits with 7 [15:33:29]New connection [15:33:29]New thread 3067350372 created [15:33:29]Thread 3067207012 joined [15:33:29]Waiting for new connection... [15:33:29] Sock 7.Parse request [15:33:29]Sock 7.Check first char [15:33:29]Sock 7.First char is OK [15:33:29]request: POST /json_proto HTTP/1.0 [15:33:29]Method: POST [15:33:29]URL: /json_proto [15:33:29]Method is POST - this is cgi request [15:33:29]url: /json_proto [15:33:29]query_string will be loaded in cgi processing [15:33:29]execute_cgi json_proto POST (null) [15:33:29]execute_cgi path=json_proto method=POST [15:33:29]POST find Content-Length [15:33:29]Host: 172.17.42.131:8080 [15:33:29]Content-Length: 677 [15:33:29]Content-Type: application/json [15:33:29] [15:33:29]POST finish read [15:33:29]Found Content-Length = 677 [15:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:29]execute_script... [15:33:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:29]POST & json_proto [15:33:29]process_json_proto [15:33:29]json parsed OK: [15:33:29]protocol is kg_v1.0 [15:33:29]action value=close_receipt [15:33:29]process_action close_receipt [15:33:29]cmd_close_receipt [15:33:29]MH_GetDate [15:33:29]Write to MH i2c: F0 00 00 33 0B 2D [15:33:29]Write i2c OK [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: F0 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: F0 09 00 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: F0 09 00 33 0B 00 4A 17 19 67 A0 18 CA 66 FF [15:33:29]GetLastDocTimeStamp 1729697595 [15:33:29]current date 1729697610 [15:33:29]FM_GetShiftState [15:33:29]SAM_PROTO_GetShiftState [15:33:29]wFMCommunicate request_size=4 [15:33:29]MH_SAM_APDU [15:33:29]CAPDU: 80 13 01 00 [15:33:29]Write to MH i2c: E2 08 00 34 0B 80 13 01 00 00 00 00 00 BC [15:33:29]Write i2c OK [15:33:29]MH_I2C_Read... [15:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:29]Read from MH i2c: E2 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: E2 0E 00 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: E2 0E 00 34 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A4 [15:33:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:33:29]wFMCommunicate OK [15:33:29]SAM_PROTO_GetShiftState done [15:33:29]FM_GetShiftState done [15:33:29]opened in 1729642525 [15:33:29]opened+sec_in_day 1729728925 [15:33:29]quantity*price = 60027 [15:33:29]sum+1 = 60029 [15:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 249 23.10.2024 15:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188791 ФПД: 90431755890727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153330&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188791&fm=90431755890727&tin=02508201610067®Number=0000000000100030&sum=60000 [15:33:30]StoreToDocumentArchive [15:33:30]shift 462 fd 188791 [15:33:30]save to /storage/0462/doc_00188791 [15:33:30]save last doc name /storage/0462/doc_00188791 to /storage/kkm_last_doc_name [15:33:30]save OK [15:33:30]Clear old archive folders... [15:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:30]tlvbuf is 0111C560 [15:33:30]SAM_PROTO_ClearQueue [15:33:30]wFMCommunicate request_size=4 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 09 00 00 [15:33:30]Write to MH i2c: E2 08 00 41 0B 80 09 00 00 00 00 00 00 BE [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 41 0B 00 90 00 C0 [15:33:30]RAPDU: 90 00 [15:33:30]wFMCommunicate OK [15:33:30]SAM_PROTO_ClearQueue done [15:33:30]KKMCreateOFDPacket [15:33:30]OFDProtocolAddRootSTLVToBuf [15:33:30]FM_MakeSignedData [15:33:30]FM_MakeSignedData [15:33:30]SAM_PROTO_SignData [15:33:30]wFMCommunicate request_size=4 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 0D 01 02 [15:33:30]Write to MH i2c: E2 08 00 42 0B 80 0D 01 02 00 00 00 00 C6 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 42 0B 00 90 00 C1 [15:33:30]RAPDU: 90 00 [15:33:30]wFMCommunicate OK [15:33:30]wFMCommunicate request_size=255 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 4A 17 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E1 02 00 35 04 06 00 52 [15:33:30]Write to MH i2c: E2 02 01 43 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 4A 17 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E1 02 00 35 04 06 00 52 00 00 EC [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [15:33:30]RAPDU: 90 00 [15:33:30]wFMCommunicate OK [15:33:30]wFMCommunicate request_size=10 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 0D 02 02 05 3F 48 AF B0 27 [15:33:30]Write to MH i2c: E2 0D 00 44 0B 80 0D 02 02 05 00 3F 48 AF B0 27 00 00 E0 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [15:33:30]RAPDU: 90 00 [15:33:30]wFMCommunicate OK [15:33:30]wFMCommunicate request_size=4 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 0D 03 02 [15:33:30]Write to MH i2c: E2 08 00 45 0B 80 0D 03 02 00 00 00 00 CB [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 0B 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 0B 00 45 0B 00 AF 1D 53 55 F9 F3 66 CC 90 00 5E [15:33:31]RAPDU: AF 1D 53 55 F9 F3 66 CC 90 00 [15:33:31]wFMCommunicate OK [15:33:31]SAM_PROTO_SignData done [15:33:31]FM_MakeSignedData done [15:33:31]CreateOFDProtocolMessage [15:33:31]wFMCommunicate request_size=4 [15:33:31]MH_SAM_APDU [15:33:31]CAPDU: 80 11 00 00 [15:33:31]Write to MH i2c: E2 08 00 46 0B 80 11 00 00 00 00 00 00 CB [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 17 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 17 00 46 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [15:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:33:31]wFMCommunicate OK [15:33:31]CreateOFDProtocolMessage done [15:33:31]OFDSenderStorePacket 188791 [15:33:31]StoreOFDPacket docnum=188791 [15:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 71 40 07 01 9A A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 4A 17 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E1 02 00 35 04 06 00 52 3F 48 AF B0 27 AF 1D 53 55 F9 F3 66 CC [15:33:31]CheckFolder [15:33:31]dirname=/storage/ofd_packets [15:33:31]CheckFolder done [15:33:31]ProducePacketName [15:33:31]name=ofd_packets/00188791 [15:33:31]NVStorageSaveData ofd_packets/00188791 [15:33:31]File name is /storage/ofd_packets/00188791 [15:33:31]Write 301 bytes [15:33:31]NVStorageSaveData done [15:33:31]OFDSenderStorePacket done [15:33:31]KKMCreateOFDPacket done [15:33:31]NVStorageSaveData kkm_last_timestamp [15:33:31]File name is /storage/kkm_last_timestamp [15:33:31]Write 4 bytes [15:33:31]NVStorageSaveData done [15:33:31]ExternCall_PrintAddStr [15:33:31]wPrintStart [15:33:31]Write to MH i2c: 01 00 00 47 0B 52 [15:33:31]OFD Sender: Processing packet 188791 [packets to send 1062, broken 1061] [15:33:31]ProducePacketName [15:33:31]name=ofd_packets/00188791 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]OFD Sender: To server: pG, [15:33:31]CommunicateWithHost lk.salyk.kg:30040 [15:33:31]ConnectInit lk.salyk.kg [15:33:31]Read from MH i2c: 01 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: 01 07 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 FF 0F 67 [15:33:31]RasterBufferAndPrint [15:33:31]line Счет N : (1)210851 [15:33:31]line ИНН: 02508201610067 [15:33:31]line Контрольно-Кассовый Чек [15:33:31]line ПРОДАЖА [15:33:31]line ТРК (МРК, ГНК) : 13 [15:33:31]line Товар: 2710124500 [15:33:31]line Аи-95-К-3 [15:33:31]line 8.090 * 74.20 [15:33:31]line = 600.28 [15:33:31]line НДС 12% НСП 1% [15:33:31]line > о реализуемом товаре [15:33:31]line ОКРУГЛЕНИЕ: -0.28 [15:33:31]line ИТОГО: 600.00 [15:33:31]line Внесено: 600.00 [15:33:31]line СДАЧА: 0.00 [15:33:31]line НСП 1% : 5.31 [15:33:31]line НДС 12% : 63.75 [15:33:31]line Наличными: 600.00 [15:33:31]line Безнал.: 0.00 [15:33:31]line Место: АЗС № 86 "Партнер Нефть" [15:33:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:33:31]line СНО: Общий режим [15:33:31]line Чек 249 23.10.2024 15:33 [15:33:31]line Смена: 462 ФФД: 1.0 [15:33:31]line ЗНМ: 0300000155 [15:33:31]line РНМ: 0000000000100030 [15:33:31]line Версия ККМ: 001 [15:33:31]line ФМ: 0000000000965340 [15:33:31]line ФД: 188791 [15:33:31]line ФПД: 90431755890727 [15:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153330&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188791&fm=90431755890727&tin=02508201610067®Number=0000000000100030&sum=60000 [15:33:31]written 0, free lines is 4095 [15:33:31]Connected sock=10 [15:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 71 40 07 01 9A A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 4A 17 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E1 02 00 35 04 06 00 52 3F 48 AF B0 27 AF 1D 53 55 F9 F3 66 CC [15:33:31]Write to MH i2c: 01 00 00 72 0B 7D [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: 01 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: 01 07 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 5A 0C EA [15:33:31]RasterBufferAndPrint [15:33:31]line [15:33:31]line [15:33:31]line [15:33:31]line [15:33:31]line [15:33:31]written 0, free lines is 3166 [15:33:31]MH_Cut [15:33:31]Write to MH i2c: D1 01 00 79 0B 01 56 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: D1 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: D1 01 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: D1 01 00 79 0B 00 55 [15:33:31]Write to MH i2c: 01 00 00 7A 0B 85 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 B6 47 00 55 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E1 02 00 F4 03 04 00 34 C1 18 67 B6 04 01 00 00 DD 31 D4 C1 96 C1 C1 E7 [15:33:31]CommunicateWithHost err = 0 [15:33:31]CheckOFDResponse [15:33:31]1017 (14) - 77093643461234 [15:33:31]1041 (16) - 0000000000965340 [15:33:31]1040 (4) - 188791 [15:33:31]1012 (4) - 23.10.2024 09:26 [15:33:31]1206 (1) - 0 [15:33:31]OFD Sender: Remove packet 188791 [15:33:31]ProducePacketName [15:33:31]name=ofd_packets/00188791 [15:33:31]NVStorageDeleteData [15:33:32]OFD Sender: No OFD packet to send [15:33:32]*** Cut start [15:33:32]*** Partial cut [15:33:32]*** CUTSNS_PIN = 1 [15:33:32]*** CUTSNS_PIN = 0 [15:33:33]*** Brake cut motor [15:33:33]Read from MH i2c: 01 [15:33:33]MH_I2C_Read... [15:33:33]*** Stop cut motor [15:33:33]*** Cut end [15:33:33]Read from MH i2c: 01 07 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [15:33:33]process_action close_receipt done [15:33:33]requested_data is exist [15:33:33]produce_requested_data [15:33:33]requested_item fm.sn is exist - process it [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 11 00 00 [15:33:33]Write to MH i2c: E2 08 00 7B 0B 80 11 00 00 00 00 00 00 00 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 17 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 17 00 7B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [15:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:33:33]wFMCommunicate OK [15:33:33]requested_item fd.num is exist - process it [15:33:33]SAM_PROTO_GetFieldsCounters [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 13 00 00 [15:33:33]Write to MH i2c: E2 08 00 7C 0B 80 13 00 00 00 00 00 00 03 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 62 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 62 00 7C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [15:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_GetFieldsCounters done [15:33:33]requested_item shift.num is exist - process it [15:33:33]requested_item shift.opened is exist - process it [15:33:33]req_shift_opened [15:33:33]FM_GetShiftState [15:33:33]SAM_PROTO_GetShiftState [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 13 01 00 [15:33:33]Write to MH i2c: E2 08 00 7D 0B 80 13 01 00 00 00 00 00 05 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0E 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0E 00 7D 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 ED [15:33:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_GetShiftState done [15:33:33]FM_GetShiftState done [15:33:33]req_shift_opened done [15:33:33]requested_item shift.open_date is exist - process it [15:33:33]req_shift_open_date [15:33:33]req_shift_open_date done [15:33:33]produce_requested_data done [15:33:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188791,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:33:33]process_action_free close_receipt [15:33:33]json_value_free [15:33:33]json_value_free done [15:33:33]process_json_proto returns [15:33:33]Send response to host [15:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188791,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:33:33]free response buf [15:33:33]execute_script done [15:33:33]execute_script returns [15:33:33]free content buf [15:33:33]Sock 7.Close socket [15:33:33]Sock 7.Thread stoped [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]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:21]accept exits with 9 [15:41:21]New connection [15:41:21]New thread 3067207012 created [15:41:21]Thread 3067350372 joined [15:41:21]Waiting for new connection... [15:41:21] Sock 9.Parse request [15:41:21]Sock 9.Check first char [15:41:21]Sock 9.First char is OK [15:41:21]request: POST /json_proto HTTP/1.0 [15:41:21]Method: POST [15:41:21]URL: /json_proto [15:41:21]Method is POST - this is cgi request [15:41:21]url: /json_proto [15:41:21]query_string will be loaded in cgi processing [15:41:21]execute_cgi json_proto POST (null) [15:41:21]execute_cgi path=json_proto method=POST [15:41:21]POST find Content-Length [15:41:21]Host: 172.17.42.131:8080 [15:41:21]Content-Length: 677 [15:41:21]Content-Type: application/json [15:41:21] [15:41:21]POST finish read [15:41:21]Found Content-Length = 677 [15:41:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:21]execute_script... [15:41:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:21]POST & json_proto [15:41:21]process_json_proto [15:41:21]json parsed OK: [15:41:21]protocol is kg_v1.0 [15:41:21]action value=close_receipt [15:41:21]process_action close_receipt [15:41:21]cmd_close_receipt [15:41:21]MH_GetDate [15:41:21]Write to MH i2c: F0 00 00 7E 0B 78 [15:41:21]Write i2c OK [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: F0 [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: F0 09 00 [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: F0 09 00 7E 0B 00 22 19 19 67 A0 18 CA 66 24 [15:41:21]GetLastDocTimeStamp 1729697610 [15:41:21]current date 1729698082 [15:41:21]FM_GetShiftState [15:41:21]SAM_PROTO_GetShiftState [15:41:21]wFMCommunicate request_size=4 [15:41:21]MH_SAM_APDU [15:41:21]CAPDU: 80 13 01 00 [15:41:21]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [15:41:21]Write i2c OK [15:41:21]MH_I2C_Read... [15:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:21]Read from MH i2c: E2 [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: E2 0E 00 [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EF [15:41:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:41:21]wFMCommunicate OK [15:41:21]SAM_PROTO_GetShiftState done [15:41:21]FM_GetShiftState done [15:41:21]opened in 1729642525 [15:41:21]opened+sec_in_day 1729728925 [15:41:21]quantity*price = 40006 [15:41:21]sum+1 = 40007 [15:41:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 250 23.10.2024 15:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188792 ФПД: 101723696823007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154122&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188792&fm=101723696823007&tin=02508201610067®Number=0000000000100030&sum=40000 [15:41:22]StoreToDocumentArchive [15:41:22]shift 462 fd 188792 [15:41:22]save to /storage/0462/doc_00188792 [15:41:22]save last doc name /storage/0462/doc_00188792 to /storage/kkm_last_doc_name [15:41:22]save OK [15:41:22]Clear old archive folders... [15:41:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:22]tlvbuf is 011613D0 [15:41:22]SAM_PROTO_ClearQueue [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 09 00 00 [15:41:22]Write to MH i2c: E2 08 00 8C 0B 80 09 00 00 00 00 00 00 09 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [15:41:22]RAPDU: 90 00 [15:41:22]wFMCommunicate OK [15:41:22]SAM_PROTO_ClearQueue done [15:41:22]KKMCreateOFDPacket [15:41:22]OFDProtocolAddRootSTLVToBuf [15:41:22]FM_MakeSignedData [15:41:22]FM_MakeSignedData [15:41:22]SAM_PROTO_SignData [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 0D 01 02 [15:41:22]Write to MH i2c: E2 08 00 8D 0B 80 0D 01 02 00 00 00 00 11 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [15:41:22]RAPDU: 90 00 [15:41:22]wFMCommunicate OK [15:41:22]wFMCommunicate request_size=255 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 22 19 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E1 02 00 35 04 06 00 5C [15:41:22]Write to MH i2c: E2 02 01 8E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 22 19 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E1 02 00 35 04 06 00 5C 00 00 8E [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [15:41:22]RAPDU: 90 00 [15:41:22]wFMCommunicate OK [15:41:22]wFMCommunicate request_size=10 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 0D 02 02 05 84 64 D0 7A DF [15:41:22]Write to MH i2c: E2 0D 00 8F 0B 80 0D 02 02 05 00 84 64 D0 7A DF 00 00 2F [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [15:41:22]RAPDU: 90 00 [15:41:22]wFMCommunicate OK [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 0D 03 02 [15:41:22]Write to MH i2c: E2 08 00 90 0B 80 0D 03 02 00 00 00 00 16 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 0B 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 0B 00 90 0B 00 BD 51 82 0B A2 DA 0F 46 90 00 83 [15:41:22]RAPDU: BD 51 82 0B A2 DA 0F 46 90 00 [15:41:22]wFMCommunicate OK [15:41:22]SAM_PROTO_SignData done [15:41:22]FM_MakeSignedData done [15:41:22]CreateOFDProtocolMessage [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 11 00 00 [15:41:22]Write to MH i2c: E2 08 00 91 0B 80 11 00 00 00 00 00 00 16 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 17 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 17 00 91 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [15:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:41:22]wFMCommunicate OK [15:41:22]CreateOFDProtocolMessage done [15:41:22]OFDSenderStorePacket 188792 [15:41:22]StoreOFDPacket docnum=188792 [15:41:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 CE 07 01 79 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 22 19 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E1 02 00 35 04 06 00 5C 84 64 D0 7A DF BD 51 82 0B A2 DA 0F 46 [15:41:22]CheckFolder [15:41:22]dirname=/storage/ofd_packets [15:41:22]CheckFolder done [15:41:22]ProducePacketName [15:41:22]name=ofd_packets/00188792 [15:41:22]NVStorageSaveData ofd_packets/00188792 [15:41:22]File name is /storage/ofd_packets/00188792 [15:41:22]Write 301 bytes [15:41:22]NVStorageSaveData done [15:41:22]OFDSenderStorePacket done [15:41:22]KKMCreateOFDPacket done [15:41:22]NVStorageSaveData kkm_last_timestamp [15:41:22]File name is /storage/kkm_last_timestamp [15:41:22]Write 4 bytes [15:41:22]NVStorageSaveData done [15:41:22]ExternCall_PrintAddStr [15:41:22]wPrintStart [15:41:22]Write to MH i2c: 01 00 00 92 0B 9D [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: 01 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: 01 07 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 FF 0F B2 [15:41:22]RasterBufferAndPrint [15:41:22]line Счет N : (1)210852 [15:41:22]line ИНН: 02508201610067 [15:41:22]line Контрольно-Кассовый Чек [15:41:22]line ПРОДАЖА [15:41:22]line ТРК (МРК, ГНК) : 32 [15:41:22]line Товар: 2710124130 [15:41:22]line Аи-92-К-3 [15:41:22]line 5.980 * 66.90 [15:41:22]line = 400.06 [15:41:22]line НДС 12% НСП 1% [15:41:22]line > о реализуемом товаре [15:41:22]line ОКРУГЛЕНИЕ: -0.06 [15:41:22]line ИТОГО: 400.00 [15:41:22]line Внесено: 400.00 [15:41:22]line СДАЧА: 0.00 [15:41:22]line НСП 1% : 3.54 [15:41:22]line НДС 12% : 42.48 [15:41:22]line Наличными: 400.00 [15:41:22]line Безнал.: 0.00 [15:41:22]line Место: АЗС № 86 "Партнер Нефть" [15:41:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:41:22]line СНО: Общий режим [15:41:22]line Чек 250 23.10.2024 15:41 [15:41:22]line Смена: 462 ФФД: 1.0 [15:41:22]line ЗНМ: 0300000155 [15:41:22]line РНМ: 0000000000100030 [15:41:22]line Версия ККМ: 001 [15:41:22]line ФМ: 0000000000965340 [15:41:22]line ФД: 188792 [15:41:22]line ФПД: 101723696823007 [15:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154122&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188792&fm=101723696823007&tin=02508201610067®Number=0000000000100030&sum=40000 [15:41:22]written 0, free lines is 4095 [15:41:22]OFD Sender: Processing packet 188792 [packets to send 1062, broken 1061] [15:41:22]ProducePacketName [15:41:22]name=ofd_packets/00188792 [15:41:22]OFD Sender: To server: pG, [15:41:22]CommunicateWithHost lk.salyk.kg:30040 [15:41:22]ConnectInit lk.salyk.kg [15:41:23]Connected sock=7 [15:41:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 CE 07 01 79 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 22 19 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E1 02 00 35 04 06 00 5C 84 64 D0 7A DF BD 51 82 0B A2 DA 0F 46 [15:41:23]Write to MH i2c: 01 00 00 BD 0B C8 [15:41:23]Write i2c OK [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: 01 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: 01 07 00 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 52 0C 2D [15:41:23]RasterBufferAndPrint [15:41:23]line [15:41:23]line [15:41:23]line [15:41:23]line [15:41:23]line [15:41:23]written 0, free lines is 3158 [15:41:23]MH_Cut [15:41:23]Write to MH i2c: D1 01 00 C4 0B 01 A1 [15:41:23]Write i2c OK [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: D1 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: D1 01 00 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: D1 01 00 C4 0B 00 A0 [15:41:23]Write to MH i2c: 01 00 00 C5 0B D0 [15:41:23]Write i2c OK [15:41:23]MH_I2C_Read... [15:41:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8B 5D 47 00 27 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E1 02 00 F4 03 04 00 0C C3 18 67 B6 04 01 00 00 25 DE 6D F3 FC A2 39 1B [15:41:23]CommunicateWithHost err = 0 [15:41:23]CheckOFDResponse [15:41:23]1017 (14) - 77093643461234 [15:41:23]1041 (16) - 0000000000965340 [15:41:23]1040 (4) - 188792 [15:41:23]1012 (4) - 23.10.2024 09:34 [15:41:23]1206 (1) - 0 [15:41:23]OFD Sender: Remove packet 188792 [15:41:23]ProducePacketName [15:41:23]name=ofd_packets/00188792 [15:41:23]NVStorageDeleteData [15:41:24]OFD Sender: No OFD packet to send [15:41:24]*** Cut start [15:41:24]*** Partial cut [15:41:24]*** CUTSNS_PIN = 1 [15:41:24]*** CUTSNS_PIN = 0 [15:41:24]*** Brake cut motor [15:41:25]Read from MH i2c: 01 [15:41:25]MH_I2C_Read... [15:41:25]*** Stop cut motor [15:41:25]*** Cut end [15:41:25]Read from MH i2c: 01 07 00 [15:41:25]MH_I2C_Read... [15:41:25]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 FF 0F E5 [15:41:25]process_action close_receipt done [15:41:25]requested_data is exist [15:41:25]produce_requested_data [15:41:25]requested_item fm.sn is exist - process it [15:41:25]wFMCommunicate request_size=4 [15:41:25]MH_SAM_APDU [15:41:25]CAPDU: 80 11 00 00 [15:41:25]Write to MH i2c: E2 08 00 C6 0B 80 11 00 00 00 00 00 00 4B [15:41:25]Write i2c OK [15:41:25]MH_I2C_Read... [15:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:25]Read from MH i2c: E2 [15:41:25]MH_I2C_Read... [15:41:25]Read from MH i2c: E2 17 00 [15:41:25]MH_I2C_Read... [15:41:25]Read from MH i2c: E2 17 00 C6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [15:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:41:25]wFMCommunicate OK [15:41:25]requested_item fd.num is exist - process it [15:41:25]SAM_PROTO_GetFieldsCounters [15:41:25]wFMCommunicate request_size=4 [15:41:25]MH_SAM_APDU [15:41:25]CAPDU: 80 13 00 00 [15:41:25]Write to MH i2c: E2 08 00 C7 0B 80 13 00 00 00 00 00 00 4E [15:41:25]Write i2c OK [15:41:25]MH_I2C_Read... [15:41:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:25]Read from MH i2c: E2 [15:41:25]MH_I2C_Read... [15:41:25]Read from MH i2c: E2 62 00 [15:41:25]MH_I2C_Read... [15:41:25]Read from MH i2c: E2 62 00 C7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [15:41:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:25]wFMCommunicate OK [15:41:25]SAM_PROTO_GetFieldsCounters done [15:41:25]requested_item shift.num is exist - process it [15:41:25]requested_item shift.opened is exist - process it [15:41:25]req_shift_opened [15:41:25]FM_GetShiftState [15:41:25]SAM_PROTO_GetShiftState [15:41:25]wFMCommunicate request_size=4 [15:41:25]MH_SAM_APDU [15:41:25]CAPDU: 80 13 01 00 [15:41:25]Write to MH i2c: E2 08 00 C8 0B 80 13 01 00 00 00 00 00 50 [15:41:25]Write i2c OK [15:41:25]MH_I2C_Read... [15:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:25]Read from MH i2c: E2 [15:41:25]MH_I2C_Read... [15:41:25]Read from MH i2c: E2 0E 00 [15:41:25]MH_I2C_Read... [15:41:25]Read from MH i2c: E2 0E 00 C8 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 38 [15:41:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:41:25]wFMCommunicate OK [15:41:25]SAM_PROTO_GetShiftState done [15:41:25]FM_GetShiftState done [15:41:25]req_shift_opened done [15:41:25]requested_item shift.open_date is exist - process it [15:41:25]req_shift_open_date [15:41:25]req_shift_open_date done [15:41:25]produce_requested_data done [15:41:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188792,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:41:25]process_action_free close_receipt [15:41:25]json_value_free [15:41:25]json_value_free done [15:41:25]process_json_proto returns [15:41:25]Send response to host [15:41:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188792,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:41:25]free response buf [15:41:25]execute_script done [15:41:25]execute_script returns [15:41:25]free content buf [15:41:25]Sock 9.Close socket [15:41:25]Sock 9.Thread stoped [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:37]accept exits with 10 [15:44:37]New connection [15:44:37]New thread 3067350372 created [15:44:37]Thread 3067207012 joined [15:44:37]Waiting for new connection... [15:44:37] Sock 10.Parse request [15:44:37]Sock 10.Check first char [15:44:37]Sock 10.First char is OK [15:44:37]request: POST /json_proto HTTP/1.0 [15:44:37]Method: POST [15:44:37]URL: /json_proto [15:44:37]Method is POST - this is cgi request [15:44:37]url: /json_proto [15:44:37]query_string will be loaded in cgi processing [15:44:37]execute_cgi json_proto POST (null) [15:44:37]execute_cgi path=json_proto method=POST [15:44:37]POST find Content-Length [15:44:37]Host: 172.17.42.131:8080 [15:44:37]Content-Length: 766 [15:44:37]Content-Type: application/json [15:44:37] [15:44:37]POST finish read [15:44:37]Found Content-Length = 766 [15:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:37]execute_script... [15:44:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:37]POST & json_proto [15:44:37]process_json_proto [15:44:37]json parsed OK: [15:44:37]protocol is kg_v1.0 [15:44:37]action value=close_receipt [15:44:37]process_action close_receipt [15:44:37]cmd_close_receipt [15:44:37]MH_GetDate [15:44:37]Write to MH i2c: F0 00 00 C9 0B C3 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 09 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 09 00 C9 0B 00 E6 19 19 67 A0 18 CA 66 33 [15:44:37]GetLastDocTimeStamp 1729698082 [15:44:37]current date 1729698278 [15:44:37]FM_GetShiftState [15:44:37]SAM_PROTO_GetShiftState [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 13 01 00 [15:44:37]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3A [15:44:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:44:37]wFMCommunicate OK [15:44:37]SAM_PROTO_GetShiftState done [15:44:37]FM_GetShiftState done [15:44:37]opened in 1729642525 [15:44:37]opened+sec_in_day 1729728925 [15:44:37]quantity*price = 40006 [15:44:37]sum+1 = 40007 [15:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 251 23.10.2024 15:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188793 ФПД: 47122682314827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154438&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188793&fm=47122682314827&tin=02508201610067®Number=0000000000100030&sum=40006 [15:44:38]StoreToDocumentArchive [15:44:38]shift 462 fd 188793 [15:44:38]save to /storage/0462/doc_00188793 [15:44:38]save last doc name /storage/0462/doc_00188793 to /storage/kkm_last_doc_name [15:44:38]save OK [15:44:38]Clear old archive folders... [15:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:38]tlvbuf is 01109040 [15:44:38]SAM_PROTO_ClearQueue [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 09 00 00 [15:44:38]Write to MH i2c: E2 08 00 D7 0B 80 09 00 00 00 00 00 00 54 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [15:44:38]RAPDU: 90 00 [15:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_ClearQueue done [15:44:38]KKMCreateOFDPacket [15:44:38]OFDProtocolAddRootSTLVToBuf [15:44:38]FM_MakeSignedData [15:44:38]FM_MakeSignedData [15:44:38]SAM_PROTO_SignData [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 0D 01 02 [15:44:38]Write to MH i2c: E2 08 00 D8 0B 80 0D 01 02 00 00 00 00 5C [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [15:44:38]RAPDU: 90 00 [15:44:38]wFMCommunicate OK [15:44:38]wFMCommunicate request_size=255 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E6 19 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E1 02 00 35 04 06 00 2A [15:44:38]Write to MH i2c: E2 02 01 D9 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E6 19 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E1 02 00 35 04 06 00 2A 00 00 79 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 03 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [15:44:39]RAPDU: 90 00 [15:44:39]wFMCommunicate OK [15:44:39]wFMCommunicate request_size=10 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 0D 02 02 05 DB 9A BD 80 4B [15:44:39]Write to MH i2c: E2 0D 00 DA 0B 80 0D 02 02 05 00 DB 9A BD 80 4B 00 00 66 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 03 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [15:44:39]RAPDU: 90 00 [15:44:39]wFMCommunicate OK [15:44:39]wFMCommunicate request_size=4 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 0D 03 02 [15:44:39]Write to MH i2c: E2 08 00 DB 0B 80 0D 03 02 00 00 00 00 61 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 0B 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 0B 00 DB 0B 00 CE F5 1B 17 8B F4 E8 84 90 00 42 [15:44:39]RAPDU: CE F5 1B 17 8B F4 E8 84 90 00 [15:44:39]wFMCommunicate OK [15:44:39]SAM_PROTO_SignData done [15:44:39]FM_MakeSignedData done [15:44:39]CreateOFDProtocolMessage [15:44:39]wFMCommunicate request_size=4 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 11 00 00 [15:44:39]Write to MH i2c: E2 08 00 DC 0B 80 11 00 00 00 00 00 00 61 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 17 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 17 00 DC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [15:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:44:39]wFMCommunicate OK [15:44:39]CreateOFDProtocolMessage done [15:44:39]OFDSenderStorePacket 188793 [15:44:39]StoreOFDPacket docnum=188793 [15:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB A0 07 01 8D A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E6 19 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E1 02 00 35 04 06 00 2A DB 9A BD 80 4B CE F5 1B 17 8B F4 E8 84 [15:44:39]CheckFolder [15:44:39]dirname=/storage/ofd_packets [15:44:39]CheckFolder done [15:44:39]ProducePacketName [15:44:39]name=ofd_packets/00188793 [15:44:39]NVStorageSaveData ofd_packets/00188793 [15:44:39]File name is /storage/ofd_packets/00188793 [15:44:39]Write 301 bytes [15:44:39]NVStorageSaveData done [15:44:39]OFDSenderStorePacket done [15:44:39]KKMCreateOFDPacket done [15:44:39]NVStorageSaveData kkm_last_timestamp [15:44:39]File name is /storage/kkm_last_timestamp [15:44:39]Write 4 bytes [15:44:39]NVStorageSaveData done [15:44:39]ExternCall_PrintAddStr [15:44:39]wPrintStart [15:44:39]Write to MH i2c: 01 00 00 DD 0B E8 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 DD 0B 00 00 00 00 00 FF 0F FD [15:44:39]RasterBufferAndPrint [15:44:39]line Счет N : (1)210853 [15:44:39]line ИНН: 02508201610067 [15:44:39]line Контрольно-Кассовый Чек [15:44:39]line ПРОДАЖА [15:44:39]line ТРК (МРК, ГНК) : 12 [15:44:39]line Товар: 2710124130 [15:44:39]line Аи-92-К-3 [15:44:39]line 5.980 * 66.90 [15:44:39]line = 400.06 [15:44:39]line НДС 12% НСП 1% [15:44:39]line > о реализуемом товаре [15:44:39]line ИТОГО: 400.06 [15:44:39]line НСП 1% : 3.54 [15:44:39]line НДС 12% : 42.48 [15:44:39]line Наличными: 0.00 [15:44:39]line Безнал.: 400.06 [15:44:39]line Место: АЗС № 86 "Партнер Нефть" [15:44:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:44:39]line СНО: Общий режим [15:44:39]line Чек 251 23.10.2024 15:44 [15:44:39]line Смена: 462 ФФД: 1.0 [15:44:39]line ЗНМ: 0300000155 [15:44:39]line РНМ: 0000000000100030 [15:44:39]line Версия ККМ: 001 [15:44:39]line Платежная система: Mbank [15:44:39]line ФМ: 0000000000965340 [15:44:39]line ФД: 188793 [15:44:39]line ФПД: 47122682314827 [15:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154438&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188793&fm=47122682314827&tin=02508201610067®Number=0000000000100030&sum=40006 [15:44:39]written 0, free lines is 4095 [15:44:39]OFD Sender: Processing packet 188793 [packets to send 1062, broken 1061] [15:44:39]ProducePacketName [15:44:39]name=ofd_packets/00188793 [15:44:39]OFD Sender: To server: pG, [15:44:39]CommunicateWithHost lk.salyk.kg:30040 [15:44:39]ConnectInit lk.salyk.kg [15:44:39]Connected sock=9 [15:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB A0 07 01 8D A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E6 19 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E1 02 00 35 04 06 00 2A DB 9A BD 80 4B CE F5 1B 17 8B F4 E8 84 [15:44:39]Write to MH i2c: 01 00 00 06 0C 12 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 06 0C 00 00 00 00 00 85 0C AA [15:44:39]RasterBufferAndPrint [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]written 0, free lines is 3210 [15:44:39]MH_Cut [15:44:39]Write to MH i2c: D1 01 00 0D 0C 01 EB [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 01 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 01 00 0D 0C 00 EA [15:44:39]Write to MH i2c: 01 00 00 0E 0C 1A [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 12 F7 47 00 7A F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E1 02 00 F4 03 04 00 D1 C3 18 67 B6 04 01 00 00 2A 27 F9 CB 5E EC 8A 7F [15:44:40]CommunicateWithHost err = 0 [15:44:40]CheckOFDResponse [15:44:40]1017 (14) - 77093643461234 [15:44:40]1041 (16) - 0000000000965340 [15:44:40]1040 (4) - 188793 [15:44:40]1012 (4) - 23.10.2024 09:37 [15:44:40]1206 (1) - 0 [15:44:40]OFD Sender: Remove packet 188793 [15:44:40]ProducePacketName [15:44:40]name=ofd_packets/00188793 [15:44:40]NVStorageDeleteData [15:44:40]OFD Sender: No OFD packet to send [15:44:41]*** Cut start [15:44:41]*** Partial cut [15:44:41]*** CUTSNS_PIN = 1 [15:44:41]*** CUTSNS_PIN = 0 [15:44:41]*** Brake cut motor [15:44:41]Read from MH i2c: 01 [15:44:41]MH_I2C_Read... [15:44:41]*** Stop cut motor [15:44:41]*** Cut end [15:44:41]Read from MH i2c: 01 07 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: 01 07 00 0E 0C 00 00 00 00 00 FF 0F 2F [15:44:41]process_action close_receipt done [15:44:41]requested_data is exist [15:44:41]produce_requested_data [15:44:41]requested_item fm.sn is exist - process it [15:44:41]wFMCommunicate request_size=4 [15:44:41]MH_SAM_APDU [15:44:41]CAPDU: 80 11 00 00 [15:44:41]Write to MH i2c: E2 08 00 0F 0C 80 11 00 00 00 00 00 00 95 [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 17 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 17 00 0F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [15:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:44:41]wFMCommunicate OK [15:44:41]requested_item fd.num is exist - process it [15:44:41]SAM_PROTO_GetFieldsCounters [15:44:41]wFMCommunicate request_size=4 [15:44:41]MH_SAM_APDU [15:44:41]CAPDU: 80 13 00 00 [15:44:41]Write to MH i2c: E2 08 00 10 0C 80 13 00 00 00 00 00 00 98 [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 62 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 62 00 10 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [15:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:41]wFMCommunicate OK [15:44:41]SAM_PROTO_GetFieldsCounters done [15:44:41]requested_item shift.num is exist - process it [15:44:41]requested_item shift.opened is exist - process it [15:44:41]req_shift_opened [15:44:41]FM_GetShiftState [15:44:41]SAM_PROTO_GetShiftState [15:44:41]wFMCommunicate request_size=4 [15:44:41]MH_SAM_APDU [15:44:41]CAPDU: 80 13 01 00 [15:44:41]Write to MH i2c: E2 08 00 11 0C 80 13 01 00 00 00 00 00 9A [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 0E 00 [15:44:41]MH_I2C_Read... [15:44:42]Read from MH i2c: E2 0E 00 11 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 82 [15:44:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:44:42]wFMCommunicate OK [15:44:42]SAM_PROTO_GetShiftState done [15:44:42]FM_GetShiftState done [15:44:42]req_shift_opened done [15:44:42]requested_item shift.open_date is exist - process it [15:44:42]req_shift_open_date [15:44:42]req_shift_open_date done [15:44:42]produce_requested_data done [15:44:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188793,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:44:42]process_action_free close_receipt [15:44:42]json_value_free [15:44:42]json_value_free done [15:44:42]process_json_proto returns [15:44:42]Send response to host [15:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188793,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:44:42]free response buf [15:44:42]execute_script done [15:44:42]execute_script returns [15:44:42]free content buf [15:44:42]Sock 10.Close socket [15:44:42]Sock 10.Thread stoped [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]accept exits with 7 [15:45:35]New connection [15:45:35]New thread 3067207012 created [15:45:35]Thread 3067350372 joined [15:45:35]Waiting for new connection... [15:45:35] Sock 7.Parse request [15:45:35]Sock 7.Check first char [15:45:35]Sock 7.First char is OK [15:45:35]request: POST /json_proto HTTP/1.0 [15:45:35]Method: POST [15:45:35]URL: /json_proto [15:45:35]Method is POST - this is cgi request [15:45:35]url: /json_proto [15:45:35]query_string will be loaded in cgi processing [15:45:35]execute_cgi json_proto POST (null) [15:45:35]execute_cgi path=json_proto method=POST [15:45:35]POST find Content-Length [15:45:35]Host: 172.17.42.131:8080 [15:45:35]Content-Length: 677 [15:45:35]Content-Type: application/json [15:45:35] [15:45:35]POST finish read [15:45:35]Found Content-Length = 677 [15:45:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:35]execute_script... [15:45:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:35]POST & json_proto [15:45:35]process_json_proto [15:45:35]json parsed OK: [15:45:35]protocol is kg_v1.0 [15:45:35]action value=close_receipt [15:45:35]process_action close_receipt [15:45:35]cmd_close_receipt [15:45:35]MH_GetDate [15:45:35]Write to MH i2c: F0 00 00 12 0C 0D [15:45:35]Write i2c OK [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: F0 [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: F0 09 00 [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: F0 09 00 12 0C 00 20 1A 19 67 A0 18 CA 66 B8 [15:45:35]GetLastDocTimeStamp 1729698278 [15:45:35]current date 1729698336 [15:45:35]FM_GetShiftState [15:45:35]SAM_PROTO_GetShiftState [15:45:35]wFMCommunicate request_size=4 [15:45:35]MH_SAM_APDU [15:45:35]CAPDU: 80 13 01 00 [15:45:35]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [15:45:35]Write i2c OK [15:45:35]MH_I2C_Read... [15:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:35]Read from MH i2c: E2 [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: E2 0E 00 [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 84 [15:45:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:45:35]wFMCommunicate OK [15:45:35]SAM_PROTO_GetShiftState done [15:45:35]FM_GetShiftState done [15:45:35]opened in 1729642525 [15:45:35]opened+sec_in_day 1729728925 [15:45:35]quantity*price = 60009 [15:45:35]sum+1 = 60010 [15:45:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 252 23.10.2024 15:45 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188794 ФПД: 91338835815737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188794&fm=91338835815737&tin=02508201610067®Number=0000000000100030&sum=60000 [15:45:36]StoreToDocumentArchive [15:45:36]shift 462 fd 188794 [15:45:36]save to /storage/0462/doc_00188794 [15:45:36]save last doc name /storage/0462/doc_00188794 to /storage/kkm_last_doc_name [15:45:36]save OK [15:45:36]Clear old archive folders... [15:45:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:36]tlvbuf is 011557C0 [15:45:36]SAM_PROTO_ClearQueue [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 09 00 00 [15:45:36]Write to MH i2c: E2 08 00 20 0C 80 09 00 00 00 00 00 00 9E [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]SAM_PROTO_ClearQueue done [15:45:36]KKMCreateOFDPacket [15:45:36]OFDProtocolAddRootSTLVToBuf [15:45:36]FM_MakeSignedData [15:45:36]FM_MakeSignedData [15:45:36]SAM_PROTO_SignData [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 01 02 [15:45:36]Write to MH i2c: E2 08 00 21 0C 80 0D 01 02 00 00 00 00 A6 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 21 0C 00 90 00 A1 [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]wFMCommunicate request_size=255 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 20 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E1 02 00 35 04 06 00 53 [15:45:36]Write to MH i2c: E2 02 01 22 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 20 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E1 02 00 35 04 06 00 53 00 00 2B [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]wFMCommunicate request_size=10 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 02 02 05 12 7A DC ED 39 [15:45:36]Write to MH i2c: E2 0D 00 23 0C 80 0D 02 02 05 00 12 7A DC ED 39 00 00 41 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 03 02 [15:45:36]Write to MH i2c: E2 08 00 24 0C 80 0D 03 02 00 00 00 00 AB [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 0B 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 0B 00 24 0C 00 6B C6 3F 3B E2 79 CB 7B 90 00 F8 [15:45:37]RAPDU: 6B C6 3F 3B E2 79 CB 7B 90 00 [15:45:37]wFMCommunicate OK [15:45:37]SAM_PROTO_SignData done [15:45:37]FM_MakeSignedData done [15:45:37]CreateOFDProtocolMessage [15:45:37]wFMCommunicate request_size=4 [15:45:37]MH_SAM_APDU [15:45:37]CAPDU: 80 11 00 00 [15:45:37]Write to MH i2c: E2 08 00 25 0C 80 11 00 00 00 00 00 00 AB [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 17 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 17 00 25 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [15:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:45:37]wFMCommunicate OK [15:45:37]CreateOFDProtocolMessage done [15:45:37]OFDSenderStorePacket 188794 [15:45:37]StoreOFDPacket docnum=188794 [15:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D 64 07 01 2C 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 20 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E1 02 00 35 04 06 00 53 12 7A DC ED 39 6B C6 3F 3B E2 79 CB 7B [15:45:37]CheckFolder [15:45:37]dirname=/storage/ofd_packets [15:45:37]CheckFolder done [15:45:37]ProducePacketName [15:45:37]name=ofd_packets/00188794 [15:45:37]NVStorageSaveData ofd_packets/00188794 [15:45:37]File name is /storage/ofd_packets/00188794 [15:45:37]Write 301 bytes [15:45:37]NVStorageSaveData done [15:45:37]OFDSenderStorePacket done [15:45:37]KKMCreateOFDPacket done [15:45:37]NVStorageSaveData kkm_last_timestamp [15:45:37]File name is /storage/kkm_last_timestamp [15:45:37]Write 4 bytes [15:45:37]NVStorageSaveData done [15:45:37]ExternCall_PrintAddStr [15:45:37]wPrintStart [15:45:37]Write to MH i2c: 01 00 00 26 0C 32 [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 26 0C 00 00 00 00 00 FF 0F 47 [15:45:37]RasterBufferAndPrint [15:45:37]line Счет N : (1)210854 [15:45:37]line ИНН: 02508201610067 [15:45:37]line Контрольно-Кассовый Чек [15:45:37]line ПРОДАЖА [15:45:37]line ТРК (МРК, ГНК) : 22 [15:45:37]line Товар: 2710124130 [15:45:37]line Аи-92-К-3 [15:45:37]line 8.970 * 66.90 [15:45:37]line = 600.09 [15:45:37]line НДС 12% НСП 1% [15:45:37]line > о реализуемом товаре [15:45:37]line ОКРУГЛЕНИЕ: -0.09 [15:45:37]line ИТОГО: 600.00 [15:45:37]line Внесено: 600.00 [15:45:37]line СДАЧА: 0.00 [15:45:37]line НСП 1% : 5.31 [15:45:37]line НДС 12% : 63.73 [15:45:37]line Наличными: 600.00 [15:45:37]line Безнал.: 0.00 [15:45:37]line Место: АЗС № 86 "Партнер Нефть" [15:45:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:45:37]line СНО: Общий режим [15:45:37]line Чек 252 23.10.2024 15:45 [15:45:37]line Смена: 462 ФФД: 1.0 [15:45:37]line ЗНМ: 0300000155 [15:45:37]line РНМ: 0000000000100030 [15:45:37]line Версия ККМ: 001 [15:45:37]line ФМ: 0000000000965340 [15:45:37]line ФД: 188794 [15:45:37]line ФПД: 91338835815737 [15:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188794&fm=91338835815737&tin=02508201610067®Number=0000000000100030&sum=60000 [15:45:37]written 0, free lines is 4095 [15:45:37]OFD Sender: Processing packet 188794 [packets to send 1062, broken 1061] [15:45:37]ProducePacketName [15:45:37]name=ofd_packets/00188794 [15:45:37]OFD Sender: To server: pG, [15:45:37]CommunicateWithHost lk.salyk.kg:30040 [15:45:37]ConnectInit lk.salyk.kg [15:45:37]Connected sock=10 [15:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D 64 07 01 2C 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 20 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E1 02 00 35 04 06 00 53 12 7A DC ED 39 6B C6 3F 3B E2 79 CB 7B [15:45:37]Write to MH i2c: 01 00 00 51 0C 5D [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 51 0C 00 00 00 00 00 5A 0C CA [15:45:37]RasterBufferAndPrint [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]written 0, free lines is 3166 [15:45:37]MH_Cut [15:45:37]Write to MH i2c: D1 01 00 58 0C 01 36 [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 01 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 01 00 58 0C 00 35 [15:45:37]Write to MH i2c: 01 00 00 59 0C 65 [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 88 FB 47 00 66 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E1 02 00 F4 03 04 00 0A C4 18 67 B6 04 01 00 00 1C 87 6C 60 0D BF D5 8A [15:45:37]CommunicateWithHost err = 0 [15:45:37]CheckOFDResponse [15:45:37]1017 (14) - 77093643461234 [15:45:37]1041 (16) - 0000000000965340 [15:45:37]1040 (4) - 188794 [15:45:37]1012 (4) - 23.10.2024 09:38 [15:45:37]1206 (1) - 0 [15:45:37]OFD Sender: Remove packet 188794 [15:45:37]ProducePacketName [15:45:37]name=ofd_packets/00188794 [15:45:37]NVStorageDeleteData [15:45:38]OFD Sender: No OFD packet to send [15:45:38]*** Cut start [15:45:38]*** Partial cut [15:45:38]*** CUTSNS_PIN = 1 [15:45:38]*** CUTSNS_PIN = 0 [15:45:39]*** Brake cut motor [15:45:39]Read from MH i2c: 01 [15:45:39]MH_I2C_Read... [15:45:39]*** Stop cut motor [15:45:39]*** Cut end [15:45:39]Read from MH i2c: 01 07 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: 01 07 00 59 0C 00 00 00 00 00 FF 0F 7A [15:45:39]process_action close_receipt done [15:45:39]requested_data is exist [15:45:39]produce_requested_data [15:45:39]requested_item fm.sn is exist - process it [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 11 00 00 [15:45:39]Write to MH i2c: E2 08 00 5A 0C 80 11 00 00 00 00 00 00 E0 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 17 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 17 00 5A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [15:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:45:39]wFMCommunicate OK [15:45:39]requested_item fd.num is exist - process it [15:45:39]SAM_PROTO_GetFieldsCounters [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 13 00 00 [15:45:39]Write to MH i2c: E2 08 00 5B 0C 80 13 00 00 00 00 00 00 E3 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 62 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 62 00 5B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [15:45:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:39]wFMCommunicate OK [15:45:39]SAM_PROTO_GetFieldsCounters done [15:45:39]requested_item shift.num is exist - process it [15:45:39]requested_item shift.opened is exist - process it [15:45:39]req_shift_opened [15:45:39]FM_GetShiftState [15:45:39]SAM_PROTO_GetShiftState [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 13 01 00 [15:45:39]Write to MH i2c: E2 08 00 5C 0C 80 13 01 00 00 00 00 00 E5 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 0E 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 0E 00 5C 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CD [15:45:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:45:39]wFMCommunicate OK [15:45:39]SAM_PROTO_GetShiftState done [15:45:39]FM_GetShiftState done [15:45:39]req_shift_opened done [15:45:39]requested_item shift.open_date is exist - process it [15:45:39]req_shift_open_date [15:45:39]req_shift_open_date done [15:45:39]produce_requested_data done [15:45:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188794,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:45:39]process_action_free close_receipt [15:45:39]json_value_free [15:45:39]json_value_free done [15:45:39]process_json_proto returns [15:45:39]Send response to host [15:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188794,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:45:39]free response buf [15:45:39]execute_script done [15:45:39]execute_script returns [15:45:39]free content buf [15:45:39]Sock 7.Close socket [15:45:39]Sock 7.Thread stoped [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:49]accept exits with 9 [15:45:49]New connection [15:45:49]New thread 3067350372 created [15:45:49]Thread 3067207012 joined [15:45:49]Waiting for new connection... [15:45:49] Sock 9.Parse request [15:45:49]Sock 9.Check first char [15:45:49]Sock 9.First char is OK [15:45:49]request: POST /json_proto HTTP/1.0 [15:45:49]Method: POST [15:45:49]URL: /json_proto [15:45:49]Method is POST - this is cgi request [15:45:49]url: /json_proto [15:45:49]query_string will be loaded in cgi processing [15:45:49]execute_cgi json_proto POST (null) [15:45:49]execute_cgi path=json_proto method=POST [15:45:49]POST find Content-Length [15:45:49]Host: 172.17.42.131:8080 [15:45:49]Content-Length: 766 [15:45:49]Content-Type: application/json [15:45:49] [15:45:49]POST finish read [15:45:49]Found Content-Length = 766 [15:45:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:49]execute_script... [15:45:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:49]POST & json_proto [15:45:49]process_json_proto [15:45:49]json parsed OK: [15:45:49]protocol is kg_v1.0 [15:45:49]action value=close_receipt [15:45:49]process_action close_receipt [15:45:49]cmd_close_receipt [15:45:49]MH_GetDate [15:45:49]Write to MH i2c: F0 00 00 5D 0C 58 [15:45:49]Write i2c OK [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: F0 [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: F0 09 00 [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: F0 09 00 5D 0C 00 2E 1A 19 67 A0 18 CA 66 11 [15:45:49]GetLastDocTimeStamp 1729698336 [15:45:49]current date 1729698350 [15:45:49]FM_GetShiftState [15:45:49]SAM_PROTO_GetShiftState [15:45:49]wFMCommunicate request_size=4 [15:45:49]MH_SAM_APDU [15:45:49]CAPDU: 80 13 01 00 [15:45:49]Write to MH i2c: E2 08 00 5E 0C 80 13 01 00 00 00 00 00 E7 [15:45:49]Write i2c OK [15:45:49]MH_I2C_Read... [15:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:49]Read from MH i2c: E2 [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: E2 0E 00 [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: E2 0E 00 5E 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CF [15:45:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:45:49]wFMCommunicate OK [15:45:49]SAM_PROTO_GetShiftState done [15:45:49]FM_GetShiftState done [15:45:49]opened in 1729642525 [15:45:49]opened+sec_in_day 1729728925 [15:45:49]quantity*price = 50041 [15:45:49]sum+1 = 50042 [15:45:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 253 23.10.2024 15:45 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188795 ФПД: 126087375344564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154550&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188795&fm=126087375344564&tin=02508201610067®Number=0000000000100030&sum=50041 [15:45:51]StoreToDocumentArchive [15:45:51]shift 462 fd 188795 [15:45:51]save to /storage/0462/doc_00188795 [15:45:51]save last doc name /storage/0462/doc_00188795 to /storage/kkm_last_doc_name [15:45:51]save OK [15:45:51]Clear old archive folders... [15:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:51]tlvbuf is 01161430 [15:45:51]SAM_PROTO_ClearQueue [15:45:51]wFMCommunicate request_size=4 [15:45:51]MH_SAM_APDU [15:45:51]CAPDU: 80 09 00 00 [15:45:51]Write to MH i2c: E2 08 00 6B 0C 80 09 00 00 00 00 00 00 E9 [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:51]Read from MH i2c: E2 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 03 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 03 00 6B 0C 00 90 00 EB [15:45:51]RAPDU: 90 00 [15:45:51]wFMCommunicate OK [15:45:51]SAM_PROTO_ClearQueue done [15:45:51]KKMCreateOFDPacket [15:45:51]OFDProtocolAddRootSTLVToBuf [15:45:51]FM_MakeSignedData [15:45:51]FM_MakeSignedData [15:45:51]SAM_PROTO_SignData [15:45:51]wFMCommunicate request_size=4 [15:45:51]MH_SAM_APDU [15:45:51]CAPDU: 80 0D 01 02 [15:45:51]Write to MH i2c: E2 08 00 6C 0C 80 0D 01 02 00 00 00 00 F1 [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:51]Read from MH i2c: E2 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 03 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [15:45:51]RAPDU: 90 00 [15:45:51]wFMCommunicate OK [15:45:51]wFMCommunicate request_size=255 [15:45:51]MH_SAM_APDU [15:45:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 2E 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E1 02 00 35 04 06 00 72 [15:45:51]Write to MH i2c: E2 02 01 6D 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 2E 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E1 02 00 35 04 06 00 72 00 00 1A [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:51]Read from MH i2c: E2 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 03 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [15:45:51]RAPDU: 90 00 [15:45:51]wFMCommunicate OK [15:45:51]wFMCommunicate request_size=10 [15:45:51]MH_SAM_APDU [15:45:51]CAPDU: 80 0D 02 02 05 AD 01 37 D3 B4 [15:45:51]Write to MH i2c: E2 0D 00 6E 0C 80 0D 02 02 05 00 AD 01 37 D3 B4 00 00 6A [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:51]Read from MH i2c: E2 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 03 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [15:45:51]RAPDU: 90 00 [15:45:51]wFMCommunicate OK [15:45:51]wFMCommunicate request_size=4 [15:45:51]MH_SAM_APDU [15:45:51]CAPDU: 80 0D 03 02 [15:45:51]Write to MH i2c: E2 08 00 6F 0C 80 0D 03 02 00 00 00 00 F6 [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:51]Read from MH i2c: E2 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 0B 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 0B 00 6F 0C 00 62 E8 FE 00 43 92 5F 12 90 00 85 [15:45:51]RAPDU: 62 E8 FE 00 43 92 5F 12 90 00 [15:45:51]wFMCommunicate OK [15:45:51]SAM_PROTO_SignData done [15:45:51]FM_MakeSignedData done [15:45:51]CreateOFDProtocolMessage [15:45:51]wFMCommunicate request_size=4 [15:45:51]MH_SAM_APDU [15:45:51]CAPDU: 80 11 00 00 [15:45:51]Write to MH i2c: E2 08 00 70 0C 80 11 00 00 00 00 00 00 F6 [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:51]Read from MH i2c: E2 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 17 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 17 00 70 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 44 [15:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:45:51]wFMCommunicate OK [15:45:51]CreateOFDProtocolMessage done [15:45:51]OFDSenderStorePacket 188795 [15:45:51]StoreOFDPacket docnum=188795 [15:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 B3 07 01 83 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 2E 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E1 02 00 35 04 06 00 72 AD 01 37 D3 B4 62 E8 FE 00 43 92 5F 12 [15:45:51]CheckFolder [15:45:51]dirname=/storage/ofd_packets [15:45:51]CheckFolder done [15:45:51]ProducePacketName [15:45:51]name=ofd_packets/00188795 [15:45:51]NVStorageSaveData ofd_packets/00188795 [15:45:51]File name is /storage/ofd_packets/00188795 [15:45:51]Write 301 bytes [15:45:51]NVStorageSaveData done [15:45:51]OFDSenderStorePacket done [15:45:51]KKMCreateOFDPacket done [15:45:51]NVStorageSaveData kkm_last_timestamp [15:45:51]File name is /storage/kkm_last_timestamp [15:45:51]Write 4 bytes [15:45:51]NVStorageSaveData done [15:45:51]ExternCall_PrintAddStr [15:45:51]wPrintStart [15:45:51]Write to MH i2c: 01 00 00 71 0C 7D [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 07 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 07 00 71 0C 00 00 00 00 00 FF 0F 92 [15:45:51]RasterBufferAndPrint [15:45:51]line Счет N : (1)210855 [15:45:51]line ИНН: 02508201610067 [15:45:51]line Контрольно-Кассовый Чек [15:45:51]line ПРОДАЖА [15:45:51]line ТРК (МРК, ГНК) : 32 [15:45:51]line Товар: 2710124130 [15:45:51]line Аи-92-К-3 [15:45:51]line 7.480 * 66.90 [15:45:51]line = 500.41 [15:45:51]line НДС 12% НСП 1% [15:45:51]line > о реализуемом товаре [15:45:51]line ИТОГО: 500.41 [15:45:51]line НСП 1% : 4.43 [15:45:51]line НДС 12% : 53.14 [15:45:51]line Наличными: 0.00 [15:45:51]line Безнал.: 500.41 [15:45:51]line Место: АЗС № 86 "Партнер Нефть" [15:45:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:45:51]line СНО: Общий режим [15:45:51]line Чек 253 23.10.2024 15:45 [15:45:51]line Смена: 462 ФФД: 1.0 [15:45:51]line ЗНМ: 0300000155 [15:45:51]line РНМ: 0000000000100030 [15:45:51]line Версия ККМ: 001 [15:45:51]line Платежная система: Mbank [15:45:51]line ФМ: 0000000000965340 [15:45:51]line ФД: 188795 [15:45:51]line ФПД: 126087375344564 [15:45:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154550&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188795&fm=126087375344564&tin=02508201610067®Number=0000000000100030&sum=50041 [15:45:51]written 0, free lines is 4095 [15:45:51]OFD Sender: Processing packet 188795 [packets to send 1062, broken 1061] [15:45:51]ProducePacketName [15:45:51]name=ofd_packets/00188795 [15:45:51]OFD Sender: To server: pG, [15:45:51]CommunicateWithHost lk.salyk.kg:30040 [15:45:51]ConnectInit lk.salyk.kg [15:45:51]Connected sock=10 [15:45:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 B3 07 01 83 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 2E 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E1 02 00 35 04 06 00 72 AD 01 37 D3 B4 62 E8 FE 00 43 92 5F 12 [15:45:52]Write to MH i2c: 01 00 00 9A 0C A6 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 07 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 88 0C 41 [15:45:52]RasterBufferAndPrint [15:45:52]line [15:45:52]line [15:45:52]line [15:45:52]line [15:45:52]line [15:45:52]written 0, free lines is 3212 [15:45:52]MH_Cut [15:45:52]Write to MH i2c: D1 01 00 A1 0C 01 7F [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: D1 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: D1 01 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: D1 01 00 A1 0C 00 7E [15:45:52]Write to MH i2c: 01 00 00 A2 0C AE [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8A 53 47 00 BE 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 36 35 33 34 30 10 04 04 00 7B E1 02 00 F4 03 04 00 19 C4 18 67 B6 04 01 00 00 DF D2 34 FC 0B C7 5D 83 [15:45:52]CommunicateWithHost err = 0 [15:45:52]CheckOFDResponse [15:45:52]1017 (14) - 77093643461234 [15:45:52]1041 (16) - 0000000000965340 [15:45:52]1040 (4) - 188795 [15:45:52]1012 (4) - 23.10.2024 09:38 [15:45:52]1206 (1) - 0 [15:45:52]OFD Sender: Remove packet 188795 [15:45:52]ProducePacketName [15:45:52]name=ofd_packets/00188795 [15:45:52]NVStorageDeleteData [15:45:52]OFD Sender: No OFD packet to send [15:45:53]*** Cut start [15:45:53]*** Partial cut [15:45:53]*** CUTSNS_PIN = 1 [15:45:53]*** CUTSNS_PIN = 0 [15:45:53]*** Brake cut motor [15:45:53]Read from MH i2c: 01 [15:45:53]MH_I2C_Read... [15:45:53]*** Stop cut motor [15:45:53]*** Cut end [15:45:53]Read from MH i2c: 01 07 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: 01 07 00 A2 0C 00 00 00 00 00 FF 0F C3 [15:45:53]process_action close_receipt done [15:45:53]requested_data is exist [15:45:53]produce_requested_data [15:45:53]requested_item fm.sn is exist - process it [15:45:53]wFMCommunicate request_size=4 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 11 00 00 [15:45:53]Write to MH i2c: E2 08 00 A3 0C 80 11 00 00 00 00 00 00 29 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 17 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 17 00 A3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [15:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:45:54]wFMCommunicate OK [15:45:54]requested_item fd.num is exist - process it [15:45:54]SAM_PROTO_GetFieldsCounters [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 13 00 00 [15:45:54]Write to MH i2c: E2 08 00 A4 0C 80 13 00 00 00 00 00 00 2C [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 62 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 62 00 A4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:54]wFMCommunicate OK [15:45:54]SAM_PROTO_GetFieldsCounters done [15:45:54]requested_item shift.num is exist - process it [15:45:54]requested_item shift.opened is exist - process it [15:45:54]req_shift_opened [15:45:54]FM_GetShiftState [15:45:54]SAM_PROTO_GetShiftState [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 13 01 00 [15:45:54]Write to MH i2c: E2 08 00 A5 0C 80 13 01 00 00 00 00 00 2E [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 0E 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 0E 00 A5 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 16 [15:45:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:45:54]wFMCommunicate OK [15:45:54]SAM_PROTO_GetShiftState done [15:45:54]FM_GetShiftState done [15:45:54]req_shift_opened done [15:45:54]requested_item shift.open_date is exist - process it [15:45:54]req_shift_open_date [15:45:54]req_shift_open_date done [15:45:54]produce_requested_data done [15:45:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188795,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:45:54]process_action_free close_receipt [15:45:54]json_value_free [15:45:54]json_value_free done [15:45:54]process_json_proto returns [15:45:54]Send response to host [15:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188795,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:45:54]free response buf [15:45:54]execute_script done [15:45:54]execute_script returns [15:45:54]free content buf [15:45:54]Sock 9.Close socket [15:45:54]Sock 9.Thread stoped [15:45:57]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:42]accept exits with 7 [15:47:42]New connection [15:47:42]New thread 3067207012 created [15:47:42]Thread 3067350372 joined [15:47:42]Waiting for new connection... [15:47:42] Sock 7.Parse request [15:47:42]Sock 7.Check first char [15:47:42]Sock 7.First char is OK [15:47:42]request: POST /json_proto HTTP/1.0 [15:47:42]Method: POST [15:47:42]URL: /json_proto [15:47:42]Method is POST - this is cgi request [15:47:42]url: /json_proto [15:47:42]query_string will be loaded in cgi processing [15:47:42]execute_cgi json_proto POST (null) [15:47:42]execute_cgi path=json_proto method=POST [15:47:42]POST find Content-Length [15:47:42]Host: 172.17.42.131:8080 [15:47:42]Content-Length: 677 [15:47:42]Content-Type: application/json [15:47:42] [15:47:42]POST finish read [15:47:42]Found Content-Length = 677 [15:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:42]execute_script... [15:47:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:42]POST & json_proto [15:47:42]process_json_proto [15:47:42]json parsed OK: [15:47:42]protocol is kg_v1.0 [15:47:42]action value=close_receipt [15:47:42]process_action close_receipt [15:47:42]cmd_close_receipt [15:47:42]MH_GetDate [15:47:42]Write to MH i2c: F0 00 00 A6 0C A1 [15:47:42]Write i2c OK [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: F0 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: F0 09 00 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: F0 09 00 A6 0C 00 9F 1A 19 67 A0 18 CA 66 CB [15:47:42]GetLastDocTimeStamp 1729698350 [15:47:42]current date 1729698463 [15:47:42]FM_GetShiftState [15:47:42]SAM_PROTO_GetShiftState [15:47:42]wFMCommunicate request_size=4 [15:47:42]MH_SAM_APDU [15:47:42]CAPDU: 80 13 01 00 [15:47:42]Write to MH i2c: E2 08 00 A7 0C 80 13 01 00 00 00 00 00 30 [15:47:42]Write i2c OK [15:47:42]MH_I2C_Read... [15:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:42]Read from MH i2c: E2 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 0E 00 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 0E 00 A7 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 18 [15:47:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:47:42]wFMCommunicate OK [15:47:42]SAM_PROTO_GetShiftState done [15:47:42]FM_GetShiftState done [15:47:42]opened in 1729642525 [15:47:42]opened+sec_in_day 1729728925 [15:47:42]quantity*price = 30038 [15:47:42]sum+1 = 30039 [15:47:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 254 23.10.2024 15:47 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188796 ФПД: 91512115329642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154743&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188796&fm=91512115329642&tin=02508201610067®Number=0000000000100030&sum=30000 [15:47:43]StoreToDocumentArchive [15:47:43]shift 462 fd 188796 [15:47:43]save to /storage/0462/doc_00188796 [15:47:43]save last doc name /storage/0462/doc_00188796 to /storage/kkm_last_doc_name [15:47:43]save OK [15:47:43]Clear old archive folders... [15:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:43]tlvbuf is 011210A0 [15:47:43]SAM_PROTO_ClearQueue [15:47:43]wFMCommunicate request_size=4 [15:47:43]MH_SAM_APDU [15:47:43]CAPDU: 80 09 00 00 [15:47:43]Write to MH i2c: E2 08 00 B4 0C 80 09 00 00 00 00 00 00 32 [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 03 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 03 00 B4 0C 00 90 00 34 [15:47:43]RAPDU: 90 00 [15:47:43]wFMCommunicate OK [15:47:43]SAM_PROTO_ClearQueue done [15:47:43]KKMCreateOFDPacket [15:47:43]OFDProtocolAddRootSTLVToBuf [15:47:43]FM_MakeSignedData [15:47:43]FM_MakeSignedData [15:47:43]SAM_PROTO_SignData [15:47:43]wFMCommunicate request_size=4 [15:47:43]MH_SAM_APDU [15:47:43]CAPDU: 80 0D 01 02 [15:47:43]Write to MH i2c: E2 08 00 B5 0C 80 0D 01 02 00 00 00 00 3A [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]OFD Sender: No OFD packet to send [15:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 03 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 03 00 B5 0C 00 90 00 35 [15:47:43]RAPDU: 90 00 [15:47:43]wFMCommunicate OK [15:47:43]wFMCommunicate request_size=255 [15:47:43]MH_SAM_APDU [15:47:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9F 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E1 02 00 35 04 06 00 53 [15:47:43]Write to MH i2c: E2 02 01 B6 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9F 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E1 02 00 35 04 06 00 53 00 00 59 [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 03 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 03 00 B6 0C 00 90 00 36 [15:47:43]RAPDU: 90 00 [15:47:43]wFMCommunicate OK [15:47:43]wFMCommunicate request_size=10 [15:47:43]MH_SAM_APDU [15:47:43]CAPDU: 80 0D 02 02 05 3A D3 20 7A 6A [15:47:43]Write to MH i2c: E2 0D 00 B7 0C 80 0D 02 02 05 00 3A D3 20 7A 6A 00 00 58 [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 03 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [15:47:43]RAPDU: 90 00 [15:47:43]wFMCommunicate OK [15:47:43]wFMCommunicate request_size=4 [15:47:43]MH_SAM_APDU [15:47:43]CAPDU: 80 0D 03 02 [15:47:43]Write to MH i2c: E2 08 00 B8 0C 80 0D 03 02 00 00 00 00 3F [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 0B 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 0B 00 B8 0C 00 2D 00 73 B0 50 21 BC 20 90 00 DD [15:47:43]RAPDU: 2D 00 73 B0 50 21 BC 20 90 00 [15:47:43]wFMCommunicate OK [15:47:43]SAM_PROTO_SignData done [15:47:43]FM_MakeSignedData done [15:47:43]CreateOFDProtocolMessage [15:47:43]wFMCommunicate request_size=4 [15:47:43]MH_SAM_APDU [15:47:43]CAPDU: 80 11 00 00 [15:47:43]Write to MH i2c: E2 08 00 B9 0C 80 11 00 00 00 00 00 00 3F [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 17 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 17 00 B9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [15:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:47:43]wFMCommunicate OK [15:47:43]CreateOFDProtocolMessage done [15:47:43]OFDSenderStorePacket 188796 [15:47:43]StoreOFDPacket docnum=188796 [15:47:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 52 07 01 80 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9F 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E1 02 00 35 04 06 00 53 3A D3 20 7A 6A 2D 00 73 B0 50 21 BC 20 [15:47:43]CheckFolder [15:47:43]dirname=/storage/ofd_packets [15:47:43]CheckFolder done [15:47:43]ProducePacketName [15:47:43]name=ofd_packets/00188796 [15:47:43]NVStorageSaveData ofd_packets/00188796 [15:47:43]File name is /storage/ofd_packets/00188796 [15:47:43]Write 301 bytes [15:47:43]NVStorageSaveData done [15:47:43]OFDSenderStorePacket done [15:47:43]KKMCreateOFDPacket done [15:47:43]NVStorageSaveData kkm_last_timestamp [15:47:43]File name is /storage/kkm_last_timestamp [15:47:43]Write 4 bytes [15:47:43]NVStorageSaveData done [15:47:43]ExternCall_PrintAddStr [15:47:43]wPrintStart [15:47:43]Write to MH i2c: 01 00 00 BA 0C C6 [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: 01 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: 01 07 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: 01 07 00 BA 0C 00 00 00 00 00 FF 0F DB [15:47:43]RasterBufferAndPrint [15:47:43]line Счет N : (1)210856 [15:47:43]line ИНН: 02508201610067 [15:47:43]line Контрольно-Кассовый Чек [15:47:43]line ПРОДАЖА [15:47:43]line ТРК (МРК, ГНК) : 42 [15:47:43]line Товар: 2710124130 [15:47:43]line Аи-92-К-3 [15:47:43]line 4.490 * 66.90 [15:47:43]line = 300.38 [15:47:43]line НДС 12% НСП 1% [15:47:43]line > о реализуемом товаре [15:47:43]line ОКРУГЛЕНИЕ: -0.38 [15:47:43]line ИТОГО: 300.00 [15:47:43]line Внесено: 300.00 [15:47:43]line СДАЧА: 0.00 [15:47:43]line НСП 1% : 2.66 [15:47:43]line НДС 12% : 31.90 [15:47:43]line Наличными: 300.00 [15:47:43]line Безнал.: 0.00 [15:47:43]line Место: АЗС № 86 "Партнер Нефть" [15:47:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:47:43]line СНО: Общий режим [15:47:43]line Чек 254 23.10.2024 15:47 [15:47:43]line Смена: 462 ФФД: 1.0 [15:47:43]line ЗНМ: 0300000155 [15:47:43]line РНМ: 0000000000100030 [15:47:43]line Версия ККМ: 001 [15:47:43]line ФМ: 0000000000965340 [15:47:43]line ФД: 188796 [15:47:43]line ФПД: 91512115329642 [15:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154743&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188796&fm=91512115329642&tin=02508201610067®Number=0000000000100030&sum=30000 [15:47:43]written 0, free lines is 4095 [15:47:44]OFD Sender: Processing packet 188796 [packets to send 1062, broken 1061] [15:47:44]ProducePacketName [15:47:44]name=ofd_packets/00188796 [15:47:44]OFD Sender: To server: pG, [15:47:44]CommunicateWithHost lk.salyk.kg:30040 [15:47:44]ConnectInit lk.salyk.kg [15:47:44]Connected sock=10 [15:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 52 07 01 80 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9F 1A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E1 02 00 35 04 06 00 53 3A D3 20 7A 6A 2D 00 73 B0 50 21 BC 20 [15:47:44]Write to MH i2c: 01 00 00 E5 0C F1 [15:47:44]Write i2c OK [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: 01 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: 01 07 00 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: 01 07 00 E5 0C 00 00 00 00 00 5B 0C 5F [15:47:44]RasterBufferAndPrint [15:47:44]line [15:47:44]line [15:47:44]line [15:47:44]line [15:47:44]line [15:47:44]written 0, free lines is 3167 [15:47:44]MH_Cut [15:47:44]Write to MH i2c: D1 01 00 EC 0C 01 CA [15:47:44]Write i2c OK [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: D1 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: D1 01 00 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: D1 01 00 EC 0C 00 C9 [15:47:44]Write to MH i2c: 01 00 00 ED 0C F9 [15:47:44]Write i2c OK [15:47:44]MH_I2C_Read... [15:47:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 16 4D 47 00 69 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 7C E1 02 00 F4 03 04 00 89 C4 18 67 B6 04 01 00 00 D8 58 4A BB 23 60 76 81 [15:47:44]CommunicateWithHost err = 0 [15:47:44]CheckOFDResponse [15:47:44]1017 (14) - 77093643461234 [15:47:44]1041 (16) - 0000000000965340 [15:47:44]1040 (4) - 188796 [15:47:44]1012 (4) - 23.10.2024 09:40 [15:47:44]1206 (1) - 0 [15:47:44]OFD Sender: Remove packet 188796 [15:47:44]ProducePacketName [15:47:44]name=ofd_packets/00188796 [15:47:44]NVStorageDeleteData [15:47:45]OFD Sender: No OFD packet to send [15:47:45]*** Cut start [15:47:45]*** Partial cut [15:47:45]*** CUTSNS_PIN = 1 [15:47:45]*** CUTSNS_PIN = 0 [15:47:45]*** Brake cut motor [15:47:46]Read from MH i2c: 01 [15:47:46]MH_I2C_Read... [15:47:46]*** Stop cut motor [15:47:46]*** Cut end [15:47:46]Read from MH i2c: 01 07 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 FF 0F 0E [15:47:46]process_action close_receipt done [15:47:46]requested_data is exist [15:47:46]produce_requested_data [15:47:46]requested_item fm.sn is exist - process it [15:47:46]wFMCommunicate request_size=4 [15:47:46]MH_SAM_APDU [15:47:46]CAPDU: 80 11 00 00 [15:47:46]Write to MH i2c: E2 08 00 EE 0C 80 11 00 00 00 00 00 00 74 [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:46]Read from MH i2c: E2 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 17 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 17 00 EE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [15:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:47:46]wFMCommunicate OK [15:47:46]requested_item fd.num is exist - process it [15:47:46]SAM_PROTO_GetFieldsCounters [15:47:46]wFMCommunicate request_size=4 [15:47:46]MH_SAM_APDU [15:47:46]CAPDU: 80 13 00 00 [15:47:46]Write to MH i2c: E2 08 00 EF 0C 80 13 00 00 00 00 00 00 77 [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:46]Read from MH i2c: E2 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 62 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 62 00 EF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:47:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:46]wFMCommunicate OK [15:47:46]SAM_PROTO_GetFieldsCounters done [15:47:46]requested_item shift.num is exist - process it [15:47:46]requested_item shift.opened is exist - process it [15:47:46]req_shift_opened [15:47:46]FM_GetShiftState [15:47:46]SAM_PROTO_GetShiftState [15:47:46]wFMCommunicate request_size=4 [15:47:46]MH_SAM_APDU [15:47:46]CAPDU: 80 13 01 00 [15:47:46]Write to MH i2c: E2 08 00 F0 0C 80 13 01 00 00 00 00 00 79 [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:46]Read from MH i2c: E2 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 0E 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 0E 00 F0 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 61 [15:47:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:47:46]wFMCommunicate OK [15:47:46]SAM_PROTO_GetShiftState done [15:47:46]FM_GetShiftState done [15:47:46]req_shift_opened done [15:47:46]requested_item shift.open_date is exist - process it [15:47:46]req_shift_open_date [15:47:46]req_shift_open_date done [15:47:46]produce_requested_data done [15:47:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188796,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:47:46]process_action_free close_receipt [15:47:46]json_value_free [15:47:46]json_value_free done [15:47:46]process_json_proto returns [15:47:46]Send response to host [15:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188796,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:47:46]free response buf [15:47:46]execute_script done [15:47:46]execute_script returns [15:47:46]free content buf [15:47:46]Sock 7.Close socket [15:47:46]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:38]accept exits with 9 [15:50:38]New connection [15:50:38]New thread 3067350372 created [15:50:38]Thread 3067207012 joined [15:50:38]Waiting for new connection... [15:50:38] Sock 9.Parse request [15:50:38]Sock 9.Check first char [15:50:38]Sock 9.First char is OK [15:50:38]request: POST /json_proto HTTP/1.0 [15:50:38]Method: POST [15:50:38]URL: /json_proto [15:50:38]Method is POST - this is cgi request [15:50:38]url: /json_proto [15:50:38]query_string will be loaded in cgi processing [15:50:38]execute_cgi json_proto POST (null) [15:50:38]execute_cgi path=json_proto method=POST [15:50:38]POST find Content-Length [15:50:38]Host: 172.17.42.131:8080 [15:50:38]Content-Length: 678 [15:50:38]Content-Type: application/json [15:50:38] [15:50:38]POST finish read [15:50:38]Found Content-Length = 678 [15:50:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.210, "sum" : 950.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:38]execute_script... [15:50:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.210, "sum" : 950.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:38]POST & json_proto [15:50:38]process_json_proto [15:50:38]json parsed OK: [15:50:38]protocol is kg_v1.0 [15:50:38]action value=close_receipt [15:50:38]process_action close_receipt [15:50:38]cmd_close_receipt [15:50:38]MH_GetDate [15:50:38]Write to MH i2c: F0 00 00 F1 0C EC [15:50:38]Write i2c OK [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: F0 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: F0 09 00 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: F0 09 00 F1 0C 00 4F 1B 19 67 A0 18 CA 66 C7 [15:50:38]GetLastDocTimeStamp 1729698463 [15:50:38]current date 1729698639 [15:50:38]FM_GetShiftState [15:50:38]SAM_PROTO_GetShiftState [15:50:38]wFMCommunicate request_size=4 [15:50:38]MH_SAM_APDU [15:50:38]CAPDU: 80 13 01 00 [15:50:38]Write to MH i2c: E2 08 00 F2 0C 80 13 01 00 00 00 00 00 7B [15:50:38]Write i2c OK [15:50:38]MH_I2C_Read... [15:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:38]Read from MH i2c: E2 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: E2 0E 00 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: E2 0E 00 F2 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 63 [15:50:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:50:38]wFMCommunicate OK [15:50:38]SAM_PROTO_GetShiftState done [15:50:38]FM_GetShiftState done [15:50:38]opened in 1729642525 [15:50:38]opened+sec_in_day 1729728925 [15:50:38]quantity*price = 95064 [15:50:38]sum+1 = 95066 [15:50:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.95 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 255 23.10.2024 15:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188797 ФПД: 276581108194440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155039&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188797&fm=276581108194440&tin=02508201610067®Number=0000000000100030&sum=95000 [15:50:40]StoreToDocumentArchive [15:50:40]shift 462 fd 188797 [15:50:40]save to /storage/0462/doc_00188797 [15:50:40]save last doc name /storage/0462/doc_00188797 to /storage/kkm_last_doc_name [15:50:40]save OK [15:50:40]Clear old archive folders... [15:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:40]tlvbuf is 01143A50 [15:50:40]SAM_PROTO_ClearQueue [15:50:40]wFMCommunicate request_size=4 [15:50:40]MH_SAM_APDU [15:50:40]CAPDU: 80 09 00 00 [15:50:40]Write to MH i2c: E2 08 00 FF 0C 80 09 00 00 00 00 00 00 7D [15:50:40]Write i2c OK [15:50:40]MH_I2C_Read... [15:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:40]Read from MH i2c: E2 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 03 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [15:50:40]RAPDU: 90 00 [15:50:40]wFMCommunicate OK [15:50:40]SAM_PROTO_ClearQueue done [15:50:40]KKMCreateOFDPacket [15:50:40]OFDProtocolAddRootSTLVToBuf [15:50:40]FM_MakeSignedData [15:50:40]FM_MakeSignedData [15:50:40]SAM_PROTO_SignData [15:50:40]wFMCommunicate request_size=4 [15:50:40]MH_SAM_APDU [15:50:40]CAPDU: 80 0D 01 02 [15:50:40]Write to MH i2c: E2 08 00 00 0D 80 0D 01 02 00 00 00 00 86 [15:50:40]Write i2c OK [15:50:40]MH_I2C_Read... [15:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:40]Read from MH i2c: E2 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 03 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [15:50:40]RAPDU: 90 00 [15:50:40]wFMCommunicate OK [15:50:40]wFMCommunicate request_size=255 [15:50:40]MH_SAM_APDU [15:50:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4F 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E1 02 00 35 04 06 00 FB [15:50:40]Write to MH i2c: E2 02 01 01 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4F 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E1 02 00 35 04 06 00 FB 00 00 43 [15:50:40]Write i2c OK [15:50:40]MH_I2C_Read... [15:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:40]Read from MH i2c: E2 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 03 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [15:50:40]RAPDU: 90 00 [15:50:40]wFMCommunicate OK [15:50:40]wFMCommunicate request_size=10 [15:50:40]MH_SAM_APDU [15:50:40]CAPDU: 80 0D 02 02 05 8C 8E B4 9C 88 [15:50:40]Write to MH i2c: E2 0D 00 02 0D 80 0D 02 02 05 00 8C 8E B4 9C 88 00 00 85 [15:50:40]Write i2c OK [15:50:40]MH_I2C_Read... [15:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:40]Read from MH i2c: E2 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 03 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [15:50:40]RAPDU: 90 00 [15:50:40]wFMCommunicate OK [15:50:40]wFMCommunicate request_size=4 [15:50:40]MH_SAM_APDU [15:50:40]CAPDU: 80 0D 03 02 [15:50:40]Write to MH i2c: E2 08 00 03 0D 80 0D 03 02 00 00 00 00 8B [15:50:40]Write i2c OK [15:50:40]MH_I2C_Read... [15:50:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:40]Read from MH i2c: E2 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 0B 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 0B 00 03 0D 00 9F F9 CA 12 2B 38 73 54 90 00 2A [15:50:40]RAPDU: 9F F9 CA 12 2B 38 73 54 90 00 [15:50:40]wFMCommunicate OK [15:50:40]SAM_PROTO_SignData done [15:50:40]FM_MakeSignedData done [15:50:40]CreateOFDProtocolMessage [15:50:40]wFMCommunicate request_size=4 [15:50:40]MH_SAM_APDU [15:50:40]CAPDU: 80 11 00 00 [15:50:40]Write to MH i2c: E2 08 00 04 0D 80 11 00 00 00 00 00 00 8B [15:50:40]Write i2c OK [15:50:40]MH_I2C_Read... [15:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:40]Read from MH i2c: E2 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 17 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 17 00 04 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [15:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:50:40]wFMCommunicate OK [15:50:40]CreateOFDProtocolMessage done [15:50:40]OFDSenderStorePacket 188797 [15:50:40]StoreOFDPacket docnum=188797 [15:50:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9B D2 07 01 AC 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4F 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E1 02 00 35 04 06 00 FB 8C 8E B4 9C 88 9F F9 CA 12 2B 38 73 54 [15:50:40]CheckFolder [15:50:40]dirname=/storage/ofd_packets [15:50:40]CheckFolder done [15:50:40]ProducePacketName [15:50:40]name=ofd_packets/00188797 [15:50:40]NVStorageSaveData ofd_packets/00188797 [15:50:40]File name is /storage/ofd_packets/00188797 [15:50:40]Write 301 bytes [15:50:40]NVStorageSaveData done [15:50:40]OFDSenderStorePacket done [15:50:40]KKMCreateOFDPacket done [15:50:40]NVStorageSaveData kkm_last_timestamp [15:50:40]File name is /storage/kkm_last_timestamp [15:50:40]Write 4 bytes [15:50:40]NVStorageSaveData done [15:50:40]ExternCall_PrintAddStr [15:50:40]wPrintStart [15:50:40]Write to MH i2c: 01 00 00 05 0D 12 [15:50:40]Write i2c OK [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: 01 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: 01 07 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: 01 07 00 05 0D 00 00 00 00 00 FF 0F 27 [15:50:40]RasterBufferAndPrint [15:50:40]line Счет N : (1)210857 [15:50:40]line ИНН: 02508201610067 [15:50:40]line Контрольно-Кассовый Чек [15:50:40]line ПРОДАЖА [15:50:40]line ТРК (МРК, ГНК) : 12 [15:50:40]line Товар: 2710124130 [15:50:40]line Аи-92-К-3 [15:50:40]line 14.210 * 66.90 [15:50:40]line = 950.65 [15:50:40]line НДС 12% НСП 1% [15:50:40]line > о реализуемом товаре [15:50:40]line ОКРУГЛЕНИЕ: -0.65 [15:50:40]line ИТОГО: 950.00 [15:50:40]line Внесено: 950.00 [15:50:40]line СДАЧА: 0.00 [15:50:40]line НСП 1% : 8.41 [15:50:40]line НДС 12% : 100.95 [15:50:40]line Наличными: 950.00 [15:50:40]line Безнал.: 0.00 [15:50:40]line Место: АЗС № 86 "Партнер Нефть" [15:50:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:50:40]line СНО: Общий режим [15:50:40]line Чек 255 23.10.2024 15:50 [15:50:40]line Смена: 462 ФФД: 1.0 [15:50:40]line ЗНМ: 0300000155 [15:50:40]line РНМ: 0000000000100030 [15:50:40]line Версия ККМ: 001 [15:50:40]line ФМ: 0000000000965340 [15:50:40]line ФД: 188797 [15:50:40]line ФПД: 276581108194440 [15:50:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155039&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188797&fm=276581108194440&tin=02508201610067®Number=0000000000100030&sum=95000 [15:50:40]written 0, free lines is 4095 [15:50:40]OFD Sender: Processing packet 188797 [packets to send 1062, broken 1061] [15:50:40]ProducePacketName [15:50:40]name=ofd_packets/00188797 [15:50:40]OFD Sender: To server: pG, [15:50:40]CommunicateWithHost lk.salyk.kg:30040 [15:50:40]ConnectInit lk.salyk.kg [15:50:40]Connected sock=10 [15:50:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9B D2 07 01 AC 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4F 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E1 02 00 35 04 06 00 FB 8C 8E B4 9C 88 9F F9 CA 12 2B 38 73 54 [15:50:41]Write to MH i2c: 01 00 00 30 0D 3D [15:50:41]Write i2c OK [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: 01 [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: 01 07 00 [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 58 0C A8 [15:50:41]RasterBufferAndPrint [15:50:41]line [15:50:41]line [15:50:41]line [15:50:41]line [15:50:41]line [15:50:41]written 0, free lines is 3163 [15:50:41]MH_Cut [15:50:41]Write to MH i2c: D1 01 00 37 0D 01 16 [15:50:41]Write i2c OK [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: D1 [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: D1 01 00 [15:50:41]MH_I2C_Read... [15:50:41]Read from MH i2c: D1 01 00 37 0D 00 15 [15:50:41]Write to MH i2c: 01 00 00 38 0D 45 [15:50:41]Write i2c OK [15:50:41]MH_I2C_Read... [15:50:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A4 E2 47 00 5E 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E1 02 00 F4 03 04 00 3A C5 18 67 B6 04 01 00 00 FF 58 4E D0 D6 BA F0 FD [15:50:41]CommunicateWithHost err = 0 [15:50:41]CheckOFDResponse [15:50:41]1017 (14) - 77093643461234 [15:50:41]1041 (16) - 0000000000965340 [15:50:41]1040 (4) - 188797 [15:50:41]1012 (4) - 23.10.2024 09:43 [15:50:41]1206 (1) - 0 [15:50:41]OFD Sender: Remove packet 188797 [15:50:41]ProducePacketName [15:50:41]name=ofd_packets/00188797 [15:50:41]NVStorageDeleteData [15:50:41]OFD Sender: No OFD packet to send [15:50:42]*** Cut start [15:50:42]*** Partial cut [15:50:42]*** CUTSNS_PIN = 1 [15:50:42]*** CUTSNS_PIN = 0 [15:50:42]*** Brake cut motor [15:50:42]Read from MH i2c: 01 [15:50:42]MH_I2C_Read... [15:50:42]*** Stop cut motor [15:50:42]*** Cut end [15:50:42]Read from MH i2c: 01 07 00 [15:50:42]MH_I2C_Read... [15:50:42]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 FF 0F 5A [15:50:42]process_action close_receipt done [15:50:42]requested_data is exist [15:50:42]produce_requested_data [15:50:42]requested_item fm.sn is exist - process it [15:50:42]wFMCommunicate request_size=4 [15:50:42]MH_SAM_APDU [15:50:42]CAPDU: 80 11 00 00 [15:50:42]Write to MH i2c: E2 08 00 39 0D 80 11 00 00 00 00 00 00 C0 [15:50:42]Write i2c OK [15:50:42]MH_I2C_Read... [15:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:43]Read from MH i2c: E2 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: E2 17 00 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: E2 17 00 39 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [15:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:50:43]wFMCommunicate OK [15:50:43]requested_item fd.num is exist - process it [15:50:43]SAM_PROTO_GetFieldsCounters [15:50:43]wFMCommunicate request_size=4 [15:50:43]MH_SAM_APDU [15:50:43]CAPDU: 80 13 00 00 [15:50:43]Write to MH i2c: E2 08 00 3A 0D 80 13 00 00 00 00 00 00 C3 [15:50:43]Write i2c OK [15:50:43]MH_I2C_Read... [15:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:43]Read from MH i2c: E2 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: E2 62 00 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: E2 62 00 3A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [15: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:43]wFMCommunicate OK [15:50:43]SAM_PROTO_GetFieldsCounters done [15:50:43]requested_item shift.num is exist - process it [15:50:43]requested_item shift.opened is exist - process it [15:50:43]req_shift_opened [15:50:43]FM_GetShiftState [15:50:43]SAM_PROTO_GetShiftState [15:50:43]wFMCommunicate request_size=4 [15:50:43]MH_SAM_APDU [15:50:43]CAPDU: 80 13 01 00 [15:50:43]Write to MH i2c: E2 08 00 3B 0D 80 13 01 00 00 00 00 00 C5 [15:50:43]Write i2c OK [15:50:43]MH_I2C_Read... [15:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:43]Read from MH i2c: E2 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: E2 0E 00 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: E2 0E 00 3B 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AD [15:50:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:50:43]wFMCommunicate OK [15:50:43]SAM_PROTO_GetShiftState done [15:50:43]FM_GetShiftState done [15:50:43]req_shift_opened done [15:50:43]requested_item shift.open_date is exist - process it [15:50:43]req_shift_open_date [15:50:43]req_shift_open_date done [15:50:43]produce_requested_data done [15:50:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188797,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:50:43]process_action_free close_receipt [15:50:43]json_value_free [15:50:43]json_value_free done [15:50:43]process_json_proto returns [15:50:43]Send response to host [15:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188797,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:50:43]free response buf [15:50:43]execute_script done [15:50:43]execute_script returns [15:50:43]free content buf [15:50:43]Sock 9.Close socket [15:50:43]Sock 9.Thread stoped [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:04]accept exits with 7 [15:52:04]New connection [15:52:04]New thread 3067207012 created [15:52:04]Thread 3067350372 joined [15:52:04]Waiting for new connection... [15:52:04] Sock 7.Parse request [15:52:04]Sock 7.Check first char [15:52:04]Sock 7.First char is OK [15:52:04]request: POST /json_proto HTTP/1.0 [15:52:04]Method: POST [15:52:04]URL: /json_proto [15:52:04]Method is POST - this is cgi request [15:52:04]url: /json_proto [15:52:04]query_string will be loaded in cgi processing [15:52:04]execute_cgi json_proto POST (null) [15:52:04]execute_cgi path=json_proto method=POST [15:52:04]POST find Content-Length [15:52:04]Host: 172.17.42.131:8080 [15:52:04]Content-Length: 688 [15:52:04]Content-Type: application/json [15:52:04] [15:52:04]POST finish read [15:52:04]Found Content-Length = 688 [15:52:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:04]execute_script... [15:52:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:04]POST & json_proto [15:52:04]process_json_proto [15:52:04]json parsed OK: [15:52:04]protocol is kg_v1.0 [15:52:04]action value=close_receipt [15:52:04]process_action close_receipt [15:52:04]cmd_close_receipt [15:52:04]MH_GetDate [15:52:04]Write to MH i2c: F0 00 00 3C 0D 38 [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: F0 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: F0 09 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: F0 09 00 3C 0D 00 A5 1B 19 67 A0 18 CA 66 69 [15:52:04]GetLastDocTimeStamp 1729698639 [15:52:04]current date 1729698725 [15:52:04]FM_GetShiftState [15:52:04]SAM_PROTO_GetShiftState [15:52:04]wFMCommunicate request_size=4 [15:52:04]MH_SAM_APDU [15:52:04]CAPDU: 80 13 01 00 [15:52:04]Write to MH i2c: E2 08 00 3D 0D 80 13 01 00 00 00 00 00 C7 [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:04]Read from MH i2c: E2 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: E2 0E 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: E2 0E 00 3D 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AF [15:52:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:52:04]wFMCommunicate OK [15:52:04]SAM_PROTO_GetShiftState done [15:52:04]FM_GetShiftState done [15:52:04]opened in 1729642525 [15:52:04]opened+sec_in_day 1729728925 [15:52:04]quantity*price = 150076 [15:52:04]sum+1 = 150078 [15:52:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 256 23.10.2024 15:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188798 ФПД: 49543496440337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155205&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188798&fm=49543496440337&tin=02508201610067®Number=0000000000100030&sum=150000 [15:52:05]StoreToDocumentArchive [15:52:05]shift 462 fd 188798 [15:52:05]save to /storage/0462/doc_00188798 [15:52:05]save last doc name /storage/0462/doc_00188798 to /storage/kkm_last_doc_name [15:52:05]save OK [15:52:05]Clear old archive folders... [15:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:52:05]tlvbuf is 01156000 [15:52:05]SAM_PROTO_ClearQueue [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 09 00 00 [15:52:05]Write to MH i2c: E2 08 00 4A 0D 80 09 00 00 00 00 00 00 C9 [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 03 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [15:52:05]RAPDU: 90 00 [15:52:05]wFMCommunicate OK [15:52:05]SAM_PROTO_ClearQueue done [15:52:05]KKMCreateOFDPacket [15:52:05]OFDProtocolAddRootSTLVToBuf [15:52:05]FM_MakeSignedData [15:52:05]FM_MakeSignedData [15:52:05]SAM_PROTO_SignData [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 0D 01 02 [15:52:05]Write to MH i2c: E2 08 00 4B 0D 80 0D 01 02 00 00 00 00 D1 [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 03 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [15:52:05]RAPDU: 90 00 [15:52:05]wFMCommunicate OK [15:52:05]wFMCommunicate request_size=255 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 A5 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E1 02 [15:52:05]Write to MH i2c: E2 02 01 4C 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 A5 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E1 02 00 00 F1 [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 03 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [15:52:05]RAPDU: 90 00 [15:52:05]wFMCommunicate OK [15:52:05]wFMCommunicate request_size=16 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2D 0F 3E 81 9A 11 [15:52:05]Write to MH i2c: E2 13 00 4D 0D 80 0D 02 02 0B 00 00 35 04 06 00 2D 0F 3E 81 9A 11 00 00 CF [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 03 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [15:52:05]RAPDU: 90 00 [15:52:05]wFMCommunicate OK [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 0D 03 02 [15:52:05]Write to MH i2c: E2 08 00 4E 0D 80 0D 03 02 00 00 00 00 D6 [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 0B 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 0B 00 4E 0D 00 27 23 E3 EC 00 32 BB 96 90 00 73 [15:52:05]RAPDU: 27 23 E3 EC 00 32 BB 96 90 00 [15:52:05]wFMCommunicate OK [15:52:05]SAM_PROTO_SignData done [15:52:05]FM_MakeSignedData done [15:52:05]CreateOFDProtocolMessage [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 11 00 00 [15:52:05]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 17 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [15:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:52:05]wFMCommunicate OK [15:52:05]CreateOFDProtocolMessage done [15:52:05]OFDSenderStorePacket 188798 [15:52:05]StoreOFDPacket docnum=188798 [15:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 50 7D 0D 01 DB 31 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 A5 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E1 02 00 35 04 06 00 2D 0F 3E 81 9A 11 27 23 E3 EC 00 32 BB 96 [15:52:05]CheckFolder [15:52:05]dirname=/storage/ofd_packets [15:52:05]CheckFolder done [15:52:05]ProducePacketName [15:52:05]name=ofd_packets/00188798 [15:52:05]NVStorageSaveData ofd_packets/00188798 [15:52:05]File name is /storage/ofd_packets/00188798 [15:52:05]Write 307 bytes [15:52:05]NVStorageSaveData done [15:52:05]OFDSenderStorePacket done [15:52:05]KKMCreateOFDPacket done [15:52:05]NVStorageSaveData kkm_last_timestamp [15:52:05]File name is /storage/kkm_last_timestamp [15:52:05]Write 4 bytes [15:52:05]NVStorageSaveData done [15:52:05]ExternCall_PrintAddStr [15:52:05]wPrintStart [15:52:05]Write to MH i2c: 01 00 00 50 0D 5D [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: 01 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: 01 07 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: 01 07 00 50 0D 00 00 00 00 00 FF 0F 72 [15:52:05]RasterBufferAndPrint [15:52:05]line Счет N : (1)210858 [15:52:05]line ИНН: 02508201610067 [15:52:05]line Контрольно-Кассовый Чек [15:52:05]line ПРОДАЖА [15:52:05]line ТРК (МРК, ГНК) : 41 [15:52:05]line Товар: 2710194210 [15:52:05]line D-ENERGY ДТ-К-5 [15:52:05]line 19.440 * 77.20 [15:52:05]line = 1500.77 [15:52:05]line НДС 12% НСП 1% [15:52:05]line > о реализуемом товаре [15:52:05]line ОКРУГЛЕНИЕ: -0.77 [15:52:05]line ИТОГО: 1500.00 [15:52:05]line Внесено: 1500.00 [15:52:05]line СДАЧА: 0.00 [15:52:05]line НСП 1% : 13.28 [15:52:05]line НДС 12% : 159.37 [15:52:05]line Наличными: 1500.00 [15:52:05]line Безнал.: 0.00 [15:52:05]line Место: АЗС № 86 "Партнер Нефть" [15:52:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:52:05]line СНО: Общий режим [15:52:05]line Чек 256 23.10.2024 15:52 [15:52:05]line Смена: 462 ФФД: 1.0 [15:52:05]line ЗНМ: 0300000155 [15:52:05]line РНМ: 0000000000100030 [15:52:05]line Версия ККМ: 001 [15:52:05]line ФМ: 0000000000965340 [15:52:05]line ФД: 188798 [15:52:05]line ФПД: 49543496440337 [15:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155205&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188798&fm=49543496440337&tin=02508201610067®Number=0000000000100030&sum=150000 [15:52:05]written 0, free lines is 4095 [15:52:05]OFD Sender: Processing packet 188798 [packets to send 1062, broken 1061] [15:52:05]ProducePacketName [15:52:05]name=ofd_packets/00188798 [15:52:05]OFD Sender: To server: pG, [15:52:05]CommunicateWithHost lk.salyk.kg:30040 [15:52:05]ConnectInit lk.salyk.kg [15:52:06]Connected sock=9 [15:52:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 50 7D 0D 01 DB 31 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 A5 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E1 02 00 35 04 06 00 2D 0F 3E 81 9A 11 27 23 E3 EC 00 32 BB 96 [15:52:06]Write to MH i2c: 01 00 00 7B 0D 88 [15:52:06]Write i2c OK [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: 01 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: 01 07 00 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 5D 0C F8 [15:52:06]RasterBufferAndPrint [15:52:06]line [15:52:06]line [15:52:06]line [15:52:06]line [15:52:06]line [15:52:06]written 0, free lines is 3168 [15:52:06]MH_Cut [15:52:06]Write to MH i2c: D1 01 00 82 0D 01 61 [15:52:06]Write i2c OK [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: D1 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: D1 01 00 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: D1 01 00 82 0D 00 60 [15:52:06]Write to MH i2c: 01 00 00 83 0D 90 [15:52:06]Write i2c OK [15:52:06]MH_I2C_Read... [15:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1C E4 47 00 DF C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E1 02 00 F4 03 04 00 8F C5 18 67 B6 04 01 00 00 1A 47 CA 2D 76 64 BC FB [15:52:06]CommunicateWithHost err = 0 [15:52:06]CheckOFDResponse [15:52:06]1017 (14) - 77093643461234 [15:52:06]1041 (16) - 0000000000965340 [15:52:06]1040 (4) - 188798 [15:52:06]1012 (4) - 23.10.2024 09:44 [15:52:06]1206 (1) - 0 [15:52:06]OFD Sender: Remove packet 188798 [15:52:06]ProducePacketName [15:52:06]name=ofd_packets/00188798 [15:52:06]NVStorageDeleteData [15:52:07]OFD Sender: No OFD packet to send [15:52:07]*** Cut start [15:52:07]*** Partial cut [15:52:07]*** CUTSNS_PIN = 1 [15:52:07]*** CUTSNS_PIN = 0 [15:52:07]*** Brake cut motor [15:52:08]Read from MH i2c: 01 [15:52:08]MH_I2C_Read... [15:52:08]*** Stop cut motor [15:52:08]*** Cut end [15:52:08]Read from MH i2c: 01 07 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: 01 07 00 83 0D 00 00 00 00 00 FF 0F A5 [15:52:08]process_action close_receipt done [15:52:08]requested_data is exist [15:52:08]produce_requested_data [15:52:08]requested_item fm.sn is exist - process it [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 11 00 00 [15:52:08]Write to MH i2c: E2 08 00 84 0D 80 11 00 00 00 00 00 00 0B [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 17 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 17 00 84 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [15:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:52:08]wFMCommunicate OK [15:52:08]requested_item fd.num is exist - process it [15:52:08]SAM_PROTO_GetFieldsCounters [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 13 00 00 [15:52:08]Write to MH i2c: E2 08 00 85 0D 80 13 00 00 00 00 00 00 0E [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 62 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 62 00 85 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [15:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:08]wFMCommunicate OK [15:52:08]SAM_PROTO_GetFieldsCounters done [15:52:08]requested_item shift.num is exist - process it [15:52:08]requested_item shift.opened is exist - process it [15:52:08]req_shift_opened [15:52:08]FM_GetShiftState [15:52:08]SAM_PROTO_GetShiftState [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 13 01 00 [15:52:08]Write to MH i2c: E2 08 00 86 0D 80 13 01 00 00 00 00 00 10 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 0E 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 0E 00 86 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F8 [15:52:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:52:08]wFMCommunicate OK [15:52:08]SAM_PROTO_GetShiftState done [15:52:08]FM_GetShiftState done [15:52:08]req_shift_opened done [15:52:08]requested_item shift.open_date is exist - process it [15:52:08]req_shift_open_date [15:52:08]req_shift_open_date done [15:52:08]produce_requested_data done [15:52:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188798,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:52:08]process_action_free close_receipt [15:52:08]json_value_free [15:52:08]json_value_free done [15:52:08]process_json_proto returns [15:52:08]Send response to host [15:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188798,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:52:08]free response buf [15:52:08]execute_script done [15:52:08]execute_script returns [15:52:08]free content buf [15:52:08]Sock 7.Close socket [15:52:08]Sock 7.Thread stoped [15:52:12]OFD Sender: No OFD packet to send [15:52:15]accept exits with 10 [15:52:15]New connection [15:52:15]New thread 3067350372 created [15:52:15]Thread 3067207012 joined [15:52:15]Waiting for new connection... [15:52:15] Sock 10.Parse request [15:52:15]Sock 10.Check first char [15:52:15]Sock 10.First char is OK [15:52:15]request: POST /json_proto HTTP/1.0 [15:52:15]Method: POST [15:52:15]URL: /json_proto [15:52:15]Method is POST - this is cgi request [15:52:15]url: /json_proto [15:52:15]query_string will be loaded in cgi processing [15:52:15]execute_cgi json_proto POST (null) [15:52:15]execute_cgi path=json_proto method=POST [15:52:15]POST find Content-Length [15:52:15]Host: 172.17.42.131:8080 [15:52:15]Content-Length: 679 [15:52:15]Content-Type: application/json [15:52:15] [15:52:15]POST finish read [15:52:15]Found Content-Length = 679 [15:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:15]execute_script... [15:52:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:15]POST & json_proto [15:52:15]process_json_proto [15:52:15]json parsed OK: [15:52:15]protocol is kg_v1.0 [15:52:15]action value=close_receipt [15:52:15]process_action close_receipt [15:52:15]cmd_close_receipt [15:52:15]MH_GetDate [15:52:15]Write to MH i2c: F0 00 00 87 0D 83 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: F0 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: F0 09 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: F0 09 00 87 0D 00 AF 1B 19 67 A0 18 CA 66 BE [15:52:15]GetLastDocTimeStamp 1729698725 [15:52:15]current date 1729698735 [15:52:15]FM_GetShiftState [15:52:15]SAM_PROTO_GetShiftState [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 13 01 00 [15:52:15]Write to MH i2c: E2 08 00 88 0D 80 13 01 00 00 00 00 00 12 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 0E 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 0E 00 88 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FA [15:52:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:52:15]wFMCommunicate OK [15:52:15]SAM_PROTO_GetShiftState done [15:52:15]FM_GetShiftState done [15:52:15]opened in 1729642525 [15:52:15]opened+sec_in_day 1729728925 [15:52:15]quantity*price = 100050 [15:52:15]sum+1 = 100052 [15:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 257 23.10.2024 15:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188799 ФПД: 84516668445118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188799&fm=84516668445118&tin=02508201610067®Number=0000000000100030&sum=100000 [15:52:16]StoreToDocumentArchive [15:52:16]shift 462 fd 188799 [15:52:16]save to /storage/0462/doc_00188799 [15:52:16]save last doc name /storage/0462/doc_00188799 to /storage/kkm_last_doc_name [15:52:16]save OK [15:52:16]Clear old archive folders... [15:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:52:16]tlvbuf is 0111BDA0 [15:52:16]SAM_PROTO_ClearQueue [15:52:16]wFMCommunicate request_size=4 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 09 00 00 [15:52:16]Write to MH i2c: E2 08 00 95 0D 80 09 00 00 00 00 00 00 14 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 03 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [15:52:16]RAPDU: 90 00 [15:52:16]wFMCommunicate OK [15:52:16]SAM_PROTO_ClearQueue done [15:52:16]KKMCreateOFDPacket [15:52:16]OFDProtocolAddRootSTLVToBuf [15:52:16]FM_MakeSignedData [15:52:16]FM_MakeSignedData [15:52:16]SAM_PROTO_SignData [15:52:16]wFMCommunicate request_size=4 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 0D 01 02 [15:52:16]Write to MH i2c: E2 08 00 96 0D 80 0D 01 02 00 00 00 00 1C [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 03 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [15:52:16]RAPDU: 90 00 [15:52:16]wFMCommunicate OK [15:52:16]wFMCommunicate request_size=255 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 AF 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E1 02 00 35 04 06 00 4C DE 12 00 [15:52:16]Write to MH i2c: E2 02 01 97 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 AF 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E1 02 00 35 04 06 00 4C DE 12 00 00 00 40 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 03 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [15:52:16]RAPDU: 90 00 [15:52:16]wFMCommunicate OK [15:52:16]wFMCommunicate request_size=7 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 0D 02 02 02 11 BE [15:52:16]Write to MH i2c: E2 0A 00 98 0D 80 0D 02 02 02 00 11 BE 00 00 F2 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 03 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 03 00 98 0D 00 90 00 19 [15:52:16]RAPDU: 90 00 [15:52:16]wFMCommunicate OK [15:52:16]wFMCommunicate request_size=4 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 0D 03 02 [15:52:16]Write to MH i2c: E2 08 00 99 0D 80 0D 03 02 00 00 00 00 21 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 0B 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 0B 00 99 0D 00 76 9B B3 4F 88 82 83 C7 90 00 89 [15:52:16]RAPDU: 76 9B B3 4F 88 82 83 C7 90 00 [15:52:16]wFMCommunicate OK [15:52:16]SAM_PROTO_SignData done [15:52:16]FM_MakeSignedData done [15:52:16]CreateOFDProtocolMessage [15:52:16]wFMCommunicate request_size=4 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 11 00 00 [15:52:16]Write to MH i2c: E2 08 00 9A 0D 80 11 00 00 00 00 00 00 21 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 17 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 17 00 9A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [15:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:52:16]wFMCommunicate OK [15:52:16]CreateOFDProtocolMessage done [15:52:16]OFDSenderStorePacket 188799 [15:52:16]StoreOFDPacket docnum=188799 [15:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 35 B0 04 01 BB 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 AF 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E1 02 00 35 04 06 00 4C DE 12 00 11 BE 76 9B B3 4F 88 82 83 C7 [15:52:16]CheckFolder [15:52:16]dirname=/storage/ofd_packets [15:52:16]CheckFolder done [15:52:16]ProducePacketName [15:52:16]name=ofd_packets/00188799 [15:52:16]NVStorageSaveData ofd_packets/00188799 [15:52:16]File name is /storage/ofd_packets/00188799 [15:52:16]Write 298 bytes [15:52:16]NVStorageSaveData done [15:52:16]OFDSenderStorePacket done [15:52:16]KKMCreateOFDPacket done [15:52:16]NVStorageSaveData kkm_last_timestamp [15:52:16]File name is /storage/kkm_last_timestamp [15:52:16]Write 4 bytes [15:52:16]NVStorageSaveData done [15:52:16]ExternCall_PrintAddStr [15:52:16]wPrintStart [15:52:16]Write to MH i2c: 01 00 00 9B 0D A8 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: 01 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: 01 07 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: 01 07 00 9B 0D 00 00 00 00 00 FF 0F BD [15:52:16]RasterBufferAndPrint [15:52:16]line Счет N : (1)210860 [15:52:16]line ИНН: 02508201610067 [15:52:16]line Контрольно-Кассовый Чек [15:52:16]line ПРОДАЖА [15:52:16]line ТРК (МРК, ГНК) : 51 [15:52:16]line Товар: 2710194210 [15:52:16]line ДТ-К-5 [15:52:16]line 13.130 * 76.20 [15:52:16]line = 1000.51 [15:52:16]line НДС 12% НСП 1% [15:52:16]line > о реализуемом товаре [15:52:16]line ОКРУГЛЕНИЕ: -0.51 [15:52:16]line ИТОГО: 1000.00 [15:52:16]line Внесено: 1000.00 [15:52:16]line СДАЧА: 0.00 [15:52:16]line НСП 1% : 8.85 [15:52:16]line НДС 12% : 106.25 [15:52:16]line Наличными: 1000.00 [15:52:16]line Безнал.: 0.00 [15:52:16]line Место: АЗС № 86 "Партнер Нефть" [15:52:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:52:16]line СНО: Общий режим [15:52:16]line Чек 257 23.10.2024 15:52 [15:52:16]line Смена: 462 ФФД: 1.0 [15:52:16]line ЗНМ: 0300000155 [15:52:16]line РНМ: 0000000000100030 [15:52:16]line Версия ККМ: 001 [15:52:16]line ФМ: 0000000000965340 [15:52:16]line ФД: 188799 [15:52:16]line ФПД: 84516668445118 [15:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188799&fm=84516668445118&tin=02508201610067®Number=0000000000100030&sum=100000 [15:52:16]written 0, free lines is 4095 [15:52:16]OFD Sender: Processing packet 188799 [packets to send 1062, broken 1061] [15:52:16]ProducePacketName [15:52:16]name=ofd_packets/00188799 [15:52:16]OFD Sender: To server: pG, [15:52:16]CommunicateWithHost lk.salyk.kg:30040 [15:52:16]ConnectInit lk.salyk.kg [15:52:17]Connected sock=7 [15:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 35 B0 04 01 BB 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 AF 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E1 02 00 35 04 06 00 4C DE 12 00 11 BE 76 9B B3 4F 88 82 83 C7 [15:52:17]Write to MH i2c: 01 00 00 C6 0D D3 [15:52:17]Write i2c OK [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: 01 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: 01 07 00 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: 01 07 00 C6 0D 00 00 00 00 00 59 0C 3F [15:52:17]RasterBufferAndPrint [15:52:17]line [15:52:17]line [15:52:17]line [15:52:17]line [15:52:17]line [15:52:17]written 0, free lines is 3167 [15:52:17]MH_Cut [15:52:17]Write to MH i2c: D1 01 00 CD 0D 01 AC [15:52:17]Write i2c OK [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: D1 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: D1 01 00 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: D1 01 00 CD 0D 00 AB [15:52:17]Write to MH i2c: 01 00 00 CE 0D DB [15:52:17]Write i2c OK [15:52:17]MH_I2C_Read... [15:52:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DC EB 47 00 2E 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E1 02 00 F4 03 04 00 9A C5 18 67 B6 04 01 00 00 B2 0C D6 A8 FC 0C 21 26 [15:52:17]CommunicateWithHost err = 0 [15:52:17]CheckOFDResponse [15:52:17]1017 (14) - 77093643461234 [15:52:17]1041 (16) - 0000000000965340 [15:52:17]1040 (4) - 188799 [15:52:17]1012 (4) - 23.10.2024 09:44 [15:52:17]1206 (1) - 0 [15:52:17]OFD Sender: Remove packet 188799 [15:52:17]ProducePacketName [15:52:17]name=ofd_packets/00188799 [15:52:17]NVStorageDeleteData [15:52:17]OFD Sender: No OFD packet to send [15:52:18]*** Cut start [15:52:18]*** Partial cut [15:52:18]*** CUTSNS_PIN = 1 [15:52:18]*** CUTSNS_PIN = 0 [15:52:18]*** Brake cut motor [15:52:19]Read from MH i2c: 01 [15:52:19]MH_I2C_Read... [15:52:19]*** Stop cut motor [15:52:19]*** Cut end [15:52:19]Read from MH i2c: 01 07 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: 01 07 00 CE 0D 00 00 00 00 00 FF 0F F0 [15:52:19]process_action close_receipt done [15:52:19]requested_data is exist [15:52:19]produce_requested_data [15:52:19]requested_item fm.sn is exist - process it [15:52:19]wFMCommunicate request_size=4 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 11 00 00 [15:52:19]Write to MH i2c: E2 08 00 CF 0D 80 11 00 00 00 00 00 00 56 [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 17 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 17 00 CF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [15:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:52:19]wFMCommunicate OK [15:52:19]requested_item fd.num is exist - process it [15:52:19]SAM_PROTO_GetFieldsCounters [15:52:19]wFMCommunicate request_size=4 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 13 00 00 [15:52:19]Write to MH i2c: E2 08 00 D0 0D 80 13 00 00 00 00 00 00 59 [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 62 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 62 00 D0 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [15:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:19]wFMCommunicate OK [15:52:19]SAM_PROTO_GetFieldsCounters done [15:52:19]requested_item shift.num is exist - process it [15:52:19]requested_item shift.opened is exist - process it [15:52:19]req_shift_opened [15:52:19]FM_GetShiftState [15:52:19]SAM_PROTO_GetShiftState [15:52:19]wFMCommunicate request_size=4 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 13 01 00 [15:52:19]Write to MH i2c: E2 08 00 D1 0D 80 13 01 00 00 00 00 00 5B [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 0E 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 0E 00 D1 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 43 [15:52:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:52:19]wFMCommunicate OK [15:52:19]SAM_PROTO_GetShiftState done [15:52:19]FM_GetShiftState done [15:52:19]req_shift_opened done [15:52:19]requested_item shift.open_date is exist - process it [15:52:19]req_shift_open_date [15:52:19]req_shift_open_date done [15:52:19]produce_requested_data done [15:52:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188799,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:52:19]process_action_free close_receipt [15:52:19]json_value_free [15:52:19]json_value_free done [15:52:19]process_json_proto returns [15:52:19]Send response to host [15:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188799,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:52:19]free response buf [15:52:19]execute_script done [15:52:19]execute_script returns [15:52:19]free content buf [15:52:19]Sock 10.Close socket [15:52:19]Sock 10.Thread stoped [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52: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:56]accept exits with 9 [15:52:56]New connection [15:52:56]New thread 3067207012 created [15:52:56]Thread 3067350372 joined [15:52:56]Waiting for new connection... [15:52:56] Sock 9.Parse request [15:52:56]Sock 9.Check first char [15:52:56]Sock 9.First char is OK [15:52:56]request: POST /json_proto HTTP/1.0 [15:52:56]Method: POST [15:52:56]URL: /json_proto [15:52:56]Method is POST - this is cgi request [15:52:56]url: /json_proto [15:52:56]query_string will be loaded in cgi processing [15:52:56]execute_cgi json_proto POST (null) [15:52:56]execute_cgi path=json_proto method=POST [15:52:56]POST find Content-Length [15:52:56]Host: 172.17.42.131:8080 [15:52:56]Content-Length: 800 [15:52:56]Content-Type: application/json [15:52:56] [15:52:56]POST finish read [15:52:56]Found Content-Length = 800 [15:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913857", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:56]execute_script... [15:52:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913857", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:56]POST & json_proto [15:52:56]process_json_proto [15:52:56]json parsed OK: [15:52:56]protocol is kg_v1.0 [15:52:56]action value=close_receipt [15:52:56]process_action close_receipt [15:52:56]cmd_close_receipt [15:52:56]MH_GetDate [15:52:56]Write to MH i2c: F0 00 00 D2 0D CE [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: F0 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: F0 09 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: F0 09 00 D2 0D 00 D9 1B 19 67 A0 18 CA 66 33 [15:52:56]GetLastDocTimeStamp 1729698735 [15:52:56]current date 1729698777 [15:52:56]FM_GetShiftState [15:52:56]SAM_PROTO_GetShiftState [15:52:56]wFMCommunicate request_size=4 [15:52:56]MH_SAM_APDU [15:52:56]CAPDU: 80 13 01 00 [15:52:56]Write to MH i2c: E2 08 00 D3 0D 80 13 01 00 00 00 00 00 5D [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:56]Read from MH i2c: E2 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 0E 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 0E 00 D3 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 45 [15:52:56]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:52:56]wFMCommunicate OK [15:52:56]SAM_PROTO_GetShiftState done [15:52:56]FM_GetShiftState done [15:52:56]opened in 1729642525 [15:52:56]opened+sec_in_day 1729728925 [15:52:56]quantity*price = 0 [15:52:56]sum+1 = 1 [15:52:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 258 23.10.2024 15:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3913857 ФМ: 0000000000965340 ФД: 188800 ФПД: 163726288342110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155257&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188800&fm=163726288342110&tin=02508201610067®Number=0000000000100030&sum=0 [15:52:57]StoreToDocumentArchive [15:52:57]shift 462 fd 188800 [15:52:57]save to /storage/0462/doc_00188800 [15:52:57]save last doc name /storage/0462/doc_00188800 to /storage/kkm_last_doc_name [15:52:57]save OK [15:52:57]Clear old archive folders... [15:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:57]tlvbuf is 011605F0 [15:52:57]SAM_PROTO_ClearQueue [15:52:57]wFMCommunicate request_size=4 [15:52:57]MH_SAM_APDU [15:52:57]CAPDU: 80 09 00 00 [15:52:57]Write to MH i2c: E2 08 00 E0 0D 80 09 00 00 00 00 00 00 5F [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:57]Read from MH i2c: E2 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 03 00 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [15:52:57]RAPDU: 90 00 [15:52:57]wFMCommunicate OK [15:52:57]SAM_PROTO_ClearQueue done [15:52:57]KKMCreateOFDPacket [15:52:57]OFDProtocolAddRootSTLVToBuf [15:52:57]FM_MakeSignedData [15:52:57]FM_MakeSignedData [15:52:57]SAM_PROTO_SignData [15:52:57]wFMCommunicate request_size=4 [15:52:57]MH_SAM_APDU [15:52:57]CAPDU: 80 0D 01 02 [15:52:57]Write to MH i2c: E2 08 00 E1 0D 80 0D 01 02 00 00 00 00 67 [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:57]Read from MH i2c: E2 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 03 00 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 03 00 E1 0D 00 90 00 62 [15:52:57]RAPDU: 90 00 [15:52:57]wFMCommunicate OK [15:52:57]wFMCommunicate request_size=255 [15:52:57]MH_SAM_APDU [15:52:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 D9 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E1 02 00 35 04 06 00 94 [15:52:57]Write to MH i2c: E2 02 01 E2 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 D9 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E1 02 00 35 04 06 00 94 00 00 C9 [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:57]Read from MH i2c: E2 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 03 00 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 03 00 E2 0D 00 90 00 63 [15:52:57]RAPDU: 90 00 [15:52:57]wFMCommunicate OK [15:52:57]wFMCommunicate request_size=10 [15:52:57]MH_SAM_APDU [15:52:57]CAPDU: 80 0D 02 02 05 E8 7F 41 CC 5E [15:52:57]Write to MH i2c: E2 0D 00 E3 0D 80 0D 02 02 05 00 E8 7F 41 CC 5E 00 00 46 [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 E3 0D 00 90 00 64 [15:52:58]RAPDU: 90 00 [15:52:58]wFMCommunicate OK [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 0D 03 02 [15:52:58]Write to MH i2c: E2 08 00 E4 0D 80 0D 03 02 00 00 00 00 6C [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 0B 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 0B 00 E4 0D 00 6F A2 5F 10 92 17 13 24 90 00 CD [15:52:58]RAPDU: 6F A2 5F 10 92 17 13 24 90 00 [15:52:58]wFMCommunicate OK [15:52:58]SAM_PROTO_SignData done [15:52:58]FM_MakeSignedData done [15:52:58]CreateOFDProtocolMessage [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 11 00 00 [15:52:58]Write to MH i2c: E2 08 00 E5 0D 80 11 00 00 00 00 00 00 6C [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 17 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 17 00 E5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [15:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:52:58]wFMCommunicate OK [15:52:58]CreateOFDProtocolMessage done [15:52:58]OFDSenderStorePacket 188800 [15:52:58]StoreOFDPacket docnum=188800 [15:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 75 F5 07 01 A2 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 D9 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E1 02 00 35 04 06 00 94 E8 7F 41 CC 5E 6F A2 5F 10 92 17 13 24 [15:52:58]CheckFolder [15:52:58]dirname=/storage/ofd_packets [15:52:58]CheckFolder done [15:52:58]ProducePacketName [15:52:58]name=ofd_packets/00188800 [15:52:58]NVStorageSaveData ofd_packets/00188800 [15:52:58]File name is /storage/ofd_packets/00188800 [15:52:58]Write 301 bytes [15:52:58]NVStorageSaveData done [15:52:58]OFDSenderStorePacket done [15:52:58]KKMCreateOFDPacket done [15:52:58]NVStorageSaveData kkm_last_timestamp [15:52:58]File name is /storage/kkm_last_timestamp [15:52:58]Write 4 bytes [15:52:58]NVStorageSaveData done [15:52:58]ExternCall_PrintAddStr [15:52:58]wPrintStart [15:52:58]Write to MH i2c: 01 00 00 E6 0D F3 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: 01 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: 01 07 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: 01 07 00 E6 0D 00 00 00 00 00 FF 0F 08 [15:52:58]RasterBufferAndPrint [15:52:58]line Счет N : (1)210859 [15:52:58]line ИНН: 02508201610067 [15:52:58]line Контрольно-Кассовый Чек [15:52:58]line ПРОДАЖА [15:52:58]line ТРК (МРК, ГНК) : 12 [15:52:58]line Товар: 2710124130 [15:52:58]line Аи-92-К-3 [15:52:58]line 10.000 * 0.00 [15:52:58]line = 0.00 [15:52:58]line НДС 12% НСП 1% [15:52:58]line > о реализуемом товаре [15:52:58]line ИТОГО: 0.00 [15:52:58]line НСП 1% : 0.00 [15:52:58]line НДС 12% : 0.00 [15:52:58]line Наличными: 0.00 [15:52:58]line Безнал.: 0.00 [15:52:58]line Место: АЗС № 86 "Партнер Нефть" [15:52:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:52:58]line СНО: Общий режим [15:52:58]line Чек 258 23.10.2024 15:52 [15:52:58]line Смена: 462 ФФД: 1.0 [15:52:58]line ЗНМ: 0300000155 [15:52:58]line РНМ: 0000000000100030 [15:52:58]line Версия ККМ: 001 [15:52:58]line Талоны: Топливные Талоны [15:52:58]line 3913857 [15:52:58]line ФМ: 0000000000965340 [15:52:58]line ФД: 188800 [15:52:58]line ФПД: 163726288342110 [15:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155257&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188800&fm=163726288342110&tin=02508201610067®Number=0000000000100030&sum=0 [15:52:58]written 0, free lines is 4095 [15:52:58]OFD Sender: Processing packet 188800 [packets to send 1062, broken 1061] [15:52:58]ProducePacketName [15:52:58]name=ofd_packets/00188800 [15:52:58]OFD Sender: To server: pG, [15:52:58]CommunicateWithHost lk.salyk.kg:30040 [15:52:58]ConnectInit lk.salyk.kg [15:52:58]Connected sock=10 [15:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 75 F5 07 01 A2 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 D9 1B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E1 02 00 35 04 06 00 94 E8 7F 41 CC 5E 6F A2 5F 10 92 17 13 24 [15:52:58]Write to MH i2c: 01 00 00 10 0E 1E [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: 01 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: 01 07 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 7D 0C AE [15:52:58]RasterBufferAndPrint [15:52:58]line [15:52:58]line [15:52:58]line [15:52:58]line [15:52:58]line [15:52:58]written 0, free lines is 3201 [15:52:58]MH_Cut [15:52:58]Write to MH i2c: D1 01 00 17 0E 01 F7 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: D1 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: D1 01 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: D1 01 00 17 0E 00 F6 [15:52:58]Write to MH i2c: 01 00 00 18 0E 26 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F8 84 47 00 3F 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 36 35 33 34 30 10 04 04 00 80 E1 02 00 F4 03 04 00 C3 C5 18 67 B6 04 01 00 00 0A 5B 83 54 9D AB 6C 52 [15:52:58]CommunicateWithHost err = 0 [15:52:58]CheckOFDResponse [15:52:58]1017 (14) - 77093643461234 [15:52:58]1041 (16) - 0000000000965340 [15:52:58]1040 (4) - 188800 [15:52:58]1012 (4) - 23.10.2024 09:45 [15:52:58]1206 (1) - 0 [15:52:58]OFD Sender: Remove packet 188800 [15:52:58]ProducePacketName [15:52:58]name=ofd_packets/00188800 [15:52:58]NVStorageDeleteData [15:52:59]OFD Sender: No OFD packet to send [15:52:59]*** Cut start [15:52:59]*** Partial cut [15:52:59]*** CUTSNS_PIN = 1 [15:52:59]*** CUTSNS_PIN = 0 [15:53:00]*** Brake cut motor [15:53:00]Read from MH i2c: 01 [15:53:00]MH_I2C_Read... [15:53:00]*** Stop cut motor [15:53:00]*** Cut end [15:53:00]Read from MH i2c: 01 07 00 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: 01 07 00 18 0E 00 00 00 00 00 FF 0F 3B [15:53:00]process_action close_receipt done [15:53:00]requested_data is exist [15:53:00]produce_requested_data [15:53:00]requested_item fm.sn is exist - process it [15:53:00]wFMCommunicate request_size=4 [15:53:00]MH_SAM_APDU [15:53:00]CAPDU: 80 11 00 00 [15:53:00]Write to MH i2c: E2 08 00 19 0E 80 11 00 00 00 00 00 00 A1 [15:53:00]Write i2c OK [15:53:00]MH_I2C_Read... [15:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:00]Read from MH i2c: E2 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: E2 17 00 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: E2 17 00 19 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [15:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:53:00]wFMCommunicate OK [15:53:00]requested_item fd.num is exist - process it [15:53:00]SAM_PROTO_GetFieldsCounters [15:53:00]wFMCommunicate request_size=4 [15:53:00]MH_SAM_APDU [15:53:00]CAPDU: 80 13 00 00 [15:53:00]Write to MH i2c: E2 08 00 1A 0E 80 13 00 00 00 00 00 00 A4 [15:53:00]Write i2c OK [15:53:00]MH_I2C_Read... [15:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:00]Read from MH i2c: E2 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: E2 62 00 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: E2 62 00 1A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [15:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:00]wFMCommunicate OK [15:53:00]SAM_PROTO_GetFieldsCounters done [15:53:00]requested_item shift.num is exist - process it [15:53:00]requested_item shift.opened is exist - process it [15:53:00]req_shift_opened [15:53:00]FM_GetShiftState [15:53:00]SAM_PROTO_GetShiftState [15:53:00]wFMCommunicate request_size=4 [15:53:00]MH_SAM_APDU [15:53:00]CAPDU: 80 13 01 00 [15:53:00]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [15:53:00]Write i2c OK [15:53:00]MH_I2C_Read... [15:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:00]Read from MH i2c: E2 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: E2 0E 00 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8E [15:53:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:53:00]wFMCommunicate OK [15:53:00]SAM_PROTO_GetShiftState done [15:53:00]FM_GetShiftState done [15:53:00]req_shift_opened done [15:53:00]requested_item shift.open_date is exist - process it [15:53:00]req_shift_open_date [15:53:00]req_shift_open_date done [15:53:00]produce_requested_data done [15:53:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188800,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:53:00]process_action_free close_receipt [15:53:00]json_value_free [15:53:00]json_value_free done [15:53:00]process_json_proto returns [15:53:00]Send response to host [15:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188800,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:53:00]free response buf [15:53:00]execute_script done [15:53:00]execute_script returns [15:53:00]free content buf [15:53:00]Sock 9.Close socket [15:53:00]Sock 9.Thread stoped [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]accept exits with 7 [15:55:29]New connection [15:55:29]New thread 3067350372 created [15:55:29]Thread 3067207012 joined [15:55:29]Waiting for new connection... [15:55:29] Sock 7.Parse request [15:55:29]Sock 7.Check first char [15:55:29]Sock 7.First char is OK [15:55:29]request: POST /json_proto HTTP/1.0 [15:55:29]Method: POST [15:55:29]URL: /json_proto [15:55:29]Method is POST - this is cgi request [15:55:29]url: /json_proto [15:55:29]query_string will be loaded in cgi processing [15:55:29]execute_cgi json_proto POST (null) [15:55:29]execute_cgi path=json_proto method=POST [15:55:29]POST find Content-Length [15:55:29]Host: 172.17.42.131:8080 [15:55:29]Content-Length: 682 [15:55:29]Content-Type: application/json [15:55:29] [15:55:29]POST finish read [15:55:29]Found Content-Length = 682 [15:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:29]execute_script... [15:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:29]POST & json_proto [15:55:29]process_json_proto [15:55:29]json parsed OK: [15:55:29]protocol is kg_v1.0 [15:55:29]action value=close_receipt [15:55:29]process_action close_receipt [15:55:29]cmd_close_receipt [15:55:29]MH_GetDate [15:55:29]Write to MH i2c: F0 00 00 1C 0E 19 [15:55:29]Write i2c OK [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: F0 [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: F0 09 00 [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: F0 09 00 1C 0E 00 72 1C 19 67 A0 18 CA 66 18 [15:55:29]GetLastDocTimeStamp 1729698777 [15:55:29]current date 1729698930 [15:55:29]FM_GetShiftState [15:55:29]SAM_PROTO_GetShiftState [15:55:29]wFMCommunicate request_size=4 [15:55:29]MH_SAM_APDU [15:55:29]CAPDU: 80 13 01 00 [15:55:29]Write to MH i2c: E2 08 00 1D 0E 80 13 01 00 00 00 00 00 A8 [15:55:29]Write i2c OK [15:55:29]MH_I2C_Read... [15:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:29]Read from MH i2c: E2 [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: E2 0E 00 [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: E2 0E 00 1D 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 90 [15:55:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:55:29]wFMCommunicate OK [15:55:29]SAM_PROTO_GetShiftState done [15:55:29]FM_GetShiftState done [15:55:29]opened in 1729642525 [15:55:29]opened+sec_in_day 1729728925 [15:55:29]quantity*price = 300064 [15:55:29]sum+1 = 300066 [15:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 259 23.10.2024 15:55 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188801 ФПД: 267542246249089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188801&fm=267542246249089&tin=02508201610067®Number=0000000000100030&sum=300000 [15:55:31]StoreToDocumentArchive [15:55:31]shift 462 fd 188801 [15:55:31]save to /storage/0462/doc_00188801 [15:55:31]save last doc name /storage/0462/doc_00188801 to /storage/kkm_last_doc_name [15:55:31]save OK [15:55:31]Clear old archive folders... [15:55:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:31]tlvbuf is 01155720 [15:55:31]SAM_PROTO_ClearQueue [15:55:31]wFMCommunicate request_size=4 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 09 00 00 [15:55:31]Write to MH i2c: E2 08 00 2A 0E 80 09 00 00 00 00 00 00 AA [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [15:55:31]RAPDU: 90 00 [15:55:31]wFMCommunicate OK [15:55:31]SAM_PROTO_ClearQueue done [15:55:31]KKMCreateOFDPacket [15:55:31]OFDProtocolAddRootSTLVToBuf [15:55:31]FM_MakeSignedData [15:55:31]FM_MakeSignedData [15:55:31]SAM_PROTO_SignData [15:55:31]wFMCommunicate request_size=4 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 0D 01 02 [15:55:31]Write to MH i2c: E2 08 00 2B 0E 80 0D 01 02 00 00 00 00 B2 [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [15:55:31]RAPDU: 90 00 [15:55:31]wFMCommunicate OK [15:55:31]wFMCommunicate request_size=255 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 72 1C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E1 02 00 35 04 06 00 F3 [15:55:31]Write to MH i2c: E2 02 01 2C 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 72 1C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E1 02 00 35 04 06 00 F3 00 00 8E [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [15:55:31]RAPDU: 90 00 [15:55:31]wFMCommunicate OK [15:55:31]wFMCommunicate request_size=10 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 0D 02 02 05 54 08 8C D2 81 [15:55:31]Write to MH i2c: E2 0D 00 2D 0E 80 0D 02 02 05 00 54 08 8C D2 81 00 00 FA [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [15:55:31]RAPDU: 90 00 [15:55:31]wFMCommunicate OK [15:55:31]wFMCommunicate request_size=4 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 0D 03 02 [15:55:31]Write to MH i2c: E2 08 00 2E 0E 80 0D 03 02 00 00 00 00 B7 [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 0B 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 0B 00 2E 0E 00 B5 5B 48 D9 95 1F 86 E4 90 00 07 [15:55:31]RAPDU: B5 5B 48 D9 95 1F 86 E4 90 00 [15:55:31]wFMCommunicate OK [15:55:31]SAM_PROTO_SignData done [15:55:31]FM_MakeSignedData done [15:55:31]CreateOFDProtocolMessage [15:55:31]wFMCommunicate request_size=4 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 11 00 00 [15:55:31]Write to MH i2c: E2 08 00 2F 0E 80 11 00 00 00 00 00 00 B7 [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 17 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 17 00 2F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [15:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:55:31]wFMCommunicate OK [15:55:31]CreateOFDProtocolMessage done [15:55:31]OFDSenderStorePacket 188801 [15:55:31]StoreOFDPacket docnum=188801 [15:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 AC 07 01 0E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 72 1C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E1 02 00 35 04 06 00 F3 54 08 8C D2 81 B5 5B 48 D9 95 1F 86 E4 [15:55:31]CheckFolder [15:55:31]dirname=/storage/ofd_packets [15:55:31]CheckFolder done [15:55:31]ProducePacketName [15:55:31]name=ofd_packets/00188801 [15:55:31]NVStorageSaveData ofd_packets/00188801 [15:55:31]File name is /storage/ofd_packets/00188801 [15:55:31]Write 301 bytes [15:55:31]NVStorageSaveData done [15:55:31]OFDSenderStorePacket done [15:55:31]KKMCreateOFDPacket done [15:55:31]NVStorageSaveData kkm_last_timestamp [15:55:31]File name is /storage/kkm_last_timestamp [15:55:31]Write 4 bytes [15:55:31]NVStorageSaveData done [15:55:31]ExternCall_PrintAddStr [15:55:31]wPrintStart [15:55:31]Write to MH i2c: 01 00 00 30 0E 3E [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: 01 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: 01 07 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: 01 07 00 30 0E 00 00 00 00 00 FF 0F 53 [15:55:31]RasterBufferAndPrint [15:55:31]line Счет N : (1)210861 [15:55:31]line ИНН: 02508201610067 [15:55:31]line Контрольно-Кассовый Чек [15:55:31]line ПРОДАЖА [15:55:31]line ТРК (МРК, ГНК) : 33 [15:55:31]line Товар: 2710124500 [15:55:31]line Аи-95-К-3 [15:55:31]line 40.440 * 74.20 [15:55:31]line = 3000.65 [15:55:31]line НДС 12% НСП 1% [15:55:31]line > о реализуемом товаре [15:55:31]line ОКРУГЛЕНИЕ: -0.65 [15:55:31]line ИТОГО: 3000.00 [15:55:31]line Внесено: 3000.00 [15:55:31]line СДАЧА: 0.00 [15:55:31]line НСП 1% : 26.55 [15:55:31]line НДС 12% : 318.65 [15:55:31]line Наличными: 3000.00 [15:55:31]line Безнал.: 0.00 [15:55:31]line Место: АЗС № 86 "Партнер Нефть" [15:55:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:55:31]line СНО: Общий режим [15:55:31]line Чек 259 23.10.2024 15:55 [15:55:31]line Смена: 462 ФФД: 1.0 [15:55:31]line ЗНМ: 0300000155 [15:55:31]line РНМ: 0000000000100030 [15:55:31]line Версия ККМ: 001 [15:55:31]line ФМ: 0000000000965340 [15:55:31]line ФД: 188801 [15:55:31]line ФПД: 267542246249089 [15:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188801&fm=267542246249089&tin=02508201610067®Number=0000000000100030&sum=300000 [15:55:31]written 0, free lines is 4095 [15:55:31]OFD Sender: Processing packet 188801 [packets to send 1062, broken 1061] [15:55:31]ProducePacketName [15:55:31]name=ofd_packets/00188801 [15:55:31]OFD Sender: To server: pG, [15:55:31]CommunicateWithHost lk.salyk.kg:30040 [15:55:31]ConnectInit lk.salyk.kg [15:55:31]Connected sock=10 [15:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 AC 07 01 0E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 72 1C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E1 02 00 35 04 06 00 F3 54 08 8C D2 81 B5 5B 48 D9 95 1F 86 E4 [15:55:32]Write to MH i2c: 01 00 00 5B 0E 69 [15:55:32]Write i2c OK [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: 01 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: 01 07 00 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: 01 07 00 5B 0E 00 00 00 00 00 61 0C DD [15:55:32]RasterBufferAndPrint [15:55:32]line [15:55:32]line [15:55:32]line [15:55:32]line [15:55:32]line [15:55:32]written 0, free lines is 3173 [15:55:32]MH_Cut [15:55:32]Write to MH i2c: D1 01 00 62 0E 01 42 [15:55:32]Write i2c OK [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: D1 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: D1 01 00 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: D1 01 00 62 0E 00 41 [15:55:32]Write to MH i2c: 01 00 00 63 0E 71 [15:55:32]Write i2c OK [15:55:32]MH_I2C_Read... [15:55:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B6 C6 47 00 69 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E1 02 00 F4 03 04 00 5D C6 18 67 B6 04 01 00 00 2A 03 07 B9 A7 F7 91 91 [15:55:32]CommunicateWithHost err = 0 [15:55:32]CheckOFDResponse [15:55:32]1017 (14) - 77093643461234 [15:55:32]1041 (16) - 0000000000965340 [15:55:32]1040 (4) - 188801 [15:55:32]1012 (4) - 23.10.2024 09:48 [15:55:32]1206 (1) - 0 [15:55:32]OFD Sender: Remove packet 188801 [15:55:32]ProducePacketName [15:55:32]name=ofd_packets/00188801 [15:55:32]NVStorageDeleteData [15:55:32]OFD Sender: No OFD packet to send [15:55:33]*** Cut start [15:55:33]*** Partial cut [15:55:33]*** CUTSNS_PIN = 1 [15:55:33]*** CUTSNS_PIN = 0 [15:55:33]*** Brake cut motor [15:55:33]Read from MH i2c: 01 [15:55:33]MH_I2C_Read... [15:55:33]*** Stop cut motor [15:55:33]*** Cut end [15:55:33]Read from MH i2c: 01 07 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: 01 07 00 63 0E 00 00 00 00 00 FF 0F 86 [15:55:33]process_action close_receipt done [15:55:33]requested_data is exist [15:55:33]produce_requested_data [15:55:33]requested_item fm.sn is exist - process it [15:55:33]wFMCommunicate request_size=4 [15:55:33]MH_SAM_APDU [15:55:33]CAPDU: 80 11 00 00 [15:55:33]Write to MH i2c: E2 08 00 64 0E 80 11 00 00 00 00 00 00 EC [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:34]Read from MH i2c: E2 [15:55:34]MH_I2C_Read... [15:55:34]Read from MH i2c: E2 17 00 [15:55:34]MH_I2C_Read... [15:55:34]Read from MH i2c: E2 17 00 64 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [15:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:55:34]wFMCommunicate OK [15:55:34]requested_item fd.num is exist - process it [15:55:34]SAM_PROTO_GetFieldsCounters [15:55:34]wFMCommunicate request_size=4 [15:55:34]MH_SAM_APDU [15:55:34]CAPDU: 80 13 00 00 [15:55:34]Write to MH i2c: E2 08 00 65 0E 80 13 00 00 00 00 00 00 EF [15:55:34]Write i2c OK [15:55:34]MH_I2C_Read... [15:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:34]Read from MH i2c: E2 [15:55:34]MH_I2C_Read... [15:55:34]Read from MH i2c: E2 62 00 [15:55:34]MH_I2C_Read... [15:55:34]Read from MH i2c: E2 62 00 65 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [15: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:34]wFMCommunicate OK [15:55:34]SAM_PROTO_GetFieldsCounters done [15:55:34]requested_item shift.num is exist - process it [15:55:34]requested_item shift.opened is exist - process it [15:55:34]req_shift_opened [15:55:34]FM_GetShiftState [15:55:34]SAM_PROTO_GetShiftState [15:55:34]wFMCommunicate request_size=4 [15:55:34]MH_SAM_APDU [15:55:34]CAPDU: 80 13 01 00 [15:55:34]Write to MH i2c: E2 08 00 66 0E 80 13 01 00 00 00 00 00 F1 [15:55:34]Write i2c OK [15:55:34]MH_I2C_Read... [15:55:34]Read from MH i2c: E2 [15:55:34]MH_I2C_Read... [15:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:34]Read from MH i2c: E2 0E 00 [15:55:34]MH_I2C_Read... [15:55:34]Read from MH i2c: E2 0E 00 66 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D9 [15:55:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:55:34]wFMCommunicate OK [15:55:34]SAM_PROTO_GetShiftState done [15:55:34]FM_GetShiftState done [15:55:34]req_shift_opened done [15:55:34]requested_item shift.open_date is exist - process it [15:55:34]req_shift_open_date [15:55:34]req_shift_open_date done [15:55:34]produce_requested_data done [15:55:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188801,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:55:34]process_action_free close_receipt [15:55:34]json_value_free [15:55:34]json_value_free done [15:55:34]process_json_proto returns [15:55:34]Send response to host [15:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188801,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:55:34]free response buf [15:55:34]execute_script done [15:55:34]execute_script returns [15:55:34]free content buf [15:55:34]Sock 7.Close socket [15:55:34]Sock 7.Thread stoped [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:31]accept exits with 9 [15:56:31]New connection [15:56:31]New thread 3067207012 created [15:56:31]Thread 3067350372 joined [15:56:31]Waiting for new connection... [15:56:31] Sock 9.Parse request [15:56:31]Sock 9.Check first char [15:56:31]Sock 9.First char is OK [15:56:31]request: POST /json_proto HTTP/1.0 [15:56:31]Method: POST [15:56:31]URL: /json_proto [15:56:31]Method is POST - this is cgi request [15:56:31]url: /json_proto [15:56:31]query_string will be loaded in cgi processing [15:56:31]execute_cgi json_proto POST (null) [15:56:31]execute_cgi path=json_proto method=POST [15:56:31]POST find Content-Length [15:56:31]Host: 172.17.42.131:8080 [15:56:31]Content-Length: 674 [15:56:31]Content-Type: application/json [15:56:31] [15:56:31]POST finish read [15:56:31]Found Content-Length = 674 [15:56:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:31]execute_script... [15:56:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:31]POST & json_proto [15:56:31]process_json_proto [15:56:31]json parsed OK: [15:56:31]protocol is kg_v1.0 [15:56:31]action value=close_receipt [15:56:31]process_action close_receipt [15:56:31]cmd_close_receipt [15:56:31]MH_GetDate [15:56:31]Write to MH i2c: F0 00 00 67 0E 64 [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: F0 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: F0 09 00 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: F0 09 00 67 0E 00 B0 1C 19 67 A0 18 CA 66 A1 [15:56:31]GetLastDocTimeStamp 1729698930 [15:56:31]current date 1729698992 [15:56:31]FM_GetShiftState [15:56:31]SAM_PROTO_GetShiftState [15:56:31]wFMCommunicate request_size=4 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 13 01 00 [15:56:31]Write to MH i2c: E2 08 00 68 0E 80 13 01 00 00 00 00 00 F3 [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:31]Read from MH i2c: E2 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 0E 00 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 0E 00 68 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DB [15:56:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:56:31]wFMCommunicate OK [15:56:31]SAM_PROTO_GetShiftState done [15:56:31]FM_GetShiftState done [15:56:31]opened in 1729642525 [15:56:31]opened+sec_in_day 1729728925 [15:56:31]quantity*price = 60045 [15:56:31]sum+1 = 60047 [15:56:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 260 23.10.2024 15:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188802 ФПД: 260368651867771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155632&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188802&fm=260368651867771&tin=02508201610067®Number=0000000000100030&sum=60000 [15:56:32]StoreToDocumentArchive [15:56:32]shift 462 fd 188802 [15:56:32]save to /storage/0462/doc_00188802 [15:56:32]save last doc name /storage/0462/doc_00188802 to /storage/kkm_last_doc_name [15:56:32]save OK [15:56:32]Clear old archive folders... [15:56:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:56:32]tlvbuf is 01144150 [15:56:32]SAM_PROTO_ClearQueue [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 09 00 00 [15:56:32]Write to MH i2c: E2 08 00 75 0E 80 09 00 00 00 00 00 00 F5 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [15:56:32]RAPDU: 90 00 [15:56:32]wFMCommunicate OK [15:56:32]SAM_PROTO_ClearQueue done [15:56:32]KKMCreateOFDPacket [15:56:32]OFDProtocolAddRootSTLVToBuf [15:56:32]FM_MakeSignedData [15:56:32]FM_MakeSignedData [15:56:32]SAM_PROTO_SignData [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 0D 01 02 [15:56:32]Write to MH i2c: E2 08 00 76 0E 80 0D 01 02 00 00 00 00 FD [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 76 0E 00 90 00 F8 [15:56:32]RAPDU: 90 00 [15:56:32]wFMCommunicate OK [15:56:32]wFMCommunicate request_size=255 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 B0 1C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E1 02 00 35 04 06 00 EC CD CD 01 [15:56:32]Write to MH i2c: E2 02 01 77 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 B0 1C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E1 02 00 35 04 06 00 EC CD CD 01 00 00 35 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:33]OFD Sender: No OFD packet to send [15:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 03 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 03 00 77 0E 00 90 00 F9 [15:56:33]RAPDU: 90 00 [15:56:33]wFMCommunicate OK [15:56:33]wFMCommunicate request_size=7 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 0D 02 02 02 56 7B [15:56:33]Write to MH i2c: E2 0A 00 78 0E 80 0D 02 02 02 00 56 7B 00 00 D5 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 03 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 03 00 78 0E 00 90 00 FA [15:56:33]RAPDU: 90 00 [15:56:33]wFMCommunicate OK [15:56:33]wFMCommunicate request_size=4 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 0D 03 02 [15:56:33]Write to MH i2c: E2 08 00 79 0E 80 0D 03 02 00 00 00 00 02 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 0B 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 0B 00 79 0E 00 D1 52 DB 86 AB FA 69 37 90 00 CC [15:56:33]RAPDU: D1 52 DB 86 AB FA 69 37 90 00 [15:56:33]wFMCommunicate OK [15:56:33]SAM_PROTO_SignData done [15:56:33]FM_MakeSignedData done [15:56:33]CreateOFDProtocolMessage [15:56:33]wFMCommunicate request_size=4 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 11 00 00 [15:56:33]Write to MH i2c: E2 08 00 7A 0E 80 11 00 00 00 00 00 00 02 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 17 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 17 00 7A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [15:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:56:33]wFMCommunicate OK [15:56:33]CreateOFDProtocolMessage done [15:56:33]OFDSenderStorePacket 188802 [15:56:33]StoreOFDPacket docnum=188802 [15:56:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E1 91 04 01 31 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 B0 1C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E1 02 00 35 04 06 00 EC CD CD 01 56 7B D1 52 DB 86 AB FA 69 37 [15:56:33]CheckFolder [15:56:33]dirname=/storage/ofd_packets [15:56:33]CheckFolder done [15:56:33]ProducePacketName [15:56:33]name=ofd_packets/00188802 [15:56:33]NVStorageSaveData ofd_packets/00188802 [15:56:33]File name is /storage/ofd_packets/00188802 [15:56:33]Write 298 bytes [15:56:33]NVStorageSaveData done [15:56:33]OFDSenderStorePacket done [15:56:33]KKMCreateOFDPacket done [15:56:33]NVStorageSaveData kkm_last_timestamp [15:56:33]File name is /storage/kkm_last_timestamp [15:56:33]Write 4 bytes [15:56:33]NVStorageSaveData done [15:56:33]ExternCall_PrintAddStr [15:56:33]wPrintStart [15:56:33]Write to MH i2c: 01 00 00 7B 0E 89 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 07 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 07 00 7B 0E 00 00 00 00 00 FF 0F 9E [15:56:33]RasterBufferAndPrint [15:56:33]line Счет N : (1)210862 [15:56:33]line ИНН: 02508201610067 [15:56:33]line Контрольно-Кассовый Чек [15:56:33]line ПРОДАЖА [15:56:33]line ТРК (МРК, ГНК) : 51 [15:56:33]line Товар: 2710194210 [15:56:33]line ДТ-К-5 [15:56:33]line 7.880 * 76.20 [15:56:33]line = 600.46 [15:56:33]line НДС 12% НСП 1% [15:56:33]line > о реализуемом товаре [15:56:33]line ОКРУГЛЕНИЕ: -0.46 [15:56:33]line ИТОГО: 600.00 [15:56:33]line Внесено: 600.00 [15:56:33]line СДАЧА: 0.00 [15:56:33]line НСП 1% : 5.31 [15:56:33]line НДС 12% : 63.77 [15:56:33]line Наличными: 600.00 [15:56:33]line Безнал.: 0.00 [15:56:33]line Место: АЗС № 86 "Партнер Нефть" [15:56:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:56:33]line СНО: Общий режим [15:56:33]line Чек 260 23.10.2024 15:56 [15:56:33]line Смена: 462 ФФД: 1.0 [15:56:33]line ЗНМ: 0300000155 [15:56:33]line РНМ: 0000000000100030 [15:56:33]line Версия ККМ: 001 [15:56:33]line ФМ: 0000000000965340 [15:56:33]line ФД: 188802 [15:56:33]line ФПД: 260368651867771 [15:56:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155632&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188802&fm=260368651867771&tin=02508201610067®Number=0000000000100030&sum=60000 [15:56:33]written 0, free lines is 4095 [15:56:33]OFD Sender: Processing packet 188802 [packets to send 1062, broken 1061] [15:56:33]ProducePacketName [15:56:33]name=ofd_packets/00188802 [15:56:33]OFD Sender: To server: pG, [15:56:33]CommunicateWithHost lk.salyk.kg:30040 [15:56:33]ConnectInit lk.salyk.kg [15:56:33]Connected sock=10 [15:56:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E1 91 04 01 31 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 B0 1C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E1 02 00 35 04 06 00 EC CD CD 01 56 7B D1 52 DB 86 AB FA 69 37 [15:56:33]Write to MH i2c: 01 00 00 A6 0E B4 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 07 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 65 0C 2C [15:56:33]RasterBufferAndPrint [15:56:33]line [15:56:33]line [15:56:33]line [15:56:33]line [15:56:33]line [15:56:33]written 0, free lines is 3176 [15:56:33]MH_Cut [15:56:33]Write to MH i2c: D1 01 00 AD 0E 01 8D [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: D1 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: D1 01 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: D1 01 00 AD 0E 00 8C [15:56:33]Write to MH i2c: 01 00 00 AE 0E BC [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5A 62 47 00 0D 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 36 35 33 34 30 10 04 04 00 82 E1 02 00 F4 03 04 00 9A C6 18 67 B6 04 01 00 00 AF AA 14 4C D8 47 18 96 [15:56:33]CommunicateWithHost err = 0 [15:56:33]CheckOFDResponse [15:56:33]1017 (14) - 77093643461234 [15:56:33]1041 (16) - 0000000000965340 [15:56:33]1040 (4) - 188802 [15:56:33]1012 (4) - 23.10.2024 09:49 [15:56:33]1206 (1) - 0 [15:56:33]OFD Sender: Remove packet 188802 [15:56:33]ProducePacketName [15:56:33]name=ofd_packets/00188802 [15:56:33]NVStorageDeleteData [15:56:34]OFD Sender: No OFD packet to send [15:56:34]*** Cut start [15:56:34]*** Partial cut [15:56:34]*** CUTSNS_PIN = 1 [15:56:35]*** CUTSNS_PIN = 0 [15:56:35]*** Brake cut motor [15:56:35]Read from MH i2c: 01 [15:56:35]MH_I2C_Read... [15:56:35]*** Stop cut motor [15:56:35]*** Cut end [15:56:35]Read from MH i2c: 01 07 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 FF 0F D1 [15:56:35]process_action close_receipt done [15:56:35]requested_data is exist [15:56:35]produce_requested_data [15:56:35]requested_item fm.sn is exist - process it [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 11 00 00 [15:56:35]Write to MH i2c: E2 08 00 AF 0E 80 11 00 00 00 00 00 00 37 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 17 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 17 00 AF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [15:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:56:35]wFMCommunicate OK [15:56:35]requested_item fd.num is exist - process it [15:56:35]SAM_PROTO_GetFieldsCounters [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 13 00 00 [15:56:35]Write to MH i2c: E2 08 00 B0 0E 80 13 00 00 00 00 00 00 3A [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 62 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 62 00 B0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [15:56:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:35]wFMCommunicate OK [15:56:35]SAM_PROTO_GetFieldsCounters done [15:56:35]requested_item shift.num is exist - process it [15:56:35]requested_item shift.opened is exist - process it [15:56:35]req_shift_opened [15:56:35]FM_GetShiftState [15:56:35]SAM_PROTO_GetShiftState [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 13 01 00 [15:56:35]Write to MH i2c: E2 08 00 B1 0E 80 13 01 00 00 00 00 00 3C [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 0E 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 0E 00 B1 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 24 [15:56:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [15:56:35]wFMCommunicate OK [15:56:35]SAM_PROTO_GetShiftState done [15:56:35]FM_GetShiftState done [15:56:35]req_shift_opened done [15:56:35]requested_item shift.open_date is exist - process it [15:56:35]req_shift_open_date [15:56:35]req_shift_open_date done [15:56:35]produce_requested_data done [15:56:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188802,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [15:56:35]process_action_free close_receipt [15:56:35]json_value_free [15:56:35]json_value_free done [15:56:35]process_json_proto returns [15:56:35]Send response to host [15:56:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188802,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [15:56:35]free response buf [15:56:35]execute_script done [15:56:35]execute_script returns [15:56:35]free content buf [15:56:35]Sock 9.Close socket [15:56:35]Sock 9.Thread stoped [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:27]accept exits with 7 [16:02:27]New connection [16:02:27]New thread 3067350372 created [16:02:27]Thread 3067207012 joined [16:02:27]Waiting for new connection... [16:02:27] Sock 7.Parse request [16:02:27]Sock 7.Check first char [16:02:27]Sock 7.First char is OK [16:02:27]request: POST /json_proto HTTP/1.0 [16:02:27]Method: POST [16:02:27]URL: /json_proto [16:02:27]Method is POST - this is cgi request [16:02:27]url: /json_proto [16:02:27]query_string will be loaded in cgi processing [16:02:27]execute_cgi json_proto POST (null) [16:02:27]execute_cgi path=json_proto method=POST [16:02:27]POST find Content-Length [16:02:27]Host: 172.17.42.131:8080 [16:02:27]Content-Length: 682 [16:02:27]Content-Type: application/json [16:02:27] [16:02:27]POST finish read [16:02:27]Found Content-Length = 682 [16:02:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:27]execute_script... [16:02:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:27]POST & json_proto [16:02:27]process_json_proto [16:02:27]json parsed OK: [16:02:27]protocol is kg_v1.0 [16:02:27]action value=close_receipt [16:02:27]process_action close_receipt [16:02:27]cmd_close_receipt [16:02:27]MH_GetDate [16:02:27]Write to MH i2c: F0 00 00 B2 0E AF [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: F0 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: F0 09 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: F0 09 00 B2 0E 00 14 1E 19 67 A0 18 CA 66 52 [16:02:27]GetLastDocTimeStamp 1729698992 [16:02:27]current date 1729699348 [16:02:27]FM_GetShiftState [16:02:27]SAM_PROTO_GetShiftState [16:02:27]wFMCommunicate request_size=4 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 13 01 00 [16:02:27]Write to MH i2c: E2 08 00 B3 0E 80 13 01 00 00 00 00 00 3E [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 0E 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 0E 00 B3 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 26 [16:02:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:02:27]wFMCommunicate OK [16:02:27]SAM_PROTO_GetShiftState done [16:02:27]FM_GetShiftState done [16:02:27]opened in 1729642525 [16:02:27]opened+sec_in_day 1729728925 [16:02:27]quantity*price = 100015 [16:02:27]sum+1 = 100017 [16:02:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 261 23.10.2024 16:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188803 ФПД: 104876944621395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160228&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188803&fm=104876944621395&tin=02508201610067®Number=0000000000100030&sum=100000 [16:02:29]StoreToDocumentArchive [16:02:29]shift 462 fd 188803 [16:02:29]save to /storage/0462/doc_00188803 [16:02:29]save last doc name /storage/0462/doc_00188803 to /storage/kkm_last_doc_name [16:02:29]save OK [16:02:29]Clear old archive folders... [16:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:29]tlvbuf is 01155AB0 [16:02:29]SAM_PROTO_ClearQueue [16:02:29]wFMCommunicate request_size=4 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 09 00 00 [16:02:29]Write to MH i2c: E2 08 00 C0 0E 80 09 00 00 00 00 00 00 40 [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 03 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [16:02:29]RAPDU: 90 00 [16:02:29]wFMCommunicate OK [16:02:29]SAM_PROTO_ClearQueue done [16:02:29]KKMCreateOFDPacket [16:02:29]OFDProtocolAddRootSTLVToBuf [16:02:29]FM_MakeSignedData [16:02:29]FM_MakeSignedData [16:02:29]SAM_PROTO_SignData [16:02:29]wFMCommunicate request_size=4 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 0D 01 02 [16:02:29]Write to MH i2c: E2 08 00 C1 0E 80 0D 01 02 00 00 00 00 48 [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 03 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [16:02:29]RAPDU: 90 00 [16:02:29]wFMCommunicate OK [16:02:29]wFMCommunicate request_size=255 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 14 1E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E1 02 00 35 04 06 00 5F [16:02:29]Write to MH i2c: E2 02 01 C2 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 14 1E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E1 02 00 35 04 06 00 5F 00 00 01 [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 03 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [16:02:29]RAPDU: 90 00 [16:02:29]wFMCommunicate OK [16:02:29]wFMCommunicate request_size=10 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 0D 02 02 05 62 91 07 7F 53 [16:02:29]Write to MH i2c: E2 0D 00 C3 0E 80 0D 02 02 05 00 62 91 07 7F 53 00 00 21 [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 03 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 03 00 C3 0E 00 90 00 45 [16:02:29]RAPDU: 90 00 [16:02:29]wFMCommunicate OK [16:02:29]wFMCommunicate request_size=4 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 0D 03 02 [16:02:29]Write to MH i2c: E2 08 00 C4 0E 80 0D 03 02 00 00 00 00 4D [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 0B 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 0B 00 C4 0E 00 55 93 E5 C6 86 8C AD 83 90 00 23 [16:02:29]RAPDU: 55 93 E5 C6 86 8C AD 83 90 00 [16:02:29]wFMCommunicate OK [16:02:29]SAM_PROTO_SignData done [16:02:29]FM_MakeSignedData done [16:02:29]CreateOFDProtocolMessage [16:02:29]wFMCommunicate request_size=4 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 11 00 00 [16:02:29]Write to MH i2c: E2 08 00 C5 0E 80 11 00 00 00 00 00 00 4D [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 17 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 17 00 C5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [16:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:02:29]wFMCommunicate OK [16:02:29]CreateOFDProtocolMessage done [16:02:29]OFDSenderStorePacket 188803 [16:02:29]StoreOFDPacket docnum=188803 [16:02:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 55 07 01 EF B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 14 1E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E1 02 00 35 04 06 00 5F 62 91 07 7F 53 55 93 E5 C6 86 8C AD 83 [16:02:29]CheckFolder [16:02:29]dirname=/storage/ofd_packets [16:02:29]CheckFolder done [16:02:29]ProducePacketName [16:02:29]name=ofd_packets/00188803 [16:02:29]NVStorageSaveData ofd_packets/00188803 [16:02:29]File name is /storage/ofd_packets/00188803 [16:02:29]Write 301 bytes [16:02:29]NVStorageSaveData done [16:02:29]OFDSenderStorePacket done [16:02:29]KKMCreateOFDPacket done [16:02:29]NVStorageSaveData kkm_last_timestamp [16:02:29]File name is /storage/kkm_last_timestamp [16:02:29]Write 4 bytes [16:02:29]NVStorageSaveData done [16:02:29]ExternCall_PrintAddStr [16:02:29]wPrintStart [16:02:29]Write to MH i2c: 01 00 00 C6 0E D4 [16:02:29]OFD Sender: Processing packet 188803 [packets to send 1062, broken 1061] [16:02:29]ProducePacketName [16:02:29]name=ofd_packets/00188803 [16:02:29]OFD Sender: To server: pG, [16:02:29]CommunicateWithHost lk.salyk.kg:30040 [16:02:29]ConnectInit lk.salyk.kg [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 07 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 07 00 C6 0E 00 00 00 00 00 FF 0F E9 [16:02:29]RasterBufferAndPrint [16:02:29]line Счет N : (1)210863 [16:02:29]line ИНН: 02508201610067 [16:02:29]line Контрольно-Кассовый Чек [16:02:29]line ПРОДАЖА [16:02:29]line ТРК (МРК, ГНК) : 42 [16:02:29]line Товар: 2710124130 [16:02:29]line Аи-92-К-3 [16:02:29]line 14.950 * 66.90 [16:02:29]line = 1000.16 [16:02:29]line НДС 12% НСП 1% [16:02:29]line > о реализуемом товаре [16:02:29]line ОКРУГЛЕНИЕ: -0.16 [16:02:29]line ИТОГО: 1000.00 [16:02:29]line Внесено: 1000.00 [16:02:29]line СДАЧА: 0.00 [16:02:29]line НСП 1% : 8.85 [16:02:29]line НДС 12% : 106.21 [16:02:29]line Наличными: 1000.00 [16:02:29]line Безнал.: 0.00 [16:02:29]line Место: АЗС № 86 "Партнер Нефть" [16:02:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:02:29]line СНО: Общий режим [16:02:29]line Чек 261 23.10.2024 16:02 [16:02:29]line Смена: 462 ФФД: 1.0 [16:02:29]line ЗНМ: 0300000155 [16:02:29]line РНМ: 0000000000100030 [16:02:29]line Версия ККМ: 001 [16:02:29]line ФМ: 0000000000965340 [16:02:29]line ФД: 188803 [16:02:29]line ФПД: 104876944621395 [16:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160228&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188803&fm=104876944621395&tin=02508201610067®Number=0000000000100030&sum=100000 [16:02:29]written 0, free lines is 4095 [16:02:30]Write to MH i2c: 01 00 00 F1 0E FF [16:02:30]Write i2c OK [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 07 00 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 07 00 F1 0E 00 00 00 00 00 56 0C 68 [16:02:30]RasterBufferAndPrint [16:02:30]line [16:02:30]line [16:02:30]line [16:02:30]line [16:02:30]line [16:02:30]written 0, free lines is 3161 [16:02:30]MH_Cut [16:02:30]Write to MH i2c: D1 01 00 F8 0E 01 D8 [16:02:30]Write i2c OK [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: D1 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: D1 01 00 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: D1 01 00 F8 0E 00 D7 [16:02:30]Write to MH i2c: 01 00 00 F9 0E 07 [16:02:30]Write i2c OK [16:02:30]MH_I2C_Read... [16:02:31]*** Cut start [16:02:31]*** Partial cut [16:02:31]*** CUTSNS_PIN = 1 [16:02:31]*** CUTSNS_PIN = 0 [16:02:31]*** Brake cut motor [16:02:32]Read from MH i2c: 01 [16:02:32]MH_I2C_Read... [16:02:32]*** Stop cut motor [16:02:32]*** Cut end [16:02:32]Read from MH i2c: 01 07 00 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: 01 07 00 F9 0E 00 00 00 00 00 FF 0F 1C [16:02:32]process_action close_receipt done [16:02:32]requested_data is exist [16:02:32]produce_requested_data [16:02:32]requested_item fm.sn is exist - process it [16:02:32]wFMCommunicate request_size=4 [16:02:32]MH_SAM_APDU [16:02:32]CAPDU: 80 11 00 00 [16:02:32]Write to MH i2c: E2 08 00 FA 0E 80 11 00 00 00 00 00 00 82 [16:02:32]Write i2c OK [16:02:32]MH_I2C_Read... [16:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:32]Read from MH i2c: E2 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 17 00 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 17 00 FA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [16:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:02:32]wFMCommunicate OK [16:02:32]requested_item fd.num is exist - process it [16:02:32]SAM_PROTO_GetFieldsCounters [16:02:32]wFMCommunicate request_size=4 [16:02:32]MH_SAM_APDU [16:02:32]CAPDU: 80 13 00 00 [16:02:32]Write to MH i2c: E2 08 00 FB 0E 80 13 00 00 00 00 00 00 85 [16:02:32]Write i2c OK [16:02:32]MH_I2C_Read... [16:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:32]Read from MH i2c: E2 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 62 00 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 62 00 FB 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [16:02:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:32]wFMCommunicate OK [16:02:32]SAM_PROTO_GetFieldsCounters done [16:02:32]requested_item shift.num is exist - process it [16:02:32]requested_item shift.opened is exist - process it [16:02:32]req_shift_opened [16:02:32]FM_GetShiftState [16:02:32]SAM_PROTO_GetShiftState [16:02:32]wFMCommunicate request_size=4 [16:02:32]MH_SAM_APDU [16:02:32]CAPDU: 80 13 01 00 [16:02:32]Write to MH i2c: E2 08 00 FC 0E 80 13 01 00 00 00 00 00 87 [16:02:32]Write i2c OK [16:02:32]MH_I2C_Read... [16:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:32]Read from MH i2c: E2 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 0E 00 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 0E 00 FC 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6F [16:02:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:02:32]wFMCommunicate OK [16:02:32]SAM_PROTO_GetShiftState done [16:02:32]FM_GetShiftState done [16:02:32]req_shift_opened done [16:02:32]requested_item shift.open_date is exist - process it [16:02:32]req_shift_open_date [16:02:32]req_shift_open_date done [16:02:32]produce_requested_data done [16:02:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188803,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:02:32]process_action_free close_receipt [16:02:32]json_value_free [16:02:32]json_value_free done [16:02:32]process_json_proto returns [16:02:32]Send response to host [16:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188803,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:02:32]free response buf [16:02:32]execute_script done [16:02:32]execute_script returns [16:02:32]free content buf [16:02:32]Sock 7.Close socket [16:02:32]Sock 7.Thread stoped [16:02:56]accept exits with 9 [16:02:56]New connection [16:02:56]New thread 3067207012 created [16:02:56]Thread 3067350372 joined [16:02:56]Waiting for new connection... [16:02:56] Sock 9.Parse request [16:02:56]Sock 9.Check first char [16:02:56]Sock 9.First char is OK [16:02:56]request: POST /json_proto HTTP/1.0 [16:02:56]Method: POST [16:02:56]URL: /json_proto [16:02:56]Method is POST - this is cgi request [16:02:56]url: /json_proto [16:02:56]query_string will be loaded in cgi processing [16:02:56]execute_cgi json_proto POST (null) [16:02:56]execute_cgi path=json_proto method=POST [16:02:56]POST find Content-Length [16:02:56]Host: 172.17.42.131:8080 [16:02:56]Content-Length: 769 [16:02:56]Content-Type: application/json [16:02:56] [16:02:56]POST finish read [16:02:56]Found Content-Length = 769 [16:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:56]execute_script... [16:02:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:56]POST & json_proto [16:02:56]process_json_proto [16:02:56]json parsed OK: [16:02:56]protocol is kg_v1.0 [16:02:56]action value=close_receipt [16:02:56]process_action close_receipt [16:02:56]cmd_close_receipt [16:02:56]MH_GetDate [16:02:56]Write to MH i2c: F0 00 00 FD 0E FA [16:02:56]Write i2c OK [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: F0 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: F0 09 00 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: F0 09 00 FD 0E 00 31 1E 19 67 A0 18 CA 66 BA [16:02:56]GetLastDocTimeStamp 1729699348 [16:02:56]current date 1729699377 [16:02:56]FM_GetShiftState [16:02:56]SAM_PROTO_GetShiftState [16:02:56]wFMCommunicate request_size=4 [16:02:56]MH_SAM_APDU [16:02:56]CAPDU: 80 13 01 00 [16:02:56]Write to MH i2c: E2 08 00 FE 0E 80 13 01 00 00 00 00 00 89 [16:02:56]Write i2c OK [16:02:56]MH_I2C_Read... [16:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:56]Read from MH i2c: E2 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: E2 0E 00 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: E2 0E 00 FE 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 71 [16:02:56]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:02:56]wFMCommunicate OK [16:02:56]SAM_PROTO_GetShiftState done [16:02:56]FM_GetShiftState done [16:02:56]opened in 1729642525 [16:02:56]opened+sec_in_day 1729728925 [16:02:56]quantity*price = 150056 [16:02:56]sum+1 = 150058 [16:02:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 262 23.10.2024 16:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188804 ФПД: 85116533372461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160257&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188804&fm=85116533372461&tin=02508201610067®Number=0000000000100030&sum=150057 [16:02:57]StoreToDocumentArchive [16:02:57]shift 462 fd 188804 [16:02:57]save to /storage/0462/doc_00188804 [16:02:57]save last doc name /storage/0462/doc_00188804 to /storage/kkm_last_doc_name [16:02:57]save OK [16:02:57]Clear old archive folders... [16:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:57]tlvbuf is B6F09210 [16:02:57]SAM_PROTO_ClearQueue [16:02:57]wFMCommunicate request_size=4 [16:02:57]MH_SAM_APDU [16:02:57]CAPDU: 80 09 00 00 [16:02:57]Write to MH i2c: E2 08 00 0B 0F 80 09 00 00 00 00 00 00 8C [16:02:57]Write i2c OK [16:02:57]MH_I2C_Read... [16:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:57]Read from MH i2c: E2 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 03 00 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [16:02:57]RAPDU: 90 00 [16:02:57]wFMCommunicate OK [16:02:57]SAM_PROTO_ClearQueue done [16:02:57]KKMCreateOFDPacket [16:02:57]OFDProtocolAddRootSTLVToBuf [16:02:57]FM_MakeSignedData [16:02:57]FM_MakeSignedData [16:02:57]SAM_PROTO_SignData [16:02:57]wFMCommunicate request_size=4 [16:02:57]MH_SAM_APDU [16:02:57]CAPDU: 80 0D 01 02 [16:02:57]Write to MH i2c: E2 08 00 0C 0F 80 0D 01 02 00 00 00 00 94 [16:02:57]Write i2c OK [16:02:57]MH_I2C_Read... [16:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:57]Read from MH i2c: E2 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 03 00 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [16:02:57]RAPDU: 90 00 [16:02:57]wFMCommunicate OK [16:02:57]wFMCommunicate request_size=255 [16:02:57]MH_SAM_APDU [16:02:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 31 1E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E1 02 00 35 04 06 00 4D [16:02:57]Write to MH i2c: E2 02 01 0D 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 31 1E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E1 02 00 35 04 06 00 4D 00 00 1D [16:02:57]Write i2c OK [16:02:57]MH_I2C_Read... [16:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:58]Read from MH i2c: E2 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 03 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [16:02:58]RAPDU: 90 00 [16:02:58]wFMCommunicate OK [16:02:58]wFMCommunicate request_size=10 [16:02:58]MH_SAM_APDU [16:02:58]CAPDU: 80 0D 02 02 05 69 BC BC 76 2D [16:02:58]Write to MH i2c: E2 0D 00 0E 0F 80 0D 02 02 05 00 69 BC BC 76 2D 00 00 25 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:58]Read from MH i2c: E2 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 03 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 03 00 0E 0F 00 90 00 91 [16:02:58]RAPDU: 90 00 [16:02:58]wFMCommunicate OK [16:02:58]wFMCommunicate request_size=4 [16:02:58]MH_SAM_APDU [16:02:58]CAPDU: 80 0D 03 02 [16:02:58]Write to MH i2c: E2 08 00 0F 0F 80 0D 03 02 00 00 00 00 99 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:58]Read from MH i2c: E2 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 0B 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 0B 00 0F 0F 00 30 2C 6B 7C A5 40 03 E8 90 00 AD [16:02:58]RAPDU: 30 2C 6B 7C A5 40 03 E8 90 00 [16:02:58]wFMCommunicate OK [16:02:58]SAM_PROTO_SignData done [16:02:58]FM_MakeSignedData done [16:02:58]CreateOFDProtocolMessage [16:02:58]wFMCommunicate request_size=4 [16:02:58]MH_SAM_APDU [16:02:58]CAPDU: 80 11 00 00 [16:02:58]Write to MH i2c: E2 08 00 10 0F 80 11 00 00 00 00 00 00 99 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:58]Read from MH i2c: E2 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 17 00 [16:02:58]MH_I2C_Read... [16:02:58]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 36 35 33 34 30 90 00 E7 [16:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:02:58]wFMCommunicate OK [16:02:58]CreateOFDProtocolMessage done [16:02:58]OFDSenderStorePacket 188804 [16:02:58]StoreOFDPacket docnum=188804 [16:02:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E FB 07 01 7A 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 31 1E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E1 02 00 35 04 06 00 4D 69 BC BC 76 2D 30 2C 6B 7C A5 40 03 E8 [16:02:58]CheckFolder [16:02:58]dirname=/storage/ofd_packets [16:02:58]CheckFolder done [16:02:58]ProducePacketName [16:02:58]name=ofd_packets/00188804 [16:02:58]NVStorageSaveData ofd_packets/00188804 [16:02:58]File name is /storage/ofd_packets/00188804 [16:02:58]Write 301 bytes [16:02:58]NVStorageSaveData done [16:02:58]OFDSenderStorePacket done [16:02:58]KKMCreateOFDPacket done [16:02:58]NVStorageSaveData kkm_last_timestamp [16:02:58]File name is /storage/kkm_last_timestamp [16:02:58]Write 4 bytes [16:02:58]NVStorageSaveData done [16:02:58]ExternCall_PrintAddStr [16:02:58]wPrintStart [16:02:58]Write to MH i2c: 01 00 00 11 0F 20 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: 01 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: 01 07 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: 01 07 00 11 0F 00 00 00 00 00 FF 0F 35 [16:02:58]RasterBufferAndPrint [16:02:58]line Счет N : (1)210864 [16:02:58]line ИНН: 02508201610067 [16:02:58]line Контрольно-Кассовый Чек [16:02:58]line ПРОДАЖА [16:02:58]line ТРК (МРК, ГНК) : 22 [16:02:58]line Товар: 2710124130 [16:02:58]line Аи-92-К-3 [16:02:58]line 22.430 * 66.90 [16:02:58]line = 1500.57 [16:02:58]line НДС 12% НСП 1% [16:02:58]line > о реализуемом товаре [16:02:58]line ИТОГО: 1500.57 [16:02:58]line НСП 1% : 13.28 [16:02:58]line НДС 12% : 159.35 [16:02:58]line Наличными: 0.00 [16:02:58]line Безнал.: 1500.57 [16:02:58]line Место: АЗС № 86 "Партнер Нефть" [16:02:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:02:58]line СНО: Общий режим [16:02:58]line Чек 262 23.10.2024 16:02 [16:02:58]line Смена: 462 ФФД: 1.0 [16:02:58]line ЗНМ: 0300000155 [16:02:58]line РНМ: 0000000000100030 [16:02:58]line Версия ККМ: 001 [16:02:58]line Платежная система: Mbank [16:02:58]line ФМ: 0000000000965340 [16:02:58]line ФД: 188804 [16:02:58]line ФПД: 85116533372461 [16:02:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160257&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188804&fm=85116533372461&tin=02508201610067®Number=0000000000100030&sum=150057 [16:02:58]written 0, free lines is 4095 [16:02:58]Write to MH i2c: 01 00 00 3A 0F 49 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: 01 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: 01 07 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: 01 07 00 3A 0F 00 00 00 00 00 8A 0C E6 [16:02:58]RasterBufferAndPrint [16:02:58]line [16:02:58]line [16:02:58]line [16:02:58]line [16:02:58]line [16:02:58]written 0, free lines is 3214 [16:02:58]MH_Cut [16:02:58]Write to MH i2c: D1 01 00 41 0F 01 22 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: D1 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: D1 01 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: D1 01 00 41 0F 00 21 [16:02:58]Write to MH i2c: 01 00 00 42 0F 51 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:59]*** Cut start [16:02:59]*** Partial cut [16:02:59]*** CUTSNS_PIN = 1 [16:02:59]*** CUTSNS_PIN = 0 [16:03:00]*** Brake cut motor [16:03:00]Read from MH i2c: 01 [16:03:00]MH_I2C_Read... [16:03:00]*** Stop cut motor [16:03:00]*** Cut end [16:03:00]Read from MH i2c: 01 07 00 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: 01 07 00 42 0F 00 00 00 00 00 FF 0F 66 [16:03:00]process_action close_receipt done [16:03:00]requested_data is exist [16:03:00]produce_requested_data [16:03:00]requested_item fm.sn is exist - process it [16:03:00]wFMCommunicate request_size=4 [16:03:00]MH_SAM_APDU [16:03:00]CAPDU: 80 11 00 00 [16:03:00]Write to MH i2c: E2 08 00 43 0F 80 11 00 00 00 00 00 00 CC [16:03:00]Write i2c OK [16:03:00]MH_I2C_Read... [16:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:00]Read from MH i2c: E2 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: E2 17 00 [16:03:00]MH_I2C_Read... [16:03:00]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 36 35 33 34 30 90 00 1A [16:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:03:00]wFMCommunicate OK [16:03:00]requested_item fd.num is exist - process it [16:03:00]SAM_PROTO_GetFieldsCounters [16:03:00]wFMCommunicate request_size=4 [16:03:00]MH_SAM_APDU [16:03:00]CAPDU: 80 13 00 00 [16:03:00]Write to MH i2c: E2 08 00 44 0F 80 13 00 00 00 00 00 00 CF [16:03:00]Write i2c OK [16:03:00]MH_I2C_Read... [16:03:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:00]Read from MH i2c: E2 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: E2 62 00 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: E2 62 00 44 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [16:03:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:00]wFMCommunicate OK [16:03:00]SAM_PROTO_GetFieldsCounters done [16:03:00]requested_item shift.num is exist - process it [16:03:00]requested_item shift.opened is exist - process it [16:03:00]req_shift_opened [16:03:00]FM_GetShiftState [16:03:00]SAM_PROTO_GetShiftState [16:03:00]wFMCommunicate request_size=4 [16:03:00]MH_SAM_APDU [16:03:00]CAPDU: 80 13 01 00 [16:03:00]Write to MH i2c: E2 08 00 45 0F 80 13 01 00 00 00 00 00 D1 [16:03:00]Write i2c OK [16:03:00]MH_I2C_Read... [16:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:00]Read from MH i2c: E2 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: E2 0E 00 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: E2 0E 00 45 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B9 [16:03:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:03:00]wFMCommunicate OK [16:03:00]SAM_PROTO_GetShiftState done [16:03:00]FM_GetShiftState done [16:03:00]req_shift_opened done [16:03:00]requested_item shift.open_date is exist - process it [16:03:00]req_shift_open_date [16:03:00]req_shift_open_date done [16:03:00]produce_requested_data done [16:03:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188804,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:03:00]process_action_free close_receipt [16:03:00]json_value_free [16:03:00]json_value_free done [16:03:00]process_json_proto returns [16:03:00]Send response to host [16:03:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188804,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:03:00]free response buf [16:03:00]execute_script done [16:03:00]execute_script returns [16:03:00]free content buf [16:03:00]Sock 9.Close socket [16:03:00]Sock 9.Thread stoped [16:04:40]ConnectInit Can't connect to host [16:04:40]CommunicateWithHost connect error [16:04:40]CommunicateWithHost err = -1 [16:04:40]OFD Sender: Server communicate error [16:04:40]OFD Sender: Processing packet 188803 [packets to send 1063, broken 1061] [16:04:40]ProducePacketName [16:04:40]name=ofd_packets/00188803 [16:04:40]OFD Sender: To server: pG, [16:04:40]CommunicateWithHost lk.salyk.kg:30040 [16:04:40]ConnectInit lk.salyk.kg [16:04:40]Connected sock=9 [16:04:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 55 07 01 EF B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 14 1E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E1 02 00 35 04 06 00 5F 62 91 07 7F 53 55 93 E5 C6 86 8C AD 83 [16:04:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 74 C4 47 00 51 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 36 35 33 34 30 10 04 04 00 83 E1 02 00 F4 03 04 00 81 C8 18 67 B6 04 01 00 00 80 93 0C 5E 28 1E 57 C6 [16:04:40]CommunicateWithHost err = 0 [16:04:40]CheckOFDResponse [16:04:40]1017 (14) - 77093643461234 [16:04:40]1041 (16) - 0000000000965340 [16:04:40]1040 (4) - 188803 [16:04:40]1012 (4) - 23.10.2024 09:57 [16:04:40]1206 (1) - 0 [16:04:40]OFD Sender: Remove packet 188803 [16:04:40]ProducePacketName [16:04:40]name=ofd_packets/00188803 [16:04:40]NVStorageDeleteData [16:04:41]OFD Sender: Processing packet 188804 [packets to send 1062, broken 1061] [16:04:41]ProducePacketName [16:04:41]name=ofd_packets/00188804 [16:04:41]OFD Sender: To server: pG, [16:04:41]CommunicateWithHost lk.salyk.kg:30040 [16:04:41]ConnectInit lk.salyk.kg [16:04:41]Connected sock=9 [16:04:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E FB 07 01 7A 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 31 1E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E1 02 00 35 04 06 00 4D 69 BC BC 76 2D 30 2C 6B 7C A5 40 03 E8 [16:04:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4E A2 47 00 E6 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 36 35 33 34 30 10 04 04 00 84 E1 02 00 F4 03 04 00 82 C8 18 67 B6 04 01 00 00 E8 DA DD 54 AB 9D 6E 85 [16:04:42]CommunicateWithHost err = 0 [16:04:42]CheckOFDResponse [16:04:42]1017 (14) - 77093643461234 [16:04:42]1041 (16) - 0000000000965340 [16:04:42]1040 (4) - 188804 [16:04:42]1012 (4) - 23.10.2024 09:57 [16:04:42]1206 (1) - 0 [16:04:42]OFD Sender: Remove packet 188804 [16:04:42]ProducePacketName [16:04:42]name=ofd_packets/00188804 [16:04:42]NVStorageDeleteData [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:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:10]accept exits with 7 [16:07:10]New connection [16:07:10]New thread 3067350372 created [16:07:10]Thread 3067207012 joined [16:07:10]Waiting for new connection... [16:07:10] Sock 7.Parse request [16:07:10]Sock 7.Check first char [16:07:10]Sock 7.First char is OK [16:07:10]request: POST /json_proto HTTP/1.0 [16:07:10]Method: POST [16:07:10]URL: /json_proto [16:07:10]Method is POST - this is cgi request [16:07:10]url: /json_proto [16:07:10]query_string will be loaded in cgi processing [16:07:10]execute_cgi json_proto POST (null) [16:07:10]execute_cgi path=json_proto method=POST [16:07:10]POST find Content-Length [16:07:10]Host: 172.17.42.131:8080 [16:07:10]Content-Length: 679 [16:07:10]Content-Type: application/json [16:07:10] [16:07:10]POST finish read [16:07:10]Found Content-Length = 679 [16:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:10]execute_script... [16:07:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:10]POST & json_proto [16:07:10]process_json_proto [16:07:10]json parsed OK: [16:07:10]protocol is kg_v1.0 [16:07:10]action value=close_receipt [16:07:10]process_action close_receipt [16:07:10]cmd_close_receipt [16:07:10]MH_GetDate [16:07:10]Write to MH i2c: F0 00 00 46 0F 44 [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: F0 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: F0 09 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: F0 09 00 46 0F 00 2F 1F 19 67 A0 18 CA 66 03 [16:07:10]GetLastDocTimeStamp 1729699377 [16:07:10]current date 1729699631 [16:07:10]FM_GetShiftState [16:07:10]SAM_PROTO_GetShiftState [16:07:10]wFMCommunicate request_size=4 [16:07:10]MH_SAM_APDU [16:07:10]CAPDU: 80 13 01 00 [16:07:10]Write to MH i2c: E2 08 00 47 0F 80 13 01 00 00 00 00 00 D3 [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:10]Read from MH i2c: E2 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 0E 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 0E 00 47 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BB [16:07:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:07:10]wFMCommunicate OK [16:07:10]SAM_PROTO_GetShiftState done [16:07:10]FM_GetShiftState done [16:07:10]opened in 1729642525 [16:07:10]opened+sec_in_day 1729728925 [16:07:10]quantity*price = 300075 [16:07:10]sum+1 = 300077 [16:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 263 23.10.2024 16:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188805 ФПД: 24577661306389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160711&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188805&fm=24577661306389&tin=02508201610067®Number=0000000000100030&sum=300000 [16:07:11]StoreToDocumentArchive [16:07:11]shift 462 fd 188805 [16:07:11]save to /storage/0462/doc_00188805 [16:07:11]save last doc name /storage/0462/doc_00188805 to /storage/kkm_last_doc_name [16:07:11]save OK [16:07:11]Clear old archive folders... [16:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:07:11]tlvbuf is B6F094F0 [16:07:11]SAM_PROTO_ClearQueue [16:07:11]wFMCommunicate request_size=4 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 09 00 00 [16:07:11]Write to MH i2c: E2 08 00 54 0F 80 09 00 00 00 00 00 00 D5 [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 03 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [16:07:11]RAPDU: 90 00 [16:07:11]wFMCommunicate OK [16:07:11]SAM_PROTO_ClearQueue done [16:07:11]KKMCreateOFDPacket [16:07:11]OFDProtocolAddRootSTLVToBuf [16:07:11]FM_MakeSignedData [16:07:11]FM_MakeSignedData [16:07:11]SAM_PROTO_SignData [16:07:11]wFMCommunicate request_size=4 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 0D 01 02 [16:07:11]Write to MH i2c: E2 08 00 55 0F 80 0D 01 02 00 00 00 00 DD [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 03 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [16:07:11]RAPDU: 90 00 [16:07:11]wFMCommunicate OK [16:07:11]wFMCommunicate request_size=255 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 2F 1F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E1 02 00 35 04 06 00 16 5A 6E C5 [16:07:11]Write to MH i2c: E2 02 01 56 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 2F 1F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E1 02 00 35 04 06 00 16 5A 6E C5 00 00 2F [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 03 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [16:07:11]RAPDU: 90 00 [16:07:11]wFMCommunicate OK [16:07:11]wFMCommunicate request_size=7 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 0D 02 02 02 86 15 [16:07:11]Write to MH i2c: E2 0A 00 57 0F 80 0D 02 02 02 00 86 15 00 00 7F [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 03 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [16:07:11]RAPDU: 90 00 [16:07:11]wFMCommunicate OK [16:07:11]wFMCommunicate request_size=4 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 0D 03 02 [16:07:11]Write to MH i2c: E2 08 00 58 0F 80 0D 03 02 00 00 00 00 E2 [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 0B 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 0B 00 58 0F 00 60 06 9C B2 86 18 92 A2 90 00 69 [16:07:11]RAPDU: 60 06 9C B2 86 18 92 A2 90 00 [16:07:11]wFMCommunicate OK [16:07:11]SAM_PROTO_SignData done [16:07:11]FM_MakeSignedData done [16:07:11]CreateOFDProtocolMessage [16:07:11]wFMCommunicate request_size=4 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 11 00 00 [16:07:11]Write to MH i2c: E2 08 00 59 0F 80 11 00 00 00 00 00 00 E2 [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 17 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 17 00 59 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [16:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:07:11]wFMCommunicate OK [16:07:11]CreateOFDProtocolMessage done [16:07:11]OFDSenderStorePacket 188805 [16:07:11]StoreOFDPacket docnum=188805 [16:07:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DB E6 04 01 7A 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 2F 1F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E1 02 00 35 04 06 00 16 5A 6E C5 86 15 60 06 9C B2 86 18 92 A2 [16:07:11]CheckFolder [16:07:11]dirname=/storage/ofd_packets [16:07:11]CheckFolder done [16:07:11]ProducePacketName [16:07:11]name=ofd_packets/00188805 [16:07:11]NVStorageSaveData ofd_packets/00188805 [16:07:11]File name is /storage/ofd_packets/00188805 [16:07:11]Write 298 bytes [16:07:11]NVStorageSaveData done [16:07:11]OFDSenderStorePacket done [16:07:11]KKMCreateOFDPacket done [16:07:11]NVStorageSaveData kkm_last_timestamp [16:07:11]File name is /storage/kkm_last_timestamp [16:07:11]Write 4 bytes [16:07:11]NVStorageSaveData done [16:07:11]ExternCall_PrintAddStr [16:07:11]wPrintStart [16:07:11]Write to MH i2c: 01 00 00 5A 0F 69 [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: 01 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: 01 07 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: 01 07 00 5A 0F 00 00 00 00 00 FF 0F 7E [16:07:11]RasterBufferAndPrint [16:07:11]line Счет N : (1)210865 [16:07:11]line ИНН: 02508201610067 [16:07:11]line Контрольно-Кассовый Чек [16:07:11]line ПРОДАЖА [16:07:11]line ТРК (МРК, ГНК) : 51 [16:07:11]line Товар: 2710194210 [16:07:11]line ДТ-К-5 [16:07:11]line 39.380 * 76.20 [16:07:11]line = 3000.76 [16:07:11]line НДС 12% НСП 1% [16:07:11]line > о реализуемом товаре [16:07:11]line ОКРУГЛЕНИЕ: -0.76 [16:07:11]line ИТОГО: 3000.00 [16:07:11]line Внесено: 3000.00 [16:07:11]line СДАЧА: 0.00 [16:07:11]line НСП 1% : 26.55 [16:07:11]line НДС 12% : 318.66 [16:07:11]line Наличными: 3000.00 [16:07:11]line Безнал.: 0.00 [16:07:11]line Место: АЗС № 86 "Партнер Нефть" [16:07:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:07:11]line СНО: Общий режим [16:07:11]line Чек 263 23.10.2024 16:07 [16:07:11]line Смена: 462 ФФД: 1.0 [16:07:11]line ЗНМ: 0300000155 [16:07:11]line РНМ: 0000000000100030 [16:07:11]line Версия ККМ: 001 [16:07:11]line ФМ: 0000000000965340 [16:07:11]line ФД: 188805 [16:07:11]line ФПД: 24577661306389 [16:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160711&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188805&fm=24577661306389&tin=02508201610067®Number=0000000000100030&sum=300000 [16:07:11]written 0, free lines is 4095 [16:07:11]OFD Sender: Processing packet 188805 [packets to send 1062, broken 1061] [16:07:11]ProducePacketName [16:07:11]name=ofd_packets/00188805 [16:07:11]OFD Sender: To server: pG, [16:07:11]CommunicateWithHost lk.salyk.kg:30040 [16:07:11]ConnectInit lk.salyk.kg [16:07:12]Write to MH i2c: 01 00 00 85 0F 94 [16:07:12]Write i2c OK [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: 01 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: 01 07 00 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: 01 07 00 85 0F 00 00 00 00 00 57 0C FE [16:07:12]RasterBufferAndPrint [16:07:12]line [16:07:12]line [16:07:12]line [16:07:12]line [16:07:12]line [16:07:12]written 0, free lines is 3161 [16:07:12]MH_Cut [16:07:12]Write to MH i2c: D1 01 00 8C 0F 01 6D [16:07:12]Write i2c OK [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: D1 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: D1 01 00 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: D1 01 00 8C 0F 00 6C [16:07:12]Write to MH i2c: 01 00 00 8D 0F 9C [16:07:12]Write i2c OK [16:07:12]MH_I2C_Read... [16:07:13]*** Cut start [16:07:13]*** Partial cut [16:07:13]*** CUTSNS_PIN = 1 [16:07:13]*** CUTSNS_PIN = 0 [16:07:13]*** Brake cut motor [16:07:14]Read from MH i2c: 01 [16:07:14]MH_I2C_Read... [16:07:14]*** Stop cut motor [16:07:14]*** Cut end [16:07:14]Read from MH i2c: 01 07 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: 01 07 00 8D 0F 00 00 00 00 00 FF 0F B1 [16:07:14]process_action close_receipt done [16:07:14]requested_data is exist [16:07:14]produce_requested_data [16:07:14]requested_item fm.sn is exist - process it [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 11 00 00 [16:07:14]Write to MH i2c: E2 08 00 8E 0F 80 11 00 00 00 00 00 00 17 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 17 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 17 00 8E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [16:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:07:14]wFMCommunicate OK [16:07:14]requested_item fd.num is exist - process it [16:07:14]SAM_PROTO_GetFieldsCounters [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 13 00 00 [16:07:14]Write to MH i2c: E2 08 00 8F 0F 80 13 00 00 00 00 00 00 1A [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 62 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 62 00 8F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [16:07:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:14]wFMCommunicate OK [16:07:14]SAM_PROTO_GetFieldsCounters done [16:07:14]requested_item shift.num is exist - process it [16:07:14]requested_item shift.opened is exist - process it [16:07:14]req_shift_opened [16:07:14]FM_GetShiftState [16:07:14]SAM_PROTO_GetShiftState [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 13 01 00 [16:07:14]Write to MH i2c: E2 08 00 90 0F 80 13 01 00 00 00 00 00 1C [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 0E 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 0E 00 90 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 04 [16:07:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:07:14]wFMCommunicate OK [16:07:14]SAM_PROTO_GetShiftState done [16:07:14]FM_GetShiftState done [16:07:14]req_shift_opened done [16:07:14]requested_item shift.open_date is exist - process it [16:07:14]req_shift_open_date [16:07:14]req_shift_open_date done [16:07:14]produce_requested_data done [16:07:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188805,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:07:14]process_action_free close_receipt [16:07:14]json_value_free [16:07:14]json_value_free done [16:07:14]process_json_proto returns [16:07:14]Send response to host [16:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188805,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:07:14]free response buf [16:07:14]execute_script done [16:07:14]execute_script returns [16:07:14]free content buf [16:07:14]Sock 7.Close socket [16:07:14]Sock 7.Thread stoped [16:09:21]ConnectInit Can't connect to host [16:09:21]CommunicateWithHost connect error [16:09:21]CommunicateWithHost err = -1 [16:09:21]OFD Sender: Server communicate error [16:09:26]OFD Sender: Processing packet 188805 [packets to send 1062, broken 1061] [16:09:26]ProducePacketName [16:09:26]name=ofd_packets/00188805 [16:09:26]OFD Sender: To server: pG, [16:09:26]CommunicateWithHost lk.salyk.kg:30040 [16:09:26]ConnectInit lk.salyk.kg [16:09:27]Connected sock=7 [16:09:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DB E6 04 01 7A 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 2F 1F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E1 02 00 35 04 06 00 16 5A 6E C5 86 15 60 06 9C B2 86 18 92 A2 [16:09:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 78 13 47 00 EF 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E1 02 00 F4 03 04 00 A0 C9 18 67 B6 04 01 00 00 47 86 46 24 F7 95 2A 27 [16:09:27]CommunicateWithHost err = 0 [16:09:27]CheckOFDResponse [16:09:27]1017 (14) - 77093643461234 [16:09:27]1041 (16) - 0000000000965340 [16:09:27]1040 (4) - 188805 [16:09:27]1012 (4) - 23.10.2024 10:02 [16:09:27]1206 (1) - 0 [16:09:27]OFD Sender: Remove packet 188805 [16:09:27]ProducePacketName [16:09:27]name=ofd_packets/00188805 [16:09:27]NVStorageDeleteData [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:55]accept exits with 9 [16:15:55]New connection [16:15:55]New thread 3067207012 created [16:15:55]Thread 3067350372 joined [16:15:55]Waiting for new connection... [16:15:55] Sock 9.Parse request [16:15:55]Sock 9.Check first char [16:15:55]Sock 9.First char is OK [16:15:55]request: POST /json_proto HTTP/1.0 [16:15:55]Method: POST [16:15:55]URL: /json_proto [16:15:55]Method is POST - this is cgi request [16:15:55]url: /json_proto [16:15:55]query_string will be loaded in cgi processing [16:15:55]execute_cgi json_proto POST (null) [16:15:55]execute_cgi path=json_proto method=POST [16:15:55]POST find Content-Length [16:15:55]Host: 172.17.42.131:8080 [16:15:55]Content-Length: 754 [16:15:55]Content-Type: application/json [16:15:55] [16:15:55]POST finish read [16:15:55]Found Content-Length = 754 [16:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30091138", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:55]execute_script... [16:15:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30091138", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:55]POST & json_proto [16:15:55]process_json_proto [16:15:55]json parsed OK: [16:15:55]protocol is kg_v1.0 [16:15:55]action value=close_receipt [16:15:55]process_action close_receipt [16:15:55]cmd_close_receipt [16:15:55]MH_GetDate [16:15:55]Write to MH i2c: F0 00 00 91 0F 8F [16:15:55]Write i2c OK [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: F0 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: F0 09 00 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: F0 09 00 91 0F 00 3C 21 19 67 A0 18 CA 66 5D [16:15:55]GetLastDocTimeStamp 1729699631 [16:15:55]current date 1729700156 [16:15:55]FM_GetShiftState [16:15:55]SAM_PROTO_GetShiftState [16:15:55]wFMCommunicate request_size=4 [16:15:55]MH_SAM_APDU [16:15:55]CAPDU: 80 13 01 00 [16:15:55]Write to MH i2c: E2 08 00 92 0F 80 13 01 00 00 00 00 00 1E [16:15:55]Write i2c OK [16:15:55]MH_I2C_Read... [16:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:55]Read from MH i2c: E2 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: E2 0E 00 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: E2 0E 00 92 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 06 [16:15:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:15:55]wFMCommunicate OK [16:15:55]SAM_PROTO_GetShiftState done [16:15:55]FM_GetShiftState done [16:15:55]opened in 1729642525 [16:15:55]opened+sec_in_day 1729728925 [16:15:55]quantity*price = 0 [16:15:55]sum+1 = 1 [16:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 264 23.10.2024 16:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30091138 ФМ: 0000000000965340 ФД: 188806 ФПД: 109632252680877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161556&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188806&fm=109632252680877&tin=02508201610067®Number=0000000000100030&sum=0 [16:15:56]StoreToDocumentArchive [16:15:56]shift 462 fd 188806 [16:15:56]save to /storage/0462/doc_00188806 [16:15:56]save last doc name /storage/0462/doc_00188806 to /storage/kkm_last_doc_name [16:15:56]save OK [16:15:56]Clear old archive folders... [16:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:56]tlvbuf is 01150860 [16:15:56]SAM_PROTO_ClearQueue [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 09 00 00 [16:15:56]Write to MH i2c: E2 08 00 9F 0F 80 09 00 00 00 00 00 00 20 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [16:15:56]RAPDU: 90 00 [16:15:56]wFMCommunicate OK [16:15:56]SAM_PROTO_ClearQueue done [16:15:56]KKMCreateOFDPacket [16:15:56]OFDProtocolAddRootSTLVToBuf [16:15:56]FM_MakeSignedData [16:15:56]FM_MakeSignedData [16:15:56]SAM_PROTO_SignData [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 0D 01 02 [16:15:56]Write to MH i2c: E2 08 00 A0 0F 80 0D 01 02 00 00 00 00 28 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:56]Read from MH i2c: E2 03 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 A0 0F 00 90 00 23 [16:15:56]RAPDU: 90 00 [16:15:56]wFMCommunicate OK [16:15:56]wFMCommunicate request_size=255 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 3C 21 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E1 02 00 35 04 06 00 63 [16:15:56]Write to MH i2c: E2 02 01 A1 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 3C 21 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E1 02 00 35 04 06 00 63 00 00 1D [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 A1 0F 00 90 00 24 [16:15:56]RAPDU: 90 00 [16:15:56]wFMCommunicate OK [16:15:56]wFMCommunicate request_size=10 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 0D 02 02 05 B5 BF 7A 1A AD [16:15:56]Write to MH i2c: E2 0D 00 A2 0F 80 0D 02 02 05 00 B5 BF 7A 1A AD 00 00 EA [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 A2 0F 00 90 00 25 [16:15:56]RAPDU: 90 00 [16:15:56]wFMCommunicate OK [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 0D 03 02 [16:15:56]Write to MH i2c: E2 08 00 A3 0F 80 0D 03 02 00 00 00 00 2D [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 0B 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 0B 00 A3 0F 00 9E 83 34 4A 2A A3 D5 E6 90 00 55 [16:15:56]RAPDU: 9E 83 34 4A 2A A3 D5 E6 90 00 [16:15:56]wFMCommunicate OK [16:15:56]SAM_PROTO_SignData done [16:15:56]FM_MakeSignedData done [16:15:56]CreateOFDProtocolMessage [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 11 00 00 [16:15:56]Write to MH i2c: E2 08 00 A4 0F 80 11 00 00 00 00 00 00 2D [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 17 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 17 00 A4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [16:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:15:56]wFMCommunicate OK [16:15:56]CreateOFDProtocolMessage done [16:15:56]OFDSenderStorePacket 188806 [16:15:56]StoreOFDPacket docnum=188806 [16:15:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A2 14 07 01 9E 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 3C 21 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E1 02 00 35 04 06 00 63 B5 BF 7A 1A AD 9E 83 34 4A 2A A3 D5 E6 [16:15:56]CheckFolder [16:15:56]dirname=/storage/ofd_packets [16:15:56]CheckFolder done [16:15:56]ProducePacketName [16:15:56]name=ofd_packets/00188806 [16:15:56]NVStorageSaveData ofd_packets/00188806 [16:15:56]File name is /storage/ofd_packets/00188806 [16:15:56]Write 301 bytes [16:15:56]NVStorageSaveData done [16:15:56]OFDSenderStorePacket done [16:15:56]KKMCreateOFDPacket done [16:15:56]NVStorageSaveData kkm_last_timestamp [16:15:56]File name is /storage/kkm_last_timestamp [16:15:56]Write 4 bytes [16:15:56]NVStorageSaveData done [16:15:56]ExternCall_PrintAddStr [16:15:56]wPrintStart [16:15:56]Write to MH i2c: 01 00 00 A5 0F B4 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: 01 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: 01 07 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: 01 07 00 A5 0F 00 00 00 00 00 FF 0F C9 [16:15:56]RasterBufferAndPrint [16:15:56]line Счет N : (1)210866 [16:15:56]line ИНН: 02508201610067 [16:15:56]line Контрольно-Кассовый Чек [16:15:56]line ПРОДАЖА [16:15:56]line ТРК (МРК, ГНК) : 13 [16:15:56]line Товар: 2710124500 [16:15:56]line Аи-95-К-3 [16:15:56]line 70.000 * 0.00 [16:15:56]line = 0.00 [16:15:56]line НДС 12% НСП 1% [16:15:56]line > о реализуемом товаре [16:15:56]line ИТОГО: 0.00 [16:15:56]line НСП 1% : 0.00 [16:15:56]line НДС 12% : 0.00 [16:15:56]line Наличными: 0.00 [16:15:56]line Безнал.: 0.00 [16:15:56]line Место: АЗС № 86 "Партнер Нефть" [16:15:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:15:56]line СНО: Общий режим [16:15:56]line Чек 264 23.10.2024 16:15 [16:15:56]line Смена: 462 ФФД: 1.0 [16:15:56]line ЗНМ: 0300000155 [16:15:56]line РНМ: 0000000000100030 [16:15:56]line Версия ККМ: 001 [16:15:56]line Талоны: ТК ГПНА Online [16:15:56]line 30091138 [16:15:56]line ФМ: 0000000000965340 [16:15:56]line ФД: 188806 [16:15:56]line ФПД: 109632252680877 [16:15:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161556&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188806&fm=109632252680877&tin=02508201610067®Number=0000000000100030&sum=0 [16:15:56]written 0, free lines is 4095 [16:15:56]OFD Sender: Processing packet 188806 [packets to send 1062, broken 1061] [16:15:56]ProducePacketName [16:15:56]name=ofd_packets/00188806 [16:15:56]OFD Sender: To server: pG, [16:15:56]CommunicateWithHost lk.salyk.kg:30040 [16:15:56]ConnectInit lk.salyk.kg [16:15:57]Connected sock=10 [16:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A2 14 07 01 9E 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 3C 21 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E1 02 00 35 04 06 00 63 B5 BF 7A 1A AD 9E 83 34 4A 2A A3 D5 E6 [16:15:57]Write to MH i2c: 01 00 00 CF 0F DE [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 CF 0F 00 00 00 00 00 6D 0C 5E [16:15:57]RasterBufferAndPrint [16:15:57]line [16:15:57]line [16:15:57]line [16:15:57]line [16:15:57]line [16:15:57]written 0, free lines is 3185 [16:15:57]MH_Cut [16:15:57]Write to MH i2c: D1 01 00 D6 0F 01 B7 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: D1 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: D1 01 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: D1 01 00 D6 0F 00 B6 [16:15:57]Write to MH i2c: 01 00 00 D7 0F E6 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 54 9F 47 00 CF 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E1 02 00 F4 03 04 00 26 CB 18 67 B6 04 01 00 00 92 72 22 AB E2 A1 6D B6 [16:15:57]CommunicateWithHost err = 0 [16:15:57]CheckOFDResponse [16:15:57]1017 (14) - 77093643461234 [16:15:57]1041 (16) - 0000000000965340 [16:15:57]1040 (4) - 188806 [16:15:57]1012 (4) - 23.10.2024 10:08 [16:15:57]1206 (1) - 0 [16:15:57]OFD Sender: Remove packet 188806 [16:15:57]ProducePacketName [16:15:57]name=ofd_packets/00188806 [16:15:57]NVStorageDeleteData [16:15:57]OFD Sender: No OFD packet to send [16:15:58]*** Cut start [16:15:58]*** Partial cut [16:15:58]*** CUTSNS_PIN = 1 [16:15:58]*** CUTSNS_PIN = 0 [16:15:58]*** Brake cut motor [16:15:59]Read from MH i2c: 01 [16:15:59]MH_I2C_Read... [16:15:59]*** Stop cut motor [16:15:59]*** Cut end [16:15:59]Read from MH i2c: 01 07 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: 01 07 00 D7 0F 00 00 00 00 00 FF 0F FB [16:15:59]process_action close_receipt done [16:15:59]requested_data is exist [16:15:59]produce_requested_data [16:15:59]requested_item fm.sn is exist - process it [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 11 00 00 [16:15:59]Write to MH i2c: E2 08 00 D8 0F 80 11 00 00 00 00 00 00 61 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 17 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 17 00 D8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [16:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:15:59]wFMCommunicate OK [16:15:59]requested_item fd.num is exist - process it [16:15:59]SAM_PROTO_GetFieldsCounters [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 13 00 00 [16:15:59]Write to MH i2c: E2 08 00 D9 0F 80 13 00 00 00 00 00 00 64 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 62 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 62 00 D9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [16:15:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:59]wFMCommunicate OK [16:15:59]SAM_PROTO_GetFieldsCounters done [16:15:59]requested_item shift.num is exist - process it [16:15:59]requested_item shift.opened is exist - process it [16:15:59]req_shift_opened [16:15:59]FM_GetShiftState [16:15:59]SAM_PROTO_GetShiftState [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 13 01 00 [16:15:59]Write to MH i2c: E2 08 00 DA 0F 80 13 01 00 00 00 00 00 66 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 0E 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 0E 00 DA 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4E [16:15:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:15:59]wFMCommunicate OK [16:15:59]SAM_PROTO_GetShiftState done [16:15:59]FM_GetShiftState done [16:15:59]req_shift_opened done [16:15:59]requested_item shift.open_date is exist - process it [16:15:59]req_shift_open_date [16:15:59]req_shift_open_date done [16:15:59]produce_requested_data done [16:15:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188806,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:15:59]process_action_free close_receipt [16:15:59]json_value_free [16:15:59]json_value_free done [16:15:59]process_json_proto returns [16:15:59]Send response to host [16:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188806,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:15:59]free response buf [16:15:59]execute_script done [16:15:59]execute_script returns [16:15:59]free content buf [16:15:59]Sock 9.Close socket [16:15:59]Sock 9.Thread stoped [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:05]accept exits with 7 [16:18:05]New connection [16:18:05]New thread 3067350372 created [16:18:05]Thread 3067207012 joined [16:18:05]Waiting for new connection... [16:18:05] Sock 7.Parse request [16:18:05]Sock 7.Check first char [16:18:05]Sock 7.First char is OK [16:18:05]request: POST /json_proto HTTP/1.0 [16:18:05]Method: POST [16:18:05]URL: /json_proto [16:18:05]Method is POST - this is cgi request [16:18:05]url: /json_proto [16:18:05]query_string will be loaded in cgi processing [16:18:05]execute_cgi json_proto POST (null) [16:18:05]execute_cgi path=json_proto method=POST [16:18:05]POST find Content-Length [16:18:05]Host: 172.17.42.131:8080 [16:18:05]Content-Length: 688 [16:18:05]Content-Type: application/json [16:18:05] [16:18:05]POST finish read [16:18:05]Found Content-Length = 688 [16:18:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:05]execute_script... [16:18:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:05]POST & json_proto [16:18:05]process_json_proto [16:18:05]json parsed OK: [16:18:05]protocol is kg_v1.0 [16:18:05]action value=close_receipt [16:18:05]process_action close_receipt [16:18:05]cmd_close_receipt [16:18:05]MH_GetDate [16:18:05]Write to MH i2c: F0 00 00 DB 0F D9 [16:18:05]Write i2c OK [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: F0 [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: F0 09 00 [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: F0 09 00 DB 0F 00 BE 21 19 67 A0 18 CA 66 29 [16:18:05]GetLastDocTimeStamp 1729700156 [16:18:05]current date 1729700286 [16:18:05]FM_GetShiftState [16:18:05]SAM_PROTO_GetShiftState [16:18:05]wFMCommunicate request_size=4 [16:18:05]MH_SAM_APDU [16:18:05]CAPDU: 80 13 01 00 [16:18:05]Write to MH i2c: E2 08 00 DC 0F 80 13 01 00 00 00 00 00 68 [16:18:05]Write i2c OK [16:18:05]MH_I2C_Read... [16:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:05]Read from MH i2c: E2 [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: E2 0E 00 [16:18:05]MH_I2C_Read... [16:18:05]Read from MH i2c: E2 0E 00 DC 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 50 [16:18:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:18:05]wFMCommunicate OK [16:18:05]SAM_PROTO_GetShiftState done [16:18:05]FM_GetShiftState done [16:18:05]opened in 1729642525 [16:18:05]opened+sec_in_day 1729728925 [16:18:05]quantity*price = 100051 [16:18:05]sum+1 = 100052 [16:18:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 265 23.10.2024 16:18 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188807 ФПД: 71348303542984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161806&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188807&fm=71348303542984&tin=02508201610067®Number=0000000000100030&sum=100000 [16:18:06]StoreToDocumentArchive [16:18:06]shift 462 fd 188807 [16:18:06]save to /storage/0462/doc_00188807 [16:18:06]save last doc name /storage/0462/doc_00188807 to /storage/kkm_last_doc_name [16:18:06]save OK [16:18:06]Clear old archive folders... [16:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:18:06]tlvbuf is 011285A0 [16:18:06]SAM_PROTO_ClearQueue [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 09 00 00 [16:18:06]Write to MH i2c: E2 08 00 E9 0F 80 09 00 00 00 00 00 00 6A [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 E9 0F 00 90 00 6C [16:18:06]RAPDU: 90 00 [16:18:06]wFMCommunicate OK [16:18:06]SAM_PROTO_ClearQueue done [16:18:06]KKMCreateOFDPacket [16:18:06]OFDProtocolAddRootSTLVToBuf [16:18:06]FM_MakeSignedData [16:18:06]FM_MakeSignedData [16:18:06]SAM_PROTO_SignData [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 0D 01 02 [16:18:06]Write to MH i2c: E2 08 00 EA 0F 80 0D 01 02 00 00 00 00 72 [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 EA 0F 00 90 00 6D [16:18:06]RAPDU: 90 00 [16:18:06]wFMCommunicate OK [16:18:06]wFMCommunicate request_size=255 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 BE 21 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E1 02 [16:18:06]Write to MH i2c: E2 02 01 EB 0F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 BE 21 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E1 02 00 00 71 [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 EB 0F 00 90 00 6E [16:18:06]RAPDU: 90 00 [16:18:06]wFMCommunicate OK [16:18:06]wFMCommunicate request_size=16 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 40 E4 12 49 BA C8 [16:18:06]Write to MH i2c: E2 13 00 EC 0F 80 0D 02 02 0B 00 00 35 04 06 00 40 E4 12 49 BA C8 00 00 CB [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 EC 0F 00 90 00 6F [16:18:06]RAPDU: 90 00 [16:18:06]wFMCommunicate OK [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 0D 03 02 [16:18:06]Write to MH i2c: E2 08 00 ED 0F 80 0D 03 02 00 00 00 00 77 [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 0B 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 0B 00 ED 0F 00 A1 17 C2 B7 5E A5 52 8C 90 00 8A [16:18:06]RAPDU: A1 17 C2 B7 5E A5 52 8C 90 00 [16:18:06]wFMCommunicate OK [16:18:06]SAM_PROTO_SignData done [16:18:06]FM_MakeSignedData done [16:18:06]CreateOFDProtocolMessage [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 11 00 00 [16:18:06]Write to MH i2c: E2 08 00 EE 0F 80 11 00 00 00 00 00 00 77 [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 17 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 17 00 EE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [16:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:18:06]wFMCommunicate OK [16:18:06]CreateOFDProtocolMessage done [16:18:06]OFDSenderStorePacket 188807 [16:18:06]StoreOFDPacket docnum=188807 [16:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CC CA 0D 01 A3 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 BE 21 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E1 02 00 35 04 06 00 40 E4 12 49 BA C8 A1 17 C2 B7 5E A5 52 8C [16:18:06]CheckFolder [16:18:06]dirname=/storage/ofd_packets [16:18:06]CheckFolder done [16:18:06]ProducePacketName [16:18:06]name=ofd_packets/00188807 [16:18:06]NVStorageSaveData ofd_packets/00188807 [16:18:06]File name is /storage/ofd_packets/00188807 [16:18:06]Write 307 bytes [16:18:06]NVStorageSaveData done [16:18:06]OFDSenderStorePacket done [16:18:06]KKMCreateOFDPacket done [16:18:06]NVStorageSaveData kkm_last_timestamp [16:18:06]File name is /storage/kkm_last_timestamp [16:18:06]Write 4 bytes [16:18:06]NVStorageSaveData done [16:18:06]ExternCall_PrintAddStr [16:18:06]wPrintStart [16:18:06]Write to MH i2c: 01 00 00 EF 0F FE [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: 01 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: 01 07 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: 01 07 00 EF 0F 00 00 00 00 00 FF 0F 13 [16:18:06]RasterBufferAndPrint [16:18:06]line Счет N : (1)210867 [16:18:06]line ИНН: 02508201610067 [16:18:06]line Контрольно-Кассовый Чек [16:18:06]line ПРОДАЖА [16:18:06]line ТРК (МРК, ГНК) : 31 [16:18:06]line Товар: 2710194210 [16:18:06]line D-ENERGY ДТ-К-5 [16:18:06]line 12.960 * 77.20 [16:18:06]line = 1000.51 [16:18:06]line НДС 12% НСП 1% [16:18:06]line > о реализуемом товаре [16:18:06]line ОКРУГЛЕНИЕ: -0.51 [16:18:06]line ИТОГО: 1000.00 [16:18:06]line Внесено: 1000.00 [16:18:06]line СДАЧА: 0.00 [16:18:06]line НСП 1% : 8.85 [16:18:06]line НДС 12% : 106.25 [16:18:06]line Наличными: 1000.00 [16:18:06]line Безнал.: 0.00 [16:18:06]line Место: АЗС № 86 "Партнер Нефть" [16:18:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:18:06]line СНО: Общий режим [16:18:06]line Чек 265 23.10.2024 16:18 [16:18:06]line Смена: 462 ФФД: 1.0 [16:18:06]line ЗНМ: 0300000155 [16:18:06]line РНМ: 0000000000100030 [16:18:06]line Версия ККМ: 001 [16:18:06]line ФМ: 0000000000965340 [16:18:06]line ФД: 188807 [16:18:06]line ФПД: 71348303542984 [16:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161806&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188807&fm=71348303542984&tin=02508201610067®Number=0000000000100030&sum=100000 [16:18:06]written 0, free lines is 4095 [16:18:06]OFD Sender: Processing packet 188807 [packets to send 1062, broken 1061] [16:18:06]ProducePacketName [16:18:06]name=ofd_packets/00188807 [16:18:06]OFD Sender: To server: pG, [16:18:06]CommunicateWithHost lk.salyk.kg:30040 [16:18:06]ConnectInit lk.salyk.kg [16:18:07]Connected sock=10 [16:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CC CA 0D 01 A3 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 BE 21 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E1 02 00 35 04 06 00 40 E4 12 49 BA C8 A1 17 C2 B7 5E A5 52 8C [16:18:07]Write to MH i2c: 01 00 00 1A 10 2A [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: 01 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: 01 07 00 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 5D 0C 9A [16:18:07]RasterBufferAndPrint [16:18:07]line [16:18:07]line [16:18:07]line [16:18:07]line [16:18:07]line [16:18:07]written 0, free lines is 3168 [16:18:07]MH_Cut [16:18:07]Write to MH i2c: D1 01 00 21 10 01 03 [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: D1 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: D1 01 00 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: D1 01 00 21 10 00 02 [16:18:07]Write to MH i2c: 01 00 00 22 10 32 [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EB 89 47 00 07 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E1 02 00 F4 03 04 00 A8 CB 18 67 B6 04 01 00 00 87 D9 BD CB B2 80 8D 7C [16:18:07]CommunicateWithHost err = 0 [16:18:07]CheckOFDResponse [16:18:07]1017 (14) - 77093643461234 [16:18:07]1041 (16) - 0000000000965340 [16:18:07]1040 (4) - 188807 [16:18:07]1012 (4) - 23.10.2024 10:10 [16:18:07]1206 (1) - 0 [16:18:07]OFD Sender: Remove packet 188807 [16:18:07]ProducePacketName [16:18:07]name=ofd_packets/00188807 [16:18:07]NVStorageDeleteData [16:18:08]OFD Sender: No OFD packet to send [16:18:08]*** Cut start [16:18:08]*** Partial cut [16:18:08]*** CUTSNS_PIN = 1 [16:18:08]*** CUTSNS_PIN = 0 [16:18:08]*** Brake cut motor [16:18:09]Read from MH i2c: 01 [16:18:09]MH_I2C_Read... [16:18:09]*** Stop cut motor [16:18:09]*** Cut end [16:18:09]Read from MH i2c: 01 07 00 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: 01 07 00 22 10 00 00 00 00 00 FF 0F 47 [16:18:09]process_action close_receipt done [16:18:09]requested_data is exist [16:18:09]produce_requested_data [16:18:09]requested_item fm.sn is exist - process it [16:18:09]wFMCommunicate request_size=4 [16:18:09]MH_SAM_APDU [16:18:09]CAPDU: 80 11 00 00 [16:18:09]Write to MH i2c: E2 08 00 23 10 80 11 00 00 00 00 00 00 AD [16:18:09]Write i2c OK [16:18:09]MH_I2C_Read... [16:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:09]Read from MH i2c: E2 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 17 00 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 17 00 23 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [16:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:18:09]wFMCommunicate OK [16:18:09]requested_item fd.num is exist - process it [16:18:09]SAM_PROTO_GetFieldsCounters [16:18:09]wFMCommunicate request_size=4 [16:18:09]MH_SAM_APDU [16:18:09]CAPDU: 80 13 00 00 [16:18:09]Write to MH i2c: E2 08 00 24 10 80 13 00 00 00 00 00 00 B0 [16:18:09]Write i2c OK [16:18:09]MH_I2C_Read... [16:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:09]Read from MH i2c: E2 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 62 00 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 62 00 24 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [16:18:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:09]wFMCommunicate OK [16:18:09]SAM_PROTO_GetFieldsCounters done [16:18:09]requested_item shift.num is exist - process it [16:18:09]requested_item shift.opened is exist - process it [16:18:09]req_shift_opened [16:18:09]FM_GetShiftState [16:18:09]SAM_PROTO_GetShiftState [16:18:09]wFMCommunicate request_size=4 [16:18:09]MH_SAM_APDU [16:18:09]CAPDU: 80 13 01 00 [16:18:09]Write to MH i2c: E2 08 00 25 10 80 13 01 00 00 00 00 00 B2 [16:18:09]Write i2c OK [16:18:09]MH_I2C_Read... [16:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:09]Read from MH i2c: E2 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 0E 00 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 0E 00 25 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9A [16:18:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:18:09]wFMCommunicate OK [16:18:09]SAM_PROTO_GetShiftState done [16:18:09]FM_GetShiftState done [16:18:09]req_shift_opened done [16:18:09]requested_item shift.open_date is exist - process it [16:18:09]req_shift_open_date [16:18:09]req_shift_open_date done [16:18:09]produce_requested_data done [16:18:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188807,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:18:09]process_action_free close_receipt [16:18:09]json_value_free [16:18:09]json_value_free done [16:18:09]process_json_proto returns [16:18:09]Send response to host [16:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188807,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:18:09]free response buf [16:18:09]execute_script done [16:18:09]execute_script returns [16:18:09]free content buf [16:18:09]Sock 7.Close socket [16:18:09]Sock 7.Thread stoped [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:54]accept exits with 9 [16:32:54]New connection [16:32:54]New thread 3067207012 created [16:32:54]Thread 3067350372 joined [16:32:54]Waiting for new connection... [16:32:54] Sock 9.Parse request [16:32:54]Sock 9.Check first char [16:32:54]Sock 9.First char is OK [16:32:54]request: POST /json_proto HTTP/1.0 [16:32:54]Method: POST [16:32:54]URL: /json_proto [16:32:54]Method is POST - this is cgi request [16:32:54]url: /json_proto [16:32:54]query_string will be loaded in cgi processing [16:32:54]execute_cgi json_proto POST (null) [16:32:54]execute_cgi path=json_proto method=POST [16:32:54]POST find Content-Length [16:32:54]Host: 172.17.42.131:8080 [16:32:54]Content-Length: 797 [16:32:54]Content-Type: application/json [16:32:54] [16:32:54]POST finish read [16:32:54]Found Content-Length = 797 [16:32:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4360513", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:54]execute_script... [16:32:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4360513", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:54]POST & json_proto [16:32:54]process_json_proto [16:32:54]json parsed OK: [16:32:54]protocol is kg_v1.0 [16:32:54]action value=close_receipt [16:32:54]process_action close_receipt [16:32:54]cmd_close_receipt [16:32:54]MH_GetDate [16:32:54]Write to MH i2c: F0 00 00 26 10 25 [16:32:54]Write i2c OK [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: F0 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: F0 09 00 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: F0 09 00 26 10 00 37 25 19 67 A0 18 CA 66 F2 [16:32:54]GetLastDocTimeStamp 1729700286 [16:32:54]current date 1729701175 [16:32:54]FM_GetShiftState [16:32:54]SAM_PROTO_GetShiftState [16:32:54]wFMCommunicate request_size=4 [16:32:54]MH_SAM_APDU [16:32:54]CAPDU: 80 13 01 00 [16:32:54]Write to MH i2c: E2 08 00 27 10 80 13 01 00 00 00 00 00 B4 [16:32:54]Write i2c OK [16:32:54]MH_I2C_Read... [16:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:54]Read from MH i2c: E2 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: E2 0E 00 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: E2 0E 00 27 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9C [16:32:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:32:54]wFMCommunicate OK [16:32:54]SAM_PROTO_GetShiftState done [16:32:54]FM_GetShiftState done [16:32:54]opened in 1729642525 [16:32:54]opened+sec_in_day 1729728925 [16:32:54]quantity*price = 0 [16:32:54]sum+1 = 1 [16:32:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 266 23.10.2024 16:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4360513 ФМ: 0000000000965340 ФД: 188808 ФПД: 154458030790362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188808&fm=154458030790362&tin=02508201610067®Number=0000000000100030&sum=0 [16:32:55]StoreToDocumentArchive [16:32:55]shift 462 fd 188808 [16:32:55]save to /storage/0462/doc_00188808 [16:32:55]save last doc name /storage/0462/doc_00188808 to /storage/kkm_last_doc_name [16:32:55]save OK [16:32:55]Clear old archive folders... [16:32:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:32:55]tlvbuf is 0110E0C0 [16:32:55]SAM_PROTO_ClearQueue [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 09 00 00 [16:32:55]Write to MH i2c: E2 08 00 34 10 80 09 00 00 00 00 00 00 B6 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [16:32:55]RAPDU: 90 00 [16:32:55]wFMCommunicate OK [16:32:55]SAM_PROTO_ClearQueue done [16:32:55]KKMCreateOFDPacket [16:32:55]OFDProtocolAddRootSTLVToBuf [16:32:55]FM_MakeSignedData [16:32:55]FM_MakeSignedData [16:32:55]SAM_PROTO_SignData [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 0D 01 02 [16:32:55]Write to MH i2c: E2 08 00 35 10 80 0D 01 02 00 00 00 00 BE [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [16:32:55]RAPDU: 90 00 [16:32:55]wFMCommunicate OK [16:32:55]wFMCommunicate request_size=255 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 37 25 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E1 02 00 35 04 06 00 8C 7A 90 0E [16:32:55]Write to MH i2c: E2 02 01 36 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 37 25 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E1 02 00 35 04 06 00 8C 7A 90 0E 00 00 34 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 36 10 00 90 00 BA [16:32:55]RAPDU: 90 00 [16:32:55]wFMCommunicate OK [16:32:55]wFMCommunicate request_size=7 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 0D 02 02 02 D6 DA [16:32:55]Write to MH i2c: E2 0A 00 37 10 80 0D 02 02 02 00 D6 DA 00 00 75 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 37 10 00 90 00 BB [16:32:55]RAPDU: 90 00 [16:32:55]wFMCommunicate OK [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 0D 03 02 [16:32:55]Write to MH i2c: E2 08 00 38 10 80 0D 03 02 00 00 00 00 C3 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 0B 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 0B 00 38 10 00 FA F6 FD AE F9 37 C3 90 90 00 E2 [16:32:55]RAPDU: FA F6 FD AE F9 37 C3 90 90 00 [16:32:55]wFMCommunicate OK [16:32:55]SAM_PROTO_SignData done [16:32:55]FM_MakeSignedData done [16:32:55]CreateOFDProtocolMessage [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 11 00 00 [16:32:55]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 17 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [16:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:32:55]wFMCommunicate OK [16:32:55]CreateOFDProtocolMessage done [16:32:55]OFDSenderStorePacket 188808 [16:32:55]StoreOFDPacket docnum=188808 [16:32:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 03 7F 04 01 4F 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 37 25 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E1 02 00 35 04 06 00 8C 7A 90 0E D6 DA FA F6 FD AE F9 37 C3 90 [16:32:55]CheckFolder [16:32:55]dirname=/storage/ofd_packets [16:32:55]CheckFolder done [16:32:55]ProducePacketName [16:32:55]name=ofd_packets/00188808 [16:32:55]NVStorageSaveData ofd_packets/00188808 [16:32:55]File name is /storage/ofd_packets/00188808 [16:32:55]Write 298 bytes [16:32:55]NVStorageSaveData done [16:32:55]OFDSenderStorePacket done [16:32:55]KKMCreateOFDPacket done [16:32:55]NVStorageSaveData kkm_last_timestamp [16:32:55]File name is /storage/kkm_last_timestamp [16:32:55]Write 4 bytes [16:32:55]NVStorageSaveData done [16:32:55]ExternCall_PrintAddStr [16:32:55]wPrintStart [16:32:55]Write to MH i2c: 01 00 00 3A 10 4A [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: 01 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: 01 07 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 FF 0F 5F [16:32:55]RasterBufferAndPrint [16:32:55]line Счет N : (1)210868 [16:32:55]line ИНН: 02508201610067 [16:32:55]line Контрольно-Кассовый Чек [16:32:55]line ПРОДАЖА [16:32:55]line ТРК (МРК, ГНК) : 51 [16:32:55]line Товар: 2710194210 [16:32:55]line ДТ-К-5 [16:32:55]line 20.000 * 0.00 [16:32:55]line = 0.00 [16:32:55]line НДС 12% НСП 1% [16:32:55]line > о реализуемом товаре [16:32:55]line ИТОГО: 0.00 [16:32:55]line НСП 1% : 0.00 [16:32:55]line НДС 12% : 0.00 [16:32:55]line Наличными: 0.00 [16:32:55]line Безнал.: 0.00 [16:32:55]line Место: АЗС № 86 "Партнер Нефть" [16:32:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:32:55]line СНО: Общий режим [16:32:55]line Чек 266 23.10.2024 16:32 [16:32:55]line Смена: 462 ФФД: 1.0 [16:32:55]line ЗНМ: 0300000155 [16:32:55]line РНМ: 0000000000100030 [16:32:55]line Версия ККМ: 001 [16:32:55]line Талоны: Топливные Талоны [16:32:55]line 4360513 [16:32:55]line ФМ: 0000000000965340 [16:32:55]line ФД: 188808 [16:32:55]line ФПД: 154458030790362 [16:32:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188808&fm=154458030790362&tin=02508201610067®Number=0000000000100030&sum=0 [16:32:55]written 0, free lines is 4095 [16:32:55]OFD Sender: Processing packet 188808 [packets to send 1062, broken 1061] [16:32:55]ProducePacketName [16:32:55]name=ofd_packets/00188808 [16:32:55]OFD Sender: To server: pG, [16:32:55]CommunicateWithHost lk.salyk.kg:30040 [16:32:55]ConnectInit lk.salyk.kg [16:32:56]Connected sock=10 [16:32:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 03 7F 04 01 4F 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 37 25 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E1 02 00 35 04 06 00 8C 7A 90 0E D6 DA FA F6 FD AE F9 37 C3 90 [16:32:56]Write to MH i2c: 01 00 00 64 10 74 [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 07 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 07 00 64 10 00 00 00 00 00 6A 0C F1 [16:32:56]RasterBufferAndPrint [16:32:56]line [16:32:56]line [16:32:56]line [16:32:56]line [16:32:56]line [16:32:56]written 0, free lines is 3183 [16:32:56]MH_Cut [16:32:56]Write to MH i2c: D1 01 00 6B 10 01 4D [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: D1 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: D1 01 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: D1 01 00 6B 10 00 4C [16:32:56]Write to MH i2c: 01 00 00 6C 10 7C [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 95 47 00 E5 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E1 02 00 F4 03 04 00 21 CF 18 67 B6 04 01 00 00 DC 10 89 1D 55 1A EB 50 [16:32:56]CommunicateWithHost err = 0 [16:32:56]CheckOFDResponse [16:32:56]1017 (14) - 77093643461234 [16:32:56]1041 (16) - 0000000000965340 [16:32:56]1040 (4) - 188808 [16:32:56]1012 (4) - 23.10.2024 10:25 [16:32:56]1206 (1) - 0 [16:32:56]OFD Sender: Remove packet 188808 [16:32:56]ProducePacketName [16:32:56]name=ofd_packets/00188808 [16:32:56]NVStorageDeleteData [16:32:56]OFD Sender: No OFD packet to send [16:32:57]*** Cut start [16:32:57]*** Partial cut [16:32:57]*** CUTSNS_PIN = 1 [16:32:57]*** CUTSNS_PIN = 0 [16:32:57]*** Brake cut motor [16:32:58]Read from MH i2c: 01 [16:32:58]MH_I2C_Read... [16:32:58]*** Stop cut motor [16:32:58]*** Cut end [16:32:58]Read from MH i2c: 01 07 00 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: 01 07 00 6C 10 00 00 00 00 00 FF 0F 91 [16:32:58]process_action close_receipt done [16:32:58]requested_data is exist [16:32:58]produce_requested_data [16:32:58]requested_item fm.sn is exist - process it [16:32:58]wFMCommunicate request_size=4 [16:32:58]MH_SAM_APDU [16:32:58]CAPDU: 80 11 00 00 [16:32:58]Write to MH i2c: E2 08 00 6D 10 80 11 00 00 00 00 00 00 F7 [16:32:58]Write i2c OK [16:32:58]MH_I2C_Read... [16:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:58]Read from MH i2c: E2 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 17 00 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 17 00 6D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [16:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:32:58]wFMCommunicate OK [16:32:58]requested_item fd.num is exist - process it [16:32:58]SAM_PROTO_GetFieldsCounters [16:32:58]wFMCommunicate request_size=4 [16:32:58]MH_SAM_APDU [16:32:58]CAPDU: 80 13 00 00 [16:32:58]Write to MH i2c: E2 08 00 6E 10 80 13 00 00 00 00 00 00 FA [16:32:58]Write i2c OK [16:32:58]MH_I2C_Read... [16:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:58]Read from MH i2c: E2 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 62 00 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 62 00 6E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [16:32:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:58]wFMCommunicate OK [16:32:58]SAM_PROTO_GetFieldsCounters done [16:32:58]requested_item shift.num is exist - process it [16:32:58]requested_item shift.opened is exist - process it [16:32:58]req_shift_opened [16:32:58]FM_GetShiftState [16:32:58]SAM_PROTO_GetShiftState [16:32:58]wFMCommunicate request_size=4 [16:32:58]MH_SAM_APDU [16:32:58]CAPDU: 80 13 01 00 [16:32:58]Write to MH i2c: E2 08 00 6F 10 80 13 01 00 00 00 00 00 FC [16:32:58]Write i2c OK [16:32:58]MH_I2C_Read... [16:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:58]Read from MH i2c: E2 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 0E 00 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 0E 00 6F 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E4 [16:32:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:32:58]wFMCommunicate OK [16:32:58]SAM_PROTO_GetShiftState done [16:32:58]FM_GetShiftState done [16:32:58]req_shift_opened done [16:32:58]requested_item shift.open_date is exist - process it [16:32:58]req_shift_open_date [16:32:58]req_shift_open_date done [16:32:58]produce_requested_data done [16:32:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188808,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:32:58]process_action_free close_receipt [16:32:58]json_value_free [16:32:58]json_value_free done [16:32:58]process_json_proto returns [16:32:58]Send response to host [16:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188808,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:32:58]free response buf [16:32:58]execute_script done [16:32:58]execute_script returns [16:32:58]free content buf [16:32:58]Sock 9.Close socket [16:32:58]Sock 9.Thread stoped [16:33:01]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:03]accept exits with 7 [16:34:03]New connection [16:34:03]New thread 3067350372 created [16:34:03]Thread 3067207012 joined [16:34:03]Waiting for new connection... [16:34:03] Sock 7.Parse request [16:34:03]Sock 7.Check first char [16:34:03]Sock 7.First char is OK [16:34:03]request: POST /json_proto HTTP/1.0 [16:34:03]Method: POST [16:34:03]URL: /json_proto [16:34:03]Method is POST - this is cgi request [16:34:03]url: /json_proto [16:34:03]query_string will be loaded in cgi processing [16:34:03]execute_cgi json_proto POST (null) [16:34:03]execute_cgi path=json_proto method=POST [16:34:03]POST find Content-Length [16:34:03]Host: 172.17.42.131:8080 [16:34:03]Content-Length: 797 [16:34:03]Content-Type: application/json [16:34:03] [16:34:03]POST finish read [16:34:03]Found Content-Length = 797 [16:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4361508", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:03]execute_script... [16:34:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4361508", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:03]POST & json_proto [16:34:03]process_json_proto [16:34:03]json parsed OK: [16:34:03]protocol is kg_v1.0 [16:34:03]action value=close_receipt [16:34:03]process_action close_receipt [16:34:03]cmd_close_receipt [16:34:03]MH_GetDate [16:34:03]Write to MH i2c: F0 00 00 70 10 6F [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: F0 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: F0 09 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: F0 09 00 70 10 00 7C 25 19 67 A0 18 CA 66 81 [16:34:03]GetLastDocTimeStamp 1729701175 [16:34:03]current date 1729701244 [16:34:03]FM_GetShiftState [16:34:03]SAM_PROTO_GetShiftState [16:34:03]wFMCommunicate request_size=4 [16:34:03]MH_SAM_APDU [16:34:03]CAPDU: 80 13 01 00 [16:34:03]Write to MH i2c: E2 08 00 71 10 80 13 01 00 00 00 00 00 FE [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:03]Read from MH i2c: E2 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 0E 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 0E 00 71 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E6 [16:34:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:34:03]wFMCommunicate OK [16:34:03]SAM_PROTO_GetShiftState done [16:34:03]FM_GetShiftState done [16:34:03]opened in 1729642525 [16:34:03]opened+sec_in_day 1729728925 [16:34:03]quantity*price = 0 [16:34:03]sum+1 = 1 [16:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 267 23.10.2024 16:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4361508 ФМ: 0000000000965340 ФД: 188809 ФПД: 138548437367468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163404&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188809&fm=138548437367468&tin=02508201610067®Number=0000000000100030&sum=0 [16:34:04]StoreToDocumentArchive [16:34:04]shift 462 fd 188809 [16:34:04]save to /storage/0462/doc_00188809 [16:34:04]save last doc name /storage/0462/doc_00188809 to /storage/kkm_last_doc_name [16:34:04]save OK [16:34:04]Clear old archive folders... [16:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:34:04]tlvbuf is B6FB9720 [16:34:04]SAM_PROTO_ClearQueue [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 09 00 00 [16:34:04]Write to MH i2c: E2 08 00 7E 10 80 09 00 00 00 00 00 00 00 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [16:34:04]RAPDU: 90 00 [16:34:04]wFMCommunicate OK [16:34:04]SAM_PROTO_ClearQueue done [16:34:04]KKMCreateOFDPacket [16:34:04]OFDProtocolAddRootSTLVToBuf [16:34:04]FM_MakeSignedData [16:34:04]FM_MakeSignedData [16:34:04]SAM_PROTO_SignData [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 0D 01 02 [16:34:04]Write to MH i2c: E2 08 00 7F 10 80 0D 01 02 00 00 00 00 08 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:05]Read from MH i2c: E2 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 03 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [16:34:05]RAPDU: 90 00 [16:34:05]wFMCommunicate OK [16:34:05]wFMCommunicate request_size=255 [16:34:05]MH_SAM_APDU [16:34:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 7C 25 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E1 02 00 35 04 06 00 7E 02 52 64 [16:34:05]Write to MH i2c: E2 02 01 80 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 7C 25 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E1 02 00 35 04 06 00 7E 02 52 64 00 00 57 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:05]Read from MH i2c: E2 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 03 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [16:34:05]RAPDU: 90 00 [16:34:05]wFMCommunicate OK [16:34:05]wFMCommunicate request_size=7 [16:34:05]MH_SAM_APDU [16:34:05]CAPDU: 80 0D 02 02 02 BA AC [16:34:05]Write to MH i2c: E2 0A 00 81 10 80 0D 02 02 02 00 BA AC 00 00 75 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:05]Read from MH i2c: E2 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 03 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 03 00 81 10 00 90 00 05 [16:34:05]RAPDU: 90 00 [16:34:05]wFMCommunicate OK [16:34:05]wFMCommunicate request_size=4 [16:34:05]MH_SAM_APDU [16:34:05]CAPDU: 80 0D 03 02 [16:34:05]Write to MH i2c: E2 08 00 82 10 80 0D 03 02 00 00 00 00 0D [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:05]Read from MH i2c: E2 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 0B 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 0B 00 82 10 00 B8 24 C3 DF 61 49 71 11 90 00 B8 [16:34:05]RAPDU: B8 24 C3 DF 61 49 71 11 90 00 [16:34:05]wFMCommunicate OK [16:34:05]SAM_PROTO_SignData done [16:34:05]FM_MakeSignedData done [16:34:05]CreateOFDProtocolMessage [16:34:05]wFMCommunicate request_size=4 [16:34:05]MH_SAM_APDU [16:34:05]CAPDU: 80 11 00 00 [16:34:05]Write to MH i2c: E2 08 00 83 10 80 11 00 00 00 00 00 00 0D [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:05]Read from MH i2c: E2 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 17 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 17 00 83 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [16:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:34:05]wFMCommunicate OK [16:34:05]CreateOFDProtocolMessage done [16:34:05]OFDSenderStorePacket 188809 [16:34:05]StoreOFDPacket docnum=188809 [16:34:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 5A 34 04 01 22 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 7C 25 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E1 02 00 35 04 06 00 7E 02 52 64 BA AC B8 24 C3 DF 61 49 71 11 [16:34:05]CheckFolder [16:34:05]dirname=/storage/ofd_packets [16:34:05]CheckFolder done [16:34:05]ProducePacketName [16:34:05]name=ofd_packets/00188809 [16:34:05]NVStorageSaveData ofd_packets/00188809 [16:34:05]File name is /storage/ofd_packets/00188809 [16:34:05]Write 298 bytes [16:34:05]NVStorageSaveData done [16:34:05]OFDSenderStorePacket done [16:34:05]KKMCreateOFDPacket done [16:34:05]NVStorageSaveData kkm_last_timestamp [16:34:05]File name is /storage/kkm_last_timestamp [16:34:05]Write 4 bytes [16:34:05]NVStorageSaveData done [16:34:05]ExternCall_PrintAddStr [16:34:05]wPrintStart [16:34:05]Write to MH i2c: 01 00 00 84 10 94 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 84 10 00 00 00 00 00 FF 0F A9 [16:34:05]RasterBufferAndPrint [16:34:05]line Счет N : (1)210869 [16:34:05]line ИНН: 02508201610067 [16:34:05]line Контрольно-Кассовый Чек [16:34:05]line ПРОДАЖА [16:34:05]line ТРК (МРК, ГНК) : 51 [16:34:05]line Товар: 2710194210 [16:34:05]line ДТ-К-5 [16:34:05]line 20.000 * 0.00 [16:34:05]line = 0.00 [16:34:05]line НДС 12% НСП 1% [16:34:05]line > о реализуемом товаре [16:34:05]line ИТОГО: 0.00 [16:34:05]line НСП 1% : 0.00 [16:34:05]line НДС 12% : 0.00 [16:34:05]line Наличными: 0.00 [16:34:05]line Безнал.: 0.00 [16:34:05]line Место: АЗС № 86 "Партнер Нефть" [16:34:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:34:05]line СНО: Общий режим [16:34:05]line Чек 267 23.10.2024 16:34 [16:34:05]line Смена: 462 ФФД: 1.0 [16:34:05]line ЗНМ: 0300000155 [16:34:05]line РНМ: 0000000000100030 [16:34:05]line Версия ККМ: 001 [16:34:05]line Талоны: Топливные Талоны [16:34:05]line 4361508 [16:34:05]line ФМ: 0000000000965340 [16:34:05]line ФД: 188809 [16:34:05]line ФПД: 138548437367468 [16:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163404&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188809&fm=138548437367468&tin=02508201610067®Number=0000000000100030&sum=0 [16:34:05]written 0, free lines is 4095 [16:34:05]OFD Sender: Processing packet 188809 [packets to send 1062, broken 1061] [16:34:05]ProducePacketName [16:34:05]name=ofd_packets/00188809 [16:34:05]OFD Sender: To server: pG, [16:34:05]CommunicateWithHost lk.salyk.kg:30040 [16:34:05]ConnectInit lk.salyk.kg [16:34:05]Connected sock=10 [16:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 5A 34 04 01 22 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 7C 25 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E1 02 00 35 04 06 00 7E 02 52 64 BA AC B8 24 C3 DF 61 49 71 11 [16:34:05]Write to MH i2c: 01 00 00 AE 10 BE [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 6A 0C 3B [16:34:05]RasterBufferAndPrint [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]written 0, free lines is 3184 [16:34:05]MH_Cut [16:34:05]Write to MH i2c: D1 01 00 B5 10 01 97 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 01 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 01 00 B5 10 00 96 [16:34:05]Write to MH i2c: 01 00 00 B6 10 C6 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 1D 47 00 3A 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E1 02 00 F4 03 04 00 67 CF 18 67 B6 04 01 00 00 8C 52 BC 98 75 C9 EB 94 [16:34:06]CommunicateWithHost err = 0 [16:34:06]CheckOFDResponse [16:34:06]1017 (14) - 77093643461234 [16:34:06]1041 (16) - 0000000000965340 [16:34:06]1040 (4) - 188809 [16:34:06]1012 (4) - 23.10.2024 10:26 [16:34:06]1206 (1) - 0 [16:34:06]OFD Sender: Remove packet 188809 [16:34:06]ProducePacketName [16:34:06]name=ofd_packets/00188809 [16:34:06]NVStorageDeleteData [16:34:06]OFD Sender: No OFD packet to send [16:34:07]*** Cut start [16:34:07]*** Partial cut [16:34:07]*** CUTSNS_PIN = 1 [16:34:07]*** CUTSNS_PIN = 0 [16:34:07]*** Brake cut motor [16:34:07]Read from MH i2c: 01 [16:34:07]MH_I2C_Read... [16:34:07]*** Stop cut motor [16:34:07]*** Cut end [16:34:07]Read from MH i2c: 01 07 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: 01 07 00 B6 10 00 00 00 00 00 FF 0F DB [16:34:07]process_action close_receipt done [16:34:07]requested_data is exist [16:34:07]produce_requested_data [16:34:07]requested_item fm.sn is exist - process it [16:34:07]wFMCommunicate request_size=4 [16:34:07]MH_SAM_APDU [16:34:07]CAPDU: 80 11 00 00 [16:34:07]Write to MH i2c: E2 08 00 B7 10 80 11 00 00 00 00 00 00 41 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:07]Read from MH i2c: E2 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 17 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 17 00 B7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8F [16:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:34:07]wFMCommunicate OK [16:34:07]requested_item fd.num is exist - process it [16:34:07]SAM_PROTO_GetFieldsCounters [16:34:07]wFMCommunicate request_size=4 [16:34:07]MH_SAM_APDU [16:34:07]CAPDU: 80 13 00 00 [16:34:07]Write to MH i2c: E2 08 00 B8 10 80 13 00 00 00 00 00 00 44 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:07]Read from MH i2c: E2 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 62 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 62 00 B8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [16:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:07]wFMCommunicate OK [16:34:07]SAM_PROTO_GetFieldsCounters done [16:34:07]requested_item shift.num is exist - process it [16:34:07]requested_item shift.opened is exist - process it [16:34:07]req_shift_opened [16:34:07]FM_GetShiftState [16:34:07]SAM_PROTO_GetShiftState [16:34:07]wFMCommunicate request_size=4 [16:34:07]MH_SAM_APDU [16:34:07]CAPDU: 80 13 01 00 [16:34:07]Write to MH i2c: E2 08 00 B9 10 80 13 01 00 00 00 00 00 46 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 0E 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 0E 00 B9 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2E [16:34:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:34:08]wFMCommunicate OK [16:34:08]SAM_PROTO_GetShiftState done [16:34:08]FM_GetShiftState done [16:34:08]req_shift_opened done [16:34:08]requested_item shift.open_date is exist - process it [16:34:08]req_shift_open_date [16:34:08]req_shift_open_date done [16:34:08]produce_requested_data done [16:34:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188809,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:34:08]process_action_free close_receipt [16:34:08]json_value_free [16:34:08]json_value_free done [16:34:08]process_json_proto returns [16:34:08]Send response to host [16:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188809,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:34:08]free response buf [16:34:08]execute_script done [16:34:08]execute_script returns [16:34:08]free content buf [16:34:08]Sock 7.Close socket [16:34:08]Sock 7.Thread stoped [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:05]accept exits with 9 [16:37:05]New connection [16:37:05]New thread 3067207012 created [16:37:05]Thread 3067350372 joined [16:37:05]Waiting for new connection... [16:37:05] Sock 9.Parse request [16:37:05]Sock 9.Check first char [16:37:05]Sock 9.First char is OK [16:37:05]request: POST /json_proto HTTP/1.0 [16:37:05]Method: POST [16:37:05]URL: /json_proto [16:37:05]Method is POST - this is cgi request [16:37:05]url: /json_proto [16:37:05]query_string will be loaded in cgi processing [16:37:05]execute_cgi json_proto POST (null) [16:37:05]execute_cgi path=json_proto method=POST [16:37:05]POST find Content-Length [16:37:05]Host: 172.17.42.131:8080 [16:37:05]Content-Length: 683 [16:37:05]Content-Type: application/json [16:37:05] [16:37:05]POST finish read [16:37:05]Found Content-Length = 683 [16:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:05]execute_script... [16:37:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:05]POST & json_proto [16:37:05]process_json_proto [16:37:05]json parsed OK: [16:37:05]protocol is kg_v1.0 [16:37:05]action value=close_receipt [16:37:05]process_action close_receipt [16:37:05]cmd_close_receipt [16:37:05]MH_GetDate [16:37:05]Write to MH i2c: F0 00 00 BA 10 B9 [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: F0 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: F0 09 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: F0 09 00 BA 10 00 32 26 19 67 A0 18 CA 66 82 [16:37:05]GetLastDocTimeStamp 1729701244 [16:37:05]current date 1729701426 [16:37:05]FM_GetShiftState [16:37:05]SAM_PROTO_GetShiftState [16:37:05]wFMCommunicate request_size=4 [16:37:05]MH_SAM_APDU [16:37:05]CAPDU: 80 13 01 00 [16:37:05]Write to MH i2c: E2 08 00 BB 10 80 13 01 00 00 00 00 00 48 [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:05]Read from MH i2c: E2 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 0E 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 0E 00 BB 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 30 [16:37:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:37:05]wFMCommunicate OK [16:37:05]SAM_PROTO_GetShiftState done [16:37:05]FM_GetShiftState done [16:37:05]opened in 1729642525 [16:37:05]opened+sec_in_day 1729728925 [16:37:05]quantity*price = 50025 [16:37:05]sum+1 = 50027 [16:37:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 268 23.10.2024 16:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188810 ФПД: 190673282876903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163706&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188810&fm=190673282876903&tin=02508201610067®Number=0000000000100030&sum=50000 [16:37:06]StoreToDocumentArchive [16:37:06]shift 462 fd 188810 [16:37:06]save to /storage/0462/doc_00188810 [16:37:06]save last doc name /storage/0462/doc_00188810 to /storage/kkm_last_doc_name [16:37:06]save OK [16:37:06]Clear old archive folders... [16:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:37:06]tlvbuf is B6F09380 [16:37:06]SAM_PROTO_ClearQueue [16:37:06]wFMCommunicate request_size=4 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 09 00 00 [16:37:06]Write to MH i2c: E2 08 00 C8 10 80 09 00 00 00 00 00 00 4A [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [16:37:06]RAPDU: 90 00 [16:37:06]wFMCommunicate OK [16:37:06]SAM_PROTO_ClearQueue done [16:37:06]KKMCreateOFDPacket [16:37:06]OFDProtocolAddRootSTLVToBuf [16:37:06]FM_MakeSignedData [16:37:06]FM_MakeSignedData [16:37:06]SAM_PROTO_SignData [16:37:06]wFMCommunicate request_size=4 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 0D 01 02 [16:37:06]Write to MH i2c: E2 08 00 C9 10 80 0D 01 02 00 00 00 00 52 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [16:37:06]RAPDU: 90 00 [16:37:06]wFMCommunicate OK [16:37:06]wFMCommunicate request_size=255 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 32 26 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E1 02 [16:37:06]Write to MH i2c: E2 02 01 CA 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 32 26 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E1 02 00 00 80 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:07]Read from MH i2c: E2 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 03 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [16:37:07]RAPDU: 90 00 [16:37:07]wFMCommunicate OK [16:37:07]wFMCommunicate request_size=16 [16:37:07]MH_SAM_APDU [16:37:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AD 6A 95 4B 45 E7 [16:37:07]Write to MH i2c: E2 13 00 CB 10 80 0D 02 02 0B 00 00 35 04 06 00 AD 6A 95 4B 45 E7 00 00 CD [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:07]Read from MH i2c: E2 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 03 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [16:37:07]RAPDU: 90 00 [16:37:07]wFMCommunicate OK [16:37:07]wFMCommunicate request_size=4 [16:37:07]MH_SAM_APDU [16:37:07]CAPDU: 80 0D 03 02 [16:37:07]Write to MH i2c: E2 08 00 CC 10 80 0D 03 02 00 00 00 00 57 [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:07]Read from MH i2c: E2 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 0B 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 0B 00 CC 10 00 B3 E5 56 55 E2 6E 85 90 90 00 00 [16:37:07]RAPDU: B3 E5 56 55 E2 6E 85 90 90 00 [16:37:07]wFMCommunicate OK [16:37:07]SAM_PROTO_SignData done [16:37:07]FM_MakeSignedData done [16:37:07]CreateOFDProtocolMessage [16:37:07]wFMCommunicate request_size=4 [16:37:07]MH_SAM_APDU [16:37:07]CAPDU: 80 11 00 00 [16:37:07]Write to MH i2c: E2 08 00 CD 10 80 11 00 00 00 00 00 00 57 [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:07]Read from MH i2c: E2 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 17 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 17 00 CD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [16:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:37:07]wFMCommunicate OK [16:37:07]CreateOFDProtocolMessage done [16:37:07]OFDSenderStorePacket 188810 [16:37:07]StoreOFDPacket docnum=188810 [16:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 01 B5 0D 01 BF F3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 32 26 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E1 02 00 35 04 06 00 AD 6A 95 4B 45 E7 B3 E5 56 55 E2 6E 85 90 [16:37:07]CheckFolder [16:37:07]dirname=/storage/ofd_packets [16:37:07]CheckFolder done [16:37:07]ProducePacketName [16:37:07]name=ofd_packets/00188810 [16:37:07]NVStorageSaveData ofd_packets/00188810 [16:37:07]File name is /storage/ofd_packets/00188810 [16:37:07]Write 307 bytes [16:37:07]NVStorageSaveData done [16:37:07]OFDSenderStorePacket done [16:37:07]KKMCreateOFDPacket done [16:37:07]NVStorageSaveData kkm_last_timestamp [16:37:07]File name is /storage/kkm_last_timestamp [16:37:07]Write 4 bytes [16:37:07]NVStorageSaveData done [16:37:07]ExternCall_PrintAddStr [16:37:07]wPrintStart [16:37:07]Write to MH i2c: 01 00 00 CE 10 DE [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 07 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 07 00 CE 10 00 00 00 00 00 FF 0F F3 [16:37:07]RasterBufferAndPrint [16:37:07]line Счет N : (1)210870 [16:37:07]line ИНН: 02508201610067 [16:37:07]line Контрольно-Кассовый Чек [16:37:07]line ПРОДАЖА [16:37:07]line ТРК (МРК, ГНК) : 31 [16:37:07]line Товар: 2710194210 [16:37:07]line D-ENERGY ДТ-К-5 [16:37:07]line 6.480 * 77.20 [16:37:07]line = 500.26 [16:37:07]line НДС 12% НСП 1% [16:37:07]line > о реализуемом товаре [16:37:07]line ОКРУГЛЕНИЕ: -0.26 [16:37:07]line ИТОГО: 500.00 [16:37:07]line Внесено: 500.00 [16:37:07]line СДАЧА: 0.00 [16:37:07]line НСП 1% : 4.43 [16:37:07]line НДС 12% : 53.12 [16:37:07]line Наличными: 500.00 [16:37:07]line Безнал.: 0.00 [16:37:07]line Место: АЗС № 86 "Партнер Нефть" [16:37:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:37:07]line СНО: Общий режим [16:37:07]line Чек 268 23.10.2024 16:37 [16:37:07]line Смена: 462 ФФД: 1.0 [16:37:07]line ЗНМ: 0300000155 [16:37:07]line РНМ: 0000000000100030 [16:37:07]line Версия ККМ: 001 [16:37:07]line ФМ: 0000000000965340 [16:37:07]line ФД: 188810 [16:37:07]line ФПД: 190673282876903 [16:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163706&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188810&fm=190673282876903&tin=02508201610067®Number=0000000000100030&sum=50000 [16:37:07]written 0, free lines is 4095 [16:37:07]OFD Sender: Processing packet 188810 [packets to send 1062, broken 1061] [16:37:07]ProducePacketName [16:37:07]name=ofd_packets/00188810 [16:37:07]OFD Sender: To server: pG, [16:37:07]CommunicateWithHost lk.salyk.kg:30040 [16:37:07]ConnectInit lk.salyk.kg [16:37:07]Connected sock=10 [16:37:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 01 B5 0D 01 BF F3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 32 26 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E1 02 00 35 04 06 00 AD 6A 95 4B 45 E7 B3 E5 56 55 E2 6E 85 90 [16:37:07]Write to MH i2c: 01 00 00 F9 10 09 [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 07 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 5D 0C 79 [16:37:07]RasterBufferAndPrint [16:37:07]line [16:37:07]line [16:37:07]line [16:37:07]line [16:37:07]line [16:37:07]written 0, free lines is 3169 [16:37:07]MH_Cut [16:37:07]Write to MH i2c: D1 01 00 00 11 01 E3 [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: D1 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: D1 01 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: D1 01 00 00 11 00 E2 [16:37:07]Write to MH i2c: 01 00 00 01 11 12 [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E9 66 47 00 91 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E1 02 00 F4 03 04 00 1C D0 18 67 B6 04 01 00 00 70 39 FF 88 67 7F 6E 56 [16:37:07]CommunicateWithHost err = 0 [16:37:07]CheckOFDResponse [16:37:07]1017 (14) - 77093643461234 [16:37:07]1041 (16) - 0000000000965340 [16:37:07]1040 (4) - 188810 [16:37:07]1012 (4) - 23.10.2024 10:29 [16:37:07]1206 (1) - 0 [16:37:07]OFD Sender: Remove packet 188810 [16:37:07]ProducePacketName [16:37:07]name=ofd_packets/00188810 [16:37:07]NVStorageDeleteData [16:37:08]OFD Sender: No OFD packet to send [16:37:09]*** Cut start [16:37:09]*** Partial cut [16:37:09]*** CUTSNS_PIN = 1 [16:37:09]*** CUTSNS_PIN = 0 [16:37:09]*** Brake cut motor [16:37:09]Read from MH i2c: 01 [16:37:09]MH_I2C_Read... [16:37:09]*** Stop cut motor [16:37:09]*** Cut end [16:37:09]Read from MH i2c: 01 07 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: 01 07 00 01 11 00 00 00 00 00 FF 0F 27 [16:37:09]process_action close_receipt done [16:37:09]requested_data is exist [16:37:09]produce_requested_data [16:37:09]requested_item fm.sn is exist - process it [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 11 00 00 [16:37:09]Write to MH i2c: E2 08 00 02 11 80 11 00 00 00 00 00 00 8D [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 17 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 17 00 02 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [16:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:37:09]wFMCommunicate OK [16:37:09]requested_item fd.num is exist - process it [16:37:09]SAM_PROTO_GetFieldsCounters [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 13 00 00 [16:37:09]Write to MH i2c: E2 08 00 03 11 80 13 00 00 00 00 00 00 90 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 62 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 62 00 03 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [16:37:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:09]wFMCommunicate OK [16:37:09]SAM_PROTO_GetFieldsCounters done [16:37:09]requested_item shift.num is exist - process it [16:37:09]requested_item shift.opened is exist - process it [16:37:09]req_shift_opened [16:37:09]FM_GetShiftState [16:37:09]SAM_PROTO_GetShiftState [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 13 01 00 [16:37:09]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 0E 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7A [16:37:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:37:09]wFMCommunicate OK [16:37:09]SAM_PROTO_GetShiftState done [16:37:09]FM_GetShiftState done [16:37:09]req_shift_opened done [16:37:09]requested_item shift.open_date is exist - process it [16:37:09]req_shift_open_date [16:37:09]req_shift_open_date done [16:37:09]produce_requested_data done [16:37:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188810,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:37:09]process_action_free close_receipt [16:37:09]json_value_free [16:37:09]json_value_free done [16:37:09]process_json_proto returns [16:37:09]Send response to host [16:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188810,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:37:09]free response buf [16:37:09]execute_script done [16:37:09]execute_script returns [16:37:09]free content buf [16:37:09]Sock 9.Close socket [16:37:09]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:23]accept exits with 7 [16:45:23]New connection [16:45:23]New thread 3067350372 created [16:45:23]Thread 3067207012 joined [16:45:23]Waiting for new connection... [16:45:23] Sock 7.Parse request [16:45:23]Sock 7.Check first char [16:45:23]Sock 7.First char is OK [16:45:23]request: POST /json_proto HTTP/1.0 [16:45:23]Method: POST [16:45:23]URL: /json_proto [16:45:23]Method is POST - this is cgi request [16:45:23]url: /json_proto [16:45:23]query_string will be loaded in cgi processing [16:45:23]execute_cgi json_proto POST (null) [16:45:23]execute_cgi path=json_proto method=POST [16:45:23]POST find Content-Length [16:45:23]Host: 172.17.42.131:8080 [16:45:23]Content-Length: 678 [16:45:23]Content-Type: application/json [16:45:23] [16:45:23]POST finish read [16:45:23]Found Content-Length = 678 [16:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:23]execute_script... [16:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:23]POST & json_proto [16:45:23]process_json_proto [16:45:23]json parsed OK: [16:45:23]protocol is kg_v1.0 [16:45:23]action value=close_receipt [16:45:23]process_action close_receipt [16:45:23]cmd_close_receipt [16:45:23]MH_GetDate [16:45:23]Write to MH i2c: F0 00 00 05 11 05 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: F0 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: F0 09 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: F0 09 00 05 11 00 24 28 19 67 A0 18 CA 66 C2 [16:45:23]GetLastDocTimeStamp 1729701426 [16:45:23]current date 1729701924 [16:45:23]FM_GetShiftState [16:45:23]SAM_PROTO_GetShiftState [16:45:23]wFMCommunicate request_size=4 [16:45:23]MH_SAM_APDU [16:45:23]CAPDU: 80 13 01 00 [16:45:23]Write to MH i2c: E2 08 00 06 11 80 13 01 00 00 00 00 00 94 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:23]Read from MH i2c: E2 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 0E 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 0E 00 06 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7C [16:45:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:45:23]wFMCommunicate OK [16:45:23]SAM_PROTO_GetShiftState done [16:45:23]FM_GetShiftState done [16:45:23]opened in 1729642525 [16:45:23]opened+sec_in_day 1729728925 [16:45:23]quantity*price = 70044 [16:45:23]sum+1 = 70045 [16:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 269 23.10.2024 16:45 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188811 ФПД: 124645848345630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164524&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188811&fm=124645848345630&tin=02508201610067®Number=0000000000100030&sum=70000 [16:45:24]StoreToDocumentArchive [16:45:24]shift 462 fd 188811 [16:45:24]save to /storage/0462/doc_00188811 [16:45:24]save last doc name /storage/0462/doc_00188811 to /storage/kkm_last_doc_name [16:45:24]save OK [16:45:24]Clear old archive folders... [16:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:24]tlvbuf is 01174CB0 [16:45:24]SAM_PROTO_ClearQueue [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 09 00 00 [16:45:24]Write to MH i2c: E2 08 00 13 11 80 09 00 00 00 00 00 00 96 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [16:45:24]RAPDU: 90 00 [16:45:24]wFMCommunicate OK [16:45:24]SAM_PROTO_ClearQueue done [16:45:24]KKMCreateOFDPacket [16:45:24]OFDProtocolAddRootSTLVToBuf [16:45:24]FM_MakeSignedData [16:45:24]FM_MakeSignedData [16:45:24]SAM_PROTO_SignData [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 0D 01 02 [16:45:24]Write to MH i2c: E2 08 00 14 11 80 0D 01 02 00 00 00 00 9E [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [16:45:24]RAPDU: 90 00 [16:45:24]wFMCommunicate OK [16:45:24]wFMCommunicate request_size=255 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 24 28 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E1 02 00 35 04 06 00 71 [16:45:24]Write to MH i2c: E2 02 01 15 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 24 28 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E1 02 00 35 04 06 00 71 00 00 A9 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [16:45:24]RAPDU: 90 00 [16:45:24]wFMCommunicate OK [16:45:24]wFMCommunicate request_size=10 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 0D 02 02 05 5D 5F 83 6C 1E [16:45:24]Write to MH i2c: E2 0D 00 16 11 80 0D 02 02 05 00 5D 5F 83 6C 1E 00 00 74 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [16:45:24]RAPDU: 90 00 [16:45:24]wFMCommunicate OK [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 0D 03 02 [16:45:24]Write to MH i2c: E2 08 00 17 11 80 0D 03 02 00 00 00 00 A3 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 0B 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 0B 00 17 11 00 3D A5 EB 54 17 35 6A 35 90 00 B0 [16:45:24]RAPDU: 3D A5 EB 54 17 35 6A 35 90 00 [16:45:24]wFMCommunicate OK [16:45:24]SAM_PROTO_SignData done [16:45:24]FM_MakeSignedData done [16:45:24]CreateOFDProtocolMessage [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 11 00 00 [16:45:24]Write to MH i2c: E2 08 00 18 11 80 11 00 00 00 00 00 00 A3 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 17 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 17 00 18 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [16:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:45:24]wFMCommunicate OK [16:45:24]CreateOFDProtocolMessage done [16:45:24]OFDSenderStorePacket 188811 [16:45:24]StoreOFDPacket docnum=188811 [16:45:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 43 4E 07 01 D7 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 24 28 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E1 02 00 35 04 06 00 71 5D 5F 83 6C 1E 3D A5 EB 54 17 35 6A 35 [16:45:24]CheckFolder [16:45:24]dirname=/storage/ofd_packets [16:45:24]CheckFolder done [16:45:24]ProducePacketName [16:45:24]name=ofd_packets/00188811 [16:45:24]NVStorageSaveData ofd_packets/00188811 [16:45:24]File name is /storage/ofd_packets/00188811 [16:45:24]Write 301 bytes [16:45:24]NVStorageSaveData done [16:45:24]OFDSenderStorePacket done [16:45:24]KKMCreateOFDPacket done [16:45:24]NVStorageSaveData kkm_last_timestamp [16:45:24]File name is /storage/kkm_last_timestamp [16:45:24]Write 4 bytes [16:45:24]NVStorageSaveData done [16:45:24]ExternCall_PrintAddStr [16:45:24]wPrintStart [16:45:24]Write to MH i2c: 01 00 00 19 11 2A [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: 01 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: 01 07 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 FF 0F 3F [16:45:24]RasterBufferAndPrint [16:45:24]line Счет N : (1)210871 [16:45:24]line ИНН: 02508201610067 [16:45:24]line Контрольно-Кассовый Чек [16:45:24]line ПРОДАЖА [16:45:24]line ТРК (МРК, ГНК) : 12 [16:45:24]line Товар: 2710124130 [16:45:24]line Аи-92-К-3 [16:45:24]line 10.470 * 66.90 [16:45:24]line = 700.44 [16:45:24]line НДС 12% НСП 1% [16:45:24]line > о реализуемом товаре [16:45:24]line ОКРУГЛЕНИЕ: -0.44 [16:45:24]line ИТОГО: 700.00 [16:45:24]line Внесено: 700.00 [16:45:24]line СДАЧА: 0.00 [16:45:24]line НСП 1% : 6.20 [16:45:24]line НДС 12% : 74.38 [16:45:24]line Наличными: 700.00 [16:45:24]line Безнал.: 0.00 [16:45:24]line Место: АЗС № 86 "Партнер Нефть" [16:45:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:45:24]line СНО: Общий режим [16:45:24]line Чек 269 23.10.2024 16:45 [16:45:24]line Смена: 462 ФФД: 1.0 [16:45:24]line ЗНМ: 0300000155 [16:45:24]line РНМ: 0000000000100030 [16:45:24]line Версия ККМ: 001 [16:45:24]line ФМ: 0000000000965340 [16:45:24]line ФД: 188811 [16:45:24]line ФПД: 124645848345630 [16:45:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164524&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188811&fm=124645848345630&tin=02508201610067®Number=0000000000100030&sum=70000 [16:45:24]written 0, free lines is 4095 [16:45:25]OFD Sender: Processing packet 188811 [packets to send 1062, broken 1061] [16:45:25]ProducePacketName [16:45:25]name=ofd_packets/00188811 [16:45:25]OFD Sender: To server: pG, [16:45:25]CommunicateWithHost lk.salyk.kg:30040 [16:45:25]ConnectInit lk.salyk.kg [16:45:25]Connected sock=10 [16:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 43 4E 07 01 D7 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 24 28 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E1 02 00 35 04 06 00 71 5D 5F 83 6C 1E 3D A5 EB 54 17 35 6A 35 [16:45:25]Write to MH i2c: 01 00 00 44 11 55 [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: 01 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: 01 07 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: 01 07 00 44 11 00 00 00 00 00 57 0C BF [16:45:25]RasterBufferAndPrint [16:45:25]line [16:45:25]line [16:45:25]line [16:45:25]line [16:45:25]line [16:45:25]written 0, free lines is 3163 [16:45:25]MH_Cut [16:45:25]Write to MH i2c: D1 01 00 4B 11 01 2E [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: D1 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: D1 01 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: D1 01 00 4B 11 00 2D [16:45:25]Write to MH i2c: 01 00 00 4C 11 5D [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 98 2B 47 00 43 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E1 02 00 F4 03 04 00 0E D2 18 67 B6 04 01 00 00 A2 90 70 3C F7 84 EB 56 [16:45:25]CommunicateWithHost err = 0 [16:45:25]CheckOFDResponse [16:45:25]1017 (14) - 77093643461234 [16:45:25]1041 (16) - 0000000000965340 [16:45:25]1040 (4) - 188811 [16:45:25]1012 (4) - 23.10.2024 10:38 [16:45:25]1206 (1) - 0 [16:45:25]OFD Sender: Remove packet 188811 [16:45:25]ProducePacketName [16:45:25]name=ofd_packets/00188811 [16:45:25]NVStorageDeleteData [16:45:26]OFD Sender: No OFD packet to send [16:45:26]*** Cut start [16:45:26]*** Partial cut [16:45:26]*** CUTSNS_PIN = 1 [16:45:26]*** CUTSNS_PIN = 0 [16:45:26]*** Brake cut motor [16:45:27]Read from MH i2c: 01 [16:45:27]MH_I2C_Read... [16:45:27]*** Stop cut motor [16:45:27]*** Cut end [16:45:27]Read from MH i2c: 01 07 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: 01 07 00 4C 11 00 00 00 00 00 FF 0F 72 [16:45:27]process_action close_receipt done [16:45:27]requested_data is exist [16:45:27]produce_requested_data [16:45:27]requested_item fm.sn is exist - process it [16:45:27]wFMCommunicate request_size=4 [16:45:27]MH_SAM_APDU [16:45:27]CAPDU: 80 11 00 00 [16:45:27]Write to MH i2c: E2 08 00 4D 11 80 11 00 00 00 00 00 00 D8 [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:27]Read from MH i2c: E2 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 17 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 17 00 4D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [16:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:45:27]wFMCommunicate OK [16:45:27]requested_item fd.num is exist - process it [16:45:27]SAM_PROTO_GetFieldsCounters [16:45:27]wFMCommunicate request_size=4 [16:45:27]MH_SAM_APDU [16:45:27]CAPDU: 80 13 00 00 [16:45:27]Write to MH i2c: E2 08 00 4E 11 80 13 00 00 00 00 00 00 DB [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:27]Read from MH i2c: E2 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 62 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 62 00 4E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [16:45:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:27]wFMCommunicate OK [16:45:27]SAM_PROTO_GetFieldsCounters done [16:45:27]requested_item shift.num is exist - process it [16:45:27]requested_item shift.opened is exist - process it [16:45:27]req_shift_opened [16:45:27]FM_GetShiftState [16:45:27]SAM_PROTO_GetShiftState [16:45:27]wFMCommunicate request_size=4 [16:45:27]MH_SAM_APDU [16:45:27]CAPDU: 80 13 01 00 [16:45:27]Write to MH i2c: E2 08 00 4F 11 80 13 01 00 00 00 00 00 DD [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:27]Read from MH i2c: E2 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 0E 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 0E 00 4F 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C5 [16:45:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:45:27]wFMCommunicate OK [16:45:27]SAM_PROTO_GetShiftState done [16:45:27]FM_GetShiftState done [16:45:27]req_shift_opened done [16:45:27]requested_item shift.open_date is exist - process it [16:45:27]req_shift_open_date [16:45:27]req_shift_open_date done [16:45:27]produce_requested_data done [16:45:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188811,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:45:27]process_action_free close_receipt [16:45:27]json_value_free [16:45:27]json_value_free done [16:45:27]process_json_proto returns [16:45:27]Send response to host [16:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188811,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:45:27]free response buf [16:45:27]execute_script done [16:45:27]execute_script returns [16:45:27]free content buf [16:45:27]Sock 7.Close socket [16:45:27]Sock 7.Thread stoped [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:49]accept exits with 9 [16:50:49]New connection [16:50:49]New thread 3067207012 created [16:50:49]Thread 3067350372 joined [16:50:49]Waiting for new connection... [16:50:49] Sock 9.Parse request [16:50:49]Sock 9.Check first char [16:50:49]Sock 9.First char is OK [16:50:49]request: POST /json_proto HTTP/1.0 [16:50:49]Method: POST [16:50:49]URL: /json_proto [16:50:49]Method is POST - this is cgi request [16:50:49]url: /json_proto [16:50:49]query_string will be loaded in cgi processing [16:50:49]execute_cgi json_proto POST (null) [16:50:49]execute_cgi path=json_proto method=POST [16:50:49]POST find Content-Length [16:50:49]Host: 172.17.42.131:8080 [16:50:49]Content-Length: 682 [16:50:49]Content-Type: application/json [16:50:49] [16:50:49]POST finish read [16:50:49]Found Content-Length = 682 [16:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:49]execute_script... [16:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:49]POST & json_proto [16:50:49]process_json_proto [16:50:49]json parsed OK: [16:50:49]protocol is kg_v1.0 [16:50:49]action value=close_receipt [16:50:49]process_action close_receipt [16:50:49]cmd_close_receipt [16:50:49]MH_GetDate [16:50:49]Write to MH i2c: F0 00 00 50 11 50 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: F0 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: F0 09 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: F0 09 00 50 11 00 6A 29 19 67 A0 18 CA 66 54 [16:50:49]GetLastDocTimeStamp 1729701924 [16:50:49]current date 1729702250 [16:50:49]FM_GetShiftState [16:50:49]SAM_PROTO_GetShiftState [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 13 01 00 [16:50:49]Write to MH i2c: E2 08 00 51 11 80 13 01 00 00 00 00 00 DF [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 0E 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 0E 00 51 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C7 [16:50:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:50:49]wFMCommunicate OK [16:50:49]SAM_PROTO_GetShiftState done [16:50:49]FM_GetShiftState done [16:50:49]opened in 1729642525 [16:50:49]opened+sec_in_day 1729728925 [16:50:49]quantity*price = 100021 [16:50:49]sum+1 = 100023 [16:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 270 23.10.2024 16:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188812 ФПД: 175681481849329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165050&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188812&fm=175681481849329&tin=02508201610067®Number=0000000000100030&sum=100000 [16:50:50]StoreToDocumentArchive [16:50:50]shift 462 fd 188812 [16:50:50]save to /storage/0462/doc_00188812 [16:50:50]save last doc name /storage/0462/doc_00188812 to /storage/kkm_last_doc_name [16:50:50]save OK [16:50:50]Clear old archive folders... [16:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:50]tlvbuf is 01174F40 [16:50:50]SAM_PROTO_ClearQueue [16:50:50]wFMCommunicate request_size=4 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 09 00 00 [16:50:50]Write to MH i2c: E2 08 00 5E 11 80 09 00 00 00 00 00 00 E1 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 03 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [16:50:50]RAPDU: 90 00 [16:50:50]wFMCommunicate OK [16:50:50]SAM_PROTO_ClearQueue done [16:50:50]KKMCreateOFDPacket [16:50:50]OFDProtocolAddRootSTLVToBuf [16:50:50]FM_MakeSignedData [16:50:50]FM_MakeSignedData [16:50:50]SAM_PROTO_SignData [16:50:50]wFMCommunicate request_size=4 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 0D 01 02 [16:50:50]Write to MH i2c: E2 08 00 5F 11 80 0D 01 02 00 00 00 00 E9 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 03 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [16:50:50]RAPDU: 90 00 [16:50:50]wFMCommunicate OK [16:50:50]wFMCommunicate request_size=255 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 6A 29 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E1 02 00 35 04 06 00 9F [16:50:50]Write to MH i2c: E2 02 01 60 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 6A 29 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E1 02 00 35 04 06 00 9F 00 00 78 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 03 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [16:50:50]RAPDU: 90 00 [16:50:50]wFMCommunicate OK [16:50:50]wFMCommunicate request_size=10 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 0D 02 02 05 C8 08 51 B9 F1 [16:50:50]Write to MH i2c: E2 0D 00 61 11 80 0D 02 02 05 00 C8 08 51 B9 F1 00 00 C1 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 03 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 03 00 61 11 00 90 00 E6 [16:50:50]RAPDU: 90 00 [16:50:50]wFMCommunicate OK [16:50:50]wFMCommunicate request_size=4 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 0D 03 02 [16:50:50]Write to MH i2c: E2 08 00 62 11 80 0D 03 02 00 00 00 00 EE [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 0B 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 0B 00 62 11 00 5E 51 9B 63 35 72 44 22 90 00 A9 [16:50:50]RAPDU: 5E 51 9B 63 35 72 44 22 90 00 [16:50:50]wFMCommunicate OK [16:50:50]SAM_PROTO_SignData done [16:50:50]FM_MakeSignedData done [16:50:50]CreateOFDProtocolMessage [16:50:50]wFMCommunicate request_size=4 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 11 00 00 [16:50:50]Write to MH i2c: E2 08 00 63 11 80 11 00 00 00 00 00 00 EE [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 17 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 17 00 63 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [16:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:50:50]wFMCommunicate OK [16:50:50]CreateOFDProtocolMessage done [16:50:50]OFDSenderStorePacket 188812 [16:50:50]StoreOFDPacket docnum=188812 [16:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 D7 07 01 AF E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 6A 29 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E1 02 00 35 04 06 00 9F C8 08 51 B9 F1 5E 51 9B 63 35 72 44 22 [16:50:50]CheckFolder [16:50:50]dirname=/storage/ofd_packets [16:50:50]CheckFolder done [16:50:50]ProducePacketName [16:50:50]name=ofd_packets/00188812 [16:50:50]NVStorageSaveData ofd_packets/00188812 [16:50:50]File name is /storage/ofd_packets/00188812 [16:50:50]Write 301 bytes [16:50:50]NVStorageSaveData done [16:50:50]OFDSenderStorePacket done [16:50:50]KKMCreateOFDPacket done [16:50:50]NVStorageSaveData kkm_last_timestamp [16:50:50]File name is /storage/kkm_last_timestamp [16:50:50]Write 4 bytes [16:50:50]NVStorageSaveData done [16:50:50]ExternCall_PrintAddStr [16:50:50]wPrintStart [16:50:50]Write to MH i2c: 01 00 00 64 11 75 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 07 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 07 00 64 11 00 00 00 00 00 FF 0F 8A [16:50:50]RasterBufferAndPrint [16:50:50]line Счет N : (1)210872 [16:50:50]line ИНН: 02508201610067 [16:50:50]line Контрольно-Кассовый Чек [16:50:50]line ПРОДАЖА [16:50:50]line ТРК (МРК, ГНК) : 13 [16:50:50]line Товар: 2710124500 [16:50:50]line Аи-95-К-3 [16:50:50]line 13.480 * 74.20 [16:50:50]line = 1000.22 [16:50:50]line НДС 12% НСП 1% [16:50:50]line > о реализуемом товаре [16:50:50]line ОКРУГЛЕНИЕ: -0.22 [16:50:50]line ИТОГО: 1000.00 [16:50:50]line Внесено: 1000.00 [16:50:50]line СДАЧА: 0.00 [16:50:50]line НСП 1% : 8.85 [16:50:50]line НДС 12% : 106.22 [16:50:50]line Наличными: 1000.00 [16:50:50]line Безнал.: 0.00 [16:50:50]line Место: АЗС № 86 "Партнер Нефть" [16:50:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:50:50]line СНО: Общий режим [16:50:50]line Чек 270 23.10.2024 16:50 [16:50:50]line Смена: 462 ФФД: 1.0 [16:50:50]line ЗНМ: 0300000155 [16:50:50]line РНМ: 0000000000100030 [16:50:50]line Версия ККМ: 001 [16:50:50]line ФМ: 0000000000965340 [16:50:50]line ФД: 188812 [16:50:50]line ФПД: 175681481849329 [16:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165050&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188812&fm=175681481849329&tin=02508201610067®Number=0000000000100030&sum=100000 [16:50:50]written 0, free lines is 4095 [16:50:51]OFD Sender: Processing packet 188812 [packets to send 1062, broken 1061] [16:50:51]ProducePacketName [16:50:51]name=ofd_packets/00188812 [16:50:51]OFD Sender: To server: pG, [16:50:51]CommunicateWithHost lk.salyk.kg:30040 [16:50:51]ConnectInit lk.salyk.kg [16:50:51]Write to MH i2c: 01 00 00 8F 11 A0 [16:50:51]Write i2c OK [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: 01 [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: 01 07 00 [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 58 0C 0B [16:50:51]RasterBufferAndPrint [16:50:51]line [16:50:51]line [16:50:51]line [16:50:51]line [16:50:51]line [16:50:51]written 0, free lines is 3163 [16:50:51]MH_Cut [16:50:51]Write to MH i2c: D1 01 00 96 11 01 79 [16:50:51]Write i2c OK [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: D1 [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: D1 01 00 [16:50:51]MH_I2C_Read... [16:50:51]Read from MH i2c: D1 01 00 96 11 00 78 [16:50:51]Write to MH i2c: 01 00 00 97 11 A8 [16:50:51]Write i2c OK [16:50:51]MH_I2C_Read... [16:50:52]*** Cut start [16:50:52]*** Partial cut [16:50:52]*** CUTSNS_PIN = 1 [16:50:52]*** CUTSNS_PIN = 0 [16:50:53]*** Brake cut motor [16:50:53]Read from MH i2c: 01 [16:50:53]MH_I2C_Read... [16:50:53]*** Stop cut motor [16:50:53]*** Cut end [16:50:53]Read from MH i2c: 01 07 00 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: 01 07 00 97 11 00 00 00 00 00 FF 0F BD [16:50:53]process_action close_receipt done [16:50:53]requested_data is exist [16:50:53]produce_requested_data [16:50:53]requested_item fm.sn is exist - process it [16:50:53]wFMCommunicate request_size=4 [16:50:53]MH_SAM_APDU [16:50:53]CAPDU: 80 11 00 00 [16:50:53]Write to MH i2c: E2 08 00 98 11 80 11 00 00 00 00 00 00 23 [16:50:53]Write i2c OK [16:50:53]MH_I2C_Read... [16:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:53]Read from MH i2c: E2 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: E2 17 00 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: E2 17 00 98 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [16:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:50:53]wFMCommunicate OK [16:50:53]requested_item fd.num is exist - process it [16:50:53]SAM_PROTO_GetFieldsCounters [16:50:53]wFMCommunicate request_size=4 [16:50:53]MH_SAM_APDU [16:50:53]CAPDU: 80 13 00 00 [16:50:53]Write to MH i2c: E2 08 00 99 11 80 13 00 00 00 00 00 00 26 [16:50:53]Write i2c OK [16:50:53]MH_I2C_Read... [16:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:53]Read from MH i2c: E2 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: E2 62 00 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: E2 62 00 99 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:53]wFMCommunicate OK [16:50:53]SAM_PROTO_GetFieldsCounters done [16:50:53]requested_item shift.num is exist - process it [16:50:53]requested_item shift.opened is exist - process it [16:50:53]req_shift_opened [16:50:53]FM_GetShiftState [16:50:53]SAM_PROTO_GetShiftState [16:50:53]wFMCommunicate request_size=4 [16:50:53]MH_SAM_APDU [16:50:53]CAPDU: 80 13 01 00 [16:50:53]Write to MH i2c: E2 08 00 9A 11 80 13 01 00 00 00 00 00 28 [16:50:53]Write i2c OK [16:50:53]MH_I2C_Read... [16:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:53]Read from MH i2c: E2 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: E2 0E 00 [16:50:53]MH_I2C_Read... [16:50:53]Read from MH i2c: E2 0E 00 9A 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 10 [16:50:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:50:53]wFMCommunicate OK [16:50:53]SAM_PROTO_GetShiftState done [16:50:53]FM_GetShiftState done [16:50:53]req_shift_opened done [16:50:53]requested_item shift.open_date is exist - process it [16:50:53]req_shift_open_date [16:50:53]req_shift_open_date done [16:50:53]produce_requested_data done [16:50:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188812,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:50:53]process_action_free close_receipt [16:50:53]json_value_free [16:50:53]json_value_free done [16:50:53]process_json_proto returns [16:50:53]Send response to host [16:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188812,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:50:53]free response buf [16:50:53]execute_script done [16:50:53]execute_script returns [16:50:53]free content buf [16:50:53]Sock 9.Close socket [16:50:53]Sock 9.Thread stoped [16:50:56]accept exits with 7 [16:50:56]New connection [16:50:56]New thread 3067350372 created [16:50:56]Thread 3067207012 joined [16:50:56]Waiting for new connection... [16:50:56] Sock 7.Parse request [16:50:56]Sock 7.Check first char [16:50:56]Sock 7.First char is OK [16:50:56]request: POST /json_proto HTTP/1.0 [16:50:56]Method: POST [16:50:56]URL: /json_proto [16:50:56]Method is POST - this is cgi request [16:50:56]url: /json_proto [16:50:56]query_string will be loaded in cgi processing [16:50:56]execute_cgi json_proto POST (null) [16:50:56]execute_cgi path=json_proto method=POST [16:50:56]POST find Content-Length [16:50:56]Host: 172.17.42.131:8080 [16:50:56]Content-Length: 775 [16:50:56]Content-Type: application/json [16:50:56] [16:50:56]POST finish read [16:50:56]Found Content-Length = 775 [16:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:56]execute_script... [16:50:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:56]POST & json_proto [16:50:56]process_json_proto [16:50:56]json parsed OK: [16:50:56]protocol is kg_v1.0 [16:50:56]action value=close_receipt [16:50:56]process_action close_receipt [16:50:56]cmd_close_receipt [16:50:56]MH_GetDate [16:50:56]Write to MH i2c: F0 00 00 9B 11 9B [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: F0 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: F0 09 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: F0 09 00 9B 11 00 71 29 19 67 A0 18 CA 66 A6 [16:50:56]GetLastDocTimeStamp 1729702250 [16:50:56]current date 1729702257 [16:50:56]FM_GetShiftState [16:50:56]SAM_PROTO_GetShiftState [16:50:56]wFMCommunicate request_size=4 [16:50:56]MH_SAM_APDU [16:50:56]CAPDU: 80 13 01 00 [16:50:56]Write to MH i2c: E2 08 00 9C 11 80 13 01 00 00 00 00 00 2A [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:56]Read from MH i2c: E2 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 0E 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 0E 00 9C 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 12 [16:50:56]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:50:56]wFMCommunicate OK [16:50:56]SAM_PROTO_GetShiftState done [16:50:56]FM_GetShiftState done [16:50:56]opened in 1729642525 [16:50:56]opened+sec_in_day 1729728925 [16:50:56]quantity*price = 100051 [16:50:56]sum+1 = 100052 [16:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 271 23.10.2024 16:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188813 ФПД: 121308951274215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165057&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188813&fm=121308951274215&tin=02508201610067®Number=0000000000100030&sum=100051 [16:50:57]StoreToDocumentArchive [16:50:57]shift 462 fd 188813 [16:50:57]save to /storage/0462/doc_00188813 [16:50:57]save last doc name /storage/0462/doc_00188813 to /storage/kkm_last_doc_name [16:50:57]save OK [16:50:57]Clear old archive folders... [16:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:50:57]tlvbuf is 01109A40 [16:50:57]SAM_PROTO_ClearQueue [16:50:57]wFMCommunicate request_size=4 [16:50:57]MH_SAM_APDU [16:50:57]CAPDU: 80 09 00 00 [16:50:57]Write to MH i2c: E2 08 00 A9 11 80 09 00 00 00 00 00 00 2C [16:50:57]Write i2c OK [16:50:57]MH_I2C_Read... [16:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:57]Read from MH i2c: E2 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: E2 03 00 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [16:50:57]RAPDU: 90 00 [16:50:57]wFMCommunicate OK [16:50:57]SAM_PROTO_ClearQueue done [16:50:57]KKMCreateOFDPacket [16:50:57]OFDProtocolAddRootSTLVToBuf [16:50:57]FM_MakeSignedData [16:50:57]FM_MakeSignedData [16:50:57]SAM_PROTO_SignData [16:50:57]wFMCommunicate request_size=4 [16:50:57]MH_SAM_APDU [16:50:57]CAPDU: 80 0D 01 02 [16:50:57]Write to MH i2c: E2 08 00 AA 11 80 0D 01 02 00 00 00 00 34 [16:50:57]Write i2c OK [16:50:57]MH_I2C_Read... [16:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:57]Read from MH i2c: E2 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: E2 03 00 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [16:50:57]RAPDU: 90 00 [16:50:57]wFMCommunicate OK [16:50:57]wFMCommunicate request_size=255 [16:50:57]MH_SAM_APDU [16:50:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 71 29 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E1 02 [16:50:57]Write to MH i2c: E2 02 01 AB 11 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 71 29 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E1 02 00 00 60 [16:50:57]Write i2c OK [16:50:57]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [16:50:58]RAPDU: 90 00 [16:50:58]wFMCommunicate OK [16:50:58]wFMCommunicate request_size=16 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6E 54 70 F2 E2 E7 [16:50:58]Write to MH i2c: E2 13 00 AC 11 80 0D 02 02 0B 00 00 35 04 06 00 6E 54 70 F2 E2 E7 00 00 79 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 AC 11 00 90 00 31 [16:50:58]RAPDU: 90 00 [16:50:58]wFMCommunicate OK [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 0D 03 02 [16:50:58]Write to MH i2c: E2 08 00 AD 11 80 0D 03 02 00 00 00 00 39 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0B 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0B 00 AD 11 00 A4 C1 6C 98 24 1F 5B 29 90 00 6A [16:50:58]RAPDU: A4 C1 6C 98 24 1F 5B 29 90 00 [16:50:58]wFMCommunicate OK [16:50:58]SAM_PROTO_SignData done [16:50:58]FM_MakeSignedData done [16:50:58]CreateOFDProtocolMessage [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 11 00 00 [16:50:58]Write to MH i2c: E2 08 00 AE 11 80 11 00 00 00 00 00 00 39 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 17 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 17 00 AE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [16:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:50:58]wFMCommunicate OK [16:50:58]CreateOFDProtocolMessage done [16:50:58]OFDSenderStorePacket 188813 [16:50:58]StoreOFDPacket docnum=188813 [16:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A6 A9 0D 01 CB AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 71 29 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E1 02 00 35 04 06 00 6E 54 70 F2 E2 E7 A4 C1 6C 98 24 1F 5B 29 [16:50:58]CheckFolder [16:50:58]dirname=/storage/ofd_packets [16:50:58]CheckFolder done [16:50:58]ProducePacketName [16:50:58]name=ofd_packets/00188813 [16:50:58]NVStorageSaveData ofd_packets/00188813 [16:50:58]File name is /storage/ofd_packets/00188813 [16:50:58]Write 307 bytes [16:50:58]NVStorageSaveData done [16:50:58]OFDSenderStorePacket done [16:50:58]KKMCreateOFDPacket done [16:50:58]NVStorageSaveData kkm_last_timestamp [16:50:58]File name is /storage/kkm_last_timestamp [16:50:58]Write 4 bytes [16:50:58]NVStorageSaveData done [16:50:58]ExternCall_PrintAddStr [16:50:58]wPrintStart [16:50:58]Write to MH i2c: 01 00 00 AF 11 C0 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 07 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 07 00 AF 11 00 00 00 00 00 FF 0F D5 [16:50:58]RasterBufferAndPrint [16:50:58]line Счет N : (1)210873 [16:50:58]line ИНН: 02508201610067 [16:50:58]line Контрольно-Кассовый Чек [16:50:58]line ПРОДАЖА [16:50:58]line ТРК (МРК, ГНК) : 31 [16:50:58]line Товар: 2710194210 [16:50:58]line D-ENERGY ДТ-К-5 [16:50:58]line 12.960 * 77.20 [16:50:58]line = 1000.51 [16:50:58]line НДС 12% НСП 1% [16:50:58]line > о реализуемом товаре [16:50:58]line ИТОГО: 1000.51 [16:50:58]line НСП 1% : 8.85 [16:50:58]line НДС 12% : 106.25 [16:50:58]line Наличными: 0.00 [16:50:58]line Безнал.: 1000.51 [16:50:58]line Место: АЗС № 86 "Партнер Нефть" [16:50:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:50:58]line СНО: Общий режим [16:50:58]line Чек 271 23.10.2024 16:50 [16:50:58]line Смена: 462 ФФД: 1.0 [16:50:58]line ЗНМ: 0300000155 [16:50:58]line РНМ: 0000000000100030 [16:50:58]line Версия ККМ: 001 [16:50:58]line Платежная система: Mbank [16:50:58]line ФМ: 0000000000965340 [16:50:58]line ФД: 188813 [16:50:58]line ФПД: 121308951274215 [16:50:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165057&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188813&fm=121308951274215&tin=02508201610067®Number=0000000000100030&sum=100051 [16:50:58]written 0, free lines is 4095 [16:50:58]Write to MH i2c: 01 00 00 D8 11 E9 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 07 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 07 00 D8 11 00 00 00 00 00 86 0C 82 [16:50:58]RasterBufferAndPrint [16:50:58]line [16:50:58]line [16:50:58]line [16:50:58]line [16:50:58]line [16:50:58]written 0, free lines is 3212 [16:50:58]MH_Cut [16:50:58]Write to MH i2c: D1 01 00 DF 11 01 C2 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: D1 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: D1 01 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: D1 01 00 DF 11 00 C1 [16:50:58]Write to MH i2c: 01 00 00 E0 11 F1 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:51:00]*** Cut start [16:51:00]*** Partial cut [16:51:00]*** CUTSNS_PIN = 1 [16:51:00]*** CUTSNS_PIN = 0 [16:51:00]*** Brake cut motor [16:51:00]Read from MH i2c: 01 [16:51:00]MH_I2C_Read... [16:51:00]*** Stop cut motor [16:51:00]*** Cut end [16:51:00]Read from MH i2c: 01 07 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 E0 11 00 00 00 00 00 FF 0F 06 [16:51:00]process_action close_receipt done [16:51:00]requested_data is exist [16:51:00]produce_requested_data [16:51:00]requested_item fm.sn is exist - process it [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 11 00 00 [16:51:00]Write to MH i2c: E2 08 00 E1 11 80 11 00 00 00 00 00 00 6C [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 17 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 17 00 E1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [16:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:51:00]wFMCommunicate OK [16:51:00]requested_item fd.num is exist - process it [16:51:00]SAM_PROTO_GetFieldsCounters [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 13 00 00 [16:51:00]Write to MH i2c: E2 08 00 E2 11 80 13 00 00 00 00 00 00 6F [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 62 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 62 00 E2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [16:51:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:00]wFMCommunicate OK [16:51:00]SAM_PROTO_GetFieldsCounters done [16:51:00]requested_item shift.num is exist - process it [16:51:00]requested_item shift.opened is exist - process it [16:51:00]req_shift_opened [16:51:00]FM_GetShiftState [16:51:00]SAM_PROTO_GetShiftState [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 13 01 00 [16:51:00]Write to MH i2c: E2 08 00 E3 11 80 13 01 00 00 00 00 00 71 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 0E 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 0E 00 E3 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 59 [16:51:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:51:00]wFMCommunicate OK [16:51:00]SAM_PROTO_GetShiftState done [16:51:00]FM_GetShiftState done [16:51:00]req_shift_opened done [16:51:00]requested_item shift.open_date is exist - process it [16:51:00]req_shift_open_date [16:51:00]req_shift_open_date done [16:51:00]produce_requested_data done [16:51:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188813,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:51:00]process_action_free close_receipt [16:51:00]json_value_free [16:51:00]json_value_free done [16:51:00]process_json_proto returns [16:51:00]Send response to host [16:51:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188813,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:51:00]free response buf [16:51:00]execute_script done [16:51:00]execute_script returns [16:51:00]free content buf [16:51:00]Sock 7.Close socket [16:51:00]Sock 7.Thread stoped [16:53:03]ConnectInit Can't connect to host [16:53:03]CommunicateWithHost connect error [16:53:03]CommunicateWithHost err = -1 [16:53:03]OFD Sender: Server communicate error [16:53:03]OFD Sender: Processing packet 188812 [packets to send 1063, broken 1061] [16:53:03]ProducePacketName [16:53:03]name=ofd_packets/00188812 [16:53:03]OFD Sender: To server: pG, [16:53:03]CommunicateWithHost lk.salyk.kg:30040 [16:53:03]ConnectInit lk.salyk.kg [16:53:03]Connected sock=7 [16:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 D7 07 01 AF E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 6A 29 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E1 02 00 35 04 06 00 9F C8 08 51 B9 F1 5E 51 9B 63 35 72 44 22 [16:53:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 88 47 00 47 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E1 02 00 F4 03 04 00 D8 D3 18 67 B6 04 01 00 00 F1 33 75 6B AA 92 4C FC [16:53:03]CommunicateWithHost err = 0 [16:53:03]CheckOFDResponse [16:53:03]1017 (14) - 77093643461234 [16:53:03]1041 (16) - 0000000000965340 [16:53:03]1040 (4) - 188812 [16:53:03]1012 (4) - 23.10.2024 10:45 [16:53:03]1206 (1) - 0 [16:53:03]OFD Sender: Remove packet 188812 [16:53:03]ProducePacketName [16:53:03]name=ofd_packets/00188812 [16:53:03]NVStorageDeleteData [16:53:04]OFD Sender: Processing packet 188813 [packets to send 1062, broken 1061] [16:53:04]ProducePacketName [16:53:04]name=ofd_packets/00188813 [16:53:04]OFD Sender: To server: pG, [16:53:04]CommunicateWithHost lk.salyk.kg:30040 [16:53:04]ConnectInit lk.salyk.kg [16:55:16]ConnectInit Can't connect to host [16:55:16]CommunicateWithHost connect error [16:55:16]CommunicateWithHost err = -1 [16:55:16]OFD Sender: Server communicate error [16:55:21]OFD Sender: Processing packet 188813 [packets to send 1062, broken 1061] [16:55:21]ProducePacketName [16:55:21]name=ofd_packets/00188813 [16:55:21]OFD Sender: To server: pG, [16:55:21]CommunicateWithHost lk.salyk.kg:30040 [16:55:21]ConnectInit lk.salyk.kg [16:55:21]Connected sock=7 [16:55:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A6 A9 0D 01 CB AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 71 29 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E1 02 00 35 04 06 00 6E 54 70 F2 E2 E7 A4 C1 6C 98 24 1F 5B 29 [16:55:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 6E 47 00 72 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 36 35 33 34 30 10 04 04 00 8D E1 02 00 F4 03 04 00 62 D4 18 67 B6 04 01 00 00 52 93 E3 B2 30 30 22 16 [16:55:22]CommunicateWithHost err = 0 [16:55:22]CheckOFDResponse [16:55:22]1017 (14) - 77093643461234 [16:55:22]1041 (16) - 0000000000965340 [16:55:22]1040 (4) - 188813 [16:55:22]1012 (4) - 23.10.2024 10:48 [16:55:22]1206 (1) - 0 [16:55:22]OFD Sender: Remove packet 188813 [16:55:22]ProducePacketName [16:55:22]name=ofd_packets/00188813 [16:55:22]NVStorageDeleteData [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]accept exits with 9 [16:57:17]New connection [16:57:17]New thread 3067207012 created [16:57:17]Thread 3067350372 joined [16:57:17]Waiting for new connection... [16:57:17] Sock 9.Parse request [16:57:17]Sock 9.Check first char [16:57:17]Sock 9.First char is OK [16:57:17]request: POST /json_proto HTTP/1.0 [16:57:17]Method: POST [16:57:17]URL: /json_proto [16:57:17]Method is POST - this is cgi request [16:57:17]url: /json_proto [16:57:17]query_string will be loaded in cgi processing [16:57:17]execute_cgi json_proto POST (null) [16:57:17]execute_cgi path=json_proto method=POST [16:57:17]POST find Content-Length [16:57:17]Host: 172.17.42.131:8080 [16:57:17]Content-Length: 677 [16:57:17]Content-Type: application/json [16:57:17] [16:57:17]POST finish read [16:57:17]Found Content-Length = 677 [16:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:17]execute_script... [16:57:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:17]POST & json_proto [16:57:17]process_json_proto [16:57:17]json parsed OK: [16:57:17]protocol is kg_v1.0 [16:57:17]action value=close_receipt [16:57:17]process_action close_receipt [16:57:17]cmd_close_receipt [16:57:17]MH_GetDate [16:57:17]Write to MH i2c: F0 00 00 E4 11 E4 [16:57:17]Write i2c OK [16:57:17]MH_I2C_Read... [16:57:17]Read from MH i2c: F0 [16:57:17]MH_I2C_Read... [16:57:17]Read from MH i2c: F0 09 00 [16:57:17]MH_I2C_Read... [16:57:17]Read from MH i2c: F0 09 00 E4 11 00 EE 2A 19 67 A0 18 CA 66 6D [16:57:17]GetLastDocTimeStamp 1729702257 [16:57:17]current date 1729702638 [16:57:17]FM_GetShiftState [16:57:17]SAM_PROTO_GetShiftState [16:57:17]wFMCommunicate request_size=4 [16:57:17]MH_SAM_APDU [16:57:17]CAPDU: 80 13 01 00 [16:57:17]Write to MH i2c: E2 08 00 E5 11 80 13 01 00 00 00 00 00 73 [16:57:17]Write i2c OK [16:57:17]MH_I2C_Read... [16:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:17]Read from MH i2c: E2 [16:57:17]MH_I2C_Read... [16:57:17]Read from MH i2c: E2 0E 00 [16:57:17]MH_I2C_Read... [16:57:17]Read from MH i2c: E2 0E 00 E5 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5B [16:57:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:57:17]wFMCommunicate OK [16:57:17]SAM_PROTO_GetShiftState done [16:57:17]FM_GetShiftState done [16:57:17]opened in 1729642525 [16:57:17]opened+sec_in_day 1729728925 [16:57:17]quantity*price = 20003 [16:57:17]sum+1 = 20004 [16:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 272 23.10.2024 16:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188814 ФПД: 101262706424684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165718&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188814&fm=101262706424684&tin=02508201610067®Number=0000000000100030&sum=20000 [16:57:18]StoreToDocumentArchive [16:57:18]shift 462 fd 188814 [16:57:18]save to /storage/0462/doc_00188814 [16:57:18]save last doc name /storage/0462/doc_00188814 to /storage/kkm_last_doc_name [16:57:18]save OK [16:57:18]Clear old archive folders... [16:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:18]tlvbuf is B6FB97D0 [16:57:18]SAM_PROTO_ClearQueue [16:57:18]wFMCommunicate request_size=4 [16:57:18]MH_SAM_APDU [16:57:18]CAPDU: 80 09 00 00 [16:57:18]Write to MH i2c: E2 08 00 F2 11 80 09 00 00 00 00 00 00 75 [16:57:18]Write i2c OK [16:57:18]MH_I2C_Read... [16:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:18]Read from MH i2c: E2 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 03 00 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [16:57:18]RAPDU: 90 00 [16:57:18]wFMCommunicate OK [16:57:18]SAM_PROTO_ClearQueue done [16:57:18]KKMCreateOFDPacket [16:57:18]OFDProtocolAddRootSTLVToBuf [16:57:18]FM_MakeSignedData [16:57:18]FM_MakeSignedData [16:57:18]SAM_PROTO_SignData [16:57:18]wFMCommunicate request_size=4 [16:57:18]MH_SAM_APDU [16:57:18]CAPDU: 80 0D 01 02 [16:57:18]Write to MH i2c: E2 08 00 F3 11 80 0D 01 02 00 00 00 00 7D [16:57:18]Write i2c OK [16:57:18]MH_I2C_Read... [16:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:18]Read from MH i2c: E2 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 03 00 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [16:57:18]RAPDU: 90 00 [16:57:18]wFMCommunicate OK [16:57:18]wFMCommunicate request_size=255 [16:57:18]MH_SAM_APDU [16:57:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 EE 2A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E1 02 00 35 04 06 00 5C [16:57:18]Write to MH i2c: E2 02 01 F4 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 EE 2A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E1 02 00 35 04 06 00 5C 00 00 F7 [16:57:18]Write i2c OK [16:57:18]MH_I2C_Read... [16:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:18]Read from MH i2c: E2 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 03 00 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [16:57:18]RAPDU: 90 00 [16:57:18]wFMCommunicate OK [16:57:18]wFMCommunicate request_size=10 [16:57:18]MH_SAM_APDU [16:57:18]CAPDU: 80 0D 02 02 05 19 0F A5 3B 6C [16:57:18]Write to MH i2c: E2 0D 00 F5 11 80 0D 02 02 05 00 19 0F A5 3B 6C 00 00 FE [16:57:18]Write i2c OK [16:57:18]MH_I2C_Read... [16:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:18]Read from MH i2c: E2 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 03 00 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 03 00 F5 11 00 90 00 7A [16:57:18]RAPDU: 90 00 [16:57:18]wFMCommunicate OK [16:57:18]wFMCommunicate request_size=4 [16:57:18]MH_SAM_APDU [16:57:18]CAPDU: 80 0D 03 02 [16:57:18]Write to MH i2c: E2 08 00 F6 11 80 0D 03 02 00 00 00 00 82 [16:57:18]Write i2c OK [16:57:18]MH_I2C_Read... [16:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:18]Read from MH i2c: E2 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 0B 00 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 0B 00 F6 11 00 6A 64 94 7E 1D FF 11 E0 90 00 70 [16:57:18]RAPDU: 6A 64 94 7E 1D FF 11 E0 90 00 [16:57:18]wFMCommunicate OK [16:57:18]SAM_PROTO_SignData done [16:57:18]FM_MakeSignedData done [16:57:18]CreateOFDProtocolMessage [16:57:18]wFMCommunicate request_size=4 [16:57:18]MH_SAM_APDU [16:57:18]CAPDU: 80 11 00 00 [16:57:18]Write to MH i2c: E2 08 00 F7 11 80 11 00 00 00 00 00 00 82 [16:57:18]Write i2c OK [16:57:18]MH_I2C_Read... [16:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:18]Read from MH i2c: E2 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 17 00 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: E2 17 00 F7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [16:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:57:18]wFMCommunicate OK [16:57:18]CreateOFDProtocolMessage done [16:57:18]OFDSenderStorePacket 188814 [16:57:18]StoreOFDPacket docnum=188814 [16:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 95 B3 07 01 DC 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 EE 2A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E1 02 00 35 04 06 00 5C 19 0F A5 3B 6C 6A 64 94 7E 1D FF 11 E0 [16:57:18]CheckFolder [16:57:18]dirname=/storage/ofd_packets [16:57:18]CheckFolder done [16:57:18]ProducePacketName [16:57:18]name=ofd_packets/00188814 [16:57:18]NVStorageSaveData ofd_packets/00188814 [16:57:18]File name is /storage/ofd_packets/00188814 [16:57:18]Write 301 bytes [16:57:18]NVStorageSaveData done [16:57:18]OFDSenderStorePacket done [16:57:18]KKMCreateOFDPacket done [16:57:18]NVStorageSaveData kkm_last_timestamp [16:57:18]File name is /storage/kkm_last_timestamp [16:57:18]Write 4 bytes [16:57:18]NVStorageSaveData done [16:57:18]ExternCall_PrintAddStr [16:57:18]wPrintStart [16:57:18]Write to MH i2c: 01 00 00 F8 11 09 [16:57:18]Write i2c OK [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: 01 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: 01 07 00 [16:57:18]MH_I2C_Read... [16:57:18]Read from MH i2c: 01 07 00 F8 11 00 00 00 00 00 FF 0F 1E [16:57:18]RasterBufferAndPrint [16:57:18]line Счет N : (1)210874 [16:57:18]line ИНН: 02508201610067 [16:57:18]line Контрольно-Кассовый Чек [16:57:18]line ПРОДАЖА [16:57:18]line ТРК (МРК, ГНК) : 42 [16:57:18]line Товар: 2710124130 [16:57:18]line Аи-92-К-3 [16:57:18]line 2.990 * 66.90 [16:57:18]line = 200.03 [16:57:18]line НДС 12% НСП 1% [16:57:18]line > о реализуемом товаре [16:57:18]line ОКРУГЛЕНИЕ: -0.03 [16:57:18]line ИТОГО: 200.00 [16:57:18]line Внесено: 200.00 [16:57:18]line СДАЧА: 0.00 [16:57:18]line НСП 1% : 1.77 [16:57:18]line НДС 12% : 21.24 [16:57:18]line Наличными: 200.00 [16:57:18]line Безнал.: 0.00 [16:57:18]line Место: АЗС № 86 "Партнер Нефть" [16:57:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:57:18]line СНО: Общий режим [16:57:18]line Чек 272 23.10.2024 16:57 [16:57:18]line Смена: 462 ФФД: 1.0 [16:57:18]line ЗНМ: 0300000155 [16:57:18]line РНМ: 0000000000100030 [16:57:18]line Версия ККМ: 001 [16:57:18]line ФМ: 0000000000965340 [16:57:18]line ФД: 188814 [16:57:18]line ФПД: 101262706424684 [16:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165718&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188814&fm=101262706424684&tin=02508201610067®Number=0000000000100030&sum=20000 [16:57:18]written 0, free lines is 4095 [16:57:18]OFD Sender: Processing packet 188814 [packets to send 1062, broken 1061] [16:57:18]ProducePacketName [16:57:18]name=ofd_packets/00188814 [16:57:18]OFD Sender: To server: pG, [16:57:18]CommunicateWithHost lk.salyk.kg:30040 [16:57:18]ConnectInit lk.salyk.kg [16:57:19]Connected sock=10 [16:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 95 B3 07 01 DC 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 EE 2A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E1 02 00 35 04 06 00 5C 19 0F A5 3B 6C 6A 64 94 7E 1D FF 11 E0 [16:57:19]Write to MH i2c: 01 00 00 23 12 35 [16:57:19]Write i2c OK [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: 01 [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: 01 07 00 [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: 01 07 00 23 12 00 00 00 00 00 57 0C 9F [16:57:19]RasterBufferAndPrint [16:57:19]line [16:57:19]line [16:57:19]line [16:57:19]line [16:57:19]line [16:57:19]written 0, free lines is 3163 [16:57:19]MH_Cut [16:57:19]Write to MH i2c: D1 01 00 2A 12 01 0E [16:57:19]Write i2c OK [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: D1 [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: D1 01 00 [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: D1 01 00 2A 12 00 0D [16:57:19]Write to MH i2c: 01 00 00 2B 12 3D [16:57:19]Write i2c OK [16:57:19]MH_I2C_Read... [16:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A5 94 47 00 6F 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E1 02 00 F4 03 04 00 D8 D4 18 67 B6 04 01 00 00 D3 58 3F E9 86 1C A9 53 [16:57:19]CommunicateWithHost err = 0 [16:57:19]CheckOFDResponse [16:57:19]1017 (14) - 77093643461234 [16:57:19]1041 (16) - 0000000000965340 [16:57:19]1040 (4) - 188814 [16:57:19]1012 (4) - 23.10.2024 10:50 [16:57:19]1206 (1) - 0 [16:57:19]OFD Sender: Remove packet 188814 [16:57:19]ProducePacketName [16:57:19]name=ofd_packets/00188814 [16:57:19]NVStorageDeleteData [16:57:20]OFD Sender: No OFD packet to send [16:57:20]*** Cut start [16:57:20]*** Partial cut [16:57:20]*** CUTSNS_PIN = 1 [16:57:20]*** CUTSNS_PIN = 0 [16:57:20]*** Brake cut motor [16:57:21]Read from MH i2c: 01 [16:57:21]MH_I2C_Read... [16:57:21]*** Stop cut motor [16:57:21]*** Cut end [16:57:21]Read from MH i2c: 01 07 00 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 FF 0F 52 [16:57:21]process_action close_receipt done [16:57:21]requested_data is exist [16:57:21]produce_requested_data [16:57:21]requested_item fm.sn is exist - process it [16:57:21]wFMCommunicate request_size=4 [16:57:21]MH_SAM_APDU [16:57:21]CAPDU: 80 11 00 00 [16:57:21]Write to MH i2c: E2 08 00 2C 12 80 11 00 00 00 00 00 00 B8 [16:57:21]Write i2c OK [16:57:21]MH_I2C_Read... [16:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:21]Read from MH i2c: E2 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: E2 17 00 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: E2 17 00 2C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [16:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:57:21]wFMCommunicate OK [16:57:21]requested_item fd.num is exist - process it [16:57:21]SAM_PROTO_GetFieldsCounters [16:57:21]wFMCommunicate request_size=4 [16:57:21]MH_SAM_APDU [16:57:21]CAPDU: 80 13 00 00 [16:57:21]Write to MH i2c: E2 08 00 2D 12 80 13 00 00 00 00 00 00 BB [16:57:21]Write i2c OK [16:57:21]MH_I2C_Read... [16:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:21]Read from MH i2c: E2 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: E2 62 00 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: E2 62 00 2D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [16:57:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:21]wFMCommunicate OK [16:57:21]SAM_PROTO_GetFieldsCounters done [16:57:21]requested_item shift.num is exist - process it [16:57:21]requested_item shift.opened is exist - process it [16:57:21]req_shift_opened [16:57:21]FM_GetShiftState [16:57:21]SAM_PROTO_GetShiftState [16:57:21]wFMCommunicate request_size=4 [16:57:21]MH_SAM_APDU [16:57:21]CAPDU: 80 13 01 00 [16:57:21]Write to MH i2c: E2 08 00 2E 12 80 13 01 00 00 00 00 00 BD [16:57:21]Write i2c OK [16:57:21]MH_I2C_Read... [16:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:21]Read from MH i2c: E2 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: E2 0E 00 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: E2 0E 00 2E 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A5 [16:57:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:57:21]wFMCommunicate OK [16:57:21]SAM_PROTO_GetShiftState done [16:57:21]FM_GetShiftState done [16:57:21]req_shift_opened done [16:57:21]requested_item shift.open_date is exist - process it [16:57:21]req_shift_open_date [16:57:21]req_shift_open_date done [16:57:21]produce_requested_data done [16:57:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188814,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:57:21]process_action_free close_receipt [16:57:21]json_value_free [16:57:21]json_value_free done [16:57:21]process_json_proto returns [16:57:21]Send response to host [16:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188814,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:57:21]free response buf [16:57:21]execute_script done [16:57:21]execute_script returns [16:57:21]free content buf [16:57:21]Sock 9.Close socket [16:57:21]Sock 9.Thread stoped [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:19]accept exits with 7 [16:59:19]New connection [16:59:19]New thread 3067350372 created [16:59:19]Thread 3067207012 joined [16:59:19]Waiting for new connection... [16:59:19] Sock 7.Parse request [16:59:19]Sock 7.Check first char [16:59:19]Sock 7.First char is OK [16:59:19]request: POST /json_proto HTTP/1.0 [16:59:19]Method: POST [16:59:19]URL: /json_proto [16:59:19]Method is POST - this is cgi request [16:59:19]url: /json_proto [16:59:19]query_string will be loaded in cgi processing [16:59:19]execute_cgi json_proto POST (null) [16:59:19]execute_cgi path=json_proto method=POST [16:59:19]POST find Content-Length [16:59:19]Host: 172.17.42.131:8080 [16:59:19]Content-Length: 677 [16:59:19]Content-Type: application/json [16:59:19] [16:59:19]POST finish read [16:59:19]Found Content-Length = 677 [16:59:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:19]execute_script... [16:59:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:19]POST & json_proto [16:59:19]process_json_proto [16:59:19]json parsed OK: [16:59:19]protocol is kg_v1.0 [16:59:19]action value=close_receipt [16:59:19]process_action close_receipt [16:59:19]cmd_close_receipt [16:59:19]MH_GetDate [16:59:19]Write to MH i2c: F0 00 00 2F 12 30 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: F0 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: F0 09 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: F0 09 00 2F 12 00 68 2B 19 67 A0 18 CA 66 34 [16:59:19]GetLastDocTimeStamp 1729702638 [16:59:19]current date 1729702760 [16:59:19]FM_GetShiftState [16:59:19]SAM_PROTO_GetShiftState [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 13 01 00 [16:59:19]Write to MH i2c: E2 08 00 30 12 80 13 01 00 00 00 00 00 BF [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 0E 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 0E 00 30 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A7 [16:59:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:59:19]wFMCommunicate OK [16:59:19]SAM_PROTO_GetShiftState done [16:59:19]FM_GetShiftState done [16:59:19]opened in 1729642525 [16:59:19]opened+sec_in_day 1729728925 [16:59:19]quantity*price = 50010 [16:59:19]sum+1 = 50012 [16:59:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 273 23.10.2024 16:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188815 ФПД: 148233659238220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165920&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188815&fm=148233659238220&tin=02508201610067®Number=0000000000100030&sum=50000 [16:59:20]StoreToDocumentArchive [16:59:20]shift 462 fd 188815 [16:59:20]save to /storage/0462/doc_00188815 [16:59:20]save last doc name /storage/0462/doc_00188815 to /storage/kkm_last_doc_name [16:59:20]save OK [16:59:20]Clear old archive folders... [16:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:20]tlvbuf is 0115C5E0 [16:59:20]SAM_PROTO_ClearQueue [16:59:20]wFMCommunicate request_size=4 [16:59:20]MH_SAM_APDU [16:59:20]CAPDU: 80 09 00 00 [16:59:20]Write to MH i2c: E2 08 00 3D 12 80 09 00 00 00 00 00 00 C1 [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:20]Read from MH i2c: E2 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 03 00 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [16:59:20]RAPDU: 90 00 [16:59:20]wFMCommunicate OK [16:59:20]SAM_PROTO_ClearQueue done [16:59:20]KKMCreateOFDPacket [16:59:20]OFDProtocolAddRootSTLVToBuf [16:59:20]FM_MakeSignedData [16:59:20]FM_MakeSignedData [16:59:20]SAM_PROTO_SignData [16:59:20]wFMCommunicate request_size=4 [16:59:20]MH_SAM_APDU [16:59:20]CAPDU: 80 0D 01 02 [16:59:20]Write to MH i2c: E2 08 00 3E 12 80 0D 01 02 00 00 00 00 C9 [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:20]Read from MH i2c: E2 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 03 00 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [16:59:20]RAPDU: 90 00 [16:59:20]wFMCommunicate OK [16:59:20]wFMCommunicate request_size=255 [16:59:20]MH_SAM_APDU [16:59:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 68 2B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E1 02 00 35 04 06 00 86 [16:59:20]Write to MH i2c: E2 02 01 3F 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 68 2B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E1 02 00 35 04 06 00 86 00 00 00 [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:21]Read from MH i2c: E2 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 03 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [16:59:21]RAPDU: 90 00 [16:59:21]wFMCommunicate OK [16:59:21]wFMCommunicate request_size=10 [16:59:21]MH_SAM_APDU [16:59:21]CAPDU: 80 0D 02 02 05 D1 56 9A 47 4C [16:59:21]Write to MH i2c: E2 0D 00 40 12 80 0D 02 02 05 00 D1 56 9A 47 4C 00 00 2A [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:21]Read from MH i2c: E2 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 03 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 03 00 40 12 00 90 00 C6 [16:59:21]RAPDU: 90 00 [16:59:21]wFMCommunicate OK [16:59:21]wFMCommunicate request_size=4 [16:59:21]MH_SAM_APDU [16:59:21]CAPDU: 80 0D 03 02 [16:59:21]Write to MH i2c: E2 08 00 41 12 80 0D 03 02 00 00 00 00 CE [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:21]Read from MH i2c: E2 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 0B 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 0B 00 41 12 00 6F 37 B6 B2 09 D6 AE 72 90 00 DC [16:59:21]RAPDU: 6F 37 B6 B2 09 D6 AE 72 90 00 [16:59:21]wFMCommunicate OK [16:59:21]SAM_PROTO_SignData done [16:59:21]FM_MakeSignedData done [16:59:21]CreateOFDProtocolMessage [16:59:21]wFMCommunicate request_size=4 [16:59:21]MH_SAM_APDU [16:59:21]CAPDU: 80 11 00 00 [16:59:21]Write to MH i2c: E2 08 00 42 12 80 11 00 00 00 00 00 00 CE [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:21]Read from MH i2c: E2 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 17 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 17 00 42 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [16:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:59:21]wFMCommunicate OK [16:59:21]CreateOFDProtocolMessage done [16:59:21]OFDSenderStorePacket 188815 [16:59:21]StoreOFDPacket docnum=188815 [16:59:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC 6F 07 01 EA 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 68 2B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E1 02 00 35 04 06 00 86 D1 56 9A 47 4C 6F 37 B6 B2 09 D6 AE 72 [16:59:21]CheckFolder [16:59:21]dirname=/storage/ofd_packets [16:59:21]CheckFolder done [16:59:21]ProducePacketName [16:59:21]name=ofd_packets/00188815 [16:59:21]NVStorageSaveData ofd_packets/00188815 [16:59:21]File name is /storage/ofd_packets/00188815 [16:59:21]Write 301 bytes [16:59:21]NVStorageSaveData done [16:59:21]OFDSenderStorePacket done [16:59:21]KKMCreateOFDPacket done [16:59:21]NVStorageSaveData kkm_last_timestamp [16:59:21]File name is /storage/kkm_last_timestamp [16:59:21]Write 4 bytes [16:59:21]NVStorageSaveData done [16:59:21]ExternCall_PrintAddStr [16:59:21]wPrintStart [16:59:21]Write to MH i2c: 01 00 00 43 12 55 [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: 01 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: 01 07 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: 01 07 00 43 12 00 00 00 00 00 FF 0F 6A [16:59:21]RasterBufferAndPrint [16:59:21]line Счет N : (1)210875 [16:59:21]line ИНН: 02508201610067 [16:59:21]line Контрольно-Кассовый Чек [16:59:21]line ПРОДАЖА [16:59:21]line ТРК (МРК, ГНК) : 43 [16:59:21]line Товар: 2710124500 [16:59:21]line Аи-95-К-3 [16:59:21]line 6.740 * 74.20 [16:59:21]line = 500.11 [16:59:21]line НДС 12% НСП 1% [16:59:21]line > о реализуемом товаре [16:59:21]line ОКРУГЛЕНИЕ: -0.11 [16:59:21]line ИТОГО: 500.00 [16:59:21]line Внесено: 500.00 [16:59:21]line СДАЧА: 0.00 [16:59:21]line НСП 1% : 4.43 [16:59:21]line НДС 12% : 53.11 [16:59:21]line Наличными: 500.00 [16:59:21]line Безнал.: 0.00 [16:59:21]line Место: АЗС № 86 "Партнер Нефть" [16:59:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:59:21]line СНО: Общий режим [16:59:21]line Чек 273 23.10.2024 16:59 [16:59:21]line Смена: 462 ФФД: 1.0 [16:59:21]line ЗНМ: 0300000155 [16:59:21]line РНМ: 0000000000100030 [16:59:21]line Версия ККМ: 001 [16:59:21]line ФМ: 0000000000965340 [16:59:21]line ФД: 188815 [16:59:21]line ФПД: 148233659238220 [16:59:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165920&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188815&fm=148233659238220&tin=02508201610067®Number=0000000000100030&sum=50000 [16:59:21]written 0, free lines is 4095 [16:59:21]OFD Sender: Processing packet 188815 [packets to send 1062, broken 1061] [16:59:21]ProducePacketName [16:59:21]name=ofd_packets/00188815 [16:59:21]OFD Sender: To server: pG, [16:59:21]CommunicateWithHost lk.salyk.kg:30040 [16:59:21]ConnectInit lk.salyk.kg [16:59:21]Connected sock=10 [16:59:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC 6F 07 01 EA 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 68 2B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E1 02 00 35 04 06 00 86 D1 56 9A 47 4C 6F 37 B6 B2 09 D6 AE 72 [16:59:21]Write to MH i2c: 01 00 00 6E 12 80 [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: 01 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: 01 07 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: 01 07 00 6E 12 00 00 00 00 00 5E 0C F1 [16:59:21]RasterBufferAndPrint [16:59:21]line [16:59:21]line [16:59:21]line [16:59:21]line [16:59:21]line [16:59:21]written 0, free lines is 3168 [16:59:21]MH_Cut [16:59:21]Write to MH i2c: D1 01 00 75 12 01 59 [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: D1 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: D1 01 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: D1 01 00 75 12 00 58 [16:59:21]Write to MH i2c: 01 00 00 76 12 88 [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6E DE 47 00 A8 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 36 35 33 34 30 10 04 04 00 8F E1 02 00 F4 03 04 00 53 D5 18 67 B6 04 01 00 00 E5 81 F3 0C 4C 7C 6B 99 [16:59:22]CommunicateWithHost err = 0 [16:59:22]CheckOFDResponse [16:59:22]1017 (14) - 77093643461234 [16:59:22]1041 (16) - 0000000000965340 [16:59:22]1040 (4) - 188815 [16:59:22]1012 (4) - 23.10.2024 10:52 [16:59:22]1206 (1) - 0 [16:59:22]OFD Sender: Remove packet 188815 [16:59:22]ProducePacketName [16:59:22]name=ofd_packets/00188815 [16:59:22]NVStorageDeleteData [16:59:22]OFD Sender: No OFD packet to send [16:59:23]*** Cut start [16:59:23]*** Partial cut [16:59:23]*** CUTSNS_PIN = 1 [16:59:23]*** CUTSNS_PIN = 0 [16:59:23]*** Brake cut motor [16:59:23]Read from MH i2c: 01 [16:59:23]MH_I2C_Read... [16:59:23]*** Stop cut motor [16:59:23]*** Cut end [16:59:23]Read from MH i2c: 01 07 00 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: 01 07 00 76 12 00 00 00 00 00 FF 0F 9D [16:59:23]process_action close_receipt done [16:59:23]requested_data is exist [16:59:23]produce_requested_data [16:59:23]requested_item fm.sn is exist - process it [16:59:23]wFMCommunicate request_size=4 [16:59:23]MH_SAM_APDU [16:59:23]CAPDU: 80 11 00 00 [16:59:23]Write to MH i2c: E2 08 00 77 12 80 11 00 00 00 00 00 00 03 [16:59:23]Write i2c OK [16:59:23]MH_I2C_Read... [16:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:23]Read from MH i2c: E2 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: E2 17 00 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: E2 17 00 77 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [16:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:59:23]wFMCommunicate OK [16:59:23]requested_item fd.num is exist - process it [16:59:23]SAM_PROTO_GetFieldsCounters [16:59:23]wFMCommunicate request_size=4 [16:59:23]MH_SAM_APDU [16:59:23]CAPDU: 80 13 00 00 [16:59:23]Write to MH i2c: E2 08 00 78 12 80 13 00 00 00 00 00 00 06 [16:59:23]Write i2c OK [16:59:23]MH_I2C_Read... [16:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:23]Read from MH i2c: E2 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: E2 62 00 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: E2 62 00 78 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [16:59:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:23]wFMCommunicate OK [16:59:23]SAM_PROTO_GetFieldsCounters done [16:59:23]requested_item shift.num is exist - process it [16:59:23]requested_item shift.opened is exist - process it [16:59:23]req_shift_opened [16:59:23]FM_GetShiftState [16:59:23]SAM_PROTO_GetShiftState [16:59:23]wFMCommunicate request_size=4 [16:59:23]MH_SAM_APDU [16:59:23]CAPDU: 80 13 01 00 [16:59:23]Write to MH i2c: E2 08 00 79 12 80 13 01 00 00 00 00 00 08 [16:59:23]Write i2c OK [16:59:23]MH_I2C_Read... [16:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:24]Read from MH i2c: E2 [16:59:24]MH_I2C_Read... [16:59:24]Read from MH i2c: E2 0E 00 [16:59:24]MH_I2C_Read... [16:59:24]Read from MH i2c: E2 0E 00 79 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F0 [16:59:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [16:59:24]wFMCommunicate OK [16:59:24]SAM_PROTO_GetShiftState done [16:59:24]FM_GetShiftState done [16:59:24]req_shift_opened done [16:59:24]requested_item shift.open_date is exist - process it [16:59:24]req_shift_open_date [16:59:24]req_shift_open_date done [16:59:24]produce_requested_data done [16:59:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188815,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [16:59:24]process_action_free close_receipt [16:59:24]json_value_free [16:59:24]json_value_free done [16:59:24]process_json_proto returns [16:59:24]Send response to host [16:59:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188815,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [16:59:24]free response buf [16:59:24]execute_script done [16:59:24]execute_script returns [16:59:24]free content buf [16:59:24]Sock 7.Close socket [16:59:24]Sock 7.Thread stoped [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:23]accept exits with 9 [17:00:23]New connection [17:00:23]New thread 3067207012 created [17:00:23]Thread 3067350372 joined [17:00:23]Waiting for new connection... [17:00:23] Sock 9.Parse request [17:00:23]Sock 9.Check first char [17:00:23]Sock 9.First char is OK [17:00:23]request: POST /json_proto HTTP/1.0 [17:00:23]Method: POST [17:00:23]URL: /json_proto [17:00:23]Method is POST - this is cgi request [17:00:23]url: /json_proto [17:00:23]query_string will be loaded in cgi processing [17:00:23]execute_cgi json_proto POST (null) [17:00:23]execute_cgi path=json_proto method=POST [17:00:23]POST find Content-Length [17:00:23]Host: 172.17.42.131:8080 [17:00:23]Content-Length: 682 [17:00:23]Content-Type: application/json [17:00:23] [17:00:23]POST finish read [17:00:23]Found Content-Length = 682 [17:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:23]execute_script... [17:00:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:23]POST & json_proto [17:00:23]process_json_proto [17:00:23]json parsed OK: [17:00:23]protocol is kg_v1.0 [17:00:23]action value=close_receipt [17:00:23]process_action close_receipt [17:00:23]cmd_close_receipt [17:00:23]MH_GetDate [17:00:23]Write to MH i2c: F0 00 00 7A 12 7B [17:00:23]Write i2c OK [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: F0 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: F0 09 00 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: F0 09 00 7A 12 00 A8 2B 19 67 A0 18 CA 66 BF [17:00:23]GetLastDocTimeStamp 1729702760 [17:00:23]current date 1729702824 [17:00:23]FM_GetShiftState [17:00:23]SAM_PROTO_GetShiftState [17:00:23]wFMCommunicate request_size=4 [17:00:23]MH_SAM_APDU [17:00:23]CAPDU: 80 13 01 00 [17:00:23]Write to MH i2c: E2 08 00 7B 12 80 13 01 00 00 00 00 00 0A [17:00:23]Write i2c OK [17:00:23]MH_I2C_Read... [17:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:23]Read from MH i2c: E2 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: E2 0E 00 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: E2 0E 00 7B 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F2 [17:00:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:00:23]wFMCommunicate OK [17:00:23]SAM_PROTO_GetShiftState done [17:00:23]FM_GetShiftState done [17:00:23]opened in 1729642525 [17:00:23]opened+sec_in_day 1729728925 [17:00:23]quantity*price = 130072 [17:00:23]sum+1 = 130074 [17:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 274 23.10.2024 17:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188816 ФПД: 201200865251296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170024&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188816&fm=201200865251296&tin=02508201610067®Number=0000000000100030&sum=130000 [17:00:24]StoreToDocumentArchive [17:00:24]shift 462 fd 188816 [17:00:24]save to /storage/0462/doc_00188816 [17:00:24]save last doc name /storage/0462/doc_00188816 to /storage/kkm_last_doc_name [17:00:24]save OK [17:00:24]Clear old archive folders... [17:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:24]tlvbuf is 0111C200 [17:00:24]SAM_PROTO_ClearQueue [17:00:24]wFMCommunicate request_size=4 [17:00:24]MH_SAM_APDU [17:00:24]CAPDU: 80 09 00 00 [17:00:24]Write to MH i2c: E2 08 00 88 12 80 09 00 00 00 00 00 00 0C [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:24]Read from MH i2c: E2 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: E2 03 00 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [17:00:24]RAPDU: 90 00 [17:00:24]wFMCommunicate OK [17:00:24]SAM_PROTO_ClearQueue done [17:00:24]KKMCreateOFDPacket [17:00:24]OFDProtocolAddRootSTLVToBuf [17:00:24]FM_MakeSignedData [17:00:24]FM_MakeSignedData [17:00:24]SAM_PROTO_SignData [17:00:24]wFMCommunicate request_size=4 [17:00:24]MH_SAM_APDU [17:00:24]CAPDU: 80 0D 01 02 [17:00:24]Write to MH i2c: E2 08 00 89 12 80 0D 01 02 00 00 00 00 14 [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:24]Read from MH i2c: E2 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: E2 03 00 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [17:00:24]RAPDU: 90 00 [17:00:24]wFMCommunicate OK [17:00:24]wFMCommunicate request_size=255 [17:00:24]MH_SAM_APDU [17:00:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A8 2B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E1 02 00 35 04 06 00 B6 [17:00:24]Write to MH i2c: E2 02 01 8A 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A8 2B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E1 02 00 35 04 06 00 B6 00 00 95 [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 03 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 03 00 8A 12 00 90 00 10 [17:00:25]RAPDU: 90 00 [17:00:25]wFMCommunicate OK [17:00:25]wFMCommunicate request_size=10 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 0D 02 02 05 FD BA 1A 0F E0 [17:00:25]Write to MH i2c: E2 0D 00 8B 12 80 0D 02 02 05 00 FD BA 1A 0F E0 00 00 E1 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 03 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 03 00 8B 12 00 90 00 11 [17:00:25]RAPDU: 90 00 [17:00:25]wFMCommunicate OK [17:00:25]wFMCommunicate request_size=4 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 0D 03 02 [17:00:25]Write to MH i2c: E2 08 00 8C 12 80 0D 03 02 00 00 00 00 19 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 0B 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 0B 00 8C 12 00 9E 2E 94 D0 D7 7C A5 1B 90 00 5D [17:00:25]RAPDU: 9E 2E 94 D0 D7 7C A5 1B 90 00 [17:00:25]wFMCommunicate OK [17:00:25]SAM_PROTO_SignData done [17:00:25]FM_MakeSignedData done [17:00:25]CreateOFDProtocolMessage [17:00:25]wFMCommunicate request_size=4 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 11 00 00 [17:00:25]Write to MH i2c: E2 08 00 8D 12 80 11 00 00 00 00 00 00 19 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 17 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 17 00 8D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [17:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:00:25]wFMCommunicate OK [17:00:25]CreateOFDProtocolMessage done [17:00:25]OFDSenderStorePacket 188816 [17:00:25]StoreOFDPacket docnum=188816 [17:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E 47 07 01 85 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A8 2B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E1 02 00 35 04 06 00 B6 FD BA 1A 0F E0 9E 2E 94 D0 D7 7C A5 1B [17:00:25]CheckFolder [17:00:25]dirname=/storage/ofd_packets [17:00:25]CheckFolder done [17:00:25]ProducePacketName [17:00:25]name=ofd_packets/00188816 [17:00:25]NVStorageSaveData ofd_packets/00188816 [17:00:25]File name is /storage/ofd_packets/00188816 [17:00:25]Write 301 bytes [17:00:25]NVStorageSaveData done [17:00:25]OFDSenderStorePacket done [17:00:25]KKMCreateOFDPacket done [17:00:25]NVStorageSaveData kkm_last_timestamp [17:00:25]File name is /storage/kkm_last_timestamp [17:00:25]Write 4 bytes [17:00:25]NVStorageSaveData done [17:00:25]ExternCall_PrintAddStr [17:00:25]wPrintStart [17:00:25]Write to MH i2c: 01 00 00 8E 12 A0 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: 01 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: 01 07 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: 01 07 00 8E 12 00 00 00 00 00 FF 0F B5 [17:00:25]RasterBufferAndPrint [17:00:25]line Счет N : (1)210876 [17:00:25]line ИНН: 02508201610067 [17:00:25]line Контрольно-Кассовый Чек [17:00:25]line ПРОДАЖА [17:00:25]line ТРК (МРК, ГНК) : 33 [17:00:25]line Товар: 2710124500 [17:00:25]line Аи-95-К-3 [17:00:25]line 17.530 * 74.20 [17:00:25]line = 1300.73 [17:00:25]line НДС 12% НСП 1% [17:00:25]line > о реализуемом товаре [17:00:25]line ОКРУГЛЕНИЕ: -0.73 [17:00:25]line ИТОГО: 1300.00 [17:00:25]line Внесено: 1300.00 [17:00:25]line СДАЧА: 0.00 [17:00:25]line НСП 1% : 11.51 [17:00:25]line НДС 12% : 138.13 [17:00:25]line Наличными: 1300.00 [17:00:25]line Безнал.: 0.00 [17:00:25]line Место: АЗС № 86 "Партнер Нефть" [17:00:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:00:25]line СНО: Общий режим [17:00:25]line Чек 274 23.10.2024 17:00 [17:00:25]line Смена: 462 ФФД: 1.0 [17:00:25]line ЗНМ: 0300000155 [17:00:25]line РНМ: 0000000000100030 [17:00:25]line Версия ККМ: 001 [17:00:25]line ФМ: 0000000000965340 [17:00:25]line ФД: 188816 [17:00:25]line ФПД: 201200865251296 [17:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170024&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188816&fm=201200865251296&tin=02508201610067®Number=0000000000100030&sum=130000 [17:00:25]written 0, free lines is 4095 [17:00:25]OFD Sender: Processing packet 188816 [packets to send 1062, broken 1061] [17:00:25]ProducePacketName [17:00:25]name=ofd_packets/00188816 [17:00:25]OFD Sender: To server: pG, [17:00:25]CommunicateWithHost lk.salyk.kg:30040 [17:00:25]ConnectInit lk.salyk.kg [17:00:25]Connected sock=10 [17:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E 47 07 01 85 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A8 2B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E1 02 00 35 04 06 00 B6 FD BA 1A 0F E0 9E 2E 94 D0 D7 7C A5 1B [17:00:25]Write to MH i2c: 01 00 00 B9 12 CB [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: 01 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: 01 07 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: 01 07 00 B9 12 00 00 00 00 00 60 0C 3E [17:00:25]RasterBufferAndPrint [17:00:25]line [17:00:25]line [17:00:25]line [17:00:25]line [17:00:25]line [17:00:25]written 0, free lines is 3172 [17:00:25]MH_Cut [17:00:25]Write to MH i2c: D1 01 00 C0 12 01 A4 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: D1 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: D1 01 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: D1 01 00 C0 12 00 A3 [17:00:25]Write to MH i2c: 01 00 00 C1 12 D3 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 05 64 47 00 10 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E1 02 00 F4 03 04 00 92 D5 18 67 B6 04 01 00 00 C8 05 6D EB 14 36 41 91 [17:00:25]CommunicateWithHost err = 0 [17:00:25]CheckOFDResponse [17:00:25]1017 (14) - 77093643461234 [17:00:25]1041 (16) - 0000000000965340 [17:00:25]1040 (4) - 188816 [17:00:25]1012 (4) - 23.10.2024 10:53 [17:00:25]1206 (1) - 0 [17:00:25]OFD Sender: Remove packet 188816 [17:00:25]ProducePacketName [17:00:25]name=ofd_packets/00188816 [17:00:25]NVStorageDeleteData [17:00:26]OFD Sender: No OFD packet to send [17:00:26]*** Cut start [17:00:26]*** Partial cut [17:00:26]*** CUTSNS_PIN = 1 [17:00:27]*** CUTSNS_PIN = 0 [17:00:27]*** Brake cut motor [17:00:27]Read from MH i2c: 01 [17:00:27]MH_I2C_Read... [17:00:27]*** Stop cut motor [17:00:27]*** Cut end [17:00:27]Read from MH i2c: 01 07 00 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: 01 07 00 C1 12 00 00 00 00 00 FF 0F E8 [17:00:27]process_action close_receipt done [17:00:27]requested_data is exist [17:00:27]produce_requested_data [17:00:27]requested_item fm.sn is exist - process it [17:00:27]wFMCommunicate request_size=4 [17:00:27]MH_SAM_APDU [17:00:27]CAPDU: 80 11 00 00 [17:00:27]Write to MH i2c: E2 08 00 C2 12 80 11 00 00 00 00 00 00 4E [17:00:27]Write i2c OK [17:00:27]MH_I2C_Read... [17:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:27]Read from MH i2c: E2 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: E2 17 00 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: E2 17 00 C2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [17:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:00:27]wFMCommunicate OK [17:00:27]requested_item fd.num is exist - process it [17:00:27]SAM_PROTO_GetFieldsCounters [17:00:27]wFMCommunicate request_size=4 [17:00:27]MH_SAM_APDU [17:00:27]CAPDU: 80 13 00 00 [17:00:27]Write to MH i2c: E2 08 00 C3 12 80 13 00 00 00 00 00 00 51 [17:00:27]Write i2c OK [17:00:27]MH_I2C_Read... [17:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:27]Read from MH i2c: E2 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: E2 62 00 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: E2 62 00 C3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [17:00:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:27]wFMCommunicate OK [17:00:27]SAM_PROTO_GetFieldsCounters done [17:00:27]requested_item shift.num is exist - process it [17:00:27]requested_item shift.opened is exist - process it [17:00:27]req_shift_opened [17:00:27]FM_GetShiftState [17:00:27]SAM_PROTO_GetShiftState [17:00:27]wFMCommunicate request_size=4 [17:00:27]MH_SAM_APDU [17:00:27]CAPDU: 80 13 01 00 [17:00:27]Write to MH i2c: E2 08 00 C4 12 80 13 01 00 00 00 00 00 53 [17:00:27]Write i2c OK [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: E2 [17:00:27]MH_I2C_Read... [17:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:27]Read from MH i2c: E2 0E 00 [17:00:27]MH_I2C_Read... [17:00:27]Read from MH i2c: E2 0E 00 C4 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3B [17:00:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:00:27]wFMCommunicate OK [17:00:27]SAM_PROTO_GetShiftState done [17:00:27]FM_GetShiftState done [17:00:27]req_shift_opened done [17:00:27]requested_item shift.open_date is exist - process it [17:00:27]req_shift_open_date [17:00:27]req_shift_open_date done [17:00:27]produce_requested_data done [17:00:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188816,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:00:27]process_action_free close_receipt [17:00:27]json_value_free [17:00:27]json_value_free done [17:00:27]process_json_proto returns [17:00:27]Send response to host [17:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188816,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:00:27]free response buf [17:00:27]execute_script done [17:00:27]execute_script returns [17:00:27]free content buf [17:00:27]Sock 9.Close socket [17:00:27]Sock 9.Thread stoped [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:55]accept exits with 7 [17:02:55]New connection [17:02:55]New thread 3067350372 created [17:02:55]Thread 3067207012 joined [17:02:55]Waiting for new connection... [17:02:55] Sock 7.Parse request [17:02:55]Sock 7.Check first char [17:02:55]Sock 7.First char is OK [17:02:55]request: POST /json_proto HTTP/1.0 [17:02:55]Method: POST [17:02:55]URL: /json_proto [17:02:55]Method is POST - this is cgi request [17:02:55]url: /json_proto [17:02:55]query_string will be loaded in cgi processing [17:02:55]execute_cgi json_proto POST (null) [17:02:55]execute_cgi path=json_proto method=POST [17:02:55]POST find Content-Length [17:02:55]Host: 172.17.42.131:8080 [17:02:55]Content-Length: 677 [17:02:55]Content-Type: application/json [17:02:55] [17:02:55]POST finish read [17:02:55]Found Content-Length = 677 [17:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:55]execute_script... [17:02:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:55]POST & json_proto [17:02:55]process_json_proto [17:02:55]json parsed OK: [17:02:55]protocol is kg_v1.0 [17:02:55]action value=close_receipt [17:02:55]process_action close_receipt [17:02:55]cmd_close_receipt [17:02:55]MH_GetDate [17:02:55]Write to MH i2c: F0 00 00 C5 12 C6 [17:02:55]Write i2c OK [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: F0 [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: F0 09 00 [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: F0 09 00 C5 12 00 40 2C 19 67 A0 18 CA 66 A3 [17:02:55]GetLastDocTimeStamp 1729702824 [17:02:55]current date 1729702976 [17:02:55]FM_GetShiftState [17:02:55]SAM_PROTO_GetShiftState [17:02:55]wFMCommunicate request_size=4 [17:02:55]MH_SAM_APDU [17:02:55]CAPDU: 80 13 01 00 [17:02:55]Write to MH i2c: E2 08 00 C6 12 80 13 01 00 00 00 00 00 55 [17:02:55]Write i2c OK [17:02:55]MH_I2C_Read... [17:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:55]Read from MH i2c: E2 [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: E2 0E 00 [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: E2 0E 00 C6 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3D [17:02:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:02:55]wFMCommunicate OK [17:02:55]SAM_PROTO_GetShiftState done [17:02:55]FM_GetShiftState done [17:02:55]opened in 1729642525 [17:02:55]opened+sec_in_day 1729728925 [17:02:55]quantity*price = 50041 [17:02:55]sum+1 = 50042 [17:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 275 23.10.2024 17:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188817 ФПД: 125128239072771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170256&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188817&fm=125128239072771&tin=02508201610067®Number=0000000000100030&sum=50000 [17:02:56]StoreToDocumentArchive [17:02:56]shift 462 fd 188817 [17:02:56]save to /storage/0462/doc_00188817 [17:02:56]save last doc name /storage/0462/doc_00188817 to /storage/kkm_last_doc_name [17:02:56]save OK [17:02:56]Clear old archive folders... [17:02:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:56]tlvbuf is B6F22570 [17:02:56]SAM_PROTO_ClearQueue [17:02:56]wFMCommunicate request_size=4 [17:02:56]MH_SAM_APDU [17:02:56]CAPDU: 80 09 00 00 [17:02:56]Write to MH i2c: E2 08 00 D3 12 80 09 00 00 00 00 00 00 57 [17:02:56]Write i2c OK [17:02:56]MH_I2C_Read... [17:02:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:56]Read from MH i2c: E2 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 03 00 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [17:02:56]RAPDU: 90 00 [17:02:56]wFMCommunicate OK [17:02:56]SAM_PROTO_ClearQueue done [17:02:56]KKMCreateOFDPacket [17:02:56]OFDProtocolAddRootSTLVToBuf [17:02:56]FM_MakeSignedData [17:02:56]FM_MakeSignedData [17:02:56]SAM_PROTO_SignData [17:02:56]wFMCommunicate request_size=4 [17:02:56]MH_SAM_APDU [17:02:56]CAPDU: 80 0D 01 02 [17:02:56]Write to MH i2c: E2 08 00 D4 12 80 0D 01 02 00 00 00 00 5F [17:02:56]Write i2c OK [17:02:56]MH_I2C_Read... [17:02:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:56]Read from MH i2c: E2 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 03 00 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [17:02:56]RAPDU: 90 00 [17:02:56]wFMCommunicate OK [17:02:56]wFMCommunicate request_size=255 [17:02:56]MH_SAM_APDU [17:02:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 40 2C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E1 02 00 35 04 06 00 71 [17:02:56]Write to MH i2c: E2 02 01 D5 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 40 2C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E1 02 00 35 04 06 00 71 00 00 86 [17:02:56]Write i2c OK [17:02:56]MH_I2C_Read... [17:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:56]Read from MH i2c: E2 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 03 00 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 03 00 D5 12 00 90 00 5B [17:02:56]RAPDU: 90 00 [17:02:56]wFMCommunicate OK [17:02:56]wFMCommunicate request_size=10 [17:02:56]MH_SAM_APDU [17:02:56]CAPDU: 80 0D 02 02 05 CD B0 3D C6 03 [17:02:56]Write to MH i2c: E2 0D 00 D6 12 80 0D 02 02 05 00 CD B0 3D C6 03 00 00 EF [17:02:56]Write i2c OK [17:02:56]MH_I2C_Read... [17:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:56]Read from MH i2c: E2 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 03 00 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 03 00 D6 12 00 90 00 5C [17:02:56]RAPDU: 90 00 [17:02:56]wFMCommunicate OK [17:02:56]wFMCommunicate request_size=4 [17:02:56]MH_SAM_APDU [17:02:56]CAPDU: 80 0D 03 02 [17:02:56]Write to MH i2c: E2 08 00 D7 12 80 0D 03 02 00 00 00 00 64 [17:02:56]Write i2c OK [17:02:56]MH_I2C_Read... [17:02:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:56]Read from MH i2c: E2 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 0B 00 [17:02:56]MH_I2C_Read... [17:02:56]Read from MH i2c: E2 0B 00 D7 12 00 9E CA F4 11 A6 EF 05 95 90 00 01 [17:02:56]RAPDU: 9E CA F4 11 A6 EF 05 95 90 00 [17:02:56]wFMCommunicate OK [17:02:56]SAM_PROTO_SignData done [17:02:56]FM_MakeSignedData done [17:02:56]CreateOFDProtocolMessage [17:02:56]wFMCommunicate request_size=4 [17:02:56]MH_SAM_APDU [17:02:56]CAPDU: 80 11 00 00 [17:02:56]Write to MH i2c: E2 08 00 D8 12 80 11 00 00 00 00 00 00 64 [17:02:56]Write i2c OK [17:02:56]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 17 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 17 00 D8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [17:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:02:57]wFMCommunicate OK [17:02:57]CreateOFDProtocolMessage done [17:02:57]OFDSenderStorePacket 188817 [17:02:57]StoreOFDPacket docnum=188817 [17:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 51 07 01 EF F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 40 2C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E1 02 00 35 04 06 00 71 CD B0 3D C6 03 9E CA F4 11 A6 EF 05 95 [17:02:57]CheckFolder [17:02:57]dirname=/storage/ofd_packets [17:02:57]CheckFolder done [17:02:57]ProducePacketName [17:02:57]name=ofd_packets/00188817 [17:02:57]NVStorageSaveData ofd_packets/00188817 [17:02:57]File name is /storage/ofd_packets/00188817 [17:02:57]Write 301 bytes [17:02:57]NVStorageSaveData done [17:02:57]OFDSenderStorePacket done [17:02:57]KKMCreateOFDPacket done [17:02:57]NVStorageSaveData kkm_last_timestamp [17:02:57]File name is /storage/kkm_last_timestamp [17:02:57]Write 4 bytes [17:02:57]NVStorageSaveData done [17:02:57]ExternCall_PrintAddStr [17:02:57]wPrintStart [17:02:57]Write to MH i2c: 01 00 00 D9 12 EB [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 07 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 07 00 D9 12 00 00 00 00 00 FF 0F 00 [17:02:57]RasterBufferAndPrint [17:02:57]line Счет N : (1)210877 [17:02:57]line ИНН: 02508201610067 [17:02:57]line Контрольно-Кассовый Чек [17:02:57]line ПРОДАЖА [17:02:57]line ТРК (МРК, ГНК) : 12 [17:02:57]line Товар: 2710124130 [17:02:57]line Аи-92-К-3 [17:02:57]line 7.480 * 66.90 [17:02:57]line = 500.41 [17:02:57]line НДС 12% НСП 1% [17:02:57]line > о реализуемом товаре [17:02:57]line ОКРУГЛЕНИЕ: -0.41 [17:02:57]line ИТОГО: 500.00 [17:02:57]line Внесено: 500.00 [17:02:57]line СДАЧА: 0.00 [17:02:57]line НСП 1% : 4.43 [17:02:57]line НДС 12% : 53.14 [17:02:57]line Наличными: 500.00 [17:02:57]line Безнал.: 0.00 [17:02:57]line Место: АЗС № 86 "Партнер Нефть" [17:02:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:02:57]line СНО: Общий режим [17:02:57]line Чек 275 23.10.2024 17:02 [17:02:57]line Смена: 462 ФФД: 1.0 [17:02:57]line ЗНМ: 0300000155 [17:02:57]line РНМ: 0000000000100030 [17:02:57]line Версия ККМ: 001 [17:02:57]line ФМ: 0000000000965340 [17:02:57]line ФД: 188817 [17:02:57]line ФПД: 125128239072771 [17:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170256&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188817&fm=125128239072771&tin=02508201610067®Number=0000000000100030&sum=50000 [17:02:57]written 0, free lines is 4095 [17:02:57]OFD Sender: Processing packet 188817 [packets to send 1062, broken 1061] [17:02:57]ProducePacketName [17:02:57]name=ofd_packets/00188817 [17:02:57]OFD Sender: To server: pG, [17:02:57]CommunicateWithHost lk.salyk.kg:30040 [17:02:57]ConnectInit lk.salyk.kg [17:02:57]Write to MH i2c: 01 00 00 04 13 17 [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 07 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 07 00 04 13 00 00 00 00 00 55 0C 7F [17:02:57]RasterBufferAndPrint [17:02:57]line [17:02:57]line [17:02:57]line [17:02:57]line [17:02:57]line [17:02:57]written 0, free lines is 3161 [17:02:57]MH_Cut [17:02:57]Write to MH i2c: D1 01 00 0B 13 01 F0 [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: D1 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: D1 01 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: D1 01 00 0B 13 00 EF [17:02:57]Write to MH i2c: 01 00 00 0C 13 1F [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]Connected sock=10 [17:02:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 51 07 01 EF F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 40 2C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E1 02 00 35 04 06 00 71 CD B0 3D C6 03 9E CA F4 11 A6 EF 05 95 [17:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 00 51 47 00 E9 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 91 E1 02 00 F4 03 04 00 2A D6 18 67 B6 04 01 00 00 16 A2 59 63 84 51 55 D2 [17:02:57]CommunicateWithHost err = 0 [17:02:57]CheckOFDResponse [17:02:57]1017 (14) - 77093643461234 [17:02:57]1041 (16) - 0000000000965340 [17:02:57]1040 (4) - 188817 [17:02:57]1012 (4) - 23.10.2024 10:55 [17:02:57]1206 (1) - 0 [17:02:57]OFD Sender: Remove packet 188817 [17:02:57]ProducePacketName [17:02:57]name=ofd_packets/00188817 [17:02:57]NVStorageDeleteData [17:02:58]OFD Sender: No OFD packet to send [17:02:58]*** Cut start [17:02:58]*** Partial cut [17:02:58]*** CUTSNS_PIN = 1 [17:02:58]*** CUTSNS_PIN = 0 [17:02:59]*** Brake cut motor [17:02:59]Read from MH i2c: 01 [17:02:59]MH_I2C_Read... [17:02:59]*** Stop cut motor [17:02:59]*** Cut end [17:02:59]Read from MH i2c: 01 07 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 07 00 0C 13 00 00 00 00 00 FF 0F 34 [17:02:59]process_action close_receipt done [17:02:59]requested_data is exist [17:02:59]produce_requested_data [17:02:59]requested_item fm.sn is exist - process it [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 11 00 00 [17:02:59]Write to MH i2c: E2 08 00 0D 13 80 11 00 00 00 00 00 00 9A [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 17 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 17 00 0D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [17:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:02:59]wFMCommunicate OK [17:02:59]requested_item fd.num is exist - process it [17:02:59]SAM_PROTO_GetFieldsCounters [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 13 00 00 [17:02:59]Write to MH i2c: E2 08 00 0E 13 80 13 00 00 00 00 00 00 9D [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 62 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 62 00 0E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:02:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_GetFieldsCounters done [17:02:59]requested_item shift.num is exist - process it [17:02:59]requested_item shift.opened is exist - process it [17:02:59]req_shift_opened [17:02:59]FM_GetShiftState [17:02:59]SAM_PROTO_GetShiftState [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 13 01 00 [17:02:59]Write to MH i2c: E2 08 00 0F 13 80 13 01 00 00 00 00 00 9F [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0E 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0E 00 0F 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 87 [17:02:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_GetShiftState done [17:02:59]FM_GetShiftState done [17:02:59]req_shift_opened done [17:02:59]requested_item shift.open_date is exist - process it [17:02:59]req_shift_open_date [17:02:59]req_shift_open_date done [17:02:59]produce_requested_data done [17:02:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188817,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:02:59]process_action_free close_receipt [17:02:59]json_value_free [17:02:59]json_value_free done [17:02:59]process_json_proto returns [17:02:59]Send response to host [17:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188817,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:02:59]free response buf [17:02:59]execute_script done [17:02:59]execute_script returns [17:02:59]free content buf [17:02:59]Sock 7.Close socket [17:02:59]Sock 7.Thread stoped [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]accept exits with 9 [17:03:43]New connection [17:03:43]New thread 3067207012 created [17:03:43]Thread 3067350372 joined [17:03:43]Waiting for new connection... [17:03:43] Sock 9.Parse request [17:03:43]Sock 9.Check first char [17:03:43]Sock 9.First char is OK [17:03:43]request: POST /json_proto HTTP/1.0 [17:03:43]Method: POST [17:03:43]URL: /json_proto [17:03:43]Method is POST - this is cgi request [17:03:43]url: /json_proto [17:03:43]query_string will be loaded in cgi processing [17:03:43]execute_cgi json_proto POST (null) [17:03:43]execute_cgi path=json_proto method=POST [17:03:43]POST find Content-Length [17:03:43]Host: 172.17.42.131:8080 [17:03:43]Content-Length: 682 [17:03:43]Content-Type: application/json [17:03:43] [17:03:43]POST finish read [17:03:43]Found Content-Length = 682 [17:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:43]execute_script... [17:03:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:43]POST & json_proto [17:03:43]process_json_proto [17:03:43]json parsed OK: [17:03:43]protocol is kg_v1.0 [17:03:43]action value=close_receipt [17:03:43]process_action close_receipt [17:03:43]cmd_close_receipt [17:03:43]MH_GetDate [17:03:43]Write to MH i2c: F0 00 00 10 13 12 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 09 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 09 00 10 13 00 70 2C 19 67 A0 18 CA 66 1F [17:03:43]GetLastDocTimeStamp 1729702976 [17:03:43]current date 1729703024 [17:03:43]FM_GetShiftState [17:03:43]SAM_PROTO_GetShiftState [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 13 01 00 [17:03:43]Write to MH i2c: E2 08 00 11 13 80 13 01 00 00 00 00 00 A1 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 0E 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 0E 00 11 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 89 [17:03:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:03:43]wFMCommunicate OK [17:03:43]SAM_PROTO_GetShiftState done [17:03:43]FM_GetShiftState done [17:03:43]opened in 1729642525 [17:03:43]opened+sec_in_day 1729728925 [17:03:43]quantity*price = 100021 [17:03:43]sum+1 = 100023 [17:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 276 23.10.2024 17:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188818 ФПД: 155108985113573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170344&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188818&fm=155108985113573&tin=02508201610067®Number=0000000000100030&sum=100000 [17:03:44]StoreToDocumentArchive [17:03:44]shift 462 fd 188818 [17:03:44]save to /storage/0462/doc_00188818 [17:03:44]save last doc name /storage/0462/doc_00188818 to /storage/kkm_last_doc_name [17:03:44]save OK [17:03:44]Clear old archive folders... [17:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:44]tlvbuf is 01128350 [17:03:44]SAM_PROTO_ClearQueue [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 09 00 00 [17:03:44]Write to MH i2c: E2 08 00 1E 13 80 09 00 00 00 00 00 00 A3 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [17:03:44]RAPDU: 90 00 [17:03:44]wFMCommunicate OK [17:03:44]SAM_PROTO_ClearQueue done [17:03:44]KKMCreateOFDPacket [17:03:44]OFDProtocolAddRootSTLVToBuf [17:03:44]FM_MakeSignedData [17:03:44]FM_MakeSignedData [17:03:44]SAM_PROTO_SignData [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 0D 01 02 [17:03:44]Write to MH i2c: E2 08 00 1F 13 80 0D 01 02 00 00 00 00 AB [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [17:03:44]RAPDU: 90 00 [17:03:44]wFMCommunicate OK [17:03:44]wFMCommunicate request_size=255 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 70 2C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E1 02 00 35 04 06 00 8D [17:03:44]Write to MH i2c: E2 02 01 20 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 70 2C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E1 02 00 35 04 06 00 8D 00 00 3D [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [17:03:44]RAPDU: 90 00 [17:03:44]wFMCommunicate OK [17:03:44]wFMCommunicate request_size=10 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 0D 02 02 05 12 1F F5 8B E5 [17:03:44]Write to MH i2c: E2 0D 00 21 13 80 0D 02 02 05 00 12 1F F5 8B E5 00 00 4E [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 03 00 21 13 00 90 00 A8 [17:03:44]RAPDU: 90 00 [17:03:44]wFMCommunicate OK [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 0D 03 02 [17:03:44]Write to MH i2c: E2 08 00 22 13 80 0D 03 02 00 00 00 00 B0 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 0B 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 0B 00 22 13 00 6B C3 D2 45 92 F5 02 CE 90 00 4D [17:03:44]RAPDU: 6B C3 D2 45 92 F5 02 CE 90 00 [17:03:44]wFMCommunicate OK [17:03:44]SAM_PROTO_SignData done [17:03:44]FM_MakeSignedData done [17:03:44]CreateOFDProtocolMessage [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 11 00 00 [17:03:44]Write to MH i2c: E2 08 00 23 13 80 11 00 00 00 00 00 00 B0 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 17 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 17 00 23 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [17:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:03:44]wFMCommunicate OK [17:03:44]CreateOFDProtocolMessage done [17:03:44]OFDSenderStorePacket 188818 [17:03:44]StoreOFDPacket docnum=188818 [17:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 9B 07 01 AE 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 70 2C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E1 02 00 35 04 06 00 8D 12 1F F5 8B E5 6B C3 D2 45 92 F5 02 CE [17:03:44]CheckFolder [17:03:44]dirname=/storage/ofd_packets [17:03:44]CheckFolder done [17:03:44]ProducePacketName [17:03:44]name=ofd_packets/00188818 [17:03:44]NVStorageSaveData ofd_packets/00188818 [17:03:44]File name is /storage/ofd_packets/00188818 [17:03:44]Write 301 bytes [17:03:44]NVStorageSaveData done [17:03:44]OFDSenderStorePacket done [17:03:44]KKMCreateOFDPacket done [17:03:44]NVStorageSaveData kkm_last_timestamp [17:03:44]File name is /storage/kkm_last_timestamp [17:03:44]Write 4 bytes [17:03:44]NVStorageSaveData done [17:03:44]ExternCall_PrintAddStr [17:03:44]wPrintStart [17:03:44]Write to MH i2c: 01 00 00 24 13 37 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 07 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 FF 0F 4C [17:03:44]RasterBufferAndPrint [17:03:44]line Счет N : (1)210878 [17:03:44]line ИНН: 02508201610067 [17:03:44]line Контрольно-Кассовый Чек [17:03:44]line ПРОДАЖА [17:03:44]line ТРК (МРК, ГНК) : 33 [17:03:44]line Товар: 2710124500 [17:03:44]line Аи-95-К-3 [17:03:44]line 13.480 * 74.20 [17:03:44]line = 1000.22 [17:03:44]line НДС 12% НСП 1% [17:03:44]line > о реализуемом товаре [17:03:44]line ОКРУГЛЕНИЕ: -0.22 [17:03:44]line ИТОГО: 1000.00 [17:03:44]line Внесено: 1000.00 [17:03:44]line СДАЧА: 0.00 [17:03:44]line НСП 1% : 8.85 [17:03:44]line НДС 12% : 106.22 [17:03:44]line Наличными: 1000.00 [17:03:44]line Безнал.: 0.00 [17:03:44]line Место: АЗС № 86 "Партнер Нефть" [17:03:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:03:44]line СНО: Общий режим [17:03:44]line Чек 276 23.10.2024 17:03 [17:03:44]line Смена: 462 ФФД: 1.0 [17:03:44]line ЗНМ: 0300000155 [17:03:44]line РНМ: 0000000000100030 [17:03:44]line Версия ККМ: 001 [17:03:44]line ФМ: 0000000000965340 [17:03:44]line ФД: 188818 [17:03:44]line ФПД: 155108985113573 [17:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170344&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188818&fm=155108985113573&tin=02508201610067®Number=0000000000100030&sum=100000 [17:03:44]written 0, free lines is 4095 [17:03:44]OFD Sender: Processing packet 188818 [packets to send 1062, broken 1061] [17:03:44]ProducePacketName [17:03:44]name=ofd_packets/00188818 [17:03:44]OFD Sender: To server: pG, [17:03:44]CommunicateWithHost lk.salyk.kg:30040 [17:03:45]ConnectInit lk.salyk.kg [17:03:45]Write to MH i2c: 01 00 00 4F 13 62 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 4F 13 00 00 00 00 00 5A 0C CF [17:03:45]RasterBufferAndPrint [17:03:45]line [17:03:45]line [17:03:45]line [17:03:45]line [17:03:45]line [17:03:45]written 0, free lines is 3166 [17:03:45]MH_Cut [17:03:45]Write to MH i2c: D1 01 00 56 13 01 3B [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: D1 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: D1 01 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: D1 01 00 56 13 00 3A [17:03:45]Write to MH i2c: 01 00 00 57 13 6A [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]Connected sock=10 [17:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 9B 07 01 AE 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 70 2C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E1 02 00 35 04 06 00 8D 12 1F F5 8B E5 6B C3 D2 45 92 F5 02 CE [17:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A6 F4 47 00 13 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 36 35 33 34 30 10 04 04 00 92 E1 02 00 F4 03 04 00 5A D6 18 67 B6 04 01 00 00 B8 B0 ED 2B 88 13 F2 22 [17:03:45]CommunicateWithHost err = 0 [17:03:45]CheckOFDResponse [17:03:45]1017 (14) - 77093643461234 [17:03:45]1041 (16) - 0000000000965340 [17:03:45]1040 (4) - 188818 [17:03:45]1012 (4) - 23.10.2024 10:56 [17:03:45]1206 (1) - 0 [17:03:45]OFD Sender: Remove packet 188818 [17:03:45]ProducePacketName [17:03:45]name=ofd_packets/00188818 [17:03:45]NVStorageDeleteData [17:03:46]OFD Sender: No OFD packet to send [17:03:46]*** Cut start [17:03:46]*** Partial cut [17:03:46]*** CUTSNS_PIN = 1 [17:03:46]*** CUTSNS_PIN = 0 [17:03:46]*** Brake cut motor [17:03:47]Read from MH i2c: 01 [17:03:47]MH_I2C_Read... [17:03:47]*** Stop cut motor [17:03:47]*** Cut end [17:03:47]Read from MH i2c: 01 07 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: 01 07 00 57 13 00 00 00 00 00 FF 0F 7F [17:03:47]process_action close_receipt done [17:03:47]requested_data is exist [17:03:47]produce_requested_data [17:03:47]requested_item fm.sn is exist - process it [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 11 00 00 [17:03:47]Write to MH i2c: E2 08 00 58 13 80 11 00 00 00 00 00 00 E5 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 17 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 17 00 58 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [17:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:03:47]wFMCommunicate OK [17:03:47]requested_item fd.num is exist - process it [17:03:47]SAM_PROTO_GetFieldsCounters [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 13 00 00 [17:03:47]Write to MH i2c: E2 08 00 59 13 80 13 00 00 00 00 00 00 E8 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 62 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 62 00 59 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [17:03:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:47]wFMCommunicate OK [17:03:47]SAM_PROTO_GetFieldsCounters done [17:03:47]requested_item shift.num is exist - process it [17:03:47]requested_item shift.opened is exist - process it [17:03:47]req_shift_opened [17:03:47]FM_GetShiftState [17:03:47]SAM_PROTO_GetShiftState [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 13 01 00 [17:03:47]Write to MH i2c: E2 08 00 5A 13 80 13 01 00 00 00 00 00 EA [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 0E 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 0E 00 5A 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D2 [17:03:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:03:47]wFMCommunicate OK [17:03:47]SAM_PROTO_GetShiftState done [17:03:47]FM_GetShiftState done [17:03:47]req_shift_opened done [17:03:47]requested_item shift.open_date is exist - process it [17:03:47]req_shift_open_date [17:03:47]req_shift_open_date done [17:03:47]produce_requested_data done [17:03:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188818,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:03:47]process_action_free close_receipt [17:03:47]json_value_free [17:03:47]json_value_free done [17:03:47]process_json_proto returns [17:03:47]Send response to host [17:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188818,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:03:47]free response buf [17:03:47]execute_script done [17:03:47]execute_script returns [17:03:47]free content buf [17:03:47]Sock 9.Close socket [17:03:47]Sock 9.Thread stoped [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:16]accept exits with 7 [17:07:16]New connection [17:07:16]New thread 3067350372 created [17:07:16]Thread 3067207012 joined [17:07:16]Waiting for new connection... [17:07:16] Sock 7.Parse request [17:07:16]Sock 7.Check first char [17:07:16]Sock 7.First char is OK [17:07:16]request: POST /json_proto HTTP/1.0 [17:07:16]Method: POST [17:07:16]URL: /json_proto [17:07:16]Method is POST - this is cgi request [17:07:16]url: /json_proto [17:07:16]query_string will be loaded in cgi processing [17:07:16]execute_cgi json_proto POST (null) [17:07:16]execute_cgi path=json_proto method=POST [17:07:16]POST find Content-Length [17:07:16]Host: 172.17.42.131:8080 [17:07:16]Content-Length: 751 [17:07:16]Content-Type: application/json [17:07:16] [17:07:16]POST finish read [17:07:16]Found Content-Length = 751 [17:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047833", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:16]execute_script... [17:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047833", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:16]POST & json_proto [17:07:16]process_json_proto [17:07:16]json parsed OK: [17:07:16]protocol is kg_v1.0 [17:07:16]action value=close_receipt [17:07:16]process_action close_receipt [17:07:16]cmd_close_receipt [17:07:16]MH_GetDate [17:07:16]Write to MH i2c: F0 00 00 5B 13 5D [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: F0 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: F0 09 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: F0 09 00 5B 13 00 45 2D 19 67 A0 18 CA 66 40 [17:07:16]GetLastDocTimeStamp 1729703024 [17:07:16]current date 1729703237 [17:07:16]FM_GetShiftState [17:07:16]SAM_PROTO_GetShiftState [17:07:16]wFMCommunicate request_size=4 [17:07:16]MH_SAM_APDU [17:07:16]CAPDU: 80 13 01 00 [17:07:16]Write to MH i2c: E2 08 00 5C 13 80 13 01 00 00 00 00 00 EC [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:16]Read from MH i2c: E2 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: E2 0E 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: E2 0E 00 5C 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D4 [17:07:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:07:16]wFMCommunicate OK [17:07:16]SAM_PROTO_GetShiftState done [17:07:16]FM_GetShiftState done [17:07:16]opened in 1729642525 [17:07:16]opened+sec_in_day 1729728925 [17:07:16]quantity*price = 0 [17:07:16]sum+1 = 1 [17:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 277 23.10.2024 17:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30047833 ФМ: 0000000000965340 ФД: 188819 ФПД: 208353815253521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188819&fm=208353815253521&tin=02508201610067®Number=0000000000100030&sum=0 [17:07:17]StoreToDocumentArchive [17:07:17]shift 462 fd 188819 [17:07:17]save to /storage/0462/doc_00188819 [17:07:17]save last doc name /storage/0462/doc_00188819 to /storage/kkm_last_doc_name [17:07:17]save OK [17:07:17]Clear old archive folders... [17:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:17]tlvbuf is 01143A50 [17:07:17]SAM_PROTO_ClearQueue [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 09 00 00 [17:07:17]Write to MH i2c: E2 08 00 69 13 80 09 00 00 00 00 00 00 EE [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:17]OFD Sender: No OFD packet to send [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [17:07:17]RAPDU: 90 00 [17:07:17]wFMCommunicate OK [17:07:17]SAM_PROTO_ClearQueue done [17:07:17]KKMCreateOFDPacket [17:07:17]OFDProtocolAddRootSTLVToBuf [17:07:17]FM_MakeSignedData [17:07:17]FM_MakeSignedData [17:07:17]SAM_PROTO_SignData [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 0D 01 02 [17:07:17]Write to MH i2c: E2 08 00 6A 13 80 0D 01 02 00 00 00 00 F6 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [17:07:17]RAPDU: 90 00 [17:07:17]wFMCommunicate OK [17:07:17]wFMCommunicate request_size=255 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 45 2D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E1 02 00 35 04 06 00 BD 7F 27 25 [17:07:17]Write to MH i2c: E2 02 01 6B 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 45 2D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E1 02 00 35 04 06 00 BD 7F 27 25 00 00 7C [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 6B 13 00 90 00 F2 [17:07:17]RAPDU: 90 00 [17:07:17]wFMCommunicate OK [17:07:17]wFMCommunicate request_size=7 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 0D 02 02 02 52 11 [17:07:17]Write to MH i2c: E2 0A 00 6C 13 80 0D 02 02 02 00 52 11 00 00 60 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 6C 13 00 90 00 F3 [17:07:17]RAPDU: 90 00 [17:07:17]wFMCommunicate OK [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 0D 03 02 [17:07:17]Write to MH i2c: E2 08 00 6D 13 80 0D 03 02 00 00 00 00 FB [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 0B 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 0B 00 6D 13 00 B9 8B 25 70 B7 BE 6D C2 90 00 79 [17:07:17]RAPDU: B9 8B 25 70 B7 BE 6D C2 90 00 [17:07:17]wFMCommunicate OK [17:07:17]SAM_PROTO_SignData done [17:07:17]FM_MakeSignedData done [17:07:17]CreateOFDProtocolMessage [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 11 00 00 [17:07:17]Write to MH i2c: E2 08 00 6E 13 80 11 00 00 00 00 00 00 FB [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 17 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 17 00 6E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [17:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:07:17]wFMCommunicate OK [17:07:17]CreateOFDProtocolMessage done [17:07:17]OFDSenderStorePacket 188819 [17:07:17]StoreOFDPacket docnum=188819 [17:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 22 DC 04 01 77 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 45 2D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E1 02 00 35 04 06 00 BD 7F 27 25 52 11 B9 8B 25 70 B7 BE 6D C2 [17:07:17]CheckFolder [17:07:17]dirname=/storage/ofd_packets [17:07:17]CheckFolder done [17:07:17]ProducePacketName [17:07:17]name=ofd_packets/00188819 [17:07:17]NVStorageSaveData ofd_packets/00188819 [17:07:17]File name is /storage/ofd_packets/00188819 [17:07:17]Write 298 bytes [17:07:17]NVStorageSaveData done [17:07:17]OFDSenderStorePacket done [17:07:17]KKMCreateOFDPacket done [17:07:17]NVStorageSaveData kkm_last_timestamp [17:07:17]File name is /storage/kkm_last_timestamp [17:07:17]Write 4 bytes [17:07:17]NVStorageSaveData done [17:07:17]ExternCall_PrintAddStr [17:07:17]wPrintStart [17:07:17]Write to MH i2c: 01 00 00 6F 13 82 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: 01 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: 01 07 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: 01 07 00 6F 13 00 00 00 00 00 FF 0F 97 [17:07:17]RasterBufferAndPrint [17:07:17]line Счет N : (1)210879 [17:07:17]line ИНН: 02508201610067 [17:07:17]line Контрольно-Кассовый Чек [17:07:17]line ПРОДАЖА [17:07:17]line ТРК (МРК, ГНК) : 51 [17:07:17]line Товар: 2710194210 [17:07:17]line ДТ-К-5 [17:07:17]line 20.000 * 0.00 [17:07:17]line = 0.00 [17:07:17]line НДС 12% НСП 1% [17:07:17]line > о реализуемом товаре [17:07:17]line ИТОГО: 0.00 [17:07:17]line НСП 1% : 0.00 [17:07:17]line НДС 12% : 0.00 [17:07:17]line Наличными: 0.00 [17:07:17]line Безнал.: 0.00 [17:07:17]line Место: АЗС № 86 "Партнер Нефть" [17:07:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:07:17]line СНО: Общий режим [17:07:17]line Чек 277 23.10.2024 17:07 [17:07:17]line Смена: 462 ФФД: 1.0 [17:07:17]line ЗНМ: 0300000155 [17:07:17]line РНМ: 0000000000100030 [17:07:17]line Версия ККМ: 001 [17:07:17]line Талоны: ТК ГПНА Online [17:07:17]line 30047833 [17:07:17]line ФМ: 0000000000965340 [17:07:17]line ФД: 188819 [17:07:17]line ФПД: 208353815253521 [17:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188819&fm=208353815253521&tin=02508201610067®Number=0000000000100030&sum=0 [17:07:17]written 0, free lines is 4095 [17:07:17]OFD Sender: Processing packet 188819 [packets to send 1062, broken 1061] [17:07:17]ProducePacketName [17:07:17]name=ofd_packets/00188819 [17:07:17]OFD Sender: To server: pG, [17:07:17]CommunicateWithHost lk.salyk.kg:30040 [17:07:17]ConnectInit lk.salyk.kg [17:07:18]Connected sock=10 [17:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 22 DC 04 01 77 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 45 2D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E1 02 00 35 04 06 00 BD 7F 27 25 52 11 B9 8B 25 70 B7 BE 6D C2 [17:07:18]Write to MH i2c: 01 00 00 99 13 AC [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 07 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 74 0C 33 [17:07:18]RasterBufferAndPrint [17:07:18]line [17:07:18]line [17:07:18]line [17:07:18]line [17:07:18]line [17:07:18]written 0, free lines is 3193 [17:07:18]MH_Cut [17:07:18]Write to MH i2c: D1 01 00 A0 13 01 85 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: D1 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: D1 01 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: D1 01 00 A0 13 00 84 [17:07:18]Write to MH i2c: 01 00 00 A1 13 B4 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 94 71 47 00 B6 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E1 02 00 F4 03 04 00 2F D7 18 67 B6 04 01 00 00 1E 28 E9 19 0B 7C A9 02 [17:07:18]CommunicateWithHost err = 0 [17:07:18]CheckOFDResponse [17:07:18]1017 (14) - 77093643461234 [17:07:18]1041 (16) - 0000000000965340 [17:07:18]1040 (4) - 188819 [17:07:18]1012 (4) - 23.10.2024 10:59 [17:07:18]1206 (1) - 0 [17:07:18]OFD Sender: Remove packet 188819 [17:07:18]ProducePacketName [17:07:18]name=ofd_packets/00188819 [17:07:18]NVStorageDeleteData [17:07:18]OFD Sender: No OFD packet to send [17:07:19]*** Cut start [17:07:19]*** Partial cut [17:07:19]*** CUTSNS_PIN = 1 [17:07:19]*** CUTSNS_PIN = 0 [17:07:19]*** Brake cut motor [17:07:20]Read from MH i2c: 01 [17:07:20]MH_I2C_Read... [17:07:20]*** Stop cut motor [17:07:20]*** Cut end [17:07:20]Read from MH i2c: 01 07 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: 01 07 00 A1 13 00 00 00 00 00 FF 0F C9 [17:07:20]process_action close_receipt done [17:07:20]requested_data is exist [17:07:20]produce_requested_data [17:07:20]requested_item fm.sn is exist - process it [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 11 00 00 [17:07:20]Write to MH i2c: E2 08 00 A2 13 80 11 00 00 00 00 00 00 2F [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 17 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 17 00 A2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [17:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:07:20]wFMCommunicate OK [17:07:20]requested_item fd.num is exist - process it [17:07:20]SAM_PROTO_GetFieldsCounters [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 13 00 00 [17:07:20]Write to MH i2c: E2 08 00 A3 13 80 13 00 00 00 00 00 00 32 [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 62 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 62 00 A3 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [17:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:20]wFMCommunicate OK [17:07:20]SAM_PROTO_GetFieldsCounters done [17:07:20]requested_item shift.num is exist - process it [17:07:20]requested_item shift.opened is exist - process it [17:07:20]req_shift_opened [17:07:20]FM_GetShiftState [17:07:20]SAM_PROTO_GetShiftState [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 13 01 00 [17:07:20]Write to MH i2c: E2 08 00 A4 13 80 13 01 00 00 00 00 00 34 [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 0E 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 0E 00 A4 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1C [17:07:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:07:20]wFMCommunicate OK [17:07:20]SAM_PROTO_GetShiftState done [17:07:20]FM_GetShiftState done [17:07:20]req_shift_opened done [17:07:20]requested_item shift.open_date is exist - process it [17:07:20]req_shift_open_date [17:07:20]req_shift_open_date done [17:07:20]produce_requested_data done [17:07:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188819,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:07:20]process_action_free close_receipt [17:07:20]json_value_free [17:07:20]json_value_free done [17:07:20]process_json_proto returns [17:07:20]Send response to host [17:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188819,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:07:20]free response buf [17:07:20]execute_script done [17:07:20]execute_script returns [17:07:20]free content buf [17:07:20]Sock 7.Close socket [17:07:20]Sock 7.Thread stoped [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:20]accept exits with 9 [17:12:20]New connection [17:12:20]New thread 3067207012 created [17:12:20]Thread 3067350372 joined [17:12:20]Waiting for new connection... [17:12:20] Sock 9.Parse request [17:12:20]Sock 9.Check first char [17:12:20]Sock 9.First char is OK [17:12:20]request: POST /json_proto HTTP/1.0 [17:12:20]Method: POST [17:12:20]URL: /json_proto [17:12:20]Method is POST - this is cgi request [17:12:20]url: /json_proto [17:12:20]query_string will be loaded in cgi processing [17:12:20]execute_cgi json_proto POST (null) [17:12:20]execute_cgi path=json_proto method=POST [17:12:20]POST find Content-Length [17:12:20]Host: 172.17.42.131:8080 [17:12:20]Content-Length: 678 [17:12:20]Content-Type: application/json [17:12:20] [17:12:20]POST finish read [17:12:20]Found Content-Length = 678 [17:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:20]execute_script... [17:12:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:20]POST & json_proto [17:12:20]process_json_proto [17:12:20]json parsed OK: [17:12:20]protocol is kg_v1.0 [17:12:20]action value=close_receipt [17:12:20]process_action close_receipt [17:12:20]cmd_close_receipt [17:12:20]MH_GetDate [17:12:20]Write to MH i2c: F0 00 00 A5 13 A7 [17:12:20]Write i2c OK [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: F0 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: F0 09 00 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: F0 09 00 A5 13 00 75 2E 19 67 A0 18 CA 66 BB [17:12:20]GetLastDocTimeStamp 1729703237 [17:12:20]current date 1729703541 [17:12:20]FM_GetShiftState [17:12:20]SAM_PROTO_GetShiftState [17:12:20]wFMCommunicate request_size=4 [17:12:20]MH_SAM_APDU [17:12:20]CAPDU: 80 13 01 00 [17:12:20]Write to MH i2c: E2 08 00 A6 13 80 13 01 00 00 00 00 00 36 [17:12:20]Write i2c OK [17:12:20]MH_I2C_Read... [17:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:20]Read from MH i2c: E2 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: E2 0E 00 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: E2 0E 00 A6 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1E [17:12:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:12:20]wFMCommunicate OK [17:12:20]SAM_PROTO_GetShiftState done [17:12:20]FM_GetShiftState done [17:12:20]opened in 1729642525 [17:12:20]opened+sec_in_day 1729728925 [17:12:20]quantity*price = 80012 [17:12:20]sum+1 = 80013 [17:12:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 278 23.10.2024 17:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188820 ФПД: 205044402104912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171221&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188820&fm=205044402104912&tin=02508201610067®Number=0000000000100030&sum=80000 [17:12:21]StoreToDocumentArchive [17:12:21]shift 462 fd 188820 [17:12:21]save to /storage/0462/doc_00188820 [17:12:21]save last doc name /storage/0462/doc_00188820 to /storage/kkm_last_doc_name [17:12:21]save OK [17:12:21]Clear old archive folders... [17:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:21]tlvbuf is B6FB9AB0 [17:12:21]SAM_PROTO_ClearQueue [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 09 00 00 [17:12:21]Write to MH i2c: E2 08 00 B3 13 80 09 00 00 00 00 00 00 38 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 03 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [17:12:21]RAPDU: 90 00 [17:12:21]wFMCommunicate OK [17:12:21]SAM_PROTO_ClearQueue done [17:12:21]KKMCreateOFDPacket [17:12:21]OFDProtocolAddRootSTLVToBuf [17:12:21]FM_MakeSignedData [17:12:21]FM_MakeSignedData [17:12:21]SAM_PROTO_SignData [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 0D 01 02 [17:12:21]Write to MH i2c: E2 08 00 B4 13 80 0D 01 02 00 00 00 00 40 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 03 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [17:12:21]RAPDU: 90 00 [17:12:21]wFMCommunicate OK [17:12:21]wFMCommunicate request_size=255 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 75 2E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E1 02 00 35 04 06 00 BA [17:12:21]Write to MH i2c: E2 02 01 B5 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 75 2E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E1 02 00 35 04 06 00 BA 00 00 D9 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 03 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 03 00 B5 13 00 90 00 3C [17:12:21]RAPDU: 90 00 [17:12:21]wFMCommunicate OK [17:12:21]wFMCommunicate request_size=10 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 0D 02 02 05 7C 9E C0 2A 50 [17:12:21]Write to MH i2c: E2 0D 00 B6 13 80 0D 02 02 05 00 7C 9E C0 2A 50 00 00 A1 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 03 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 03 00 B6 13 00 90 00 3D [17:12:21]RAPDU: 90 00 [17:12:21]wFMCommunicate OK [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 0D 03 02 [17:12:21]Write to MH i2c: E2 08 00 B7 13 80 0D 03 02 00 00 00 00 45 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 0B 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 0B 00 B7 13 00 24 D3 59 CB 18 6D B3 74 90 00 0D [17:12:21]RAPDU: 24 D3 59 CB 18 6D B3 74 90 00 [17:12:21]wFMCommunicate OK [17:12:21]SAM_PROTO_SignData done [17:12:21]FM_MakeSignedData done [17:12:21]CreateOFDProtocolMessage [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 11 00 00 [17:12:21]Write to MH i2c: E2 08 00 B8 13 80 11 00 00 00 00 00 00 45 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 17 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 17 00 B8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [17:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:12:22]wFMCommunicate OK [17:12:22]CreateOFDProtocolMessage done [17:12:22]OFDSenderStorePacket 188820 [17:12:22]StoreOFDPacket docnum=188820 [17:12:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB A6 07 01 5E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 75 2E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E1 02 00 35 04 06 00 BA 7C 9E C0 2A 50 24 D3 59 CB 18 6D B3 74 [17:12:22]CheckFolder [17:12:22]dirname=/storage/ofd_packets [17:12:22]CheckFolder done [17:12:22]ProducePacketName [17:12:22]name=ofd_packets/00188820 [17:12:22]NVStorageSaveData ofd_packets/00188820 [17:12:22]File name is /storage/ofd_packets/00188820 [17:12:22]Write 301 bytes [17:12:22]NVStorageSaveData done [17:12:22]OFDSenderStorePacket done [17:12:22]KKMCreateOFDPacket done [17:12:22]NVStorageSaveData kkm_last_timestamp [17:12:22]File name is /storage/kkm_last_timestamp [17:12:22]Write 4 bytes [17:12:22]NVStorageSaveData done [17:12:22]ExternCall_PrintAddStr [17:12:22]wPrintStart [17:12:22]Write to MH i2c: 01 00 00 B9 13 CC [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 07 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 07 00 B9 13 00 00 00 00 00 FF 0F E1 [17:12:22]RasterBufferAndPrint [17:12:22]line Счет N : (1)210880 [17:12:22]line ИНН: 02508201610067 [17:12:22]line Контрольно-Кассовый Чек [17:12:22]line ПРОДАЖА [17:12:22]line ТРК (МРК, ГНК) : 42 [17:12:22]line Товар: 2710124130 [17:12:22]line Аи-92-К-3 [17:12:22]line 11.960 * 66.90 [17:12:22]line = 800.12 [17:12:22]line НДС 12% НСП 1% [17:12:22]line > о реализуемом товаре [17:12:22]line ОКРУГЛЕНИЕ: -0.12 [17:12:22]line ИТОГО: 800.00 [17:12:22]line Внесено: 800.00 [17:12:22]line СДАЧА: 0.00 [17:12:22]line НСП 1% : 7.08 [17:12:22]line НДС 12% : 84.97 [17:12:22]line Наличными: 800.00 [17:12:22]line Безнал.: 0.00 [17:12:22]line Место: АЗС № 86 "Партнер Нефть" [17:12:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:12:22]line СНО: Общий режим [17:12:22]line Чек 278 23.10.2024 17:12 [17:12:22]line Смена: 462 ФФД: 1.0 [17:12:22]line ЗНМ: 0300000155 [17:12:22]line РНМ: 0000000000100030 [17:12:22]line Версия ККМ: 001 [17:12:22]line ФМ: 0000000000965340 [17:12:22]line ФД: 188820 [17:12:22]line ФПД: 205044402104912 [17:12:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171221&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188820&fm=205044402104912&tin=02508201610067®Number=0000000000100030&sum=80000 [17:12:22]written 0, free lines is 4095 [17:12:22]OFD Sender: Processing packet 188820 [packets to send 1062, broken 1061] [17:12:22]ProducePacketName [17:12:22]name=ofd_packets/00188820 [17:12:22]OFD Sender: To server: pG, [17:12:22]CommunicateWithHost lk.salyk.kg:30040 [17:12:22]ConnectInit lk.salyk.kg [17:12:22]Connected sock=10 [17:12:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB A6 07 01 5E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 75 2E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E1 02 00 35 04 06 00 BA 7C 9E C0 2A 50 24 D3 59 CB 18 6D B3 74 [17:12:22]Write to MH i2c: 01 00 00 E4 13 F7 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 07 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 5D 0C 67 [17:12:22]RasterBufferAndPrint [17:12:22]line [17:12:22]line [17:12:22]line [17:12:22]line [17:12:22]line [17:12:22]written 0, free lines is 3168 [17:12:22]MH_Cut [17:12:22]Write to MH i2c: D1 01 00 EB 13 01 D0 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: D1 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: D1 01 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: D1 01 00 EB 13 00 CF [17:12:22]Write to MH i2c: 01 00 00 EC 13 FF [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 BB 47 00 1A 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 36 35 33 34 30 10 04 04 00 94 E1 02 00 F4 03 04 00 5F D8 18 67 B6 04 01 00 00 C4 CE 66 5B B8 38 01 3D [17:12:22]CommunicateWithHost err = 0 [17:12:22]CheckOFDResponse [17:12:22]1017 (14) - 77093643461234 [17:12:22]1041 (16) - 0000000000965340 [17:12:22]1040 (4) - 188820 [17:12:22]1012 (4) - 23.10.2024 11:05 [17:12:22]1206 (1) - 0 [17:12:22]OFD Sender: Remove packet 188820 [17:12:22]ProducePacketName [17:12:22]name=ofd_packets/00188820 [17:12:22]NVStorageDeleteData [17:12:23]OFD Sender: No OFD packet to send [17:12:23]*** Cut start [17:12:23]*** Partial cut [17:12:23]*** CUTSNS_PIN = 1 [17:12:23]*** CUTSNS_PIN = 0 [17:12:24]*** Brake cut motor [17:12:24]Read from MH i2c: 01 [17:12:24]MH_I2C_Read... [17:12:24]*** Stop cut motor [17:12:24]*** Cut end [17:12:24]Read from MH i2c: 01 07 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: 01 07 00 EC 13 00 00 00 00 00 FF 0F 14 [17:12:24]process_action close_receipt done [17:12:24]requested_data is exist [17:12:24]produce_requested_data [17:12:24]requested_item fm.sn is exist - process it [17:12:24]wFMCommunicate request_size=4 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 11 00 00 [17:12:24]Write to MH i2c: E2 08 00 ED 13 80 11 00 00 00 00 00 00 7A [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 17 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 17 00 ED 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [17:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:12:24]wFMCommunicate OK [17:12:24]requested_item fd.num is exist - process it [17:12:24]SAM_PROTO_GetFieldsCounters [17:12:24]wFMCommunicate request_size=4 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 13 00 00 [17:12:24]Write to MH i2c: E2 08 00 EE 13 80 13 00 00 00 00 00 00 7D [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 62 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 62 00 EE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [17:12:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:24]wFMCommunicate OK [17:12:24]SAM_PROTO_GetFieldsCounters done [17:12:24]requested_item shift.num is exist - process it [17:12:24]requested_item shift.opened is exist - process it [17:12:24]req_shift_opened [17:12:24]FM_GetShiftState [17:12:24]SAM_PROTO_GetShiftState [17:12:24]wFMCommunicate request_size=4 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 13 01 00 [17:12:24]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 0E 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 67 [17:12:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:12:24]wFMCommunicate OK [17:12:24]SAM_PROTO_GetShiftState done [17:12:24]FM_GetShiftState done [17:12:24]req_shift_opened done [17:12:24]requested_item shift.open_date is exist - process it [17:12:24]req_shift_open_date [17:12:24]req_shift_open_date done [17:12:24]produce_requested_data done [17:12:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188820,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:12:24]process_action_free close_receipt [17:12:24]json_value_free [17:12:24]json_value_free done [17:12:24]process_json_proto returns [17:12:24]Send response to host [17:12:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188820,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:12:24]free response buf [17:12:24]execute_script done [17:12:24]execute_script returns [17:12:24]free content buf [17:12:24]Sock 9.Close socket [17:12:24]Sock 9.Thread stoped [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]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:14]OFD Sender: No OFD packet to send [17:15:16]accept exits with 7 [17:15:16]New connection [17:15:16]New thread 3067350372 created [17:15:16]Thread 3067207012 joined [17:15:16]Waiting for new connection... [17:15:16] Sock 7.Parse request [17:15:16]Sock 7.Check first char [17:15:16]Sock 7.First char is OK [17:15:16]request: POST /json_proto HTTP/1.0 [17:15:16]Method: POST [17:15:16]URL: /json_proto [17:15:16]Method is POST - this is cgi request [17:15:16]url: /json_proto [17:15:16]query_string will be loaded in cgi processing [17:15:16]execute_cgi json_proto POST (null) [17:15:16]execute_cgi path=json_proto method=POST [17:15:16]POST find Content-Length [17:15:16]Host: 172.17.42.131:8080 [17:15:16]Content-Length: 688 [17:15:16]Content-Type: application/json [17:15:16] [17:15:16]POST finish read [17:15:16]Found Content-Length = 688 [17:15:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:16]execute_script... [17:15:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:16]POST & json_proto [17:15:16]process_json_proto [17:15:16]json parsed OK: [17:15:16]protocol is kg_v1.0 [17:15:16]action value=close_receipt [17:15:16]process_action close_receipt [17:15:16]cmd_close_receipt [17:15:16]MH_GetDate [17:15:16]Write to MH i2c: F0 00 00 F0 13 F2 [17:15:16]Write i2c OK [17:15:16]MH_I2C_Read... [17:15:16]Read from MH i2c: F0 [17:15:16]MH_I2C_Read... [17:15:16]Read from MH i2c: F0 09 00 [17:15:16]MH_I2C_Read... [17:15:16]Read from MH i2c: F0 09 00 F0 13 00 25 2F 19 67 A0 18 CA 66 B7 [17:15:16]GetLastDocTimeStamp 1729703541 [17:15:16]current date 1729703717 [17:15:16]FM_GetShiftState [17:15:16]SAM_PROTO_GetShiftState [17:15:16]wFMCommunicate request_size=4 [17:15:16]MH_SAM_APDU [17:15:16]CAPDU: 80 13 01 00 [17:15:16]Write to MH i2c: E2 08 00 F1 13 80 13 01 00 00 00 00 00 81 [17:15:16]Write i2c OK [17:15:16]MH_I2C_Read... [17:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:16]Read from MH i2c: E2 [17:15:16]MH_I2C_Read... [17:15:16]Read from MH i2c: E2 0E 00 [17:15:16]MH_I2C_Read... [17:15:16]Read from MH i2c: E2 0E 00 F1 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 69 [17:15:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:15:16]wFMCommunicate OK [17:15:16]SAM_PROTO_GetShiftState done [17:15:16]FM_GetShiftState done [17:15:16]opened in 1729642525 [17:15:16]opened+sec_in_day 1729728925 [17:15:16]quantity*price = 100051 [17:15:16]sum+1 = 100052 [17:15:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 279 23.10.2024 17:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188821 ФПД: 239504371209602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171517&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188821&fm=239504371209602&tin=02508201610067®Number=0000000000100030&sum=100000 [17:15:17]StoreToDocumentArchive [17:15:17]shift 462 fd 188821 [17:15:17]save to /storage/0462/doc_00188821 [17:15:17]save last doc name /storage/0462/doc_00188821 to /storage/kkm_last_doc_name [17:15:17]save OK [17:15:17]Clear old archive folders... [17:15:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:15:17]tlvbuf is 01175240 [17:15:17]SAM_PROTO_ClearQueue [17:15:17]wFMCommunicate request_size=4 [17:15:17]MH_SAM_APDU [17:15:17]CAPDU: 80 09 00 00 [17:15:17]Write to MH i2c: E2 08 00 FE 13 80 09 00 00 00 00 00 00 83 [17:15:17]Write i2c OK [17:15:17]MH_I2C_Read... [17:15:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:17]Read from MH i2c: E2 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 03 00 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [17:15:17]RAPDU: 90 00 [17:15:17]wFMCommunicate OK [17:15:17]SAM_PROTO_ClearQueue done [17:15:17]KKMCreateOFDPacket [17:15:17]OFDProtocolAddRootSTLVToBuf [17:15:17]FM_MakeSignedData [17:15:17]FM_MakeSignedData [17:15:17]SAM_PROTO_SignData [17:15:17]wFMCommunicate request_size=4 [17:15:17]MH_SAM_APDU [17:15:17]CAPDU: 80 0D 01 02 [17:15:17]Write to MH i2c: E2 08 00 FF 13 80 0D 01 02 00 00 00 00 8B [17:15:17]Write i2c OK [17:15:17]MH_I2C_Read... [17:15:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:17]Read from MH i2c: E2 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 03 00 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [17:15:17]RAPDU: 90 00 [17:15:17]wFMCommunicate OK [17:15:17]wFMCommunicate request_size=255 [17:15:17]MH_SAM_APDU [17:15:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 25 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E1 02 [17:15:17]Write to MH i2c: E2 02 01 00 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 25 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E1 02 00 00 1C [17:15:17]Write i2c OK [17:15:17]MH_I2C_Read... [17:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:18]Read from MH i2c: E2 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 03 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [17:15:18]RAPDU: 90 00 [17:15:18]wFMCommunicate OK [17:15:18]wFMCommunicate request_size=16 [17:15:18]MH_SAM_APDU [17:15:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D9 D3 F4 F7 D5 82 [17:15:18]Write to MH i2c: E2 13 00 01 14 80 0D 02 02 0B 00 00 35 04 06 00 D9 D3 F4 F7 D5 82 00 00 D2 [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:18]Read from MH i2c: E2 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 03 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [17:15:18]RAPDU: 90 00 [17:15:18]wFMCommunicate OK [17:15:18]wFMCommunicate request_size=4 [17:15:18]MH_SAM_APDU [17:15:18]CAPDU: 80 0D 03 02 [17:15:18]Write to MH i2c: E2 08 00 02 14 80 0D 03 02 00 00 00 00 91 [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:18]Read from MH i2c: E2 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 0B 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 0B 00 02 14 00 BF 5E 4B 68 77 6E FA C3 90 00 04 [17:15:18]RAPDU: BF 5E 4B 68 77 6E FA C3 90 00 [17:15:18]wFMCommunicate OK [17:15:18]SAM_PROTO_SignData done [17:15:18]FM_MakeSignedData done [17:15:18]CreateOFDProtocolMessage [17:15:18]wFMCommunicate request_size=4 [17:15:18]MH_SAM_APDU [17:15:18]CAPDU: 80 11 00 00 [17:15:18]Write to MH i2c: E2 08 00 03 14 80 11 00 00 00 00 00 00 91 [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:18]Read from MH i2c: E2 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 17 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 17 00 03 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [17:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:18]wFMCommunicate OK [17:15:18]CreateOFDProtocolMessage done [17:15:18]OFDSenderStorePacket 188821 [17:15:18]StoreOFDPacket docnum=188821 [17:15:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 41 0F 0D 01 AF F4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 25 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E1 02 00 35 04 06 00 D9 D3 F4 F7 D5 82 BF 5E 4B 68 77 6E FA C3 [17:15:18]CheckFolder [17:15:18]dirname=/storage/ofd_packets [17:15:18]CheckFolder done [17:15:18]ProducePacketName [17:15:18]name=ofd_packets/00188821 [17:15:18]NVStorageSaveData ofd_packets/00188821 [17:15:18]File name is /storage/ofd_packets/00188821 [17:15:18]Write 307 bytes [17:15:18]NVStorageSaveData done [17:15:18]OFDSenderStorePacket done [17:15:18]KKMCreateOFDPacket done [17:15:18]NVStorageSaveData kkm_last_timestamp [17:15:18]File name is /storage/kkm_last_timestamp [17:15:18]Write 4 bytes [17:15:18]NVStorageSaveData done [17:15:18]ExternCall_PrintAddStr [17:15:18]wPrintStart [17:15:18]Write to MH i2c: 01 00 00 04 14 18 [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 07 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 07 00 04 14 00 00 00 00 00 FF 0F 2D [17:15:18]RasterBufferAndPrint [17:15:18]line Счет N : (1)210883 [17:15:18]line ИНН: 02508201610067 [17:15:18]line Контрольно-Кассовый Чек [17:15:18]line ПРОДАЖА [17:15:18]line ТРК (МРК, ГНК) : 11 [17:15:18]line Товар: 2710194210 [17:15:18]line D-ENERGY ДТ-К-5 [17:15:18]line 12.960 * 77.20 [17:15:18]line = 1000.51 [17:15:18]line НДС 12% НСП 1% [17:15:18]line > о реализуемом товаре [17:15:18]line ОКРУГЛЕНИЕ: -0.51 [17:15:18]line ИТОГО: 1000.00 [17:15:18]line Внесено: 1000.00 [17:15:18]line СДАЧА: 0.00 [17:15:18]line НСП 1% : 8.85 [17:15:18]line НДС 12% : 106.25 [17:15:18]line Наличными: 1000.00 [17:15:18]line Безнал.: 0.00 [17:15:18]line Место: АЗС № 86 "Партнер Нефть" [17:15:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:15:18]line СНО: Общий режим [17:15:18]line Чек 279 23.10.2024 17:15 [17:15:18]line Смена: 462 ФФД: 1.0 [17:15:18]line ЗНМ: 0300000155 [17:15:18]line РНМ: 0000000000100030 [17:15:18]line Версия ККМ: 001 [17:15:18]line ФМ: 0000000000965340 [17:15:18]line ФД: 188821 [17:15:18]line ФПД: 239504371209602 [17:15:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171517&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188821&fm=239504371209602&tin=02508201610067®Number=0000000000100030&sum=100000 [17:15:18]written 0, free lines is 4095 [17:15:18]OFD Sender: Processing packet 188821 [packets to send 1062, broken 1061] [17:15:18]ProducePacketName [17:15:18]name=ofd_packets/00188821 [17:15:18]OFD Sender: To server: pG, [17:15:18]CommunicateWithHost lk.salyk.kg:30040 [17:15:18]ConnectInit lk.salyk.kg [17:15:18]Connected sock=10 [17:15:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 41 0F 0D 01 AF F4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 25 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E1 02 00 35 04 06 00 D9 D3 F4 F7 D5 82 BF 5E 4B 68 77 6E FA C3 [17:15:18]Write to MH i2c: 01 00 00 2F 14 43 [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 07 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 54 0C AA [17:15:18]RasterBufferAndPrint [17:15:18]line [17:15:18]line [17:15:18]line [17:15:18]line [17:15:18]line [17:15:18]written 0, free lines is 3160 [17:15:18]MH_Cut [17:15:18]Write to MH i2c: D1 01 00 36 14 01 1C [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: D1 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: D1 01 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: D1 01 00 36 14 00 1B [17:15:18]Write to MH i2c: 01 00 00 37 14 4B [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 D8 47 00 75 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E1 02 00 F4 03 04 00 0F D9 18 67 B6 04 01 00 00 31 03 6F 6C AD 97 61 36 [17:15:18]CommunicateWithHost err = 0 [17:15:18]CheckOFDResponse [17:15:18]1017 (14) - 77093643461234 [17:15:18]1041 (16) - 0000000000965340 [17:15:18]1040 (4) - 188821 [17:15:18]1012 (4) - 23.10.2024 11:07 [17:15:18]1206 (1) - 0 [17:15:18]OFD Sender: Remove packet 188821 [17:15:18]ProducePacketName [17:15:18]name=ofd_packets/00188821 [17:15:18]NVStorageDeleteData [17:15:19]OFD Sender: No OFD packet to send [17:15:20]*** Cut start [17:15:20]*** Partial cut [17:15:20]*** CUTSNS_PIN = 1 [17:15:20]*** CUTSNS_PIN = 0 [17:15:20]*** Brake cut motor [17:15:20]Read from MH i2c: 01 [17:15:20]MH_I2C_Read... [17:15:20]*** Stop cut motor [17:15:20]*** Cut end [17:15:20]Read from MH i2c: 01 07 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: 01 07 00 37 14 00 00 00 00 00 FF 0F 60 [17:15:20]process_action close_receipt done [17:15:20]requested_data is exist [17:15:20]produce_requested_data [17:15:20]requested_item fm.sn is exist - process it [17:15:20]wFMCommunicate request_size=4 [17:15:20]MH_SAM_APDU [17:15:20]CAPDU: 80 11 00 00 [17:15:20]Write to MH i2c: E2 08 00 38 14 80 11 00 00 00 00 00 00 C6 [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:20]Read from MH i2c: E2 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: E2 17 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: E2 17 00 38 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [17:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:20]wFMCommunicate OK [17:15:20]requested_item fd.num is exist - process it [17:15:20]SAM_PROTO_GetFieldsCounters [17:15:20]wFMCommunicate request_size=4 [17:15:20]MH_SAM_APDU [17:15:20]CAPDU: 80 13 00 00 [17:15:20]Write to MH i2c: E2 08 00 39 14 80 13 00 00 00 00 00 00 C9 [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:20]Read from MH i2c: E2 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: E2 62 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: E2 62 00 39 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [17:15:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:20]wFMCommunicate OK [17:15:20]SAM_PROTO_GetFieldsCounters done [17:15:20]requested_item shift.num is exist - process it [17:15:20]requested_item shift.opened is exist - process it [17:15:20]req_shift_opened [17:15:20]FM_GetShiftState [17:15:20]SAM_PROTO_GetShiftState [17:15:20]wFMCommunicate request_size=4 [17:15:20]MH_SAM_APDU [17:15:20]CAPDU: 80 13 01 00 [17:15:20]Write to MH i2c: E2 08 00 3A 14 80 13 01 00 00 00 00 00 CB [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:20]Read from MH i2c: E2 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: E2 0E 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: E2 0E 00 3A 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B3 [17:15:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:15:20]wFMCommunicate OK [17:15:20]SAM_PROTO_GetShiftState done [17:15:20]FM_GetShiftState done [17:15:20]req_shift_opened done [17:15:20]requested_item shift.open_date is exist - process it [17:15:20]req_shift_open_date [17:15:20]req_shift_open_date done [17:15:20]produce_requested_data done [17:15:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188821,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:15:20]process_action_free close_receipt [17:15:20]json_value_free [17:15:20]json_value_free done [17:15:20]process_json_proto returns [17:15:20]Send response to host [17:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188821,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:15:20]free response buf [17:15:20]execute_script done [17:15:20]execute_script returns [17:15:20]free content buf [17:15:20]Sock 7.Close socket [17:15:20]Sock 7.Thread stoped [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]accept exits with 9 [17:16:49]New connection [17:16:49]New thread 3067207012 created [17:16:49]Thread 3067350372 joined [17:16:49]Waiting for new connection... [17:16:49] Sock 9.Parse request [17:16:49]Sock 9.Check first char [17:16:49]Sock 9.First char is OK [17:16:49]request: POST /json_proto HTTP/1.0 [17:16:49]Method: POST [17:16:49]URL: /json_proto [17:16:49]Method is POST - this is cgi request [17:16:49]url: /json_proto [17:16:49]query_string will be loaded in cgi processing [17:16:49]execute_cgi json_proto POST (null) [17:16:49]execute_cgi path=json_proto method=POST [17:16:49]POST find Content-Length [17:16:49]Host: 172.17.42.131:8080 [17:16:49]Content-Length: 983 [17:16:49]Content-Type: application/json [17:16:49] [17:16:49]POST finish read [17:16:49]Found Content-Length = 983 [17:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:49]execute_script... [17:16:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:49]POST & json_proto [17:16:49]process_json_proto [17:16:49]json parsed OK: [17:16:49]protocol is kg_v1.0 [17:16:49]action value=close_receipt [17:16:49]process_action close_receipt [17:16:49]cmd_close_receipt [17:16:49]MH_GetDate [17:16:49]Write to MH i2c: F0 00 00 3B 14 3E [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: F0 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: F0 09 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: F0 09 00 3B 14 00 82 2F 19 67 A0 18 CA 66 60 [17:16:49]GetLastDocTimeStamp 1729703717 [17:16:49]current date 1729703810 [17:16:49]FM_GetShiftState [17:16:49]SAM_PROTO_GetShiftState [17:16:49]wFMCommunicate request_size=4 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 13 01 00 [17:16:49]Write to MH i2c: E2 08 00 3C 14 80 13 01 00 00 00 00 00 CD [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 0E 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 0E 00 3C 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B5 [17:16:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:16:49]wFMCommunicate OK [17:16:49]SAM_PROTO_GetShiftState done [17:16:49]FM_GetShiftState done [17:16:49]opened in 1729642525 [17:16:49]opened+sec_in_day 1729728925 [17:16:49]quantity*price = 200006 [17:16:49]sum+1 = 200008 [17:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 280 23.10.2024 17:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 188822 ФПД: 51550045704381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171650&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188822&fm=51550045704381&tin=02508201610067®Number=0000000000100030&sum=200000 [17:16:50]StoreToDocumentArchive [17:16:50]shift 462 fd 188822 [17:16:50]save to /storage/0462/doc_00188822 [17:16:50]save last doc name /storage/0462/doc_00188822 to /storage/kkm_last_doc_name [17:16:50]save OK [17:16:50]Clear old archive folders... [17:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:50]tlvbuf is 01126370 [17:16:50]SAM_PROTO_ClearQueue [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 09 00 00 [17:16:50]Write to MH i2c: E2 08 00 49 14 80 09 00 00 00 00 00 00 CF [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]SAM_PROTO_ClearQueue done [17:16:50]KKMCreateOFDPacket [17:16:50]OFDProtocolAddRootSTLVToBuf [17:16:50]FM_MakeSignedData [17:16:50]FM_MakeSignedData [17:16:50]SAM_PROTO_SignData [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 01 02 [17:16:50]Write to MH i2c: E2 08 00 4A 14 80 0D 01 02 00 00 00 00 D7 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]wFMCommunicate request_size=255 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 82 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E1 02 00 35 04 06 00 2E [17:16:50]Write to MH i2c: E2 02 01 4B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 82 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E1 02 00 35 04 06 00 2E 00 00 91 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 4B 14 00 90 00 D3 [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]wFMCommunicate request_size=10 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 02 02 05 E2 6E 29 90 BD [17:16:50]Write to MH i2c: E2 0D 00 4C 14 80 0D 02 02 05 00 E2 6E 29 90 BD 00 00 AA [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 4C 14 00 90 00 D4 [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 03 02 [17:16:50]Write to MH i2c: E2 08 00 4D 14 80 0D 03 02 00 00 00 00 DC [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 0B 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 0B 00 4D 14 00 E4 7F 6F 1B D9 EF 30 65 90 00 27 [17:16:50]RAPDU: E4 7F 6F 1B D9 EF 30 65 90 00 [17:16:50]wFMCommunicate OK [17:16:50]SAM_PROTO_SignData done [17:16:50]FM_MakeSignedData done [17:16:50]CreateOFDProtocolMessage [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 11 00 00 [17:16:50]Write to MH i2c: E2 08 00 4E 14 80 11 00 00 00 00 00 00 DC [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 4E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [17:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:16:51]wFMCommunicate OK [17:16:51]CreateOFDProtocolMessage done [17:16:51]OFDSenderStorePacket 188822 [17:16:51]StoreOFDPacket docnum=188822 [17:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 65 07 01 72 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 82 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E1 02 00 35 04 06 00 2E E2 6E 29 90 BD E4 7F 6F 1B D9 EF 30 65 [17:16:51]CheckFolder [17:16:51]dirname=/storage/ofd_packets [17:16:51]CheckFolder done [17:16:51]ProducePacketName [17:16:51]name=ofd_packets/00188822 [17:16:51]NVStorageSaveData ofd_packets/00188822 [17:16:51]File name is /storage/ofd_packets/00188822 [17:16:51]Write 301 bytes [17:16:51]NVStorageSaveData done [17:16:51]OFDSenderStorePacket done [17:16:51]KKMCreateOFDPacket done [17:16:51]NVStorageSaveData kkm_last_timestamp [17:16:51]File name is /storage/kkm_last_timestamp [17:16:51]Write 4 bytes [17:16:51]NVStorageSaveData done [17:16:51]ExternCall_PrintAddStr [17:16:51]wPrintStart [17:16:51]Write to MH i2c: 01 00 00 4F 14 63 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 4F 14 00 00 00 00 00 FF 0F 78 [17:16:51]RasterBufferAndPrint [17:16:51]line Счет N : (1)210884 [17:16:51]line ИНН: 02508201610067 [17:16:51]line Контрольно-Кассовый Чек [17:16:51]line ПРОДАЖА [17:16:51]line ТРК (МРК, ГНК) : 32 [17:16:51]line Товар: 2710124130 [17:16:51]line Аи-92-К-3 [17:16:51]line 30.350 * 65.90 [17:16:51]line = 2000.07 [17:16:51]line НДС 12% НСП 1% [17:16:51]line > о реализуемом товаре [17:16:51]line ОКРУГЛЕНИЕ: -0.07 [17:16:51]line ИТОГО: 2000.00 [17:16:51]line Внесено: 2000.00 [17:16:51]line СДАЧА: 0.00 [17:16:51]line НСП 1% : 17.70 [17:16:51]line НДС 12% : 212.40 [17:16:51]line Наличными: 2000.00 [17:16:51]line Безнал.: 0.00 [17:16:51]line Место: АЗС № 86 "Партнер Нефть" [17:16:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:16:51]line СНО: Общий режим [17:16:51]line Чек 280 23.10.2024 17:16 [17:16:51]line Смена: 462 ФФД: 1.0 [17:16:51]line ЗНМ: 0300000155 [17:16:51]line РНМ: 0000000000100030 [17:16:51]line Версия ККМ: 001 [17:16:51]line [17:16:51]line Дисконтная программа [17:16:51]line АИ-92 [17:16:51]line номер 86 [17:16:51]line сэкономлено 30.35 сом [17:16:51]line ФМ: 0000000000965340 [17:16:51]line ФД: 188822 [17:16:51]line ФПД: 51550045704381 [17:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171650&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188822&fm=51550045704381&tin=02508201610067®Number=0000000000100030&sum=200000 [17:16:51]written 0, free lines is 4095 [17:16:51]OFD Sender: Processing packet 188822 [packets to send 1062, broken 1061] [17:16:51]ProducePacketName [17:16:51]name=ofd_packets/00188822 [17:16:51]OFD Sender: To server: pG, [17:16:51]CommunicateWithHost lk.salyk.kg:30040 [17:16:51]ConnectInit lk.salyk.kg [17:16:51]Connected sock=7 [17:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 65 07 01 72 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 82 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E1 02 00 35 04 06 00 2E E2 6E 29 90 BD E4 7F 6F 1B D9 EF 30 65 [17:16:51]Write to MH i2c: 01 00 00 7F 14 93 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 E8 0B 8D [17:16:51]RasterBufferAndPrint [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]written 0, free lines is 3050 [17:16:51]MH_Cut [17:16:51]Write to MH i2c: D1 01 00 86 14 01 6C [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: D1 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: D1 01 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: D1 01 00 86 14 00 6B [17:16:51]Write to MH i2c: 01 00 00 87 14 9B [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 AF 47 00 D1 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 36 35 33 34 30 10 04 04 00 96 E1 02 00 F4 03 04 00 6C D9 18 67 B6 04 01 00 00 94 45 45 26 F1 DE 6E 15 [17:16:51]CommunicateWithHost err = 0 [17:16:51]CheckOFDResponse [17:16:51]1017 (14) - 77093643461234 [17:16:51]1041 (16) - 0000000000965340 [17:16:51]1040 (4) - 188822 [17:16:51]1012 (4) - 23.10.2024 11:09 [17:16:51]1206 (1) - 0 [17:16:51]OFD Sender: Remove packet 188822 [17:16:51]ProducePacketName [17:16:51]name=ofd_packets/00188822 [17:16:51]NVStorageDeleteData [17:16:52]OFD Sender: No OFD packet to send [17:16:52]*** Cut start [17:16:52]*** Partial cut [17:16:52]*** CUTSNS_PIN = 1 [17:16:53]*** CUTSNS_PIN = 0 [17:16:53]*** Brake cut motor [17:16:53]Read from MH i2c: 01 [17:16:53]MH_I2C_Read... [17:16:53]*** Stop cut motor [17:16:53]*** Cut end [17:16:53]Read from MH i2c: 01 07 00 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: 01 07 00 87 14 00 00 00 00 00 FF 0F B0 [17:16:53]process_action close_receipt done [17:16:53]requested_data is exist [17:16:53]produce_requested_data [17:16:53]requested_item fm.sn is exist - process it [17:16:53]wFMCommunicate request_size=4 [17:16:53]MH_SAM_APDU [17:16:53]CAPDU: 80 11 00 00 [17:16:53]Write to MH i2c: E2 08 00 88 14 80 11 00 00 00 00 00 00 16 [17:16:53]Write i2c OK [17:16:53]MH_I2C_Read... [17:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:53]Read from MH i2c: E2 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 17 00 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 17 00 88 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [17:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:16:53]wFMCommunicate OK [17:16:53]requested_item fd.num is exist - process it [17:16:53]SAM_PROTO_GetFieldsCounters [17:16:53]wFMCommunicate request_size=4 [17:16:53]MH_SAM_APDU [17:16:53]CAPDU: 80 13 00 00 [17:16:53]Write to MH i2c: E2 08 00 89 14 80 13 00 00 00 00 00 00 19 [17:16:53]Write i2c OK [17:16:53]MH_I2C_Read... [17:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:53]Read from MH i2c: E2 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 62 00 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 62 00 89 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [17:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:53]wFMCommunicate OK [17:16:53]SAM_PROTO_GetFieldsCounters done [17:16:53]requested_item shift.num is exist - process it [17:16:53]requested_item shift.opened is exist - process it [17:16:53]req_shift_opened [17:16:53]FM_GetShiftState [17:16:53]SAM_PROTO_GetShiftState [17:16:53]wFMCommunicate request_size=4 [17:16:53]MH_SAM_APDU [17:16:53]CAPDU: 80 13 01 00 [17:16:53]Write to MH i2c: E2 08 00 8A 14 80 13 01 00 00 00 00 00 1B [17:16:53]Write i2c OK [17:16:53]MH_I2C_Read... [17:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:53]Read from MH i2c: E2 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 0E 00 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 0E 00 8A 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 03 [17:16:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:16:53]wFMCommunicate OK [17:16:53]SAM_PROTO_GetShiftState done [17:16:53]FM_GetShiftState done [17:16:53]req_shift_opened done [17:16:53]requested_item shift.open_date is exist - process it [17:16:53]req_shift_open_date [17:16:53]req_shift_open_date done [17:16:53]produce_requested_data done [17:16:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188822,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:16:53]process_action_free close_receipt [17:16:53]json_value_free [17:16:53]json_value_free done [17:16:53]process_json_proto returns [17:16:53]Send response to host [17:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188822,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:16:53]free response buf [17:16:53]execute_script done [17:16:53]execute_script returns [17:16:53]free content buf [17:16:53]Sock 9.Close socket [17:16:53]Sock 9.Thread stoped [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:22]accept exits with 10 [17:17:22]New connection [17:17:22]New thread 3067350372 created [17:17:22]Thread 3067207012 joined [17:17:22]Waiting for new connection... [17:17:22] Sock 10.Parse request [17:17:22]Sock 10.Check first char [17:17:22]Sock 10.First char is OK [17:17:22]request: POST /json_proto HTTP/1.0 [17:17:22]Method: POST [17:17:22]URL: /json_proto [17:17:22]Method is POST - this is cgi request [17:17:22]url: /json_proto [17:17:22]query_string will be loaded in cgi processing [17:17:22]execute_cgi json_proto POST (null) [17:17:22]execute_cgi path=json_proto method=POST [17:17:22]POST find Content-Length [17:17:22]Host: 172.17.42.131:8080 [17:17:22]Content-Length: 979 [17:17:22]Content-Type: application/json [17:17:22] [17:17:22]POST finish read [17:17:22]Found Content-Length = 979 [17:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 126.330, "sum" : 9500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 126.33 \u0441\u043E\u043C", "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:22]execute_script... [17:17:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 126.330, "sum" : 9500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 126.33 \u0441\u043E\u043C", "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:22]POST & json_proto [17:17:22]process_json_proto [17:17:22]json parsed OK: [17:17:22]protocol is kg_v1.0 [17:17:22]action value=close_receipt [17:17:22]process_action close_receipt [17:17:22]cmd_close_receipt [17:17:22]MH_GetDate [17:17:22]Write to MH i2c: F0 00 00 8B 14 8E [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: F0 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: F0 09 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: F0 09 00 8B 14 00 A4 2F 19 67 A0 18 CA 66 D2 [17:17:22]GetLastDocTimeStamp 1729703810 [17:17:22]current date 1729703844 [17:17:22]FM_GetShiftState [17:17:22]SAM_PROTO_GetShiftState [17:17:22]wFMCommunicate request_size=4 [17:17:22]MH_SAM_APDU [17:17:22]CAPDU: 80 13 01 00 [17:17:22]Write to MH i2c: E2 08 00 8C 14 80 13 01 00 00 00 00 00 1D [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:22]Read from MH i2c: E2 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 0E 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 0E 00 8C 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 05 [17:17:22]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:17:22]wFMCommunicate OK [17:17:22]SAM_PROTO_GetShiftState done [17:17:22]FM_GetShiftState done [17:17:22]opened in 1729642525 [17:17:22]opened+sec_in_day 1729728925 [17:17:22]quantity*price = 950001 [17:17:22]sum+1 = 950003 [17:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 9500.00 Внесено: 9500.00 СДАЧА: 0.00 НСП 1% : 84.07 НДС 12% : 1008.85 Наличными: 9500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 281 23.10.2024 17:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 126.33 сом ФМ: 0000000000965340 ФД: 188823 ФПД: 55813614451910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171724&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188823&fm=55813614451910&tin=02508201610067®Number=0000000000100030&sum=950000 [17:17:24]StoreToDocumentArchive [17:17:24]shift 462 fd 188823 [17:17:24]save to /storage/0462/doc_00188823 [17:17:24]save last doc name /storage/0462/doc_00188823 to /storage/kkm_last_doc_name [17:17:24]save OK [17:17:24]Clear old archive folders... [17:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:17:24]tlvbuf is B6F09390 [17:17:24]SAM_PROTO_ClearQueue [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 09 00 00 [17:17:24]Write to MH i2c: E2 08 00 99 14 80 09 00 00 00 00 00 00 1F [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 99 14 00 90 00 21 [17:17:24]RAPDU: 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_ClearQueue done [17:17:24]KKMCreateOFDPacket [17:17:24]OFDProtocolAddRootSTLVToBuf [17:17:24]FM_MakeSignedData [17:17:24]FM_MakeSignedData [17:17:24]SAM_PROTO_SignData [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 0D 01 02 [17:17:24]Write to MH i2c: E2 08 00 9A 14 80 0D 01 02 00 00 00 00 27 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 9A 14 00 90 00 22 [17:17:24]RAPDU: 90 00 [17:17:24]wFMCommunicate OK [17:17:24]wFMCommunicate request_size=255 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 A4 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E1 02 00 35 04 06 00 32 C3 1E A9 [17:17:24]Write to MH i2c: E2 02 01 9B 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 A4 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E1 02 00 35 04 06 00 32 C3 1E A9 00 00 CE [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 9B 14 00 90 00 23 [17:17:24]RAPDU: 90 00 [17:17:24]wFMCommunicate OK [17:17:24]wFMCommunicate request_size=7 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 0D 02 02 02 BC C6 [17:17:24]Write to MH i2c: E2 0A 00 9C 14 80 0D 02 02 02 00 BC C6 00 00 B0 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 9C 14 00 90 00 24 [17:17:24]RAPDU: 90 00 [17:17:24]wFMCommunicate OK [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 0D 03 02 [17:17:24]Write to MH i2c: E2 08 00 9D 14 80 0D 03 02 00 00 00 00 2C [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0B 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0B 00 9D 14 00 A4 74 71 37 BA D2 1C FE 90 00 93 [17:17:24]RAPDU: A4 74 71 37 BA D2 1C FE 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_SignData done [17:17:24]FM_MakeSignedData done [17:17:24]CreateOFDProtocolMessage [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 11 00 00 [17:17:24]Write to MH i2c: E2 08 00 9E 14 80 11 00 00 00 00 00 00 2C [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 17 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 17 00 9E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [17:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:17:24]wFMCommunicate OK [17:17:24]CreateOFDProtocolMessage done [17:17:24]OFDSenderStorePacket 188823 [17:17:24]StoreOFDPacket docnum=188823 [17:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 60 D5 04 01 96 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 A4 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E1 02 00 35 04 06 00 32 C3 1E A9 BC C6 A4 74 71 37 BA D2 1C FE [17:17:24]CheckFolder [17:17:24]dirname=/storage/ofd_packets [17:17:24]CheckFolder done [17:17:24]ProducePacketName [17:17:24]name=ofd_packets/00188823 [17:17:24]NVStorageSaveData ofd_packets/00188823 [17:17:24]File name is /storage/ofd_packets/00188823 [17:17:24]Write 298 bytes [17:17:24]NVStorageSaveData done [17:17:24]OFDSenderStorePacket done [17:17:24]KKMCreateOFDPacket done [17:17:24]NVStorageSaveData kkm_last_timestamp [17:17:24]File name is /storage/kkm_last_timestamp [17:17:24]Write 4 bytes [17:17:24]NVStorageSaveData done [17:17:24]ExternCall_PrintAddStr [17:17:24]wPrintStart [17:17:24]Write to MH i2c: 01 00 00 9F 14 B3 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 07 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 FF 0F C8 [17:17:24]RasterBufferAndPrint [17:17:24]line Счет N : (1)210881 [17:17:24]line ИНН: 02508201610067 [17:17:24]line Контрольно-Кассовый Чек [17:17:24]line ПРОДАЖА [17:17:24]line ТРК (МРК, ГНК) : 51 [17:17:24]line Товар: 2710194210 [17:17:24]line ДТ-К-5 [17:17:24]line 126.330 * 75.20 [17:17:24]line = 9500.02 [17:17:24]line НДС 12% НСП 1% [17:17:24]line > о реализуемом товаре [17:17:24]line ОКРУГЛЕНИЕ: -0.02 [17:17:24]line ИТОГО: 9500.00 [17:17:24]line Внесено: 9500.00 [17:17:24]line СДАЧА: 0.00 [17:17:24]line НСП 1% : 84.07 [17:17:24]line НДС 12% : 1008.85 [17:17:24]line Наличными: 9500.00 [17:17:24]line Безнал.: 0.00 [17:17:24]line Место: АЗС № 86 "Партнер Нефть" [17:17:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:17:24]line СНО: Общий режим [17:17:24]line Чек 281 23.10.2024 17:17 [17:17:24]line Смена: 462 ФФД: 1.0 [17:17:24]line ЗНМ: 0300000155 [17:17:24]line РНМ: 0000000000100030 [17:17:24]line Версия ККМ: 001 [17:17:24]line [17:17:24]line Дисконтная программа [17:17:24]line ДТ [17:17:24]line номер 86 [17:17:24]line сэкономлено 126.33 сом [17:17:24]line ФМ: 0000000000965340 [17:17:24]line ФД: 188823 [17:17:24]line ФПД: 55813614451910 [17:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171724&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188823&fm=55813614451910&tin=02508201610067®Number=0000000000100030&sum=950000 [17:17:24]OFD Sender: Processing packet 188823 [packets to send 1062, broken 1061] [17:17:24]ProducePacketName [17:17:24]name=ofd_packets/00188823 [17:17:24]OFD Sender: To server: pG, [17:17:24]CommunicateWithHost lk.salyk.kg:30040 [17:17:24]ConnectInit lk.salyk.kg [17:17:24]written 0, free lines is 4095 [17:17:25]Connected sock=7 [17:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 60 D5 04 01 96 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 A4 2F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E1 02 00 35 04 06 00 32 C3 1E A9 BC C6 A4 74 71 37 BA D2 1C FE [17:17:25]Write to MH i2c: 01 00 00 CF 14 E3 [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 07 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 07 00 CF 14 00 00 00 00 00 E3 0B D8 [17:17:25]RasterBufferAndPrint [17:17:25]line [17:17:25]line [17:17:25]line [17:17:25]line [17:17:25]line [17:17:25]written 0, free lines is 3046 [17:17:25]MH_Cut [17:17:25]Write to MH i2c: D1 01 00 D6 14 01 BC [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: D1 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: D1 01 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: D1 01 00 D6 14 00 BB [17:17:25]Write to MH i2c: 01 00 00 D7 14 EB [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B2 20 47 00 F6 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 36 35 33 34 30 10 04 04 00 97 E1 02 00 F4 03 04 00 8E D9 18 67 B6 04 01 00 00 4F 2D A8 D9 BA 58 1C 60 [17:17:25]CommunicateWithHost err = 0 [17:17:25]CheckOFDResponse [17:17:25]1017 (14) - 77093643461234 [17:17:25]1041 (16) - 0000000000965340 [17:17:25]1040 (4) - 188823 [17:17:25]1012 (4) - 23.10.2024 11:10 [17:17:25]1206 (1) - 0 [17:17:25]OFD Sender: Remove packet 188823 [17:17:25]ProducePacketName [17:17:25]name=ofd_packets/00188823 [17:17:25]NVStorageDeleteData [17:17:26]OFD Sender: No OFD packet to send [17:17:26]*** Cut start [17:17:26]*** Partial cut [17:17:26]*** CUTSNS_PIN = 1 [17:17:26]*** CUTSNS_PIN = 0 [17:17:27]*** Brake cut motor [17:17:27]Read from MH i2c: 01 [17:17:27]MH_I2C_Read... [17:17:27]*** Stop cut motor [17:17:27]*** Cut end [17:17:27]Read from MH i2c: 01 07 00 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: 01 07 00 D7 14 00 00 00 00 00 FF 0F 00 [17:17:27]process_action close_receipt done [17:17:27]requested_data is exist [17:17:27]produce_requested_data [17:17:27]requested_item fm.sn is exist - process it [17:17:27]wFMCommunicate request_size=4 [17:17:27]MH_SAM_APDU [17:17:27]CAPDU: 80 11 00 00 [17:17:27]Write to MH i2c: E2 08 00 D8 14 80 11 00 00 00 00 00 00 66 [17:17:27]Write i2c OK [17:17:27]MH_I2C_Read... [17:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:27]Read from MH i2c: E2 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: E2 17 00 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: E2 17 00 D8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [17:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:17:27]wFMCommunicate OK [17:17:27]requested_item fd.num is exist - process it [17:17:27]SAM_PROTO_GetFieldsCounters [17:17:27]wFMCommunicate request_size=4 [17:17:27]MH_SAM_APDU [17:17:27]CAPDU: 80 13 00 00 [17:17:27]Write to MH i2c: E2 08 00 D9 14 80 13 00 00 00 00 00 00 69 [17:17:27]Write i2c OK [17:17:27]MH_I2C_Read... [17:17:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:27]Read from MH i2c: E2 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: E2 62 00 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: E2 62 00 D9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [17:17:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:27]wFMCommunicate OK [17:17:27]SAM_PROTO_GetFieldsCounters done [17:17:27]requested_item shift.num is exist - process it [17:17:27]requested_item shift.opened is exist - process it [17:17:27]req_shift_opened [17:17:27]FM_GetShiftState [17:17:27]SAM_PROTO_GetShiftState [17:17:27]wFMCommunicate request_size=4 [17:17:27]MH_SAM_APDU [17:17:27]CAPDU: 80 13 01 00 [17:17:27]Write to MH i2c: E2 08 00 DA 14 80 13 01 00 00 00 00 00 6B [17:17:27]Write i2c OK [17:17:27]MH_I2C_Read... [17:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:27]Read from MH i2c: E2 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: E2 0E 00 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: E2 0E 00 DA 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 53 [17:17:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:17:27]wFMCommunicate OK [17:17:27]SAM_PROTO_GetShiftState done [17:17:27]FM_GetShiftState done [17:17:27]req_shift_opened done [17:17:27]requested_item shift.open_date is exist - process it [17:17:27]req_shift_open_date [17:17:27]req_shift_open_date done [17:17:27]produce_requested_data done [17:17:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188823,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:17:27]process_action_free close_receipt [17:17:27]json_value_free [17:17:27]json_value_free done [17:17:27]process_json_proto returns [17:17:27]Send response to host [17:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188823,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:17:27]free response buf [17:17:27]execute_script done [17:17:27]execute_script returns [17:17:27]free content buf [17:17:27]Sock 10.Close socket [17:17:27]Sock 10.Thread stoped [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:15]accept exits with 9 [17:19:15]New connection [17:19:15]New thread 3067207012 created [17:19:15]Thread 3067350372 joined [17:19:15]Waiting for new connection... [17:19:15] Sock 9.Parse request [17:19:15]Sock 9.Check first char [17:19:15]Sock 9.First char is OK [17:19:15]request: POST /json_proto HTTP/1.0 [17:19:15]Method: POST [17:19:15]URL: /json_proto [17:19:15]Method is POST - this is cgi request [17:19:15]url: /json_proto [17:19:15]query_string will be loaded in cgi processing [17:19:15]execute_cgi json_proto POST (null) [17:19:15]execute_cgi path=json_proto method=POST [17:19:15]POST find Content-Length [17:19:15]Host: 172.17.42.131:8080 [17:19:15]Content-Length: 775 [17:19:15]Content-Type: application/json [17:19:15] [17:19:15]POST finish read [17:19:15]Found Content-Length = 775 [17:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:15]execute_script... [17:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:15]POST & json_proto [17:19:15]process_json_proto [17:19:15]json parsed OK: [17:19:15]protocol is kg_v1.0 [17:19:15]action value=close_receipt [17:19:15]process_action close_receipt [17:19:15]cmd_close_receipt [17:19:15]MH_GetDate [17:19:15]Write to MH i2c: F0 00 00 DB 14 DE [17:19:15]Write i2c OK [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: F0 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: F0 09 00 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: F0 09 00 DB 14 00 14 30 19 67 A0 18 CA 66 93 [17:19:15]GetLastDocTimeStamp 1729703844 [17:19:15]current date 1729703956 [17:19:15]FM_GetShiftState [17:19:15]SAM_PROTO_GetShiftState [17:19:15]wFMCommunicate request_size=4 [17:19:15]MH_SAM_APDU [17:19:15]CAPDU: 80 13 01 00 [17:19:15]Write to MH i2c: E2 08 00 DC 14 80 13 01 00 00 00 00 00 6D [17:19:15]Write i2c OK [17:19:15]MH_I2C_Read... [17:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:15]Read from MH i2c: E2 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: E2 0E 00 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: E2 0E 00 DC 14 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 55 [17:19:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:19:15]wFMCommunicate OK [17:19:15]SAM_PROTO_GetShiftState done [17:19:15]FM_GetShiftState done [17:19:15]opened in 1729642525 [17:19:15]opened+sec_in_day 1729728925 [17:19:15]quantity*price = 100051 [17:19:15]sum+1 = 100052 [17:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 282 23.10.2024 17:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188824 ФПД: 28030189504597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171916&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188824&fm=28030189504597&tin=02508201610067®Number=0000000000100030&sum=100051 [17:19:16]StoreToDocumentArchive [17:19:16]shift 462 fd 188824 [17:19:16]save to /storage/0462/doc_00188824 [17:19:16]save last doc name /storage/0462/doc_00188824 to /storage/kkm_last_doc_name [17:19:16]save OK [17:19:16]Clear old archive folders... [17:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:19:16]tlvbuf is 0113C2E0 [17:19:16]SAM_PROTO_ClearQueue [17:19:16]wFMCommunicate request_size=4 [17:19:16]MH_SAM_APDU [17:19:16]CAPDU: 80 09 00 00 [17:19:16]Write to MH i2c: E2 08 00 E9 14 80 09 00 00 00 00 00 00 6F [17:19:16]Write i2c OK [17:19:16]MH_I2C_Read... [17:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:16]Read from MH i2c: E2 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: E2 03 00 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: E2 03 00 E9 14 00 90 00 71 [17:19:16]RAPDU: 90 00 [17:19:16]wFMCommunicate OK [17:19:16]SAM_PROTO_ClearQueue done [17:19:16]KKMCreateOFDPacket [17:19:16]OFDProtocolAddRootSTLVToBuf [17:19:16]FM_MakeSignedData [17:19:16]FM_MakeSignedData [17:19:16]SAM_PROTO_SignData [17:19:16]wFMCommunicate request_size=4 [17:19:16]MH_SAM_APDU [17:19:16]CAPDU: 80 0D 01 02 [17:19:16]Write to MH i2c: E2 08 00 EA 14 80 0D 01 02 00 00 00 00 77 [17:19:16]Write i2c OK [17:19:16]MH_I2C_Read... [17:19:16]OFD Sender: No OFD packet to send [17:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:16]Read from MH i2c: E2 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: E2 03 00 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: E2 03 00 EA 14 00 90 00 72 [17:19:16]RAPDU: 90 00 [17:19:16]wFMCommunicate OK [17:19:16]wFMCommunicate request_size=255 [17:19:16]MH_SAM_APDU [17:19:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 14 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E1 02 [17:19:16]Write to MH i2c: E2 02 01 EB 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 14 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E1 02 00 00 63 [17:19:16]Write i2c OK [17:19:16]MH_I2C_Read... [17:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:17]Read from MH i2c: E2 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: E2 03 00 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: E2 03 00 EB 14 00 90 00 73 [17:19:17]RAPDU: 90 00 [17:19:17]wFMCommunicate OK [17:19:17]wFMCommunicate request_size=16 [17:19:17]MH_SAM_APDU [17:19:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 19 7E 49 7D 08 55 [17:19:17]Write to MH i2c: E2 13 00 EC 14 80 0D 02 02 0B 00 00 35 04 06 00 19 7E 49 7D 08 55 00 00 89 [17:19:17]Write i2c OK [17:19:17]MH_I2C_Read... [17:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:17]Read from MH i2c: E2 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: E2 03 00 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: E2 03 00 EC 14 00 90 00 74 [17:19:17]RAPDU: 90 00 [17:19:17]wFMCommunicate OK [17:19:17]wFMCommunicate request_size=4 [17:19:17]MH_SAM_APDU [17:19:17]CAPDU: 80 0D 03 02 [17:19:17]Write to MH i2c: E2 08 00 ED 14 80 0D 03 02 00 00 00 00 7C [17:19:17]Write i2c OK [17:19:17]MH_I2C_Read... [17:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:17]Read from MH i2c: E2 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: E2 0B 00 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: E2 0B 00 ED 14 00 B0 BD 01 01 77 DE 3C BF 90 00 3C [17:19:17]RAPDU: B0 BD 01 01 77 DE 3C BF 90 00 [17:19:17]wFMCommunicate OK [17:19:17]SAM_PROTO_SignData done [17:19:17]FM_MakeSignedData done [17:19:17]CreateOFDProtocolMessage [17:19:17]wFMCommunicate request_size=4 [17:19:17]MH_SAM_APDU [17:19:17]CAPDU: 80 11 00 00 [17:19:17]Write to MH i2c: E2 08 00 EE 14 80 11 00 00 00 00 00 00 7C [17:19:17]Write i2c OK [17:19:17]MH_I2C_Read... [17:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:17]Read from MH i2c: E2 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: E2 17 00 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: E2 17 00 EE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [17:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:19:17]wFMCommunicate OK [17:19:17]CreateOFDProtocolMessage done [17:19:17]OFDSenderStorePacket 188824 [17:19:17]StoreOFDPacket docnum=188824 [17:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2C 92 0D 01 C8 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 14 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E1 02 00 35 04 06 00 19 7E 49 7D 08 55 B0 BD 01 01 77 DE 3C BF [17:19:17]CheckFolder [17:19:17]dirname=/storage/ofd_packets [17:19:17]CheckFolder done [17:19:17]ProducePacketName [17:19:17]name=ofd_packets/00188824 [17:19:17]NVStorageSaveData ofd_packets/00188824 [17:19:17]File name is /storage/ofd_packets/00188824 [17:19:17]Write 307 bytes [17:19:17]NVStorageSaveData done [17:19:17]OFDSenderStorePacket done [17:19:17]KKMCreateOFDPacket done [17:19:17]NVStorageSaveData kkm_last_timestamp [17:19:17]File name is /storage/kkm_last_timestamp [17:19:17]Write 4 bytes [17:19:17]NVStorageSaveData done [17:19:17]ExternCall_PrintAddStr [17:19:17]wPrintStart [17:19:17]Write to MH i2c: 01 00 00 EF 14 03 [17:19:17]Write i2c OK [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: 01 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: 01 07 00 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: 01 07 00 EF 14 00 00 00 00 00 FF 0F 18 [17:19:17]RasterBufferAndPrint [17:19:17]line Счет N : (1)210886 [17:19:17]line ИНН: 02508201610067 [17:19:17]line Контрольно-Кассовый Чек [17:19:17]line ПРОДАЖА [17:19:17]line ТРК (МРК, ГНК) : 21 [17:19:17]line Товар: 2710194210 [17:19:17]line D-ENERGY ДТ-К-5 [17:19:17]line 12.960 * 77.20 [17:19:17]line = 1000.51 [17:19:17]line НДС 12% НСП 1% [17:19:17]line > о реализуемом товаре [17:19:17]line ИТОГО: 1000.51 [17:19:17]line НСП 1% : 8.85 [17:19:17]line НДС 12% : 106.25 [17:19:17]line Наличными: 0.00 [17:19:17]line Безнал.: 1000.51 [17:19:17]line Место: АЗС № 86 "Партнер Нефть" [17:19:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:19:17]line СНО: Общий режим [17:19:17]line Чек 282 23.10.2024 17:19 [17:19:17]line Смена: 462 ФФД: 1.0 [17:19:17]line ЗНМ: 0300000155 [17:19:17]line РНМ: 0000000000100030 [17:19:17]line Версия ККМ: 001 [17:19:17]line Платежная система: Mbank [17:19:17]line ФМ: 0000000000965340 [17:19:17]line ФД: 188824 [17:19:17]line ФПД: 28030189504597 [17:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171916&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188824&fm=28030189504597&tin=02508201610067®Number=0000000000100030&sum=100051 [17:19:17]written 0, free lines is 4095 [17:19:17]OFD Sender: Processing packet 188824 [packets to send 1062, broken 1061] [17:19:17]ProducePacketName [17:19:17]name=ofd_packets/00188824 [17:19:17]OFD Sender: To server: pG, [17:19:17]CommunicateWithHost lk.salyk.kg:30040 [17:19:17]ConnectInit lk.salyk.kg [17:19:17]Connected sock=10 [17:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2C 92 0D 01 C8 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 14 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E1 02 00 35 04 06 00 19 7E 49 7D 08 55 B0 BD 01 01 77 DE 3C BF [17:19:17]Write to MH i2c: 01 00 00 18 15 2D [17:19:17]Write i2c OK [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: 01 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: 01 07 00 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: 01 07 00 18 15 00 00 00 00 00 89 0C C9 [17:19:17]RasterBufferAndPrint [17:19:17]line [17:19:17]line [17:19:17]line [17:19:17]line [17:19:17]line [17:19:17]written 0, free lines is 3213 [17:19:17]MH_Cut [17:19:17]Write to MH i2c: D1 01 00 1F 15 01 06 [17:19:17]Write i2c OK [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: D1 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: D1 01 00 [17:19:17]MH_I2C_Read... [17:19:17]Read from MH i2c: D1 01 00 1F 15 00 05 [17:19:17]Write to MH i2c: 01 00 00 20 15 35 [17:19:17]Write i2c OK [17:19:17]MH_I2C_Read... [17:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF 6E 47 00 99 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 36 35 33 34 30 10 04 04 00 98 E1 02 00 F4 03 04 00 FE D9 18 67 B6 04 01 00 00 5C 0C 24 70 96 49 A7 D9 [17:19:17]CommunicateWithHost err = 0 [17:19:17]CheckOFDResponse [17:19:17]1017 (14) - 77093643461234 [17:19:17]1041 (16) - 0000000000965340 [17:19:17]1040 (4) - 188824 [17:19:17]1012 (4) - 23.10.2024 11:11 [17:19:17]1206 (1) - 0 [17:19:17]OFD Sender: Remove packet 188824 [17:19:17]ProducePacketName [17:19:17]name=ofd_packets/00188824 [17:19:17]NVStorageDeleteData [17:19:18]OFD Sender: No OFD packet to send [17:19:18]*** Cut start [17:19:18]*** Partial cut [17:19:18]*** CUTSNS_PIN = 1 [17:19:18]*** CUTSNS_PIN = 0 [17:19:19]*** Brake cut motor [17:19:19]Read from MH i2c: 01 [17:19:19]MH_I2C_Read... [17:19:19]*** Stop cut motor [17:19:19]*** Cut end [17:19:19]Read from MH i2c: 01 07 00 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: 01 07 00 20 15 00 00 00 00 00 FF 0F 4A [17:19:19]process_action close_receipt done [17:19:19]requested_data is exist [17:19:19]produce_requested_data [17:19:19]requested_item fm.sn is exist - process it [17:19:19]wFMCommunicate request_size=4 [17:19:19]MH_SAM_APDU [17:19:19]CAPDU: 80 11 00 00 [17:19:19]Write to MH i2c: E2 08 00 21 15 80 11 00 00 00 00 00 00 B0 [17:19:19]Write i2c OK [17:19:19]MH_I2C_Read... [17:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:19]Read from MH i2c: E2 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 17 00 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 17 00 21 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [17:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:19:19]wFMCommunicate OK [17:19:19]requested_item fd.num is exist - process it [17:19:19]SAM_PROTO_GetFieldsCounters [17:19:19]wFMCommunicate request_size=4 [17:19:19]MH_SAM_APDU [17:19:19]CAPDU: 80 13 00 00 [17:19:19]Write to MH i2c: E2 08 00 22 15 80 13 00 00 00 00 00 00 B3 [17:19:19]Write i2c OK [17:19:19]MH_I2C_Read... [17:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:19]Read from MH i2c: E2 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 62 00 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 62 00 22 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [17:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:19]wFMCommunicate OK [17:19:19]SAM_PROTO_GetFieldsCounters done [17:19:19]requested_item shift.num is exist - process it [17:19:19]requested_item shift.opened is exist - process it [17:19:19]req_shift_opened [17:19:19]FM_GetShiftState [17:19:19]SAM_PROTO_GetShiftState [17:19:19]wFMCommunicate request_size=4 [17:19:19]MH_SAM_APDU [17:19:19]CAPDU: 80 13 01 00 [17:19:19]Write to MH i2c: E2 08 00 23 15 80 13 01 00 00 00 00 00 B5 [17:19:19]Write i2c OK [17:19:19]MH_I2C_Read... [17:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:19]Read from MH i2c: E2 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 0E 00 [17:19:19]MH_I2C_Read... [17:19:19]Read from MH i2c: E2 0E 00 23 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9D [17:19:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:19:19]wFMCommunicate OK [17:19:19]SAM_PROTO_GetShiftState done [17:19:19]FM_GetShiftState done [17:19:19]req_shift_opened done [17:19:19]requested_item shift.open_date is exist - process it [17:19:19]req_shift_open_date [17:19:19]req_shift_open_date done [17:19:19]produce_requested_data done [17:19:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188824,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:19:19]process_action_free close_receipt [17:19:19]json_value_free [17:19:19]json_value_free done [17:19:19]process_json_proto returns [17:19:19]Send response to host [17:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188824,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:19:19]free response buf [17:19:19]execute_script done [17:19:19]execute_script returns [17:19:19]free content buf [17:19:19]Sock 9.Close socket [17:19:19]Sock 9.Thread stoped [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:14]accept exits with 7 [17:20:14]New connection [17:20:14]New thread 3067350372 created [17:20:14]Thread 3067207012 joined [17:20:14]Waiting for new connection... [17:20:14] Sock 7.Parse request [17:20:14]Sock 7.Check first char [17:20:14]Sock 7.First char is OK [17:20:14]request: POST /json_proto HTTP/1.0 [17:20:14]Method: POST [17:20:14]URL: /json_proto [17:20:14]Method is POST - this is cgi request [17:20:14]url: /json_proto [17:20:14]query_string will be loaded in cgi processing [17:20:14]execute_cgi json_proto POST (null) [17:20:14]execute_cgi path=json_proto method=POST [17:20:14]POST find Content-Length [17:20:14]Host: 172.17.42.131:8080 [17:20:14]Content-Length: 682 [17:20:14]Content-Type: application/json [17:20:14] [17:20:14]POST finish read [17:20:14]Found Content-Length = 682 [17:20:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:14]execute_script... [17:20:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:14]POST & json_proto [17:20:14]process_json_proto [17:20:14]json parsed OK: [17:20:14]protocol is kg_v1.0 [17:20:14]action value=close_receipt [17:20:14]process_action close_receipt [17:20:14]cmd_close_receipt [17:20:14]MH_GetDate [17:20:14]Write to MH i2c: F0 00 00 24 15 28 [17:20:14]Write i2c OK [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: F0 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: F0 09 00 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: F0 09 00 24 15 00 4F 30 19 67 A0 18 CA 66 18 [17:20:14]GetLastDocTimeStamp 1729703956 [17:20:14]current date 1729704015 [17:20:14]FM_GetShiftState [17:20:14]SAM_PROTO_GetShiftState [17:20:14]wFMCommunicate request_size=4 [17:20:14]MH_SAM_APDU [17:20:14]CAPDU: 80 13 01 00 [17:20:14]Write to MH i2c: E2 08 00 25 15 80 13 01 00 00 00 00 00 B7 [17:20:14]Write i2c OK [17:20:14]MH_I2C_Read... [17:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:14]Read from MH i2c: E2 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: E2 0E 00 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: E2 0E 00 25 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9F [17:20:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:20:14]wFMCommunicate OK [17:20:14]SAM_PROTO_GetShiftState done [17:20:14]FM_GetShiftState done [17:20:14]opened in 1729642525 [17:20:14]opened+sec_in_day 1729728925 [17:20:14]quantity*price = 200043 [17:20:14]sum+1 = 200044 [17:20:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 283 23.10.2024 17:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188825 ФПД: 73666964563578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188825&fm=73666964563578&tin=02508201610067®Number=0000000000100030&sum=200000 [17:20:15]StoreToDocumentArchive [17:20:15]shift 462 fd 188825 [17:20:15]save to /storage/0462/doc_00188825 [17:20:15]save last doc name /storage/0462/doc_00188825 to /storage/kkm_last_doc_name [17:20:15]save OK [17:20:15]Clear old archive folders... [17:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:15]tlvbuf is 011752F0 [17:20:15]SAM_PROTO_ClearQueue [17:20:15]wFMCommunicate request_size=4 [17:20:15]MH_SAM_APDU [17:20:15]CAPDU: 80 09 00 00 [17:20:15]Write to MH i2c: E2 08 00 32 15 80 09 00 00 00 00 00 00 B9 [17:20:15]Write i2c OK [17:20:15]MH_I2C_Read... [17:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:15]Read from MH i2c: E2 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: E2 03 00 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: E2 03 00 32 15 00 90 00 BB [17:20:15]RAPDU: 90 00 [17:20:15]wFMCommunicate OK [17:20:15]SAM_PROTO_ClearQueue done [17:20:15]KKMCreateOFDPacket [17:20:15]OFDProtocolAddRootSTLVToBuf [17:20:15]FM_MakeSignedData [17:20:15]FM_MakeSignedData [17:20:15]SAM_PROTO_SignData [17:20:15]wFMCommunicate request_size=4 [17:20:15]MH_SAM_APDU [17:20:15]CAPDU: 80 0D 01 02 [17:20:15]Write to MH i2c: E2 08 00 33 15 80 0D 01 02 00 00 00 00 C1 [17:20:15]Write i2c OK [17:20:15]MH_I2C_Read... [17:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:15]Read from MH i2c: E2 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: E2 03 00 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: E2 03 00 33 15 00 90 00 BC [17:20:15]RAPDU: 90 00 [17:20:15]wFMCommunicate OK [17:20:15]wFMCommunicate request_size=255 [17:20:15]MH_SAM_APDU [17:20:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 4F 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E1 02 00 35 04 06 00 42 [17:20:15]Write to MH i2c: E2 02 01 34 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 4F 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E1 02 00 35 04 06 00 42 00 00 84 [17:20:15]Write i2c OK [17:20:15]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 34 15 00 90 00 BD [17:20:16]RAPDU: 90 00 [17:20:16]wFMCommunicate OK [17:20:16]wFMCommunicate request_size=10 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 0D 02 02 05 FF ED 41 26 7A [17:20:16]Write to MH i2c: E2 0D 00 35 15 80 0D 02 02 05 00 FF ED 41 26 7A 00 00 9B [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 35 15 00 90 00 BE [17:20:16]RAPDU: 90 00 [17:20:16]wFMCommunicate OK [17:20:16]wFMCommunicate request_size=4 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 0D 03 02 [17:20:16]Write to MH i2c: E2 08 00 36 15 80 0D 03 02 00 00 00 00 C6 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 0B 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 0B 00 36 15 00 B3 02 CC 1B 05 E1 2C F2 90 00 67 [17:20:16]RAPDU: B3 02 CC 1B 05 E1 2C F2 90 00 [17:20:16]wFMCommunicate OK [17:20:16]SAM_PROTO_SignData done [17:20:16]FM_MakeSignedData done [17:20:16]CreateOFDProtocolMessage [17:20:16]wFMCommunicate request_size=4 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 11 00 00 [17:20:16]Write to MH i2c: E2 08 00 37 15 80 11 00 00 00 00 00 00 C6 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 17 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 17 00 37 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [17:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:20:16]wFMCommunicate OK [17:20:16]CreateOFDProtocolMessage done [17:20:16]OFDSenderStorePacket 188825 [17:20:16]StoreOFDPacket docnum=188825 [17:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 69 20 07 01 A0 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 4F 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E1 02 00 35 04 06 00 42 FF ED 41 26 7A B3 02 CC 1B 05 E1 2C F2 [17:20:16]CheckFolder [17:20:16]dirname=/storage/ofd_packets [17:20:16]CheckFolder done [17:20:16]ProducePacketName [17:20:16]name=ofd_packets/00188825 [17:20:16]NVStorageSaveData ofd_packets/00188825 [17:20:16]File name is /storage/ofd_packets/00188825 [17:20:16]Write 301 bytes [17:20:16]NVStorageSaveData done [17:20:16]OFDSenderStorePacket done [17:20:16]KKMCreateOFDPacket done [17:20:16]NVStorageSaveData kkm_last_timestamp [17:20:16]File name is /storage/kkm_last_timestamp [17:20:16]Write 4 bytes [17:20:16]NVStorageSaveData done [17:20:16]ExternCall_PrintAddStr [17:20:16]wPrintStart [17:20:16]Write to MH i2c: 01 00 00 38 15 4D [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 38 15 00 00 00 00 00 FF 0F 62 [17:20:16]RasterBufferAndPrint [17:20:16]line Счет N : (1)210887 [17:20:16]line ИНН: 02508201610067 [17:20:16]line Контрольно-Кассовый Чек [17:20:16]line ПРОДАЖА [17:20:16]line ТРК (МРК, ГНК) : 13 [17:20:16]line Товар: 2710124500 [17:20:16]line Аи-95-К-3 [17:20:16]line 26.960 * 74.20 [17:20:16]line = 2000.43 [17:20:16]line НДС 12% НСП 1% [17:20:16]line > о реализуемом товаре [17:20:16]line ОКРУГЛЕНИЕ: -0.43 [17:20:16]line ИТОГО: 2000.00 [17:20:16]line Внесено: 2000.00 [17:20:16]line СДАЧА: 0.00 [17:20:16]line НСП 1% : 17.70 [17:20:16]line НДС 12% : 212.43 [17:20:16]line Наличными: 2000.00 [17:20:16]line Безнал.: 0.00 [17:20:16]line Место: АЗС № 86 "Партнер Нефть" [17:20:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:20:16]line СНО: Общий режим [17:20:16]line Чек 283 23.10.2024 17:20 [17:20:16]line Смена: 462 ФФД: 1.0 [17:20:16]line ЗНМ: 0300000155 [17:20:16]line РНМ: 0000000000100030 [17:20:16]line Версия ККМ: 001 [17:20:16]line ФМ: 0000000000965340 [17:20:16]line ФД: 188825 [17:20:16]line ФПД: 73666964563578 [17:20:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188825&fm=73666964563578&tin=02508201610067®Number=0000000000100030&sum=200000 [17:20:16]written 0, free lines is 4095 [17:20:16]OFD Sender: Processing packet 188825 [packets to send 1062, broken 1061] [17:20:16]ProducePacketName [17:20:16]name=ofd_packets/00188825 [17:20:16]OFD Sender: To server: pG, [17:20:16]CommunicateWithHost lk.salyk.kg:30040 [17:20:16]ConnectInit lk.salyk.kg [17:20:16]Write to MH i2c: 01 00 00 63 15 78 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 [17:20:16]MH_I2C_Read... [17:20:16]Connected sock=11 [17:20:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 69 20 07 01 A0 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 4F 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E1 02 00 35 04 06 00 42 FF ED 41 26 7A B3 02 CC 1B 05 E1 2C F2 [17:20:16]Read from MH i2c: 01 07 00 63 15 00 00 00 00 00 5D 0C E8 [17:20:16]RasterBufferAndPrint [17:20:16]line [17:20:16]line [17:20:16]line [17:20:16]line [17:20:16]line [17:20:16]written 0, free lines is 3182 [17:20:16]MH_Cut [17:20:16]Write to MH i2c: D1 01 00 6A 15 01 51 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: D1 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: D1 01 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: D1 01 00 6A 15 00 50 [17:20:16]Write to MH i2c: 01 00 00 6B 15 80 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0F 08 47 00 0A 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E1 02 00 F4 03 04 00 3A DA 18 67 B6 04 01 00 00 0F 94 88 D3 90 F6 3B 2A [17:20:17]CommunicateWithHost err = 0 [17:20:17]CheckOFDResponse [17:20:17]1017 (14) - 77093643461234 [17:20:17]1041 (16) - 0000000000965340 [17:20:17]1040 (4) - 188825 [17:20:17]1012 (4) - 23.10.2024 11:12 [17:20:17]1206 (1) - 0 [17:20:17]OFD Sender: Remove packet 188825 [17:20:17]ProducePacketName [17:20:17]name=ofd_packets/00188825 [17:20:17]NVStorageDeleteData [17:20:17]OFD Sender: No OFD packet to send [17:20:17]*** Cut start [17:20:17]*** Partial cut [17:20:17]*** CUTSNS_PIN = 1 [17:20:18]*** CUTSNS_PIN = 0 [17:20:18]*** Brake cut motor [17:20:18]Read from MH i2c: 01 [17:20:18]MH_I2C_Read... [17:20:18]*** Stop cut motor [17:20:18]*** Cut end [17:20:18]Read from MH i2c: 01 07 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: 01 07 00 6B 15 00 00 00 00 00 FF 0F 95 [17:20:18]process_action close_receipt done [17:20:18]requested_data is exist [17:20:18]produce_requested_data [17:20:18]requested_item fm.sn is exist - process it [17:20:18]wFMCommunicate request_size=4 [17:20:18]MH_SAM_APDU [17:20:18]CAPDU: 80 11 00 00 [17:20:18]Write to MH i2c: E2 08 00 6C 15 80 11 00 00 00 00 00 00 FB [17:20:18]Write i2c OK [17:20:18]MH_I2C_Read... [17:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:18]Read from MH i2c: E2 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 17 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 17 00 6C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [17:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:20:18]wFMCommunicate OK [17:20:18]requested_item fd.num is exist - process it [17:20:18]SAM_PROTO_GetFieldsCounters [17:20:18]wFMCommunicate request_size=4 [17:20:18]MH_SAM_APDU [17:20:18]CAPDU: 80 13 00 00 [17:20:18]Write to MH i2c: E2 08 00 6D 15 80 13 00 00 00 00 00 00 FE [17:20:18]Write i2c OK [17:20:18]MH_I2C_Read... [17:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:18]Read from MH i2c: E2 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 62 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 62 00 6D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [17:20:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:18]wFMCommunicate OK [17:20:18]SAM_PROTO_GetFieldsCounters done [17:20:18]requested_item shift.num is exist - process it [17:20:18]requested_item shift.opened is exist - process it [17:20:18]req_shift_opened [17:20:18]FM_GetShiftState [17:20:18]SAM_PROTO_GetShiftState [17:20:18]wFMCommunicate request_size=4 [17:20:18]MH_SAM_APDU [17:20:18]CAPDU: 80 13 01 00 [17:20:18]Write to MH i2c: E2 08 00 6E 15 80 13 01 00 00 00 00 00 00 [17:20:18]Write i2c OK [17:20:18]MH_I2C_Read... [17:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:18]Read from MH i2c: E2 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 0E 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 0E 00 6E 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E8 [17:20:18]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:20:18]wFMCommunicate OK [17:20:18]SAM_PROTO_GetShiftState done [17:20:18]FM_GetShiftState done [17:20:18]req_shift_opened done [17:20:18]requested_item shift.open_date is exist - process it [17:20:18]req_shift_open_date [17:20:18]req_shift_open_date done [17:20:18]produce_requested_data done [17:20:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188825,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:20:18]process_action_free close_receipt [17:20:18]json_value_free [17:20:18]json_value_free done [17:20:18]process_json_proto returns [17:20:18]Send response to host [17:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188825,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:20:18]free response buf [17:20:18]execute_script done [17:20:18]execute_script returns [17:20:18]free content buf [17:20:18]Sock 7.Close socket [17:20:18]Sock 7.Thread stoped [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:15]accept exits with 9 [17:21:15]New connection [17:21:15]New thread 3067207012 created [17:21:15]Thread 3067350372 joined [17:21:15]Waiting for new connection... [17:21:15] Sock 9.Parse request [17:21:15]Sock 9.Check first char [17:21:15]Sock 9.First char is OK [17:21:15]request: POST /json_proto HTTP/1.0 [17:21:15]Method: POST [17:21:15]URL: /json_proto [17:21:15]Method is POST - this is cgi request [17:21:15]url: /json_proto [17:21:15]query_string will be loaded in cgi processing [17:21:15]execute_cgi json_proto POST (null) [17:21:15]execute_cgi path=json_proto method=POST [17:21:15]POST find Content-Length [17:21:15]Host: 172.17.42.131:8080 [17:21:15]Content-Length: 979 [17:21:15]Content-Type: application/json [17:21:15] [17:21:15]POST finish read [17:21:15]Found Content-Length = 979 [17:21:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 126.330, "sum" : 9500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 126.33 \u0441\u043E\u043C", "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:15]execute_script... [17:21:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 126.330, "sum" : 9500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 126.33 \u0441\u043E\u043C", "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:15]POST & json_proto [17:21:15]process_json_proto [17:21:15]json parsed OK: [17:21:15]protocol is kg_v1.0 [17:21:15]action value=close_receipt [17:21:15]process_action close_receipt [17:21:15]cmd_close_receipt [17:21:15]MH_GetDate [17:21:15]Write to MH i2c: F0 00 00 6F 15 73 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: F0 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: F0 09 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: F0 09 00 6F 15 00 8C 30 19 67 A0 18 CA 66 A0 [17:21:15]GetLastDocTimeStamp 1729704015 [17:21:15]current date 1729704076 [17:21:15]FM_GetShiftState [17:21:15]SAM_PROTO_GetShiftState [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 13 01 00 [17:21:15]Write to MH i2c: E2 08 00 70 15 80 13 01 00 00 00 00 00 02 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 0E 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 0E 00 70 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EA [17:21:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:21:15]wFMCommunicate OK [17:21:15]SAM_PROTO_GetShiftState done [17:21:15]FM_GetShiftState done [17:21:15]opened in 1729642525 [17:21:15]opened+sec_in_day 1729728925 [17:21:15]quantity*price = 950001 [17:21:15]sum+1 = 950003 [17:21:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 9500.00 Внесено: 9500.00 СДАЧА: 0.00 НСП 1% : 84.07 НДС 12% : 1008.85 Наличными: 9500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 284 23.10.2024 17:21 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 126.33 сом ФМ: 0000000000965340 ФД: 188826 ФПД: 84337229131333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188826&fm=84337229131333&tin=02508201610067®Number=0000000000100030&sum=950000 [17:21:16]StoreToDocumentArchive [17:21:16]shift 462 fd 188826 [17:21:16]save to /storage/0462/doc_00188826 [17:21:16]save last doc name /storage/0462/doc_00188826 to /storage/kkm_last_doc_name [17:21:16]save OK [17:21:16]Clear old archive folders... [17:21:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:21:16]tlvbuf is B6F22640 [17:21:16]SAM_PROTO_ClearQueue [17:21:16]wFMCommunicate request_size=4 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 09 00 00 [17:21:16]Write to MH i2c: E2 08 00 7D 15 80 09 00 00 00 00 00 00 04 [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 03 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 03 00 7D 15 00 90 00 06 [17:21:16]RAPDU: 90 00 [17:21:16]wFMCommunicate OK [17:21:16]SAM_PROTO_ClearQueue done [17:21:16]KKMCreateOFDPacket [17:21:16]OFDProtocolAddRootSTLVToBuf [17:21:16]FM_MakeSignedData [17:21:16]FM_MakeSignedData [17:21:16]SAM_PROTO_SignData [17:21:16]wFMCommunicate request_size=4 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 0D 01 02 [17:21:16]Write to MH i2c: E2 08 00 7E 15 80 0D 01 02 00 00 00 00 0C [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 03 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 03 00 7E 15 00 90 00 07 [17:21:16]RAPDU: 90 00 [17:21:16]wFMCommunicate OK [17:21:16]wFMCommunicate request_size=255 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 8C 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E1 02 00 35 04 06 00 4C B4 4A 95 [17:21:16]Write to MH i2c: E2 02 01 7F 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 8C 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E1 02 00 35 04 06 00 4C B4 4A 95 00 00 C5 [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 03 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 03 00 7F 15 00 90 00 08 [17:21:16]RAPDU: 90 00 [17:21:16]wFMCommunicate OK [17:21:16]wFMCommunicate request_size=7 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 0D 02 02 02 6E 45 [17:21:16]Write to MH i2c: E2 0A 00 80 15 80 0D 02 02 02 00 6E 45 00 00 C6 [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 03 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 03 00 80 15 00 90 00 09 [17:21:16]RAPDU: 90 00 [17:21:16]wFMCommunicate OK [17:21:16]wFMCommunicate request_size=4 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 0D 03 02 [17:21:16]Write to MH i2c: E2 08 00 81 15 80 0D 03 02 00 00 00 00 11 [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 0B 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 0B 00 81 15 00 9B 27 A5 52 23 C7 F0 6A 90 00 0F [17:21:16]RAPDU: 9B 27 A5 52 23 C7 F0 6A 90 00 [17:21:16]wFMCommunicate OK [17:21:16]SAM_PROTO_SignData done [17:21:16]FM_MakeSignedData done [17:21:16]CreateOFDProtocolMessage [17:21:16]wFMCommunicate request_size=4 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 11 00 00 [17:21:16]Write to MH i2c: E2 08 00 82 15 80 11 00 00 00 00 00 00 11 [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 17 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 17 00 82 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [17:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:21:17]wFMCommunicate OK [17:21:17]CreateOFDProtocolMessage done [17:21:17]OFDSenderStorePacket 188826 [17:21:17]StoreOFDPacket docnum=188826 [17:21:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 64 DE 04 01 75 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 8C 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E1 02 00 35 04 06 00 4C B4 4A 95 6E 45 9B 27 A5 52 23 C7 F0 6A [17:21:17]CheckFolder [17:21:17]dirname=/storage/ofd_packets [17:21:17]CheckFolder done [17:21:17]ProducePacketName [17:21:17]name=ofd_packets/00188826 [17:21:17]NVStorageSaveData ofd_packets/00188826 [17:21:17]File name is /storage/ofd_packets/00188826 [17:21:17]Write 298 bytes [17:21:17]NVStorageSaveData done [17:21:17]OFDSenderStorePacket done [17:21:17]KKMCreateOFDPacket done [17:21:17]NVStorageSaveData kkm_last_timestamp [17:21:17]File name is /storage/kkm_last_timestamp [17:21:17]Write 4 bytes [17:21:17]NVStorageSaveData done [17:21:17]ExternCall_PrintAddStr [17:21:17]wPrintStart [17:21:17]Write to MH i2c: 01 00 00 83 15 98 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 83 15 00 00 00 00 00 FF 0F AD [17:21:17]RasterBufferAndPrint [17:21:17]line Счет N : (1)210885 [17:21:17]line ИНН: 02508201610067 [17:21:17]line Контрольно-Кассовый Чек [17:21:17]line ПРОДАЖА [17:21:17]line ТРК (МРК, ГНК) : 51 [17:21:17]line Товар: 2710194210 [17:21:17]line ДТ-К-5 [17:21:17]line 126.330 * 75.20 [17:21:17]line = 9500.02 [17:21:17]line НДС 12% НСП 1% [17:21:17]line > о реализуемом товаре [17:21:17]line ОКРУГЛЕНИЕ: -0.02 [17:21:17]line ИТОГО: 9500.00 [17:21:17]line Внесено: 9500.00 [17:21:17]line СДАЧА: 0.00 [17:21:17]line НСП 1% : 84.07 [17:21:17]line НДС 12% : 1008.85 [17:21:17]line Наличными: 9500.00 [17:21:17]line Безнал.: 0.00 [17:21:17]line Место: АЗС № 86 "Партнер Нефть" [17:21:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:21:17]line СНО: Общий режим [17:21:17]line Чек 284 23.10.2024 17:21 [17:21:17]line Смена: 462 ФФД: 1.0 [17:21:17]line ЗНМ: 0300000155 [17:21:17]line РНМ: 0000000000100030 [17:21:17]line Версия ККМ: 001 [17:21:17]line [17:21:17]line Дисконтная программа [17:21:17]line ДТ [17:21:17]line номер 86 [17:21:17]line сэкономлено 126.33 сом [17:21:17]line ФМ: 0000000000965340 [17:21:17]line ФД: 188826 [17:21:17]line ФПД: 84337229131333 [17:21:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188826&fm=84337229131333&tin=02508201610067®Number=0000000000100030&sum=950000 [17:21:17]written 0, free lines is 4095 [17:21:17]OFD Sender: Processing packet 188826 [packets to send 1062, broken 1061] [17:21:17]ProducePacketName [17:21:17]name=ofd_packets/00188826 [17:21:17]OFD Sender: To server: pG, [17:21:17]CommunicateWithHost lk.salyk.kg:30040 [17:21:17]ConnectInit lk.salyk.kg [17:21:17]Connected sock=10 [17:21:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 64 DE 04 01 75 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 8C 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E1 02 00 35 04 06 00 4C B4 4A 95 6E 45 9B 27 A5 52 23 C7 F0 6A [17:21:17]Write to MH i2c: 01 00 00 B3 15 C8 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 B3 15 00 00 00 00 00 E3 0B BD [17:21:17]RasterBufferAndPrint [17:21:17]line [17:21:17]line [17:21:17]line [17:21:17]line [17:21:17]line [17:21:17]written 0, free lines is 3045 [17:21:17]MH_Cut [17:21:17]Write to MH i2c: D1 01 00 BA 15 01 A1 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: D1 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: D1 01 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: D1 01 00 BA 15 00 A0 [17:21:17]Write to MH i2c: 01 00 00 BB 15 D0 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 72 B5 47 00 D3 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 36 35 33 34 30 10 04 04 00 9A E1 02 00 F4 03 04 00 76 DA 18 67 B6 04 01 00 00 F4 F0 A7 E6 EB 48 92 69 [17:21:17]CommunicateWithHost err = 0 [17:21:17]CheckOFDResponse [17:21:17]1017 (14) - 77093643461234 [17:21:17]1041 (16) - 0000000000965340 [17:21:17]1040 (4) - 188826 [17:21:17]1012 (4) - 23.10.2024 11:13 [17:21:17]1206 (1) - 0 [17:21:17]OFD Sender: Remove packet 188826 [17:21:17]ProducePacketName [17:21:17]name=ofd_packets/00188826 [17:21:17]NVStorageDeleteData [17:21:18]OFD Sender: No OFD packet to send [17:21:18]*** Cut start [17:21:18]*** Partial cut [17:21:18]*** CUTSNS_PIN = 1 [17:21:19]*** CUTSNS_PIN = 0 [17:21:19]*** Brake cut motor [17:21:19]Read from MH i2c: 01 [17:21:19]MH_I2C_Read... [17:21:19]*** Stop cut motor [17:21:19]*** Cut end [17:21:19]Read from MH i2c: 01 07 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: 01 07 00 BB 15 00 00 00 00 00 FF 0F E5 [17:21:19]process_action close_receipt done [17:21:19]requested_data is exist [17:21:19]produce_requested_data [17:21:19]requested_item fm.sn is exist - process it [17:21:19]wFMCommunicate request_size=4 [17:21:19]MH_SAM_APDU [17:21:19]CAPDU: 80 11 00 00 [17:21:19]Write to MH i2c: E2 08 00 BC 15 80 11 00 00 00 00 00 00 4B [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 17 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 17 00 BC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [17:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:21:19]wFMCommunicate OK [17:21:19]requested_item fd.num is exist - process it [17:21:19]SAM_PROTO_GetFieldsCounters [17:21:19]wFMCommunicate request_size=4 [17:21:19]MH_SAM_APDU [17:21:19]CAPDU: 80 13 00 00 [17:21:19]Write to MH i2c: E2 08 00 BD 15 80 13 00 00 00 00 00 00 4E [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 62 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 62 00 BD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [17:21:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:19]wFMCommunicate OK [17:21:19]SAM_PROTO_GetFieldsCounters done [17:21:19]requested_item shift.num is exist - process it [17:21:19]requested_item shift.opened is exist - process it [17:21:19]req_shift_opened [17:21:19]FM_GetShiftState [17:21:19]SAM_PROTO_GetShiftState [17:21:19]wFMCommunicate request_size=4 [17:21:19]MH_SAM_APDU [17:21:19]CAPDU: 80 13 01 00 [17:21:19]Write to MH i2c: E2 08 00 BE 15 80 13 01 00 00 00 00 00 50 [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 0E 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 0E 00 BE 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 38 [17:21:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:21:19]wFMCommunicate OK [17:21:19]SAM_PROTO_GetShiftState done [17:21:19]FM_GetShiftState done [17:21:19]req_shift_opened done [17:21:19]requested_item shift.open_date is exist - process it [17:21:19]req_shift_open_date [17:21:19]req_shift_open_date done [17:21:19]produce_requested_data done [17:21:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188826,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:21:19]process_action_free close_receipt [17:21:19]json_value_free [17:21:19]json_value_free done [17:21:19]process_json_proto returns [17:21:19]Send response to host [17:21:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188826,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:21:19]free response buf [17:21:19]execute_script done [17:21:19]execute_script returns [17:21:19]free content buf [17:21:19]Sock 9.Close socket [17:21:19]Sock 9.Thread stoped [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:03]accept exits with 7 [17:22:03]New connection [17:22:03]New thread 3067350372 created [17:22:03]Thread 3067207012 joined [17:22:03]Waiting for new connection... [17:22:03] Sock 7.Parse request [17:22:03]Sock 7.Check first char [17:22:03]Sock 7.First char is OK [17:22:03]request: POST /json_proto HTTP/1.0 [17:22:03]Method: POST [17:22:03]URL: /json_proto [17:22:03]Method is POST - this is cgi request [17:22:03]url: /json_proto [17:22:03]query_string will be loaded in cgi processing [17:22:03]execute_cgi json_proto POST (null) [17:22:03]execute_cgi path=json_proto method=POST [17:22:03]POST find Content-Length [17:22:03]Host: 172.17.42.131:8080 [17:22:03]Content-Length: 683 [17:22:03]Content-Type: application/json [17:22:03] [17:22:03]POST finish read [17:22:03]Found Content-Length = 683 [17:22:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:03]execute_script... [17:22:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:03]POST & json_proto [17:22:03]process_json_proto [17:22:03]json parsed OK: [17:22:03]protocol is kg_v1.0 [17:22:03]action value=close_receipt [17:22:03]process_action close_receipt [17:22:03]cmd_close_receipt [17:22:03]MH_GetDate [17:22:03]Write to MH i2c: F0 00 00 BF 15 C3 [17:22:03]Write i2c OK [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: F0 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: F0 09 00 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: F0 09 00 BF 15 00 BC 30 19 67 A0 18 CA 66 20 [17:22:03]GetLastDocTimeStamp 1729704076 [17:22:03]current date 1729704124 [17:22:03]FM_GetShiftState [17:22:03]SAM_PROTO_GetShiftState [17:22:03]wFMCommunicate request_size=4 [17:22:03]MH_SAM_APDU [17:22:03]CAPDU: 80 13 01 00 [17:22:03]Write to MH i2c: E2 08 00 C0 15 80 13 01 00 00 00 00 00 52 [17:22:03]Write i2c OK [17:22:03]MH_I2C_Read... [17:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:03]Read from MH i2c: E2 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: E2 0E 00 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: E2 0E 00 C0 15 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3A [17:22:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:22:03]wFMCommunicate OK [17:22:03]SAM_PROTO_GetShiftState done [17:22:03]FM_GetShiftState done [17:22:03]opened in 1729642525 [17:22:03]opened+sec_in_day 1729728925 [17:22:03]quantity*price = 60061 [17:22:03]sum+1 = 60063 [17:22:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 285 23.10.2024 17:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188827 ФПД: 209610430966318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172204&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188827&fm=209610430966318&tin=02508201610067®Number=0000000000100030&sum=60000 [17:22:04]StoreToDocumentArchive [17:22:04]shift 462 fd 188827 [17:22:04]save to /storage/0462/doc_00188827 [17:22:04]save last doc name /storage/0462/doc_00188827 to /storage/kkm_last_doc_name [17:22:04]save OK [17:22:04]Clear old archive folders... [17:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:22:04]tlvbuf is 0114BCA0 [17:22:04]SAM_PROTO_ClearQueue [17:22:04]wFMCommunicate request_size=4 [17:22:04]MH_SAM_APDU [17:22:04]CAPDU: 80 09 00 00 [17:22:04]Write to MH i2c: E2 08 00 CD 15 80 09 00 00 00 00 00 00 54 [17:22:04]Write i2c OK [17:22:04]MH_I2C_Read... [17:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:04]Read from MH i2c: E2 [17:22:04]MH_I2C_Read... [17:22:04]Read from MH i2c: E2 03 00 [17:22:04]MH_I2C_Read... [17:22:04]Read from MH i2c: E2 03 00 CD 15 00 90 00 56 [17:22:04]RAPDU: 90 00 [17:22:04]wFMCommunicate OK [17:22:04]SAM_PROTO_ClearQueue done [17:22:04]KKMCreateOFDPacket [17:22:04]OFDProtocolAddRootSTLVToBuf [17:22:04]FM_MakeSignedData [17:22:04]FM_MakeSignedData [17:22:04]SAM_PROTO_SignData [17:22:04]wFMCommunicate request_size=4 [17:22:04]MH_SAM_APDU [17:22:04]CAPDU: 80 0D 01 02 [17:22:04]Write to MH i2c: E2 08 00 CE 15 80 0D 01 02 00 00 00 00 5C [17:22:04]Write i2c OK [17:22:04]MH_I2C_Read... [17:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:04]Read from MH i2c: E2 [17:22:04]MH_I2C_Read... [17:22:04]Read from MH i2c: E2 03 00 [17:22:04]MH_I2C_Read... [17:22:04]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [17:22:04]RAPDU: 90 00 [17:22:04]wFMCommunicate OK [17:22:04]wFMCommunicate request_size=255 [17:22:04]MH_SAM_APDU [17:22:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 BC 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E1 02 [17:22:04]Write to MH i2c: E2 02 01 CF 15 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 BC 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E1 02 00 00 A9 [17:22:04]Write i2c OK [17:22:04]MH_I2C_Read... [17:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [17:22:05]RAPDU: 90 00 [17:22:05]wFMCommunicate OK [17:22:05]wFMCommunicate request_size=16 [17:22:05]MH_SAM_APDU [17:22:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BE A3 BB 47 6A 2E [17:22:05]Write to MH i2c: E2 13 00 D0 15 80 0D 02 02 0B 00 00 35 04 06 00 BE A3 BB 47 6A 2E 00 00 AF [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [17:22:05]RAPDU: 90 00 [17:22:05]wFMCommunicate OK [17:22:05]wFMCommunicate request_size=4 [17:22:05]MH_SAM_APDU [17:22:05]CAPDU: 80 0D 03 02 [17:22:05]Write to MH i2c: E2 08 00 D1 15 80 0D 03 02 00 00 00 00 61 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 0B 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 0B 00 D1 15 00 4B 24 D1 CB AC 32 4D D3 90 00 6B [17:22:05]RAPDU: 4B 24 D1 CB AC 32 4D D3 90 00 [17:22:05]wFMCommunicate OK [17:22:05]SAM_PROTO_SignData done [17:22:05]FM_MakeSignedData done [17:22:05]CreateOFDProtocolMessage [17:22:05]wFMCommunicate request_size=4 [17:22:05]MH_SAM_APDU [17:22:05]CAPDU: 80 11 00 00 [17:22:05]Write to MH i2c: E2 08 00 D2 15 80 11 00 00 00 00 00 00 61 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 17 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 17 00 D2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [17:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:05]wFMCommunicate OK [17:22:05]CreateOFDProtocolMessage done [17:22:05]OFDSenderStorePacket 188827 [17:22:05]StoreOFDPacket docnum=188827 [17:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 99 3C 0D 01 4F 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 BC 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E1 02 00 35 04 06 00 BE A3 BB 47 6A 2E 4B 24 D1 CB AC 32 4D D3 [17:22:05]CheckFolder [17:22:05]dirname=/storage/ofd_packets [17:22:05]CheckFolder done [17:22:05]ProducePacketName [17:22:05]name=ofd_packets/00188827 [17:22:05]NVStorageSaveData ofd_packets/00188827 [17:22:05]File name is /storage/ofd_packets/00188827 [17:22:05]Write 307 bytes [17:22:05]NVStorageSaveData done [17:22:05]OFDSenderStorePacket done [17:22:05]KKMCreateOFDPacket done [17:22:05]NVStorageSaveData kkm_last_timestamp [17:22:05]File name is /storage/kkm_last_timestamp [17:22:05]Write 4 bytes [17:22:05]NVStorageSaveData done [17:22:05]ExternCall_PrintAddStr [17:22:05]wPrintStart [17:22:05]Write to MH i2c: 01 00 00 D3 15 E8 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 D3 15 00 00 00 00 00 FF 0F FD [17:22:05]RasterBufferAndPrint [17:22:05]line Счет N : (1)210889 [17:22:05]line ИНН: 02508201610067 [17:22:05]line Контрольно-Кассовый Чек [17:22:05]line ПРОДАЖА [17:22:05]line ТРК (МРК, ГНК) : 31 [17:22:05]line Товар: 2710194210 [17:22:05]line D-ENERGY ДТ-К-5 [17:22:05]line 7.780 * 77.20 [17:22:05]line = 600.62 [17:22:05]line НДС 12% НСП 1% [17:22:05]line > о реализуемом товаре [17:22:05]line ОКРУГЛЕНИЕ: -0.62 [17:22:05]line ИТОГО: 600.00 [17:22:05]line Внесено: 600.00 [17:22:05]line СДАЧА: 0.00 [17:22:05]line НСП 1% : 5.31 [17:22:05]line НДС 12% : 63.78 [17:22:05]line Наличными: 600.00 [17:22:05]line Безнал.: 0.00 [17:22:05]line Место: АЗС № 86 "Партнер Нефть" [17:22:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:22:05]line СНО: Общий режим [17:22:05]line Чек 285 23.10.2024 17:22 [17:22:05]line Смена: 462 ФФД: 1.0 [17:22:05]line ЗНМ: 0300000155 [17:22:05]line РНМ: 0000000000100030 [17:22:05]line Версия ККМ: 001 [17:22:05]line ФМ: 0000000000965340 [17:22:05]line ФД: 188827 [17:22:05]line ФПД: 209610430966318 [17:22:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172204&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188827&fm=209610430966318&tin=02508201610067®Number=0000000000100030&sum=60000 [17:22:05]written 0, free lines is 4095 [17:22:05]OFD Sender: Processing packet 188827 [packets to send 1062, broken 1061] [17:22:05]ProducePacketName [17:22:05]name=ofd_packets/00188827 [17:22:05]OFD Sender: To server: pG, [17:22:05]CommunicateWithHost lk.salyk.kg:30040 [17:22:05]ConnectInit lk.salyk.kg [17:22:05]Connected sock=10 [17:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 99 3C 0D 01 4F 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 BC 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E1 02 00 35 04 06 00 BE A3 BB 47 6A 2E 4B 24 D1 CB AC 32 4D D3 [17:22:05]Write to MH i2c: 01 00 00 FE 15 13 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 FE 15 00 00 00 00 00 5A 0C 80 [17:22:05]RasterBufferAndPrint [17:22:05]line [17:22:05]line [17:22:05]line [17:22:05]line [17:22:05]line [17:22:05]written 0, free lines is 3167 [17:22:05]MH_Cut [17:22:05]Write to MH i2c: D1 01 00 05 16 01 ED [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: D1 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: D1 01 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: D1 01 00 05 16 00 EC [17:22:05]Write to MH i2c: 01 00 00 06 16 1C [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 70 47 00 AE B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E1 02 00 F4 03 04 00 A7 DA 18 67 B6 04 01 00 00 12 9D EA 51 D8 A6 26 F1 [17:22:06]CommunicateWithHost err = 0 [17:22:06]CheckOFDResponse [17:22:06]1017 (14) - 77093643461234 [17:22:06]1041 (16) - 0000000000965340 [17:22:06]1040 (4) - 188827 [17:22:06]1012 (4) - 23.10.2024 11:14 [17:22:06]1206 (1) - 0 [17:22:06]OFD Sender: Remove packet 188827 [17:22:06]ProducePacketName [17:22:06]name=ofd_packets/00188827 [17:22:06]NVStorageDeleteData [17:22:06]OFD Sender: No OFD packet to send [17:22:07]*** Cut start [17:22:07]*** Partial cut [17:22:07]*** CUTSNS_PIN = 1 [17:22:07]*** CUTSNS_PIN = 0 [17:22:07]*** Brake cut motor [17:22:07]Read from MH i2c: 01 [17:22:07]MH_I2C_Read... [17:22:07]*** Stop cut motor [17:22:07]*** Cut end [17:22:07]Read from MH i2c: 01 07 00 [17:22:07]MH_I2C_Read... [17:22:07]Read from MH i2c: 01 07 00 06 16 00 00 00 00 00 FF 0F 31 [17:22:07]process_action close_receipt done [17:22:07]requested_data is exist [17:22:07]produce_requested_data [17:22:07]requested_item fm.sn is exist - process it [17:22:07]wFMCommunicate request_size=4 [17:22:07]MH_SAM_APDU [17:22:07]CAPDU: 80 11 00 00 [17:22:07]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [17:22:07]Write i2c OK [17:22:07]MH_I2C_Read... [17:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:07]Read from MH i2c: E2 [17:22:07]MH_I2C_Read... [17:22:07]Read from MH i2c: E2 17 00 [17:22:07]MH_I2C_Read... [17:22:07]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [17:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:07]wFMCommunicate OK [17:22:07]requested_item fd.num is exist - process it [17:22:07]SAM_PROTO_GetFieldsCounters [17:22:07]wFMCommunicate request_size=4 [17:22:07]MH_SAM_APDU [17:22:07]CAPDU: 80 13 00 00 [17:22:07]Write to MH i2c: E2 08 00 08 16 80 13 00 00 00 00 00 00 9A [17:22:07]Write i2c OK [17:22:07]MH_I2C_Read... [17:22:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:07]Read from MH i2c: E2 [17:22:07]MH_I2C_Read... [17:22:07]Read from MH i2c: E2 62 00 [17:22:07]MH_I2C_Read... [17:22:07]Read from MH i2c: E2 62 00 08 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [17:22:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:07]wFMCommunicate OK [17:22:07]SAM_PROTO_GetFieldsCounters done [17:22:07]requested_item shift.num is exist - process it [17:22:07]requested_item shift.opened is exist - process it [17:22:07]req_shift_opened [17:22:07]FM_GetShiftState [17:22:07]SAM_PROTO_GetShiftState [17:22:07]wFMCommunicate request_size=4 [17:22:07]MH_SAM_APDU [17:22:07]CAPDU: 80 13 01 00 [17:22:07]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [17:22:07]Write i2c OK [17:22:07]MH_I2C_Read... [17:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:08]Read from MH i2c: E2 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 0E 00 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 84 [17:22:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:22:08]wFMCommunicate OK [17:22:08]SAM_PROTO_GetShiftState done [17:22:08]FM_GetShiftState done [17:22:08]req_shift_opened done [17:22:08]requested_item shift.open_date is exist - process it [17:22:08]req_shift_open_date [17:22:08]req_shift_open_date done [17:22:08]produce_requested_data done [17:22:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188827,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:22:08]process_action_free close_receipt [17:22:08]json_value_free [17:22:08]json_value_free done [17:22:08]process_json_proto returns [17:22:08]Send response to host [17:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188827,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:22:08]free response buf [17:22:08]execute_script done [17:22:08]execute_script returns [17:22:08]free content buf [17:22:08]Sock 7.Close socket [17:22:08]Sock 7.Thread stoped [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:23]accept exits with 9 [17:22:23]New connection [17:22:23]New thread 3067207012 created [17:22:23]Thread 3067350372 joined [17:22:23]Waiting for new connection... [17:22:23] Sock 9.Parse request [17:22:23]Sock 9.Check first char [17:22:23]Sock 9.First char is OK [17:22:23]request: POST /json_proto HTTP/1.0 [17:22:23]Method: POST [17:22:23]URL: /json_proto [17:22:23]Method is POST - this is cgi request [17:22:23]url: /json_proto [17:22:23]query_string will be loaded in cgi processing [17:22:23]execute_cgi json_proto POST (null) [17:22:23]execute_cgi path=json_proto method=POST [17:22:23]POST find Content-Length [17:22:23]Host: 172.17.42.131:8080 [17:22:23]Content-Length: 775 [17:22:23]Content-Type: application/json [17:22:23] [17:22:23]POST finish read [17:22:23]Found Content-Length = 775 [17:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:23]execute_script... [17:22:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:23]POST & json_proto [17:22:23]process_json_proto [17:22:23]json parsed OK: [17:22:23]protocol is kg_v1.0 [17:22:23]action value=close_receipt [17:22:23]process_action close_receipt [17:22:23]cmd_close_receipt [17:22:23]MH_GetDate [17:22:23]Write to MH i2c: F0 00 00 0A 16 0F [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: F0 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: F0 09 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: F0 09 00 0A 16 00 D1 30 19 67 A0 18 CA 66 81 [17:22:23]GetLastDocTimeStamp 1729704124 [17:22:23]current date 1729704145 [17:22:23]FM_GetShiftState [17:22:23]SAM_PROTO_GetShiftState [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 13 01 00 [17:22:23]Write to MH i2c: E2 08 00 0B 16 80 13 01 00 00 00 00 00 9E [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0E 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0E 00 0B 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 86 [17:22:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_GetShiftState done [17:22:23]FM_GetShiftState done [17:22:23]opened in 1729642525 [17:22:23]opened+sec_in_day 1729728925 [17:22:23]quantity*price = 200025 [17:22:23]sum+1 = 200026 [17:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 286 23.10.2024 17:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188828 ФПД: 112304865103108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172225&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188828&fm=112304865103108&tin=02508201610067®Number=0000000000100030&sum=200025 [17:22:24]StoreToDocumentArchive [17:22:24]shift 462 fd 188828 [17:22:24]save to /storage/0462/doc_00188828 [17:22:24]save last doc name /storage/0462/doc_00188828 to /storage/kkm_last_doc_name [17:22:24]save OK [17:22:24]Clear old archive folders... [17:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:22:25]tlvbuf is 0111E920 [17:22:25]SAM_PROTO_ClearQueue [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 09 00 00 [17:22:25]Write to MH i2c: E2 08 00 18 16 80 09 00 00 00 00 00 00 A0 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:25]Read from MH i2c: E2 03 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [17:22:25]RAPDU: 90 00 [17:22:25]wFMCommunicate OK [17:22:25]SAM_PROTO_ClearQueue done [17:22:25]KKMCreateOFDPacket [17:22:25]OFDProtocolAddRootSTLVToBuf [17:22:25]FM_MakeSignedData [17:22:25]FM_MakeSignedData [17:22:25]SAM_PROTO_SignData [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 0D 01 02 [17:22:25]Write to MH i2c: E2 08 00 19 16 80 0D 01 02 00 00 00 00 A8 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [17:22:25]RAPDU: 90 00 [17:22:25]wFMCommunicate OK [17:22:25]wFMCommunicate request_size=255 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 D1 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E1 02 [17:22:25]Write to MH i2c: E2 02 01 1A 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 D1 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E1 02 00 00 69 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 1A 16 00 90 00 A4 [17:22:25]RAPDU: 90 00 [17:22:25]wFMCommunicate OK [17:22:25]wFMCommunicate request_size=16 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 66 24 03 97 4D 04 [17:22:25]Write to MH i2c: E2 13 00 1B 16 80 0D 02 02 0B 00 00 35 04 06 00 66 24 03 97 4D 04 00 00 75 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 1B 16 00 90 00 A5 [17:22:25]RAPDU: 90 00 [17:22:25]wFMCommunicate OK [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 0D 03 02 [17:22:25]Write to MH i2c: E2 08 00 1C 16 80 0D 03 02 00 00 00 00 AD [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 0B 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 0B 00 1C 16 00 0B 62 3B 78 DC 3A 6F BB 90 00 0E [17:22:25]RAPDU: 0B 62 3B 78 DC 3A 6F BB 90 00 [17:22:25]wFMCommunicate OK [17:22:25]SAM_PROTO_SignData done [17:22:25]FM_MakeSignedData done [17:22:25]CreateOFDProtocolMessage [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 11 00 00 [17:22:25]Write to MH i2c: E2 08 00 1D 16 80 11 00 00 00 00 00 00 AD [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 17 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 17 00 1D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [17:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:25]wFMCommunicate OK [17:22:25]CreateOFDProtocolMessage done [17:22:25]OFDSenderStorePacket 188828 [17:22:25]StoreOFDPacket docnum=188828 [17:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 51 C1 0D 01 8F 3F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 D1 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E1 02 00 35 04 06 00 66 24 03 97 4D 04 0B 62 3B 78 DC 3A 6F BB [17:22:25]CheckFolder [17:22:25]dirname=/storage/ofd_packets [17:22:25]CheckFolder done [17:22:25]ProducePacketName [17:22:25]name=ofd_packets/00188828 [17:22:25]NVStorageSaveData ofd_packets/00188828 [17:22:25]File name is /storage/ofd_packets/00188828 [17:22:25]Write 307 bytes [17:22:25]NVStorageSaveData done [17:22:25]OFDSenderStorePacket done [17:22:25]KKMCreateOFDPacket done [17:22:25]NVStorageSaveData kkm_last_timestamp [17:22:25]File name is /storage/kkm_last_timestamp [17:22:25]Write 4 bytes [17:22:25]NVStorageSaveData done [17:22:25]ExternCall_PrintAddStr [17:22:25]wPrintStart [17:22:25]Write to MH i2c: 01 00 00 1E 16 34 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 1E 16 00 00 00 00 00 FF 0F 49 [17:22:25]RasterBufferAndPrint [17:22:25]line Счет N : (1)210888 [17:22:25]line ИНН: 02508201610067 [17:22:25]line Контрольно-Кассовый Чек [17:22:25]line ПРОДАЖА [17:22:25]line ТРК (МРК, ГНК) : 41 [17:22:25]line Товар: 2710194210 [17:22:25]line D-ENERGY ДТ-К-5 [17:22:25]line 25.910 * 77.20 [17:22:25]line = 2000.25 [17:22:25]line НДС 12% НСП 1% [17:22:25]line > о реализуемом товаре [17:22:25]line ИТОГО: 2000.25 [17:22:25]line НСП 1% : 17.70 [17:22:25]line НДС 12% : 212.42 [17:22:25]line Наличными: 0.00 [17:22:25]line Безнал.: 2000.25 [17:22:25]line Место: АЗС № 86 "Партнер Нефть" [17:22:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:22:25]line СНО: Общий режим [17:22:25]line Чек 286 23.10.2024 17:22 [17:22:25]line Смена: 462 ФФД: 1.0 [17:22:25]line ЗНМ: 0300000155 [17:22:25]line РНМ: 0000000000100030 [17:22:25]line Версия ККМ: 001 [17:22:25]line Платежная система: Mbank [17:22:25]line ФМ: 0000000000965340 [17:22:25]line ФД: 188828 [17:22:25]line ФПД: 112304865103108 [17:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172225&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188828&fm=112304865103108&tin=02508201610067®Number=0000000000100030&sum=200025 [17:22:25]OFD Sender: Processing packet 188828 [packets to send 1062, broken 1061] [17:22:25]ProducePacketName [17:22:25]name=ofd_packets/00188828 [17:22:25]OFD Sender: To server: pG, [17:22:25]CommunicateWithHost lk.salyk.kg:30040 [17:22:25]ConnectInit lk.salyk.kg [17:22:25]written 0, free lines is 4095 [17:22:26]Connected sock=10 [17:22:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 51 C1 0D 01 8F 3F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 D1 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E1 02 00 35 04 06 00 66 24 03 97 4D 04 0B 62 3B 78 DC 3A 6F BB [17:22:26]Write to MH i2c: 01 00 00 47 16 5D [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: 01 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: 01 07 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: 01 07 00 47 16 00 00 00 00 00 9B 0C 0B [17:22:26]RasterBufferAndPrint [17:22:26]line [17:22:26]line [17:22:26]line [17:22:26]line [17:22:26]line [17:22:26]written 0, free lines is 3230 [17:22:26]MH_Cut [17:22:26]Write to MH i2c: D1 01 00 4E 16 01 36 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: D1 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: D1 01 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: D1 01 00 4E 16 00 35 [17:22:26]Write to MH i2c: 01 00 00 4F 16 65 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A5 15 47 00 5A 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E1 02 00 F4 03 04 00 BB DA 18 67 B6 04 01 00 00 76 D1 D2 77 E8 4B 00 5F [17:22:26]CommunicateWithHost err = 0 [17:22:26]CheckOFDResponse [17:22:26]1017 (14) - 77093643461234 [17:22:26]1041 (16) - 0000000000965340 [17:22:26]1040 (4) - 188828 [17:22:26]1012 (4) - 23.10.2024 11:15 [17:22:26]1206 (1) - 0 [17:22:26]OFD Sender: Remove packet 188828 [17:22:26]ProducePacketName [17:22:26]name=ofd_packets/00188828 [17:22:26]NVStorageDeleteData [17:22:26]OFD Sender: No OFD packet to send [17:22:27]*** Cut start [17:22:27]*** Partial cut [17:22:27]*** CUTSNS_PIN = 1 [17:22:27]*** CUTSNS_PIN = 0 [17:22:27]*** Brake cut motor [17:22:28]Read from MH i2c: 01 [17:22:28]MH_I2C_Read... [17:22:28]*** Stop cut motor [17:22:28]*** Cut end [17:22:28]Read from MH i2c: 01 07 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: 01 07 00 4F 16 00 00 00 00 00 FF 0F 7A [17:22:28]process_action close_receipt done [17:22:28]requested_data is exist [17:22:28]produce_requested_data [17:22:28]requested_item fm.sn is exist - process it [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 11 00 00 [17:22:28]Write to MH i2c: E2 08 00 50 16 80 11 00 00 00 00 00 00 E0 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 17 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 17 00 50 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [17:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:28]wFMCommunicate OK [17:22:28]requested_item fd.num is exist - process it [17:22:28]SAM_PROTO_GetFieldsCounters [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 13 00 00 [17:22:28]Write to MH i2c: E2 08 00 51 16 80 13 00 00 00 00 00 00 E3 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 62 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 62 00 51 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [17:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:28]wFMCommunicate OK [17:22:28]SAM_PROTO_GetFieldsCounters done [17:22:28]requested_item shift.num is exist - process it [17:22:28]requested_item shift.opened is exist - process it [17:22:28]req_shift_opened [17:22:28]FM_GetShiftState [17:22:28]SAM_PROTO_GetShiftState [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 13 01 00 [17:22:28]Write to MH i2c: E2 08 00 52 16 80 13 01 00 00 00 00 00 E5 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 0E 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 0E 00 52 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CD [17:22:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:22:28]wFMCommunicate OK [17:22:28]SAM_PROTO_GetShiftState done [17:22:28]FM_GetShiftState done [17:22:28]req_shift_opened done [17:22:28]requested_item shift.open_date is exist - process it [17:22:28]req_shift_open_date [17:22:28]req_shift_open_date done [17:22:28]produce_requested_data done [17:22:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188828,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:22:28]process_action_free close_receipt [17:22:28]json_value_free [17:22:28]json_value_free done [17:22:28]process_json_proto returns [17:22:28]Send response to host [17:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188828,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:22:28]free response buf [17:22:28]execute_script done [17:22:28]execute_script returns [17:22:28]free content buf [17:22:28]Sock 9.Close socket [17:22:28]Sock 9.Thread stoped [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]accept exits with 7 [17:22:41]New connection [17:22:41]New thread 3067350372 created [17:22:41]Thread 3067207012 joined [17:22:41]Waiting for new connection... [17:22:41] Sock 7.Parse request [17:22:41]Sock 7.Check first char [17:22:41]Sock 7.First char is OK [17:22:41]request: POST /json_proto HTTP/1.0 [17:22:41]Method: POST [17:22:41]URL: /json_proto [17:22:41]Method is POST - this is cgi request [17:22:41]url: /json_proto [17:22:41]query_string will be loaded in cgi processing [17:22:41]execute_cgi json_proto POST (null) [17:22:41]execute_cgi path=json_proto method=POST [17:22:41]POST find Content-Length [17:22:41]Host: 172.17.42.131:8080 [17:22:41]Content-Length: 677 [17:22:41]Content-Type: application/json [17:22:41] [17:22:41]POST finish read [17:22:41]Found Content-Length = 677 [17:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:41]execute_script... [17:22:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:41]POST & json_proto [17:22:41]process_json_proto [17:22:41]json parsed OK: [17:22:41]protocol is kg_v1.0 [17:22:41]action value=close_receipt [17:22:41]process_action close_receipt [17:22:41]cmd_close_receipt [17:22:41]MH_GetDate [17:22:41]Write to MH i2c: F0 00 00 53 16 58 [17:22:41]Write i2c OK [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: F0 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: F0 09 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: F0 09 00 53 16 00 E2 30 19 67 A0 18 CA 66 DB [17:22:41]GetLastDocTimeStamp 1729704145 [17:22:41]current date 1729704162 [17:22:41]FM_GetShiftState [17:22:41]SAM_PROTO_GetShiftState [17:22:41]wFMCommunicate request_size=4 [17:22:41]MH_SAM_APDU [17:22:41]CAPDU: 80 13 01 00 [17:22:41]Write to MH i2c: E2 08 00 54 16 80 13 01 00 00 00 00 00 E7 [17:22:41]Write i2c OK [17:22:41]MH_I2C_Read... [17:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:41]Read from MH i2c: E2 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 0E 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 0E 00 54 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CF [17:22:41]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:22:41]wFMCommunicate OK [17:22:41]SAM_PROTO_GetShiftState done [17:22:41]FM_GetShiftState done [17:22:41]opened in 1729642525 [17:22:41]opened+sec_in_day 1729728925 [17:22:41]quantity*price = 50041 [17:22:41]sum+1 = 50042 [17:22:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 287 23.10.2024 17:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188829 ФПД: 267110976534604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172242&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188829&fm=267110976534604&tin=02508201610067®Number=0000000000100030&sum=50000 [17:22:42]StoreToDocumentArchive [17:22:42]shift 462 fd 188829 [17:22:42]save to /storage/0462/doc_00188829 [17:22:42]save last doc name /storage/0462/doc_00188829 to /storage/kkm_last_doc_name [17:22:42]save OK [17:22:42]Clear old archive folders... [17:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:42]tlvbuf is 01144240 [17:22:42]SAM_PROTO_ClearQueue [17:22:42]wFMCommunicate request_size=4 [17:22:42]MH_SAM_APDU [17:22:42]CAPDU: 80 09 00 00 [17:22:42]Write to MH i2c: E2 08 00 61 16 80 09 00 00 00 00 00 00 E9 [17:22:42]Write i2c OK [17:22:42]MH_I2C_Read... [17:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:42]Read from MH i2c: E2 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 03 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 03 00 61 16 00 90 00 EB [17:22:42]RAPDU: 90 00 [17:22:42]wFMCommunicate OK [17:22:42]SAM_PROTO_ClearQueue done [17:22:42]KKMCreateOFDPacket [17:22:42]OFDProtocolAddRootSTLVToBuf [17:22:42]FM_MakeSignedData [17:22:42]FM_MakeSignedData [17:22:42]SAM_PROTO_SignData [17:22:42]wFMCommunicate request_size=4 [17:22:42]MH_SAM_APDU [17:22:42]CAPDU: 80 0D 01 02 [17:22:42]Write to MH i2c: E2 08 00 62 16 80 0D 01 02 00 00 00 00 F1 [17:22:42]Write i2c OK [17:22:42]MH_I2C_Read... [17:22:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:42]Read from MH i2c: E2 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 03 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 03 00 62 16 00 90 00 EC [17:22:42]RAPDU: 90 00 [17:22:42]wFMCommunicate OK [17:22:42]wFMCommunicate request_size=255 [17:22:42]MH_SAM_APDU [17:22:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 E2 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E1 02 00 35 04 06 00 F2 [17:22:42]Write to MH i2c: E2 02 01 63 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 E2 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E1 02 00 35 04 06 00 F2 00 00 57 [17:22:42]Write i2c OK [17:22:42]MH_I2C_Read... [17:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:43]Read from MH i2c: E2 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 03 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 03 00 63 16 00 90 00 ED [17:22:43]RAPDU: 90 00 [17:22:43]wFMCommunicate OK [17:22:43]wFMCommunicate request_size=10 [17:22:43]MH_SAM_APDU [17:22:43]CAPDU: 80 0D 02 02 05 EF 9E DF 38 4C [17:22:43]Write to MH i2c: E2 0D 00 64 16 80 0D 02 02 05 00 EF 9E DF 38 4C 00 00 EE [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:43]Read from MH i2c: E2 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 03 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [17:22:43]RAPDU: 90 00 [17:22:43]wFMCommunicate OK [17:22:43]wFMCommunicate request_size=4 [17:22:43]MH_SAM_APDU [17:22:43]CAPDU: 80 0D 03 02 [17:22:43]Write to MH i2c: E2 08 00 65 16 80 0D 03 02 00 00 00 00 F6 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:43]Read from MH i2c: E2 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 0B 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 0B 00 65 16 00 69 AB 81 19 58 30 B6 40 90 00 23 [17:22:43]RAPDU: 69 AB 81 19 58 30 B6 40 90 00 [17:22:43]wFMCommunicate OK [17:22:43]SAM_PROTO_SignData done [17:22:43]FM_MakeSignedData done [17:22:43]CreateOFDProtocolMessage [17:22:43]wFMCommunicate request_size=4 [17:22:43]MH_SAM_APDU [17:22:43]CAPDU: 80 11 00 00 [17:22:43]Write to MH i2c: E2 08 00 66 16 80 11 00 00 00 00 00 00 F6 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:43]Read from MH i2c: E2 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 17 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 17 00 66 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 44 [17:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:43]wFMCommunicate OK [17:22:43]CreateOFDProtocolMessage done [17:22:43]OFDSenderStorePacket 188829 [17:22:43]StoreOFDPacket docnum=188829 [17:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 73 39 07 01 BC 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 E2 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E1 02 00 35 04 06 00 F2 EF 9E DF 38 4C 69 AB 81 19 58 30 B6 40 [17:22:43]CheckFolder [17:22:43]dirname=/storage/ofd_packets [17:22:43]CheckFolder done [17:22:43]ProducePacketName [17:22:43]name=ofd_packets/00188829 [17:22:43]NVStorageSaveData ofd_packets/00188829 [17:22:43]File name is /storage/ofd_packets/00188829 [17:22:43]Write 301 bytes [17:22:43]NVStorageSaveData done [17:22:43]OFDSenderStorePacket done [17:22:43]KKMCreateOFDPacket done [17:22:43]NVStorageSaveData kkm_last_timestamp [17:22:43]File name is /storage/kkm_last_timestamp [17:22:43]Write 4 bytes [17:22:43]NVStorageSaveData done [17:22:43]ExternCall_PrintAddStr [17:22:43]wPrintStart [17:22:43]Write to MH i2c: 01 00 00 67 16 7D [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: 01 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: 01 07 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: 01 07 00 67 16 00 00 00 00 00 FF 0F 92 [17:22:43]RasterBufferAndPrint [17:22:43]line Счет N : (1)210890 [17:22:43]line ИНН: 02508201610067 [17:22:43]line Контрольно-Кассовый Чек [17:22:43]line ПРОДАЖА [17:22:43]line ТРК (МРК, ГНК) : 22 [17:22:43]line Товар: 2710124130 [17:22:43]line Аи-92-К-3 [17:22:43]line 7.480 * 66.90 [17:22:43]line = 500.41 [17:22:43]line НДС 12% НСП 1% [17:22:43]line > о реализуемом товаре [17:22:43]line ОКРУГЛЕНИЕ: -0.41 [17:22:43]line ИТОГО: 500.00 [17:22:43]line Внесено: 500.00 [17:22:43]line СДАЧА: 0.00 [17:22:43]line НСП 1% : 4.43 [17:22:43]line НДС 12% : 53.14 [17:22:43]line Наличными: 500.00 [17:22:43]line Безнал.: 0.00 [17:22:43]line Место: АЗС № 86 "Партнер Нефть" [17:22:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:22:43]line СНО: Общий режим [17:22:43]line Чек 287 23.10.2024 17:22 [17:22:43]line Смена: 462 ФФД: 1.0 [17:22:43]line ЗНМ: 0300000155 [17:22:43]line РНМ: 0000000000100030 [17:22:43]line Версия ККМ: 001 [17:22:43]line ФМ: 0000000000965340 [17:22:43]line ФД: 188829 [17:22:43]line ФПД: 267110976534604 [17:22:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172242&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188829&fm=267110976534604&tin=02508201610067®Number=0000000000100030&sum=50000 [17:22:43]written 0, free lines is 4095 [17:22:43]OFD Sender: Processing packet 188829 [packets to send 1062, broken 1061] [17:22:43]ProducePacketName [17:22:43]name=ofd_packets/00188829 [17:22:43]OFD Sender: To server: pG, [17:22:43]CommunicateWithHost lk.salyk.kg:30040 [17:22:43]ConnectInit lk.salyk.kg [17:22:43]Connected sock=9 [17:22:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 73 39 07 01 BC 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 E2 30 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E1 02 00 35 04 06 00 F2 EF 9E DF 38 4C 69 AB 81 19 58 30 B6 40 [17:22:43]Write to MH i2c: 01 00 00 92 16 A8 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: 01 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: 01 07 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: 01 07 00 92 16 00 00 00 00 00 60 0C 1B [17:22:43]RasterBufferAndPrint [17:22:43]line [17:22:43]line [17:22:43]line [17:22:43]line [17:22:43]line [17:22:43]written 0, free lines is 3172 [17:22:43]MH_Cut [17:22:43]Write to MH i2c: D1 01 00 99 16 01 81 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: D1 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: D1 01 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: D1 01 00 99 16 00 80 [17:22:43]Write to MH i2c: 01 00 00 9A 16 B0 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5A BF 47 00 D1 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E1 02 00 F4 03 04 00 CC DA 18 67 B6 04 01 00 00 01 11 F7 95 64 45 99 12 [17:22:43]CommunicateWithHost err = 0 [17:22:43]CheckOFDResponse [17:22:43]1017 (14) - 77093643461234 [17:22:43]1041 (16) - 0000000000965340 [17:22:43]1040 (4) - 188829 [17:22:43]1012 (4) - 23.10.2024 11:15 [17:22:43]1206 (1) - 0 [17:22:43]OFD Sender: Remove packet 188829 [17:22:43]ProducePacketName [17:22:43]name=ofd_packets/00188829 [17:22:43]NVStorageDeleteData [17:22:44]OFD Sender: No OFD packet to send [17:22:44]*** Cut start [17:22:44]*** Partial cut [17:22:44]*** CUTSNS_PIN = 1 [17:22:44]*** CUTSNS_PIN = 0 [17:22:45]*** Brake cut motor [17:22:45]Read from MH i2c: 01 [17:22:45]MH_I2C_Read... [17:22:45]*** Stop cut motor [17:22:45]*** Cut end [17:22:45]Read from MH i2c: 01 07 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: 01 07 00 9A 16 00 00 00 00 00 FF 0F C5 [17:22:45]process_action close_receipt done [17:22:45]requested_data is exist [17:22:45]produce_requested_data [17:22:45]requested_item fm.sn is exist - process it [17:22:45]wFMCommunicate request_size=4 [17:22:45]MH_SAM_APDU [17:22:45]CAPDU: 80 11 00 00 [17:22:45]Write to MH i2c: E2 08 00 9B 16 80 11 00 00 00 00 00 00 2B [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:45]Read from MH i2c: E2 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 17 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 17 00 9B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [17:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:45]wFMCommunicate OK [17:22:45]requested_item fd.num is exist - process it [17:22:45]SAM_PROTO_GetFieldsCounters [17:22:45]wFMCommunicate request_size=4 [17:22:45]MH_SAM_APDU [17:22:45]CAPDU: 80 13 00 00 [17:22:45]Write to MH i2c: E2 08 00 9C 16 80 13 00 00 00 00 00 00 2E [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:45]Read from MH i2c: E2 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 62 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 62 00 9C 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:22:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:45]wFMCommunicate OK [17:22:45]SAM_PROTO_GetFieldsCounters done [17:22:45]requested_item shift.num is exist - process it [17:22:45]requested_item shift.opened is exist - process it [17:22:45]req_shift_opened [17:22:45]FM_GetShiftState [17:22:45]SAM_PROTO_GetShiftState [17:22:45]wFMCommunicate request_size=4 [17:22:45]MH_SAM_APDU [17:22:45]CAPDU: 80 13 01 00 [17:22:45]Write to MH i2c: E2 08 00 9D 16 80 13 01 00 00 00 00 00 30 [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:45]Read from MH i2c: E2 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 0E 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 0E 00 9D 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 18 [17:22:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:22:45]wFMCommunicate OK [17:22:45]SAM_PROTO_GetShiftState done [17:22:45]FM_GetShiftState done [17:22:45]req_shift_opened done [17:22:45]requested_item shift.open_date is exist - process it [17:22:45]req_shift_open_date [17:22:45]req_shift_open_date done [17:22:45]produce_requested_data done [17:22:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188829,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:22:45]process_action_free close_receipt [17:22:45]json_value_free [17:22:45]json_value_free done [17:22:45]process_json_proto returns [17:22:45]Send response to host [17:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188829,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:22:45]free response buf [17:22:45]execute_script done [17:22:45]execute_script returns [17:22:45]free content buf [17:22:45]Sock 7.Close socket [17:22:45]Sock 7.Thread stoped [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:11]accept exits with 10 [17:26:11]New connection [17:26:11]New thread 3067207012 created [17:26:11]Thread 3067350372 joined [17:26:11]Waiting for new connection... [17:26:11] Sock 10.Parse request [17:26:11]Sock 10.Check first char [17:26:11]Sock 10.First char is OK [17:26:11]request: POST /json_proto HTTP/1.0 [17:26:11]Method: POST [17:26:11]URL: /json_proto [17:26:11]Method is POST - this is cgi request [17:26:11]url: /json_proto [17:26:11]query_string will be loaded in cgi processing [17:26:11]execute_cgi json_proto POST (null) [17:26:11]execute_cgi path=json_proto method=POST [17:26:11]POST find Content-Length [17:26:11]Host: 172.17.42.131:8080 [17:26:11]Content-Length: 754 [17:26:11]Content-Type: application/json [17:26:11] [17:26:11]POST finish read [17:26:11]Found Content-Length = 754 [17:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30110813", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:11]execute_script... [17:26:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30110813", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:11]POST & json_proto [17:26:11]process_json_proto [17:26:11]json parsed OK: [17:26:11]protocol is kg_v1.0 [17:26:11]action value=close_receipt [17:26:11]process_action close_receipt [17:26:11]cmd_close_receipt [17:26:11]MH_GetDate [17:26:11]Write to MH i2c: F0 00 00 9E 16 A3 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: F0 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: F0 09 00 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: F0 09 00 9E 16 00 B4 31 19 67 A0 18 CA 66 F9 [17:26:11]GetLastDocTimeStamp 1729704162 [17:26:11]current date 1729704372 [17:26:11]FM_GetShiftState [17:26:11]SAM_PROTO_GetShiftState [17:26:11]wFMCommunicate request_size=4 [17:26:11]MH_SAM_APDU [17:26:11]CAPDU: 80 13 01 00 [17:26:11]Write to MH i2c: E2 08 00 9F 16 80 13 01 00 00 00 00 00 32 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:11]Read from MH i2c: E2 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: E2 0E 00 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: E2 0E 00 9F 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1A [17:26:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:26:11]wFMCommunicate OK [17:26:11]SAM_PROTO_GetShiftState done [17:26:11]FM_GetShiftState done [17:26:11]opened in 1729642525 [17:26:11]opened+sec_in_day 1729728925 [17:26:11]quantity*price = 0 [17:26:11]sum+1 = 1 [17:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 288 23.10.2024 17:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30110813 ФМ: 0000000000965340 ФД: 188830 ФПД: 158294670779927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172612&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188830&fm=158294670779927&tin=02508201610067®Number=0000000000100030&sum=0 [17:26:12]StoreToDocumentArchive [17:26:12]shift 462 fd 188830 [17:26:12]save to /storage/0462/doc_00188830 [17:26:12]save last doc name /storage/0462/doc_00188830 to /storage/kkm_last_doc_name [17:26:12]save OK [17:26:12]Clear old archive folders... [17:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:12]tlvbuf is 0116BED0 [17:26:12]SAM_PROTO_ClearQueue [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 09 00 00 [17:26:12]Write to MH i2c: E2 08 00 AC 16 80 09 00 00 00 00 00 00 34 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 AC 16 00 90 00 36 [17:26:12]RAPDU: 90 00 [17:26:12]wFMCommunicate OK [17:26:12]SAM_PROTO_ClearQueue done [17:26:12]KKMCreateOFDPacket [17:26:12]OFDProtocolAddRootSTLVToBuf [17:26:12]FM_MakeSignedData [17:26:12]FM_MakeSignedData [17:26:12]SAM_PROTO_SignData [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 0D 01 02 [17:26:12]Write to MH i2c: E2 08 00 AD 16 80 0D 01 02 00 00 00 00 3C [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 03 00 AD 16 00 90 00 37 [17:26:12]RAPDU: 90 00 [17:26:12]wFMCommunicate OK [17:26:12]wFMCommunicate request_size=255 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 B4 31 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E1 02 00 35 04 06 00 8F [17:26:12]Write to MH i2c: E2 02 01 AE 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 B4 31 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E1 02 00 35 04 06 00 8F 00 00 34 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:13]Read from MH i2c: E2 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 03 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 03 00 AE 16 00 90 00 38 [17:26:13]RAPDU: 90 00 [17:26:13]wFMCommunicate OK [17:26:13]wFMCommunicate request_size=10 [17:26:13]MH_SAM_APDU [17:26:13]CAPDU: 80 0D 02 02 05 F7 D9 9F 26 17 [17:26:13]Write to MH i2c: E2 0D 00 AF 16 80 0D 02 02 05 00 F7 D9 9F 26 17 00 00 F5 [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:13]Read from MH i2c: E2 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 03 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [17:26:13]RAPDU: 90 00 [17:26:13]wFMCommunicate OK [17:26:13]wFMCommunicate request_size=4 [17:26:13]MH_SAM_APDU [17:26:13]CAPDU: 80 0D 03 02 [17:26:13]Write to MH i2c: E2 08 00 B0 16 80 0D 03 02 00 00 00 00 41 [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:13]Read from MH i2c: E2 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 0B 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 0B 00 B0 16 00 15 EE FC 20 92 A6 84 8A 90 00 A7 [17:26:13]RAPDU: 15 EE FC 20 92 A6 84 8A 90 00 [17:26:13]wFMCommunicate OK [17:26:13]SAM_PROTO_SignData done [17:26:13]FM_MakeSignedData done [17:26:13]CreateOFDProtocolMessage [17:26:13]wFMCommunicate request_size=4 [17:26:13]MH_SAM_APDU [17:26:13]CAPDU: 80 11 00 00 [17:26:13]Write to MH i2c: E2 08 00 B1 16 80 11 00 00 00 00 00 00 41 [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:13]Read from MH i2c: E2 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 17 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 17 00 B1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8F [17:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:26:13]wFMCommunicate OK [17:26:13]CreateOFDProtocolMessage done [17:26:13]OFDSenderStorePacket 188830 [17:26:13]StoreOFDPacket docnum=188830 [17:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F8 F3 07 01 D2 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 B4 31 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E1 02 00 35 04 06 00 8F F7 D9 9F 26 17 15 EE FC 20 92 A6 84 8A [17:26:13]CheckFolder [17:26:13]dirname=/storage/ofd_packets [17:26:13]CheckFolder done [17:26:13]ProducePacketName [17:26:13]name=ofd_packets/00188830 [17:26:13]NVStorageSaveData ofd_packets/00188830 [17:26:13]File name is /storage/ofd_packets/00188830 [17:26:13]Write 301 bytes [17:26:13]NVStorageSaveData done [17:26:13]OFDSenderStorePacket done [17:26:13]KKMCreateOFDPacket done [17:26:13]NVStorageSaveData kkm_last_timestamp [17:26:13]File name is /storage/kkm_last_timestamp [17:26:13]Write 4 bytes [17:26:13]NVStorageSaveData done [17:26:13]ExternCall_PrintAddStr [17:26:13]wPrintStart [17:26:13]Write to MH i2c: 01 00 00 B2 16 C8 [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 07 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 07 00 B2 16 00 00 00 00 00 FF 0F DD [17:26:13]RasterBufferAndPrint [17:26:13]line Счет N : (1)210891 [17:26:13]line ИНН: 02508201610067 [17:26:13]line Контрольно-Кассовый Чек [17:26:13]line ПРОДАЖА [17:26:13]line ТРК (МРК, ГНК) : 42 [17:26:13]line Товар: 2710124130 [17:26:13]line Аи-92-К-3 [17:26:13]line 30.000 * 0.00 [17:26:13]line = 0.00 [17:26:13]line НДС 12% НСП 1% [17:26:13]line > о реализуемом товаре [17:26:13]line ИТОГО: 0.00 [17:26:13]line НСП 1% : 0.00 [17:26:13]line НДС 12% : 0.00 [17:26:13]line Наличными: 0.00 [17:26:13]line Безнал.: 0.00 [17:26:13]line Место: АЗС № 86 "Партнер Нефть" [17:26:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:26:13]line СНО: Общий режим [17:26:13]line Чек 288 23.10.2024 17:26 [17:26:13]line Смена: 462 ФФД: 1.0 [17:26:13]line ЗНМ: 0300000155 [17:26:13]line РНМ: 0000000000100030 [17:26:13]line Версия ККМ: 001 [17:26:13]line Талоны: ТК ГПНА Online [17:26:13]line 30110813 [17:26:13]line ФМ: 0000000000965340 [17:26:13]line ФД: 188830 [17:26:13]line ФПД: 158294670779927 [17:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172612&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188830&fm=158294670779927&tin=02508201610067®Number=0000000000100030&sum=0 [17:26:13]written 0, free lines is 4095 [17:26:13]OFD Sender: Processing packet 188830 [packets to send 1062, broken 1061] [17:26:13]ProducePacketName [17:26:13]name=ofd_packets/00188830 [17:26:13]OFD Sender: To server: pG, [17:26:13]CommunicateWithHost lk.salyk.kg:30040 [17:26:13]ConnectInit lk.salyk.kg [17:26:13]Write to MH i2c: 01 00 00 DC 16 F2 [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 07 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 07 00 DC 16 00 00 00 00 00 74 0C 79 [17:26:13]RasterBufferAndPrint [17:26:13]line [17:26:13]line [17:26:13]line [17:26:13]line [17:26:13]line [17:26:13]written 0, free lines is 3192 [17:26:13]Connected sock=11 [17:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F8 F3 07 01 D2 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 B4 31 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E1 02 00 35 04 06 00 8F F7 D9 9F 26 17 15 EE FC 20 92 A6 84 8A [17:26:13]MH_Cut [17:26:13]Write to MH i2c: D1 01 00 E3 16 01 CB [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: D1 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: D1 01 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: D1 01 00 E3 16 00 CA [17:26:13]Write to MH i2c: 01 00 00 E4 16 FA [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F1 E4 47 00 DC CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E1 02 00 F4 03 04 00 9F DB 18 67 B6 04 01 00 00 D3 41 67 DE 8F 45 D0 8B [17:26:14]CommunicateWithHost err = 0 [17:26:14]CheckOFDResponse [17:26:14]1017 (14) - 77093643461234 [17:26:14]1041 (16) - 0000000000965340 [17:26:14]1040 (4) - 188830 [17:26:14]1012 (4) - 23.10.2024 11:18 [17:26:14]1206 (1) - 0 [17:26:14]OFD Sender: Remove packet 188830 [17:26:14]ProducePacketName [17:26:14]name=ofd_packets/00188830 [17:26:14]NVStorageDeleteData [17:26:14]OFD Sender: No OFD packet to send [17:26:15]*** Cut start [17:26:15]*** Partial cut [17:26:15]*** CUTSNS_PIN = 1 [17:26:15]*** CUTSNS_PIN = 0 [17:26:15]*** Brake cut motor [17:26:15]Read from MH i2c: 01 [17:26:15]MH_I2C_Read... [17:26:15]*** Stop cut motor [17:26:15]*** Cut end [17:26:15]Read from MH i2c: 01 07 00 [17:26:15]MH_I2C_Read... [17:26:15]Read from MH i2c: 01 07 00 E4 16 00 00 00 00 00 FF 0F 0F [17:26:15]process_action close_receipt done [17:26:15]requested_data is exist [17:26:15]produce_requested_data [17:26:15]requested_item fm.sn is exist - process it [17:26:15]wFMCommunicate request_size=4 [17:26:15]MH_SAM_APDU [17:26:15]CAPDU: 80 11 00 00 [17:26:15]Write to MH i2c: E2 08 00 E5 16 80 11 00 00 00 00 00 00 75 [17:26:15]Write i2c OK [17:26:15]MH_I2C_Read... [17:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:15]Read from MH i2c: E2 [17:26:15]MH_I2C_Read... [17:26:15]Read from MH i2c: E2 17 00 [17:26:15]MH_I2C_Read... [17:26:15]Read from MH i2c: E2 17 00 E5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [17:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:26:15]wFMCommunicate OK [17:26:15]requested_item fd.num is exist - process it [17:26:15]SAM_PROTO_GetFieldsCounters [17:26:15]wFMCommunicate request_size=4 [17:26:15]MH_SAM_APDU [17:26:15]CAPDU: 80 13 00 00 [17:26:15]Write to MH i2c: E2 08 00 E6 16 80 13 00 00 00 00 00 00 78 [17:26:15]Write i2c OK [17:26:15]MH_I2C_Read... [17:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:15]Read from MH i2c: E2 [17:26:15]MH_I2C_Read... [17:26:15]Read from MH i2c: E2 62 00 [17:26:15]MH_I2C_Read... [17:26:15]Read from MH i2c: E2 62 00 E6 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [17:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:15]wFMCommunicate OK [17:26:15]SAM_PROTO_GetFieldsCounters done [17:26:15]requested_item shift.num is exist - process it [17:26:15]requested_item shift.opened is exist - process it [17:26:15]req_shift_opened [17:26:15]FM_GetShiftState [17:26:15]SAM_PROTO_GetShiftState [17:26:15]wFMCommunicate request_size=4 [17:26:15]MH_SAM_APDU [17:26:15]CAPDU: 80 13 01 00 [17:26:15]Write to MH i2c: E2 08 00 E7 16 80 13 01 00 00 00 00 00 7A [17:26:15]Write i2c OK [17:26:15]MH_I2C_Read... [17:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:15]Read from MH i2c: E2 [17:26:15]MH_I2C_Read... [17:26:15]Read from MH i2c: E2 0E 00 [17:26:15]MH_I2C_Read... [17:26:15]Read from MH i2c: E2 0E 00 E7 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 62 [17:26:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:26:15]wFMCommunicate OK [17:26:15]SAM_PROTO_GetShiftState done [17:26:15]FM_GetShiftState done [17:26:15]req_shift_opened done [17:26:15]requested_item shift.open_date is exist - process it [17:26:15]req_shift_open_date [17:26:15]req_shift_open_date done [17:26:15]produce_requested_data done [17:26:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188830,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:26:15]process_action_free close_receipt [17:26:15]json_value_free [17:26:15]json_value_free done [17:26:15]process_json_proto returns [17:26:15]Send response to host [17:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188830,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:26:15]free response buf [17:26:15]execute_script done [17:26:15]execute_script returns [17:26:15]free content buf [17:26:15]Sock 10.Close socket [17:26:15]Sock 10.Thread stoped [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:37]accept exits with 7 [17:27:37]New connection [17:27:37]New thread 3067350372 created [17:27:37]Thread 3067207012 joined [17:27:37]Waiting for new connection... [17:27:37] Sock 7.Parse request [17:27:37]Sock 7.Check first char [17:27:37]Sock 7.First char is OK [17:27:37]request: POST /json_proto HTTP/1.0 [17:27:37]Method: POST [17:27:37]URL: /json_proto [17:27:37]Method is POST - this is cgi request [17:27:37]url: /json_proto [17:27:37]query_string will be loaded in cgi processing [17:27:37]execute_cgi json_proto POST (null) [17:27:37]execute_cgi path=json_proto method=POST [17:27:37]POST find Content-Length [17:27:37]Host: 172.17.42.131:8080 [17:27:37]Content-Length: 678 [17:27:37]Content-Type: application/json [17:27:37] [17:27:37]POST finish read [17:27:37]Found Content-Length = 678 [17:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:37]execute_script... [17:27:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:37]POST & json_proto [17:27:37]process_json_proto [17:27:37]json parsed OK: [17:27:37]protocol is kg_v1.0 [17:27:37]action value=close_receipt [17:27:37]process_action close_receipt [17:27:37]cmd_close_receipt [17:27:37]MH_GetDate [17:27:37]Write to MH i2c: F0 00 00 E8 16 ED [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: F0 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: F0 09 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: F0 09 00 E8 16 00 0A 32 19 67 A0 18 CA 66 9A [17:27:37]GetLastDocTimeStamp 1729704372 [17:27:37]current date 1729704458 [17:27:37]FM_GetShiftState [17:27:37]SAM_PROTO_GetShiftState [17:27:37]wFMCommunicate request_size=4 [17:27:37]MH_SAM_APDU [17:27:37]CAPDU: 80 13 01 00 [17:27:37]Write to MH i2c: E2 08 00 E9 16 80 13 01 00 00 00 00 00 7C [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:37]Read from MH i2c: E2 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 0E 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 0E 00 E9 16 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 64 [17:27:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:27:37]wFMCommunicate OK [17:27:37]SAM_PROTO_GetShiftState done [17:27:37]FM_GetShiftState done [17:27:37]opened in 1729642525 [17:27:37]opened+sec_in_day 1729728925 [17:27:37]quantity*price = 70044 [17:27:37]sum+1 = 70045 [17:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 289 23.10.2024 17:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188831 ФПД: 18860457453627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172739&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188831&fm=18860457453627&tin=02508201610067®Number=0000000000100030&sum=70000 [17:27:38]StoreToDocumentArchive [17:27:38]shift 462 fd 188831 [17:27:38]save to /storage/0462/doc_00188831 [17:27:38]save last doc name /storage/0462/doc_00188831 to /storage/kkm_last_doc_name [17:27:38]save OK [17:27:38]Clear old archive folders... [17:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:38]tlvbuf is 01143B90 [17:27:38]SAM_PROTO_ClearQueue [17:27:38]wFMCommunicate request_size=4 [17:27:38]MH_SAM_APDU [17:27:38]CAPDU: 80 09 00 00 [17:27:38]Write to MH i2c: E2 08 00 F6 16 80 09 00 00 00 00 00 00 7E [17:27:38]Write i2c OK [17:27:38]MH_I2C_Read... [17:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:38]Read from MH i2c: E2 [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: E2 03 00 [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: E2 03 00 F6 16 00 90 00 80 [17:27:38]RAPDU: 90 00 [17:27:38]wFMCommunicate OK [17:27:38]SAM_PROTO_ClearQueue done [17:27:38]KKMCreateOFDPacket [17:27:38]OFDProtocolAddRootSTLVToBuf [17:27:38]FM_MakeSignedData [17:27:38]FM_MakeSignedData [17:27:38]SAM_PROTO_SignData [17:27:38]wFMCommunicate request_size=4 [17:27:38]MH_SAM_APDU [17:27:38]CAPDU: 80 0D 01 02 [17:27:38]Write to MH i2c: E2 08 00 F7 16 80 0D 01 02 00 00 00 00 86 [17:27:38]Write i2c OK [17:27:38]MH_I2C_Read... [17:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:38]Read from MH i2c: E2 [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: E2 03 00 [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: E2 03 00 F7 16 00 90 00 81 [17:27:38]RAPDU: 90 00 [17:27:38]wFMCommunicate OK [17:27:38]wFMCommunicate request_size=255 [17:27:38]MH_SAM_APDU [17:27:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 0B 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E1 02 00 35 04 06 00 11 [17:27:39]Write to MH i2c: E2 02 01 F8 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 0B 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E1 02 00 35 04 06 00 11 00 00 4A [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:39]Read from MH i2c: E2 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 03 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 03 00 F8 16 00 90 00 82 [17:27:39]RAPDU: 90 00 [17:27:39]wFMCommunicate OK [17:27:39]wFMCommunicate request_size=10 [17:27:39]MH_SAM_APDU [17:27:39]CAPDU: 80 0D 02 02 05 27 4A DD E8 3B [17:27:39]Write to MH i2c: E2 0D 00 F9 16 80 0D 02 02 05 00 27 4A DD E8 3B 00 00 04 [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:39]Read from MH i2c: E2 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 03 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [17:27:39]RAPDU: 90 00 [17:27:39]wFMCommunicate OK [17:27:39]wFMCommunicate request_size=4 [17:27:39]MH_SAM_APDU [17:27:39]CAPDU: 80 0D 03 02 [17:27:39]Write to MH i2c: E2 08 00 FA 16 80 0D 03 02 00 00 00 00 8B [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:39]Read from MH i2c: E2 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 0B 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 0B 00 FA 16 00 AD 0A 91 A0 86 3C C1 C3 90 00 BA [17:27:39]RAPDU: AD 0A 91 A0 86 3C C1 C3 90 00 [17:27:39]wFMCommunicate OK [17:27:39]SAM_PROTO_SignData done [17:27:39]FM_MakeSignedData done [17:27:39]CreateOFDProtocolMessage [17:27:39]wFMCommunicate request_size=4 [17:27:39]MH_SAM_APDU [17:27:39]CAPDU: 80 11 00 00 [17:27:39]Write to MH i2c: E2 08 00 FB 16 80 11 00 00 00 00 00 00 8B [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:39]Read from MH i2c: E2 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 17 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 17 00 FB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [17:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:27:39]wFMCommunicate OK [17:27:39]CreateOFDProtocolMessage done [17:27:39]OFDSenderStorePacket 188831 [17:27:39]StoreOFDPacket docnum=188831 [17:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 F4 07 01 93 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 0B 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E1 02 00 35 04 06 00 11 27 4A DD E8 3B AD 0A 91 A0 86 3C C1 C3 [17:27:39]CheckFolder [17:27:39]dirname=/storage/ofd_packets [17:27:39]CheckFolder done [17:27:39]ProducePacketName [17:27:39]name=ofd_packets/00188831 [17:27:39]NVStorageSaveData ofd_packets/00188831 [17:27:39]File name is /storage/ofd_packets/00188831 [17:27:39]Write 301 bytes [17:27:39]NVStorageSaveData done [17:27:39]OFDSenderStorePacket done [17:27:39]KKMCreateOFDPacket done [17:27:39]NVStorageSaveData kkm_last_timestamp [17:27:39]File name is /storage/kkm_last_timestamp [17:27:39]Write 4 bytes [17:27:39]NVStorageSaveData done [17:27:39]ExternCall_PrintAddStr [17:27:39]wPrintStart [17:27:39]Write to MH i2c: 01 00 00 FC 16 12 [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: 01 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: 01 07 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: 01 07 00 FC 16 00 00 00 00 00 FF 0F 27 [17:27:39]RasterBufferAndPrint [17:27:39]line Счет N : (1)210893 [17:27:39]line ИНН: 02508201610067 [17:27:39]line Контрольно-Кассовый Чек [17:27:39]line ПРОДАЖА [17:27:39]line ТРК (МРК, ГНК) : 22 [17:27:39]line Товар: 2710124130 [17:27:39]line Аи-92-К-3 [17:27:39]line 10.470 * 66.90 [17:27:39]line = 700.44 [17:27:39]line НДС 12% НСП 1% [17:27:39]line > о реализуемом товаре [17:27:39]line ОКРУГЛЕНИЕ: -0.44 [17:27:39]line ИТОГО: 700.00 [17:27:39]line Внесено: 700.00 [17:27:39]line СДАЧА: 0.00 [17:27:39]line НСП 1% : 6.20 [17:27:39]line НДС 12% : 74.38 [17:27:39]line Наличными: 700.00 [17:27:39]line Безнал.: 0.00 [17:27:39]line Место: АЗС № 86 "Партнер Нефть" [17:27:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:27:39]line СНО: Общий режим [17:27:39]line Чек 289 23.10.2024 17:27 [17:27:39]line Смена: 462 ФФД: 1.0 [17:27:39]line ЗНМ: 0300000155 [17:27:39]line РНМ: 0000000000100030 [17:27:39]line Версия ККМ: 001 [17:27:39]line ФМ: 0000000000965340 [17:27:39]line ФД: 188831 [17:27:39]line ФПД: 18860457453627 [17:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172739&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188831&fm=18860457453627&tin=02508201610067®Number=0000000000100030&sum=70000 [17:27:39]written 0, free lines is 4095 [17:27:39]OFD Sender: Processing packet 188831 [packets to send 1062, broken 1061] [17:27:39]ProducePacketName [17:27:39]name=ofd_packets/00188831 [17:27:39]OFD Sender: To server: pG, [17:27:39]CommunicateWithHost lk.salyk.kg:30040 [17:27:39]ConnectInit lk.salyk.kg [17:27:39]Connected sock=10 [17:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 F4 07 01 93 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 0B 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E1 02 00 35 04 06 00 11 27 4A DD E8 3B AD 0A 91 A0 86 3C C1 C3 [17:27:39]Write to MH i2c: 01 00 00 27 17 3E [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: 01 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: 01 07 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: 01 07 00 27 17 00 00 00 00 00 5C 0C AD [17:27:39]RasterBufferAndPrint [17:27:39]line [17:27:39]line [17:27:39]line [17:27:39]line [17:27:39]line [17:27:39]written 0, free lines is 3167 [17:27:39]MH_Cut [17:27:39]Write to MH i2c: D1 01 00 2E 17 01 17 [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: D1 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: D1 01 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: D1 01 00 2E 17 00 16 [17:27:39]Write to MH i2c: 01 00 00 2F 17 46 [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 03 76 47 00 9D 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 36 35 33 34 30 10 04 04 00 9F E1 02 00 F4 03 04 00 F5 DB 18 67 B6 04 01 00 00 40 F5 D1 4B 27 C8 5E 69 [17:27:40]CommunicateWithHost err = 0 [17:27:40]CheckOFDResponse [17:27:40]1017 (14) - 77093643461234 [17:27:40]1041 (16) - 0000000000965340 [17:27:40]1040 (4) - 188831 [17:27:40]1012 (4) - 23.10.2024 11:20 [17:27:40]1206 (1) - 0 [17:27:40]OFD Sender: Remove packet 188831 [17:27:40]ProducePacketName [17:27:40]name=ofd_packets/00188831 [17:27:40]NVStorageDeleteData [17:27:40]OFD Sender: No OFD packet to send [17:27:41]*** Cut start [17:27:41]*** Partial cut [17:27:41]*** CUTSNS_PIN = 1 [17:27:41]*** CUTSNS_PIN = 0 [17:27:41]*** Brake cut motor [17:27:41]Read from MH i2c: 01 [17:27:41]MH_I2C_Read... [17:27:41]*** Stop cut motor [17:27:41]*** Cut end [17:27:41]Read from MH i2c: 01 07 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: 01 07 00 2F 17 00 00 00 00 00 FF 0F 5B [17:27:41]process_action close_receipt done [17:27:41]requested_data is exist [17:27:41]produce_requested_data [17:27:41]requested_item fm.sn is exist - process it [17:27:41]wFMCommunicate request_size=4 [17:27:41]MH_SAM_APDU [17:27:41]CAPDU: 80 11 00 00 [17:27:41]Write to MH i2c: E2 08 00 30 17 80 11 00 00 00 00 00 00 C1 [17:27:41]Write i2c OK [17:27:41]MH_I2C_Read... [17:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:41]Read from MH i2c: E2 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 17 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 17 00 30 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [17:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:27:41]wFMCommunicate OK [17:27:41]requested_item fd.num is exist - process it [17:27:41]SAM_PROTO_GetFieldsCounters [17:27:41]wFMCommunicate request_size=4 [17:27:41]MH_SAM_APDU [17:27:41]CAPDU: 80 13 00 00 [17:27:41]Write to MH i2c: E2 08 00 31 17 80 13 00 00 00 00 00 00 C4 [17:27:41]Write i2c OK [17:27:41]MH_I2C_Read... [17:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:41]Read from MH i2c: E2 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 62 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 62 00 31 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [17:27:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:41]wFMCommunicate OK [17:27:41]SAM_PROTO_GetFieldsCounters done [17:27:41]requested_item shift.num is exist - process it [17:27:41]requested_item shift.opened is exist - process it [17:27:41]req_shift_opened [17:27:41]FM_GetShiftState [17:27:41]SAM_PROTO_GetShiftState [17:27:41]wFMCommunicate request_size=4 [17:27:41]MH_SAM_APDU [17:27:41]CAPDU: 80 13 01 00 [17:27:41]Write to MH i2c: E2 08 00 32 17 80 13 01 00 00 00 00 00 C6 [17:27:42]Write i2c OK [17:27:42]MH_I2C_Read... [17:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:42]Read from MH i2c: E2 [17:27:42]MH_I2C_Read... [17:27:42]Read from MH i2c: E2 0E 00 [17:27:42]MH_I2C_Read... [17:27:42]Read from MH i2c: E2 0E 00 32 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AE [17:27:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:27:42]wFMCommunicate OK [17:27:42]SAM_PROTO_GetShiftState done [17:27:42]FM_GetShiftState done [17:27:42]req_shift_opened done [17:27:42]requested_item shift.open_date is exist - process it [17:27:42]req_shift_open_date [17:27:42]req_shift_open_date done [17:27:42]produce_requested_data done [17:27:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188831,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:27:42]process_action_free close_receipt [17:27:42]json_value_free [17:27:42]json_value_free done [17:27:42]process_json_proto returns [17:27:42]Send response to host [17:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188831,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:27:42]free response buf [17:27:42]execute_script done [17:27:42]execute_script returns [17:27:42]free content buf [17:27:42]Sock 7.Close socket [17:27:42]Sock 7.Thread stoped [17:27:44]accept exits with 9 [17:27:44]New connection [17:27:44]New thread 3067207012 created [17:27:44]Thread 3067350372 joined [17:27:44]Waiting for new connection... [17:27:44] Sock 9.Parse request [17:27:44]Sock 9.Check first char [17:27:44]Sock 9.First char is OK [17:27:44]request: POST /json_proto HTTP/1.0 [17:27:44]Method: POST [17:27:44]URL: /json_proto [17:27:44]Method is POST - this is cgi request [17:27:44]url: /json_proto [17:27:44]query_string will be loaded in cgi processing [17:27:44]execute_cgi json_proto POST (null) [17:27:44]execute_cgi path=json_proto method=POST [17:27:44]POST find Content-Length [17:27:44]Host: 172.17.42.131:8080 [17:27:44]Content-Length: 753 [17:27:44]Content-Type: application/json [17:27:44] [17:27:44]POST finish read [17:27:44]Found Content-Length = 753 [17:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30110813", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:44]execute_script... [17:27:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30110813", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:44]POST & json_proto [17:27:44]process_json_proto [17:27:44]json parsed OK: [17:27:44]protocol is kg_v1.0 [17:27:44]action value=close_receipt [17:27:44]process_action close_receipt [17:27:44]cmd_close_receipt [17:27:44]MH_GetDate [17:27:44]Write to MH i2c: F0 00 00 33 17 39 [17:27:44]Write i2c OK [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 09 00 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 09 00 33 17 00 11 32 19 67 A0 18 CA 66 ED [17:27:44]GetLastDocTimeStamp 1729704459 [17:27:44]current date 1729704465 [17:27:44]FM_GetShiftState [17:27:44]SAM_PROTO_GetShiftState [17:27:44]wFMCommunicate request_size=4 [17:27:44]MH_SAM_APDU [17:27:44]CAPDU: 80 13 01 00 [17:27:44]Write to MH i2c: E2 08 00 34 17 80 13 01 00 00 00 00 00 C8 [17:27:44]Write i2c OK [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: E2 [17:27:44]MH_I2C_Read... [17:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:44]Read from MH i2c: E2 0E 00 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: E2 0E 00 34 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B0 [17:27:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:27:44]wFMCommunicate OK [17:27:44]SAM_PROTO_GetShiftState done [17:27:44]FM_GetShiftState done [17:27:44]opened in 1729642525 [17:27:44]opened+sec_in_day 1729728925 [17:27:44]quantity*price = 0 [17:27:44]sum+1 = 1 [17:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 290 23.10.2024 17:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30110813 ФМ: 0000000000965340 ФД: 188832 ФПД: 34114311710676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172745&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188832&fm=34114311710676&tin=02508201610067®Number=0000000000100030&sum=0 [17:27:45]StoreToDocumentArchive [17:27:45]shift 462 fd 188832 [17:27:45]save to /storage/0462/doc_00188832 [17:27:45]save last doc name /storage/0462/doc_00188832 to /storage/kkm_last_doc_name [17:27:45]save OK [17:27:45]Clear old archive folders... [17:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:45]tlvbuf is 011B0570 [17:27:45]SAM_PROTO_ClearQueue [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 09 00 00 [17:27:45]Write to MH i2c: E2 08 00 41 17 80 09 00 00 00 00 00 00 CA [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 41 17 00 90 00 CC [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]SAM_PROTO_ClearQueue done [17:27:45]KKMCreateOFDPacket [17:27:45]OFDProtocolAddRootSTLVToBuf [17:27:45]FM_MakeSignedData [17:27:45]FM_MakeSignedData [17:27:45]SAM_PROTO_SignData [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 0D 01 02 [17:27:45]Write to MH i2c: E2 08 00 42 17 80 0D 01 02 00 00 00 00 D2 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 42 17 00 90 00 CD [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]wFMCommunicate request_size=255 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 11 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E1 02 00 35 04 06 00 1F [17:27:45]Write to MH i2c: E2 02 01 43 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 11 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E1 02 00 35 04 06 00 1F 00 00 B2 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]OFD Sender: No OFD packet to send [17:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 43 17 00 90 00 CE [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]wFMCommunicate request_size=10 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 0D 02 02 05 06 DB 6E 67 D4 [17:27:45]Write to MH i2c: E2 0D 00 44 17 80 0D 02 02 05 00 06 DB 6E 67 D4 00 00 69 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 44 17 00 90 00 CF [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 0D 03 02 [17:27:45]Write to MH i2c: E2 08 00 45 17 80 0D 03 02 00 00 00 00 D7 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 0B 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 0B 00 45 17 00 52 93 3E C4 20 F3 5F 4A 90 00 7B [17:27:45]RAPDU: 52 93 3E C4 20 F3 5F 4A 90 00 [17:27:45]wFMCommunicate OK [17:27:45]SAM_PROTO_SignData done [17:27:45]FM_MakeSignedData done [17:27:45]CreateOFDProtocolMessage [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 11 00 00 [17:27:45]Write to MH i2c: E2 08 00 46 17 80 11 00 00 00 00 00 00 D7 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 17 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 17 00 46 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [17:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:27:46]wFMCommunicate OK [17:27:46]CreateOFDProtocolMessage done [17:27:46]OFDSenderStorePacket 188832 [17:27:46]StoreOFDPacket docnum=188832 [17:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB E6 07 01 E0 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 11 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E1 02 00 35 04 06 00 1F 06 DB 6E 67 D4 52 93 3E C4 20 F3 5F 4A [17:27:46]CheckFolder [17:27:46]dirname=/storage/ofd_packets [17:27:46]CheckFolder done [17:27:46]ProducePacketName [17:27:46]name=ofd_packets/00188832 [17:27:46]NVStorageSaveData ofd_packets/00188832 [17:27:46]File name is /storage/ofd_packets/00188832 [17:27:46]Write 301 bytes [17:27:46]NVStorageSaveData done [17:27:46]OFDSenderStorePacket done [17:27:46]KKMCreateOFDPacket done [17:27:46]NVStorageSaveData kkm_last_timestamp [17:27:46]File name is /storage/kkm_last_timestamp [17:27:46]Write 4 bytes [17:27:46]NVStorageSaveData done [17:27:46]ExternCall_PrintAddStr [17:27:46]wPrintStart [17:27:46]Write to MH i2c: 01 00 00 47 17 5E [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 47 17 00 00 00 00 00 FF 0F 73 [17:27:46]RasterBufferAndPrint [17:27:46]line Счет N : (1)210894 [17:27:46]line ИНН: 02508201610067 [17:27:46]line Контрольно-Кассовый Чек [17:27:46]line ПРОДАЖА [17:27:46]line ТРК (МРК, ГНК) : 42 [17:27:46]line Товар: 2710124130 [17:27:46]line Аи-92-К-3 [17:27:46]line 5.000 * 0.00 [17:27:46]line = 0.00 [17:27:46]line НДС 12% НСП 1% [17:27:46]line > о реализуемом товаре [17:27:46]line ИТОГО: 0.00 [17:27:46]line НСП 1% : 0.00 [17:27:46]line НДС 12% : 0.00 [17:27:46]line Наличными: 0.00 [17:27:46]line Безнал.: 0.00 [17:27:46]line Место: АЗС № 86 "Партнер Нефть" [17:27:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:27:46]line СНО: Общий режим [17:27:46]line Чек 290 23.10.2024 17:27 [17:27:46]line Смена: 462 ФФД: 1.0 [17:27:46]line ЗНМ: 0300000155 [17:27:46]line РНМ: 0000000000100030 [17:27:46]line Версия ККМ: 001 [17:27:46]line Талоны: ТК ГПНА Online [17:27:46]line 30110813 [17:27:46]line ФМ: 0000000000965340 [17:27:46]line ФД: 188832 [17:27:46]line ФПД: 34114311710676 [17:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172745&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188832&fm=34114311710676&tin=02508201610067®Number=0000000000100030&sum=0 [17:27:46]written 0, free lines is 4095 [17:27:46]OFD Sender: Processing packet 188832 [packets to send 1062, broken 1061] [17:27:46]ProducePacketName [17:27:46]name=ofd_packets/00188832 [17:27:46]OFD Sender: To server: pG, [17:27:46]CommunicateWithHost lk.salyk.kg:30040 [17:27:46]ConnectInit lk.salyk.kg [17:27:46]Connected sock=10 [17:27:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB E6 07 01 E0 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 11 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E1 02 00 35 04 06 00 1F 06 DB 6E 67 D4 52 93 3E C4 20 F3 5F 4A [17:27:46]Write to MH i2c: 01 00 00 71 17 88 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 71 17 00 00 00 00 00 98 0C 33 [17:27:46]RasterBufferAndPrint [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]written 0, free lines is 3230 [17:27:46]MH_Cut [17:27:46]Write to MH i2c: D1 01 00 78 17 01 61 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 01 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 01 00 78 17 00 60 [17:27:46]Write to MH i2c: 01 00 00 79 17 90 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 26 4B 47 00 BA 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E1 02 00 F4 03 04 00 FB DB 18 67 B6 04 01 00 00 DA 4E CF 29 68 A7 74 19 [17:27:46]CommunicateWithHost err = 0 [17:27:46]CheckOFDResponse [17:27:46]1017 (14) - 77093643461234 [17:27:46]1041 (16) - 0000000000965340 [17:27:46]1040 (4) - 188832 [17:27:46]1012 (4) - 23.10.2024 11:20 [17:27:46]1206 (1) - 0 [17:27:46]OFD Sender: Remove packet 188832 [17:27:46]ProducePacketName [17:27:46]name=ofd_packets/00188832 [17:27:46]NVStorageDeleteData [17:27:47]OFD Sender: No OFD packet to send [17:27:47]*** Cut start [17:27:47]*** Partial cut [17:27:47]*** CUTSNS_PIN = 1 [17:27:47]*** CUTSNS_PIN = 0 [17:27:48]*** Brake cut motor [17:27:48]Read from MH i2c: 01 [17:27:48]MH_I2C_Read... [17:27:48]*** Stop cut motor [17:27:48]*** Cut end [17:27:48]Read from MH i2c: 01 07 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: 01 07 00 79 17 00 00 00 00 00 FF 0F A5 [17:27:48]process_action close_receipt done [17:27:48]requested_data is exist [17:27:48]produce_requested_data [17:27:48]requested_item fm.sn is exist - process it [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 11 00 00 [17:27:48]Write to MH i2c: E2 08 00 7A 17 80 11 00 00 00 00 00 00 0B [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 [17:27:48]MH_I2C_Read... [17:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:48]Read from MH i2c: E2 17 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 17 00 7A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [17:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:27:48]wFMCommunicate OK [17:27:48]requested_item fd.num is exist - process it [17:27:48]SAM_PROTO_GetFieldsCounters [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 13 00 00 [17:27:48]Write to MH i2c: E2 08 00 7B 17 80 13 00 00 00 00 00 00 0E [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:48]Read from MH i2c: E2 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 62 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 62 00 7B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [17:27:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:48]wFMCommunicate OK [17:27:48]SAM_PROTO_GetFieldsCounters done [17:27:48]requested_item shift.num is exist - process it [17:27:48]requested_item shift.opened is exist - process it [17:27:48]req_shift_opened [17:27:48]FM_GetShiftState [17:27:48]SAM_PROTO_GetShiftState [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 13 01 00 [17:27:48]Write to MH i2c: E2 08 00 7C 17 80 13 01 00 00 00 00 00 10 [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:48]Read from MH i2c: E2 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 0E 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 0E 00 7C 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F8 [17:27:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:27:48]wFMCommunicate OK [17:27:48]SAM_PROTO_GetShiftState done [17:27:48]FM_GetShiftState done [17:27:48]req_shift_opened done [17:27:48]requested_item shift.open_date is exist - process it [17:27:48]req_shift_open_date [17:27:48]req_shift_open_date done [17:27:48]produce_requested_data done [17:27:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188832,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:27:48]process_action_free close_receipt [17:27:48]json_value_free [17:27:48]json_value_free done [17:27:48]process_json_proto returns [17:27:48]Send response to host [17:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188832,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:27:48]free response buf [17:27:48]execute_script done [17:27:48]execute_script returns [17:27:48]free content buf [17:27:48]Sock 9.Close socket [17:27:48]Sock 9.Thread stoped [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:01]accept exits with 7 [17:28:01]New connection [17:28:01]New thread 3067350372 created [17:28:01]Thread 3067207012 joined [17:28:01]Waiting for new connection... [17:28:01] Sock 7.Parse request [17:28:01]Sock 7.Check first char [17:28:01]Sock 7.First char is OK [17:28:01]request: POST /json_proto HTTP/1.0 [17:28:01]Method: POST [17:28:01]URL: /json_proto [17:28:01]Method is POST - this is cgi request [17:28:01]url: /json_proto [17:28:01]query_string will be loaded in cgi processing [17:28:01]execute_cgi json_proto POST (null) [17:28:01]execute_cgi path=json_proto method=POST [17:28:01]POST find Content-Length [17:28:01]Host: 172.17.42.131:8080 [17:28:01]Content-Length: 754 [17:28:01]Content-Type: application/json [17:28:01] [17:28:01]POST finish read [17:28:01]Found Content-Length = 754 [17:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088522", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:01]execute_script... [17:28:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088522", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:01]POST & json_proto [17:28:01]process_json_proto [17:28:01]json parsed OK: [17:28:01]protocol is kg_v1.0 [17:28:01]action value=close_receipt [17:28:01]process_action close_receipt [17:28:01]cmd_close_receipt [17:28:01]MH_GetDate [17:28:01]Write to MH i2c: F0 00 00 7D 17 83 [17:28:01]Write i2c OK [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 09 00 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 09 00 7D 17 00 22 32 19 67 A0 18 CA 66 48 [17:28:01]GetLastDocTimeStamp 1729704465 [17:28:01]current date 1729704482 [17:28:01]FM_GetShiftState [17:28:01]SAM_PROTO_GetShiftState [17:28:01]wFMCommunicate request_size=4 [17:28:01]MH_SAM_APDU [17:28:01]CAPDU: 80 13 01 00 [17:28:01]Write to MH i2c: E2 08 00 7E 17 80 13 01 00 00 00 00 00 12 [17:28:01]Write i2c OK [17:28:01]MH_I2C_Read... [17:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:01]Read from MH i2c: E2 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: E2 0E 00 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: E2 0E 00 7E 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FA [17:28:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:28:01]wFMCommunicate OK [17:28:01]SAM_PROTO_GetShiftState done [17:28:01]FM_GetShiftState done [17:28:01]opened in 1729642525 [17:28:01]opened+sec_in_day 1729728925 [17:28:01]quantity*price = 0 [17:28:01]sum+1 = 1 [17:28:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 291 23.10.2024 17:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30088522 ФМ: 0000000000965340 ФД: 188833 ФПД: 74806661431889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172802&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188833&fm=74806661431889&tin=02508201610067®Number=0000000000100030&sum=0 [17:28:02]StoreToDocumentArchive [17:28:02]shift 462 fd 188833 [17:28:02]save to /storage/0462/doc_00188833 [17:28:02]save last doc name /storage/0462/doc_00188833 to /storage/kkm_last_doc_name [17:28:02]save OK [17:28:02]Clear old archive folders... [17:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:02]tlvbuf is 0113C780 [17:28:02]SAM_PROTO_ClearQueue [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 09 00 00 [17:28:02]Write to MH i2c: E2 08 00 8B 17 80 09 00 00 00 00 00 00 14 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 8B 17 00 90 00 16 [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_ClearQueue done [17:28:02]KKMCreateOFDPacket [17:28:02]OFDProtocolAddRootSTLVToBuf [17:28:02]FM_MakeSignedData [17:28:02]FM_MakeSignedData [17:28:02]SAM_PROTO_SignData [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 0D 01 02 [17:28:02]Write to MH i2c: E2 08 00 8C 17 80 0D 01 02 00 00 00 00 1C [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 8C 17 00 90 00 17 [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]wFMCommunicate request_size=255 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 22 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E1 02 00 35 04 06 00 44 [17:28:02]Write to MH i2c: E2 02 01 8D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 22 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E1 02 00 35 04 06 00 44 00 00 75 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:03]Read from MH i2c: E2 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 03 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 03 00 8D 17 00 90 00 18 [17:28:03]RAPDU: 90 00 [17:28:03]wFMCommunicate OK [17:28:03]wFMCommunicate request_size=10 [17:28:03]MH_SAM_APDU [17:28:03]CAPDU: 80 0D 02 02 05 09 48 7B 42 51 [17:28:03]Write to MH i2c: E2 0D 00 8E 17 80 0D 02 02 05 00 09 48 7B 42 51 00 00 88 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:03]Read from MH i2c: E2 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 03 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 03 00 8E 17 00 90 00 19 [17:28:03]RAPDU: 90 00 [17:28:03]wFMCommunicate OK [17:28:03]wFMCommunicate request_size=4 [17:28:03]MH_SAM_APDU [17:28:03]CAPDU: 80 0D 03 02 [17:28:03]Write to MH i2c: E2 08 00 8F 17 80 0D 03 02 00 00 00 00 21 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:03]Read from MH i2c: E2 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 0B 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 0B 00 8F 17 00 91 FD 13 F6 D6 B4 6A 36 90 00 E3 [17:28:03]RAPDU: 91 FD 13 F6 D6 B4 6A 36 90 00 [17:28:03]wFMCommunicate OK [17:28:03]SAM_PROTO_SignData done [17:28:03]FM_MakeSignedData done [17:28:03]CreateOFDProtocolMessage [17:28:03]wFMCommunicate request_size=4 [17:28:03]MH_SAM_APDU [17:28:03]CAPDU: 80 11 00 00 [17:28:03]Write to MH i2c: E2 08 00 90 17 80 11 00 00 00 00 00 00 21 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:03]Read from MH i2c: E2 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 17 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 17 00 90 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [17:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:28:03]wFMCommunicate OK [17:28:03]CreateOFDProtocolMessage done [17:28:03]OFDSenderStorePacket 188833 [17:28:03]StoreOFDPacket docnum=188833 [17:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 3E 07 01 AE DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 22 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E1 02 00 35 04 06 00 44 09 48 7B 42 51 91 FD 13 F6 D6 B4 6A 36 [17:28:03]CheckFolder [17:28:03]dirname=/storage/ofd_packets [17:28:03]CheckFolder done [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00188833 [17:28:03]NVStorageSaveData ofd_packets/00188833 [17:28:03]File name is /storage/ofd_packets/00188833 [17:28:03]Write 301 bytes [17:28:03]NVStorageSaveData done [17:28:03]OFDSenderStorePacket done [17:28:03]KKMCreateOFDPacket done [17:28:03]NVStorageSaveData kkm_last_timestamp [17:28:03]File name is /storage/kkm_last_timestamp [17:28:03]Write 4 bytes [17:28:03]NVStorageSaveData done [17:28:03]ExternCall_PrintAddStr [17:28:03]wPrintStart [17:28:03]Write to MH i2c: 01 00 00 91 17 A8 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 91 17 00 00 00 00 00 FF 0F BD [17:28:03]RasterBufferAndPrint [17:28:03]line Счет N : (1)210892 [17:28:03]line ИНН: 02508201610067 [17:28:03]line Контрольно-Кассовый Чек [17:28:03]line ПРОДАЖА [17:28:03]line ТРК (МРК, ГНК) : 12 [17:28:03]line Товар: 2710124130 [17:28:03]line Аи-92-К-3 [17:28:03]line 40.000 * 0.00 [17:28:03]line = 0.00 [17:28:03]line НДС 12% НСП 1% [17:28:03]line > о реализуемом товаре [17:28:03]line ИТОГО: 0.00 [17:28:03]line НСП 1% : 0.00 [17:28:03]line НДС 12% : 0.00 [17:28:03]line Наличными: 0.00 [17:28:03]line Безнал.: 0.00 [17:28:03]line Место: АЗС № 86 "Партнер Нефть" [17:28:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:28:03]line СНО: Общий режим [17:28:03]line Чек 291 23.10.2024 17:28 [17:28:03]line Смена: 462 ФФД: 1.0 [17:28:03]line ЗНМ: 0300000155 [17:28:03]line РНМ: 0000000000100030 [17:28:03]line Версия ККМ: 001 [17:28:03]line Талоны: ТК ГПНА Online [17:28:03]line 30088522 [17:28:03]line ФМ: 0000000000965340 [17:28:03]line ФД: 188833 [17:28:03]line ФПД: 74806661431889 [17:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172802&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188833&fm=74806661431889&tin=02508201610067®Number=0000000000100030&sum=0 [17:28:03]written 0, free lines is 4095 [17:28:03]OFD Sender: Processing packet 188833 [packets to send 1062, broken 1061] [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00188833 [17:28:03]OFD Sender: To server: pG, [17:28:03]CommunicateWithHost lk.salyk.kg:30040 [17:28:03]ConnectInit lk.salyk.kg [17:28:03]Connected sock=10 [17:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 3E 07 01 AE DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 22 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E1 02 00 35 04 06 00 44 09 48 7B 42 51 91 FD 13 F6 D6 B4 6A 36 [17:28:03]Write to MH i2c: 01 00 00 BB 17 D2 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 82 0C 67 [17:28:03]RasterBufferAndPrint [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]written 0, free lines is 3211 [17:28:03]MH_Cut [17:28:03]Write to MH i2c: D1 01 00 C2 17 01 AB [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 01 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 01 00 C2 17 00 AA [17:28:03]Write to MH i2c: 01 00 00 C3 17 DA [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD 50 47 00 08 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E1 02 00 F4 03 04 00 0C DC 18 67 B6 04 01 00 00 F6 2E 6F 90 F9 F0 66 83 [17:28:03]CommunicateWithHost err = 0 [17:28:03]CheckOFDResponse [17:28:03]1017 (14) - 77093643461234 [17:28:03]1041 (16) - 0000000000965340 [17:28:03]1040 (4) - 188833 [17:28:03]1012 (4) - 23.10.2024 11:20 [17:28:03]1206 (1) - 0 [17:28:03]OFD Sender: Remove packet 188833 [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00188833 [17:28:03]NVStorageDeleteData [17:28:04]OFD Sender: No OFD packet to send [17:28:04]*** Cut start [17:28:04]*** Partial cut [17:28:04]*** CUTSNS_PIN = 1 [17:28:04]*** CUTSNS_PIN = 0 [17:28:05]*** Brake cut motor [17:28:05]Read from MH i2c: 01 [17:28:05]MH_I2C_Read... [17:28:05]*** Stop cut motor [17:28:05]*** Cut end [17:28:05]Read from MH i2c: 01 07 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 07 00 C3 17 00 00 00 00 00 FF 0F EF [17:28:05]process_action close_receipt done [17:28:05]requested_data is exist [17:28:05]produce_requested_data [17:28:05]requested_item fm.sn is exist - process it [17:28:05]wFMCommunicate request_size=4 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 11 00 00 [17:28:05]Write to MH i2c: E2 08 00 C4 17 80 11 00 00 00 00 00 00 55 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 17 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 17 00 C4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [17:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:28:05]wFMCommunicate OK [17:28:05]requested_item fd.num is exist - process it [17:28:05]SAM_PROTO_GetFieldsCounters [17:28:05]wFMCommunicate request_size=4 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 13 00 00 [17:28:05]Write to MH i2c: E2 08 00 C5 17 80 13 00 00 00 00 00 00 58 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 62 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 62 00 C5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [17:28:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:05]wFMCommunicate OK [17:28:05]SAM_PROTO_GetFieldsCounters done [17:28:05]requested_item shift.num is exist - process it [17:28:05]requested_item shift.opened is exist - process it [17:28:05]req_shift_opened [17:28:05]FM_GetShiftState [17:28:05]SAM_PROTO_GetShiftState [17:28:05]wFMCommunicate request_size=4 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 13 01 00 [17:28:05]Write to MH i2c: E2 08 00 C6 17 80 13 01 00 00 00 00 00 5A [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0E 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0E 00 C6 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 42 [17:28:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:28:05]wFMCommunicate OK [17:28:05]SAM_PROTO_GetShiftState done [17:28:05]FM_GetShiftState done [17:28:05]req_shift_opened done [17:28:05]requested_item shift.open_date is exist - process it [17:28:05]req_shift_open_date [17:28:05]req_shift_open_date done [17:28:05]produce_requested_data done [17:28:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188833,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:28:05]process_action_free close_receipt [17:28:05]json_value_free [17:28:05]json_value_free done [17:28:05]process_json_proto returns [17:28:05]Send response to host [17:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188833,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:28:05]free response buf [17:28:05]execute_script done [17:28:05]execute_script returns [17:28:05]free content buf [17:28:05]Sock 7.Close socket [17:28:05]Sock 7.Thread stoped [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:35]accept exits with 9 [17:30:35]New connection [17:30:35]New thread 3067207012 created [17:30:35]Thread 3067350372 joined [17:30:35]Waiting for new connection... [17:30:35] Sock 9.Parse request [17:30:35]Sock 9.Check first char [17:30:35]Sock 9.First char is OK [17:30:35]request: POST /json_proto HTTP/1.0 [17:30:35]Method: POST [17:30:35]URL: /json_proto [17:30:35]Method is POST - this is cgi request [17:30:35]url: /json_proto [17:30:35]query_string will be loaded in cgi processing [17:30:35]execute_cgi json_proto POST (null) [17:30:35]execute_cgi path=json_proto method=POST [17:30:35]POST find Content-Length [17:30:35]Host: 172.17.42.131:8080 [17:30:35]Content-Length: 677 [17:30:35]Content-Type: application/json [17:30:35] [17:30:35]POST finish read [17:30:35]Found Content-Length = 677 [17:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:35]execute_script... [17:30:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:35]POST & json_proto [17:30:35]process_json_proto [17:30:35]json parsed OK: [17:30:35]protocol is kg_v1.0 [17:30:35]action value=close_receipt [17:30:35]process_action close_receipt [17:30:35]cmd_close_receipt [17:30:35]MH_GetDate [17:30:35]Write to MH i2c: F0 00 00 C7 17 CD [17:30:35]Write i2c OK [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: F0 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: F0 09 00 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: F0 09 00 C7 17 00 BC 32 19 67 A0 18 CA 66 2C [17:30:35]GetLastDocTimeStamp 1729704482 [17:30:35]current date 1729704636 [17:30:35]FM_GetShiftState [17:30:35]SAM_PROTO_GetShiftState [17:30:35]wFMCommunicate request_size=4 [17:30:35]MH_SAM_APDU [17:30:35]CAPDU: 80 13 01 00 [17:30:35]Write to MH i2c: E2 08 00 C8 17 80 13 01 00 00 00 00 00 5C [17:30:35]Write i2c OK [17:30:35]MH_I2C_Read... [17:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:35]Read from MH i2c: E2 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: E2 0E 00 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: E2 0E 00 C8 17 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 44 [17:30:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:30:35]wFMCommunicate OK [17:30:35]SAM_PROTO_GetShiftState done [17:30:35]FM_GetShiftState done [17:30:35]opened in 1729642525 [17:30:35]opened+sec_in_day 1729728925 [17:30:35]quantity*price = 50041 [17:30:35]sum+1 = 50042 [17:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 292 23.10.2024 17:30 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188834 ФПД: 254460075715775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173036&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188834&fm=254460075715775&tin=02508201610067®Number=0000000000100030&sum=50000 [17:30:36]StoreToDocumentArchive [17:30:36]shift 462 fd 188834 [17:30:36]save to /storage/0462/doc_00188834 [17:30:36]save last doc name /storage/0462/doc_00188834 to /storage/kkm_last_doc_name [17:30:36]save OK [17:30:36]Clear old archive folders... [17:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:36]tlvbuf is B6F3B560 [17:30:36]SAM_PROTO_ClearQueue [17:30:36]wFMCommunicate request_size=4 [17:30:36]MH_SAM_APDU [17:30:36]CAPDU: 80 09 00 00 [17:30:36]Write to MH i2c: E2 08 00 D5 17 80 09 00 00 00 00 00 00 5E [17:30:36]Write i2c OK [17:30:36]MH_I2C_Read... [17:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:36]Read from MH i2c: E2 [17:30:36]MH_I2C_Read... [17:30:36]Read from MH i2c: E2 03 00 [17:30:36]MH_I2C_Read... [17:30:36]Read from MH i2c: E2 03 00 D5 17 00 90 00 60 [17:30:36]RAPDU: 90 00 [17:30:36]wFMCommunicate OK [17:30:36]SAM_PROTO_ClearQueue done [17:30:36]KKMCreateOFDPacket [17:30:36]OFDProtocolAddRootSTLVToBuf [17:30:36]FM_MakeSignedData [17:30:36]FM_MakeSignedData [17:30:36]SAM_PROTO_SignData [17:30:36]wFMCommunicate request_size=4 [17:30:36]MH_SAM_APDU [17:30:36]CAPDU: 80 0D 01 02 [17:30:36]Write to MH i2c: E2 08 00 D6 17 80 0D 01 02 00 00 00 00 66 [17:30:36]Write i2c OK [17:30:36]MH_I2C_Read... [17:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:36]Read from MH i2c: E2 [17:30:36]MH_I2C_Read... [17:30:36]Read from MH i2c: E2 03 00 [17:30:36]MH_I2C_Read... [17:30:36]Read from MH i2c: E2 03 00 D6 17 00 90 00 61 [17:30:36]RAPDU: 90 00 [17:30:36]wFMCommunicate OK [17:30:36]wFMCommunicate request_size=255 [17:30:36]MH_SAM_APDU [17:30:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 BC 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E1 02 00 35 04 06 00 E7 [17:30:36]Write to MH i2c: E2 02 01 D7 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 BC 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E1 02 00 35 04 06 00 E7 00 00 A7 [17:30:36]Write i2c OK [17:30:36]MH_I2C_Read... [17:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:36]Read from MH i2c: E2 [17:30:36]MH_I2C_Read... [17:30:36]Read from MH i2c: E2 03 00 [17:30:36]MH_I2C_Read... [17:30:36]Read from MH i2c: E2 03 00 D7 17 00 90 00 62 [17:30:36]RAPDU: 90 00 [17:30:36]wFMCommunicate OK [17:30:36]wFMCommunicate request_size=10 [17:30:36]MH_SAM_APDU [17:30:36]CAPDU: 80 0D 02 02 05 6E 1A 6C 2C BF [17:30:36]Write to MH i2c: E2 0D 00 D8 17 80 0D 02 02 05 00 6E 1A 6C 2C BF 00 00 52 [17:30:36]Write i2c OK [17:30:36]MH_I2C_Read... [17:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:36]Read from MH i2c: E2 [17:30:36]MH_I2C_Read... [17:30:36]Read from MH i2c: E2 03 00 [17:30:36]MH_I2C_Read... [17:30:36]Read from MH i2c: E2 03 00 D8 17 00 90 00 63 [17:30:36]RAPDU: 90 00 [17:30:36]wFMCommunicate OK [17:30:36]wFMCommunicate request_size=4 [17:30:36]MH_SAM_APDU [17:30:36]CAPDU: 80 0D 03 02 [17:30:36]Write to MH i2c: E2 08 00 D9 17 80 0D 03 02 00 00 00 00 6B [17:30:36]Write i2c OK [17:30:36]MH_I2C_Read... [17:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:37]Read from MH i2c: E2 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: E2 0B 00 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: E2 0B 00 D9 17 00 91 B0 76 67 DD 91 FC 8F 90 00 83 [17:30:37]RAPDU: 91 B0 76 67 DD 91 FC 8F 90 00 [17:30:37]wFMCommunicate OK [17:30:37]SAM_PROTO_SignData done [17:30:37]FM_MakeSignedData done [17:30:37]CreateOFDProtocolMessage [17:30:37]wFMCommunicate request_size=4 [17:30:37]MH_SAM_APDU [17:30:37]CAPDU: 80 11 00 00 [17:30:37]Write to MH i2c: E2 08 00 DA 17 80 11 00 00 00 00 00 00 6B [17:30:37]Write i2c OK [17:30:37]MH_I2C_Read... [17:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:37]Read from MH i2c: E2 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: E2 17 00 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: E2 17 00 DA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [17:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:30:37]wFMCommunicate OK [17:30:37]CreateOFDProtocolMessage done [17:30:37]OFDSenderStorePacket 188834 [17:30:37]StoreOFDPacket docnum=188834 [17:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9F 85 07 01 13 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 BC 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E1 02 00 35 04 06 00 E7 6E 1A 6C 2C BF 91 B0 76 67 DD 91 FC 8F [17:30:37]CheckFolder [17:30:37]dirname=/storage/ofd_packets [17:30:37]CheckFolder done [17:30:37]ProducePacketName [17:30:37]name=ofd_packets/00188834 [17:30:37]NVStorageSaveData ofd_packets/00188834 [17:30:37]File name is /storage/ofd_packets/00188834 [17:30:37]Write 301 bytes [17:30:37]NVStorageSaveData done [17:30:37]OFDSenderStorePacket done [17:30:37]KKMCreateOFDPacket done [17:30:37]NVStorageSaveData kkm_last_timestamp [17:30:37]File name is /storage/kkm_last_timestamp [17:30:37]Write 4 bytes [17:30:37]NVStorageSaveData done [17:30:37]ExternCall_PrintAddStr [17:30:37]wPrintStart [17:30:37]Write to MH i2c: 01 00 00 DB 17 F2 [17:30:37]Write i2c OK [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: 01 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: 01 07 00 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: 01 07 00 DB 17 00 00 00 00 00 FF 0F 07 [17:30:37]RasterBufferAndPrint [17:30:37]line Счет N : (1)210896 [17:30:37]line ИНН: 02508201610067 [17:30:37]line Контрольно-Кассовый Чек [17:30:37]line ПРОДАЖА [17:30:37]line ТРК (МРК, ГНК) : 12 [17:30:37]line Товар: 2710124130 [17:30:37]line Аи-92-К-3 [17:30:37]line 7.480 * 66.90 [17:30:37]line = 500.41 [17:30:37]line НДС 12% НСП 1% [17:30:37]line > о реализуемом товаре [17:30:37]line ОКРУГЛЕНИЕ: -0.41 [17:30:37]line ИТОГО: 500.00 [17:30:37]line Внесено: 500.00 [17:30:37]line СДАЧА: 0.00 [17:30:37]line НСП 1% : 4.43 [17:30:37]line НДС 12% : 53.14 [17:30:37]line Наличными: 500.00 [17:30:37]line Безнал.: 0.00 [17:30:37]line Место: АЗС № 86 "Партнер Нефть" [17:30:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:30:37]line СНО: Общий режим [17:30:37]line Чек 292 23.10.2024 17:30 [17:30:37]line Смена: 462 ФФД: 1.0 [17:30:37]line ЗНМ: 0300000155 [17:30:37]line РНМ: 0000000000100030 [17:30:37]line Версия ККМ: 001 [17:30:37]line ФМ: 0000000000965340 [17:30:37]line ФД: 188834 [17:30:37]line ФПД: 254460075715775 [17:30:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173036&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188834&fm=254460075715775&tin=02508201610067®Number=0000000000100030&sum=50000 [17:30:37]OFD Sender: Processing packet 188834 [packets to send 1062, broken 1061] [17:30:37]ProducePacketName [17:30:37]name=ofd_packets/00188834 [17:30:37]OFD Sender: To server: pG, [17:30:37]CommunicateWithHost lk.salyk.kg:30040 [17:30:37]ConnectInit lk.salyk.kg [17:30:37]written 0, free lines is 4095 [17:30:37]Connected sock=10 [17:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9F 85 07 01 13 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 BC 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E1 02 00 35 04 06 00 E7 6E 1A 6C 2C BF 91 B0 76 67 DD 91 FC 8F [17:30:37]Write to MH i2c: 01 00 00 06 18 1E [17:30:37]Write i2c OK [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: 01 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: 01 07 00 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 6B 0C 9C [17:30:37]RasterBufferAndPrint [17:30:37]line [17:30:37]line [17:30:37]line [17:30:37]line [17:30:37]line [17:30:37]written 0, free lines is 3181 [17:30:37]MH_Cut [17:30:37]Write to MH i2c: D1 01 00 0D 18 01 F7 [17:30:37]Write i2c OK [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: D1 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: D1 01 00 [17:30:37]MH_I2C_Read... [17:30:37]Read from MH i2c: D1 01 00 0D 18 00 F6 [17:30:37]Write to MH i2c: 01 00 00 0E 18 26 [17:30:37]Write i2c OK [17:30:37]MH_I2C_Read... [17:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D3 F9 47 00 FD 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 36 35 33 34 30 10 04 04 00 A2 E1 02 00 F4 03 04 00 A6 DC 18 67 B6 04 01 00 00 D0 8D 9A A5 FF 39 27 BF [17:30:37]CommunicateWithHost err = 0 [17:30:37]CheckOFDResponse [17:30:37]1017 (14) - 77093643461234 [17:30:37]1041 (16) - 0000000000965340 [17:30:37]1040 (4) - 188834 [17:30:37]1012 (4) - 23.10.2024 11:23 [17:30:37]1206 (1) - 0 [17:30:37]OFD Sender: Remove packet 188834 [17:30:37]ProducePacketName [17:30:37]name=ofd_packets/00188834 [17:30:37]NVStorageDeleteData [17:30:38]OFD Sender: No OFD packet to send [17:30:38]*** Cut start [17:30:38]*** Partial cut [17:30:38]*** CUTSNS_PIN = 1 [17:30:38]*** CUTSNS_PIN = 0 [17:30:39]*** Brake cut motor [17:30:39]Read from MH i2c: 01 [17:30:39]MH_I2C_Read... [17:30:39]*** Stop cut motor [17:30:39]*** Cut end [17:30:39]Read from MH i2c: 01 07 00 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: 01 07 00 0E 18 00 00 00 00 00 FF 0F 3B [17:30:39]process_action close_receipt done [17:30:39]requested_data is exist [17:30:39]produce_requested_data [17:30:39]requested_item fm.sn is exist - process it [17:30:39]wFMCommunicate request_size=4 [17:30:39]MH_SAM_APDU [17:30:39]CAPDU: 80 11 00 00 [17:30:39]Write to MH i2c: E2 08 00 0F 18 80 11 00 00 00 00 00 00 A1 [17:30:39]Write i2c OK [17:30:39]MH_I2C_Read... [17:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:39]Read from MH i2c: E2 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 17 00 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 17 00 0F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [17:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:30:39]wFMCommunicate OK [17:30:39]requested_item fd.num is exist - process it [17:30:39]SAM_PROTO_GetFieldsCounters [17:30:39]wFMCommunicate request_size=4 [17:30:39]MH_SAM_APDU [17:30:39]CAPDU: 80 13 00 00 [17:30:39]Write to MH i2c: E2 08 00 10 18 80 13 00 00 00 00 00 00 A4 [17:30:39]Write i2c OK [17:30:39]MH_I2C_Read... [17:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:39]Read from MH i2c: E2 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 62 00 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 62 00 10 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:39]wFMCommunicate OK [17:30:39]SAM_PROTO_GetFieldsCounters done [17:30:39]requested_item shift.num is exist - process it [17:30:39]requested_item shift.opened is exist - process it [17:30:39]req_shift_opened [17:30:39]FM_GetShiftState [17:30:39]SAM_PROTO_GetShiftState [17:30:39]wFMCommunicate request_size=4 [17:30:39]MH_SAM_APDU [17:30:39]CAPDU: 80 13 01 00 [17:30:39]Write to MH i2c: E2 08 00 11 18 80 13 01 00 00 00 00 00 A6 [17:30:39]Write i2c OK [17:30:39]MH_I2C_Read... [17:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:39]Read from MH i2c: E2 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 0E 00 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 0E 00 11 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8E [17:30:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:30:39]wFMCommunicate OK [17:30:39]SAM_PROTO_GetShiftState done [17:30:39]FM_GetShiftState done [17:30:39]req_shift_opened done [17:30:39]requested_item shift.open_date is exist - process it [17:30:39]req_shift_open_date [17:30:39]req_shift_open_date done [17:30:39]produce_requested_data done [17:30:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188834,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:30:39]process_action_free close_receipt [17:30:39]json_value_free [17:30:39]json_value_free done [17:30:39]process_json_proto returns [17:30:39]Send response to host [17:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188834,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:30:39]free response buf [17:30:39]execute_script done [17:30:39]execute_script returns [17:30:39]free content buf [17:30:39]Sock 9.Close socket [17:30:39]Sock 9.Thread stoped [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:23]accept exits with 7 [17:31:23]New connection [17:31:23]New thread 3067350372 created [17:31:23]Thread 3067207012 joined [17:31:23]Waiting for new connection... [17:31:23] Sock 7.Parse request [17:31:23]Sock 7.Check first char [17:31:23]Sock 7.First char is OK [17:31:23]request: POST /json_proto HTTP/1.0 [17:31:23]Method: POST [17:31:23]URL: /json_proto [17:31:23]Method is POST - this is cgi request [17:31:23]url: /json_proto [17:31:23]query_string will be loaded in cgi processing [17:31:23]execute_cgi json_proto POST (null) [17:31:23]execute_cgi path=json_proto method=POST [17:31:23]POST find Content-Length [17:31:23]Host: 172.17.42.131:8080 [17:31:23]Content-Length: 688 [17:31:23]Content-Type: application/json [17:31:23] [17:31:23]POST finish read [17:31:23]Found Content-Length = 688 [17:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:23]execute_script... [17:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:23]POST & json_proto [17:31:23]process_json_proto [17:31:23]json parsed OK: [17:31:23]protocol is kg_v1.0 [17:31:23]action value=close_receipt [17:31:23]process_action close_receipt [17:31:23]cmd_close_receipt [17:31:23]MH_GetDate [17:31:23]Write to MH i2c: F0 00 00 12 18 19 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 09 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 09 00 12 18 00 ED 32 19 67 A0 18 CA 66 A9 [17:31:23]GetLastDocTimeStamp 1729704636 [17:31:23]current date 1729704685 [17:31:23]FM_GetShiftState [17:31:23]SAM_PROTO_GetShiftState [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 01 00 [17:31:23]Write to MH i2c: E2 08 00 13 18 80 13 01 00 00 00 00 00 A8 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 13 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 90 [17:31:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetShiftState done [17:31:23]FM_GetShiftState done [17:31:23]opened in 1729642525 [17:31:23]opened+sec_in_day 1729728925 [17:31:23]quantity*price = 250050 [17:31:23]sum+1 = 250052 [17:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 293 23.10.2024 17:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188835 ФПД: 255262107777602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173125&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188835&fm=255262107777602&tin=02508201610067®Number=0000000000100030&sum=250000 [17:31:25]StoreToDocumentArchive [17:31:25]shift 462 fd 188835 [17:31:25]save to /storage/0462/doc_00188835 [17:31:25]save last doc name /storage/0462/doc_00188835 to /storage/kkm_last_doc_name [17:31:25]save OK [17:31:25]Clear old archive folders... [17:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:31:25]tlvbuf is 0110E350 [17:31:25]SAM_PROTO_ClearQueue [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 09 00 00 [17:31:25]Write to MH i2c: E2 08 00 20 18 80 09 00 00 00 00 00 00 AA [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 20 18 00 90 00 AC [17:31:25]RAPDU: 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_ClearQueue done [17:31:25]KKMCreateOFDPacket [17:31:25]OFDProtocolAddRootSTLVToBuf [17:31:25]FM_MakeSignedData [17:31:25]FM_MakeSignedData [17:31:25]SAM_PROTO_SignData [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 0D 01 02 [17:31:25]Write to MH i2c: E2 08 00 21 18 80 0D 01 02 00 00 00 00 B2 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 21 18 00 90 00 AD [17:31:25]RAPDU: 90 00 [17:31:25]wFMCommunicate OK [17:31:25]wFMCommunicate request_size=255 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 ED 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E1 02 [17:31:25]Write to MH i2c: E2 02 01 22 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 ED 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E1 02 00 00 BB [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 22 18 00 90 00 AE [17:31:25]RAPDU: 90 00 [17:31:25]wFMCommunicate OK [17:31:25]wFMCommunicate request_size=16 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E8 28 D7 42 3A 42 [17:31:25]Write to MH i2c: E2 13 00 23 18 80 0D 02 02 0B 00 00 35 04 06 00 E8 28 D7 42 3A 42 00 00 AF [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [17:31:25]RAPDU: 90 00 [17:31:25]wFMCommunicate OK [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 0D 03 02 [17:31:25]Write to MH i2c: E2 08 00 24 18 80 0D 03 02 00 00 00 00 B7 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0B 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0B 00 24 18 00 22 E0 27 CD D6 6D F6 0F 90 00 F6 [17:31:25]RAPDU: 22 E0 27 CD D6 6D F6 0F 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_SignData done [17:31:25]FM_MakeSignedData done [17:31:25]CreateOFDProtocolMessage [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 11 00 00 [17:31:25]Write to MH i2c: E2 08 00 25 18 80 11 00 00 00 00 00 00 B7 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 17 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 17 00 25 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [17:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:31:25]wFMCommunicate OK [17:31:25]CreateOFDProtocolMessage done [17:31:25]OFDSenderStorePacket 188835 [17:31:25]StoreOFDPacket docnum=188835 [17:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3D 2A 0D 01 92 2E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 ED 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E1 02 00 35 04 06 00 E8 28 D7 42 3A 42 22 E0 27 CD D6 6D F6 0F [17:31:25]CheckFolder [17:31:25]dirname=/storage/ofd_packets [17:31:25]CheckFolder done [17:31:25]ProducePacketName [17:31:25]name=ofd_packets/00188835 [17:31:25]NVStorageSaveData ofd_packets/00188835 [17:31:25]File name is /storage/ofd_packets/00188835 [17:31:25]Write 307 bytes [17:31:25]NVStorageSaveData done [17:31:25]OFDSenderStorePacket done [17:31:25]KKMCreateOFDPacket done [17:31:25]NVStorageSaveData kkm_last_timestamp [17:31:25]File name is /storage/kkm_last_timestamp [17:31:25]Write 4 bytes [17:31:25]NVStorageSaveData done [17:31:25]ExternCall_PrintAddStr [17:31:25]wPrintStart [17:31:25]Write to MH i2c: 01 00 00 26 18 3E [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 07 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 07 00 26 18 00 00 00 00 00 FF 0F 53 [17:31:25]RasterBufferAndPrint [17:31:25]line Счет N : (1)210895 [17:31:25]line ИНН: 02508201610067 [17:31:25]line Контрольно-Кассовый Чек [17:31:25]line ПРОДАЖА [17:31:25]line ТРК (МРК, ГНК) : 41 [17:31:25]line Товар: 2710194210 [17:31:25]line D-ENERGY ДТ-К-5 [17:31:25]line 32.390 * 77.20 [17:31:25]line = 2500.51 [17:31:25]line НДС 12% НСП 1% [17:31:25]line > о реализуемом товаре [17:31:25]line ОКРУГЛЕНИЕ: -0.51 [17:31:25]line ИТОГО: 2500.00 [17:31:25]line Внесено: 2500.00 [17:31:25]line СДАЧА: 0.00 [17:31:25]line НСП 1% : 22.13 [17:31:25]line НДС 12% : 265.54 [17:31:25]line Наличными: 2500.00 [17:31:25]line Безнал.: 0.00 [17:31:25]line Место: АЗС № 86 "Партнер Нефть" [17:31:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:31:25]line СНО: Общий режим [17:31:25]line Чек 293 23.10.2024 17:31 [17:31:25]line Смена: 462 ФФД: 1.0 [17:31:25]line ЗНМ: 0300000155 [17:31:25]line РНМ: 0000000000100030 [17:31:25]line Версия ККМ: 001 [17:31:25]line ФМ: 0000000000965340 [17:31:25]line ФД: 188835 [17:31:25]line ФПД: 255262107777602 [17:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173125&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188835&fm=255262107777602&tin=02508201610067®Number=0000000000100030&sum=250000 [17:31:25]written 0, free lines is 4095 [17:31:25]OFD Sender: Processing packet 188835 [packets to send 1062, broken 1061] [17:31:25]ProducePacketName [17:31:25]name=ofd_packets/00188835 [17:31:25]OFD Sender: To server: pG, [17:31:25]CommunicateWithHost lk.salyk.kg:30040 [17:31:25]ConnectInit lk.salyk.kg [17:31:25]Connected sock=10 [17:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3D 2A 0D 01 92 2E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 ED 32 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E1 02 00 35 04 06 00 E8 28 D7 42 3A 42 22 E0 27 CD D6 6D F6 0F [17:31:26]Write to MH i2c: 01 00 00 51 18 69 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 07 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 07 00 51 18 00 00 00 00 00 61 0C DD [17:31:26]RasterBufferAndPrint [17:31:26]line [17:31:26]line [17:31:26]line [17:31:26]line [17:31:26]line [17:31:26]written 0, free lines is 3173 [17:31:26]MH_Cut [17:31:26]Write to MH i2c: D1 01 00 58 18 01 42 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: D1 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: D1 01 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: D1 01 00 58 18 00 41 [17:31:26]Write to MH i2c: 01 00 00 59 18 71 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FA 54 47 00 4F 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 36 35 33 34 30 10 04 04 00 A3 E1 02 00 F4 03 04 00 D7 DC 18 67 B6 04 01 00 00 33 2A B0 54 27 01 21 5A [17:31:26]CommunicateWithHost err = 0 [17:31:26]CheckOFDResponse [17:31:26]1017 (14) - 77093643461234 [17:31:26]1041 (16) - 0000000000965340 [17:31:26]1040 (4) - 188835 [17:31:26]1012 (4) - 23.10.2024 11:24 [17:31:26]1206 (1) - 0 [17:31:26]OFD Sender: Remove packet 188835 [17:31:26]ProducePacketName [17:31:26]name=ofd_packets/00188835 [17:31:26]NVStorageDeleteData [17:31:26]OFD Sender: No OFD packet to send [17:31:27]*** Cut start [17:31:27]*** Partial cut [17:31:27]*** CUTSNS_PIN = 1 [17:31:27]*** CUTSNS_PIN = 0 [17:31:27]*** Brake cut motor [17:31:27]Read from MH i2c: 01 [17:31:27]MH_I2C_Read... [17:31:27]*** Stop cut motor [17:31:28]*** Cut end [17:31:28]Read from MH i2c: 01 07 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 59 18 00 00 00 00 00 FF 0F 86 [17:31:28]process_action close_receipt done [17:31:28]requested_data is exist [17:31:28]produce_requested_data [17:31:28]requested_item fm.sn is exist - process it [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 11 00 00 [17:31:28]Write to MH i2c: E2 08 00 5A 18 80 11 00 00 00 00 00 00 EC [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 17 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 17 00 5A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [17:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:31:28]wFMCommunicate OK [17:31:28]requested_item fd.num is exist - process it [17:31:28]SAM_PROTO_GetFieldsCounters [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 13 00 00 [17:31:28]Write to MH i2c: E2 08 00 5B 18 80 13 00 00 00 00 00 00 EF [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 62 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 62 00 5B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [17:31:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:28]wFMCommunicate OK [17:31:28]SAM_PROTO_GetFieldsCounters done [17:31:28]requested_item shift.num is exist - process it [17:31:28]requested_item shift.opened is exist - process it [17:31:28]req_shift_opened [17:31:28]FM_GetShiftState [17:31:28]SAM_PROTO_GetShiftState [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 13 01 00 [17:31:28]Write to MH i2c: E2 08 00 5C 18 80 13 01 00 00 00 00 00 F1 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 0E 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 0E 00 5C 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D9 [17:31:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:31:28]wFMCommunicate OK [17:31:28]SAM_PROTO_GetShiftState done [17:31:28]FM_GetShiftState done [17:31:28]req_shift_opened done [17:31:28]requested_item shift.open_date is exist - process it [17:31:28]req_shift_open_date [17:31:28]req_shift_open_date done [17:31:28]produce_requested_data done [17:31:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188835,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:31:28]process_action_free close_receipt [17:31:28]json_value_free [17:31:28]json_value_free done [17:31:28]process_json_proto returns [17:31:28]Send response to host [17:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188835,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:31:28]free response buf [17:31:28]execute_script done [17:31:28]execute_script returns [17:31:28]free content buf [17:31:28]Sock 7.Close socket [17:31:28]Sock 7.Thread stoped [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:50]accept exits with 9 [17:32:50]New connection [17:32:50]New thread 3067207012 created [17:32:50]Thread 3067350372 joined [17:32:50]Waiting for new connection... [17:32:50] Sock 9.Parse request [17:32:50]Sock 9.Check first char [17:32:50]Sock 9.First char is OK [17:32:50]request: POST /json_proto HTTP/1.0 [17:32:50]Method: POST [17:32:50]URL: /json_proto [17:32:50]Method is POST - this is cgi request [17:32:50]url: /json_proto [17:32:50]query_string will be loaded in cgi processing [17:32:50]execute_cgi json_proto POST (null) [17:32:50]execute_cgi path=json_proto method=POST [17:32:50]POST find Content-Length [17:32:50]Host: 172.17.42.131:8080 [17:32:50]Content-Length: 767 [17:32:50]Content-Type: application/json [17:32:50] [17:32:50]POST finish read [17:32:50]Found Content-Length = 767 [17:32:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 720.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:50]execute_script... [17:32:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 720.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:50]POST & json_proto [17:32:50]process_json_proto [17:32:50]json parsed OK: [17:32:50]protocol is kg_v1.0 [17:32:50]action value=close_receipt [17:32:50]process_action close_receipt [17:32:50]cmd_close_receipt [17:32:50]MH_GetDate [17:32:50]Write to MH i2c: F0 00 00 5D 18 64 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: F0 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: F0 09 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: F0 09 00 5D 18 00 43 33 19 67 A0 18 CA 66 4B [17:32:50]GetLastDocTimeStamp 1729704685 [17:32:50]current date 1729704771 [17:32:50]FM_GetShiftState [17:32:50]SAM_PROTO_GetShiftState [17:32:50]wFMCommunicate request_size=4 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 13 01 00 [17:32:50]Write to MH i2c: E2 08 00 5E 18 80 13 01 00 00 00 00 00 F3 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 0E 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 0E 00 5E 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DB [17:32:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:32:50]wFMCommunicate OK [17:32:50]SAM_PROTO_GetShiftState done [17:32:50]FM_GetShiftState done [17:32:50]opened in 1729642525 [17:32:50]opened+sec_in_day 1729728925 [17:32:50]quantity*price = 72051 [17:32:50]sum+1 = 72052 [17:32:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 720.51 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 0.00 Безнал.: 720.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 294 23.10.2024 17:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188836 ФПД: 220996066301050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173251&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188836&fm=220996066301050&tin=02508201610067®Number=0000000000100030&sum=72051 [17:32:51]StoreToDocumentArchive [17:32:51]shift 462 fd 188836 [17:32:51]save to /storage/0462/doc_00188836 [17:32:51]save last doc name /storage/0462/doc_00188836 to /storage/kkm_last_doc_name [17:32:51]save OK [17:32:51]Clear old archive folders... [17:32:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:51]tlvbuf is 011496B0 [17:32:51]SAM_PROTO_ClearQueue [17:32:51]wFMCommunicate request_size=4 [17:32:51]MH_SAM_APDU [17:32:51]CAPDU: 80 09 00 00 [17:32:51]Write to MH i2c: E2 08 00 6B 18 80 09 00 00 00 00 00 00 F5 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:51]Read from MH i2c: E2 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 03 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 03 00 6B 18 00 90 00 F7 [17:32:51]RAPDU: 90 00 [17:32:51]wFMCommunicate OK [17:32:51]SAM_PROTO_ClearQueue done [17:32:51]KKMCreateOFDPacket [17:32:51]OFDProtocolAddRootSTLVToBuf [17:32:51]FM_MakeSignedData [17:32:51]FM_MakeSignedData [17:32:51]SAM_PROTO_SignData [17:32:51]wFMCommunicate request_size=4 [17:32:51]MH_SAM_APDU [17:32:51]CAPDU: 80 0D 01 02 [17:32:51]Write to MH i2c: E2 08 00 6C 18 80 0D 01 02 00 00 00 00 FD [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:51]Read from MH i2c: E2 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 03 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 03 00 6C 18 00 90 00 F8 [17:32:51]RAPDU: 90 00 [17:32:51]wFMCommunicate OK [17:32:51]wFMCommunicate request_size=255 [17:32:51]MH_SAM_APDU [17:32:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 43 33 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E1 02 00 35 04 06 00 C8 [17:32:51]Write to MH i2c: E2 02 01 6D 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 43 33 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E1 02 00 35 04 06 00 C8 00 00 C5 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:52]Read from MH i2c: E2 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 03 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [17:32:52]RAPDU: 90 00 [17:32:52]wFMCommunicate OK [17:32:52]wFMCommunicate request_size=10 [17:32:52]MH_SAM_APDU [17:32:52]CAPDU: 80 0D 02 02 05 FE A8 07 54 7A [17:32:52]Write to MH i2c: E2 0D 00 6E 18 80 0D 02 02 05 00 FE A8 07 54 7A 00 00 85 [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:52]Read from MH i2c: E2 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 03 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [17:32:52]RAPDU: 90 00 [17:32:52]wFMCommunicate OK [17:32:52]wFMCommunicate request_size=4 [17:32:52]MH_SAM_APDU [17:32:52]CAPDU: 80 0D 03 02 [17:32:52]Write to MH i2c: E2 08 00 6F 18 80 0D 03 02 00 00 00 00 02 [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]OFD Sender: No OFD packet to send [17:32:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:52]Read from MH i2c: E2 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 0B 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 0B 00 6F 18 00 27 E3 3D D7 37 13 3A E3 90 00 88 [17:32:52]RAPDU: 27 E3 3D D7 37 13 3A E3 90 00 [17:32:52]wFMCommunicate OK [17:32:52]SAM_PROTO_SignData done [17:32:52]FM_MakeSignedData done [17:32:52]CreateOFDProtocolMessage [17:32:52]wFMCommunicate request_size=4 [17:32:52]MH_SAM_APDU [17:32:52]CAPDU: 80 11 00 00 [17:32:52]Write to MH i2c: E2 08 00 70 18 80 11 00 00 00 00 00 00 02 [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 [17:32:52]MH_I2C_Read... [17:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:52]Read from MH i2c: E2 17 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 17 00 70 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [17:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:32:52]wFMCommunicate OK [17:32:52]CreateOFDProtocolMessage done [17:32:52]OFDSenderStorePacket 188836 [17:32:52]StoreOFDPacket docnum=188836 [17:32:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FC CB 07 01 68 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 43 33 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E1 02 00 35 04 06 00 C8 FE A8 07 54 7A 27 E3 3D D7 37 13 3A E3 [17:32:52]CheckFolder [17:32:52]dirname=/storage/ofd_packets [17:32:52]CheckFolder done [17:32:52]ProducePacketName [17:32:52]name=ofd_packets/00188836 [17:32:52]NVStorageSaveData ofd_packets/00188836 [17:32:52]File name is /storage/ofd_packets/00188836 [17:32:52]Write 301 bytes [17:32:52]NVStorageSaveData done [17:32:52]OFDSenderStorePacket done [17:32:52]KKMCreateOFDPacket done [17:32:52]NVStorageSaveData kkm_last_timestamp [17:32:52]File name is /storage/kkm_last_timestamp [17:32:52]Write 4 bytes [17:32:52]NVStorageSaveData done [17:32:52]ExternCall_PrintAddStr [17:32:52]wPrintStart [17:32:52]Write to MH i2c: 01 00 00 71 18 89 [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: 01 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: 01 07 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: 01 07 00 71 18 00 00 00 00 00 FF 0F 9E [17:32:52]RasterBufferAndPrint [17:32:52]line Счет N : (1)210897 [17:32:52]line ИНН: 02508201610067 [17:32:52]line Контрольно-Кассовый Чек [17:32:52]line ПРОДАЖА [17:32:52]line ТРК (МРК, ГНК) : 32 [17:32:52]line Товар: 2710124130 [17:32:52]line Аи-92-К-3 [17:32:52]line 10.770 * 66.90 [17:32:52]line = 720.51 [17:32:52]line НДС 12% НСП 1% [17:32:52]line > о реализуемом товаре [17:32:52]line ИТОГО: 720.51 [17:32:52]line НСП 1% : 6.38 [17:32:52]line НДС 12% : 76.51 [17:32:52]line Наличными: 0.00 [17:32:52]line Безнал.: 720.51 [17:32:52]line Место: АЗС № 86 "Партнер Нефть" [17:32:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:32:52]line СНО: Общий режим [17:32:52]line Чек 294 23.10.2024 17:32 [17:32:52]line Смена: 462 ФФД: 1.0 [17:32:52]line ЗНМ: 0300000155 [17:32:52]line РНМ: 0000000000100030 [17:32:52]line Версия ККМ: 001 [17:32:52]line Платежная система: Mbank [17:32:52]line ФМ: 0000000000965340 [17:32:52]line ФД: 188836 [17:32:52]line ФПД: 220996066301050 [17:32:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173251&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188836&fm=220996066301050&tin=02508201610067®Number=0000000000100030&sum=72051 [17:32:52]OFD Sender: Processing packet 188836 [packets to send 1062, broken 1061] [17:32:52]ProducePacketName [17:32:52]name=ofd_packets/00188836 [17:32:52]OFD Sender: To server: pG, [17:32:52]CommunicateWithHost lk.salyk.kg:30040 [17:32:52]ConnectInit lk.salyk.kg [17:32:52]written 0, free lines is 4095 [17:32:52]Connected sock=10 [17:32:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FC CB 07 01 68 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 43 33 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E1 02 00 35 04 06 00 C8 FE A8 07 54 7A 27 E3 3D D7 37 13 3A E3 [17:32:53]Write to MH i2c: 01 00 00 9A 18 B2 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 07 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 07 00 9A 18 00 00 00 00 00 8C 0C 51 [17:32:53]RasterBufferAndPrint [17:32:53]line [17:32:53]line [17:32:53]line [17:32:53]line [17:32:53]line [17:32:53]written 0, free lines is 3215 [17:32:53]MH_Cut [17:32:53]Write to MH i2c: D1 01 00 A1 18 01 8B [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: D1 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: D1 01 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: D1 01 00 A1 18 00 8A [17:32:53]Write to MH i2c: 01 00 00 A2 18 BA [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 76 6C 47 00 CF 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E1 02 00 F4 03 04 00 2E DD 18 67 B6 04 01 00 00 2D 0D 20 48 75 C5 6F 68 [17:32:53]CommunicateWithHost err = 0 [17:32:53]CheckOFDResponse [17:32:53]1017 (14) - 77093643461234 [17:32:53]1041 (16) - 0000000000965340 [17:32:53]1040 (4) - 188836 [17:32:53]1012 (4) - 23.10.2024 11:25 [17:32:53]1206 (1) - 0 [17:32:53]OFD Sender: Remove packet 188836 [17:32:53]ProducePacketName [17:32:53]name=ofd_packets/00188836 [17:32:53]NVStorageDeleteData [17:32:53]OFD Sender: No OFD packet to send [17:32:54]*** Cut start [17:32:54]*** Partial cut [17:32:54]*** CUTSNS_PIN = 1 [17:32:54]*** CUTSNS_PIN = 0 [17:32:54]*** Brake cut motor [17:32:54]Read from MH i2c: 01 [17:32:54]MH_I2C_Read... [17:32:54]*** Stop cut motor [17:32:54]*** Cut end [17:32:54]Read from MH i2c: 01 07 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 A2 18 00 00 00 00 00 FF 0F CF [17:32:54]process_action close_receipt done [17:32:54]requested_data is exist [17:32:54]produce_requested_data [17:32:54]requested_item fm.sn is exist - process it [17:32:54]wFMCommunicate request_size=4 [17:32:54]MH_SAM_APDU [17:32:54]CAPDU: 80 11 00 00 [17:32:54]Write to MH i2c: E2 08 00 A3 18 80 11 00 00 00 00 00 00 35 [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:54]Read from MH i2c: E2 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 17 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 17 00 A3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [17:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:32:54]wFMCommunicate OK [17:32:54]requested_item fd.num is exist - process it [17:32:54]SAM_PROTO_GetFieldsCounters [17:32:54]wFMCommunicate request_size=4 [17:32:54]MH_SAM_APDU [17:32:54]CAPDU: 80 13 00 00 [17:32:54]Write to MH i2c: E2 08 00 A4 18 80 13 00 00 00 00 00 00 38 [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:55]Read from MH i2c: E2 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 62 00 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 62 00 A4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [17:32:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:55]wFMCommunicate OK [17:32:55]SAM_PROTO_GetFieldsCounters done [17:32:55]requested_item shift.num is exist - process it [17:32:55]requested_item shift.opened is exist - process it [17:32:55]req_shift_opened [17:32:55]FM_GetShiftState [17:32:55]SAM_PROTO_GetShiftState [17:32:55]wFMCommunicate request_size=4 [17:32:55]MH_SAM_APDU [17:32:55]CAPDU: 80 13 01 00 [17:32:55]Write to MH i2c: E2 08 00 A5 18 80 13 01 00 00 00 00 00 3A [17:32:55]Write i2c OK [17:32:55]MH_I2C_Read... [17:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:55]Read from MH i2c: E2 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 0E 00 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 0E 00 A5 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 22 [17:32:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:32:55]wFMCommunicate OK [17:32:55]SAM_PROTO_GetShiftState done [17:32:55]FM_GetShiftState done [17:32:55]req_shift_opened done [17:32:55]requested_item shift.open_date is exist - process it [17:32:55]req_shift_open_date [17:32:55]req_shift_open_date done [17:32:55]produce_requested_data done [17:32:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188836,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:32:55]process_action_free close_receipt [17:32:55]json_value_free [17:32:55]json_value_free done [17:32:55]process_json_proto returns [17:32:55]Send response to host [17:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188836,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:32:55]free response buf [17:32:55]execute_script done [17:32:55]execute_script returns [17:32:55]free content buf [17:32:55]Sock 9.Close socket [17:32:55]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]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:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:17]accept exits with 7 [17:42:17]New connection [17:42:17]New thread 3067350372 created [17:42:17]Thread 3067207012 joined [17:42:17]Waiting for new connection... [17:42:17] Sock 7.Parse request [17:42:17]Sock 7.Check first char [17:42:17]Sock 7.First char is OK [17:42:17]request: POST /json_proto HTTP/1.0 [17:42:17]Method: POST [17:42:17]URL: /json_proto [17:42:17]Method is POST - this is cgi request [17:42:17]url: /json_proto [17:42:17]query_string will be loaded in cgi processing [17:42:17]execute_cgi json_proto POST (null) [17:42:17]execute_cgi path=json_proto method=POST [17:42:17]POST find Content-Length [17:42:17]Host: 172.17.42.131:8080 [17:42:17]Content-Length: 688 [17:42:17]Content-Type: application/json [17:42:17] [17:42:17]POST finish read [17:42:17]Found Content-Length = 688 [17:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:17]execute_script... [17:42:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:17]POST & json_proto [17:42:17]process_json_proto [17:42:17]json parsed OK: [17:42:17]protocol is kg_v1.0 [17:42:17]action value=close_receipt [17:42:17]process_action close_receipt [17:42:17]cmd_close_receipt [17:42:17]MH_GetDate [17:42:17]Write to MH i2c: F0 00 00 A6 18 AD [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: F0 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: F0 09 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: F0 09 00 A6 18 00 7A 35 19 67 A0 18 CA 66 CD [17:42:17]GetLastDocTimeStamp 1729704771 [17:42:17]current date 1729705338 [17:42:17]FM_GetShiftState [17:42:17]SAM_PROTO_GetShiftState [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 13 01 00 [17:42:17]Write to MH i2c: E2 08 00 A7 18 80 13 01 00 00 00 00 00 3C [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:17]Read from MH i2c: E2 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 0E 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 0E 00 A7 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 24 [17:42:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:42:17]wFMCommunicate OK [17:42:17]SAM_PROTO_GetShiftState done [17:42:17]FM_GetShiftState done [17:42:17]opened in 1729642525 [17:42:17]opened+sec_in_day 1729728925 [17:42:17]quantity*price = 200025 [17:42:17]sum+1 = 200026 [17:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 295 23.10.2024 17:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188837 ФПД: 175205012250977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174218&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188837&fm=175205012250977&tin=02508201610067®Number=0000000000100030&sum=200000 [17:42:18]StoreToDocumentArchive [17:42:18]shift 462 fd 188837 [17:42:18]save to /storage/0462/doc_00188837 [17:42:18]save last doc name /storage/0462/doc_00188837 to /storage/kkm_last_doc_name [17:42:18]save OK [17:42:18]Clear old archive folders... [17:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:42:18]tlvbuf is 011238B0 [17:42:18]SAM_PROTO_ClearQueue [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 09 00 00 [17:42:18]Write to MH i2c: E2 08 00 B4 18 80 09 00 00 00 00 00 00 3E [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [17:42:18]RAPDU: 90 00 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_ClearQueue done [17:42:18]KKMCreateOFDPacket [17:42:18]OFDProtocolAddRootSTLVToBuf [17:42:18]FM_MakeSignedData [17:42:18]FM_MakeSignedData [17:42:18]SAM_PROTO_SignData [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 0D 01 02 [17:42:18]Write to MH i2c: E2 08 00 B5 18 80 0D 01 02 00 00 00 00 46 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [17:42:18]RAPDU: 90 00 [17:42:18]wFMCommunicate OK [17:42:18]wFMCommunicate request_size=255 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 7A 35 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E1 02 [17:42:18]Write to MH i2c: E2 02 01 B6 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 7A 35 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E1 02 00 00 95 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [17:42:18]RAPDU: 90 00 [17:42:18]wFMCommunicate OK [17:42:18]wFMCommunicate request_size=16 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9F 59 18 84 A1 61 [17:42:18]Write to MH i2c: E2 13 00 B7 18 80 0D 02 02 0B 00 00 35 04 06 00 9F 59 18 84 A1 61 00 00 34 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [17:42:18]RAPDU: 90 00 [17:42:18]wFMCommunicate OK [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 0D 03 02 [17:42:18]Write to MH i2c: E2 08 00 B8 18 80 0D 03 02 00 00 00 00 4B [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0B 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0B 00 B8 18 00 2C 9A 82 2F 9D 42 AC D6 90 00 24 [17:42:18]RAPDU: 2C 9A 82 2F 9D 42 AC D6 90 00 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_SignData done [17:42:18]FM_MakeSignedData done [17:42:18]CreateOFDProtocolMessage [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 11 00 00 [17:42:18]Write to MH i2c: E2 08 00 B9 18 80 11 00 00 00 00 00 00 4B [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 17 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 17 00 B9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [17:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:42:18]wFMCommunicate OK [17:42:18]CreateOFDProtocolMessage done [17:42:18]OFDSenderStorePacket 188837 [17:42:18]StoreOFDPacket docnum=188837 [17:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D5 FE 0D 01 C0 09 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 7A 35 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E1 02 00 35 04 06 00 9F 59 18 84 A1 61 2C 9A 82 2F 9D 42 AC D6 [17:42:18]CheckFolder [17:42:18]dirname=/storage/ofd_packets [17:42:18]CheckFolder done [17:42:18]ProducePacketName [17:42:18]name=ofd_packets/00188837 [17:42:18]NVStorageSaveData ofd_packets/00188837 [17:42:18]File name is /storage/ofd_packets/00188837 [17:42:18]Write 307 bytes [17:42:18]NVStorageSaveData done [17:42:18]OFDSenderStorePacket done [17:42:18]KKMCreateOFDPacket done [17:42:18]NVStorageSaveData kkm_last_timestamp [17:42:18]File name is /storage/kkm_last_timestamp [17:42:18]Write 4 bytes [17:42:18]NVStorageSaveData done [17:42:18]ExternCall_PrintAddStr [17:42:18]wPrintStart [17:42:18]Write to MH i2c: 01 00 00 BA 18 D2 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: 01 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: 01 07 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 FF 0F E7 [17:42:18]RasterBufferAndPrint [17:42:18]line Счет N : (1)210898 [17:42:18]line ИНН: 02508201610067 [17:42:18]line Контрольно-Кассовый Чек [17:42:18]line ПРОДАЖА [17:42:18]line ТРК (МРК, ГНК) : 21 [17:42:18]line Товар: 2710194210 [17:42:18]line D-ENERGY ДТ-К-5 [17:42:18]line 25.910 * 77.20 [17:42:18]line = 2000.25 [17:42:18]line НДС 12% НСП 1% [17:42:18]line > о реализуемом товаре [17:42:18]line ОКРУГЛЕНИЕ: -0.25 [17:42:18]line ИТОГО: 2000.00 [17:42:18]line Внесено: 2000.00 [17:42:18]line СДАЧА: 0.00 [17:42:18]line НСП 1% : 17.70 [17:42:18]line НДС 12% : 212.42 [17:42:18]line Наличными: 2000.00 [17:42:18]line Безнал.: 0.00 [17:42:18]line Место: АЗС № 86 "Партнер Нефть" [17:42:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:42:18]line СНО: Общий режим [17:42:18]line Чек 295 23.10.2024 17:42 [17:42:18]line Смена: 462 ФФД: 1.0 [17:42:18]line ЗНМ: 0300000155 [17:42:18]line РНМ: 0000000000100030 [17:42:18]line Версия ККМ: 001 [17:42:18]line ФМ: 0000000000965340 [17:42:18]line ФД: 188837 [17:42:18]line ФПД: 175205012250977 [17:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174218&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188837&fm=175205012250977&tin=02508201610067®Number=0000000000100030&sum=200000 [17:42:19]OFD Sender: Processing packet 188837 [packets to send 1062, broken 1061] [17:42:19]ProducePacketName [17:42:19]name=ofd_packets/00188837 [17:42:19]OFD Sender: To server: pG, [17:42:19]CommunicateWithHost lk.salyk.kg:30040 [17:42:19]ConnectInit lk.salyk.kg [17:42:19]written 0, free lines is 4095 [17:42:19]Connected sock=10 [17:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D5 FE 0D 01 C0 09 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 7A 35 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E1 02 00 35 04 06 00 9F 59 18 84 A1 61 2C 9A 82 2F 9D 42 AC D6 [17:42:19]Write to MH i2c: 01 00 00 E5 18 FD [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 07 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 07 00 E5 18 00 00 00 00 00 55 0C 65 [17:42:19]RasterBufferAndPrint [17:42:19]line [17:42:19]line [17:42:19]line [17:42:19]line [17:42:19]line [17:42:19]written 0, free lines is 3160 [17:42:19]MH_Cut [17:42:19]Write to MH i2c: D1 01 00 EC 18 01 D6 [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: D1 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: D1 01 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: D1 01 00 EC 18 00 D5 [17:42:19]Write to MH i2c: 01 00 00 ED 18 05 [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 A2 47 00 62 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 36 35 33 34 30 10 04 04 00 A5 E1 02 00 F4 03 04 00 64 DF 18 67 B6 04 01 00 00 FD E8 C3 04 6A D1 BE C4 [17:42:19]CommunicateWithHost err = 0 [17:42:19]CheckOFDResponse [17:42:19]1017 (14) - 77093643461234 [17:42:19]1041 (16) - 0000000000965340 [17:42:19]1040 (4) - 188837 [17:42:19]1012 (4) - 23.10.2024 11:35 [17:42:19]1206 (1) - 0 [17:42:19]OFD Sender: Remove packet 188837 [17:42:19]ProducePacketName [17:42:19]name=ofd_packets/00188837 [17:42:19]NVStorageDeleteData [17:42:20]OFD Sender: No OFD packet to send [17:42:20]*** Cut start [17:42:20]*** Partial cut [17:42:20]*** CUTSNS_PIN = 1 [17:42:20]*** CUTSNS_PIN = 0 [17:42:21]*** Brake cut motor [17:42:21]Read from MH i2c: 01 [17:42:21]MH_I2C_Read... [17:42:21]*** Stop cut motor [17:42:21]*** Cut end [17:42:21]Read from MH i2c: 01 07 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: 01 07 00 ED 18 00 00 00 00 00 FF 0F 1A [17:42:21]process_action close_receipt done [17:42:21]requested_data is exist [17:42:21]produce_requested_data [17:42:21]requested_item fm.sn is exist - process it [17:42:21]wFMCommunicate request_size=4 [17:42:21]MH_SAM_APDU [17:42:21]CAPDU: 80 11 00 00 [17:42:21]Write to MH i2c: E2 08 00 EE 18 80 11 00 00 00 00 00 00 80 [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:21]Read from MH i2c: E2 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 17 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 17 00 EE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [17:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:42:21]wFMCommunicate OK [17:42:21]requested_item fd.num is exist - process it [17:42:21]SAM_PROTO_GetFieldsCounters [17:42:21]wFMCommunicate request_size=4 [17:42:21]MH_SAM_APDU [17:42:21]CAPDU: 80 13 00 00 [17:42:21]Write to MH i2c: E2 08 00 EF 18 80 13 00 00 00 00 00 00 83 [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:21]Read from MH i2c: E2 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 62 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 62 00 EF 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [17:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:21]wFMCommunicate OK [17:42:21]SAM_PROTO_GetFieldsCounters done [17:42:21]requested_item shift.num is exist - process it [17:42:21]requested_item shift.opened is exist - process it [17:42:21]req_shift_opened [17:42:21]FM_GetShiftState [17:42:21]SAM_PROTO_GetShiftState [17:42:21]wFMCommunicate request_size=4 [17:42:21]MH_SAM_APDU [17:42:21]CAPDU: 80 13 01 00 [17:42:21]Write to MH i2c: E2 08 00 F0 18 80 13 01 00 00 00 00 00 85 [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:21]Read from MH i2c: E2 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 0E 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 0E 00 F0 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6D [17:42:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:42:21]wFMCommunicate OK [17:42:21]SAM_PROTO_GetShiftState done [17:42:21]FM_GetShiftState done [17:42:21]req_shift_opened done [17:42:21]requested_item shift.open_date is exist - process it [17:42:21]req_shift_open_date [17:42:21]req_shift_open_date done [17:42:21]produce_requested_data done [17:42:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188837,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:42:21]process_action_free close_receipt [17:42:21]json_value_free [17:42:21]json_value_free done [17:42:21]process_json_proto returns [17:42:21]Send response to host [17:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188837,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:42:21]free response buf [17:42:21]execute_script done [17:42:21]execute_script returns [17:42:21]free content buf [17:42:21]Sock 7.Close socket [17:42:21]Sock 7.Thread stoped [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:45]accept exits with 9 [17:42:45]New connection [17:42:45]New thread 3067207012 created [17:42:45]Thread 3067350372 joined [17:42:45]Waiting for new connection... [17:42:45] Sock 9.Parse request [17:42:45]Sock 9.Check first char [17:42:45]Sock 9.First char is OK [17:42:45]request: POST /json_proto HTTP/1.0 [17:42:45]Method: POST [17:42:45]URL: /json_proto [17:42:45]Method is POST - this is cgi request [17:42:45]url: /json_proto [17:42:45]query_string will be loaded in cgi processing [17:42:45]execute_cgi json_proto POST (null) [17:42:45]execute_cgi path=json_proto method=POST [17:42:45]POST find Content-Length [17:42:45]Host: 172.17.42.131:8080 [17:42:45]Content-Length: 682 [17:42:45]Content-Type: application/json [17:42:45] [17:42:45]POST finish read [17:42:45]Found Content-Length = 682 [17:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:45]execute_script... [17:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:45]POST & json_proto [17:42:45]process_json_proto [17:42:45]json parsed OK: [17:42:45]protocol is kg_v1.0 [17:42:45]action value=close_receipt [17:42:45]process_action close_receipt [17:42:45]cmd_close_receipt [17:42:45]MH_GetDate [17:42:45]Write to MH i2c: F0 00 00 F1 18 F8 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: F0 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: F0 09 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: F0 09 00 F1 18 00 97 35 19 67 A0 18 CA 66 35 [17:42:45]GetLastDocTimeStamp 1729705338 [17:42:45]current date 1729705367 [17:42:45]FM_GetShiftState [17:42:45]SAM_PROTO_GetShiftState [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 13 01 00 [17:42:45]Write to MH i2c: E2 08 00 F2 18 80 13 01 00 00 00 00 00 87 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 F2 18 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6F [17:42:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:42:45]wFMCommunicate OK [17:42:45]SAM_PROTO_GetShiftState done [17:42:45]FM_GetShiftState done [17:42:45]opened in 1729642525 [17:42:45]opened+sec_in_day 1729728925 [17:42:45]quantity*price = 100015 [17:42:45]sum+1 = 100017 [17:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 296 23.10.2024 17:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188838 ФПД: 77852824703899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174247&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188838&fm=77852824703899&tin=02508201610067®Number=0000000000100030&sum=100000 [17:42:46]StoreToDocumentArchive [17:42:46]shift 462 fd 188838 [17:42:46]save to /storage/0462/doc_00188838 [17:42:46]save last doc name /storage/0462/doc_00188838 to /storage/kkm_last_doc_name [17:42:46]save OK [17:42:46]Clear old archive folders... [17:42:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:47]tlvbuf is B6FB9AC0 [17:42:47]SAM_PROTO_ClearQueue [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 09 00 00 [17:42:47]Write to MH i2c: E2 08 00 FF 18 80 09 00 00 00 00 00 00 89 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 FF 18 00 90 00 8B [17:42:47]RAPDU: 90 00 [17:42:47]wFMCommunicate OK [17:42:47]SAM_PROTO_ClearQueue done [17:42:47]KKMCreateOFDPacket [17:42:47]OFDProtocolAddRootSTLVToBuf [17:42:47]FM_MakeSignedData [17:42:47]FM_MakeSignedData [17:42:47]SAM_PROTO_SignData [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 0D 01 02 [17:42:47]Write to MH i2c: E2 08 00 00 19 80 0D 01 02 00 00 00 00 92 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 00 19 00 90 00 8D [17:42:47]RAPDU: 90 00 [17:42:47]wFMCommunicate OK [17:42:47]wFMCommunicate request_size=255 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 97 35 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E1 02 00 35 04 06 00 46 [17:42:47]Write to MH i2c: E2 02 01 01 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 97 35 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E1 02 00 35 04 06 00 46 00 00 12 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 01 19 00 90 00 8E [17:42:47]RAPDU: 90 00 [17:42:47]wFMCommunicate OK [17:42:47]wFMCommunicate request_size=10 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 0D 02 02 05 CE 85 F6 13 9B [17:42:47]Write to MH i2c: E2 0D 00 02 19 80 0D 02 02 05 00 CE 85 F6 13 9B 00 00 96 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [17:42:47]RAPDU: 90 00 [17:42:47]wFMCommunicate OK [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 0D 03 02 [17:42:47]Write to MH i2c: E2 08 00 03 19 80 0D 03 02 00 00 00 00 97 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 0B 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 0B 00 03 19 00 6D 5E 75 7E A2 2B D5 3B 90 00 33 [17:42:47]RAPDU: 6D 5E 75 7E A2 2B D5 3B 90 00 [17:42:47]wFMCommunicate OK [17:42:47]SAM_PROTO_SignData done [17:42:47]FM_MakeSignedData done [17:42:47]CreateOFDProtocolMessage [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 11 00 00 [17:42:47]Write to MH i2c: E2 08 00 04 19 80 11 00 00 00 00 00 00 97 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 17 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 17 00 04 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [17:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:42:47]wFMCommunicate OK [17:42:47]CreateOFDProtocolMessage done [17:42:47]OFDSenderStorePacket 188838 [17:42:47]StoreOFDPacket docnum=188838 [17:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C 9B 07 01 C1 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 97 35 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E1 02 00 35 04 06 00 46 CE 85 F6 13 9B 6D 5E 75 7E A2 2B D5 3B [17:42:47]CheckFolder [17:42:47]dirname=/storage/ofd_packets [17:42:47]CheckFolder done [17:42:47]ProducePacketName [17:42:47]name=ofd_packets/00188838 [17:42:47]NVStorageSaveData ofd_packets/00188838 [17:42:47]File name is /storage/ofd_packets/00188838 [17:42:47]Write 301 bytes [17:42:47]NVStorageSaveData done [17:42:47]OFDSenderStorePacket done [17:42:47]KKMCreateOFDPacket done [17:42:47]NVStorageSaveData kkm_last_timestamp [17:42:47]File name is /storage/kkm_last_timestamp [17:42:47]Write 4 bytes [17:42:47]NVStorageSaveData done [17:42:47]ExternCall_PrintAddStr [17:42:47]wPrintStart [17:42:47]Write to MH i2c: 01 00 00 05 19 1E [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 07 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 07 00 05 19 00 00 00 00 00 FF 0F 33 [17:42:47]RasterBufferAndPrint [17:42:47]line Счет N : (1)210899 [17:42:47]line ИНН: 02508201610067 [17:42:47]line Контрольно-Кассовый Чек [17:42:47]line ПРОДАЖА [17:42:47]line ТРК (МРК, ГНК) : 12 [17:42:47]line Товар: 2710124130 [17:42:47]line Аи-92-К-3 [17:42:47]line 14.950 * 66.90 [17:42:47]line = 1000.16 [17:42:47]line НДС 12% НСП 1% [17:42:47]line > о реализуемом товаре [17:42:47]line ОКРУГЛЕНИЕ: -0.16 [17:42:47]line ИТОГО: 1000.00 [17:42:47]line Внесено: 1000.00 [17:42:47]line СДАЧА: 0.00 [17:42:47]line НСП 1% : 8.85 [17:42:47]line НДС 12% : 106.21 [17:42:47]line Наличными: 1000.00 [17:42:47]line Безнал.: 0.00 [17:42:47]line Место: АЗС № 86 "Партнер Нефть" [17:42:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:42:47]line СНО: Общий режим [17:42:47]line Чек 296 23.10.2024 17:42 [17:42:47]line Смена: 462 ФФД: 1.0 [17:42:47]line ЗНМ: 0300000155 [17:42:47]line РНМ: 0000000000100030 [17:42:47]line Версия ККМ: 001 [17:42:47]line ФМ: 0000000000965340 [17:42:47]line ФД: 188838 [17:42:47]line ФПД: 77852824703899 [17:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174247&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188838&fm=77852824703899&tin=02508201610067®Number=0000000000100030&sum=100000 [17:42:47]written 0, free lines is 4095 [17:42:47]OFD Sender: Processing packet 188838 [packets to send 1062, broken 1061] [17:42:47]ProducePacketName [17:42:47]name=ofd_packets/00188838 [17:42:47]OFD Sender: To server: pG, [17:42:47]CommunicateWithHost lk.salyk.kg:30040 [17:42:47]ConnectInit lk.salyk.kg [17:42:47]Connected sock=7 [17:42:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C 9B 07 01 C1 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 97 35 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E1 02 00 35 04 06 00 46 CE 85 F6 13 9B 6D 5E 75 7E A2 2B D5 3B [17:42:48]Write to MH i2c: 01 00 00 30 19 49 [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: 01 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: 01 07 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: 01 07 00 30 19 00 00 00 00 00 5F 0C BB [17:42:48]RasterBufferAndPrint [17:42:48]line [17:42:48]line [17:42:48]line [17:42:48]line [17:42:48]line [17:42:48]written 0, free lines is 3171 [17:42:48]MH_Cut [17:42:48]Write to MH i2c: D1 01 00 37 19 01 22 [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: D1 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: D1 01 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: D1 01 00 37 19 00 21 [17:42:48]Write to MH i2c: 01 00 00 38 19 51 [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 08 E1 47 00 98 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E1 02 00 F4 03 04 00 81 DF 18 67 B6 04 01 00 00 9C DC FA 12 63 FD 4A 0E [17:42:48]CommunicateWithHost err = 0 [17:42:48]CheckOFDResponse [17:42:48]1017 (14) - 77093643461234 [17:42:48]1041 (16) - 0000000000965340 [17:42:48]1040 (4) - 188838 [17:42:48]1012 (4) - 23.10.2024 11:35 [17:42:48]1206 (1) - 0 [17:42:48]OFD Sender: Remove packet 188838 [17:42:48]ProducePacketName [17:42:48]name=ofd_packets/00188838 [17:42:48]NVStorageDeleteData [17:42:48]OFD Sender: No OFD packet to send [17:42:49]*** Cut start [17:42:49]*** Partial cut [17:42:49]*** CUTSNS_PIN = 1 [17:42:49]*** CUTSNS_PIN = 0 [17:42:49]*** Brake cut motor [17:42:49]Read from MH i2c: 01 [17:42:49]MH_I2C_Read... [17:42:49]*** Stop cut motor [17:42:49]*** Cut end [17:42:49]Read from MH i2c: 01 07 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 FF 0F 66 [17:42:49]process_action close_receipt done [17:42:49]requested_data is exist [17:42:49]produce_requested_data [17:42:49]requested_item fm.sn is exist - process it [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 11 00 00 [17:42:49]Write to MH i2c: E2 08 00 39 19 80 11 00 00 00 00 00 00 CC [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 17 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 17 00 39 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [17:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:42:49]wFMCommunicate OK [17:42:49]requested_item fd.num is exist - process it [17:42:49]SAM_PROTO_GetFieldsCounters [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 13 00 00 [17:42:49]Write to MH i2c: E2 08 00 3A 19 80 13 00 00 00 00 00 00 CF [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:50]Read from MH i2c: E2 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 62 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 62 00 3A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [17:42:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:50]wFMCommunicate OK [17:42:50]SAM_PROTO_GetFieldsCounters done [17:42:50]requested_item shift.num is exist - process it [17:42:50]requested_item shift.opened is exist - process it [17:42:50]req_shift_opened [17:42:50]FM_GetShiftState [17:42:50]SAM_PROTO_GetShiftState [17:42:50]wFMCommunicate request_size=4 [17:42:50]MH_SAM_APDU [17:42:50]CAPDU: 80 13 01 00 [17:42:50]Write to MH i2c: E2 08 00 3B 19 80 13 01 00 00 00 00 00 D1 [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:50]Read from MH i2c: E2 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 0E 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 0E 00 3B 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B9 [17:42:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:42:50]wFMCommunicate OK [17:42:50]SAM_PROTO_GetShiftState done [17:42:50]FM_GetShiftState done [17:42:50]req_shift_opened done [17:42:50]requested_item shift.open_date is exist - process it [17:42:50]req_shift_open_date [17:42:50]req_shift_open_date done [17:42:50]produce_requested_data done [17:42:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188838,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:42:50]process_action_free close_receipt [17:42:50]json_value_free [17:42:50]json_value_free done [17:42:50]process_json_proto returns [17:42:50]Send response to host [17:42:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188838,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:42:50]free response buf [17:42:50]execute_script done [17:42:50]execute_script returns [17:42:50]free content buf [17:42:50]Sock 9.Close socket [17:42:50]Sock 9.Thread stoped [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:07]accept exits with 10 [17:47:07]New connection [17:47:07]New thread 3067350372 created [17:47:07]Thread 3067207012 joined [17:47:07]Waiting for new connection... [17:47:07] Sock 10.Parse request [17:47:07]Sock 10.Check first char [17:47:07]Sock 10.First char is OK [17:47:07]request: POST /json_proto HTTP/1.0 [17:47:07]Method: POST [17:47:07]URL: /json_proto [17:47:07]Method is POST - this is cgi request [17:47:07]url: /json_proto [17:47:07]query_string will be loaded in cgi processing [17:47:07]execute_cgi json_proto POST (null) [17:47:07]execute_cgi path=json_proto method=POST [17:47:07]POST find Content-Length [17:47:07]Host: 172.17.42.131:8080 [17:47:07]Content-Length: 688 [17:47:07]Content-Type: application/json [17:47:07] [17:47:07]POST finish read [17:47:07]Found Content-Length = 688 [17:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:07]execute_script... [17:47:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:07]POST & json_proto [17:47:07]process_json_proto [17:47:07]json parsed OK: [17:47:07]protocol is kg_v1.0 [17:47:07]action value=close_receipt [17:47:07]process_action close_receipt [17:47:07]cmd_close_receipt [17:47:07]MH_GetDate [17:47:07]Write to MH i2c: F0 00 00 3C 19 44 [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: F0 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: F0 09 00 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: F0 09 00 3C 19 00 9C 36 19 67 A0 18 CA 66 87 [17:47:07]GetLastDocTimeStamp 1729705367 [17:47:07]current date 1729705628 [17:47:07]FM_GetShiftState [17:47:07]SAM_PROTO_GetShiftState [17:47:07]wFMCommunicate request_size=4 [17:47:07]MH_SAM_APDU [17:47:07]CAPDU: 80 13 01 00 [17:47:07]Write to MH i2c: E2 08 00 3D 19 80 13 01 00 00 00 00 00 D3 [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:07]Read from MH i2c: E2 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 0E 00 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 0E 00 3D 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BB [17:47:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:47:07]wFMCommunicate OK [17:47:07]SAM_PROTO_GetShiftState done [17:47:07]FM_GetShiftState done [17:47:07]opened in 1729642525 [17:47:07]opened+sec_in_day 1729728925 [17:47:07]quantity*price = 200025 [17:47:07]sum+1 = 200026 [17:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 297 23.10.2024 17:47 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188839 ФПД: 146988063484737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174708&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188839&fm=146988063484737&tin=02508201610067®Number=0000000000100030&sum=200000 [17:47:08]StoreToDocumentArchive [17:47:08]shift 462 fd 188839 [17:47:08]save to /storage/0462/doc_00188839 [17:47:08]save last doc name /storage/0462/doc_00188839 to /storage/kkm_last_doc_name [17:47:08]save OK [17:47:08]Clear old archive folders... [17:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:47:08]tlvbuf is 0115E510 [17:47:08]SAM_PROTO_ClearQueue [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 09 00 00 [17:47:08]Write to MH i2c: E2 08 00 4A 19 80 09 00 00 00 00 00 00 D5 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [17:47:08]RAPDU: 90 00 [17:47:08]wFMCommunicate OK [17:47:08]SAM_PROTO_ClearQueue done [17:47:08]KKMCreateOFDPacket [17:47:08]OFDProtocolAddRootSTLVToBuf [17:47:08]FM_MakeSignedData [17:47:08]FM_MakeSignedData [17:47:08]SAM_PROTO_SignData [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 0D 01 02 [17:47:08]Write to MH i2c: E2 08 00 4B 19 80 0D 01 02 00 00 00 00 DD [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 4B 19 00 90 00 D8 [17:47:08]RAPDU: 90 00 [17:47:08]wFMCommunicate OK [17:47:08]wFMCommunicate request_size=255 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 9C 36 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E1 02 [17:47:08]Write to MH i2c: E2 02 01 4C 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 9C 36 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E1 02 00 00 53 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 4C 19 00 90 00 D9 [17:47:08]RAPDU: 90 00 [17:47:08]wFMCommunicate OK [17:47:08]wFMCommunicate request_size=16 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 85 AF 53 4F 6B 41 [17:47:08]Write to MH i2c: E2 13 00 4D 19 80 0D 02 02 0B 00 00 35 04 06 00 85 AF 53 4F 6B 41 00 00 B7 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 4D 19 00 90 00 DA [17:47:08]RAPDU: 90 00 [17:47:08]wFMCommunicate OK [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 0D 03 02 [17:47:08]Write to MH i2c: E2 08 00 4E 19 80 0D 03 02 00 00 00 00 E2 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0B 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0B 00 4E 19 00 FD 61 A6 F4 D1 D8 C3 C8 90 00 0F [17:47:08]RAPDU: FD 61 A6 F4 D1 D8 C3 C8 90 00 [17:47:08]wFMCommunicate OK [17:47:08]SAM_PROTO_SignData done [17:47:08]FM_MakeSignedData done [17:47:08]CreateOFDProtocolMessage [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 11 00 00 [17:47:08]Write to MH i2c: E2 08 00 4F 19 80 11 00 00 00 00 00 00 E2 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 17 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 17 00 4F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [17:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:08]wFMCommunicate OK [17:47:08]CreateOFDProtocolMessage done [17:47:08]OFDSenderStorePacket 188839 [17:47:08]StoreOFDPacket docnum=188839 [17:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BA B0 0D 01 C4 E6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 9C 36 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E1 02 00 35 04 06 00 85 AF 53 4F 6B 41 FD 61 A6 F4 D1 D8 C3 C8 [17:47:08]CheckFolder [17:47:08]dirname=/storage/ofd_packets [17:47:08]CheckFolder done [17:47:08]ProducePacketName [17:47:08]name=ofd_packets/00188839 [17:47:08]NVStorageSaveData ofd_packets/00188839 [17:47:08]File name is /storage/ofd_packets/00188839 [17:47:08]Write 307 bytes [17:47:08]NVStorageSaveData done [17:47:08]OFDSenderStorePacket done [17:47:08]KKMCreateOFDPacket done [17:47:08]NVStorageSaveData kkm_last_timestamp [17:47:08]File name is /storage/kkm_last_timestamp [17:47:08]Write 4 bytes [17:47:08]NVStorageSaveData done [17:47:08]ExternCall_PrintAddStr [17:47:08]wPrintStart [17:47:08]Write to MH i2c: 01 00 00 50 19 69 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 07 00 [17:47:08]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 50 19 00 00 00 00 00 FF 0F 7E [17:47:09]RasterBufferAndPrint [17:47:09]line Счет N : (1)210901 [17:47:09]line ИНН: 02508201610067 [17:47:09]line Контрольно-Кассовый Чек [17:47:09]line ПРОДАЖА [17:47:09]line ТРК (МРК, ГНК) : 21 [17:47:09]line Товар: 2710194210 [17:47:09]line D-ENERGY ДТ-К-5 [17:47:09]line 25.910 * 77.20 [17:47:09]line = 2000.25 [17:47:09]line НДС 12% НСП 1% [17:47:09]line > о реализуемом товаре [17:47:09]line ОКРУГЛЕНИЕ: -0.25 [17:47:09]line ИТОГО: 2000.00 [17:47:09]line Внесено: 2000.00 [17:47:09]line СДАЧА: 0.00 [17:47:09]line НСП 1% : 17.70 [17:47:09]line НДС 12% : 212.42 [17:47:09]line Наличными: 2000.00 [17:47:09]line Безнал.: 0.00 [17:47:09]line Место: АЗС № 86 "Партнер Нефть" [17:47:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:47:09]line СНО: Общий режим [17:47:09]line Чек 297 23.10.2024 17:47 [17:47:09]line Смена: 462 ФФД: 1.0 [17:47:09]line ЗНМ: 0300000155 [17:47:09]line РНМ: 0000000000100030 [17:47:09]line Версия ККМ: 001 [17:47:09]line ФМ: 0000000000965340 [17:47:09]line ФД: 188839 [17:47:09]line ФПД: 146988063484737 [17:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174708&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188839&fm=146988063484737&tin=02508201610067®Number=0000000000100030&sum=200000 [17:47:09]written 0, free lines is 4095 [17:47:09]OFD Sender: Processing packet 188839 [packets to send 1062, broken 1061] [17:47:09]ProducePacketName [17:47:09]name=ofd_packets/00188839 [17:47:09]OFD Sender: To server: pG, [17:47:09]CommunicateWithHost lk.salyk.kg:30040 [17:47:09]ConnectInit lk.salyk.kg [17:47:09]Connected sock=9 [17:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BA B0 0D 01 C4 E6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 9C 36 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E1 02 00 35 04 06 00 85 AF 53 4F 6B 41 FD 61 A6 F4 D1 D8 C3 C8 [17:47:09]Write to MH i2c: 01 00 00 7B 19 94 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 7B 19 00 00 00 00 00 56 0C FD [17:47:09]RasterBufferAndPrint [17:47:09]line [17:47:09]line [17:47:09]line [17:47:09]line [17:47:09]line [17:47:09]written 0, free lines is 3162 [17:47:09]MH_Cut [17:47:09]Write to MH i2c: D1 01 00 82 19 01 6D [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: D1 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: D1 01 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: D1 01 00 82 19 00 6C [17:47:09]Write to MH i2c: 01 00 00 83 19 9C [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CF B6 47 00 C7 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 36 35 33 34 30 10 04 04 00 A7 E1 02 00 F4 03 04 00 86 E0 18 67 B6 04 01 00 00 F8 6B ED 1D 26 EF A3 60 [17:47:09]CommunicateWithHost err = 0 [17:47:09]CheckOFDResponse [17:47:09]1017 (14) - 77093643461234 [17:47:09]1041 (16) - 0000000000965340 [17:47:09]1040 (4) - 188839 [17:47:09]1012 (4) - 23.10.2024 11:39 [17:47:09]1206 (1) - 0 [17:47:09]OFD Sender: Remove packet 188839 [17:47:09]ProducePacketName [17:47:09]name=ofd_packets/00188839 [17:47:09]NVStorageDeleteData [17:47:10]OFD Sender: No OFD packet to send [17:47:10]*** Cut start [17:47:10]*** Partial cut [17:47:10]*** CUTSNS_PIN = 1 [17:47:10]*** CUTSNS_PIN = 0 [17:47:11]*** Brake cut motor [17:47:11]Read from MH i2c: 01 [17:47:11]MH_I2C_Read... [17:47:11]*** Stop cut motor [17:47:11]*** Cut end [17:47:11]Read from MH i2c: 01 07 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 FF 0F B1 [17:47:11]process_action close_receipt done [17:47:11]requested_data is exist [17:47:11]produce_requested_data [17:47:11]requested_item fm.sn is exist - process it [17:47:11]wFMCommunicate request_size=4 [17:47:11]MH_SAM_APDU [17:47:11]CAPDU: 80 11 00 00 [17:47:11]Write to MH i2c: E2 08 00 84 19 80 11 00 00 00 00 00 00 17 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:11]Read from MH i2c: E2 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 17 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 17 00 84 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [17:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:11]wFMCommunicate OK [17:47:11]requested_item fd.num is exist - process it [17:47:11]SAM_PROTO_GetFieldsCounters [17:47:11]wFMCommunicate request_size=4 [17:47:11]MH_SAM_APDU [17:47:11]CAPDU: 80 13 00 00 [17:47:11]Write to MH i2c: E2 08 00 85 19 80 13 00 00 00 00 00 00 1A [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:11]Read from MH i2c: E2 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 62 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 62 00 85 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [17:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:11]wFMCommunicate OK [17:47:11]SAM_PROTO_GetFieldsCounters done [17:47:11]requested_item shift.num is exist - process it [17:47:11]requested_item shift.opened is exist - process it [17:47:11]req_shift_opened [17:47:11]FM_GetShiftState [17:47:11]SAM_PROTO_GetShiftState [17:47:11]wFMCommunicate request_size=4 [17:47:11]MH_SAM_APDU [17:47:11]CAPDU: 80 13 01 00 [17:47:11]Write to MH i2c: E2 08 00 86 19 80 13 01 00 00 00 00 00 1C [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:11]Read from MH i2c: E2 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 0E 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 0E 00 86 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 04 [17:47:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:47:11]wFMCommunicate OK [17:47:11]SAM_PROTO_GetShiftState done [17:47:11]FM_GetShiftState done [17:47:11]req_shift_opened done [17:47:11]requested_item shift.open_date is exist - process it [17:47:11]req_shift_open_date [17:47:11]req_shift_open_date done [17:47:11]produce_requested_data done [17:47:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188839,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:47:11]process_action_free close_receipt [17:47:11]json_value_free [17:47:11]json_value_free done [17:47:11]process_json_proto returns [17:47:11]Send response to host [17:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188839,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:47:11]free response buf [17:47:11]execute_script done [17:47:11]execute_script returns [17:47:11]free content buf [17:47:11]Sock 10.Close socket [17:47:11]Sock 10.Thread stoped [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:09]accept exits with 7 [17:49:09]New connection [17:49:09]New thread 3067207012 created [17:49:09]Thread 3067350372 joined [17:49:09]Waiting for new connection... [17:49:09] Sock 7.Parse request [17:49:09]Sock 7.Check first char [17:49:09]Sock 7.First char is OK [17:49:09]request: POST /json_proto HTTP/1.0 [17:49:09]Method: POST [17:49:09]URL: /json_proto [17:49:09]Method is POST - this is cgi request [17:49:09]url: /json_proto [17:49:09]query_string will be loaded in cgi processing [17:49:09]execute_cgi json_proto POST (null) [17:49:09]execute_cgi path=json_proto method=POST [17:49:09]POST find Content-Length [17:49:09]Host: 172.17.42.131:8080 [17:49:09]Content-Length: 679 [17:49:09]Content-Type: application/json [17:49:09] [17:49:09]POST finish read [17:49:09]Found Content-Length = 679 [17:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:09]execute_script... [17:49:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:09]POST & json_proto [17:49:09]process_json_proto [17:49:09]json parsed OK: [17:49:09]protocol is kg_v1.0 [17:49:09]action value=close_receipt [17:49:09]process_action close_receipt [17:49:09]cmd_close_receipt [17:49:09]MH_GetDate [17:49:09]Write to MH i2c: F0 00 00 87 19 8F [17:49:09]Write i2c OK [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: F0 [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: F0 09 00 [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: F0 09 00 87 19 00 16 37 19 67 A0 18 CA 66 4D [17:49:09]GetLastDocTimeStamp 1729705628 [17:49:09]current date 1729705750 [17:49:09]FM_GetShiftState [17:49:09]SAM_PROTO_GetShiftState [17:49:09]wFMCommunicate request_size=4 [17:49:09]MH_SAM_APDU [17:49:09]CAPDU: 80 13 01 00 [17:49:09]Write to MH i2c: E2 08 00 88 19 80 13 01 00 00 00 00 00 1E [17:49:09]Write i2c OK [17:49:09]MH_I2C_Read... [17:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:09]Read from MH i2c: E2 [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: E2 0E 00 [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: E2 0E 00 88 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 06 [17:49:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:49:09]wFMCommunicate OK [17:49:09]SAM_PROTO_GetShiftState done [17:49:09]FM_GetShiftState done [17:49:09]opened in 1729642525 [17:49:09]opened+sec_in_day 1729728925 [17:49:09]quantity*price = 100050 [17:49:09]sum+1 = 100052 [17:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 298 23.10.2024 17:49 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188840 ФПД: 215142657849486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174911&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188840&fm=215142657849486&tin=02508201610067®Number=0000000000100030&sum=100000 [17:49:10]StoreToDocumentArchive [17:49:10]shift 462 fd 188840 [17:49:10]save to /storage/0462/doc_00188840 [17:49:10]save last doc name /storage/0462/doc_00188840 to /storage/kkm_last_doc_name [17:49:10]save OK [17:49:10]Clear old archive folders... [17:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:49:10]tlvbuf is 01159F80 [17:49:10]SAM_PROTO_ClearQueue [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 09 00 00 [17:49:10]Write to MH i2c: E2 08 00 95 19 80 09 00 00 00 00 00 00 20 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 95 19 00 90 00 22 [17:49:10]RAPDU: 90 00 [17:49:10]wFMCommunicate OK [17:49:10]SAM_PROTO_ClearQueue done [17:49:10]KKMCreateOFDPacket [17:49:10]OFDProtocolAddRootSTLVToBuf [17:49:10]FM_MakeSignedData [17:49:10]FM_MakeSignedData [17:49:10]SAM_PROTO_SignData [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 0D 01 02 [17:49:10]Write to MH i2c: E2 08 00 96 19 80 0D 01 02 00 00 00 00 28 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [17:49:10]RAPDU: 90 00 [17:49:10]wFMCommunicate OK [17:49:10]wFMCommunicate request_size=255 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 17 37 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E1 02 00 35 04 06 00 C3 AB CD B2 [17:49:10]Write to MH i2c: E2 02 01 97 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 17 37 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E1 02 00 35 04 06 00 C3 AB CD B2 00 00 D3 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 97 19 00 90 00 24 [17:49:11]RAPDU: 90 00 [17:49:11]wFMCommunicate OK [17:49:11]wFMCommunicate request_size=7 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 0D 02 02 02 78 8E [17:49:11]Write to MH i2c: E2 0A 00 98 19 80 0D 02 02 02 00 78 8E 00 00 35 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [17:49:11]RAPDU: 90 00 [17:49:11]wFMCommunicate OK [17:49:11]wFMCommunicate request_size=4 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 0D 03 02 [17:49:11]Write to MH i2c: E2 08 00 99 19 80 0D 03 02 00 00 00 00 2D [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 0B 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 0B 00 99 19 00 78 60 A7 31 54 EB EE AF 90 00 BA [17:49:11]RAPDU: 78 60 A7 31 54 EB EE AF 90 00 [17:49:11]wFMCommunicate OK [17:49:11]SAM_PROTO_SignData done [17:49:11]FM_MakeSignedData done [17:49:11]CreateOFDProtocolMessage [17:49:11]wFMCommunicate request_size=4 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 11 00 00 [17:49:11]Write to MH i2c: E2 08 00 9A 19 80 11 00 00 00 00 00 00 2D [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 17 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 17 00 9A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [17:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:49:11]wFMCommunicate OK [17:49:11]CreateOFDProtocolMessage done [17:49:11]OFDSenderStorePacket 188840 [17:49:11]StoreOFDPacket docnum=188840 [17:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 81 F2 04 01 B0 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 17 37 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E1 02 00 35 04 06 00 C3 AB CD B2 78 8E 78 60 A7 31 54 EB EE AF [17:49:11]CheckFolder [17:49:11]dirname=/storage/ofd_packets [17:49:11]CheckFolder done [17:49:11]ProducePacketName [17:49:11]name=ofd_packets/00188840 [17:49:11]NVStorageSaveData ofd_packets/00188840 [17:49:11]File name is /storage/ofd_packets/00188840 [17:49:11]Write 298 bytes [17:49:11]NVStorageSaveData done [17:49:11]OFDSenderStorePacket done [17:49:11]KKMCreateOFDPacket done [17:49:11]NVStorageSaveData kkm_last_timestamp [17:49:11]File name is /storage/kkm_last_timestamp [17:49:11]Write 4 bytes [17:49:11]NVStorageSaveData done [17:49:11]ExternCall_PrintAddStr [17:49:11]wPrintStart [17:49:11]Write to MH i2c: 01 00 00 9B 19 B4 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 9B 19 00 00 00 00 00 FF 0F C9 [17:49:11]RasterBufferAndPrint [17:49:11]line Счет N : (1)210902 [17:49:11]line ИНН: 02508201610067 [17:49:11]line Контрольно-Кассовый Чек [17:49:11]line ПРОДАЖА [17:49:11]line ТРК (МРК, ГНК) : 51 [17:49:11]line Товар: 2710194210 [17:49:11]line ДТ-К-5 [17:49:11]line 13.130 * 76.20 [17:49:11]line = 1000.51 [17:49:11]line НДС 12% НСП 1% [17:49:11]line > о реализуемом товаре [17:49:11]line ОКРУГЛЕНИЕ: -0.51 [17:49:11]line ИТОГО: 1000.00 [17:49:11]line Внесено: 1000.00 [17:49:11]line СДАЧА: 0.00 [17:49:11]line НСП 1% : 8.85 [17:49:11]line НДС 12% : 106.25 [17:49:11]line Наличными: 1000.00 [17:49:11]line Безнал.: 0.00 [17:49:11]line Место: АЗС № 86 "Партнер Нефть" [17:49:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:49:11]line СНО: Общий режим [17:49:11]line Чек 298 23.10.2024 17:49 [17:49:11]line Смена: 462 ФФД: 1.0 [17:49:11]line ЗНМ: 0300000155 [17:49:11]line РНМ: 0000000000100030 [17:49:11]line Версия ККМ: 001 [17:49:11]line ФМ: 0000000000965340 [17:49:11]line ФД: 188840 [17:49:11]line ФПД: 215142657849486 [17:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174911&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188840&fm=215142657849486&tin=02508201610067®Number=0000000000100030&sum=100000 [17:49:11]written 0, free lines is 4095 [17:49:11]OFD Sender: Processing packet 188840 [packets to send 1062, broken 1061] [17:49:11]ProducePacketName [17:49:11]name=ofd_packets/00188840 [17:49:11]OFD Sender: To server: pG, [17:49:11]CommunicateWithHost lk.salyk.kg:30040 [17:49:11]ConnectInit lk.salyk.kg [17:49:11]Connected sock=10 [17:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 81 F2 04 01 B0 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 17 37 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E1 02 00 35 04 06 00 C3 AB CD B2 78 8E 78 60 A7 31 54 EB EE AF [17:49:11]Write to MH i2c: 01 00 00 C6 19 DF [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 C6 19 00 00 00 00 00 5F 0C 51 [17:49:11]RasterBufferAndPrint [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]written 0, free lines is 3170 [17:49:11]MH_Cut [17:49:11]Write to MH i2c: D1 01 00 CD 19 01 B8 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 01 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 01 00 CD 19 00 B7 [17:49:11]Write to MH i2c: 01 00 00 CE 19 E7 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FF 8C 47 00 06 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E1 02 00 F4 03 04 00 01 E1 18 67 B6 04 01 00 00 79 D2 D0 F4 30 73 10 AD [17:49:12]CommunicateWithHost err = 0 [17:49:12]CheckOFDResponse [17:49:12]1017 (14) - 77093643461234 [17:49:12]1041 (16) - 0000000000965340 [17:49:12]1040 (4) - 188840 [17:49:12]1012 (4) - 23.10.2024 11:41 [17:49:12]1206 (1) - 0 [17:49:12]OFD Sender: Remove packet 188840 [17:49:12]ProducePacketName [17:49:12]name=ofd_packets/00188840 [17:49:12]NVStorageDeleteData [17:49:12]OFD Sender: No OFD packet to send [17:49:13]*** Cut start [17:49:13]*** Partial cut [17:49:13]*** CUTSNS_PIN = 1 [17:49:13]*** CUTSNS_PIN = 0 [17:49:13]*** Brake cut motor [17:49:13]Read from MH i2c: 01 [17:49:13]MH_I2C_Read... [17:49:13]*** Stop cut motor [17:49:13]*** Cut end [17:49:13]Read from MH i2c: 01 07 00 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: 01 07 00 CE 19 00 00 00 00 00 FF 0F FC [17:49:13]process_action close_receipt done [17:49:13]requested_data is exist [17:49:13]produce_requested_data [17:49:13]requested_item fm.sn is exist - process it [17:49:13]wFMCommunicate request_size=4 [17:49:13]MH_SAM_APDU [17:49:13]CAPDU: 80 11 00 00 [17:49:13]Write to MH i2c: E2 08 00 CF 19 80 11 00 00 00 00 00 00 62 [17:49:13]Write i2c OK [17:49:13]MH_I2C_Read... [17:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:13]Read from MH i2c: E2 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: E2 17 00 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: E2 17 00 CF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [17:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:49:13]wFMCommunicate OK [17:49:13]requested_item fd.num is exist - process it [17:49:13]SAM_PROTO_GetFieldsCounters [17:49:13]wFMCommunicate request_size=4 [17:49:13]MH_SAM_APDU [17:49:13]CAPDU: 80 13 00 00 [17:49:13]Write to MH i2c: E2 08 00 D0 19 80 13 00 00 00 00 00 00 65 [17:49:13]Write i2c OK [17:49:13]MH_I2C_Read... [17:49:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:13]Read from MH i2c: E2 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: E2 62 00 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: E2 62 00 D0 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [17:49:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:13]wFMCommunicate OK [17:49:13]SAM_PROTO_GetFieldsCounters done [17:49:13]requested_item shift.num is exist - process it [17:49:13]requested_item shift.opened is exist - process it [17:49:13]req_shift_opened [17:49:13]FM_GetShiftState [17:49:13]SAM_PROTO_GetShiftState [17:49:13]wFMCommunicate request_size=4 [17:49:13]MH_SAM_APDU [17:49:13]CAPDU: 80 13 01 00 [17:49:13]Write to MH i2c: E2 08 00 D1 19 80 13 01 00 00 00 00 00 67 [17:49:13]Write i2c OK [17:49:13]MH_I2C_Read... [17:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:13]Read from MH i2c: E2 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: E2 0E 00 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: E2 0E 00 D1 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4F [17:49:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:49:13]wFMCommunicate OK [17:49:13]SAM_PROTO_GetShiftState done [17:49:13]FM_GetShiftState done [17:49:13]req_shift_opened done [17:49:13]requested_item shift.open_date is exist - process it [17:49:13]req_shift_open_date [17:49:13]req_shift_open_date done [17:49:13]produce_requested_data done [17:49:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188840,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:49:13]process_action_free close_receipt [17:49:13]json_value_free [17:49:13]json_value_free done [17:49:13]process_json_proto returns [17:49:13]Send response to host [17:49:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188840,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:49:13]free response buf [17:49:13]execute_script done [17:49:13]execute_script returns [17:49:13]free content buf [17:49:13]Sock 7.Close socket [17:49:13]Sock 7.Thread stoped [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:47]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:37]accept exits with 9 [17:51:37]New connection [17:51:37]New thread 3067350372 created [17:51:37]Thread 3067207012 joined [17:51:37]Waiting for new connection... [17:51:37] Sock 9.Parse request [17:51:37]Sock 9.Check first char [17:51:37]Sock 9.First char is OK [17:51:37]request: POST /json_proto HTTP/1.0 [17:51:37]Method: POST [17:51:37]URL: /json_proto [17:51:37]Method is POST - this is cgi request [17:51:37]url: /json_proto [17:51:37]query_string will be loaded in cgi processing [17:51:37]execute_cgi json_proto POST (null) [17:51:37]execute_cgi path=json_proto method=POST [17:51:37]POST find Content-Length [17:51:37]Host: 172.17.42.131:8080 [17:51:37]Content-Length: 682 [17:51:37]Content-Type: application/json [17:51:37] [17:51:37]POST finish read [17:51:37]Found Content-Length = 682 [17:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:37]execute_script... [17:51:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:37]POST & json_proto [17:51:37]process_json_proto [17:51:37]json parsed OK: [17:51:37]protocol is kg_v1.0 [17:51:37]action value=close_receipt [17:51:37]process_action close_receipt [17:51:37]cmd_close_receipt [17:51:37]MH_GetDate [17:51:37]Write to MH i2c: F0 00 00 D2 19 DA [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: F0 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: F0 09 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: F0 09 00 D2 19 00 AB 37 19 67 A0 18 CA 66 2D [17:51:37]GetLastDocTimeStamp 1729705751 [17:51:37]current date 1729705899 [17:51:37]FM_GetShiftState [17:51:37]SAM_PROTO_GetShiftState [17:51:37]wFMCommunicate request_size=4 [17:51:37]MH_SAM_APDU [17:51:37]CAPDU: 80 13 01 00 [17:51:37]Write to MH i2c: E2 08 00 D3 19 80 13 01 00 00 00 00 00 69 [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 0E 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 0E 00 D3 19 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 51 [17:51:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:51:37]wFMCommunicate OK [17:51:37]SAM_PROTO_GetShiftState done [17:51:37]FM_GetShiftState done [17:51:37]opened in 1729642525 [17:51:37]opened+sec_in_day 1729728925 [17:51:37]quantity*price = 100015 [17:51:37]sum+1 = 100017 [17:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 299 23.10.2024 17:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188841 ФПД: 243869097731545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188841&fm=243869097731545&tin=02508201610067®Number=0000000000100030&sum=100000 [17:51:38]StoreToDocumentArchive [17:51:38]shift 462 fd 188841 [17:51:38]save to /storage/0462/doc_00188841 [17:51:38]save last doc name /storage/0462/doc_00188841 to /storage/kkm_last_doc_name [17:51:38]save OK [17:51:38]Clear old archive folders... [17:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:38]tlvbuf is B6F228E0 [17:51:38]SAM_PROTO_ClearQueue [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 09 00 00 [17:51:38]Write to MH i2c: E2 08 00 E0 19 80 09 00 00 00 00 00 00 6B [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 E0 19 00 90 00 6D [17:51:38]RAPDU: 90 00 [17:51:38]wFMCommunicate OK [17:51:38]SAM_PROTO_ClearQueue done [17:51:38]KKMCreateOFDPacket [17:51:38]OFDProtocolAddRootSTLVToBuf [17:51:38]FM_MakeSignedData [17:51:38]FM_MakeSignedData [17:51:38]SAM_PROTO_SignData [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 0D 01 02 [17:51:38]Write to MH i2c: E2 08 00 E1 19 80 0D 01 02 00 00 00 00 73 [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [17:51:38]RAPDU: 90 00 [17:51:38]wFMCommunicate OK [17:51:38]wFMCommunicate request_size=255 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 AB 37 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E1 02 00 35 04 06 00 DD [17:51:38]Write to MH i2c: E2 02 01 E2 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 AB 37 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E1 02 00 35 04 06 00 DD 00 00 A6 [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 E2 19 00 90 00 6F [17:51:39]RAPDU: 90 00 [17:51:39]wFMCommunicate OK [17:51:39]wFMCommunicate request_size=10 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 0D 02 02 05 CC 32 F1 25 D9 [17:51:39]Write to MH i2c: E2 0D 00 E3 19 80 0D 02 02 05 00 CC 32 F1 25 D9 00 00 6D [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [17:51:39]RAPDU: 90 00 [17:51:39]wFMCommunicate OK [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 0D 03 02 [17:51:39]Write to MH i2c: E2 08 00 E4 19 80 0D 03 02 00 00 00 00 78 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 0B 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 0B 00 E4 19 00 11 80 BE BC 14 C2 0E 96 90 00 FE [17:51:39]RAPDU: 11 80 BE BC 14 C2 0E 96 90 00 [17:51:39]wFMCommunicate OK [17:51:39]SAM_PROTO_SignData done [17:51:39]FM_MakeSignedData done [17:51:39]CreateOFDProtocolMessage [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 11 00 00 [17:51:39]Write to MH i2c: E2 08 00 E5 19 80 11 00 00 00 00 00 00 78 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 17 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 17 00 E5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [17:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:51:39]wFMCommunicate OK [17:51:39]CreateOFDProtocolMessage done [17:51:39]OFDSenderStorePacket 188841 [17:51:39]StoreOFDPacket docnum=188841 [17:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 66 79 07 01 69 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 AB 37 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E1 02 00 35 04 06 00 DD CC 32 F1 25 D9 11 80 BE BC 14 C2 0E 96 [17:51:39]CheckFolder [17:51:39]dirname=/storage/ofd_packets [17:51:39]CheckFolder done [17:51:39]ProducePacketName [17:51:39]name=ofd_packets/00188841 [17:51:39]NVStorageSaveData ofd_packets/00188841 [17:51:39]File name is /storage/ofd_packets/00188841 [17:51:39]Write 301 bytes [17:51:39]NVStorageSaveData done [17:51:39]OFDSenderStorePacket done [17:51:39]KKMCreateOFDPacket done [17:51:39]NVStorageSaveData kkm_last_timestamp [17:51:39]File name is /storage/kkm_last_timestamp [17:51:39]Write 4 bytes [17:51:39]NVStorageSaveData done [17:51:39]ExternCall_PrintAddStr [17:51:39]wPrintStart [17:51:39]Write to MH i2c: 01 00 00 E6 19 FF [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 07 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 FF 0F 14 [17:51:39]RasterBufferAndPrint [17:51:39]line Счет N : (1)210900 [17:51:39]line ИНН: 02508201610067 [17:51:39]line Контрольно-Кассовый Чек [17:51:39]line ПРОДАЖА [17:51:39]line ТРК (МРК, ГНК) : 32 [17:51:39]line Товар: 2710124130 [17:51:39]line Аи-92-К-3 [17:51:39]line 14.950 * 66.90 [17:51:39]line = 1000.16 [17:51:39]line НДС 12% НСП 1% [17:51:39]line > о реализуемом товаре [17:51:39]line ОКРУГЛЕНИЕ: -0.16 [17:51:39]line ИТОГО: 1000.00 [17:51:39]line Внесено: 1000.00 [17:51:39]line СДАЧА: 0.00 [17:51:39]line НСП 1% : 8.85 [17:51:39]line НДС 12% : 106.21 [17:51:39]line Наличными: 1000.00 [17:51:39]line Безнал.: 0.00 [17:51:39]line Место: АЗС № 86 "Партнер Нефть" [17:51:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:51:39]line СНО: Общий режим [17:51:39]line Чек 299 23.10.2024 17:51 [17:51:39]line Смена: 462 ФФД: 1.0 [17:51:39]line ЗНМ: 0300000155 [17:51:39]line РНМ: 0000000000100030 [17:51:39]line Версия ККМ: 001 [17:51:39]line ФМ: 0000000000965340 [17:51:39]line ФД: 188841 [17:51:39]line ФПД: 243869097731545 [17:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188841&fm=243869097731545&tin=02508201610067®Number=0000000000100030&sum=100000 [17:51:39]written 0, free lines is 4095 [17:51:39]OFD Sender: Processing packet 188841 [packets to send 1062, broken 1061] [17:51:39]ProducePacketName [17:51:39]name=ofd_packets/00188841 [17:51:39]OFD Sender: To server: pG, [17:51:39]CommunicateWithHost lk.salyk.kg:30040 [17:51:39]ConnectInit lk.salyk.kg [17:51:39]Write to MH i2c: 01 00 00 11 1A 2B [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 07 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 07 00 11 1A 00 00 00 00 00 56 0C 94 [17:51:39]RasterBufferAndPrint [17:51:39]line [17:51:39]line [17:51:39]line [17:51:39]line [17:51:39]line [17:51:39]written 0, free lines is 3161 [17:51:39]MH_Cut [17:51:39]Write to MH i2c: D1 01 00 18 1A 01 04 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: D1 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: D1 01 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: D1 01 00 18 1A 00 03 [17:51:39]Write to MH i2c: 01 00 00 19 1A 33 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:40]Connected sock=10 [17:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 66 79 07 01 69 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 AB 37 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E1 02 00 35 04 06 00 DD CC 32 F1 25 D9 11 80 BE BC 14 C2 0E 96 [17:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C9 6D 47 00 BB 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E1 02 00 F4 03 04 00 95 E1 18 67 B6 04 01 00 00 5E 25 7D DD 21 54 46 1D [17:51:40]CommunicateWithHost err = 0 [17:51:40]CheckOFDResponse [17:51:40]1017 (14) - 77093643461234 [17:51:40]1041 (16) - 0000000000965340 [17:51:40]1040 (4) - 188841 [17:51:40]1012 (4) - 23.10.2024 11:44 [17:51:40]1206 (1) - 0 [17:51:40]OFD Sender: Remove packet 188841 [17:51:40]ProducePacketName [17:51:40]name=ofd_packets/00188841 [17:51:40]NVStorageDeleteData [17:51:41]OFD Sender: No OFD packet to send [17:51:41]*** Cut start [17:51:41]*** Partial cut [17:51:41]*** CUTSNS_PIN = 1 [17:51:41]*** CUTSNS_PIN = 0 [17:51:41]*** Brake cut motor [17:51:41]Read from MH i2c: 01 [17:51:41]MH_I2C_Read... [17:51:41]*** Stop cut motor [17:51:41]*** Cut end [17:51:41]Read from MH i2c: 01 07 00 [17:51:41]MH_I2C_Read... [17:51:41]Read from MH i2c: 01 07 00 19 1A 00 00 00 00 00 FF 0F 48 [17:51:41]process_action close_receipt done [17:51:41]requested_data is exist [17:51:41]produce_requested_data [17:51:41]requested_item fm.sn is exist - process it [17:51:41]wFMCommunicate request_size=4 [17:51:41]MH_SAM_APDU [17:51:41]CAPDU: 80 11 00 00 [17:51:41]Write to MH i2c: E2 08 00 1A 1A 80 11 00 00 00 00 00 00 AE [17:51:41]Write i2c OK [17:51:41]MH_I2C_Read... [17:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:41]Read from MH i2c: E2 [17:51:41]MH_I2C_Read... [17:51:41]Read from MH i2c: E2 17 00 [17:51:41]MH_I2C_Read... [17:51:41]Read from MH i2c: E2 17 00 1A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [17:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:51:41]wFMCommunicate OK [17:51:41]requested_item fd.num is exist - process it [17:51:41]SAM_PROTO_GetFieldsCounters [17:51:41]wFMCommunicate request_size=4 [17:51:41]MH_SAM_APDU [17:51:41]CAPDU: 80 13 00 00 [17:51:41]Write to MH i2c: E2 08 00 1B 1A 80 13 00 00 00 00 00 00 B1 [17:51:41]Write i2c OK [17:51:41]MH_I2C_Read... [17:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:42]Read from MH i2c: E2 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 62 00 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 62 00 1B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [17:51:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:42]wFMCommunicate OK [17:51:42]SAM_PROTO_GetFieldsCounters done [17:51:42]requested_item shift.num is exist - process it [17:51:42]requested_item shift.opened is exist - process it [17:51:42]req_shift_opened [17:51:42]FM_GetShiftState [17:51:42]SAM_PROTO_GetShiftState [17:51:42]wFMCommunicate request_size=4 [17:51:42]MH_SAM_APDU [17:51:42]CAPDU: 80 13 01 00 [17:51:42]Write to MH i2c: E2 08 00 1C 1A 80 13 01 00 00 00 00 00 B3 [17:51:42]Write i2c OK [17:51:42]MH_I2C_Read... [17:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:42]Read from MH i2c: E2 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 0E 00 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 0E 00 1C 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9B [17:51:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:51:42]wFMCommunicate OK [17:51:42]SAM_PROTO_GetShiftState done [17:51:42]FM_GetShiftState done [17:51:42]req_shift_opened done [17:51:42]requested_item shift.open_date is exist - process it [17:51:42]req_shift_open_date [17:51:42]req_shift_open_date done [17:51:42]produce_requested_data done [17:51:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188841,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:51:42]process_action_free close_receipt [17:51:42]json_value_free [17:51:42]json_value_free done [17:51:42]process_json_proto returns [17:51:42]Send response to host [17:51:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188841,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:51:42]free response buf [17:51:42]execute_script done [17:51:42]execute_script returns [17:51:42]free content buf [17:51:42]Sock 9.Close socket [17:51:42]Sock 9.Thread stoped [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55: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:06]accept exits with 7 [17:56:06]New connection [17:56:06]New thread 3067207012 created [17:56:06]Thread 3067350372 joined [17:56:06]Waiting for new connection... [17:56:06] Sock 7.Parse request [17:56:06]Sock 7.Check first char [17:56:06]Sock 7.First char is OK [17:56:06]request: POST /json_proto HTTP/1.0 [17:56:06]Method: POST [17:56:06]URL: /json_proto [17:56:06]Method is POST - this is cgi request [17:56:06]url: /json_proto [17:56:06]query_string will be loaded in cgi processing [17:56:06]execute_cgi json_proto POST (null) [17:56:06]execute_cgi path=json_proto method=POST [17:56:06]POST find Content-Length [17:56:06]Host: 172.17.42.131:8080 [17:56:06]Content-Length: 688 [17:56:06]Content-Type: application/json [17:56:06] [17:56:06]POST finish read [17:56:06]Found Content-Length = 688 [17:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:06]execute_script... [17:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:06]POST & json_proto [17:56:06]process_json_proto [17:56:06]json parsed OK: [17:56:06]protocol is kg_v1.0 [17:56:06]action value=close_receipt [17:56:06]process_action close_receipt [17:56:06]cmd_close_receipt [17:56:06]MH_GetDate [17:56:06]Write to MH i2c: F0 00 00 1D 1A 26 [17:56:06]Write i2c OK [17:56:06]MH_I2C_Read... [17:56:06]Read from MH i2c: F0 [17:56:06]MH_I2C_Read... [17:56:06]Read from MH i2c: F0 09 00 [17:56:06]MH_I2C_Read... [17:56:06]Read from MH i2c: F0 09 00 1D 1A 00 B7 38 19 67 A0 18 CA 66 86 [17:56:06]GetLastDocTimeStamp 1729705899 [17:56:06]current date 1729706167 [17:56:06]FM_GetShiftState [17:56:06]SAM_PROTO_GetShiftState [17:56:06]wFMCommunicate request_size=4 [17:56:06]MH_SAM_APDU [17:56:06]CAPDU: 80 13 01 00 [17:56:06]Write to MH i2c: E2 08 00 1E 1A 80 13 01 00 00 00 00 00 B5 [17:56:06]Write i2c OK [17:56:06]MH_I2C_Read... [17:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:06]Read from MH i2c: E2 [17:56:06]MH_I2C_Read... [17:56:06]Read from MH i2c: E2 0E 00 [17:56:06]MH_I2C_Read... [17:56:06]Read from MH i2c: E2 0E 00 1E 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9D [17:56:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:56:06]wFMCommunicate OK [17:56:06]SAM_PROTO_GetShiftState done [17:56:06]FM_GetShiftState done [17:56:06]opened in 1729642525 [17:56:06]opened+sec_in_day 1729728925 [17:56:06]quantity*price = 500024 [17:56:06]sum+1 = 500025 [17:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 300 23.10.2024 17:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188842 ФПД: 212211967352743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175607&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188842&fm=212211967352743&tin=02508201610067®Number=0000000000100030&sum=500000 [17:56:07]StoreToDocumentArchive [17:56:07]shift 462 fd 188842 [17:56:07]save to /storage/0462/doc_00188842 [17:56:07]save last doc name /storage/0462/doc_00188842 to /storage/kkm_last_doc_name [17:56:07]save OK [17:56:07]Clear old archive folders... [17:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:56:07]tlvbuf is 0114B6D0 [17:56:07]SAM_PROTO_ClearQueue [17:56:07]wFMCommunicate request_size=4 [17:56:07]MH_SAM_APDU [17:56:07]CAPDU: 80 09 00 00 [17:56:07]Write to MH i2c: E2 08 00 2B 1A 80 09 00 00 00 00 00 00 B7 [17:56:07]Write i2c OK [17:56:07]MH_I2C_Read... [17:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:07]Read from MH i2c: E2 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 03 00 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [17:56:07]RAPDU: 90 00 [17:56:07]wFMCommunicate OK [17:56:07]SAM_PROTO_ClearQueue done [17:56:07]KKMCreateOFDPacket [17:56:07]OFDProtocolAddRootSTLVToBuf [17:56:07]FM_MakeSignedData [17:56:07]FM_MakeSignedData [17:56:07]SAM_PROTO_SignData [17:56:07]wFMCommunicate request_size=4 [17:56:07]MH_SAM_APDU [17:56:07]CAPDU: 80 0D 01 02 [17:56:07]Write to MH i2c: E2 08 00 2C 1A 80 0D 01 02 00 00 00 00 BF [17:56:07]Write i2c OK [17:56:07]MH_I2C_Read... [17:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:07]Read from MH i2c: E2 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 03 00 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [17:56:07]RAPDU: 90 00 [17:56:07]wFMCommunicate OK [17:56:07]wFMCommunicate request_size=255 [17:56:07]MH_SAM_APDU [17:56:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 B7 38 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E1 02 [17:56:07]Write to MH i2c: E2 02 01 2D 1A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 B7 38 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E1 02 00 00 7C [17:56:07]Write i2c OK [17:56:07]MH_I2C_Read... [17:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:07]Read from MH i2c: E2 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 03 00 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 03 00 2D 1A 00 90 00 BB [17:56:07]RAPDU: 90 00 [17:56:07]wFMCommunicate OK [17:56:07]wFMCommunicate request_size=16 [17:56:07]MH_SAM_APDU [17:56:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C1 01 72 EE 5F A7 [17:56:07]Write to MH i2c: E2 13 00 2E 1A 80 0D 02 02 0B 00 00 35 04 06 00 C1 01 72 EE 5F A7 00 00 3F [17:56:07]Write i2c OK [17:56:07]MH_I2C_Read... [17:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:07]Read from MH i2c: E2 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 03 00 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 03 00 2E 1A 00 90 00 BC [17:56:07]RAPDU: 90 00 [17:56:07]wFMCommunicate OK [17:56:07]wFMCommunicate request_size=4 [17:56:07]MH_SAM_APDU [17:56:07]CAPDU: 80 0D 03 02 [17:56:07]Write to MH i2c: E2 08 00 2F 1A 80 0D 03 02 00 00 00 00 C4 [17:56:07]Write i2c OK [17:56:07]MH_I2C_Read... [17:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:07]Read from MH i2c: E2 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 0B 00 [17:56:07]MH_I2C_Read... [17:56:07]Read from MH i2c: E2 0B 00 2F 1A 00 21 77 4D ED 37 DB 23 62 90 00 2E [17:56:07]RAPDU: 21 77 4D ED 37 DB 23 62 90 00 [17:56:07]wFMCommunicate OK [17:56:07]SAM_PROTO_SignData done [17:56:07]FM_MakeSignedData done [17:56:07]CreateOFDProtocolMessage [17:56:07]wFMCommunicate request_size=4 [17:56:07]MH_SAM_APDU [17:56:07]CAPDU: 80 11 00 00 [17:56:07]Write to MH i2c: E2 08 00 30 1A 80 11 00 00 00 00 00 00 C4 [17:56:08]Write i2c OK [17:56:08]MH_I2C_Read... [17:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:08]Read from MH i2c: E2 [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: E2 17 00 [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: E2 17 00 30 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [17:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:56:08]wFMCommunicate OK [17:56:08]CreateOFDProtocolMessage done [17:56:08]OFDSenderStorePacket 188842 [17:56:08]StoreOFDPacket docnum=188842 [17:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 79 80 0D 01 07 B6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 B7 38 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E1 02 00 35 04 06 00 C1 01 72 EE 5F A7 21 77 4D ED 37 DB 23 62 [17:56:08]CheckFolder [17:56:08]dirname=/storage/ofd_packets [17:56:08]CheckFolder done [17:56:08]ProducePacketName [17:56:08]name=ofd_packets/00188842 [17:56:08]NVStorageSaveData ofd_packets/00188842 [17:56:08]File name is /storage/ofd_packets/00188842 [17:56:08]Write 307 bytes [17:56:08]NVStorageSaveData done [17:56:08]OFDSenderStorePacket done [17:56:08]KKMCreateOFDPacket done [17:56:08]NVStorageSaveData kkm_last_timestamp [17:56:08]File name is /storage/kkm_last_timestamp [17:56:08]Write 4 bytes [17:56:08]NVStorageSaveData done [17:56:08]ExternCall_PrintAddStr [17:56:08]wPrintStart [17:56:08]Write to MH i2c: 01 00 00 31 1A 4B [17:56:08]Write i2c OK [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: 01 [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: 01 07 00 [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 FF 0F 60 [17:56:08]RasterBufferAndPrint [17:56:08]line Счет N : (1)210903 [17:56:08]line ИНН: 02508201610067 [17:56:08]line Контрольно-Кассовый Чек [17:56:08]line ПРОДАЖА [17:56:08]line ТРК (МРК, ГНК) : 41 [17:56:08]line Товар: 2710194210 [17:56:08]line D-ENERGY ДТ-К-5 [17:56:08]line 64.770 * 77.20 [17:56:08]line = 5000.24 [17:56:08]line НДС 12% НСП 1% [17:56:08]line > о реализуемом товаре [17:56:08]line ОКРУГЛЕНИЕ: -0.24 [17:56:08]line ИТОГО: 5000.00 [17:56:08]line Внесено: 5000.00 [17:56:08]line СДАЧА: 0.00 [17:56:08]line НСП 1% : 44.25 [17:56:08]line НДС 12% : 531.00 [17:56:08]line Наличными: 5000.00 [17:56:08]line Безнал.: 0.00 [17:56:08]line Место: АЗС № 86 "Партнер Нефть" [17:56:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:56:08]line СНО: Общий режим [17:56:08]line Чек 300 23.10.2024 17:56 [17:56:08]line Смена: 462 ФФД: 1.0 [17:56:08]line ЗНМ: 0300000155 [17:56:08]line РНМ: 0000000000100030 [17:56:08]line Версия ККМ: 001 [17:56:08]line ФМ: 0000000000965340 [17:56:08]line ФД: 188842 [17:56:08]line ФПД: 212211967352743 [17:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175607&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188842&fm=212211967352743&tin=02508201610067®Number=0000000000100030&sum=500000 [17:56:08]written 0, free lines is 4095 [17:56:08]OFD Sender: Processing packet 188842 [packets to send 1062, broken 1061] [17:56:08]ProducePacketName [17:56:08]name=ofd_packets/00188842 [17:56:08]OFD Sender: To server: pG, [17:56:08]CommunicateWithHost lk.salyk.kg:30040 [17:56:08]ConnectInit lk.salyk.kg [17:56:08]Connected sock=10 [17:56:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 79 80 0D 01 07 B6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 B7 38 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E1 02 00 35 04 06 00 C1 01 72 EE 5F A7 21 77 4D ED 37 DB 23 62 [17:56:08]Write to MH i2c: 01 00 00 5C 1A 76 [17:56:08]Write i2c OK [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: 01 [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: 01 07 00 [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: 01 07 00 5C 1A 00 00 00 00 00 5C 0C E5 [17:56:08]RasterBufferAndPrint [17:56:08]line [17:56:08]line [17:56:08]line [17:56:08]line [17:56:08]line [17:56:08]written 0, free lines is 3167 [17:56:08]MH_Cut [17:56:08]Write to MH i2c: D1 01 00 63 1A 01 4F [17:56:08]Write i2c OK [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: D1 [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: D1 01 00 [17:56:08]MH_I2C_Read... [17:56:08]Read from MH i2c: D1 01 00 63 1A 00 4E [17:56:08]Write to MH i2c: 01 00 00 64 1A 7E [17:56:08]Write i2c OK [17:56:08]MH_I2C_Read... [17:56:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C E9 47 00 C5 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E1 02 00 F4 03 04 00 A1 E2 18 67 B6 04 01 00 00 30 04 69 9F 6B 83 96 95 [17:56:08]CommunicateWithHost err = 0 [17:56:08]CheckOFDResponse [17:56:08]1017 (14) - 77093643461234 [17:56:08]1041 (16) - 0000000000965340 [17:56:08]1040 (4) - 188842 [17:56:08]1012 (4) - 23.10.2024 11:48 [17:56:08]1206 (1) - 0 [17:56:08]OFD Sender: Remove packet 188842 [17:56:08]ProducePacketName [17:56:08]name=ofd_packets/00188842 [17:56:08]NVStorageDeleteData [17:56:09]OFD Sender: No OFD packet to send [17:56:09]*** Cut start [17:56:09]*** Partial cut [17:56:09]*** CUTSNS_PIN = 1 [17:56:09]*** CUTSNS_PIN = 0 [17:56:10]*** Brake cut motor [17:56:10]Read from MH i2c: 01 [17:56:10]MH_I2C_Read... [17:56:10]*** Stop cut motor [17:56:10]*** Cut end [17:56:10]Read from MH i2c: 01 07 00 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: 01 07 00 64 1A 00 00 00 00 00 FF 0F 93 [17:56:10]process_action close_receipt done [17:56:10]requested_data is exist [17:56:10]produce_requested_data [17:56:10]requested_item fm.sn is exist - process it [17:56:10]wFMCommunicate request_size=4 [17:56:10]MH_SAM_APDU [17:56:10]CAPDU: 80 11 00 00 [17:56:10]Write to MH i2c: E2 08 00 65 1A 80 11 00 00 00 00 00 00 F9 [17:56:10]Write i2c OK [17:56:10]MH_I2C_Read... [17:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:10]Read from MH i2c: E2 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: E2 17 00 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: E2 17 00 65 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [17:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:56:10]wFMCommunicate OK [17:56:10]requested_item fd.num is exist - process it [17:56:10]SAM_PROTO_GetFieldsCounters [17:56:10]wFMCommunicate request_size=4 [17:56:10]MH_SAM_APDU [17:56:10]CAPDU: 80 13 00 00 [17:56:10]Write to MH i2c: E2 08 00 66 1A 80 13 00 00 00 00 00 00 FC [17:56:10]Write i2c OK [17:56:10]MH_I2C_Read... [17:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:10]Read from MH i2c: E2 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: E2 62 00 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: E2 62 00 66 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [17:56:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:10]wFMCommunicate OK [17:56:10]SAM_PROTO_GetFieldsCounters done [17:56:10]requested_item shift.num is exist - process it [17:56:10]requested_item shift.opened is exist - process it [17:56:10]req_shift_opened [17:56:10]FM_GetShiftState [17:56:10]SAM_PROTO_GetShiftState [17:56:10]wFMCommunicate request_size=4 [17:56:10]MH_SAM_APDU [17:56:10]CAPDU: 80 13 01 00 [17:56:10]Write to MH i2c: E2 08 00 67 1A 80 13 01 00 00 00 00 00 FE [17:56:10]Write i2c OK [17:56:10]MH_I2C_Read... [17:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:10]Read from MH i2c: E2 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: E2 0E 00 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: E2 0E 00 67 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E6 [17:56:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [17:56:10]wFMCommunicate OK [17:56:10]SAM_PROTO_GetShiftState done [17:56:10]FM_GetShiftState done [17:56:10]req_shift_opened done [17:56:10]requested_item shift.open_date is exist - process it [17:56:10]req_shift_open_date [17:56:10]req_shift_open_date done [17:56:10]produce_requested_data done [17:56:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188842,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [17:56:10]process_action_free close_receipt [17:56:10]json_value_free [17:56:10]json_value_free done [17:56:10]process_json_proto returns [17:56:10]Send response to host [17:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188842,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [17:56:10]free response buf [17:56:10]execute_script done [17:56:10]execute_script returns [17:56:10]free content buf [17:56:10]Sock 7.Close socket [17:56:10]Sock 7.Thread stoped [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:26]accept exits with 9 [18:05:26]New connection [18:05:26]New thread 3067350372 created [18:05:26]Thread 3067207012 joined [18:05:26]Waiting for new connection... [18:05:26] Sock 9.Parse request [18:05:26]Sock 9.Check first char [18:05:26]Sock 9.First char is OK [18:05:26]request: POST /json_proto HTTP/1.0 [18:05:26]Method: POST [18:05:26]URL: /json_proto [18:05:26]Method is POST - this is cgi request [18:05:26]url: /json_proto [18:05:26]query_string will be loaded in cgi processing [18:05:26]execute_cgi json_proto POST (null) [18:05:26]execute_cgi path=json_proto method=POST [18:05:26]POST find Content-Length [18:05:26]Host: 172.17.42.131:8080 [18:05:26]Content-Length: 677 [18:05:26]Content-Type: application/json [18:05:26] [18:05:26]POST finish read [18:05:26]Found Content-Length = 677 [18:05:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:26]execute_script... [18:05:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:26]POST & json_proto [18:05:26]process_json_proto [18:05:26]json parsed OK: [18:05:26]protocol is kg_v1.0 [18:05:26]action value=close_receipt [18:05:26]process_action close_receipt [18:05:26]cmd_close_receipt [18:05:26]MH_GetDate [18:05:26]Write to MH i2c: F0 00 00 68 1A 71 [18:05:26]Write i2c OK [18:05:26]MH_I2C_Read... [18:05:26]Read from MH i2c: F0 [18:05:26]MH_I2C_Read... [18:05:26]Read from MH i2c: F0 09 00 [18:05:26]MH_I2C_Read... [18:05:26]Read from MH i2c: F0 09 00 68 1A 00 E8 3A 19 67 A0 18 CA 66 04 [18:05:26]GetLastDocTimeStamp 1729706167 [18:05:26]current date 1729706728 [18:05:26]FM_GetShiftState [18:05:26]SAM_PROTO_GetShiftState [18:05:26]wFMCommunicate request_size=4 [18:05:26]MH_SAM_APDU [18:05:26]CAPDU: 80 13 01 00 [18:05:26]Write to MH i2c: E2 08 00 69 1A 80 13 01 00 00 00 00 00 00 [18:05:26]Write i2c OK [18:05:26]MH_I2C_Read... [18:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:26]Read from MH i2c: E2 [18:05:26]MH_I2C_Read... [18:05:26]Read from MH i2c: E2 0E 00 [18:05:26]MH_I2C_Read... [18:05:26]Read from MH i2c: E2 0E 00 69 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E8 [18:05:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:05:26]wFMCommunicate OK [18:05:26]SAM_PROTO_GetShiftState done [18:05:26]FM_GetShiftState done [18:05:26]opened in 1729642525 [18:05:26]opened+sec_in_day 1729728925 [18:05:26]quantity*price = 50041 [18:05:26]sum+1 = 50042 [18:05:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 301 23.10.2024 18:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188843 ФПД: 142920605983143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180528&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188843&fm=142920605983143&tin=02508201610067®Number=0000000000100030&sum=50000 [18:05:28]StoreToDocumentArchive [18:05:28]shift 462 fd 188843 [18:05:28]save to /storage/0462/doc_00188843 [18:05:28]save last doc name /storage/0462/doc_00188843 to /storage/kkm_last_doc_name [18:05:28]save OK [18:05:28]Clear old archive folders... [18:05:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:28]tlvbuf is B6E09770 [18:05:28]SAM_PROTO_ClearQueue [18:05:28]wFMCommunicate request_size=4 [18:05:28]MH_SAM_APDU [18:05:28]CAPDU: 80 09 00 00 [18:05:28]Write to MH i2c: E2 08 00 76 1A 80 09 00 00 00 00 00 00 02 [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:28]Read from MH i2c: E2 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 03 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 03 00 76 1A 00 90 00 04 [18:05:28]RAPDU: 90 00 [18:05:28]wFMCommunicate OK [18:05:28]SAM_PROTO_ClearQueue done [18:05:28]KKMCreateOFDPacket [18:05:28]OFDProtocolAddRootSTLVToBuf [18:05:28]FM_MakeSignedData [18:05:28]FM_MakeSignedData [18:05:28]SAM_PROTO_SignData [18:05:28]wFMCommunicate request_size=4 [18:05:28]MH_SAM_APDU [18:05:28]CAPDU: 80 0D 01 02 [18:05:28]Write to MH i2c: E2 08 00 77 1A 80 0D 01 02 00 00 00 00 0A [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:28]Read from MH i2c: E2 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 03 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 03 00 77 1A 00 90 00 05 [18:05:28]RAPDU: 90 00 [18:05:28]wFMCommunicate OK [18:05:28]wFMCommunicate request_size=255 [18:05:28]MH_SAM_APDU [18:05:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 E8 3A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E1 02 00 35 04 06 00 81 [18:05:28]Write to MH i2c: E2 02 01 78 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 E8 3A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E1 02 00 35 04 06 00 81 00 00 2B [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:28]Read from MH i2c: E2 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 03 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 03 00 78 1A 00 90 00 06 [18:05:28]RAPDU: 90 00 [18:05:28]wFMCommunicate OK [18:05:28]wFMCommunicate request_size=10 [18:05:28]MH_SAM_APDU [18:05:28]CAPDU: 80 0D 02 02 05 FC 4B F3 61 A7 [18:05:28]Write to MH i2c: E2 0D 00 79 1A 80 0D 02 02 05 00 FC 4B F3 61 A7 00 00 59 [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:28]Read from MH i2c: E2 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 03 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 03 00 79 1A 00 90 00 07 [18:05:28]RAPDU: 90 00 [18:05:28]wFMCommunicate OK [18:05:28]wFMCommunicate request_size=4 [18:05:28]MH_SAM_APDU [18:05:28]CAPDU: 80 0D 03 02 [18:05:28]Write to MH i2c: E2 08 00 7A 1A 80 0D 03 02 00 00 00 00 0F [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:28]Read from MH i2c: E2 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 0B 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 0B 00 7A 1A 00 5C 73 56 A5 A2 48 5D B9 90 00 DA [18:05:28]RAPDU: 5C 73 56 A5 A2 48 5D B9 90 00 [18:05:28]wFMCommunicate OK [18:05:28]SAM_PROTO_SignData done [18:05:28]FM_MakeSignedData done [18:05:28]CreateOFDProtocolMessage [18:05:28]wFMCommunicate request_size=4 [18:05:28]MH_SAM_APDU [18:05:28]CAPDU: 80 11 00 00 [18:05:28]Write to MH i2c: E2 08 00 7B 1A 80 11 00 00 00 00 00 00 0F [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:28]Read from MH i2c: E2 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 17 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 17 00 7B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [18:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:05:28]wFMCommunicate OK [18:05:28]CreateOFDProtocolMessage done [18:05:28]OFDSenderStorePacket 188843 [18:05:28]StoreOFDPacket docnum=188843 [18:05:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AA 32 07 01 C9 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 E8 3A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E1 02 00 35 04 06 00 81 FC 4B F3 61 A7 5C 73 56 A5 A2 48 5D B9 [18:05:28]CheckFolder [18:05:28]dirname=/storage/ofd_packets [18:05:28]CheckFolder done [18:05:28]ProducePacketName [18:05:28]name=ofd_packets/00188843 [18:05:28]NVStorageSaveData ofd_packets/00188843 [18:05:28]File name is /storage/ofd_packets/00188843 [18:05:28]Write 301 bytes [18:05:28]NVStorageSaveData done [18:05:28]OFDSenderStorePacket done [18:05:28]KKMCreateOFDPacket done [18:05:28]NVStorageSaveData kkm_last_timestamp [18:05:28]File name is /storage/kkm_last_timestamp [18:05:28]Write 4 bytes [18:05:28]NVStorageSaveData done [18:05:28]ExternCall_PrintAddStr [18:05:28]wPrintStart [18:05:28]Write to MH i2c: 01 00 00 7C 1A 96 [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 07 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 07 00 7C 1A 00 00 00 00 00 FF 0F AB [18:05:28]RasterBufferAndPrint [18:05:28]line Счет N : (1)210904 [18:05:28]line ИНН: 02508201610067 [18:05:28]line Контрольно-Кассовый Чек [18:05:28]line ПРОДАЖА [18:05:28]line ТРК (МРК, ГНК) : 42 [18:05:28]line Товар: 2710124130 [18:05:28]line Аи-92-К-3 [18:05:28]line 7.480 * 66.90 [18:05:28]line = 500.41 [18:05:28]line НДС 12% НСП 1% [18:05:28]line > о реализуемом товаре [18:05:28]line ОКРУГЛЕНИЕ: -0.41 [18:05:28]line ИТОГО: 500.00 [18:05:28]line Внесено: 500.00 [18:05:28]line СДАЧА: 0.00 [18:05:28]line НСП 1% : 4.43 [18:05:28]line НДС 12% : 53.14 [18:05:28]line Наличными: 500.00 [18:05:28]line Безнал.: 0.00 [18:05:28]line Место: АЗС № 86 "Партнер Нефть" [18:05:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:05:28]line СНО: Общий режим [18:05:28]line Чек 301 23.10.2024 18:05 [18:05:28]line Смена: 462 ФФД: 1.0 [18:05:28]line ЗНМ: 0300000155 [18:05:28]line РНМ: 0000000000100030 [18:05:28]line Версия ККМ: 001 [18:05:28]line ФМ: 0000000000965340 [18:05:28]line ФД: 188843 [18:05:28]line ФПД: 142920605983143 [18:05:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180528&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188843&fm=142920605983143&tin=02508201610067®Number=0000000000100030&sum=50000 [18:05:28]written 0, free lines is 4095 [18:05:28]OFD Sender: Processing packet 188843 [packets to send 1062, broken 1061] [18:05:28]ProducePacketName [18:05:28]name=ofd_packets/00188843 [18:05:28]OFD Sender: To server: pG, [18:05:28]CommunicateWithHost lk.salyk.kg:30040 [18:05:28]ConnectInit lk.salyk.kg [18:05:28]Connected sock=10 [18:05:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AA 32 07 01 C9 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 E8 3A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E1 02 00 35 04 06 00 81 FC 4B F3 61 A7 5C 73 56 A5 A2 48 5D B9 [18:05:29]Write to MH i2c: 01 00 00 A7 1A C1 [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: 01 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: 01 07 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: 01 07 00 A7 1A 00 00 00 00 00 51 0C 25 [18:05:29]RasterBufferAndPrint [18:05:29]line [18:05:29]line [18:05:29]line [18:05:29]line [18:05:29]line [18:05:29]written 0, free lines is 3157 [18:05:29]MH_Cut [18:05:29]Write to MH i2c: D1 01 00 AE 1A 01 9A [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: D1 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: D1 01 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: D1 01 00 AE 1A 00 99 [18:05:29]Write to MH i2c: 01 00 00 AF 1A C9 [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C8 C6 47 00 10 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 36 35 33 34 30 10 04 04 00 AB E1 02 00 F4 03 04 00 D2 E4 18 67 B6 04 01 00 00 FA 91 9F 82 BF C1 9C AC [18:05:29]CommunicateWithHost err = 0 [18:05:29]CheckOFDResponse [18:05:29]1017 (14) - 77093643461234 [18:05:29]1041 (16) - 0000000000965340 [18:05:29]1040 (4) - 188843 [18:05:29]1012 (4) - 23.10.2024 11:58 [18:05:29]1206 (1) - 0 [18:05:29]OFD Sender: Remove packet 188843 [18:05:29]ProducePacketName [18:05:29]name=ofd_packets/00188843 [18:05:29]NVStorageDeleteData [18:05:29]OFD Sender: No OFD packet to send [18:05:30]*** Cut start [18:05:30]*** Partial cut [18:05:30]*** CUTSNS_PIN = 1 [18:05:30]*** CUTSNS_PIN = 0 [18:05:30]*** Brake cut motor [18:05:30]Read from MH i2c: 01 [18:05:30]MH_I2C_Read... [18:05:30]*** Stop cut motor [18:05:30]*** Cut end [18:05:30]Read from MH i2c: 01 07 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: 01 07 00 AF 1A 00 00 00 00 00 FF 0F DE [18:05:30]process_action close_receipt done [18:05:30]requested_data is exist [18:05:30]produce_requested_data [18:05:30]requested_item fm.sn is exist - process it [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 11 00 00 [18:05:30]Write to MH i2c: E2 08 00 B0 1A 80 11 00 00 00 00 00 00 44 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:30]Read from MH i2c: E2 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 17 00 [18:05:30]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 17 00 B0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [18:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:05:31]wFMCommunicate OK [18:05:31]requested_item fd.num is exist - process it [18:05:31]SAM_PROTO_GetFieldsCounters [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 13 00 00 [18:05:31]Write to MH i2c: E2 08 00 B1 1A 80 13 00 00 00 00 00 00 47 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 62 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 62 00 B1 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:05:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:31]wFMCommunicate OK [18:05:31]SAM_PROTO_GetFieldsCounters done [18:05:31]requested_item shift.num is exist - process it [18:05:31]requested_item shift.opened is exist - process it [18:05:31]req_shift_opened [18:05:31]FM_GetShiftState [18:05:31]SAM_PROTO_GetShiftState [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 13 01 00 [18:05:31]Write to MH i2c: E2 08 00 B2 1A 80 13 01 00 00 00 00 00 49 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 0E 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 0E 00 B2 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 31 [18:05:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:05:31]wFMCommunicate OK [18:05:31]SAM_PROTO_GetShiftState done [18:05:31]FM_GetShiftState done [18:05:31]req_shift_opened done [18:05:31]requested_item shift.open_date is exist - process it [18:05:31]req_shift_open_date [18:05:31]req_shift_open_date done [18:05:31]produce_requested_data done [18:05:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188843,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:05:31]process_action_free close_receipt [18:05:31]json_value_free [18:05:31]json_value_free done [18:05:31]process_json_proto returns [18:05:31]Send response to host [18:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188843,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:05:31]free response buf [18:05:31]execute_script done [18:05:31]execute_script returns [18:05:31]free content buf [18:05:31]Sock 9.Close socket [18:05:31]Sock 9.Thread stoped [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:36]accept exits with 7 [18:09:36]New connection [18:09:36]New thread 3067207012 created [18:09:36]Thread 3067350372 joined [18:09:36]Waiting for new connection... [18:09:36] Sock 7.Parse request [18:09:36]Sock 7.Check first char [18:09:36]Sock 7.First char is OK [18:09:36]request: POST /json_proto HTTP/1.0 [18:09:36]Method: POST [18:09:36]URL: /json_proto [18:09:36]Method is POST - this is cgi request [18:09:36]url: /json_proto [18:09:36]query_string will be loaded in cgi processing [18:09:36]execute_cgi json_proto POST (null) [18:09:36]execute_cgi path=json_proto method=POST [18:09:36]POST find Content-Length [18:09:36]Host: 172.17.42.131:8080 [18:09:36]Content-Length: 682 [18:09:36]Content-Type: application/json [18:09:36] [18:09:36]POST finish read [18:09:36]Found Content-Length = 682 [18:09:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:36]execute_script... [18:09:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:36]POST & json_proto [18:09:36]process_json_proto [18:09:36]json parsed OK: [18:09:36]protocol is kg_v1.0 [18:09:36]action value=close_receipt [18:09:36]process_action close_receipt [18:09:36]cmd_close_receipt [18:09:36]MH_GetDate [18:09:36]Write to MH i2c: F0 00 00 B3 1A BC [18:09:36]Write i2c OK [18:09:36]MH_I2C_Read... [18:09:36]Read from MH i2c: F0 [18:09:36]MH_I2C_Read... [18:09:36]Read from MH i2c: F0 09 00 [18:09:36]MH_I2C_Read... [18:09:36]Read from MH i2c: F0 09 00 B3 1A 00 E2 3B 19 67 A0 18 CA 66 4A [18:09:36]GetLastDocTimeStamp 1729706728 [18:09:36]current date 1729706978 [18:09:36]FM_GetShiftState [18:09:36]SAM_PROTO_GetShiftState [18:09:36]wFMCommunicate request_size=4 [18:09:36]MH_SAM_APDU [18:09:36]CAPDU: 80 13 01 00 [18:09:36]Write to MH i2c: E2 08 00 B4 1A 80 13 01 00 00 00 00 00 4B [18:09:36]Write i2c OK [18:09:36]MH_I2C_Read... [18:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:36]Read from MH i2c: E2 [18:09:36]MH_I2C_Read... [18:09:36]Read from MH i2c: E2 0E 00 [18:09:36]MH_I2C_Read... [18:09:36]Read from MH i2c: E2 0E 00 B4 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 33 [18:09:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:09:36]wFMCommunicate OK [18:09:36]SAM_PROTO_GetShiftState done [18:09:36]FM_GetShiftState done [18:09:36]opened in 1729642525 [18:09:36]opened+sec_in_day 1729728925 [18:09:36]quantity*price = 100015 [18:09:36]sum+1 = 100017 [18:09:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 302 23.10.2024 18:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188844 ФПД: 16019019132041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180938&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188844&fm=16019019132041&tin=02508201610067®Number=0000000000100030&sum=100000 [18:09:37]StoreToDocumentArchive [18:09:37]shift 462 fd 188844 [18:09:37]save to /storage/0462/doc_00188844 [18:09:37]save last doc name /storage/0462/doc_00188844 to /storage/kkm_last_doc_name [18:09:37]save OK [18:09:37]Clear old archive folders... [18:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:37]tlvbuf is 0115DF50 [18:09:37]SAM_PROTO_ClearQueue [18:09:37]wFMCommunicate request_size=4 [18:09:37]MH_SAM_APDU [18:09:37]CAPDU: 80 09 00 00 [18:09:37]Write to MH i2c: E2 08 00 C1 1A 80 09 00 00 00 00 00 00 4D [18:09:37]Write i2c OK [18:09:37]MH_I2C_Read... [18:09:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:37]Read from MH i2c: E2 [18:09:37]MH_I2C_Read... [18:09:37]Read from MH i2c: E2 03 00 [18:09:37]MH_I2C_Read... [18:09:37]Read from MH i2c: E2 03 00 C1 1A 00 90 00 4F [18:09:37]RAPDU: 90 00 [18:09:37]wFMCommunicate OK [18:09:37]SAM_PROTO_ClearQueue done [18:09:37]KKMCreateOFDPacket [18:09:37]OFDProtocolAddRootSTLVToBuf [18:09:37]FM_MakeSignedData [18:09:37]FM_MakeSignedData [18:09:37]SAM_PROTO_SignData [18:09:37]wFMCommunicate request_size=4 [18:09:37]MH_SAM_APDU [18:09:37]CAPDU: 80 0D 01 02 [18:09:37]Write to MH i2c: E2 08 00 C2 1A 80 0D 01 02 00 00 00 00 55 [18:09:37]Write i2c OK [18:09:37]MH_I2C_Read... [18:09:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:37]Read from MH i2c: E2 [18:09:37]MH_I2C_Read... [18:09:37]Read from MH i2c: E2 03 00 [18:09:37]MH_I2C_Read... [18:09:37]Read from MH i2c: E2 03 00 C2 1A 00 90 00 50 [18:09:37]RAPDU: 90 00 [18:09:37]wFMCommunicate OK [18:09:37]wFMCommunicate request_size=255 [18:09:37]MH_SAM_APDU [18:09:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E2 3B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E1 02 00 35 04 06 00 0E [18:09:37]Write to MH i2c: E2 02 01 C3 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E2 3B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E1 02 00 35 04 06 00 0E 00 00 FA [18:09:37]Write i2c OK [18:09:37]MH_I2C_Read... [18:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:38]Read from MH i2c: E2 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: E2 03 00 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: E2 03 00 C3 1A 00 90 00 51 [18:09:38]RAPDU: 90 00 [18:09:38]wFMCommunicate OK [18:09:38]wFMCommunicate request_size=10 [18:09:38]MH_SAM_APDU [18:09:38]CAPDU: 80 0D 02 02 05 91 B7 F1 EC 89 [18:09:38]Write to MH i2c: E2 0D 00 C4 1A 80 0D 02 02 05 00 91 B7 F1 EC 89 00 00 10 [18:09:38]Write i2c OK [18:09:38]MH_I2C_Read... [18:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:38]Read from MH i2c: E2 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: E2 03 00 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: E2 03 00 C4 1A 00 90 00 52 [18:09:38]RAPDU: 90 00 [18:09:38]wFMCommunicate OK [18:09:38]wFMCommunicate request_size=4 [18:09:38]MH_SAM_APDU [18:09:38]CAPDU: 80 0D 03 02 [18:09:38]Write to MH i2c: E2 08 00 C5 1A 80 0D 03 02 00 00 00 00 5A [18:09:38]Write i2c OK [18:09:38]MH_I2C_Read... [18:09:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:38]Read from MH i2c: E2 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: E2 0B 00 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: E2 0B 00 C5 1A 00 CD 75 96 A3 6D 06 E1 70 90 00 9A [18:09:38]RAPDU: CD 75 96 A3 6D 06 E1 70 90 00 [18:09:38]wFMCommunicate OK [18:09:38]SAM_PROTO_SignData done [18:09:38]FM_MakeSignedData done [18:09:38]CreateOFDProtocolMessage [18:09:38]wFMCommunicate request_size=4 [18:09:38]MH_SAM_APDU [18:09:38]CAPDU: 80 11 00 00 [18:09:38]Write to MH i2c: E2 08 00 C6 1A 80 11 00 00 00 00 00 00 5A [18:09:38]Write i2c OK [18:09:38]MH_I2C_Read... [18:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:38]Read from MH i2c: E2 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: E2 17 00 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: E2 17 00 C6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [18:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:09:38]wFMCommunicate OK [18:09:38]CreateOFDProtocolMessage done [18:09:38]OFDSenderStorePacket 188844 [18:09:38]StoreOFDPacket docnum=188844 [18:09:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E 3C 07 01 80 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E2 3B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E1 02 00 35 04 06 00 0E 91 B7 F1 EC 89 CD 75 96 A3 6D 06 E1 70 [18:09:38]CheckFolder [18:09:38]dirname=/storage/ofd_packets [18:09:38]CheckFolder done [18:09:38]ProducePacketName [18:09:38]name=ofd_packets/00188844 [18:09:38]NVStorageSaveData ofd_packets/00188844 [18:09:38]File name is /storage/ofd_packets/00188844 [18:09:38]Write 301 bytes [18:09:38]NVStorageSaveData done [18:09:38]OFDSenderStorePacket done [18:09:38]KKMCreateOFDPacket done [18:09:38]NVStorageSaveData kkm_last_timestamp [18:09:38]File name is /storage/kkm_last_timestamp [18:09:38]Write 4 bytes [18:09:38]NVStorageSaveData done [18:09:38]ExternCall_PrintAddStr [18:09:38]wPrintStart [18:09:38]Write to MH i2c: 01 00 00 C7 1A E1 [18:09:38]Write i2c OK [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: 01 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: 01 07 00 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: 01 07 00 C7 1A 00 00 00 00 00 FF 0F F6 [18:09:38]RasterBufferAndPrint [18:09:38]line Счет N : (1)210907 [18:09:38]line ИНН: 02508201610067 [18:09:38]line Контрольно-Кассовый Чек [18:09:38]line ПРОДАЖА [18:09:38]line ТРК (МРК, ГНК) : 32 [18:09:38]line Товар: 2710124130 [18:09:38]line Аи-92-К-3 [18:09:38]line 14.950 * 66.90 [18:09:38]line = 1000.16 [18:09:38]line НДС 12% НСП 1% [18:09:38]line > о реализуемом товаре [18:09:38]line ОКРУГЛЕНИЕ: -0.16 [18:09:38]line ИТОГО: 1000.00 [18:09:38]line Внесено: 1000.00 [18:09:38]line СДАЧА: 0.00 [18:09:38]line НСП 1% : 8.85 [18:09:38]line НДС 12% : 106.21 [18:09:38]line Наличными: 1000.00 [18:09:38]line Безнал.: 0.00 [18:09:38]line Место: АЗС № 86 "Партнер Нефть" [18:09:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:09:38]line СНО: Общий режим [18:09:38]line Чек 302 23.10.2024 18:09 [18:09:38]line Смена: 462 ФФД: 1.0 [18:09:38]line ЗНМ: 0300000155 [18:09:38]line РНМ: 0000000000100030 [18:09:38]line Версия ККМ: 001 [18:09:38]line ФМ: 0000000000965340 [18:09:38]line ФД: 188844 [18:09:38]line ФПД: 16019019132041 [18:09:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180938&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188844&fm=16019019132041&tin=02508201610067®Number=0000000000100030&sum=100000 [18:09:38]written 0, free lines is 4095 [18:09:38]OFD Sender: Processing packet 188844 [packets to send 1062, broken 1061] [18:09:38]ProducePacketName [18:09:38]name=ofd_packets/00188844 [18:09:38]OFD Sender: To server: pG, [18:09:38]CommunicateWithHost lk.salyk.kg:30040 [18:09:38]ConnectInit lk.salyk.kg [18:09:38]Connected sock=10 [18:09:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E 3C 07 01 80 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E2 3B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E1 02 00 35 04 06 00 0E 91 B7 F1 EC 89 CD 75 96 A3 6D 06 E1 70 [18:09:38]Write to MH i2c: 01 00 00 F2 1A 0C [18:09:38]Write i2c OK [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: 01 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: 01 07 00 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: 01 07 00 F2 1A 00 00 00 00 00 53 0C 72 [18:09:38]RasterBufferAndPrint [18:09:38]line [18:09:38]line [18:09:38]line [18:09:38]line [18:09:38]line [18:09:38]written 0, free lines is 3159 [18:09:38]MH_Cut [18:09:38]Write to MH i2c: D1 01 00 F9 1A 01 E5 [18:09:38]Write i2c OK [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: D1 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: D1 01 00 [18:09:38]MH_I2C_Read... [18:09:38]Read from MH i2c: D1 01 00 F9 1A 00 E4 [18:09:38]Write to MH i2c: 01 00 00 FA 1A 14 [18:09:38]Write i2c OK [18:09:38]MH_I2C_Read... [18:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 45 47 00 D9 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E1 02 00 F4 03 04 00 CC E5 18 67 B6 04 01 00 00 8A 9D A3 64 BA 64 CC 6A [18:09:38]CommunicateWithHost err = 0 [18:09:38]CheckOFDResponse [18:09:38]1017 (14) - 77093643461234 [18:09:38]1041 (16) - 0000000000965340 [18:09:38]1040 (4) - 188844 [18:09:38]1012 (4) - 23.10.2024 12:02 [18:09:38]1206 (1) - 0 [18:09:38]OFD Sender: Remove packet 188844 [18:09:38]ProducePacketName [18:09:38]name=ofd_packets/00188844 [18:09:38]NVStorageDeleteData [18:09:39]OFD Sender: No OFD packet to send [18:09:40]*** Cut start [18:09:40]*** Partial cut [18:09:40]*** CUTSNS_PIN = 1 [18:09:40]*** CUTSNS_PIN = 0 [18:09:40]*** Brake cut motor [18:09:40]Read from MH i2c: 01 [18:09:40]MH_I2C_Read... [18:09:40]*** Stop cut motor [18:09:40]*** Cut end [18:09:40]Read from MH i2c: 01 07 00 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: 01 07 00 FA 1A 00 00 00 00 00 FF 0F 29 [18:09:40]process_action close_receipt done [18:09:40]requested_data is exist [18:09:40]produce_requested_data [18:09:40]requested_item fm.sn is exist - process it [18:09:40]wFMCommunicate request_size=4 [18:09:40]MH_SAM_APDU [18:09:40]CAPDU: 80 11 00 00 [18:09:40]Write to MH i2c: E2 08 00 FB 1A 80 11 00 00 00 00 00 00 8F [18:09:40]Write i2c OK [18:09:40]MH_I2C_Read... [18:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:40]Read from MH i2c: E2 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: E2 17 00 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: E2 17 00 FB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [18:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:09:40]wFMCommunicate OK [18:09:40]requested_item fd.num is exist - process it [18:09:40]SAM_PROTO_GetFieldsCounters [18:09:40]wFMCommunicate request_size=4 [18:09:40]MH_SAM_APDU [18:09:40]CAPDU: 80 13 00 00 [18:09:40]Write to MH i2c: E2 08 00 FC 1A 80 13 00 00 00 00 00 00 92 [18:09:40]Write i2c OK [18:09:40]MH_I2C_Read... [18:09:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:40]Read from MH i2c: E2 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: E2 62 00 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: E2 62 00 FC 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [18:09:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:40]wFMCommunicate OK [18:09:40]SAM_PROTO_GetFieldsCounters done [18:09:40]requested_item shift.num is exist - process it [18:09:40]requested_item shift.opened is exist - process it [18:09:40]req_shift_opened [18:09:40]FM_GetShiftState [18:09:40]SAM_PROTO_GetShiftState [18:09:40]wFMCommunicate request_size=4 [18:09:40]MH_SAM_APDU [18:09:40]CAPDU: 80 13 01 00 [18:09:40]Write to MH i2c: E2 08 00 FD 1A 80 13 01 00 00 00 00 00 94 [18:09:40]Write i2c OK [18:09:40]MH_I2C_Read... [18:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:40]Read from MH i2c: E2 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: E2 0E 00 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: E2 0E 00 FD 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7C [18:09:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:09:40]wFMCommunicate OK [18:09:40]SAM_PROTO_GetShiftState done [18:09:40]FM_GetShiftState done [18:09:40]req_shift_opened done [18:09:40]requested_item shift.open_date is exist - process it [18:09:40]req_shift_open_date [18:09:40]req_shift_open_date done [18:09:40]produce_requested_data done [18:09:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188844,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:09:40]process_action_free close_receipt [18:09:40]json_value_free [18:09:40]json_value_free done [18:09:40]process_json_proto returns [18:09:40]Send response to host [18:09:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188844,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:09:40]free response buf [18:09:40]execute_script done [18:09:40]execute_script returns [18:09:40]free content buf [18:09:40]Sock 7.Close socket [18:09:40]Sock 7.Thread stoped [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:18]accept exits with 9 [18:10:18]New connection [18:10:18]New thread 3067350372 created [18:10:18]Thread 3067207012 joined [18:10:18]Waiting for new connection... [18:10:18] Sock 9.Parse request [18:10:18]Sock 9.Check first char [18:10:18]Sock 9.First char is OK [18:10:18]request: POST /json_proto HTTP/1.0 [18:10:18]Method: POST [18:10:18]URL: /json_proto [18:10:18]Method is POST - this is cgi request [18:10:18]url: /json_proto [18:10:18]query_string will be loaded in cgi processing [18:10:18]execute_cgi json_proto POST (null) [18:10:18]execute_cgi path=json_proto method=POST [18:10:18]POST find Content-Length [18:10:18]Host: 172.17.42.131:8080 [18:10:18]Content-Length: 679 [18:10:18]Content-Type: application/json [18:10:18] [18:10:18]POST finish read [18:10:18]Found Content-Length = 679 [18:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:18]execute_script... [18:10:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:18]POST & json_proto [18:10:18]process_json_proto [18:10:18]json parsed OK: [18:10:18]protocol is kg_v1.0 [18:10:18]action value=close_receipt [18:10:18]process_action close_receipt [18:10:18]cmd_close_receipt [18:10:18]MH_GetDate [18:10:18]Write to MH i2c: F0 00 00 FE 1A 07 [18:10:18]Write i2c OK [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: F0 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: F0 09 00 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: F0 09 00 FE 1A 00 0B 3C 19 67 A0 18 CA 66 BF [18:10:18]GetLastDocTimeStamp 1729706978 [18:10:18]current date 1729707019 [18:10:18]FM_GetShiftState [18:10:18]SAM_PROTO_GetShiftState [18:10:18]wFMCommunicate request_size=4 [18:10:18]MH_SAM_APDU [18:10:18]CAPDU: 80 13 01 00 [18:10:18]Write to MH i2c: E2 08 00 FF 1A 80 13 01 00 00 00 00 00 96 [18:10:18]Write i2c OK [18:10:18]MH_I2C_Read... [18:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:18]Read from MH i2c: E2 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: E2 0E 00 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: E2 0E 00 FF 1A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7E [18:10:18]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:10:18]wFMCommunicate OK [18:10:18]SAM_PROTO_GetShiftState done [18:10:18]FM_GetShiftState done [18:10:18]opened in 1729642525 [18:10:18]opened+sec_in_day 1729728925 [18:10:18]quantity*price = 300075 [18:10:18]sum+1 = 300077 [18:10:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 303 23.10.2024 18:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188845 ФПД: 28889476999075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181019&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188845&fm=28889476999075&tin=02508201610067®Number=0000000000100030&sum=300000 [18:10:19]StoreToDocumentArchive [18:10:19]shift 462 fd 188845 [18:10:19]save to /storage/0462/doc_00188845 [18:10:19]save last doc name /storage/0462/doc_00188845 to /storage/kkm_last_doc_name [18:10:19]save OK [18:10:19]Clear old archive folders... [18:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:19]tlvbuf is B6FB9A00 [18:10:19]SAM_PROTO_ClearQueue [18:10:19]wFMCommunicate request_size=4 [18:10:19]MH_SAM_APDU [18:10:19]CAPDU: 80 09 00 00 [18:10:19]Write to MH i2c: E2 08 00 0C 1B 80 09 00 00 00 00 00 00 99 [18:10:19]Write i2c OK [18:10:19]MH_I2C_Read... [18:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:19]Read from MH i2c: E2 [18:10:19]MH_I2C_Read... [18:10:19]Read from MH i2c: E2 03 00 [18:10:19]MH_I2C_Read... [18:10:19]Read from MH i2c: E2 03 00 0C 1B 00 90 00 9B [18:10:19]RAPDU: 90 00 [18:10:19]wFMCommunicate OK [18:10:19]SAM_PROTO_ClearQueue done [18:10:19]KKMCreateOFDPacket [18:10:19]OFDProtocolAddRootSTLVToBuf [18:10:19]FM_MakeSignedData [18:10:19]FM_MakeSignedData [18:10:19]SAM_PROTO_SignData [18:10:19]wFMCommunicate request_size=4 [18:10:19]MH_SAM_APDU [18:10:19]CAPDU: 80 0D 01 02 [18:10:19]Write to MH i2c: E2 08 00 0D 1B 80 0D 01 02 00 00 00 00 A1 [18:10:19]Write i2c OK [18:10:19]MH_I2C_Read... [18:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:19]Read from MH i2c: E2 [18:10:19]MH_I2C_Read... [18:10:19]Read from MH i2c: E2 03 00 [18:10:19]MH_I2C_Read... [18:10:19]Read from MH i2c: E2 03 00 0D 1B 00 90 00 9C [18:10:19]RAPDU: 90 00 [18:10:19]wFMCommunicate OK [18:10:19]wFMCommunicate request_size=255 [18:10:19]MH_SAM_APDU [18:10:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 0B 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E1 02 00 35 04 06 00 1A 46 5B 03 [18:10:19]Write to MH i2c: E2 02 01 0E 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 0B 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E1 02 00 35 04 06 00 1A 46 5B 03 00 00 57 [18:10:19]OFD Sender: No OFD packet to send [18:10:19]Write i2c OK [18:10:19]MH_I2C_Read... [18:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:19]Read from MH i2c: E2 [18:10:19]MH_I2C_Read... [18:10:19]Read from MH i2c: E2 03 00 [18:10:19]MH_I2C_Read... [18:10:19]Read from MH i2c: E2 03 00 0E 1B 00 90 00 9D [18:10:19]RAPDU: 90 00 [18:10:19]wFMCommunicate OK [18:10:19]wFMCommunicate request_size=7 [18:10:19]MH_SAM_APDU [18:10:19]CAPDU: 80 0D 02 02 02 A7 A3 [18:10:19]Write to MH i2c: E2 0A 00 0F 1B 80 0D 02 02 02 00 A7 A3 00 00 F2 [18:10:19]Write i2c OK [18:10:19]MH_I2C_Read... [18:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:19]Read from MH i2c: E2 [18:10:19]MH_I2C_Read... [18:10:19]Read from MH i2c: E2 03 00 [18:10:19]MH_I2C_Read... [18:10:19]Read from MH i2c: E2 03 00 0F 1B 00 90 00 9E [18:10:19]RAPDU: 90 00 [18:10:19]wFMCommunicate OK [18:10:19]wFMCommunicate request_size=4 [18:10:19]MH_SAM_APDU [18:10:19]CAPDU: 80 0D 03 02 [18:10:19]Write to MH i2c: E2 08 00 10 1B 80 0D 03 02 00 00 00 00 A6 [18:10:19]Write i2c OK [18:10:19]MH_I2C_Read... [18:10:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:20]Read from MH i2c: E2 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: E2 0B 00 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: E2 0B 00 10 1B 00 D8 CB FB E3 9D 5A 05 50 90 00 74 [18:10:20]RAPDU: D8 CB FB E3 9D 5A 05 50 90 00 [18:10:20]wFMCommunicate OK [18:10:20]SAM_PROTO_SignData done [18:10:20]FM_MakeSignedData done [18:10:20]CreateOFDProtocolMessage [18:10:20]wFMCommunicate request_size=4 [18:10:20]MH_SAM_APDU [18:10:20]CAPDU: 80 11 00 00 [18:10:20]Write to MH i2c: E2 08 00 11 1B 80 11 00 00 00 00 00 00 A6 [18:10:20]Write i2c OK [18:10:20]MH_I2C_Read... [18:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:20]Read from MH i2c: E2 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: E2 17 00 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: E2 17 00 11 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [18:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:10:20]wFMCommunicate OK [18:10:20]CreateOFDProtocolMessage done [18:10:20]OFDSenderStorePacket 188845 [18:10:20]StoreOFDPacket docnum=188845 [18:10:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6A 57 04 01 8E D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 0B 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E1 02 00 35 04 06 00 1A 46 5B 03 A7 A3 D8 CB FB E3 9D 5A 05 50 [18:10:20]CheckFolder [18:10:20]dirname=/storage/ofd_packets [18:10:20]CheckFolder done [18:10:20]ProducePacketName [18:10:20]name=ofd_packets/00188845 [18:10:20]NVStorageSaveData ofd_packets/00188845 [18:10:20]File name is /storage/ofd_packets/00188845 [18:10:20]Write 298 bytes [18:10:20]NVStorageSaveData done [18:10:20]OFDSenderStorePacket done [18:10:20]KKMCreateOFDPacket done [18:10:20]NVStorageSaveData kkm_last_timestamp [18:10:20]File name is /storage/kkm_last_timestamp [18:10:20]Write 4 bytes [18:10:20]NVStorageSaveData done [18:10:20]ExternCall_PrintAddStr [18:10:20]wPrintStart [18:10:20]Write to MH i2c: 01 00 00 12 1B 2D [18:10:20]Write i2c OK [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: 01 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: 01 07 00 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: 01 07 00 12 1B 00 00 00 00 00 FF 0F 42 [18:10:20]RasterBufferAndPrint [18:10:20]line Счет N : (1)210905 [18:10:20]line ИНН: 02508201610067 [18:10:20]line Контрольно-Кассовый Чек [18:10:20]line ПРОДАЖА [18:10:20]line ТРК (МРК, ГНК) : 51 [18:10:20]line Товар: 2710194210 [18:10:20]line ДТ-К-5 [18:10:20]line 39.380 * 76.20 [18:10:20]line = 3000.76 [18:10:20]line НДС 12% НСП 1% [18:10:20]line > о реализуемом товаре [18:10:20]line ОКРУГЛЕНИЕ: -0.76 [18:10:20]line ИТОГО: 3000.00 [18:10:20]line Внесено: 3000.00 [18:10:20]line СДАЧА: 0.00 [18:10:20]line НСП 1% : 26.55 [18:10:20]line НДС 12% : 318.66 [18:10:20]line Наличными: 3000.00 [18:10:20]line Безнал.: 0.00 [18:10:20]line Место: АЗС № 86 "Партнер Нефть" [18:10:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:10:20]line СНО: Общий режим [18:10:20]line Чек 303 23.10.2024 18:10 [18:10:20]line Смена: 462 ФФД: 1.0 [18:10:20]line ЗНМ: 0300000155 [18:10:20]line РНМ: 0000000000100030 [18:10:20]line Версия ККМ: 001 [18:10:20]line ФМ: 0000000000965340 [18:10:20]line ФД: 188845 [18:10:20]line ФПД: 28889476999075 [18:10:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181019&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188845&fm=28889476999075&tin=02508201610067®Number=0000000000100030&sum=300000 [18:10:20]OFD Sender: Processing packet 188845 [packets to send 1062, broken 1061] [18:10:20]ProducePacketName [18:10:20]name=ofd_packets/00188845 [18:10:20]OFD Sender: To server: pG, [18:10:20]CommunicateWithHost lk.salyk.kg:30040 [18:10:20]ConnectInit lk.salyk.kg [18:10:20]written 0, free lines is 4095 [18:10:20]Connected sock=10 [18:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6A 57 04 01 8E D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 0B 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E1 02 00 35 04 06 00 1A 46 5B 03 A7 A3 D8 CB FB E3 9D 5A 05 50 [18:10:20]Write to MH i2c: 01 00 00 3D 1B 58 [18:10:20]Write i2c OK [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: 01 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: 01 07 00 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: 01 07 00 3D 1B 00 00 00 00 00 62 0C CD [18:10:20]RasterBufferAndPrint [18:10:20]line [18:10:20]line [18:10:20]line [18:10:20]line [18:10:20]line [18:10:20]written 0, free lines is 3174 [18:10:20]MH_Cut [18:10:20]Write to MH i2c: D1 01 00 44 1B 01 31 [18:10:20]Write i2c OK [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: D1 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: D1 01 00 [18:10:20]MH_I2C_Read... [18:10:20]Read from MH i2c: D1 01 00 44 1B 00 30 [18:10:20]Write to MH i2c: 01 00 00 45 1B 60 [18:10:20]Write i2c OK [18:10:20]MH_I2C_Read... [18:10:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 68 8B 47 00 6B 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 36 35 33 34 30 10 04 04 00 AD E1 02 00 F4 03 04 00 F5 E5 18 67 B6 04 01 00 00 6F 40 67 E1 4B 93 D4 E1 [18:10:20]CommunicateWithHost err = 0 [18:10:20]CheckOFDResponse [18:10:20]1017 (14) - 77093643461234 [18:10:20]1041 (16) - 0000000000965340 [18:10:20]1040 (4) - 188845 [18:10:20]1012 (4) - 23.10.2024 12:03 [18:10:20]1206 (1) - 0 [18:10:20]OFD Sender: Remove packet 188845 [18:10:20]ProducePacketName [18:10:20]name=ofd_packets/00188845 [18:10:20]NVStorageDeleteData [18:10:21]OFD Sender: No OFD packet to send [18:10:21]*** Cut start [18:10:21]*** Partial cut [18:10:21]*** CUTSNS_PIN = 1 [18:10:21]*** CUTSNS_PIN = 0 [18:10:22]*** Brake cut motor [18:10:22]Read from MH i2c: 01 [18:10:22]MH_I2C_Read... [18:10:22]*** Stop cut motor [18:10:22]*** Cut end [18:10:22]Read from MH i2c: 01 07 00 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: 01 07 00 45 1B 00 00 00 00 00 FF 0F 75 [18:10:22]process_action close_receipt done [18:10:22]requested_data is exist [18:10:22]produce_requested_data [18:10:22]requested_item fm.sn is exist - process it [18:10:22]wFMCommunicate request_size=4 [18:10:22]MH_SAM_APDU [18:10:22]CAPDU: 80 11 00 00 [18:10:22]Write to MH i2c: E2 08 00 46 1B 80 11 00 00 00 00 00 00 DB [18:10:22]Write i2c OK [18:10:22]MH_I2C_Read... [18:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:22]Read from MH i2c: E2 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: E2 17 00 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: E2 17 00 46 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 29 [18:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:10:22]wFMCommunicate OK [18:10:22]requested_item fd.num is exist - process it [18:10:22]SAM_PROTO_GetFieldsCounters [18:10:22]wFMCommunicate request_size=4 [18:10:22]MH_SAM_APDU [18:10:22]CAPDU: 80 13 00 00 [18:10:22]Write to MH i2c: E2 08 00 47 1B 80 13 00 00 00 00 00 00 DE [18:10:22]Write i2c OK [18:10:22]MH_I2C_Read... [18:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:22]Read from MH i2c: E2 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: E2 62 00 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: E2 62 00 47 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [18:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:22]wFMCommunicate OK [18:10:22]SAM_PROTO_GetFieldsCounters done [18:10:22]requested_item shift.num is exist - process it [18:10:22]requested_item shift.opened is exist - process it [18:10:22]req_shift_opened [18:10:22]FM_GetShiftState [18:10:22]SAM_PROTO_GetShiftState [18:10:22]wFMCommunicate request_size=4 [18:10:22]MH_SAM_APDU [18:10:22]CAPDU: 80 13 01 00 [18:10:22]Write to MH i2c: E2 08 00 48 1B 80 13 01 00 00 00 00 00 E0 [18:10:22]Write i2c OK [18:10:22]MH_I2C_Read... [18:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:22]Read from MH i2c: E2 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: E2 0E 00 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: E2 0E 00 48 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C8 [18:10:22]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:10:22]wFMCommunicate OK [18:10:22]SAM_PROTO_GetShiftState done [18:10:22]FM_GetShiftState done [18:10:22]req_shift_opened done [18:10:22]requested_item shift.open_date is exist - process it [18:10:22]req_shift_open_date [18:10:22]req_shift_open_date done [18:10:22]produce_requested_data done [18:10:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188845,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:10:22]process_action_free close_receipt [18:10:22]json_value_free [18:10:22]json_value_free done [18:10:22]process_json_proto returns [18:10:22]Send response to host [18:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188845,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:10:22]free response buf [18:10:22]execute_script done [18:10:22]execute_script returns [18:10:22]free content buf [18:10:22]Sock 9.Close socket [18:10:22]Sock 9.Thread stoped [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:53]accept exits with 7 [18:10:53]New connection [18:10:53]New thread 3067207012 created [18:10:53]Thread 3067350372 joined [18:10:53]Waiting for new connection... [18:10:53] Sock 7.Parse request [18:10:53]Sock 7.Check first char [18:10:53]Sock 7.First char is OK [18:10:53]request: POST /json_proto HTTP/1.0 [18:10:53]Method: POST [18:10:53]URL: /json_proto [18:10:53]Method is POST - this is cgi request [18:10:53]url: /json_proto [18:10:53]query_string will be loaded in cgi processing [18:10:53]execute_cgi json_proto POST (null) [18:10:53]execute_cgi path=json_proto method=POST [18:10:53]POST find Content-Length [18:10:53]Host: 172.17.42.131:8080 [18:10:53]Content-Length: 769 [18:10:53]Content-Type: application/json [18:10:53] [18:10:53]POST finish read [18:10:53]Found Content-Length = 769 [18:10:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 60.650, "sum" : 4500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:53]execute_script... [18:10:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 60.650, "sum" : 4500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:53]POST & json_proto [18:10:53]process_json_proto [18:10:53]json parsed OK: [18:10:53]protocol is kg_v1.0 [18:10:53]action value=close_receipt [18:10:53]process_action close_receipt [18:10:53]cmd_close_receipt [18:10:53]MH_GetDate [18:10:53]Write to MH i2c: F0 00 00 49 1B 53 [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: F0 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: F0 09 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: F0 09 00 49 1B 00 2F 3C 19 67 A0 18 CA 66 2F [18:10:53]GetLastDocTimeStamp 1729707019 [18:10:53]current date 1729707055 [18:10:53]FM_GetShiftState [18:10:53]SAM_PROTO_GetShiftState [18:10:53]wFMCommunicate request_size=4 [18:10:53]MH_SAM_APDU [18:10:53]CAPDU: 80 13 01 00 [18:10:53]Write to MH i2c: E2 08 00 4A 1B 80 13 01 00 00 00 00 00 E2 [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:53]Read from MH i2c: E2 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 0E 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 0E 00 4A 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CA [18:10:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:10:53]wFMCommunicate OK [18:10:53]SAM_PROTO_GetShiftState done [18:10:53]FM_GetShiftState done [18:10:53]opened in 1729642525 [18:10:53]opened+sec_in_day 1729728925 [18:10:53]quantity*price = 450023 [18:10:53]sum+1 = 450024 [18:10:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.23 НСП 1% : 39.82 НДС 12% : 477.90 Наличными: 0.00 Безнал.: 4500.23 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 304 23.10.2024 18:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188846 ФПД: 225072823020204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181055&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188846&fm=225072823020204&tin=02508201610067®Number=0000000000100030&sum=450023 [18:10:54]StoreToDocumentArchive [18:10:54]shift 462 fd 188846 [18:10:54]save to /storage/0462/doc_00188846 [18:10:54]save last doc name /storage/0462/doc_00188846 to /storage/kkm_last_doc_name [18:10:54]save OK [18:10:54]Clear old archive folders... [18:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:54]tlvbuf is 0114BE00 [18:10:54]SAM_PROTO_ClearQueue [18:10:54]wFMCommunicate request_size=4 [18:10:54]MH_SAM_APDU [18:10:54]CAPDU: 80 09 00 00 [18:10:54]Write to MH i2c: E2 08 00 57 1B 80 09 00 00 00 00 00 00 E4 [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:54]Read from MH i2c: E2 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 03 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 03 00 57 1B 00 90 00 E6 [18:10:54]RAPDU: 90 00 [18:10:54]wFMCommunicate OK [18:10:54]SAM_PROTO_ClearQueue done [18:10:54]KKMCreateOFDPacket [18:10:54]OFDProtocolAddRootSTLVToBuf [18:10:54]FM_MakeSignedData [18:10:54]FM_MakeSignedData [18:10:54]SAM_PROTO_SignData [18:10:54]wFMCommunicate request_size=4 [18:10:54]MH_SAM_APDU [18:10:54]CAPDU: 80 0D 01 02 [18:10:54]Write to MH i2c: E2 08 00 58 1B 80 0D 01 02 00 00 00 00 EC [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:54]Read from MH i2c: E2 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 03 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 03 00 58 1B 00 90 00 E7 [18:10:54]RAPDU: 90 00 [18:10:54]wFMCommunicate OK [18:10:54]wFMCommunicate request_size=255 [18:10:54]MH_SAM_APDU [18:10:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EA EC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 2F 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E1 02 00 35 04 06 00 CC [18:10:54]Write to MH i2c: E2 02 01 59 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EA EC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 2F 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E1 02 00 35 04 06 00 CC 00 00 77 [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 03 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 03 00 59 1B 00 90 00 E8 [18:10:55]RAPDU: 90 00 [18:10:55]wFMCommunicate OK [18:10:55]wFMCommunicate request_size=10 [18:10:55]MH_SAM_APDU [18:10:55]CAPDU: 80 0D 02 02 05 B3 D9 AA 2A AC [18:10:55]Write to MH i2c: E2 0D 00 5A 1B 80 0D 02 02 05 00 B3 D9 AA 2A AC 00 00 05 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 03 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 03 00 5A 1B 00 90 00 E9 [18:10:55]RAPDU: 90 00 [18:10:55]wFMCommunicate OK [18:10:55]wFMCommunicate request_size=4 [18:10:55]MH_SAM_APDU [18:10:55]CAPDU: 80 0D 03 02 [18:10:55]Write to MH i2c: E2 08 00 5B 1B 80 0D 03 02 00 00 00 00 F1 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 0B 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 0B 00 5B 1B 00 24 D3 65 BF 70 0C 1D 2D 90 00 D3 [18:10:55]RAPDU: 24 D3 65 BF 70 0C 1D 2D 90 00 [18:10:55]wFMCommunicate OK [18:10:55]SAM_PROTO_SignData done [18:10:55]FM_MakeSignedData done [18:10:55]CreateOFDProtocolMessage [18:10:55]wFMCommunicate request_size=4 [18:10:55]MH_SAM_APDU [18:10:55]CAPDU: 80 11 00 00 [18:10:55]Write to MH i2c: E2 08 00 5C 1B 80 11 00 00 00 00 00 00 F1 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 17 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 17 00 5C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [18:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:10:55]wFMCommunicate OK [18:10:55]CreateOFDProtocolMessage done [18:10:55]OFDSenderStorePacket 188846 [18:10:55]StoreOFDPacket docnum=188846 [18:10:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A3 16 07 01 BA 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EA EC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 2F 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E1 02 00 35 04 06 00 CC B3 D9 AA 2A AC 24 D3 65 BF 70 0C 1D 2D [18:10:55]CheckFolder [18:10:55]dirname=/storage/ofd_packets [18:10:55]CheckFolder done [18:10:55]ProducePacketName [18:10:55]name=ofd_packets/00188846 [18:10:55]NVStorageSaveData ofd_packets/00188846 [18:10:55]File name is /storage/ofd_packets/00188846 [18:10:55]Write 301 bytes [18:10:55]NVStorageSaveData done [18:10:55]OFDSenderStorePacket done [18:10:55]KKMCreateOFDPacket done [18:10:55]NVStorageSaveData kkm_last_timestamp [18:10:55]File name is /storage/kkm_last_timestamp [18:10:55]Write 4 bytes [18:10:55]NVStorageSaveData done [18:10:55]ExternCall_PrintAddStr [18:10:55]wPrintStart [18:10:55]Write to MH i2c: 01 00 00 5D 1B 78 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 5D 1B 00 00 00 00 00 FF 0F 8D [18:10:55]RasterBufferAndPrint [18:10:55]line Счет N : (1)210906 [18:10:55]line ИНН: 02508201610067 [18:10:55]line Контрольно-Кассовый Чек [18:10:55]line ПРОДАЖА [18:10:55]line ТРК (МРК, ГНК) : 23 [18:10:55]line Товар: 2710124500 [18:10:55]line Аи-95-К-3 [18:10:55]line 60.650 * 74.20 [18:10:55]line = 4500.23 [18:10:55]line НДС 12% НСП 1% [18:10:55]line > о реализуемом товаре [18:10:55]line ИТОГО: 4500.23 [18:10:55]line НСП 1% : 39.82 [18:10:55]line НДС 12% : 477.90 [18:10:55]line Наличными: 0.00 [18:10:55]line Безнал.: 4500.23 [18:10:55]line Место: АЗС № 86 "Партнер Нефть" [18:10:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:10:55]line СНО: Общий режим [18:10:55]line Чек 304 23.10.2024 18:10 [18:10:55]line Смена: 462 ФФД: 1.0 [18:10:55]line ЗНМ: 0300000155 [18:10:55]line РНМ: 0000000000100030 [18:10:55]line Версия ККМ: 001 [18:10:55]line Платежная система: Mbank [18:10:55]line ФМ: 0000000000965340 [18:10:55]line ФД: 188846 [18:10:55]line ФПД: 225072823020204 [18:10:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181055&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188846&fm=225072823020204&tin=02508201610067®Number=0000000000100030&sum=450023 [18:10:55]written 0, free lines is 4095 [18:10:55]OFD Sender: Processing packet 188846 [packets to send 1062, broken 1061] [18:10:55]ProducePacketName [18:10:55]name=ofd_packets/00188846 [18:10:55]OFD Sender: To server: pG, [18:10:55]CommunicateWithHost lk.salyk.kg:30040 [18:10:55]ConnectInit lk.salyk.kg [18:10:55]Connected sock=11 [18:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A3 16 07 01 BA 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EA EC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 2F 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E1 02 00 35 04 06 00 CC B3 D9 AA 2A AC 24 D3 65 BF 70 0C 1D 2D [18:10:55]Write to MH i2c: 01 00 00 86 1B A1 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 86 1B 00 00 00 00 00 8B 0C 3F [18:10:55]RasterBufferAndPrint [18:10:55]line [18:10:55]line [18:10:55]line [18:10:55]line [18:10:55]line [18:10:55]written 0, free lines is 3214 [18:10:55]MH_Cut [18:10:55]Write to MH i2c: D1 01 00 8D 1B 01 7A [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: D1 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: D1 01 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: D1 01 00 8D 1B 00 79 [18:10:55]Write to MH i2c: 01 00 00 8E 1B A9 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 FE 47 00 94 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E1 02 00 F4 03 04 00 19 E6 18 67 B6 04 01 00 00 AC 47 2F AA 55 4D C1 3F [18:10:56]CommunicateWithHost err = 0 [18:10:56]CheckOFDResponse [18:10:56]1017 (14) - 77093643461234 [18:10:56]1041 (16) - 0000000000965340 [18:10:56]1040 (4) - 188846 [18:10:56]1012 (4) - 23.10.2024 12:03 [18:10:56]1206 (1) - 0 [18:10:56]OFD Sender: Remove packet 188846 [18:10:56]ProducePacketName [18:10:56]name=ofd_packets/00188846 [18:10:56]NVStorageDeleteData [18:10:56]OFD Sender: No OFD packet to send [18:10:57]*** Cut start [18:10:57]*** Partial cut [18:10:57]*** CUTSNS_PIN = 1 [18:10:57]*** CUTSNS_PIN = 0 [18:10:57]*** Brake cut motor [18:10:57]Read from MH i2c: 01 [18:10:57]MH_I2C_Read... [18:10:57]*** Stop cut motor [18:10:57]*** Cut end [18:10:57]Read from MH i2c: 01 07 00 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: 01 07 00 8E 1B 00 00 00 00 00 FF 0F BE [18:10:57]process_action close_receipt done [18:10:57]requested_data is exist [18:10:57]produce_requested_data [18:10:57]requested_item fm.sn is exist - process it [18:10:57]wFMCommunicate request_size=4 [18:10:57]MH_SAM_APDU [18:10:57]CAPDU: 80 11 00 00 [18:10:57]Write to MH i2c: E2 08 00 8F 1B 80 11 00 00 00 00 00 00 24 [18:10:57]Write i2c OK [18:10:57]MH_I2C_Read... [18:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:57]Read from MH i2c: E2 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 17 00 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 17 00 8F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [18:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:10:57]wFMCommunicate OK [18:10:57]requested_item fd.num is exist - process it [18:10:57]SAM_PROTO_GetFieldsCounters [18:10:57]wFMCommunicate request_size=4 [18:10:57]MH_SAM_APDU [18:10:57]CAPDU: 80 13 00 00 [18:10:57]Write to MH i2c: E2 08 00 90 1B 80 13 00 00 00 00 00 00 27 [18:10:57]Write i2c OK [18:10:57]MH_I2C_Read... [18:10:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:57]Read from MH i2c: E2 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 62 00 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 62 00 90 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [18:10:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:57]wFMCommunicate OK [18:10:57]SAM_PROTO_GetFieldsCounters done [18:10:57]requested_item shift.num is exist - process it [18:10:57]requested_item shift.opened is exist - process it [18:10:57]req_shift_opened [18:10:57]FM_GetShiftState [18:10:57]SAM_PROTO_GetShiftState [18:10:57]wFMCommunicate request_size=4 [18:10:57]MH_SAM_APDU [18:10:57]CAPDU: 80 13 01 00 [18:10:57]Write to MH i2c: E2 08 00 91 1B 80 13 01 00 00 00 00 00 29 [18:10:57]Write i2c OK [18:10:57]MH_I2C_Read... [18:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:57]Read from MH i2c: E2 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 0E 00 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 0E 00 91 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 11 [18:10:57]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:10:57]wFMCommunicate OK [18:10:57]SAM_PROTO_GetShiftState done [18:10:57]FM_GetShiftState done [18:10:57]req_shift_opened done [18:10:57]requested_item shift.open_date is exist - process it [18:10:57]req_shift_open_date [18:10:57]req_shift_open_date done [18:10:57]produce_requested_data done [18:10:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188846,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:10:57]process_action_free close_receipt [18:10:57]json_value_free [18:10:57]json_value_free done [18:10:57]process_json_proto returns [18:10:57]Send response to host [18:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188846,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:10:57]free response buf [18:10:57]execute_script done [18:10:57]execute_script returns [18:10:57]free content buf [18:10:57]Sock 7.Close socket [18:10:57]Sock 7.Thread stoped [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]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:37]accept exits with 9 [18:12:37]New connection [18:12:37]New thread 3067350372 created [18:12:37]Thread 3067207012 joined [18:12:37]Waiting for new connection... [18:12:37] Sock 9.Parse request [18:12:37]Sock 9.Check first char [18:12:37]Sock 9.First char is OK [18:12:37]request: POST /json_proto HTTP/1.0 [18:12:37]Method: POST [18:12:37]URL: /json_proto [18:12:37]Method is POST - this is cgi request [18:12:37]url: /json_proto [18:12:37]query_string will be loaded in cgi processing [18:12:37]execute_cgi json_proto POST (null) [18:12:37]execute_cgi path=json_proto method=POST [18:12:37]POST find Content-Length [18:12:37]Host: 172.17.42.131:8080 [18:12:37]Content-Length: 772 [18:12:37]Content-Type: application/json [18:12:37] [18:12:37]POST finish read [18:12:37]Found Content-Length = 772 [18:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 3.890, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:37]execute_script... [18:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 3.890, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:37]POST & json_proto [18:12:37]process_json_proto [18:12:37]json parsed OK: [18:12:37]protocol is kg_v1.0 [18:12:37]action value=close_receipt [18:12:37]process_action close_receipt [18:12:37]cmd_close_receipt [18:12:37]MH_GetDate [18:12:37]Write to MH i2c: F0 00 00 92 1B 9C [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: F0 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: F0 09 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: F0 09 00 92 1B 00 96 3C 19 67 A0 18 CA 66 DF [18:12:37]GetLastDocTimeStamp 1729707055 [18:12:37]current date 1729707158 [18:12:37]FM_GetShiftState [18:12:37]SAM_PROTO_GetShiftState [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 13 01 00 [18:12:37]Write to MH i2c: E2 08 00 93 1B 80 13 01 00 00 00 00 00 2B [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 0E 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 0E 00 93 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 13 [18:12:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:12:37]wFMCommunicate OK [18:12:37]SAM_PROTO_GetShiftState done [18:12:37]FM_GetShiftState done [18:12:37]opened in 1729642525 [18:12:37]opened+sec_in_day 1729728925 [18:12:37]quantity*price = 30030 [18:12:37]sum+1 = 30032 [18:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.31 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.31 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 305 23.10.2024 18:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188847 ФПД: 125883310315127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181238&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188847&fm=125883310315127&tin=02508201610067®Number=0000000000100030&sum=30031 [18:12:38]StoreToDocumentArchive [18:12:38]shift 462 fd 188847 [18:12:38]save to /storage/0462/doc_00188847 [18:12:38]save last doc name /storage/0462/doc_00188847 to /storage/kkm_last_doc_name [18:12:38]save OK [18:12:38]Clear old archive folders... [18:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:12:38]tlvbuf is 0113CA70 [18:12:38]SAM_PROTO_ClearQueue [18:12:38]wFMCommunicate request_size=4 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 09 00 00 [18:12:38]Write to MH i2c: E2 08 00 A0 1B 80 09 00 00 00 00 00 00 2D [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:38]Read from MH i2c: E2 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 03 00 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 03 00 A0 1B 00 90 00 2F [18:12:38]RAPDU: 90 00 [18:12:38]wFMCommunicate OK [18:12:38]SAM_PROTO_ClearQueue done [18:12:38]KKMCreateOFDPacket [18:12:38]OFDProtocolAddRootSTLVToBuf [18:12:38]FM_MakeSignedData [18:12:38]FM_MakeSignedData [18:12:38]SAM_PROTO_SignData [18:12:38]wFMCommunicate request_size=4 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 0D 01 02 [18:12:38]Write to MH i2c: E2 08 00 A1 1B 80 0D 01 02 00 00 00 00 35 [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:38]Read from MH i2c: E2 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 03 00 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 03 00 A1 1B 00 90 00 30 [18:12:38]RAPDU: 90 00 [18:12:38]wFMCommunicate OK [18:12:38]wFMCommunicate request_size=255 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 96 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E1 02 [18:12:38]Write to MH i2c: E2 02 01 A2 1B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 96 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E1 02 00 00 F4 [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:38]Read from MH i2c: E2 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 03 00 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 03 00 A2 1B 00 90 00 31 [18:12:38]RAPDU: 90 00 [18:12:38]wFMCommunicate OK [18:12:38]wFMCommunicate request_size=16 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 72 7D 7D FE 96 77 [18:12:38]Write to MH i2c: E2 13 00 A3 1B 80 0D 02 02 0B 00 00 35 04 06 00 72 7D 7D FE 96 77 00 00 04 [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:38]Read from MH i2c: E2 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 03 00 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 03 00 A3 1B 00 90 00 32 [18:12:38]RAPDU: 90 00 [18:12:38]wFMCommunicate OK [18:12:38]wFMCommunicate request_size=4 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 0D 03 02 [18:12:38]Write to MH i2c: E2 08 00 A4 1B 80 0D 03 02 00 00 00 00 3A [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 0B 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 0B 00 A4 1B 00 04 BF 19 7B 4C 09 6C C9 90 00 1C [18:12:39]RAPDU: 04 BF 19 7B 4C 09 6C C9 90 00 [18:12:39]wFMCommunicate OK [18:12:39]SAM_PROTO_SignData done [18:12:39]FM_MakeSignedData done [18:12:39]CreateOFDProtocolMessage [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 11 00 00 [18:12:39]Write to MH i2c: E2 08 00 A5 1B 80 11 00 00 00 00 00 00 3A [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 17 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 17 00 A5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [18:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:12:39]wFMCommunicate OK [18:12:39]CreateOFDProtocolMessage done [18:12:39]OFDSenderStorePacket 188847 [18:12:39]StoreOFDPacket docnum=188847 [18:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DE B4 0D 01 77 43 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 96 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E1 02 00 35 04 06 00 72 7D 7D FE 96 77 04 BF 19 7B 4C 09 6C C9 [18:12:39]CheckFolder [18:12:39]dirname=/storage/ofd_packets [18:12:39]CheckFolder done [18:12:39]ProducePacketName [18:12:39]name=ofd_packets/00188847 [18:12:39]NVStorageSaveData ofd_packets/00188847 [18:12:39]File name is /storage/ofd_packets/00188847 [18:12:39]Write 307 bytes [18:12:39]NVStorageSaveData done [18:12:39]OFDSenderStorePacket done [18:12:39]KKMCreateOFDPacket done [18:12:39]NVStorageSaveData kkm_last_timestamp [18:12:39]File name is /storage/kkm_last_timestamp [18:12:39]Write 4 bytes [18:12:39]NVStorageSaveData done [18:12:39]ExternCall_PrintAddStr [18:12:39]wPrintStart [18:12:39]Write to MH i2c: 01 00 00 A6 1B C1 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: 01 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: 01 07 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: 01 07 00 A6 1B 00 00 00 00 00 FF 0F D6 [18:12:39]RasterBufferAndPrint [18:12:39]line Счет N : (1)210908 [18:12:39]line ИНН: 02508201610067 [18:12:39]line Контрольно-Кассовый Чек [18:12:39]line ПРОДАЖА [18:12:39]line ТРК (МРК, ГНК) : 11 [18:12:39]line Товар: 2710194210 [18:12:39]line D-ENERGY ДТ-К-5 [18:12:39]line 3.890 * 77.20 [18:12:39]line = 300.31 [18:12:39]line НДС 12% НСП 1% [18:12:39]line > о реализуемом товаре [18:12:39]line ИТОГО: 300.31 [18:12:39]line НСП 1% : 2.66 [18:12:39]line НДС 12% : 31.89 [18:12:39]line Наличными: 0.00 [18:12:39]line Безнал.: 300.31 [18:12:39]line Место: АЗС № 86 "Партнер Нефть" [18:12:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:12:39]line СНО: Общий режим [18:12:39]line Чек 305 23.10.2024 18:12 [18:12:39]line Смена: 462 ФФД: 1.0 [18:12:39]line ЗНМ: 0300000155 [18:12:39]line РНМ: 0000000000100030 [18:12:39]line Версия ККМ: 001 [18:12:39]line Платежная система: Mbank [18:12:39]line ФМ: 0000000000965340 [18:12:39]line ФД: 188847 [18:12:39]line ФПД: 125883310315127 [18:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181238&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188847&fm=125883310315127&tin=02508201610067®Number=0000000000100030&sum=30031 [18:12:39]written 0, free lines is 4095 [18:12:39]OFD Sender: Processing packet 188847 [packets to send 1062, broken 1061] [18:12:39]ProducePacketName [18:12:39]name=ofd_packets/00188847 [18:12:39]OFD Sender: To server: pG, [18:12:39]CommunicateWithHost lk.salyk.kg:30040 [18:12:39]ConnectInit lk.salyk.kg [18:12:39]Connected sock=10 [18:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DE B4 0D 01 77 43 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 96 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E1 02 00 35 04 06 00 72 7D 7D FE 96 77 04 BF 19 7B 4C 09 6C C9 [18:12:39]Write to MH i2c: 01 00 00 CF 1B EA [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: 01 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: 01 07 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: 01 07 00 CF 1B 00 00 00 00 00 7E 0C 7B [18:12:39]RasterBufferAndPrint [18:12:39]line [18:12:39]line [18:12:39]line [18:12:39]line [18:12:39]line [18:12:39]written 0, free lines is 3204 [18:12:39]MH_Cut [18:12:39]Write to MH i2c: D1 01 00 D6 1B 01 C3 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: D1 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: D1 01 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: D1 01 00 D6 1B 00 C2 [18:12:39]Write to MH i2c: 01 00 00 D7 1B F2 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C7 1E 47 00 E5 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 36 35 33 34 30 10 04 04 00 AF E1 02 00 F4 03 04 00 80 E6 18 67 B6 04 01 00 00 1A 09 41 AA DE AB D7 A2 [18:12:39]CommunicateWithHost err = 0 [18:12:39]CheckOFDResponse [18:12:39]1017 (14) - 77093643461234 [18:12:39]1041 (16) - 0000000000965340 [18:12:39]1040 (4) - 188847 [18:12:39]1012 (4) - 23.10.2024 12:05 [18:12:39]1206 (1) - 0 [18:12:39]OFD Sender: Remove packet 188847 [18:12:39]ProducePacketName [18:12:39]name=ofd_packets/00188847 [18:12:39]NVStorageDeleteData [18:12:40]OFD Sender: No OFD packet to send [18:12:40]*** Cut start [18:12:40]*** Partial cut [18:12:40]*** CUTSNS_PIN = 1 [18:12:40]*** CUTSNS_PIN = 0 [18:12:41]*** Brake cut motor [18:12:41]Read from MH i2c: 01 [18:12:41]MH_I2C_Read... [18:12:41]*** Stop cut motor [18:12:41]*** Cut end [18:12:41]Read from MH i2c: 01 07 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: 01 07 00 D7 1B 00 00 00 00 00 FF 0F 07 [18:12:41]process_action close_receipt done [18:12:41]requested_data is exist [18:12:41]produce_requested_data [18:12:41]requested_item fm.sn is exist - process it [18:12:41]wFMCommunicate request_size=4 [18:12:41]MH_SAM_APDU [18:12:41]CAPDU: 80 11 00 00 [18:12:41]Write to MH i2c: E2 08 00 D8 1B 80 11 00 00 00 00 00 00 6D [18:12:41]Write i2c OK [18:12:41]MH_I2C_Read... [18:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:41]Read from MH i2c: E2 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 17 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 17 00 D8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [18:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:12:41]wFMCommunicate OK [18:12:41]requested_item fd.num is exist - process it [18:12:41]SAM_PROTO_GetFieldsCounters [18:12:41]wFMCommunicate request_size=4 [18:12:41]MH_SAM_APDU [18:12:41]CAPDU: 80 13 00 00 [18:12:41]Write to MH i2c: E2 08 00 D9 1B 80 13 00 00 00 00 00 00 70 [18:12:41]Write i2c OK [18:12:41]MH_I2C_Read... [18:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:41]Read from MH i2c: E2 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 62 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 62 00 D9 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [18:12:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:41]wFMCommunicate OK [18:12:41]SAM_PROTO_GetFieldsCounters done [18:12:41]requested_item shift.num is exist - process it [18:12:41]requested_item shift.opened is exist - process it [18:12:41]req_shift_opened [18:12:41]FM_GetShiftState [18:12:41]SAM_PROTO_GetShiftState [18:12:41]wFMCommunicate request_size=4 [18:12:41]MH_SAM_APDU [18:12:41]CAPDU: 80 13 01 00 [18:12:41]Write to MH i2c: E2 08 00 DA 1B 80 13 01 00 00 00 00 00 72 [18:12:41]Write i2c OK [18:12:41]MH_I2C_Read... [18:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:41]Read from MH i2c: E2 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 0E 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 0E 00 DA 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5A [18:12:41]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:12:41]wFMCommunicate OK [18:12:41]SAM_PROTO_GetShiftState done [18:12:41]FM_GetShiftState done [18:12:41]req_shift_opened done [18:12:41]requested_item shift.open_date is exist - process it [18:12:41]req_shift_open_date [18:12:41]req_shift_open_date done [18:12:41]produce_requested_data done [18:12:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188847,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:12:41]process_action_free close_receipt [18:12:41]json_value_free [18:12:41]json_value_free done [18:12:41]process_json_proto returns [18:12:41]Send response to host [18:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188847,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:12:41]free response buf [18:12:41]execute_script done [18:12:41]execute_script returns [18:12:41]free content buf [18:12:41]Sock 9.Close socket [18:12:41]Sock 9.Thread stoped [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:26]accept exits with 7 [18:13:26]New connection [18:13:26]New thread 3067207012 created [18:13:26]Thread 3067350372 joined [18:13:26]Waiting for new connection... [18:13:26] Sock 7.Parse request [18:13:26]Sock 7.Check first char [18:13:26]Sock 7.First char is OK [18:13:26]request: POST /json_proto HTTP/1.0 [18:13:26]Method: POST [18:13:26]URL: /json_proto [18:13:26]Method is POST - this is cgi request [18:13:26]url: /json_proto [18:13:26]query_string will be loaded in cgi processing [18:13:26]execute_cgi json_proto POST (null) [18:13:26]execute_cgi path=json_proto method=POST [18:13:26]POST find Content-Length [18:13:26]Host: 172.17.42.131:8080 [18:13:26]Content-Length: 679 [18:13:26]Content-Type: application/json [18:13:26] [18:13:26]POST finish read [18:13:26]Found Content-Length = 679 [18:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:26]execute_script... [18:13:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:26]POST & json_proto [18:13:26]process_json_proto [18:13:26]json parsed OK: [18:13:26]protocol is kg_v1.0 [18:13:26]action value=close_receipt [18:13:26]process_action close_receipt [18:13:26]cmd_close_receipt [18:13:26]MH_GetDate [18:13:26]Write to MH i2c: F0 00 00 DB 1B E5 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: F0 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: F0 09 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: F0 09 00 DB 1B 00 C7 3C 19 67 A0 18 CA 66 59 [18:13:26]GetLastDocTimeStamp 1729707158 [18:13:26]current date 1729707207 [18:13:26]FM_GetShiftState [18:13:26]SAM_PROTO_GetShiftState [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 13 01 00 [18:13:26]Write to MH i2c: E2 08 00 DC 1B 80 13 01 00 00 00 00 00 74 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0E 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0E 00 DC 1B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5C [18:13:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:13:26]wFMCommunicate OK [18:13:26]SAM_PROTO_GetShiftState done [18:13:26]FM_GetShiftState done [18:13:26]opened in 1729642525 [18:13:26]opened+sec_in_day 1729728925 [18:13:26]quantity*price = 200025 [18:13:26]sum+1 = 200026 [18:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 306 23.10.2024 18:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188848 ФПД: 1548710082128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181327&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188848&fm=1548710082128&tin=02508201610067®Number=0000000000100030&sum=200000 [18:13:27]StoreToDocumentArchive [18:13:27]shift 462 fd 188848 [18:13:27]save to /storage/0462/doc_00188848 [18:13:27]save last doc name /storage/0462/doc_00188848 to /storage/kkm_last_doc_name [18:13:27]save OK [18:13:27]Clear old archive folders... [18:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:13:27]tlvbuf is B6E09500 [18:13:27]SAM_PROTO_ClearQueue [18:13:27]wFMCommunicate request_size=4 [18:13:27]MH_SAM_APDU [18:13:27]CAPDU: 80 09 00 00 [18:13:27]Write to MH i2c: E2 08 00 E9 1B 80 09 00 00 00 00 00 00 76 [18:13:27]Write i2c OK [18:13:27]MH_I2C_Read... [18:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:27]Read from MH i2c: E2 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: E2 03 00 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: E2 03 00 E9 1B 00 90 00 78 [18:13:27]RAPDU: 90 00 [18:13:27]wFMCommunicate OK [18:13:27]SAM_PROTO_ClearQueue done [18:13:27]KKMCreateOFDPacket [18:13:27]OFDProtocolAddRootSTLVToBuf [18:13:27]FM_MakeSignedData [18:13:27]FM_MakeSignedData [18:13:27]SAM_PROTO_SignData [18:13:27]wFMCommunicate request_size=4 [18:13:27]MH_SAM_APDU [18:13:27]CAPDU: 80 0D 01 02 [18:13:27]Write to MH i2c: E2 08 00 EA 1B 80 0D 01 02 00 00 00 00 7E [18:13:27]Write i2c OK [18:13:27]MH_I2C_Read... [18:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:27]Read from MH i2c: E2 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: E2 03 00 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: E2 03 00 EA 1B 00 90 00 79 [18:13:27]RAPDU: 90 00 [18:13:27]wFMCommunicate OK [18:13:27]wFMCommunicate request_size=255 [18:13:27]MH_SAM_APDU [18:13:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 C7 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E1 02 00 35 04 06 00 01 68 96 50 [18:13:27]Write to MH i2c: E2 02 01 EB 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 C7 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E1 02 00 35 04 06 00 01 68 96 50 00 00 3E [18:13:27]Write i2c OK [18:13:27]MH_I2C_Read... [18:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:28]Read from MH i2c: E2 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: E2 03 00 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: E2 03 00 EB 1B 00 90 00 7A [18:13:28]RAPDU: 90 00 [18:13:28]wFMCommunicate OK [18:13:28]wFMCommunicate request_size=7 [18:13:28]MH_SAM_APDU [18:13:28]CAPDU: 80 0D 02 02 02 76 50 [18:13:28]Write to MH i2c: E2 0A 00 EC 1B 80 0D 02 02 02 00 76 50 00 00 4B [18:13:28]Write i2c OK [18:13:28]MH_I2C_Read... [18:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:28]Read from MH i2c: E2 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: E2 03 00 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: E2 03 00 EC 1B 00 90 00 7B [18:13:28]RAPDU: 90 00 [18:13:28]wFMCommunicate OK [18:13:28]wFMCommunicate request_size=4 [18:13:28]MH_SAM_APDU [18:13:28]CAPDU: 80 0D 03 02 [18:13:28]Write to MH i2c: E2 08 00 ED 1B 80 0D 03 02 00 00 00 00 83 [18:13:28]Write i2c OK [18:13:28]MH_I2C_Read... [18:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:28]Read from MH i2c: E2 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: E2 0B 00 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: E2 0B 00 ED 1B 00 9F 6A C3 B1 1C 55 19 F2 90 00 7D [18:13:28]RAPDU: 9F 6A C3 B1 1C 55 19 F2 90 00 [18:13:28]wFMCommunicate OK [18:13:28]SAM_PROTO_SignData done [18:13:28]FM_MakeSignedData done [18:13:28]CreateOFDProtocolMessage [18:13:28]wFMCommunicate request_size=4 [18:13:28]MH_SAM_APDU [18:13:28]CAPDU: 80 11 00 00 [18:13:28]Write to MH i2c: E2 08 00 EE 1B 80 11 00 00 00 00 00 00 83 [18:13:28]Write i2c OK [18:13:28]MH_I2C_Read... [18:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:28]Read from MH i2c: E2 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: E2 17 00 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: E2 17 00 EE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [18:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:13:28]wFMCommunicate OK [18:13:28]CreateOFDProtocolMessage done [18:13:28]OFDSenderStorePacket 188848 [18:13:28]StoreOFDPacket docnum=188848 [18:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 72 E0 04 01 B9 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 C7 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E1 02 00 35 04 06 00 01 68 96 50 76 50 9F 6A C3 B1 1C 55 19 F2 [18:13:28]CheckFolder [18:13:28]dirname=/storage/ofd_packets [18:13:28]CheckFolder done [18:13:28]ProducePacketName [18:13:28]name=ofd_packets/00188848 [18:13:28]NVStorageSaveData ofd_packets/00188848 [18:13:28]File name is /storage/ofd_packets/00188848 [18:13:28]Write 298 bytes [18:13:28]NVStorageSaveData done [18:13:28]OFDSenderStorePacket done [18:13:28]KKMCreateOFDPacket done [18:13:28]NVStorageSaveData kkm_last_timestamp [18:13:28]File name is /storage/kkm_last_timestamp [18:13:28]Write 4 bytes [18:13:28]NVStorageSaveData done [18:13:28]ExternCall_PrintAddStr [18:13:28]wPrintStart [18:13:28]Write to MH i2c: 01 00 00 EF 1B 0A [18:13:28]Write i2c OK [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: 01 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: 01 07 00 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: 01 07 00 EF 1B 00 00 00 00 00 FF 0F 1F [18:13:28]RasterBufferAndPrint [18:13:28]line Счет N : (1)210909 [18:13:28]line ИНН: 02508201610067 [18:13:28]line Контрольно-Кассовый Чек [18:13:28]line ПРОДАЖА [18:13:28]line ТРК (МРК, ГНК) : 51 [18:13:28]line Товар: 2710194210 [18:13:28]line ДТ-К-5 [18:13:28]line 26.250 * 76.20 [18:13:28]line = 2000.25 [18:13:28]line НДС 12% НСП 1% [18:13:28]line > о реализуемом товаре [18:13:28]line ОКРУГЛЕНИЕ: -0.25 [18:13:28]line ИТОГО: 2000.00 [18:13:28]line Внесено: 2000.00 [18:13:28]line СДАЧА: 0.00 [18:13:28]line НСП 1% : 17.70 [18:13:28]line НДС 12% : 212.42 [18:13:28]line Наличными: 2000.00 [18:13:28]line Безнал.: 0.00 [18:13:28]line Место: АЗС № 86 "Партнер Нефть" [18:13:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:13:28]line СНО: Общий режим [18:13:28]line Чек 306 23.10.2024 18:13 [18:13:28]line Смена: 462 ФФД: 1.0 [18:13:28]line ЗНМ: 0300000155 [18:13:28]line РНМ: 0000000000100030 [18:13:28]line Версия ККМ: 001 [18:13:28]line ФМ: 0000000000965340 [18:13:28]line ФД: 188848 [18:13:28]line ФПД: 1548710082128 [18:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181327&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188848&fm=1548710082128&tin=02508201610067®Number=0000000000100030&sum=200000 [18:13:28]written 0, free lines is 4095 [18:13:28]OFD Sender: Processing packet 188848 [packets to send 1062, broken 1061] [18:13:28]ProducePacketName [18:13:28]name=ofd_packets/00188848 [18:13:28]OFD Sender: To server: pG, [18:13:28]CommunicateWithHost lk.salyk.kg:30040 [18:13:28]ConnectInit lk.salyk.kg [18:13:28]Connected sock=10 [18:13:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 72 E0 04 01 B9 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 C7 3C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E1 02 00 35 04 06 00 01 68 96 50 76 50 9F 6A C3 B1 1C 55 19 F2 [18:13:28]Write to MH i2c: 01 00 00 1A 1C 36 [18:13:28]Write i2c OK [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: 01 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: 01 07 00 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: 01 07 00 1A 1C 00 00 00 00 00 5C 0C A5 [18:13:28]RasterBufferAndPrint [18:13:28]line [18:13:28]line [18:13:28]line [18:13:28]line [18:13:28]line [18:13:28]written 0, free lines is 3167 [18:13:28]MH_Cut [18:13:28]Write to MH i2c: D1 01 00 21 1C 01 0F [18:13:28]Write i2c OK [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: D1 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: D1 01 00 [18:13:28]MH_I2C_Read... [18:13:28]Read from MH i2c: D1 01 00 21 1C 00 0E [18:13:28]Write to MH i2c: 01 00 00 22 1C 3E [18:13:28]Write i2c OK [18:13:28]MH_I2C_Read... [18:13:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DE 64 47 00 43 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E1 02 00 F4 03 04 00 B2 E6 18 67 B6 04 01 00 00 42 6C DA 5D 55 4B DA E1 [18:13:28]CommunicateWithHost err = 0 [18:13:28]CheckOFDResponse [18:13:28]1017 (14) - 77093643461234 [18:13:28]1041 (16) - 0000000000965340 [18:13:28]1040 (4) - 188848 [18:13:28]1012 (4) - 23.10.2024 12:06 [18:13:28]1206 (1) - 0 [18:13:28]OFD Sender: Remove packet 188848 [18:13:28]ProducePacketName [18:13:28]name=ofd_packets/00188848 [18:13:28]NVStorageDeleteData [18:13:29]OFD Sender: No OFD packet to send [18:13:29]*** Cut start [18:13:29]*** Partial cut [18:13:29]*** CUTSNS_PIN = 1 [18:13:30]*** CUTSNS_PIN = 0 [18:13:30]*** Brake cut motor [18:13:30]Read from MH i2c: 01 [18:13:30]MH_I2C_Read... [18:13:30]*** Stop cut motor [18:13:30]*** Cut end [18:13:30]Read from MH i2c: 01 07 00 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: 01 07 00 22 1C 00 00 00 00 00 FF 0F 53 [18:13:30]process_action close_receipt done [18:13:30]requested_data is exist [18:13:30]produce_requested_data [18:13:30]requested_item fm.sn is exist - process it [18:13:30]wFMCommunicate request_size=4 [18:13:30]MH_SAM_APDU [18:13:30]CAPDU: 80 11 00 00 [18:13:30]Write to MH i2c: E2 08 00 23 1C 80 11 00 00 00 00 00 00 B9 [18:13:30]Write i2c OK [18:13:30]MH_I2C_Read... [18:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:30]Read from MH i2c: E2 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 17 00 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 17 00 23 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [18:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:13:30]wFMCommunicate OK [18:13:30]requested_item fd.num is exist - process it [18:13:30]SAM_PROTO_GetFieldsCounters [18:13:30]wFMCommunicate request_size=4 [18:13:30]MH_SAM_APDU [18:13:30]CAPDU: 80 13 00 00 [18:13:30]Write to MH i2c: E2 08 00 24 1C 80 13 00 00 00 00 00 00 BC [18:13:30]Write i2c OK [18:13:30]MH_I2C_Read... [18:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:30]Read from MH i2c: E2 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 62 00 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 62 00 24 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [18:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:30]wFMCommunicate OK [18:13:30]SAM_PROTO_GetFieldsCounters done [18:13:30]requested_item shift.num is exist - process it [18:13:30]requested_item shift.opened is exist - process it [18:13:30]req_shift_opened [18:13:30]FM_GetShiftState [18:13:30]SAM_PROTO_GetShiftState [18:13:30]wFMCommunicate request_size=4 [18:13:30]MH_SAM_APDU [18:13:30]CAPDU: 80 13 01 00 [18:13:30]Write to MH i2c: E2 08 00 25 1C 80 13 01 00 00 00 00 00 BE [18:13:30]Write i2c OK [18:13:30]MH_I2C_Read... [18:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:30]Read from MH i2c: E2 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 0E 00 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 0E 00 25 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A6 [18:13:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:13:30]wFMCommunicate OK [18:13:30]SAM_PROTO_GetShiftState done [18:13:30]FM_GetShiftState done [18:13:30]req_shift_opened done [18:13:30]requested_item shift.open_date is exist - process it [18:13:30]req_shift_open_date [18:13:30]req_shift_open_date done [18:13:30]produce_requested_data done [18:13:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188848,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:13:30]process_action_free close_receipt [18:13:30]json_value_free [18:13:30]json_value_free done [18:13:30]process_json_proto returns [18:13:30]Send response to host [18:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188848,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:13:30]free response buf [18:13:30]execute_script done [18:13:30]execute_script returns [18:13:30]free content buf [18:13:30]Sock 7.Close socket [18:13:30]Sock 7.Thread stoped [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:35]accept exits with 9 [18:15:35]New connection [18:15:35]New thread 3067350372 created [18:15:35]Thread 3067207012 joined [18:15:35]Waiting for new connection... [18:15:35] Sock 9.Parse request [18:15:35]Sock 9.Check first char [18:15:35]Sock 9.First char is OK [18:15:35]request: POST /json_proto HTTP/1.0 [18:15:35]Method: POST [18:15:35]URL: /json_proto [18:15:35]Method is POST - this is cgi request [18:15:35]url: /json_proto [18:15:35]query_string will be loaded in cgi processing [18:15:35]execute_cgi json_proto POST (null) [18:15:35]execute_cgi path=json_proto method=POST [18:15:35]POST find Content-Length [18:15:35]Host: 172.17.42.131:8080 [18:15:35]Content-Length: 688 [18:15:35]Content-Type: application/json [18:15:35] [18:15:35]POST finish read [18:15:35]Found Content-Length = 688 [18:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:35]execute_script... [18:15:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:35]POST & json_proto [18:15:35]process_json_proto [18:15:35]json parsed OK: [18:15:35]protocol is kg_v1.0 [18:15:35]action value=close_receipt [18:15:35]process_action close_receipt [18:15:35]cmd_close_receipt [18:15:35]MH_GetDate [18:15:35]Write to MH i2c: F0 00 00 26 1C 31 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: F0 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: F0 09 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: F0 09 00 26 1C 00 48 3D 19 67 A0 18 CA 66 27 [18:15:35]GetLastDocTimeStamp 1729707207 [18:15:35]current date 1729707336 [18:15:35]FM_GetShiftState [18:15:35]SAM_PROTO_GetShiftState [18:15:35]wFMCommunicate request_size=4 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 13 01 00 [18:15:35]Write to MH i2c: E2 08 00 27 1C 80 13 01 00 00 00 00 00 C0 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 0E 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 0E 00 27 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A8 [18:15:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:15:35]wFMCommunicate OK [18:15:35]SAM_PROTO_GetShiftState done [18:15:35]FM_GetShiftState done [18:15:35]opened in 1729642525 [18:15:35]opened+sec_in_day 1729728925 [18:15:35]quantity*price = 100051 [18:15:35]sum+1 = 100052 [18:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 307 23.10.2024 18:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188849 ФПД: 130840808077444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188849&fm=130840808077444&tin=02508201610067®Number=0000000000100030&sum=100000 [18:15:36]StoreToDocumentArchive [18:15:36]shift 462 fd 188849 [18:15:36]save to /storage/0462/doc_00188849 [18:15:36]save last doc name /storage/0462/doc_00188849 to /storage/kkm_last_doc_name [18:15:36]save OK [18:15:36]Clear old archive folders... [18:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:15:36]tlvbuf is 011C9440 [18:15:36]SAM_PROTO_ClearQueue [18:15:36]wFMCommunicate request_size=4 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 09 00 00 [18:15:36]Write to MH i2c: E2 08 00 34 1C 80 09 00 00 00 00 00 00 C2 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 34 1C 00 90 00 C4 [18:15:36]RAPDU: 90 00 [18:15:36]wFMCommunicate OK [18:15:36]SAM_PROTO_ClearQueue done [18:15:36]KKMCreateOFDPacket [18:15:36]OFDProtocolAddRootSTLVToBuf [18:15:36]FM_MakeSignedData [18:15:36]FM_MakeSignedData [18:15:36]SAM_PROTO_SignData [18:15:36]wFMCommunicate request_size=4 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 0D 01 02 [18:15:36]Write to MH i2c: E2 08 00 35 1C 80 0D 01 02 00 00 00 00 CA [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 35 1C 00 90 00 C5 [18:15:36]RAPDU: 90 00 [18:15:36]wFMCommunicate OK [18:15:36]wFMCommunicate request_size=255 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 48 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E1 02 [18:15:36]Write to MH i2c: E2 02 01 36 1C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 48 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E1 02 00 00 C3 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 36 1C 00 90 00 C6 [18:15:36]RAPDU: 90 00 [18:15:36]wFMCommunicate OK [18:15:36]wFMCommunicate request_size=16 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 76 FF BF E3 38 84 [18:15:36]Write to MH i2c: E2 13 00 37 1C 80 0D 02 02 0B 00 00 35 04 06 00 76 FF BF E3 38 84 00 00 F5 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:37]Read from MH i2c: E2 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 03 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 03 00 37 1C 00 90 00 C7 [18:15:37]RAPDU: 90 00 [18:15:37]wFMCommunicate OK [18:15:37]wFMCommunicate request_size=4 [18:15:37]MH_SAM_APDU [18:15:37]CAPDU: 80 0D 03 02 [18:15:37]Write to MH i2c: E2 08 00 38 1C 80 0D 03 02 00 00 00 00 CF [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:37]Read from MH i2c: E2 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 0B 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 0B 00 38 1C 00 74 DF 2E 0E 89 A7 88 9B 90 00 B2 [18:15:37]RAPDU: 74 DF 2E 0E 89 A7 88 9B 90 00 [18:15:37]wFMCommunicate OK [18:15:37]SAM_PROTO_SignData done [18:15:37]FM_MakeSignedData done [18:15:37]CreateOFDProtocolMessage [18:15:37]wFMCommunicate request_size=4 [18:15:37]MH_SAM_APDU [18:15:37]CAPDU: 80 11 00 00 [18:15:37]Write to MH i2c: E2 08 00 39 1C 80 11 00 00 00 00 00 00 CF [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:37]Read from MH i2c: E2 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 17 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 17 00 39 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [18:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:37]wFMCommunicate OK [18:15:37]CreateOFDProtocolMessage done [18:15:37]OFDSenderStorePacket 188849 [18:15:37]StoreOFDPacket docnum=188849 [18:15:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A7 EF 0D 01 BF 6B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 48 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E1 02 00 35 04 06 00 76 FF BF E3 38 84 74 DF 2E 0E 89 A7 88 9B [18:15:37]CheckFolder [18:15:37]dirname=/storage/ofd_packets [18:15:37]CheckFolder done [18:15:37]ProducePacketName [18:15:37]name=ofd_packets/00188849 [18:15:37]NVStorageSaveData ofd_packets/00188849 [18:15:37]File name is /storage/ofd_packets/00188849 [18:15:37]Write 307 bytes [18:15:37]NVStorageSaveData done [18:15:37]OFDSenderStorePacket done [18:15:37]KKMCreateOFDPacket done [18:15:37]NVStorageSaveData kkm_last_timestamp [18:15:37]File name is /storage/kkm_last_timestamp [18:15:37]Write 4 bytes [18:15:37]NVStorageSaveData done [18:15:37]ExternCall_PrintAddStr [18:15:37]wPrintStart [18:15:37]Write to MH i2c: 01 00 00 3A 1C 56 [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 3A 1C 00 00 00 00 00 FF 0F 6B [18:15:37]RasterBufferAndPrint [18:15:37]line Счет N : (1)210911 [18:15:37]line ИНН: 02508201610067 [18:15:37]line Контрольно-Кассовый Чек [18:15:37]line ПРОДАЖА [18:15:37]line ТРК (МРК, ГНК) : 11 [18:15:37]line Товар: 2710194210 [18:15:37]line D-ENERGY ДТ-К-5 [18:15:37]line 12.960 * 77.20 [18:15:37]line = 1000.51 [18:15:37]line НДС 12% НСП 1% [18:15:37]line > о реализуемом товаре [18:15:37]line ОКРУГЛЕНИЕ: -0.51 [18:15:37]line ИТОГО: 1000.00 [18:15:37]line Внесено: 1000.00 [18:15:37]line СДАЧА: 0.00 [18:15:37]line НСП 1% : 8.85 [18:15:37]line НДС 12% : 106.25 [18:15:37]line Наличными: 1000.00 [18:15:37]line Безнал.: 0.00 [18:15:37]line Место: АЗС № 86 "Партнер Нефть" [18:15:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:15:37]line СНО: Общий режим [18:15:37]line Чек 307 23.10.2024 18:15 [18:15:37]line Смена: 462 ФФД: 1.0 [18:15:37]line ЗНМ: 0300000155 [18:15:37]line РНМ: 0000000000100030 [18:15:37]line Версия ККМ: 001 [18:15:37]line ФМ: 0000000000965340 [18:15:37]line ФД: 188849 [18:15:37]line ФПД: 130840808077444 [18:15:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188849&fm=130840808077444&tin=02508201610067®Number=0000000000100030&sum=100000 [18:15:37]written 0, free lines is 4095 [18:15:37]OFD Sender: Processing packet 188849 [packets to send 1062, broken 1061] [18:15:37]ProducePacketName [18:15:37]name=ofd_packets/00188849 [18:15:37]OFD Sender: To server: pG, [18:15:37]CommunicateWithHost lk.salyk.kg:30040 [18:15:37]ConnectInit lk.salyk.kg [18:15:37]Write to MH i2c: 01 00 00 65 1C 81 [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 65 1C 00 00 00 00 00 55 0C E9 [18:15:37]RasterBufferAndPrint [18:15:37]line [18:15:37]line [18:15:37]line [18:15:37]line [18:15:37]line [18:15:37]written 0, free lines is 3161 [18:15:37]MH_Cut [18:15:37]Write to MH i2c: D1 01 00 6C 1C 01 5A [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: D1 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: D1 01 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: D1 01 00 6C 1C 00 59 [18:15:37]Write to MH i2c: 01 00 00 6D 1C 89 [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]Connected sock=10 [18:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A7 EF 0D 01 BF 6B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 48 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E1 02 00 35 04 06 00 76 FF BF E3 38 84 74 DF 2E 0E 89 A7 88 9B [18:15:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 99 C7 47 00 A6 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 36 35 33 34 30 10 04 04 00 B1 E1 02 00 F4 03 04 00 33 E7 18 67 B6 04 01 00 00 05 7B 97 FF 26 20 DC 8E [18:15:38]CommunicateWithHost err = 0 [18:15:38]CheckOFDResponse [18:15:38]1017 (14) - 77093643461234 [18:15:38]1041 (16) - 0000000000965340 [18:15:38]1040 (4) - 188849 [18:15:38]1012 (4) - 23.10.2024 12:08 [18:15:38]1206 (1) - 0 [18:15:38]OFD Sender: Remove packet 188849 [18:15:38]ProducePacketName [18:15:38]name=ofd_packets/00188849 [18:15:38]NVStorageDeleteData [18:15:38]OFD Sender: No OFD packet to send [18:15:38]*** Cut start [18:15:38]*** Partial cut [18:15:38]*** CUTSNS_PIN = 1 [18:15:38]*** CUTSNS_PIN = 0 [18:15:39]*** Brake cut motor [18:15:39]Read from MH i2c: 01 [18:15:39]MH_I2C_Read... [18:15:39]*** Stop cut motor [18:15:39]*** Cut end [18:15:39]Read from MH i2c: 01 07 00 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: 01 07 00 6D 1C 00 00 00 00 00 FF 0F 9E [18:15:39]process_action close_receipt done [18:15:39]requested_data is exist [18:15:39]produce_requested_data [18:15:39]requested_item fm.sn is exist - process it [18:15:39]wFMCommunicate request_size=4 [18:15:39]MH_SAM_APDU [18:15:39]CAPDU: 80 11 00 00 [18:15:39]Write to MH i2c: E2 08 00 6E 1C 80 11 00 00 00 00 00 00 04 [18:15:39]Write i2c OK [18:15:39]MH_I2C_Read... [18:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:39]Read from MH i2c: E2 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 17 00 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 17 00 6E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [18:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:39]wFMCommunicate OK [18:15:39]requested_item fd.num is exist - process it [18:15:39]SAM_PROTO_GetFieldsCounters [18:15:39]wFMCommunicate request_size=4 [18:15:39]MH_SAM_APDU [18:15:39]CAPDU: 80 13 00 00 [18:15:39]Write to MH i2c: E2 08 00 6F 1C 80 13 00 00 00 00 00 00 07 [18:15:39]Write i2c OK [18:15:39]MH_I2C_Read... [18:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:39]Read from MH i2c: E2 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 62 00 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 62 00 6F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [18:15:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:39]wFMCommunicate OK [18:15:39]SAM_PROTO_GetFieldsCounters done [18:15:39]requested_item shift.num is exist - process it [18:15:39]requested_item shift.opened is exist - process it [18:15:39]req_shift_opened [18:15:39]FM_GetShiftState [18:15:39]SAM_PROTO_GetShiftState [18:15:39]wFMCommunicate request_size=4 [18:15:39]MH_SAM_APDU [18:15:39]CAPDU: 80 13 01 00 [18:15:39]Write to MH i2c: E2 08 00 70 1C 80 13 01 00 00 00 00 00 09 [18:15:39]Write i2c OK [18:15:39]MH_I2C_Read... [18:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:39]Read from MH i2c: E2 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 0E 00 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 0E 00 70 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F1 [18:15:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:15:39]wFMCommunicate OK [18:15:39]SAM_PROTO_GetShiftState done [18:15:39]FM_GetShiftState done [18:15:39]req_shift_opened done [18:15:39]requested_item shift.open_date is exist - process it [18:15:39]req_shift_open_date [18:15:39]req_shift_open_date done [18:15:39]produce_requested_data done [18:15:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188849,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:15:39]process_action_free close_receipt [18:15:39]json_value_free [18:15:39]json_value_free done [18:15:39]process_json_proto returns [18:15:39]Send response to host [18:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188849,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:15:39]free response buf [18:15:39]execute_script done [18:15:39]execute_script returns [18:15:39]free content buf [18:15:39]Sock 9.Close socket [18:15:39]Sock 9.Thread stoped [18:15:40]accept exits with 7 [18:15:40]New connection [18:15:40]New thread 3067207012 created [18:15:40]Thread 3067350372 joined [18:15:40]Waiting for new connection... [18:15:40] Sock 7.Parse request [18:15:40]Sock 7.Check first char [18:15:40]Sock 7.First char is OK [18:15:40]request: POST /json_proto HTTP/1.0 [18:15:40]Method: POST [18:15:40]URL: /json_proto [18:15:40]Method is POST - this is cgi request [18:15:40]url: /json_proto [18:15:40]query_string will be loaded in cgi processing [18:15:40]execute_cgi json_proto POST (null) [18:15:40]execute_cgi path=json_proto method=POST [18:15:40]POST find Content-Length [18:15:40]Host: 172.17.42.131:8080 [18:15:40]Content-Length: 682 [18:15:40]Content-Type: application/json [18:15:40] [18:15:40]POST finish read [18:15:40]Found Content-Length = 682 [18:15:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:40]execute_script... [18:15:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:40]POST & json_proto [18:15:40]process_json_proto [18:15:40]json parsed OK: [18:15:40]protocol is kg_v1.0 [18:15:40]action value=close_receipt [18:15:40]process_action close_receipt [18:15:40]cmd_close_receipt [18:15:40]MH_GetDate [18:15:40]Write to MH i2c: F0 00 00 71 1C 7C [18:15:40]Write i2c OK [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: F0 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: F0 09 00 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: F0 09 00 71 1C 00 4D 3D 19 67 A0 18 CA 66 77 [18:15:40]GetLastDocTimeStamp 1729707336 [18:15:40]current date 1729707341 [18:15:40]FM_GetShiftState [18:15:40]SAM_PROTO_GetShiftState [18:15:40]wFMCommunicate request_size=4 [18:15:40]MH_SAM_APDU [18:15:40]CAPDU: 80 13 01 00 [18:15:40]Write to MH i2c: E2 08 00 72 1C 80 13 01 00 00 00 00 00 0B [18:15:40]Write i2c OK [18:15:40]MH_I2C_Read... [18:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:40]Read from MH i2c: E2 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: E2 0E 00 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: E2 0E 00 72 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F3 [18:15:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:15:40]wFMCommunicate OK [18:15:40]SAM_PROTO_GetShiftState done [18:15:40]FM_GetShiftState done [18:15:40]opened in 1729642525 [18:15:40]opened+sec_in_day 1729728925 [18:15:40]quantity*price = 100021 [18:15:40]sum+1 = 100023 [18:15:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 308 23.10.2024 18:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188850 ФПД: 145312060714380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188850&fm=145312060714380&tin=02508201610067®Number=0000000000100030&sum=100000 [18:15:41]StoreToDocumentArchive [18:15:41]shift 462 fd 188850 [18:15:41]save to /storage/0462/doc_00188850 [18:15:41]save last doc name /storage/0462/doc_00188850 to /storage/kkm_last_doc_name [18:15:41]save OK [18:15:41]Clear old archive folders... [18:15:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:41]tlvbuf is B6F22A10 [18:15:41]SAM_PROTO_ClearQueue [18:15:41]wFMCommunicate request_size=4 [18:15:41]MH_SAM_APDU [18:15:41]CAPDU: 80 09 00 00 [18:15:41]Write to MH i2c: E2 08 00 7F 1C 80 09 00 00 00 00 00 00 0D [18:15:41]Write i2c OK [18:15:41]MH_I2C_Read... [18:15:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:41]Read from MH i2c: E2 [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: E2 03 00 [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: E2 03 00 7F 1C 00 90 00 0F [18:15:41]RAPDU: 90 00 [18:15:41]wFMCommunicate OK [18:15:41]SAM_PROTO_ClearQueue done [18:15:41]KKMCreateOFDPacket [18:15:41]OFDProtocolAddRootSTLVToBuf [18:15:41]FM_MakeSignedData [18:15:41]FM_MakeSignedData [18:15:41]SAM_PROTO_SignData [18:15:41]wFMCommunicate request_size=4 [18:15:41]MH_SAM_APDU [18:15:41]CAPDU: 80 0D 01 02 [18:15:41]Write to MH i2c: E2 08 00 80 1C 80 0D 01 02 00 00 00 00 15 [18:15:41]Write i2c OK [18:15:41]MH_I2C_Read... [18:15:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:41]Read from MH i2c: E2 [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: E2 03 00 [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: E2 03 00 80 1C 00 90 00 10 [18:15:41]RAPDU: 90 00 [18:15:41]wFMCommunicate OK [18:15:41]wFMCommunicate request_size=255 [18:15:41]MH_SAM_APDU [18:15:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 4D 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E1 02 00 35 04 06 00 84 [18:15:41]Write to MH i2c: E2 02 01 81 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 4D 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E1 02 00 35 04 06 00 84 00 00 CC [18:15:41]Write i2c OK [18:15:41]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 81 1C 00 90 00 11 [18:15:42]RAPDU: 90 00 [18:15:42]wFMCommunicate OK [18:15:42]wFMCommunicate request_size=10 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 0D 02 02 05 29 19 C2 AD 8C [18:15:42]Write to MH i2c: E2 0D 00 82 1C 80 0D 02 02 05 00 29 19 C2 AD 8C 00 00 5F [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 82 1C 00 90 00 12 [18:15:42]RAPDU: 90 00 [18:15:42]wFMCommunicate OK [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 0D 03 02 [18:15:42]Write to MH i2c: E2 08 00 83 1C 80 0D 03 02 00 00 00 00 1A [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 0B 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 0B 00 83 1C 00 60 A1 D3 B9 42 A4 BF 48 90 00 95 [18:15:42]RAPDU: 60 A1 D3 B9 42 A4 BF 48 90 00 [18:15:42]wFMCommunicate OK [18:15:42]SAM_PROTO_SignData done [18:15:42]FM_MakeSignedData done [18:15:42]CreateOFDProtocolMessage [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 11 00 00 [18:15:42]Write to MH i2c: E2 08 00 84 1C 80 11 00 00 00 00 00 00 1A [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 17 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 17 00 84 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [18:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:42]wFMCommunicate OK [18:15:42]CreateOFDProtocolMessage done [18:15:42]OFDSenderStorePacket 188850 [18:15:42]StoreOFDPacket docnum=188850 [18:15:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E 72 07 01 AE F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 4D 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E1 02 00 35 04 06 00 84 29 19 C2 AD 8C 60 A1 D3 B9 42 A4 BF 48 [18:15:42]CheckFolder [18:15:42]dirname=/storage/ofd_packets [18:15:42]CheckFolder done [18:15:42]ProducePacketName [18:15:42]name=ofd_packets/00188850 [18:15:42]NVStorageSaveData ofd_packets/00188850 [18:15:42]File name is /storage/ofd_packets/00188850 [18:15:42]Write 301 bytes [18:15:42]NVStorageSaveData done [18:15:42]OFDSenderStorePacket done [18:15:42]KKMCreateOFDPacket done [18:15:42]NVStorageSaveData kkm_last_timestamp [18:15:42]File name is /storage/kkm_last_timestamp [18:15:42]Write 4 bytes [18:15:42]NVStorageSaveData done [18:15:42]ExternCall_PrintAddStr [18:15:42]wPrintStart [18:15:42]Write to MH i2c: 01 00 00 85 1C A1 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: 01 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: 01 07 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: 01 07 00 85 1C 00 00 00 00 00 FF 0F B6 [18:15:42]RasterBufferAndPrint [18:15:42]line Счет N : (1)210910 [18:15:42]line ИНН: 02508201610067 [18:15:42]line Контрольно-Кассовый Чек [18:15:42]line ПРОДАЖА [18:15:42]line ТРК (МРК, ГНК) : 43 [18:15:42]line Товар: 2710124500 [18:15:42]line Аи-95-К-3 [18:15:42]line 13.480 * 74.20 [18:15:42]line = 1000.22 [18:15:42]line НДС 12% НСП 1% [18:15:42]line > о реализуемом товаре [18:15:42]line ОКРУГЛЕНИЕ: -0.22 [18:15:42]line ИТОГО: 1000.00 [18:15:42]line Внесено: 1000.00 [18:15:42]line СДАЧА: 0.00 [18:15:42]line НСП 1% : 8.85 [18:15:42]line НДС 12% : 106.22 [18:15:42]line Наличными: 1000.00 [18:15:42]line Безнал.: 0.00 [18:15:42]line Место: АЗС № 86 "Партнер Нефть" [18:15:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:15:42]line СНО: Общий режим [18:15:42]line Чек 308 23.10.2024 18:15 [18:15:42]line Смена: 462 ФФД: 1.0 [18:15:42]line ЗНМ: 0300000155 [18:15:42]line РНМ: 0000000000100030 [18:15:42]line Версия ККМ: 001 [18:15:42]line ФМ: 0000000000965340 [18:15:42]line ФД: 188850 [18:15:42]line ФПД: 145312060714380 [18:15:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188850&fm=145312060714380&tin=02508201610067®Number=0000000000100030&sum=100000 [18:15:42]OFD Sender: Processing packet 188850 [packets to send 1062, broken 1061] [18:15:42]ProducePacketName [18:15:42]name=ofd_packets/00188850 [18:15:42]OFD Sender: To server: pG, [18:15:42]CommunicateWithHost lk.salyk.kg:30040 [18:15:42]ConnectInit lk.salyk.kg [18:15:42]written 0, free lines is 4095 [18:15:43]Write to MH i2c: 01 00 00 B0 1C CC [18:15:43]Write i2c OK [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: 01 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: 01 07 00 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: 01 07 00 B0 1C 00 00 00 00 00 64 0C 43 [18:15:43]RasterBufferAndPrint [18:15:43]line [18:15:43]line [18:15:43]line [18:15:43]line [18:15:43]line [18:15:43]written 0, free lines is 3179 [18:15:43]MH_Cut [18:15:43]Write to MH i2c: D1 01 00 B7 1C 01 A5 [18:15:43]Write i2c OK [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: D1 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: D1 01 00 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: D1 01 00 B7 1C 00 A4 [18:15:43]Write to MH i2c: 01 00 00 B8 1C D4 [18:15:43]Connected sock=9 [18:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E 72 07 01 AE F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 4D 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E1 02 00 35 04 06 00 84 29 19 C2 AD 8C 60 A1 D3 B9 42 A4 BF 48 [18:15:43]Write i2c OK [18:15:43]MH_I2C_Read... [18:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FB C0 47 00 21 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E1 02 00 F4 03 04 00 38 E7 18 67 B6 04 01 00 00 AC 18 81 6F 0E DA F7 79 [18:15:43]CommunicateWithHost err = 0 [18:15:43]CheckOFDResponse [18:15:43]1017 (14) - 77093643461234 [18:15:43]1041 (16) - 0000000000965340 [18:15:43]1040 (4) - 188850 [18:15:43]1012 (4) - 23.10.2024 12:08 [18:15:43]1206 (1) - 0 [18:15:43]OFD Sender: Remove packet 188850 [18:15:43]ProducePacketName [18:15:43]name=ofd_packets/00188850 [18:15:43]NVStorageDeleteData [18:15:44]OFD Sender: No OFD packet to send [18:15:44]*** Cut start [18:15:44]*** Partial cut [18:15:44]*** CUTSNS_PIN = 1 [18:15:44]*** CUTSNS_PIN = 0 [18:15:44]*** Brake cut motor [18:15:45]Read from MH i2c: 01 *** Stop cut motor [18:15:45] [18:15:45]*** Cut end [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: 01 07 00 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 FF 0F E9 [18:15:45]process_action close_receipt done [18:15:45]requested_data is exist [18:15:45]produce_requested_data [18:15:45]requested_item fm.sn is exist - process it [18:15:45]wFMCommunicate request_size=4 [18:15:45]MH_SAM_APDU [18:15:45]CAPDU: 80 11 00 00 [18:15:45]Write to MH i2c: E2 08 00 B9 1C 80 11 00 00 00 00 00 00 4F [18:15:45]Write i2c OK [18:15:45]MH_I2C_Read... [18:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:45]Read from MH i2c: E2 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: E2 17 00 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: E2 17 00 B9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [18:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:45]wFMCommunicate OK [18:15:45]requested_item fd.num is exist - process it [18:15:45]SAM_PROTO_GetFieldsCounters [18:15:45]wFMCommunicate request_size=4 [18:15:45]MH_SAM_APDU [18:15:45]CAPDU: 80 13 00 00 [18:15:45]Write to MH i2c: E2 08 00 BA 1C 80 13 00 00 00 00 00 00 52 [18:15:45]Write i2c OK [18:15:45]MH_I2C_Read... [18:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:45]Read from MH i2c: E2 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: E2 62 00 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: E2 62 00 BA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [18:15:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:45]wFMCommunicate OK [18:15:45]SAM_PROTO_GetFieldsCounters done [18:15:45]requested_item shift.num is exist - process it [18:15:45]requested_item shift.opened is exist - process it [18:15:45]req_shift_opened [18:15:45]FM_GetShiftState [18:15:45]SAM_PROTO_GetShiftState [18:15:45]wFMCommunicate request_size=4 [18:15:45]MH_SAM_APDU [18:15:45]CAPDU: 80 13 01 00 [18:15:45]Write to MH i2c: E2 08 00 BB 1C 80 13 01 00 00 00 00 00 54 [18:15:45]Write i2c OK [18:15:45]MH_I2C_Read... [18:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:45]Read from MH i2c: E2 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: E2 0E 00 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: E2 0E 00 BB 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3C [18:15:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:15:45]wFMCommunicate OK [18:15:45]SAM_PROTO_GetShiftState done [18:15:45]FM_GetShiftState done [18:15:45]req_shift_opened done [18:15:45]requested_item shift.open_date is exist - process it [18:15:45]req_shift_open_date [18:15:45]req_shift_open_date done [18:15:45]produce_requested_data done [18:15:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188850,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:15:45]process_action_free close_receipt [18:15:45]json_value_free [18:15:45]json_value_free done [18:15:45]process_json_proto returns [18:15:45]Send response to host [18:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188850,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:15:45]free response buf [18:15:45]execute_script done [18:15:45]execute_script returns [18:15:45]free content buf [18:15:45]Sock 7.Close socket [18:15:45]Sock 7.Thread stoped [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:03]accept exits with 10 [18:16:03]New connection [18:16:03]New thread 3067350372 created [18:16:03]Thread 3067207012 joined [18:16:03]Waiting for new connection... [18:16:03] Sock 10.Parse request [18:16:03]Sock 10.Check first char [18:16:03]Sock 10.First char is OK [18:16:03]request: POST /json_proto HTTP/1.0 [18:16:03]Method: POST [18:16:03]URL: /json_proto [18:16:03]Method is POST - this is cgi request [18:16:03]url: /json_proto [18:16:03]query_string will be loaded in cgi processing [18:16:03]execute_cgi json_proto POST (null) [18:16:03]execute_cgi path=json_proto method=POST [18:16:03]POST find Content-Length [18:16:03]Host: 172.17.42.131:8080 [18:16:03]Content-Length: 751 [18:16:03]Content-Type: application/json [18:16:03] [18:16:03]POST finish read [18:16:03]Found Content-Length = 751 [18:16:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097903", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:03]execute_script... [18:16:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097903", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:03]POST & json_proto [18:16:03]process_json_proto [18:16:03]json parsed OK: [18:16:03]protocol is kg_v1.0 [18:16:03]action value=close_receipt [18:16:03]process_action close_receipt [18:16:03]cmd_close_receipt [18:16:03]MH_GetDate [18:16:03]Write to MH i2c: F0 00 00 BC 1C C7 [18:16:03]Write i2c OK [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: F0 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: F0 09 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: F0 09 00 BC 1C 00 64 3D 19 67 A0 18 CA 66 D9 [18:16:03]GetLastDocTimeStamp 1729707341 [18:16:03]current date 1729707364 [18:16:03]FM_GetShiftState [18:16:03]SAM_PROTO_GetShiftState [18:16:03]wFMCommunicate request_size=4 [18:16:03]MH_SAM_APDU [18:16:03]CAPDU: 80 13 01 00 [18:16:03]Write to MH i2c: E2 08 00 BD 1C 80 13 01 00 00 00 00 00 56 [18:16:03]Write i2c OK [18:16:03]MH_I2C_Read... [18:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:03]Read from MH i2c: E2 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 0E 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 0E 00 BD 1C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3E [18:16:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:16:03]wFMCommunicate OK [18:16:03]SAM_PROTO_GetShiftState done [18:16:03]FM_GetShiftState done [18:16:03]opened in 1729642525 [18:16:03]opened+sec_in_day 1729728925 [18:16:03]quantity*price = 0 [18:16:03]sum+1 = 1 [18:16:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 309 23.10.2024 18:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097903 ФМ: 0000000000965340 ФД: 188851 ФПД: 223215246969554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181605&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188851&fm=223215246969554&tin=02508201610067®Number=0000000000100030&sum=0 [18:16:04]StoreToDocumentArchive [18:16:04]shift 462 fd 188851 [18:16:04]save to /storage/0462/doc_00188851 [18:16:04]save last doc name /storage/0462/doc_00188851 to /storage/kkm_last_doc_name [18:16:04]save OK [18:16:04]Clear old archive folders... [18:16:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:16:04]tlvbuf is 0111C650 [18:16:04]SAM_PROTO_ClearQueue [18:16:04]wFMCommunicate request_size=4 [18:16:04]MH_SAM_APDU [18:16:04]CAPDU: 80 09 00 00 [18:16:04]Write to MH i2c: E2 08 00 CA 1C 80 09 00 00 00 00 00 00 58 [18:16:04]Write i2c OK [18:16:04]MH_I2C_Read... [18:16:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:04]Read from MH i2c: E2 [18:16:04]MH_I2C_Read... [18:16:04]Read from MH i2c: E2 03 00 [18:16:04]MH_I2C_Read... [18:16:04]Read from MH i2c: E2 03 00 CA 1C 00 90 00 5A [18:16:04]RAPDU: 90 00 [18:16:04]wFMCommunicate OK [18:16:04]SAM_PROTO_ClearQueue done [18:16:04]KKMCreateOFDPacket [18:16:04]OFDProtocolAddRootSTLVToBuf [18:16:04]FM_MakeSignedData [18:16:04]FM_MakeSignedData [18:16:04]SAM_PROTO_SignData [18:16:04]wFMCommunicate request_size=4 [18:16:04]MH_SAM_APDU [18:16:04]CAPDU: 80 0D 01 02 [18:16:04]Write to MH i2c: E2 08 00 CB 1C 80 0D 01 02 00 00 00 00 60 [18:16:04]Write i2c OK [18:16:04]MH_I2C_Read... [18:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:04]Read from MH i2c: E2 [18:16:04]MH_I2C_Read... [18:16:04]Read from MH i2c: E2 03 00 [18:16:04]MH_I2C_Read... [18:16:04]Read from MH i2c: E2 03 00 CB 1C 00 90 00 5B [18:16:04]RAPDU: 90 00 [18:16:04]wFMCommunicate OK [18:16:04]wFMCommunicate request_size=255 [18:16:04]MH_SAM_APDU [18:16:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 65 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E1 02 00 35 04 06 00 CB 03 59 81 [18:16:04]Write to MH i2c: E2 02 01 CC 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 65 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E1 02 00 35 04 06 00 CB 03 59 81 00 00 AD [18:16:04]Write i2c OK [18:16:04]MH_I2C_Read... [18:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:05]Read from MH i2c: E2 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: E2 03 00 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: E2 03 00 CC 1C 00 90 00 5C [18:16:05]RAPDU: 90 00 [18:16:05]wFMCommunicate OK [18:16:05]wFMCommunicate request_size=7 [18:16:05]MH_SAM_APDU [18:16:05]CAPDU: 80 0D 02 02 02 0A D2 [18:16:05]Write to MH i2c: E2 0A 00 CD 1C 80 0D 02 02 02 00 0A D2 00 00 43 [18:16:05]Write i2c OK [18:16:05]MH_I2C_Read... [18:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:05]Read from MH i2c: E2 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: E2 03 00 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: E2 03 00 CD 1C 00 90 00 5D [18:16:05]RAPDU: 90 00 [18:16:05]wFMCommunicate OK [18:16:05]wFMCommunicate request_size=4 [18:16:05]MH_SAM_APDU [18:16:05]CAPDU: 80 0D 03 02 [18:16:05]Write to MH i2c: E2 08 00 CE 1C 80 0D 03 02 00 00 00 00 65 [18:16:05]Write i2c OK [18:16:05]MH_I2C_Read... [18:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:05]Read from MH i2c: E2 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: E2 0B 00 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: E2 0B 00 CE 1C 00 7F 76 49 99 EC 28 6F 6F 90 00 2F [18:16:05]RAPDU: 7F 76 49 99 EC 28 6F 6F 90 00 [18:16:05]wFMCommunicate OK [18:16:05]SAM_PROTO_SignData done [18:16:05]FM_MakeSignedData done [18:16:05]CreateOFDProtocolMessage [18:16:05]wFMCommunicate request_size=4 [18:16:05]MH_SAM_APDU [18:16:05]CAPDU: 80 11 00 00 [18:16:05]Write to MH i2c: E2 08 00 CF 1C 80 11 00 00 00 00 00 00 65 [18:16:05]Write i2c OK [18:16:05]MH_I2C_Read... [18:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:05]Read from MH i2c: E2 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: E2 17 00 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: E2 17 00 CF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [18:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:16:05]wFMCommunicate OK [18:16:05]CreateOFDProtocolMessage done [18:16:05]OFDSenderStorePacket 188851 [18:16:05]StoreOFDPacket docnum=188851 [18:16:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6A 7F 04 01 4E 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 65 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E1 02 00 35 04 06 00 CB 03 59 81 0A D2 7F 76 49 99 EC 28 6F 6F [18:16:05]CheckFolder [18:16:05]dirname=/storage/ofd_packets [18:16:05]CheckFolder done [18:16:05]ProducePacketName [18:16:05]name=ofd_packets/00188851 [18:16:05]NVStorageSaveData ofd_packets/00188851 [18:16:05]File name is /storage/ofd_packets/00188851 [18:16:05]Write 298 bytes [18:16:05]NVStorageSaveData done [18:16:05]OFDSenderStorePacket done [18:16:05]KKMCreateOFDPacket done [18:16:05]NVStorageSaveData kkm_last_timestamp [18:16:05]File name is /storage/kkm_last_timestamp [18:16:05]Write 4 bytes [18:16:05]NVStorageSaveData done [18:16:05]ExternCall_PrintAddStr [18:16:05]wPrintStart [18:16:05]Write to MH i2c: 01 00 00 D0 1C EC [18:16:05]Write i2c OK [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: 01 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: 01 07 00 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: 01 07 00 D0 1C 00 00 00 00 00 FF 0F 01 [18:16:05]RasterBufferAndPrint [18:16:05]line Счет N : (1)210912 [18:16:05]line ИНН: 02508201610067 [18:16:05]line Контрольно-Кассовый Чек [18:16:05]line ПРОДАЖА [18:16:05]line ТРК (МРК, ГНК) : 51 [18:16:05]line Товар: 2710194210 [18:16:05]line ДТ-К-5 [18:16:05]line 30.000 * 0.00 [18:16:05]line = 0.00 [18:16:05]line НДС 12% НСП 1% [18:16:05]line > о реализуемом товаре [18:16:05]line ИТОГО: 0.00 [18:16:05]line НСП 1% : 0.00 [18:16:05]line НДС 12% : 0.00 [18:16:05]line Наличными: 0.00 [18:16:05]line Безнал.: 0.00 [18:16:05]line Место: АЗС № 86 "Партнер Нефть" [18:16:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:16:05]line СНО: Общий режим [18:16:05]line Чек 309 23.10.2024 18:16 [18:16:05]line Смена: 462 ФФД: 1.0 [18:16:05]line ЗНМ: 0300000155 [18:16:05]line РНМ: 0000000000100030 [18:16:05]line Версия ККМ: 001 [18:16:05]line Талоны: ТК ГПНА Online [18:16:05]line 30097903 [18:16:05]line ФМ: 0000000000965340 [18:16:05]line ФД: 188851 [18:16:05]line ФПД: 223215246969554 [18:16:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181605&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188851&fm=223215246969554&tin=02508201610067®Number=0000000000100030&sum=0 [18:16:05]written 0, free lines is 4095 [18:16:05]OFD Sender: Processing packet 188851 [packets to send 1062, broken 1061] [18:16:05]ProducePacketName [18:16:05]name=ofd_packets/00188851 [18:16:05]OFD Sender: To server: pG, [18:16:05]CommunicateWithHost lk.salyk.kg:30040 [18:16:05]ConnectInit lk.salyk.kg [18:16:05]Write to MH i2c: 01 00 00 FA 1C 16 [18:16:05]Write i2c OK [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: 01 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: 01 07 00 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: 01 07 00 FA 1C 00 00 00 00 00 72 0C 9B [18:16:05]RasterBufferAndPrint [18:16:05]line [18:16:05]line [18:16:05]line [18:16:05]line [18:16:05]line [18:16:05]written 0, free lines is 3193 [18:16:05]MH_Cut [18:16:05]Write to MH i2c: D1 01 00 01 1D 01 F0 [18:16:05]Write i2c OK [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: D1 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: D1 01 00 [18:16:05]MH_I2C_Read... [18:16:05]Read from MH i2c: D1 01 00 01 1D 00 EF [18:16:05]Write to MH i2c: 01 00 00 02 1D 1F [18:16:05]Connected sock=9 [18:16:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6A 7F 04 01 4E 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 65 3D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E1 02 00 35 04 06 00 CB 03 59 81 0A D2 7F 76 49 99 EC 28 6F 6F [18:16:05]Write i2c OK [18:16:05]MH_I2C_Read... [18:16:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5F 23 47 00 47 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E1 02 00 F4 03 04 00 4F E7 18 67 B6 04 01 00 00 4A FC 70 57 C4 D8 E9 1F [18:16:06]CommunicateWithHost err = 0 [18:16:06]CheckOFDResponse [18:16:06]1017 (14) - 77093643461234 [18:16:06]1041 (16) - 0000000000965340 [18:16:06]1040 (4) - 188851 [18:16:06]1012 (4) - 23.10.2024 12:08 [18:16:06]1206 (1) - 0 [18:16:06]OFD Sender: Remove packet 188851 [18:16:06]ProducePacketName [18:16:06]name=ofd_packets/00188851 [18:16:06]NVStorageDeleteData [18:16:06]OFD Sender: No OFD packet to send [18:16:06]*** Cut start [18:16:06]*** Partial cut [18:16:06]*** CUTSNS_PIN = 1 [18:16:07]*** CUTSNS_PIN = 0 [18:16:07]*** Brake cut motor [18:16:07]Read from MH i2c: 01 [18:16:07]MH_I2C_Read... [18:16:07]*** Stop cut motor [18:16:07]*** Cut end [18:16:07]Read from MH i2c: 01 07 00 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: 01 07 00 02 1D 00 00 00 00 00 FF 0F 34 [18:16:07]process_action close_receipt done [18:16:07]requested_data is exist [18:16:07]produce_requested_data [18:16:07]requested_item fm.sn is exist - process it [18:16:07]wFMCommunicate request_size=4 [18:16:07]MH_SAM_APDU [18:16:07]CAPDU: 80 11 00 00 [18:16:07]Write to MH i2c: E2 08 00 03 1D 80 11 00 00 00 00 00 00 9A [18:16:07]Write i2c OK [18:16:07]MH_I2C_Read... [18:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:07]Read from MH i2c: E2 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: E2 17 00 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: E2 17 00 03 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [18:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:16:07]wFMCommunicate OK [18:16:07]requested_item fd.num is exist - process it [18:16:07]SAM_PROTO_GetFieldsCounters [18:16:07]wFMCommunicate request_size=4 [18:16:07]MH_SAM_APDU [18:16:07]CAPDU: 80 13 00 00 [18:16:07]Write to MH i2c: E2 08 00 04 1D 80 13 00 00 00 00 00 00 9D [18:16:07]Write i2c OK [18:16:07]MH_I2C_Read... [18:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:07]Read from MH i2c: E2 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: E2 62 00 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: E2 62 00 04 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [18:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:07]wFMCommunicate OK [18:16:07]SAM_PROTO_GetFieldsCounters done [18:16:07]requested_item shift.num is exist - process it [18:16:07]requested_item shift.opened is exist - process it [18:16:07]req_shift_opened [18:16:07]FM_GetShiftState [18:16:07]SAM_PROTO_GetShiftState [18:16:07]wFMCommunicate request_size=4 [18:16:07]MH_SAM_APDU [18:16:07]CAPDU: 80 13 01 00 [18:16:07]Write to MH i2c: E2 08 00 05 1D 80 13 01 00 00 00 00 00 9F [18:16:07]Write i2c OK [18:16:07]MH_I2C_Read... [18:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:07]Read from MH i2c: E2 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: E2 0E 00 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: E2 0E 00 05 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 87 [18:16:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:16:07]wFMCommunicate OK [18:16:07]SAM_PROTO_GetShiftState done [18:16:07]FM_GetShiftState done [18:16:07]req_shift_opened done [18:16:07]requested_item shift.open_date is exist - process it [18:16:07]req_shift_open_date [18:16:07]req_shift_open_date done [18:16:07]produce_requested_data done [18:16:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188851,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:16:07]process_action_free close_receipt [18:16:07]json_value_free [18:16:07]json_value_free done [18:16:07]process_json_proto returns [18:16:07]Send response to host [18:16:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188851,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:16:07]free response buf [18:16:07]execute_script done [18:16:07]execute_script returns [18:16:07]free content buf [18:16:07]Sock 10.Close socket [18:16:07]Sock 10.Thread stoped [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]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:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]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:27]accept exits with 7 [18:23:27]New connection [18:23:27]New thread 3067207012 created [18:23:27]Thread 3067350372 joined [18:23:27]Waiting for new connection... [18:23:27] Sock 7.Parse request [18:23:27]Sock 7.Check first char [18:23:27]Sock 7.First char is OK [18:23:27]request: POST /json_proto HTTP/1.0 [18:23:27]Method: POST [18:23:27]URL: /json_proto [18:23:27]Method is POST - this is cgi request [18:23:27]url: /json_proto [18:23:27]query_string will be loaded in cgi processing [18:23:27]execute_cgi json_proto POST (null) [18:23:27]execute_cgi path=json_proto method=POST [18:23:27]POST find Content-Length [18:23:27]Host: 172.17.42.131:8080 [18:23:27]Content-Length: 754 [18:23:27]Content-Type: application/json [18:23:27] [18:23:27]POST finish read [18:23:27]Found Content-Length = 754 [18:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 55.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042180", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:27]execute_script... [18:23:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 55.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042180", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:27]POST & json_proto [18:23:27]process_json_proto [18:23:27]json parsed OK: [18:23:27]protocol is kg_v1.0 [18:23:27]action value=close_receipt [18:23:27]process_action close_receipt [18:23:27]cmd_close_receipt [18:23:27]MH_GetDate [18:23:27]Write to MH i2c: F0 00 00 06 1D 12 [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: F0 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: F0 09 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: F0 09 00 06 1D 00 20 3F 19 67 A0 18 CA 66 E2 [18:23:27]GetLastDocTimeStamp 1729707365 [18:23:27]current date 1729707808 [18:23:27]FM_GetShiftState [18:23:27]SAM_PROTO_GetShiftState [18:23:27]wFMCommunicate request_size=4 [18:23:27]MH_SAM_APDU [18:23:27]CAPDU: 80 13 01 00 [18:23:27]Write to MH i2c: E2 08 00 07 1D 80 13 01 00 00 00 00 00 A1 [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:27]Read from MH i2c: E2 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 0E 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 0E 00 07 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 89 [18:23:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:23:27]wFMCommunicate OK [18:23:27]SAM_PROTO_GetShiftState done [18:23:27]FM_GetShiftState done [18:23:27]opened in 1729642525 [18:23:27]opened+sec_in_day 1729728925 [18:23:27]quantity*price = 0 [18:23:27]sum+1 = 1 [18:23:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 310 23.10.2024 18:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30042180 ФМ: 0000000000965340 ФД: 188852 ФПД: 262379074856091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182328&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188852&fm=262379074856091&tin=02508201610067®Number=0000000000100030&sum=0 [18:23:28]StoreToDocumentArchive [18:23:28]shift 462 fd 188852 [18:23:28]save to /storage/0462/doc_00188852 [18:23:28]save last doc name /storage/0462/doc_00188852 to /storage/kkm_last_doc_name [18:23:28]save OK [18:23:28]Clear old archive folders... [18:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:28]tlvbuf is 01159960 [18:23:28]SAM_PROTO_ClearQueue [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 09 00 00 [18:23:28]Write to MH i2c: E2 08 00 14 1D 80 09 00 00 00 00 00 00 A3 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 14 1D 00 90 00 A5 [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]SAM_PROTO_ClearQueue done [18:23:28]KKMCreateOFDPacket [18:23:28]OFDProtocolAddRootSTLVToBuf [18:23:28]FM_MakeSignedData [18:23:28]FM_MakeSignedData [18:23:28]SAM_PROTO_SignData [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 01 02 [18:23:28]Write to MH i2c: E2 08 00 15 1D 80 0D 01 02 00 00 00 00 AB [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 15 1D 00 90 00 A6 [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]wFMCommunicate request_size=255 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D8 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 20 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E1 02 00 35 04 06 00 EE [18:23:28]Write to MH i2c: E2 02 01 16 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D8 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 20 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E1 02 00 35 04 06 00 EE 00 00 B5 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]OFD Sender: No OFD packet to send [18:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 16 1D 00 90 00 A7 [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]wFMCommunicate request_size=10 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 02 02 05 A1 E3 8D A4 9B [18:23:28]Write to MH i2c: E2 0D 00 17 1D 80 0D 02 02 05 00 A1 E3 8D A4 9B 00 00 08 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 17 1D 00 90 00 A8 [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 03 02 [18:23:28]Write to MH i2c: E2 08 00 18 1D 80 0D 03 02 00 00 00 00 B0 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 0B 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 0B 00 18 1D 00 3B 91 EC F4 B9 30 89 0A 90 00 D9 [18:23:28]RAPDU: 3B 91 EC F4 B9 30 89 0A 90 00 [18:23:28]wFMCommunicate OK [18:23:28]SAM_PROTO_SignData done [18:23:28]FM_MakeSignedData done [18:23:28]CreateOFDProtocolMessage [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 11 00 00 [18:23:28]Write to MH i2c: E2 08 00 19 1D 80 11 00 00 00 00 00 00 B0 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 17 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 17 00 19 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [18:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:23:28]wFMCommunicate OK [18:23:28]CreateOFDProtocolMessage done [18:23:28]OFDSenderStorePacket 188852 [18:23:28]StoreOFDPacket docnum=188852 [18:23:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 3F 07 01 13 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D8 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 20 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E1 02 00 35 04 06 00 EE A1 E3 8D A4 9B 3B 91 EC F4 B9 30 89 0A [18:23:28]CheckFolder [18:23:28]dirname=/storage/ofd_packets [18:23:28]CheckFolder done [18:23:28]ProducePacketName [18:23:28]name=ofd_packets/00188852 [18:23:28]NVStorageSaveData ofd_packets/00188852 [18:23:28]File name is /storage/ofd_packets/00188852 [18:23:28]Write 301 bytes [18:23:28]NVStorageSaveData done [18:23:28]OFDSenderStorePacket done [18:23:28]KKMCreateOFDPacket done [18:23:28]NVStorageSaveData kkm_last_timestamp [18:23:28]File name is /storage/kkm_last_timestamp [18:23:28]Write 4 bytes [18:23:28]NVStorageSaveData done [18:23:28]ExternCall_PrintAddStr [18:23:28]wPrintStart [18:23:28]Write to MH i2c: 01 00 00 1A 1D 37 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 07 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 07 00 1A 1D 00 00 00 00 00 FF 0F 4C [18:23:28]RasterBufferAndPrint [18:23:28]line Счет N : (1)210913 [18:23:28]line ИНН: 02508201610067 [18:23:28]line Контрольно-Кассовый Чек [18:23:28]line ПРОДАЖА [18:23:28]line ТРК (МРК, ГНК) : 33 [18:23:28]line Товар: 2710124500 [18:23:28]line Аи-95-К-3 [18:23:28]line 55.000 * 0.00 [18:23:28]line = 0.00 [18:23:28]line НДС 12% НСП 1% [18:23:28]line > о реализуемом товаре [18:23:28]line ИТОГО: 0.00 [18:23:28]line НСП 1% : 0.00 [18:23:28]line НДС 12% : 0.00 [18:23:28]line Наличными: 0.00 [18:23:28]line Безнал.: 0.00 [18:23:28]line Место: АЗС № 86 "Партнер Нефть" [18:23:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:23:28]line СНО: Общий режим [18:23:28]line Чек 310 23.10.2024 18:23 [18:23:28]line Смена: 462 ФФД: 1.0 [18:23:28]line ЗНМ: 0300000155 [18:23:28]line РНМ: 0000000000100030 [18:23:28]line Версия ККМ: 001 [18:23:28]line Талоны: ТК ГПНА Online [18:23:28]line 30042180 [18:23:28]line ФМ: 0000000000965340 [18:23:28]line ФД: 188852 [18:23:28]line ФПД: 262379074856091 [18:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182328&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188852&fm=262379074856091&tin=02508201610067®Number=0000000000100030&sum=0 [18:23:28]written 0, free lines is 4095 [18:23:28]OFD Sender: Processing packet 188852 [packets to send 1062, broken 1061] [18:23:28]ProducePacketName [18:23:28]name=ofd_packets/00188852 [18:23:28]OFD Sender: To server: pG, [18:23:28]CommunicateWithHost lk.salyk.kg:30040 [18:23:28]ConnectInit lk.salyk.kg [18:23:29]Connected sock=10 [18:23:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 3F 07 01 13 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D8 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 20 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E1 02 00 35 04 06 00 EE A1 E3 8D A4 9B 3B 91 EC F4 B9 30 89 0A [18:23:29]Write to MH i2c: 01 00 00 44 1D 61 [18:23:29]Write i2c OK [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: 01 [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: 01 07 00 [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: 01 07 00 44 1D 00 00 00 00 00 6A 0C DE [18:23:29]RasterBufferAndPrint [18:23:29]line [18:23:29]line [18:23:29]line [18:23:29]line [18:23:29]line [18:23:29]written 0, free lines is 3184 [18:23:29]MH_Cut [18:23:29]Write to MH i2c: D1 01 00 4B 1D 01 3A [18:23:29]Write i2c OK [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: D1 [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: D1 01 00 [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: D1 01 00 4B 1D 00 39 [18:23:29]Write to MH i2c: 01 00 00 4C 1D 69 [18:23:29]Write i2c OK [18:23:29]MH_I2C_Read... [18:23:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 83 1B 47 00 62 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 36 35 33 34 30 10 04 04 00 B4 E1 02 00 F4 03 04 00 0A E9 18 67 B6 04 01 00 00 A3 9C 29 60 50 41 38 33 [18:23:29]CommunicateWithHost err = 0 [18:23:29]CheckOFDResponse [18:23:29]1017 (14) - 77093643461234 [18:23:29]1041 (16) - 0000000000965340 [18:23:29]1040 (4) - 188852 [18:23:29]1012 (4) - 23.10.2024 12:16 [18:23:29]1206 (1) - 0 [18:23:29]OFD Sender: Remove packet 188852 [18:23:29]ProducePacketName [18:23:29]name=ofd_packets/00188852 [18:23:29]NVStorageDeleteData [18:23:30]OFD Sender: No OFD packet to send [18:23:30]*** Cut start [18:23:30]*** Partial cut [18:23:30]*** CUTSNS_PIN = 1 [18:23:30]*** CUTSNS_PIN = 0 [18:23:30]*** Brake cut motor [18:23:31]Read from MH i2c: 01 [18:23:31]MH_I2C_Read... [18:23:31]*** Stop cut motor [18:23:31]*** Cut end [18:23:31]Read from MH i2c: 01 07 00 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: 01 07 00 4C 1D 00 00 00 00 00 FF 0F 7E [18:23:31]process_action close_receipt done [18:23:31]requested_data is exist [18:23:31]produce_requested_data [18:23:31]requested_item fm.sn is exist - process it [18:23:31]wFMCommunicate request_size=4 [18:23:31]MH_SAM_APDU [18:23:31]CAPDU: 80 11 00 00 [18:23:31]Write to MH i2c: E2 08 00 4D 1D 80 11 00 00 00 00 00 00 E4 [18:23:31]Write i2c OK [18:23:31]MH_I2C_Read... [18:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:31]Read from MH i2c: E2 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 17 00 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 17 00 4D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [18:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:23:31]wFMCommunicate OK [18:23:31]requested_item fd.num is exist - process it [18:23:31]SAM_PROTO_GetFieldsCounters [18:23:31]wFMCommunicate request_size=4 [18:23:31]MH_SAM_APDU [18:23:31]CAPDU: 80 13 00 00 [18:23:31]Write to MH i2c: E2 08 00 4E 1D 80 13 00 00 00 00 00 00 E7 [18:23:31]Write i2c OK [18:23:31]MH_I2C_Read... [18:23:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:31]Read from MH i2c: E2 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 62 00 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 62 00 4E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [18:23:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:31]wFMCommunicate OK [18:23:31]SAM_PROTO_GetFieldsCounters done [18:23:31]requested_item shift.num is exist - process it [18:23:31]requested_item shift.opened is exist - process it [18:23:31]req_shift_opened [18:23:31]FM_GetShiftState [18:23:31]SAM_PROTO_GetShiftState [18:23:31]wFMCommunicate request_size=4 [18:23:31]MH_SAM_APDU [18:23:31]CAPDU: 80 13 01 00 [18:23:31]Write to MH i2c: E2 08 00 4F 1D 80 13 01 00 00 00 00 00 E9 [18:23:31]Write i2c OK [18:23:31]MH_I2C_Read... [18:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:31]Read from MH i2c: E2 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 0E 00 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 0E 00 4F 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D1 [18:23:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:23:31]wFMCommunicate OK [18:23:31]SAM_PROTO_GetShiftState done [18:23:31]FM_GetShiftState done [18:23:31]req_shift_opened done [18:23:31]requested_item shift.open_date is exist - process it [18:23:31]req_shift_open_date [18:23:31]req_shift_open_date done [18:23:31]produce_requested_data done [18:23:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188852,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:23:31]process_action_free close_receipt [18:23:31]json_value_free [18:23:31]json_value_free done [18:23:31]process_json_proto returns [18:23:31]Send response to host [18:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188852,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:23:31]free response buf [18:23:31]execute_script done [18:23:31]execute_script returns [18:23:31]free content buf [18:23:31]Sock 7.Close socket [18:23:31]Sock 7.Thread stoped [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:39]accept exits with 9 [18:25:39]New connection [18:25:39]New thread 3067350372 created [18:25:39]Thread 3067207012 joined [18:25:39]Waiting for new connection... [18:25:39] Sock 9.Parse request [18:25:39]Sock 9.Check first char [18:25:39]Sock 9.First char is OK [18:25:39]request: POST /json_proto HTTP/1.0 [18:25:39]Method: POST [18:25:39]URL: /json_proto [18:25:39]Method is POST - this is cgi request [18:25:39]url: /json_proto [18:25:39]query_string will be loaded in cgi processing [18:25:39]execute_cgi json_proto POST (null) [18:25:39]execute_cgi path=json_proto method=POST [18:25:39]POST find Content-Length [18:25:39]Host: 172.17.42.131:8080 [18:25:39]Content-Length: 767 [18:25:39]Content-Type: application/json [18:25:39] [18:25:39]POST finish read [18:25:39]Found Content-Length = 767 [18:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:39]execute_script... [18:25:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:39]POST & json_proto [18:25:39]process_json_proto [18:25:39]json parsed OK: [18:25:39]protocol is kg_v1.0 [18:25:39]action value=close_receipt [18:25:39]process_action close_receipt [18:25:39]cmd_close_receipt [18:25:39]MH_GetDate [18:25:39]Write to MH i2c: F0 00 00 50 1D 5C [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: F0 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: F0 09 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: F0 09 00 50 1D 00 A5 3F 19 67 A0 18 CA 66 B1 [18:25:39]GetLastDocTimeStamp 1729707808 [18:25:39]current date 1729707941 [18:25:39]FM_GetShiftState [18:25:39]SAM_PROTO_GetShiftState [18:25:39]wFMCommunicate request_size=4 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 13 01 00 [18:25:39]Write to MH i2c: E2 08 00 51 1D 80 13 01 00 00 00 00 00 EB [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 0E 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 0E 00 51 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D3 [18:25:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:25:39]wFMCommunicate OK [18:25:39]SAM_PROTO_GetShiftState done [18:25:39]FM_GetShiftState done [18:25:39]opened in 1729642525 [18:25:39]opened+sec_in_day 1729728925 [18:25:39]quantity*price = 70044 [18:25:39]sum+1 = 70045 [18:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 311 23.10.2024 18:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188853 ФПД: 270203006389116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188853&fm=270203006389116&tin=02508201610067®Number=0000000000100030&sum=70044 [18:25:41]StoreToDocumentArchive [18:25:41]shift 462 fd 188853 [18:25:41]save to /storage/0462/doc_00188853 [18:25:41]save last doc name /storage/0462/doc_00188853 to /storage/kkm_last_doc_name [18:25:41]save OK [18:25:41]Clear old archive folders... [18:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:41]tlvbuf is 01143A50 [18:25:41]SAM_PROTO_ClearQueue [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 09 00 00 [18:25:41]Write to MH i2c: E2 08 00 5E 1D 80 09 00 00 00 00 00 00 ED [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 5E 1D 00 90 00 EF [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]SAM_PROTO_ClearQueue done [18:25:41]KKMCreateOFDPacket [18:25:41]OFDProtocolAddRootSTLVToBuf [18:25:41]FM_MakeSignedData [18:25:41]FM_MakeSignedData [18:25:41]SAM_PROTO_SignData [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 01 02 [18:25:41]Write to MH i2c: E2 08 00 5F 1D 80 0D 01 02 00 00 00 00 F5 [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 5F 1D 00 90 00 F0 [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]wFMCommunicate request_size=255 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 A5 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E1 02 00 35 04 06 00 F5 [18:25:41]Write to MH i2c: E2 02 01 60 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 A5 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E1 02 00 35 04 06 00 F5 00 00 C8 [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 60 1D 00 90 00 F1 [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]wFMCommunicate request_size=10 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 02 02 05 BF 8A 36 8B 7C [18:25:41]Write to MH i2c: E2 0D 00 61 1D 80 0D 02 02 05 00 BF 8A 36 8B 7C 00 00 88 [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 61 1D 00 90 00 F2 [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 03 02 [18:25:41]Write to MH i2c: E2 08 00 62 1D 80 0D 03 02 00 00 00 00 FA [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 0B 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 0B 00 62 1D 00 DF 0A B0 75 7E C3 60 84 90 00 2E [18:25:41]RAPDU: DF 0A B0 75 7E C3 60 84 90 00 [18:25:41]wFMCommunicate OK [18:25:41]SAM_PROTO_SignData done [18:25:41]FM_MakeSignedData done [18:25:41]CreateOFDProtocolMessage [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 11 00 00 [18:25:41]Write to MH i2c: E2 08 00 63 1D 80 11 00 00 00 00 00 00 FA [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 17 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 17 00 63 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [18:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:25:41]wFMCommunicate OK [18:25:41]CreateOFDProtocolMessage done [18:25:41]OFDSenderStorePacket 188853 [18:25:41]StoreOFDPacket docnum=188853 [18:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 5B 07 01 F7 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 A5 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E1 02 00 35 04 06 00 F5 BF 8A 36 8B 7C DF 0A B0 75 7E C3 60 84 [18:25:41]CheckFolder [18:25:41]dirname=/storage/ofd_packets [18:25:41]CheckFolder done [18:25:41]ProducePacketName [18:25:41]name=ofd_packets/00188853 [18:25:41]NVStorageSaveData ofd_packets/00188853 [18:25:41]File name is /storage/ofd_packets/00188853 [18:25:41]Write 301 bytes [18:25:41]NVStorageSaveData done [18:25:41]OFDSenderStorePacket done [18:25:41]KKMCreateOFDPacket done [18:25:41]NVStorageSaveData kkm_last_timestamp [18:25:41]File name is /storage/kkm_last_timestamp [18:25:41]Write 4 bytes [18:25:41]NVStorageSaveData done [18:25:41]ExternCall_PrintAddStr [18:25:41]wPrintStart [18:25:41]Write to MH i2c: 01 00 00 64 1D 81 [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: 01 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: 01 07 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: 01 07 00 64 1D 00 00 00 00 00 FF 0F 96 [18:25:41]RasterBufferAndPrint [18:25:41]line Счет N : (1)210914 [18:25:41]line ИНН: 02508201610067 [18:25:41]line Контрольно-Кассовый Чек [18:25:41]line ПРОДАЖА [18:25:41]line ТРК (МРК, ГНК) : 12 [18:25:41]line Товар: 2710124130 [18:25:41]line Аи-92-К-3 [18:25:41]line 10.470 * 66.90 [18:25:41]line = 700.44 [18:25:41]line НДС 12% НСП 1% [18:25:41]line > о реализуемом товаре [18:25:41]line ИТОГО: 700.44 [18:25:41]line НСП 1% : 6.20 [18:25:41]line НДС 12% : 74.38 [18:25:41]line Наличными: 0.00 [18:25:41]line Безнал.: 700.44 [18:25:41]line Место: АЗС № 86 "Партнер Нефть" [18:25:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:25:41]line СНО: Общий режим [18:25:41]line Чек 311 23.10.2024 18:25 [18:25:41]line Смена: 462 ФФД: 1.0 [18:25:41]line ЗНМ: 0300000155 [18:25:41]line РНМ: 0000000000100030 [18:25:41]line Версия ККМ: 001 [18:25:41]line Платежная система: Mbank [18:25:41]line ФМ: 0000000000965340 [18:25:41]line ФД: 188853 [18:25:41]line ФПД: 270203006389116 [18:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188853&fm=270203006389116&tin=02508201610067®Number=0000000000100030&sum=70044 [18:25:41]written 0, free lines is 4095 [18:25:41]OFD Sender: Processing packet 188853 [packets to send 1062, broken 1061] [18:25:41]ProducePacketName [18:25:41]name=ofd_packets/00188853 [18:25:41]OFD Sender: To server: pG, [18:25:41]CommunicateWithHost lk.salyk.kg:30040 [18:25:41]ConnectInit lk.salyk.kg [18:25:41]Connected sock=10 [18:25:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 5B 07 01 F7 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 A5 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E1 02 00 35 04 06 00 F5 BF 8A 36 8B 7C DF 0A B0 75 7E C3 60 84 [18:25:42]Write to MH i2c: 01 00 00 8D 1D AA [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 8D 1D 00 00 00 00 00 85 0C 42 [18:25:42]RasterBufferAndPrint [18:25:42]line [18:25:42]line [18:25:42]line [18:25:42]line [18:25:42]line [18:25:42]written 0, free lines is 3210 [18:25:42]MH_Cut [18:25:42]Write to MH i2c: D1 01 00 94 1D 01 83 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: D1 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: D1 01 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: D1 01 00 94 1D 00 82 [18:25:42]Write to MH i2c: 01 00 00 95 1D B2 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5E 7E 47 00 FB 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E1 02 00 F4 03 04 00 8F E9 18 67 B6 04 01 00 00 B7 13 1D 47 44 C5 40 25 [18:25:42]CommunicateWithHost err = 0 [18:25:42]CheckOFDResponse [18:25:42]1017 (14) - 77093643461234 [18:25:42]1041 (16) - 0000000000965340 [18:25:42]1040 (4) - 188853 [18:25:42]1012 (4) - 23.10.2024 12:18 [18:25:42]1206 (1) - 0 [18:25:42]OFD Sender: Remove packet 188853 [18:25:42]ProducePacketName [18:25:42]name=ofd_packets/00188853 [18:25:42]NVStorageDeleteData [18:25:42]OFD Sender: No OFD packet to send [18:25:43]*** Cut start [18:25:43]*** Partial cut [18:25:43]*** CUTSNS_PIN = 1 [18:25:43]*** CUTSNS_PIN = 0 [18:25:43]*** Brake cut motor [18:25:43]Read from MH i2c: 01 [18:25:43]MH_I2C_Read... [18:25:43]*** Stop cut motor [18:25:44]*** Cut end [18:25:44]Read from MH i2c: 01 07 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: 01 07 00 95 1D 00 00 00 00 00 FF 0F C7 [18:25:44]process_action close_receipt done [18:25:44]requested_data is exist [18:25:44]produce_requested_data [18:25:44]requested_item fm.sn is exist - process it [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 11 00 00 [18:25:44]Write to MH i2c: E2 08 00 96 1D 80 11 00 00 00 00 00 00 2D [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 17 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 17 00 96 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [18:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:25:44]wFMCommunicate OK [18:25:44]requested_item fd.num is exist - process it [18:25:44]SAM_PROTO_GetFieldsCounters [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 13 00 00 [18:25:44]Write to MH i2c: E2 08 00 97 1D 80 13 00 00 00 00 00 00 30 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 62 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 62 00 97 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [18:25:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:44]wFMCommunicate OK [18:25:44]SAM_PROTO_GetFieldsCounters done [18:25:44]requested_item shift.num is exist - process it [18:25:44]requested_item shift.opened is exist - process it [18:25:44]req_shift_opened [18:25:44]FM_GetShiftState [18:25:44]SAM_PROTO_GetShiftState [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 13 01 00 [18:25:44]Write to MH i2c: E2 08 00 98 1D 80 13 01 00 00 00 00 00 32 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 0E 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 0E 00 98 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1A [18:25:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:25:44]wFMCommunicate OK [18:25:44]SAM_PROTO_GetShiftState done [18:25:44]FM_GetShiftState done [18:25:44]req_shift_opened done [18:25:44]requested_item shift.open_date is exist - process it [18:25:44]req_shift_open_date [18:25:44]req_shift_open_date done [18:25:44]produce_requested_data done [18:25:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188853,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:25:44]process_action_free close_receipt [18:25:44]json_value_free [18:25:44]json_value_free done [18:25:44]process_json_proto returns [18:25:44]Send response to host [18:25:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188853,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:25:44]free response buf [18:25:44]execute_script done [18:25:44]execute_script returns [18:25:44]free content buf [18:25:44]Sock 9.Close socket [18:25:44]Sock 9.Thread stoped [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26: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:01]accept exits with 7 [18:27:01]New connection [18:27:01]New thread 3067207012 created [18:27:01]Thread 3067350372 joined [18:27:01]Waiting for new connection... [18:27:01] Sock 7.Parse request [18:27:01]Sock 7.Check first char [18:27:01]Sock 7.First char is OK [18:27:01]request: POST /json_proto HTTP/1.0 [18:27:01]Method: POST [18:27:01]URL: /json_proto [18:27:01]Method is POST - this is cgi request [18:27:01]url: /json_proto [18:27:01]query_string will be loaded in cgi processing [18:27:01]execute_cgi json_proto POST (null) [18:27:01]execute_cgi path=json_proto method=POST [18:27:01]POST find Content-Length [18:27:01]Host: 172.17.42.131:8080 [18:27:01]Content-Length: 679 [18:27:01]Content-Type: application/json [18:27:01] [18:27:01]POST finish read [18:27:01]Found Content-Length = 679 [18:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:01]execute_script... [18:27:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:01]POST & json_proto [18:27:01]process_json_proto [18:27:01]json parsed OK: [18:27:01]protocol is kg_v1.0 [18:27:01]action value=close_receipt [18:27:01]process_action close_receipt [18:27:01]cmd_close_receipt [18:27:01]MH_GetDate [18:27:01]Write to MH i2c: F0 00 00 99 1D A5 [18:27:01]Write i2c OK [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: F0 [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: F0 09 00 [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: F0 09 00 99 1D 00 F6 3F 19 67 A0 18 CA 66 4B [18:27:01]GetLastDocTimeStamp 1729707941 [18:27:01]current date 1729708022 [18:27:01]FM_GetShiftState [18:27:01]SAM_PROTO_GetShiftState [18:27:01]wFMCommunicate request_size=4 [18:27:01]MH_SAM_APDU [18:27:01]CAPDU: 80 13 01 00 [18:27:01]Write to MH i2c: E2 08 00 9A 1D 80 13 01 00 00 00 00 00 34 [18:27:01]Write i2c OK [18:27:01]MH_I2C_Read... [18:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:01]Read from MH i2c: E2 [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: E2 0E 00 [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: E2 0E 00 9A 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1C [18:27:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:27:01]wFMCommunicate OK [18:27:01]SAM_PROTO_GetShiftState done [18:27:01]FM_GetShiftState done [18:27:01]opened in 1729642525 [18:27:01]opened+sec_in_day 1729728925 [18:27:01]quantity*price = 300075 [18:27:01]sum+1 = 300077 [18:27:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 312 23.10.2024 18:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188854 ФПД: 160624760613184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182702&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188854&fm=160624760613184&tin=02508201610067®Number=0000000000100030&sum=300000 [18:27:02]StoreToDocumentArchive [18:27:02]shift 462 fd 188854 [18:27:02]save to /storage/0462/doc_00188854 [18:27:02]save last doc name /storage/0462/doc_00188854 to /storage/kkm_last_doc_name [18:27:02]save OK [18:27:02]Clear old archive folders... [18:27:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:27:02]tlvbuf is 01141990 [18:27:02]SAM_PROTO_ClearQueue [18:27:02]wFMCommunicate request_size=4 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 09 00 00 [18:27:02]Write to MH i2c: E2 08 00 A7 1D 80 09 00 00 00 00 00 00 36 [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 03 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 03 00 A7 1D 00 90 00 38 [18:27:02]RAPDU: 90 00 [18:27:02]wFMCommunicate OK [18:27:02]SAM_PROTO_ClearQueue done [18:27:02]KKMCreateOFDPacket [18:27:02]OFDProtocolAddRootSTLVToBuf [18:27:02]FM_MakeSignedData [18:27:02]FM_MakeSignedData [18:27:02]SAM_PROTO_SignData [18:27:02]wFMCommunicate request_size=4 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 0D 01 02 [18:27:02]Write to MH i2c: E2 08 00 A8 1D 80 0D 01 02 00 00 00 00 3E [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 03 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 03 00 A8 1D 00 90 00 39 [18:27:02]RAPDU: 90 00 [18:27:02]wFMCommunicate OK [18:27:02]wFMCommunicate request_size=255 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F6 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E1 02 00 35 04 06 00 92 16 5D CC [18:27:02]Write to MH i2c: E2 02 01 A9 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F6 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E1 02 00 35 04 06 00 92 16 5D CC 00 00 07 [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 03 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 03 00 A9 1D 00 90 00 3A [18:27:02]RAPDU: 90 00 [18:27:02]wFMCommunicate OK [18:27:02]wFMCommunicate request_size=7 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 0D 02 02 02 69 40 [18:27:02]Write to MH i2c: E2 0A 00 AA 1D 80 0D 02 02 02 00 69 40 00 00 EE [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 03 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 03 00 AA 1D 00 90 00 3B [18:27:02]RAPDU: 90 00 [18:27:02]wFMCommunicate OK [18:27:02]wFMCommunicate request_size=4 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 0D 03 02 [18:27:02]Write to MH i2c: E2 08 00 AB 1D 80 0D 03 02 00 00 00 00 43 [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 0B 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 0B 00 AB 1D 00 40 12 E0 B2 75 94 33 A5 90 00 09 [18:27:02]RAPDU: 40 12 E0 B2 75 94 33 A5 90 00 [18:27:02]wFMCommunicate OK [18:27:02]SAM_PROTO_SignData done [18:27:02]FM_MakeSignedData done [18:27:02]CreateOFDProtocolMessage [18:27:02]wFMCommunicate request_size=4 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 11 00 00 [18:27:02]Write to MH i2c: E2 08 00 AC 1D 80 11 00 00 00 00 00 00 43 [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 17 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 17 00 AC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [18:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:27:02]wFMCommunicate OK [18:27:02]CreateOFDProtocolMessage done [18:27:02]OFDSenderStorePacket 188854 [18:27:02]StoreOFDPacket docnum=188854 [18:27:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0C 4F 04 01 03 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F6 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E1 02 00 35 04 06 00 92 16 5D CC 69 40 40 12 E0 B2 75 94 33 A5 [18:27:02]CheckFolder [18:27:02]dirname=/storage/ofd_packets [18:27:02]CheckFolder done [18:27:02]ProducePacketName [18:27:02]name=ofd_packets/00188854 [18:27:02]NVStorageSaveData ofd_packets/00188854 [18:27:02]File name is /storage/ofd_packets/00188854 [18:27:02]Write 298 bytes [18:27:02]NVStorageSaveData done [18:27:02]OFDSenderStorePacket done [18:27:02]KKMCreateOFDPacket done [18:27:02]NVStorageSaveData kkm_last_timestamp [18:27:02]File name is /storage/kkm_last_timestamp [18:27:02]Write 4 bytes [18:27:02]NVStorageSaveData done [18:27:02]ExternCall_PrintAddStr [18:27:02]wPrintStart [18:27:02]Write to MH i2c: 01 00 00 AD 1D CA [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: 01 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: 01 07 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: 01 07 00 AD 1D 00 00 00 00 00 FF 0F DF [18:27:02]RasterBufferAndPrint [18:27:02]line Счет N : (1)210915 [18:27:02]line ИНН: 02508201610067 [18:27:02]line Контрольно-Кассовый Чек [18:27:02]line ПРОДАЖА [18:27:02]line ТРК (МРК, ГНК) : 51 [18:27:02]line Товар: 2710194210 [18:27:02]line ДТ-К-5 [18:27:02]line 39.380 * 76.20 [18:27:02]line = 3000.76 [18:27:02]line НДС 12% НСП 1% [18:27:02]line > о реализуемом товаре [18:27:02]line ОКРУГЛЕНИЕ: -0.76 [18:27:02]line ИТОГО: 3000.00 [18:27:02]line Внесено: 3000.00 [18:27:02]line СДАЧА: 0.00 [18:27:02]line НСП 1% : 26.55 [18:27:02]line НДС 12% : 318.66 [18:27:02]line Наличными: 3000.00 [18:27:02]line Безнал.: 0.00 [18:27:02]line Место: АЗС № 86 "Партнер Нефть" [18:27:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:27:02]line СНО: Общий режим [18:27:02]line Чек 312 23.10.2024 18:27 [18:27:02]line Смена: 462 ФФД: 1.0 [18:27:02]line ЗНМ: 0300000155 [18:27:02]line РНМ: 0000000000100030 [18:27:02]line Версия ККМ: 001 [18:27:02]line ФМ: 0000000000965340 [18:27:02]line ФД: 188854 [18:27:02]line ФПД: 160624760613184 [18:27:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182702&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188854&fm=160624760613184&tin=02508201610067®Number=0000000000100030&sum=300000 [18:27:02]written 0, free lines is 4095 [18:27:02]OFD Sender: Processing packet 188854 [packets to send 1062, broken 1061] [18:27:02]ProducePacketName [18:27:02]name=ofd_packets/00188854 [18:27:02]OFD Sender: To server: pG, [18:27:02]CommunicateWithHost lk.salyk.kg:30040 [18:27:02]ConnectInit lk.salyk.kg [18:27:03]Connected sock=10 [18:27:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0C 4F 04 01 03 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F6 3F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E1 02 00 35 04 06 00 92 16 5D CC 69 40 40 12 E0 B2 75 94 33 A5 [18:27:03]Write to MH i2c: 01 00 00 D8 1D F5 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: 01 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: 01 07 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: 01 07 00 D8 1D 00 00 00 00 00 5B 0C 63 [18:27:03]RasterBufferAndPrint [18:27:03]line [18:27:03]line [18:27:03]line [18:27:03]line [18:27:03]line [18:27:03]written 0, free lines is 3167 [18:27:03]MH_Cut [18:27:03]Write to MH i2c: D1 01 00 DF 1D 01 CE [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: D1 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: D1 01 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: D1 01 00 DF 1D 00 CD [18:27:03]Write to MH i2c: 01 00 00 E0 1D FD [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D 4E 47 00 2D 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E1 02 00 F4 03 04 00 E0 E9 18 67 B6 04 01 00 00 FA 20 13 DB BF F8 0E 81 [18:27:03]CommunicateWithHost err = 0 [18:27:03]CheckOFDResponse [18:27:03]1017 (14) - 77093643461234 [18:27:03]1041 (16) - 0000000000965340 [18:27:03]1040 (4) - 188854 [18:27:03]1012 (4) - 23.10.2024 12:19 [18:27:03]1206 (1) - 0 [18:27:03]OFD Sender: Remove packet 188854 [18:27:03]ProducePacketName [18:27:03]name=ofd_packets/00188854 [18:27:03]NVStorageDeleteData [18:27:04]OFD Sender: No OFD packet to send [18:27:04]*** Cut start [18:27:04]*** Partial cut [18:27:04]*** CUTSNS_PIN = 1 [18:27:04]*** CUTSNS_PIN = 0 [18:27:04]*** Brake cut motor [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]*** Stop cut motor [18:27:05]*** Cut end [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 E0 1D 00 00 00 00 00 FF 0F 12 [18:27:05]process_action close_receipt done [18:27:05]requested_data is exist [18:27:05]produce_requested_data [18:27:05]requested_item fm.sn is exist - process it [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 11 00 00 [18:27:05]Write to MH i2c: E2 08 00 E1 1D 80 11 00 00 00 00 00 00 78 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 E1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [18:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:27:05]wFMCommunicate OK [18:27:05]requested_item fd.num is exist - process it [18:27:05]SAM_PROTO_GetFieldsCounters [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 13 00 00 [18:27:05]Write to MH i2c: E2 08 00 E2 1D 80 13 00 00 00 00 00 00 7B [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 62 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 62 00 E2 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [18:27:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:05]wFMCommunicate OK [18:27:05]SAM_PROTO_GetFieldsCounters done [18:27:05]requested_item shift.num is exist - process it [18:27:05]requested_item shift.opened is exist - process it [18:27:05]req_shift_opened [18:27:05]FM_GetShiftState [18:27:05]SAM_PROTO_GetShiftState [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 13 01 00 [18:27:05]Write to MH i2c: E2 08 00 E3 1D 80 13 01 00 00 00 00 00 7D [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0E 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0E 00 E3 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 65 [18:27:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:27:05]wFMCommunicate OK [18:27:05]SAM_PROTO_GetShiftState done [18:27:05]FM_GetShiftState done [18:27:05]req_shift_opened done [18:27:05]requested_item shift.open_date is exist - process it [18:27:05]req_shift_open_date [18:27:05]req_shift_open_date done [18:27:05]produce_requested_data done [18:27:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188854,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:27:05]process_action_free close_receipt [18:27:05]json_value_free [18:27:05]json_value_free done [18:27:05]process_json_proto returns [18:27:05]Send response to host [18:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188854,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:27:05]free response buf [18:27:05]execute_script done [18:27:05]execute_script returns [18:27:05]free content buf [18:27:05]Sock 7.Close socket [18:27:05]Sock 7.Thread stoped [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:01]accept exits with 9 [18:31:01]New connection [18:31:01]New thread 3067350372 created [18:31:01]Thread 3067207012 joined [18:31:01]Waiting for new connection... [18:31:01] Sock 9.Parse request [18:31:01]Sock 9.Check first char [18:31:01]Sock 9.First char is OK [18:31:01]request: POST /json_proto HTTP/1.0 [18:31:01]Method: POST [18:31:01]URL: /json_proto [18:31:01]Method is POST - this is cgi request [18:31:01]url: /json_proto [18:31:01]query_string will be loaded in cgi processing [18:31:01]execute_cgi json_proto POST (null) [18:31:01]execute_cgi path=json_proto method=POST [18:31:01]POST find Content-Length [18:31:01]Host: 172.17.42.131:8080 [18:31:01]Content-Length: 816 [18:31:01]Content-Type: application/json [18:31:01] [18:31:01]POST finish read [18:31:01]Found Content-Length = 816 [18:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:01]execute_script... [18:31:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:01]POST & json_proto [18:31:01]process_json_proto [18:31:01]json parsed OK: [18:31:01]protocol is kg_v1.0 [18:31:01]action value=close_receipt [18:31:01]process_action close_receipt [18:31:01]cmd_close_receipt [18:31:01]MH_GetDate [18:31:01]Write to MH i2c: F0 00 00 E4 1D F0 [18:31:01]Write i2c OK [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: F0 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: F0 09 00 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: F0 09 00 E4 1D 00 E7 40 19 67 A0 18 CA 66 88 [18:31:01]GetLastDocTimeStamp 1729708022 [18:31:01]current date 1729708263 [18:31:01]FM_GetShiftState [18:31:01]SAM_PROTO_GetShiftState [18:31:01]wFMCommunicate request_size=4 [18:31:01]MH_SAM_APDU [18:31:01]CAPDU: 80 13 01 00 [18:31:01]Write to MH i2c: E2 08 00 E5 1D 80 13 01 00 00 00 00 00 7F [18:31:01]Write i2c OK [18:31:01]MH_I2C_Read... [18:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:01]Read from MH i2c: E2 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 0E 00 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 0E 00 E5 1D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 67 [18:31:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:31:01]wFMCommunicate OK [18:31:01]SAM_PROTO_GetShiftState done [18:31:01]FM_GetShiftState done [18:31:01]opened in 1729642525 [18:31:01]opened+sec_in_day 1729728925 [18:31:01]quantity*price = 50041 [18:31:01]sum+1 = 50042 [18:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 313 23.10.2024 18:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188855 ФПД: 246618648993915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188855&fm=246618648993915&tin=02508201610067®Number=0000000000100030&sum=50041 [18:31:02]StoreToDocumentArchive [18:31:02]shift 462 fd 188855 [18:31:02]save to /storage/0462/doc_00188855 [18:31:02]save last doc name /storage/0462/doc_00188855 to /storage/kkm_last_doc_name [18:31:02]save OK [18:31:02]Clear old archive folders... [18:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:02]tlvbuf is 011943A0 [18:31:02]SAM_PROTO_ClearQueue [18:31:02]wFMCommunicate request_size=4 [18:31:02]MH_SAM_APDU [18:31:02]CAPDU: 80 09 00 00 [18:31:02]Write to MH i2c: E2 08 00 F2 1D 80 09 00 00 00 00 00 00 81 [18:31:02]Write i2c OK [18:31:02]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 F2 1D 00 90 00 83 [18:31:03]RAPDU: 90 00 [18:31:03]wFMCommunicate OK [18:31:03]SAM_PROTO_ClearQueue done [18:31:03]KKMCreateOFDPacket [18:31:03]OFDProtocolAddRootSTLVToBuf [18:31:03]FM_MakeSignedData [18:31:03]FM_MakeSignedData [18:31:03]SAM_PROTO_SignData [18:31:03]wFMCommunicate request_size=4 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 0D 01 02 [18:31:03]Write to MH i2c: E2 08 00 F3 1D 80 0D 01 02 00 00 00 00 89 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 F3 1D 00 90 00 84 [18:31:03]RAPDU: 90 00 [18:31:03]wFMCommunicate OK [18:31:03]wFMCommunicate request_size=255 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 E7 40 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E1 02 00 35 04 06 00 E0 [18:31:03]Write to MH i2c: E2 02 01 F4 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 E7 40 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E1 02 00 35 04 06 00 E0 00 00 78 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 F4 1D 00 90 00 85 [18:31:03]RAPDU: 90 00 [18:31:03]wFMCommunicate OK [18:31:03]wFMCommunicate request_size=10 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 0D 02 02 05 4C 60 F7 E0 7B [18:31:03]Write to MH i2c: E2 0D 00 F5 1D 80 0D 02 02 05 00 4C 60 F7 E0 7B 00 00 94 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 03 00 F5 1D 00 90 00 86 [18:31:03]RAPDU: 90 00 [18:31:03]wFMCommunicate OK [18:31:03]wFMCommunicate request_size=4 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 0D 03 02 [18:31:03]Write to MH i2c: E2 08 00 F6 1D 80 0D 03 02 00 00 00 00 8E [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 0B 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 0B 00 F6 1D 00 0C 7A 51 C8 B7 E6 88 6A 90 00 BD [18:31:03]RAPDU: 0C 7A 51 C8 B7 E6 88 6A 90 00 [18:31:03]wFMCommunicate OK [18:31:03]SAM_PROTO_SignData done [18:31:03]FM_MakeSignedData done [18:31:03]CreateOFDProtocolMessage [18:31:03]wFMCommunicate request_size=4 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 11 00 00 [18:31:03]Write to MH i2c: E2 08 00 F7 1D 80 11 00 00 00 00 00 00 8E [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 17 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 17 00 F7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [18:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:31:03]wFMCommunicate OK [18:31:03]CreateOFDProtocolMessage done [18:31:03]OFDSenderStorePacket 188855 [18:31:03]StoreOFDPacket docnum=188855 [18:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 E3 07 01 A8 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 E7 40 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E1 02 00 35 04 06 00 E0 4C 60 F7 E0 7B 0C 7A 51 C8 B7 E6 88 6A [18:31:03]CheckFolder [18:31:03]dirname=/storage/ofd_packets [18:31:03]CheckFolder done [18:31:03]ProducePacketName [18:31:03]name=ofd_packets/00188855 [18:31:03]NVStorageSaveData ofd_packets/00188855 [18:31:03]File name is /storage/ofd_packets/00188855 [18:31:03]Write 301 bytes [18:31:03]NVStorageSaveData done [18:31:03]OFDSenderStorePacket done [18:31:03]KKMCreateOFDPacket done [18:31:03]NVStorageSaveData kkm_last_timestamp [18:31:03]File name is /storage/kkm_last_timestamp [18:31:03]Write 4 bytes [18:31:03]NVStorageSaveData done [18:31:03]ExternCall_PrintAddStr [18:31:03]wPrintStart [18:31:03]Write to MH i2c: 01 00 00 F8 1D 15 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: 01 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: 01 07 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: 01 07 00 F8 1D 00 00 00 00 00 FF 0F 2A [18:31:03]RasterBufferAndPrint [18:31:03]line Счет N : (1)210916 [18:31:03]line ИНН: 02508201610067 [18:31:03]line Контрольно-Кассовый Чек [18:31:03]line ПРОДАЖА [18:31:03]line ТРК (МРК, ГНК) : 12 [18:31:03]line Товар: 2710124130 [18:31:03]line Аи-92-К-3 [18:31:03]line 7.480 * 66.90 [18:31:03]line = 500.41 [18:31:03]line НДС 12% НСП 1% [18:31:03]line > о реализуемом товаре [18:31:03]line ИТОГО: 500.41 [18:31:03]line НСП 1% : 4.43 [18:31:03]line НДС 12% : 53.14 [18:31:03]line Наличными: 0.00 [18:31:03]line Безнал.: 500.41 [18:31:03]line Место: АЗС № 86 "Партнер Нефть" [18:31:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:31:03]line СНО: Общий режим [18:31:03]line Чек 313 23.10.2024 18:31 [18:31:03]line Смена: 462 ФФД: 1.0 [18:31:03]line ЗНМ: 0300000155 [18:31:03]line РНМ: 0000000000100030 [18:31:03]line Версия ККМ: 001 [18:31:03]line Платежная система: Бакай Банк [18:31:03]line ФМ: 0000000000965340 [18:31:03]line ФД: 188855 [18:31:03]line ФПД: 246618648993915 [18:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188855&fm=246618648993915&tin=02508201610067®Number=0000000000100030&sum=50041 [18:31:03]written 0, free lines is 4095 [18:31:03]OFD Sender: Processing packet 188855 [packets to send 1062, broken 1061] [18:31:03]ProducePacketName [18:31:03]name=ofd_packets/00188855 [18:31:03]OFD Sender: To server: pG, [18:31:03]CommunicateWithHost lk.salyk.kg:30040 [18:31:03]ConnectInit lk.salyk.kg [18:31:03]Connected sock=10 [18:31:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 E3 07 01 A8 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 E7 40 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E1 02 00 35 04 06 00 E0 4C 60 F7 E0 7B 0C 7A 51 C8 B7 E6 88 6A [18:31:04]Write to MH i2c: 01 00 00 22 1E 40 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 07 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 73 0C C6 [18:31:04]RasterBufferAndPrint [18:31:04]line [18:31:04]line [18:31:04]line [18:31:04]line [18:31:04]line [18:31:04]written 0, free lines is 3191 [18:31:04]MH_Cut [18:31:04]Write to MH i2c: D1 01 00 29 1E 01 19 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: D1 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: D1 01 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: D1 01 00 29 1E 00 18 [18:31:04]Write to MH i2c: 01 00 00 2A 1E 48 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 32 C0 47 00 27 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E1 02 00 F4 03 04 00 D1 EA 18 67 B6 04 01 00 00 19 5A 4C BB E1 A0 AE 8B [18:31:04]CommunicateWithHost err = 0 [18:31:04]CheckOFDResponse [18:31:04]1017 (14) - 77093643461234 [18:31:04]1041 (16) - 0000000000965340 [18:31:04]1040 (4) - 188855 [18:31:04]1012 (4) - 23.10.2024 12:23 [18:31:04]1206 (1) - 0 [18:31:04]OFD Sender: Remove packet 188855 [18:31:04]ProducePacketName [18:31:04]name=ofd_packets/00188855 [18:31:04]NVStorageDeleteData [18:31:04]OFD Sender: No OFD packet to send [18:31:05]*** Cut start [18:31:05]*** Partial cut [18:31:05]*** CUTSNS_PIN = 1 [18:31:05]*** CUTSNS_PIN = 0 [18:31:05]*** Brake cut motor [18:31:05]Read from MH i2c: 01 [18:31:05]*** Stop cut motor [18:31:05]MH_I2C_Read... [18:31:05]*** Cut end [18:31:05]Read from MH i2c: 01 07 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: 01 07 00 2A 1E 00 00 00 00 00 FF 0F 5D [18:31:05]process_action close_receipt done [18:31:05]requested_data is exist [18:31:05]produce_requested_data [18:31:05]requested_item fm.sn is exist - process it [18:31:05]wFMCommunicate request_size=4 [18:31:05]MH_SAM_APDU [18:31:05]CAPDU: 80 11 00 00 [18:31:05]Write to MH i2c: E2 08 00 2B 1E 80 11 00 00 00 00 00 00 C3 [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:05]Read from MH i2c: E2 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 17 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 17 00 2B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [18:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:31:05]wFMCommunicate OK [18:31:05]requested_item fd.num is exist - process it [18:31:05]SAM_PROTO_GetFieldsCounters [18:31:05]wFMCommunicate request_size=4 [18:31:05]MH_SAM_APDU [18:31:05]CAPDU: 80 13 00 00 [18:31:05]Write to MH i2c: E2 08 00 2C 1E 80 13 00 00 00 00 00 00 C6 [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 62 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 62 00 2C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:06]wFMCommunicate OK [18:31:06]SAM_PROTO_GetFieldsCounters done [18:31:06]requested_item shift.num is exist - process it [18:31:06]requested_item shift.opened is exist - process it [18:31:06]req_shift_opened [18:31:06]FM_GetShiftState [18:31:06]SAM_PROTO_GetShiftState [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 13 01 00 [18:31:06]Write to MH i2c: E2 08 00 2D 1E 80 13 01 00 00 00 00 00 C8 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 0E 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 0E 00 2D 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B0 [18:31:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:31:06]wFMCommunicate OK [18:31:06]SAM_PROTO_GetShiftState done [18:31:06]FM_GetShiftState done [18:31:06]req_shift_opened done [18:31:06]requested_item shift.open_date is exist - process it [18:31:06]req_shift_open_date [18:31:06]req_shift_open_date done [18:31:06]produce_requested_data done [18:31:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188855,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:31:06]process_action_free close_receipt [18:31:06]json_value_free [18:31:06]json_value_free done [18:31:06]process_json_proto returns [18:31:06]Send response to host [18:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188855,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:31:06]free response buf [18:31:06]execute_script done [18:31:06]execute_script returns [18:31:06]free content buf [18:31:06]Sock 9.Close socket [18:31:06]Sock 9.Thread stoped [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:45]accept exits with 7 [18:31:45]New connection [18:31:45]New thread 3067207012 created [18:31:45]Thread 3067350372 joined [18:31:45]Waiting for new connection... [18:31:45] Sock 7.Parse request [18:31:45]Sock 7.Check first char [18:31:45]Sock 7.First char is OK [18:31:45]request: POST /json_proto HTTP/1.0 [18:31:45]Method: POST [18:31:45]URL: /json_proto [18:31:45]Method is POST - this is cgi request [18:31:45]url: /json_proto [18:31:45]query_string will be loaded in cgi processing [18:31:45]execute_cgi json_proto POST (null) [18:31:45]execute_cgi path=json_proto method=POST [18:31:45]POST find Content-Length [18:31:45]Host: 172.17.42.131:8080 [18:31:45]Content-Length: 682 [18:31:45]Content-Type: application/json [18:31:45] [18:31:45]POST finish read [18:31:45]Found Content-Length = 682 [18:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:45]execute_script... [18:31:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:45]POST & json_proto [18:31:45]process_json_proto [18:31:45]json parsed OK: [18:31:45]protocol is kg_v1.0 [18:31:45]action value=close_receipt [18:31:45]process_action close_receipt [18:31:45]cmd_close_receipt [18:31:45]MH_GetDate [18:31:45]Write to MH i2c: F0 00 00 2E 1E 3B [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: F0 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: F0 09 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: F0 09 00 2E 1E 00 13 41 19 67 A0 18 CA 66 00 [18:31:45]GetLastDocTimeStamp 1729708263 [18:31:45]current date 1729708307 [18:31:45]FM_GetShiftState [18:31:45]SAM_PROTO_GetShiftState [18:31:45]wFMCommunicate request_size=4 [18:31:45]MH_SAM_APDU [18:31:45]CAPDU: 80 13 01 00 [18:31:45]Write to MH i2c: E2 08 00 2F 1E 80 13 01 00 00 00 00 00 CA [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:45]Read from MH i2c: E2 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 0E 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 0E 00 2F 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B2 [18:31:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:31:45]wFMCommunicate OK [18:31:45]SAM_PROTO_GetShiftState done [18:31:45]FM_GetShiftState done [18:31:45]opened in 1729642525 [18:31:45]opened+sec_in_day 1729728925 [18:31:45]quantity*price = 200043 [18:31:45]sum+1 = 200044 [18:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 314 23.10.2024 18:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188856 ФПД: 109879195137658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183147&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188856&fm=109879195137658&tin=02508201610067®Number=0000000000100030&sum=200000 [18:31:46]StoreToDocumentArchive [18:31:46]shift 462 fd 188856 [18:31:46]save to /storage/0462/doc_00188856 [18:31:46]save last doc name /storage/0462/doc_00188856 to /storage/kkm_last_doc_name [18:31:46]save OK [18:31:46]Clear old archive folders... [18:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:46]tlvbuf is 01123CE0 [18:31:46]SAM_PROTO_ClearQueue [18:31:46]wFMCommunicate request_size=4 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 09 00 00 [18:31:46]Write to MH i2c: E2 08 00 3C 1E 80 09 00 00 00 00 00 00 CC [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:46]Read from MH i2c: E2 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 3C 1E 00 90 00 CE [18:31:46]RAPDU: 90 00 [18:31:46]wFMCommunicate OK [18:31:46]SAM_PROTO_ClearQueue done [18:31:46]KKMCreateOFDPacket [18:31:46]OFDProtocolAddRootSTLVToBuf [18:31:46]FM_MakeSignedData [18:31:46]FM_MakeSignedData [18:31:46]SAM_PROTO_SignData [18:31:46]wFMCommunicate request_size=4 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 0D 01 02 [18:31:46]Write to MH i2c: E2 08 00 3D 1E 80 0D 01 02 00 00 00 00 D4 [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:46]Read from MH i2c: E2 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 3D 1E 00 90 00 CF [18:31:46]RAPDU: 90 00 [18:31:46]wFMCommunicate OK [18:31:46]wFMCommunicate request_size=255 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 13 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E1 02 00 35 04 06 00 63 [18:31:46]Write to MH i2c: E2 02 01 3E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 13 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E1 02 00 35 04 06 00 63 00 00 CB [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 03 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 03 00 3E 1E 00 90 00 D0 [18:31:47]RAPDU: 90 00 [18:31:47]wFMCommunicate OK [18:31:47]wFMCommunicate request_size=10 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 0D 02 02 05 EF 3E 64 F6 7A [18:31:47]Write to MH i2c: E2 0D 00 3F 1E 80 0D 02 02 05 00 EF 3E 64 F6 7A 00 00 E2 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 03 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 03 00 3F 1E 00 90 00 D1 [18:31:47]RAPDU: 90 00 [18:31:47]wFMCommunicate OK [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 0D 03 02 [18:31:47]Write to MH i2c: E2 08 00 40 1E 80 0D 03 02 00 00 00 00 D9 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 0B 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 0B 00 40 1E 00 AB 6C B8 C9 3A D1 64 34 90 00 15 [18:31:47]RAPDU: AB 6C B8 C9 3A D1 64 34 90 00 [18:31:47]wFMCommunicate OK [18:31:47]SAM_PROTO_SignData done [18:31:47]FM_MakeSignedData done [18:31:47]CreateOFDProtocolMessage [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 11 00 00 [18:31:47]Write to MH i2c: E2 08 00 41 1E 80 11 00 00 00 00 00 00 D9 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 17 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 17 00 41 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [18:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:31:47]wFMCommunicate OK [18:31:47]CreateOFDProtocolMessage done [18:31:47]OFDSenderStorePacket 188856 [18:31:47]StoreOFDPacket docnum=188856 [18:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 EA 07 01 DD 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 13 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E1 02 00 35 04 06 00 63 EF 3E 64 F6 7A AB 6C B8 C9 3A D1 64 34 [18:31:47]CheckFolder [18:31:47]dirname=/storage/ofd_packets [18:31:47]CheckFolder done [18:31:47]ProducePacketName [18:31:47]name=ofd_packets/00188856 [18:31:47]NVStorageSaveData ofd_packets/00188856 [18:31:47]File name is /storage/ofd_packets/00188856 [18:31:47]Write 301 bytes [18:31:47]NVStorageSaveData done [18:31:47]OFDSenderStorePacket done [18:31:47]KKMCreateOFDPacket done [18:31:47]NVStorageSaveData kkm_last_timestamp [18:31:47]File name is /storage/kkm_last_timestamp [18:31:47]Write 4 bytes [18:31:47]NVStorageSaveData done [18:31:47]ExternCall_PrintAddStr [18:31:47]wPrintStart [18:31:47]Write to MH i2c: 01 00 00 42 1E 60 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: 01 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: 01 07 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 FF 0F 75 [18:31:47]RasterBufferAndPrint [18:31:47]line Счет N : (1)210917 [18:31:47]line ИНН: 02508201610067 [18:31:47]line Контрольно-Кассовый Чек [18:31:47]line ПРОДАЖА [18:31:47]line ТРК (МРК, ГНК) : 23 [18:31:47]line Товар: 2710124500 [18:31:47]line Аи-95-К-3 [18:31:47]line 26.960 * 74.20 [18:31:47]line = 2000.43 [18:31:47]line НДС 12% НСП 1% [18:31:47]line > о реализуемом товаре [18:31:47]line ОКРУГЛЕНИЕ: -0.43 [18:31:47]line ИТОГО: 2000.00 [18:31:47]line Внесено: 2000.00 [18:31:47]line СДАЧА: 0.00 [18:31:47]line НСП 1% : 17.70 [18:31:47]line НДС 12% : 212.43 [18:31:47]line Наличными: 2000.00 [18:31:47]line Безнал.: 0.00 [18:31:47]line Место: АЗС № 86 "Партнер Нефть" [18:31:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:31:47]line СНО: Общий режим [18:31:47]line Чек 314 23.10.2024 18:31 [18:31:47]line Смена: 462 ФФД: 1.0 [18:31:47]line ЗНМ: 0300000155 [18:31:47]line РНМ: 0000000000100030 [18:31:47]line Версия ККМ: 001 [18:31:47]line ФМ: 0000000000965340 [18:31:47]line ФД: 188856 [18:31:47]line ФПД: 109879195137658 [18:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183147&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188856&fm=109879195137658&tin=02508201610067®Number=0000000000100030&sum=200000 [18:31:47]OFD Sender: Processing packet 188856 [packets to send 1062, broken 1061] [18:31:47]ProducePacketName [18:31:47]name=ofd_packets/00188856 [18:31:47]OFD Sender: To server: pG, [18:31:47]CommunicateWithHost lk.salyk.kg:30040 [18:31:47]ConnectInit lk.salyk.kg [18:31:47]written 0, free lines is 4095 [18:31:47]Connected sock=10 [18:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 EA 07 01 DD 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 13 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E1 02 00 35 04 06 00 63 EF 3E 64 F6 7A AB 6C B8 C9 3A D1 64 34 [18:31:48]Write to MH i2c: 01 00 00 6D 1E 8B [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: 01 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: 01 07 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 5A 0C F8 [18:31:48]RasterBufferAndPrint [18:31:48]line [18:31:48]line [18:31:48]line [18:31:48]line [18:31:48]line [18:31:48]written 0, free lines is 3166 [18:31:48]MH_Cut [18:31:48]Write to MH i2c: D1 01 00 74 1E 01 64 [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: D1 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: D1 01 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: D1 01 00 74 1E 00 63 [18:31:48]Write to MH i2c: 01 00 00 75 1E 93 [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 19 44 47 00 3E 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E1 02 00 F4 03 04 00 FD EA 18 67 B6 04 01 00 00 64 D3 E8 17 47 C1 F9 A2 [18:31:48]CommunicateWithHost err = 0 [18:31:48]CheckOFDResponse [18:31:48]1017 (14) - 77093643461234 [18:31:48]1041 (16) - 0000000000965340 [18:31:48]1040 (4) - 188856 [18:31:48]1012 (4) - 23.10.2024 12:24 [18:31:48]1206 (1) - 0 [18:31:48]OFD Sender: Remove packet 188856 [18:31:48]ProducePacketName [18:31:48]name=ofd_packets/00188856 [18:31:48]NVStorageDeleteData [18:31:48]OFD Sender: No OFD packet to send [18:31:49]*** Cut start [18:31:49]*** Partial cut [18:31:49]*** CUTSNS_PIN = 1 [18:31:49]*** CUTSNS_PIN = 0 [18:31:49]*** Brake cut motor [18:31:50]Read from MH i2c: 01 [18:31:50]MH_I2C_Read... [18:31:50]*** Stop cut motor [18:31:50]*** Cut end [18:31:50]Read from MH i2c: 01 07 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 FF 0F A8 [18:31:50]process_action close_receipt done [18:31:50]requested_data is exist [18:31:50]produce_requested_data [18:31:50]requested_item fm.sn is exist - process it [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 11 00 00 [18:31:50]Write to MH i2c: E2 08 00 76 1E 80 11 00 00 00 00 00 00 0E [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 17 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 17 00 76 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5C [18:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:31:50]wFMCommunicate OK [18:31:50]requested_item fd.num is exist - process it [18:31:50]SAM_PROTO_GetFieldsCounters [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 13 00 00 [18:31:50]Write to MH i2c: E2 08 00 77 1E 80 13 00 00 00 00 00 00 11 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 62 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 62 00 77 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:50]wFMCommunicate OK [18:31:50]SAM_PROTO_GetFieldsCounters done [18:31:50]requested_item shift.num is exist - process it [18:31:50]requested_item shift.opened is exist - process it [18:31:50]req_shift_opened [18:31:50]FM_GetShiftState [18:31:50]SAM_PROTO_GetShiftState [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 13 01 00 [18:31:50]Write to MH i2c: E2 08 00 78 1E 80 13 01 00 00 00 00 00 13 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0E 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0E 00 78 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FB [18:31:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:31:50]wFMCommunicate OK [18:31:50]SAM_PROTO_GetShiftState done [18:31:50]FM_GetShiftState done [18:31:50]req_shift_opened done [18:31:50]requested_item shift.open_date is exist - process it [18:31:50]req_shift_open_date [18:31:50]req_shift_open_date done [18:31:50]produce_requested_data done [18:31:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188856,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:31:50]process_action_free close_receipt [18:31:50]json_value_free [18:31:50]json_value_free done [18:31:50]process_json_proto returns [18:31:50]Send response to host [18:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188856,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:31:50]free response buf [18:31:50]execute_script done [18:31:50]execute_script returns [18:31:50]free content buf [18:31:50]Sock 7.Close socket [18:31:50]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:46]accept exits with 9 [18:33:46]New connection [18:33:46]New thread 3067350372 created [18:33:46]Thread 3067207012 joined [18:33:46]Waiting for new connection... [18:33:46] Sock 9.Parse request [18:33:46]Sock 9.Check first char [18:33:46]Sock 9.First char is OK [18:33:46]request: POST /json_proto HTTP/1.0 [18:33:46]Method: POST [18:33:46]URL: /json_proto [18:33:46]Method is POST - this is cgi request [18:33:46]url: /json_proto [18:33:46]query_string will be loaded in cgi processing [18:33:46]execute_cgi json_proto POST (null) [18:33:46]execute_cgi path=json_proto method=POST [18:33:46]POST find Content-Length [18:33:46]Host: 172.17.42.131:8080 [18:33:46]Content-Length: 775 [18:33:46]Content-Type: application/json [18:33:46] [18:33:46]POST finish read [18:33:46]Found Content-Length = 775 [18:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:46]execute_script... [18:33:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:46]POST & json_proto [18:33:46]process_json_proto [18:33:46]json parsed OK: [18:33:46]protocol is kg_v1.0 [18:33:46]action value=close_receipt [18:33:46]process_action close_receipt [18:33:46]cmd_close_receipt [18:33:46]MH_GetDate [18:33:46]Write to MH i2c: F0 00 00 79 1E 86 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: F0 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: F0 09 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: F0 09 00 79 1E 00 8C 41 19 67 A0 18 CA 66 C4 [18:33:46]GetLastDocTimeStamp 1729708307 [18:33:46]current date 1729708428 [18:33:46]FM_GetShiftState [18:33:46]SAM_PROTO_GetShiftState [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 13 01 00 [18:33:46]Write to MH i2c: E2 08 00 7A 1E 80 13 01 00 00 00 00 00 15 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 0E 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 0E 00 7A 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FD [18:33:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:33:46]wFMCommunicate OK [18:33:46]SAM_PROTO_GetShiftState done [18:33:46]FM_GetShiftState done [18:33:46]opened in 1729642525 [18:33:46]opened+sec_in_day 1729728925 [18:33:46]quantity*price = 100051 [18:33:46]sum+1 = 100052 [18:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 315 23.10.2024 18:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188857 ФПД: 4738245026280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183348&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188857&fm=4738245026280&tin=02508201610067®Number=0000000000100030&sum=100051 [18:33:47]StoreToDocumentArchive [18:33:47]shift 462 fd 188857 [18:33:47]save to /storage/0462/doc_00188857 [18:33:47]save last doc name /storage/0462/doc_00188857 to /storage/kkm_last_doc_name [18:33:47]save OK [18:33:47]Clear old archive folders... [18:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:33:47]tlvbuf is 01125CD0 [18:33:47]SAM_PROTO_ClearQueue [18:33:47]wFMCommunicate request_size=4 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 09 00 00 [18:33:47]Write to MH i2c: E2 08 00 87 1E 80 09 00 00 00 00 00 00 17 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 03 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 03 00 87 1E 00 90 00 19 [18:33:47]RAPDU: 90 00 [18:33:47]wFMCommunicate OK [18:33:47]SAM_PROTO_ClearQueue done [18:33:47]KKMCreateOFDPacket [18:33:47]OFDProtocolAddRootSTLVToBuf [18:33:47]FM_MakeSignedData [18:33:47]FM_MakeSignedData [18:33:47]SAM_PROTO_SignData [18:33:47]wFMCommunicate request_size=4 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 0D 01 02 [18:33:47]Write to MH i2c: E2 08 00 88 1E 80 0D 01 02 00 00 00 00 1F [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 03 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 03 00 88 1E 00 90 00 1A [18:33:47]RAPDU: 90 00 [18:33:47]wFMCommunicate OK [18:33:47]wFMCommunicate request_size=255 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 8C 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E1 02 [18:33:47]Write to MH i2c: E2 02 01 89 1E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 8C 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E1 02 00 00 D6 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:48]Read from MH i2c: E2 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 03 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 03 00 89 1E 00 90 00 1B [18:33:48]RAPDU: 90 00 [18:33:48]wFMCommunicate OK [18:33:48]wFMCommunicate request_size=16 [18:33:48]MH_SAM_APDU [18:33:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 04 4F 35 69 61 E8 [18:33:48]Write to MH i2c: E2 13 00 8A 1E 80 0D 02 02 0B 00 00 35 04 06 00 04 4F 35 69 61 E8 00 00 B1 [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:48]Read from MH i2c: E2 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 03 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 03 00 8A 1E 00 90 00 1C [18:33:48]RAPDU: 90 00 [18:33:48]wFMCommunicate OK [18:33:48]wFMCommunicate request_size=4 [18:33:48]MH_SAM_APDU [18:33:48]CAPDU: 80 0D 03 02 [18:33:48]Write to MH i2c: E2 08 00 8B 1E 80 0D 03 02 00 00 00 00 24 [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:48]Read from MH i2c: E2 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 0B 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 0B 00 8B 1E 00 0D E7 DE 71 64 65 BC 61 90 00 4E [18:33:48]RAPDU: 0D E7 DE 71 64 65 BC 61 90 00 [18:33:48]wFMCommunicate OK [18:33:48]SAM_PROTO_SignData done [18:33:48]FM_MakeSignedData done [18:33:48]CreateOFDProtocolMessage [18:33:48]wFMCommunicate request_size=4 [18:33:48]MH_SAM_APDU [18:33:48]CAPDU: 80 11 00 00 [18:33:48]Write to MH i2c: E2 08 00 8C 1E 80 11 00 00 00 00 00 00 24 [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:48]Read from MH i2c: E2 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 17 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 17 00 8C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [18:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:33:48]wFMCommunicate OK [18:33:48]CreateOFDProtocolMessage done [18:33:48]OFDSenderStorePacket 188857 [18:33:48]StoreOFDPacket docnum=188857 [18:33:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 86 51 0D 01 FB 7A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 8C 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E1 02 00 35 04 06 00 04 4F 35 69 61 E8 0D E7 DE 71 64 65 BC 61 [18:33:48]CheckFolder [18:33:48]dirname=/storage/ofd_packets [18:33:48]CheckFolder done [18:33:48]ProducePacketName [18:33:48]name=ofd_packets/00188857 [18:33:48]NVStorageSaveData ofd_packets/00188857 [18:33:48]File name is /storage/ofd_packets/00188857 [18:33:48]Write 307 bytes [18:33:48]NVStorageSaveData done [18:33:48]OFDSenderStorePacket done [18:33:48]KKMCreateOFDPacket done [18:33:48]NVStorageSaveData kkm_last_timestamp [18:33:48]File name is /storage/kkm_last_timestamp [18:33:48]Write 4 bytes [18:33:48]NVStorageSaveData done [18:33:48]ExternCall_PrintAddStr [18:33:48]wPrintStart [18:33:48]Write to MH i2c: 01 00 00 8D 1E AB [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: 01 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: 01 07 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 FF 0F C0 [18:33:48]RasterBufferAndPrint [18:33:48]line Счет N : (1)210918 [18:33:48]line ИНН: 02508201610067 [18:33:48]line Контрольно-Кассовый Чек [18:33:48]line ПРОДАЖА [18:33:48]line ТРК (МРК, ГНК) : 31 [18:33:48]line Товар: 2710194210 [18:33:48]line D-ENERGY ДТ-К-5 [18:33:48]line 12.960 * 77.20 [18:33:48]line = 1000.51 [18:33:48]line НДС 12% НСП 1% [18:33:48]line > о реализуемом товаре [18:33:48]line ИТОГО: 1000.51 [18:33:48]line НСП 1% : 8.85 [18:33:48]line НДС 12% : 106.25 [18:33:48]line Наличными: 0.00 [18:33:48]line Безнал.: 1000.51 [18:33:48]line Место: АЗС № 86 "Партнер Нефть" [18:33:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:33:48]line СНО: Общий режим [18:33:48]line Чек 315 23.10.2024 18:33 [18:33:48]line Смена: 462 ФФД: 1.0 [18:33:48]line ЗНМ: 0300000155 [18:33:48]line РНМ: 0000000000100030 [18:33:48]line Версия ККМ: 001 [18:33:48]line Платежная система: Mbank [18:33:48]line ФМ: 0000000000965340 [18:33:48]line ФД: 188857 [18:33:48]line ФПД: 4738245026280 [18:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183348&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188857&fm=4738245026280&tin=02508201610067®Number=0000000000100030&sum=100051 [18:33:48]written 0, free lines is 4095 [18:33:48]OFD Sender: Processing packet 188857 [packets to send 1062, broken 1061] [18:33:48]ProducePacketName [18:33:48]name=ofd_packets/00188857 [18:33:48]OFD Sender: To server: pG, [18:33:48]CommunicateWithHost lk.salyk.kg:30040 [18:33:48]ConnectInit lk.salyk.kg [18:33:48]Connected sock=10 [18:33:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 86 51 0D 01 FB 7A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 8C 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E1 02 00 35 04 06 00 04 4F 35 69 61 E8 0D E7 DE 71 64 65 BC 61 [18:33:48]Write to MH i2c: 01 00 00 B6 1E D4 [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: 01 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: 01 07 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: 01 07 00 B6 1E 00 00 00 00 00 88 0C 6F [18:33:48]RasterBufferAndPrint [18:33:48]line [18:33:48]line [18:33:48]line [18:33:48]line [18:33:48]line [18:33:48]written 0, free lines is 3212 [18:33:48]MH_Cut [18:33:48]Write to MH i2c: D1 01 00 BD 1E 01 AD [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: D1 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: D1 01 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: D1 01 00 BD 1E 00 AC [18:33:48]Write to MH i2c: 01 00 00 BE 1E DC [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E2 CE 47 00 72 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E1 02 00 F4 03 04 00 76 EB 18 67 B6 04 01 00 00 73 2B 68 1F ED 2F A8 1C [18:33:49]CommunicateWithHost err = 0 [18:33:49]CheckOFDResponse [18:33:49]1017 (14) - 77093643461234 [18:33:49]1041 (16) - 0000000000965340 [18:33:49]1040 (4) - 188857 [18:33:49]1012 (4) - 23.10.2024 12:26 [18:33:49]1206 (1) - 0 [18:33:49]OFD Sender: Remove packet 188857 [18:33:49]ProducePacketName [18:33:49]name=ofd_packets/00188857 [18:33:49]NVStorageDeleteData [18:33:49]OFD Sender: No OFD packet to send [18:33:50]*** Cut start [18:33:50]*** Partial cut [18:33:50]*** CUTSNS_PIN = 1 [18:33:50]*** CUTSNS_PIN = 0 [18:33:50]*** Brake cut motor [18:33:50]Read from MH i2c: 01 [18:33:50]MH_I2C_Read... [18:33:50]*** Stop cut motor [18:33:50]*** Cut end [18:33:50]Read from MH i2c: 01 07 00 [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: 01 07 00 BE 1E 00 00 00 00 00 FF 0F F1 [18:33:50]process_action close_receipt done [18:33:50]requested_data is exist [18:33:50]produce_requested_data [18:33:50]requested_item fm.sn is exist - process it [18:33:50]wFMCommunicate request_size=4 [18:33:50]MH_SAM_APDU [18:33:50]CAPDU: 80 11 00 00 [18:33:50]Write to MH i2c: E2 08 00 BF 1E 80 11 00 00 00 00 00 00 57 [18:33:50]Write i2c OK [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: E2 [18:33:50]MH_I2C_Read... [18:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:50]Read from MH i2c: E2 17 00 [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: E2 17 00 BF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [18:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:33:50]wFMCommunicate OK [18:33:50]requested_item fd.num is exist - process it [18:33:50]SAM_PROTO_GetFieldsCounters [18:33:50]wFMCommunicate request_size=4 [18:33:50]MH_SAM_APDU [18:33:50]CAPDU: 80 13 00 00 [18:33:50]Write to MH i2c: E2 08 00 C0 1E 80 13 00 00 00 00 00 00 5A [18:33:50]Write i2c OK [18:33:50]MH_I2C_Read... [18:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:50]Read from MH i2c: E2 [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: E2 62 00 [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: E2 62 00 C0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [18:33:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:50]wFMCommunicate OK [18:33:50]SAM_PROTO_GetFieldsCounters done [18:33:50]requested_item shift.num is exist - process it [18:33:50]requested_item shift.opened is exist - process it [18:33:50]req_shift_opened [18:33:50]FM_GetShiftState [18:33:50]SAM_PROTO_GetShiftState [18:33:50]wFMCommunicate request_size=4 [18:33:50]MH_SAM_APDU [18:33:50]CAPDU: 80 13 01 00 [18:33:50]Write to MH i2c: E2 08 00 C1 1E 80 13 01 00 00 00 00 00 5C [18:33:50]Write i2c OK [18:33:50]MH_I2C_Read... [18:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:50]Read from MH i2c: E2 [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: E2 0E 00 [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: E2 0E 00 C1 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 44 [18:33:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:33:50]wFMCommunicate OK [18:33:50]SAM_PROTO_GetShiftState done [18:33:50]FM_GetShiftState done [18:33:50]req_shift_opened done [18:33:50]requested_item shift.open_date is exist - process it [18:33:50]req_shift_open_date [18:33:50]req_shift_open_date done [18:33:50]produce_requested_data done [18:33:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188857,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:33:50]process_action_free close_receipt [18:33:50]json_value_free [18:33:50]json_value_free done [18:33:50]process_json_proto returns [18:33:50]Send response to host [18:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188857,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:33:50]free response buf [18:33:50]execute_script done [18:33:50]execute_script returns [18:33:50]free content buf [18:33:50]Sock 9.Close socket [18:33:50]Sock 9.Thread stoped [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]accept exits with 7 [18:34:34]New connection [18:34:34]New thread 3067207012 created [18:34:34]Thread 3067350372 joined [18:34:34]Waiting for new connection... [18:34:34] Sock 7.Parse request [18:34:34]Sock 7.Check first char [18:34:34]Sock 7.First char is OK [18:34:34]request: POST /json_proto HTTP/1.0 [18:34:34]Method: POST [18:34:34]URL: /json_proto [18:34:34]Method is POST - this is cgi request [18:34:34]url: /json_proto [18:34:34]query_string will be loaded in cgi processing [18:34:34]execute_cgi json_proto POST (null) [18:34:34]execute_cgi path=json_proto method=POST [18:34:34]POST find Content-Length [18:34:34]Host: 172.17.42.131:8080 [18:34:34]Content-Length: 677 [18:34:34]Content-Type: application/json [18:34:34] [18:34:34]POST finish read [18:34:34]Found Content-Length = 677 [18:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:34]execute_script... [18:34:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:34]POST & json_proto [18:34:34]process_json_proto [18:34:34]json parsed OK: [18:34:34]protocol is kg_v1.0 [18:34:34]action value=close_receipt [18:34:34]process_action close_receipt [18:34:34]cmd_close_receipt [18:34:34]MH_GetDate [18:34:34]Write to MH i2c: F0 00 00 C2 1E CF [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: F0 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: F0 09 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: F0 09 00 C2 1E 00 BB 41 19 67 A0 18 CA 66 3C [18:34:34]GetLastDocTimeStamp 1729708428 [18:34:34]current date 1729708475 [18:34:34]FM_GetShiftState [18:34:34]SAM_PROTO_GetShiftState [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 13 01 00 [18:34:34]Write to MH i2c: E2 08 00 C3 1E 80 13 01 00 00 00 00 00 5E [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0E 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0E 00 C3 1E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 46 [18:34:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:34:34]wFMCommunicate OK [18:34:34]SAM_PROTO_GetShiftState done [18:34:34]FM_GetShiftState done [18:34:34]opened in 1729642525 [18:34:34]opened+sec_in_day 1729728925 [18:34:34]quantity*price = 40006 [18:34:34]sum+1 = 40007 [18:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 316 23.10.2024 18:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188858 ФПД: 66217045626735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183435&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188858&fm=66217045626735&tin=02508201610067®Number=0000000000100030&sum=40000 [18:34:35]StoreToDocumentArchive [18:34:35]shift 462 fd 188858 [18:34:35]save to /storage/0462/doc_00188858 [18:34:35]save last doc name /storage/0462/doc_00188858 to /storage/kkm_last_doc_name [18:34:35]save OK [18:34:35]Clear old archive folders... [18:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:35]tlvbuf is B6FB97D0 [18:34:35]SAM_PROTO_ClearQueue [18:34:35]wFMCommunicate request_size=4 [18:34:35]MH_SAM_APDU [18:34:35]CAPDU: 80 09 00 00 [18:34:35]Write to MH i2c: E2 08 00 D0 1E 80 09 00 00 00 00 00 00 60 [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 [18:34:35]MH_I2C_Read... [18:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:35]Read from MH i2c: E2 03 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 03 00 D0 1E 00 90 00 62 [18:34:35]RAPDU: 90 00 [18:34:35]wFMCommunicate OK [18:34:35]SAM_PROTO_ClearQueue done [18:34:35]KKMCreateOFDPacket [18:34:35]OFDProtocolAddRootSTLVToBuf [18:34:35]FM_MakeSignedData [18:34:35]FM_MakeSignedData [18:34:35]SAM_PROTO_SignData [18:34:35]wFMCommunicate request_size=4 [18:34:35]MH_SAM_APDU [18:34:35]CAPDU: 80 0D 01 02 [18:34:35]Write to MH i2c: E2 08 00 D1 1E 80 0D 01 02 00 00 00 00 68 [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:35]Read from MH i2c: E2 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 03 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 03 00 D1 1E 00 90 00 63 [18:34:35]RAPDU: 90 00 [18:34:35]wFMCommunicate OK [18:34:35]wFMCommunicate request_size=255 [18:34:35]MH_SAM_APDU [18:34:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 BB 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E1 02 00 35 04 06 00 3C [18:34:35]Write to MH i2c: E2 02 01 D2 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 BB 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E1 02 00 35 04 06 00 3C 00 00 0B [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:35]Read from MH i2c: E2 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 03 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 03 00 D2 1E 00 90 00 64 [18:34:35]RAPDU: 90 00 [18:34:35]wFMCommunicate OK [18:34:35]wFMCommunicate request_size=10 [18:34:35]MH_SAM_APDU [18:34:35]CAPDU: 80 0D 02 02 05 39 5B 7B 8F 6F [18:34:35]Write to MH i2c: E2 0D 00 D3 1E 80 0D 02 02 05 00 39 5B 7B 8F 6F 00 00 82 [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:35]Read from MH i2c: E2 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 03 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 03 00 D3 1E 00 90 00 65 [18:34:35]RAPDU: 90 00 [18:34:35]wFMCommunicate OK [18:34:35]wFMCommunicate request_size=4 [18:34:35]MH_SAM_APDU [18:34:35]CAPDU: 80 0D 03 02 [18:34:35]Write to MH i2c: E2 08 00 D4 1E 80 0D 03 02 00 00 00 00 6D [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:35]Read from MH i2c: E2 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 0B 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 0B 00 D4 1E 00 72 E5 5B 4B 33 36 C1 5F 90 00 F4 [18:34:35]RAPDU: 72 E5 5B 4B 33 36 C1 5F 90 00 [18:34:35]wFMCommunicate OK [18:34:35]SAM_PROTO_SignData done [18:34:35]FM_MakeSignedData done [18:34:35]CreateOFDProtocolMessage [18:34:35]wFMCommunicate request_size=4 [18:34:35]MH_SAM_APDU [18:34:35]CAPDU: 80 11 00 00 [18:34:35]Write to MH i2c: E2 08 00 D5 1E 80 11 00 00 00 00 00 00 6D [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:35]Read from MH i2c: E2 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 17 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: E2 17 00 D5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [18:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:34:35]wFMCommunicate OK [18:34:35]CreateOFDProtocolMessage done [18:34:35]OFDSenderStorePacket 188858 [18:34:35]StoreOFDPacket docnum=188858 [18:34:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CF 70 07 01 99 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 BB 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E1 02 00 35 04 06 00 3C 39 5B 7B 8F 6F 72 E5 5B 4B 33 36 C1 5F [18:34:35]CheckFolder [18:34:35]dirname=/storage/ofd_packets [18:34:35]CheckFolder done [18:34:35]ProducePacketName [18:34:35]name=ofd_packets/00188858 [18:34:35]NVStorageSaveData ofd_packets/00188858 [18:34:35]File name is /storage/ofd_packets/00188858 [18:34:35]Write 301 bytes [18:34:35]NVStorageSaveData done [18:34:35]OFDSenderStorePacket done [18:34:35]KKMCreateOFDPacket done [18:34:35]NVStorageSaveData kkm_last_timestamp [18:34:35]File name is /storage/kkm_last_timestamp [18:34:35]Write 4 bytes [18:34:35]NVStorageSaveData done [18:34:35]ExternCall_PrintAddStr [18:34:35]wPrintStart [18:34:35]Write to MH i2c: 01 00 00 D6 1E F4 [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 07 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 07 00 D6 1E 00 00 00 00 00 FF 0F 09 [18:34:35]RasterBufferAndPrint [18:34:35]line Счет N : (1)210919 [18:34:35]line ИНН: 02508201610067 [18:34:35]line Контрольно-Кассовый Чек [18:34:35]line ПРОДАЖА [18:34:35]line ТРК (МРК, ГНК) : 22 [18:34:35]line Товар: 2710124130 [18:34:35]line Аи-92-К-3 [18:34:35]line 5.980 * 66.90 [18:34:35]line = 400.06 [18:34:35]line НДС 12% НСП 1% [18:34:35]line > о реализуемом товаре [18:34:35]line ОКРУГЛЕНИЕ: -0.06 [18:34:35]line ИТОГО: 400.00 [18:34:35]line Внесено: 400.00 [18:34:35]line СДАЧА: 0.00 [18:34:35]line НСП 1% : 3.54 [18:34:35]line НДС 12% : 42.48 [18:34:35]line Наличными: 400.00 [18:34:35]line Безнал.: 0.00 [18:34:35]line Место: АЗС № 86 "Партнер Нефть" [18:34:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:34:35]line СНО: Общий режим [18:34:35]line Чек 316 23.10.2024 18:34 [18:34:35]line Смена: 462 ФФД: 1.0 [18:34:35]line ЗНМ: 0300000155 [18:34:35]line РНМ: 0000000000100030 [18:34:35]line Версия ККМ: 001 [18:34:35]line ФМ: 0000000000965340 [18:34:35]line ФД: 188858 [18:34:35]line ФПД: 66217045626735 [18:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183435&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188858&fm=66217045626735&tin=02508201610067®Number=0000000000100030&sum=40000 [18:34:36]OFD Sender: Processing packet 188858 [packets to send 1062, broken 1061] [18:34:36]ProducePacketName [18:34:36]name=ofd_packets/00188858 [18:34:36]OFD Sender: To server: pG, [18:34:36]CommunicateWithHost lk.salyk.kg:30040 [18:34:36]ConnectInit lk.salyk.kg [18:34:36]written 0, free lines is 4095 [18:34:36]Connected sock=10 [18:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CF 70 07 01 99 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 BB 41 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E1 02 00 35 04 06 00 3C 39 5B 7B 8F 6F 72 E5 5B 4B 33 36 C1 5F [18:34:36]Write to MH i2c: 01 00 00 01 1F 20 [18:34:36]Write i2c OK [18:34:36]MH_I2C_Read... [18:34:36]Read from MH i2c: 01 [18:34:36]MH_I2C_Read... [18:34:36]Read from MH i2c: 01 07 00 [18:34:36]MH_I2C_Read... [18:34:36]Read from MH i2c: 01 07 00 01 1F 00 00 00 00 00 55 0C 88 [18:34:36]RasterBufferAndPrint [18:34:36]line [18:34:36]line [18:34:36]line [18:34:36]line [18:34:36]line [18:34:36]written 0, free lines is 3161 [18:34:36]MH_Cut [18:34:36]Write to MH i2c: D1 01 00 08 1F 01 F9 [18:34:36]Write i2c OK [18:34:36]MH_I2C_Read... [18:34:36]Read from MH i2c: D1 [18:34:36]MH_I2C_Read... [18:34:36]Read from MH i2c: D1 01 00 [18:34:36]MH_I2C_Read... [18:34:36]Read from MH i2c: D1 01 00 08 1F 00 F8 [18:34:36]Write to MH i2c: 01 00 00 09 1F 28 [18:34:36]Write i2c OK [18:34:36]MH_I2C_Read... [18:34:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 7F 47 00 3E 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 BA E1 02 00 F4 03 04 00 A5 EB 18 67 B6 04 01 00 00 FB 3F 27 D3 BB CF F5 11 [18:34:36]CommunicateWithHost err = 0 [18:34:36]CheckOFDResponse [18:34:36]1017 (14) - 77093643461234 [18:34:36]1041 (16) - 0000000000965340 [18:34:36]1040 (4) - 188858 [18:34:36]1012 (4) - 23.10.2024 12:27 [18:34:36]1206 (1) - 0 [18:34:36]OFD Sender: Remove packet 188858 [18:34:36]ProducePacketName [18:34:36]name=ofd_packets/00188858 [18:34:36]NVStorageDeleteData [18:34:37]OFD Sender: No OFD packet to send [18:34:37]*** Cut start [18:34:37]*** Partial cut [18:34:37]*** CUTSNS_PIN = 1 [18:34:37]*** CUTSNS_PIN = 0 [18:34:38]*** Brake cut motor [18:34:38]Read from MH i2c: 01 [18:34:38]MH_I2C_Read... [18:34:38]*** Stop cut motor [18:34:38]*** Cut end [18:34:38]Read from MH i2c: 01 07 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: 01 07 00 09 1F 00 00 00 00 00 FF 0F 3D [18:34:38]process_action close_receipt done [18:34:38]requested_data is exist [18:34:38]produce_requested_data [18:34:38]requested_item fm.sn is exist - process it [18:34:38]wFMCommunicate request_size=4 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 11 00 00 [18:34:38]Write to MH i2c: E2 08 00 0A 1F 80 11 00 00 00 00 00 00 A3 [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 17 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 17 00 0A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [18:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:34:38]wFMCommunicate OK [18:34:38]requested_item fd.num is exist - process it [18:34:38]SAM_PROTO_GetFieldsCounters [18:34:38]wFMCommunicate request_size=4 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 13 00 00 [18:34:38]Write to MH i2c: E2 08 00 0B 1F 80 13 00 00 00 00 00 00 A6 [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 62 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 62 00 0B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [18:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:38]wFMCommunicate OK [18:34:38]SAM_PROTO_GetFieldsCounters done [18:34:38]requested_item shift.num is exist - process it [18:34:38]requested_item shift.opened is exist - process it [18:34:38]req_shift_opened [18:34:38]FM_GetShiftState [18:34:38]SAM_PROTO_GetShiftState [18:34:38]wFMCommunicate request_size=4 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 13 01 00 [18:34:38]Write to MH i2c: E2 08 00 0C 1F 80 13 01 00 00 00 00 00 A8 [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 0E 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 0E 00 0C 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 90 [18:34:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:34:38]wFMCommunicate OK [18:34:38]SAM_PROTO_GetShiftState done [18:34:38]FM_GetShiftState done [18:34:38]req_shift_opened done [18:34:38]requested_item shift.open_date is exist - process it [18:34:38]req_shift_open_date [18:34:38]req_shift_open_date done [18:34:38]produce_requested_data done [18:34:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188858,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:34:38]process_action_free close_receipt [18:34:38]json_value_free [18:34:38]json_value_free done [18:34:38]process_json_proto returns [18:34:38]Send response to host [18:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188858,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:34:38]free response buf [18:34:38]execute_script done [18:34:38]execute_script returns [18:34:38]free content buf [18:34:38]Sock 7.Close socket [18:34:38]Sock 7.Thread stoped [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]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:32]accept exits with 9 [18:38:32]New connection [18:38:32]New thread 3067350372 created [18:38:32]Thread 3067207012 joined [18:38:32]Waiting for new connection... [18:38:32] Sock 9.Parse request [18:38:32]Sock 9.Check first char [18:38:32]Sock 9.First char is OK [18:38:32]request: POST /json_proto HTTP/1.0 [18:38:32]Method: POST [18:38:32]URL: /json_proto [18:38:32]Method is POST - this is cgi request [18:38:32]url: /json_proto [18:38:32]query_string will be loaded in cgi processing [18:38:32]execute_cgi json_proto POST (null) [18:38:32]execute_cgi path=json_proto method=POST [18:38:32]POST find Content-Length [18:38:32]Host: 172.17.42.131:8080 [18:38:32]Content-Length: 678 [18:38:32]Content-Type: application/json [18:38:32] [18:38:32]POST finish read [18:38:32]Found Content-Length = 678 [18:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:32]execute_script... [18:38:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:32]POST & json_proto [18:38:32]process_json_proto [18:38:32]json parsed OK: [18:38:32]protocol is kg_v1.0 [18:38:32]action value=close_receipt [18:38:32]process_action close_receipt [18:38:32]cmd_close_receipt [18:38:32]MH_GetDate [18:38:32]Write to MH i2c: F0 00 00 0D 1F 1B [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: F0 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: F0 09 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: F0 09 00 0D 1F 00 A9 42 19 67 A0 18 CA 66 77 [18:38:32]GetLastDocTimeStamp 1729708475 [18:38:32]current date 1729708713 [18:38:32]FM_GetShiftState [18:38:32]SAM_PROTO_GetShiftState [18:38:32]wFMCommunicate request_size=4 [18:38:32]MH_SAM_APDU [18:38:32]CAPDU: 80 13 01 00 [18:38:32]Write to MH i2c: E2 08 00 0E 1F 80 13 01 00 00 00 00 00 AA [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:32]Read from MH i2c: E2 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: E2 0E 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: E2 0E 00 0E 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 92 [18:38:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:38:32]wFMCommunicate OK [18:38:32]SAM_PROTO_GetShiftState done [18:38:32]FM_GetShiftState done [18:38:32]opened in 1729642525 [18:38:32]opened+sec_in_day 1729728925 [18:38:32]quantity*price = 70044 [18:38:32]sum+1 = 70045 [18:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 317 23.10.2024 18:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188859 ФПД: 5544553836972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183833&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188859&fm=5544553836972&tin=02508201610067®Number=0000000000100030&sum=70000 [18:38:33]StoreToDocumentArchive [18:38:33]shift 462 fd 188859 [18:38:33]save to /storage/0462/doc_00188859 [18:38:33]save last doc name /storage/0462/doc_00188859 to /storage/kkm_last_doc_name [18:38:33]save OK [18:38:33]Clear old archive folders... [18:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:33]tlvbuf is 0115E0D0 [18:38:33]SAM_PROTO_ClearQueue [18:38:33]wFMCommunicate request_size=4 [18:38:33]MH_SAM_APDU [18:38:33]CAPDU: 80 09 00 00 [18:38:33]Write to MH i2c: E2 08 00 1B 1F 80 09 00 00 00 00 00 00 AC [18:38:33]Write i2c OK [18:38:33]MH_I2C_Read... [18:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:33]Read from MH i2c: E2 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 03 00 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 03 00 1B 1F 00 90 00 AE [18:38:33]RAPDU: 90 00 [18:38:33]wFMCommunicate OK [18:38:33]SAM_PROTO_ClearQueue done [18:38:33]KKMCreateOFDPacket [18:38:33]OFDProtocolAddRootSTLVToBuf [18:38:33]FM_MakeSignedData [18:38:33]FM_MakeSignedData [18:38:33]SAM_PROTO_SignData [18:38:33]wFMCommunicate request_size=4 [18:38:33]MH_SAM_APDU [18:38:33]CAPDU: 80 0D 01 02 [18:38:33]Write to MH i2c: E2 08 00 1C 1F 80 0D 01 02 00 00 00 00 B4 [18:38:33]Write i2c OK [18:38:33]MH_I2C_Read... [18:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:33]Read from MH i2c: E2 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 03 00 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 03 00 1C 1F 00 90 00 AF [18:38:33]RAPDU: 90 00 [18:38:33]wFMCommunicate OK [18:38:33]wFMCommunicate request_size=255 [18:38:33]MH_SAM_APDU [18:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 A9 42 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E1 02 00 35 04 06 00 05 [18:38:33]Write to MH i2c: E2 02 01 1D 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 A9 42 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E1 02 00 35 04 06 00 05 00 00 52 [18:38:33]Write i2c OK [18:38:33]MH_I2C_Read... [18:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:33]Read from MH i2c: E2 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 03 00 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 03 00 1D 1F 00 90 00 B0 [18:38:33]RAPDU: 90 00 [18:38:33]wFMCommunicate OK [18:38:33]wFMCommunicate request_size=10 [18:38:33]MH_SAM_APDU [18:38:33]CAPDU: 80 0D 02 02 05 0A F1 29 71 AC [18:38:33]Write to MH i2c: E2 0D 00 1E 1F 80 0D 02 02 05 00 0A F1 29 71 AC 00 00 02 [18:38:33]Write i2c OK [18:38:33]MH_I2C_Read... [18:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:34]Read from MH i2c: E2 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: E2 03 00 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: E2 03 00 1E 1F 00 90 00 B1 [18:38:34]RAPDU: 90 00 [18:38:34]wFMCommunicate OK [18:38:34]wFMCommunicate request_size=4 [18:38:34]MH_SAM_APDU [18:38:34]CAPDU: 80 0D 03 02 [18:38:34]Write to MH i2c: E2 08 00 1F 1F 80 0D 03 02 00 00 00 00 B9 [18:38:34]Write i2c OK [18:38:34]MH_I2C_Read... [18:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:34]Read from MH i2c: E2 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: E2 0B 00 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: E2 0B 00 1F 1F 00 9D 67 5A 86 7D 53 41 AC 90 00 5B [18:38:34]RAPDU: 9D 67 5A 86 7D 53 41 AC 90 00 [18:38:34]wFMCommunicate OK [18:38:34]SAM_PROTO_SignData done [18:38:34]FM_MakeSignedData done [18:38:34]CreateOFDProtocolMessage [18:38:34]wFMCommunicate request_size=4 [18:38:34]MH_SAM_APDU [18:38:34]CAPDU: 80 11 00 00 [18:38:34]Write to MH i2c: E2 08 00 20 1F 80 11 00 00 00 00 00 00 B9 [18:38:34]Write i2c OK [18:38:34]MH_I2C_Read... [18:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:34]Read from MH i2c: E2 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: E2 17 00 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: E2 17 00 20 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [18:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:38:34]wFMCommunicate OK [18:38:34]CreateOFDProtocolMessage done [18:38:34]OFDSenderStorePacket 188859 [18:38:34]StoreOFDPacket docnum=188859 [18:38:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 69 9D 07 01 50 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 A9 42 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E1 02 00 35 04 06 00 05 0A F1 29 71 AC 9D 67 5A 86 7D 53 41 AC [18:38:34]CheckFolder [18:38:34]dirname=/storage/ofd_packets [18:38:34]CheckFolder done [18:38:34]ProducePacketName [18:38:34]name=ofd_packets/00188859 [18:38:34]NVStorageSaveData ofd_packets/00188859 [18:38:34]File name is /storage/ofd_packets/00188859 [18:38:34]Write 301 bytes [18:38:34]NVStorageSaveData done [18:38:34]OFDSenderStorePacket done [18:38:34]KKMCreateOFDPacket done [18:38:34]NVStorageSaveData kkm_last_timestamp [18:38:34]File name is /storage/kkm_last_timestamp [18:38:34]Write 4 bytes [18:38:34]NVStorageSaveData done [18:38:34]ExternCall_PrintAddStr [18:38:34]wPrintStart [18:38:34]Write to MH i2c: 01 00 00 21 1F 40 [18:38:34]Write i2c OK [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: 01 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: 01 07 00 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: 01 07 00 21 1F 00 00 00 00 00 FF 0F 55 [18:38:34]RasterBufferAndPrint [18:38:34]line Счет N : (1)210920 [18:38:34]line ИНН: 02508201610067 [18:38:34]line Контрольно-Кассовый Чек [18:38:34]line ПРОДАЖА [18:38:34]line ТРК (МРК, ГНК) : 42 [18:38:34]line Товар: 2710124130 [18:38:34]line Аи-92-К-3 [18:38:34]line 10.470 * 66.90 [18:38:34]line = 700.44 [18:38:34]line НДС 12% НСП 1% [18:38:34]line > о реализуемом товаре [18:38:34]line ОКРУГЛЕНИЕ: -0.44 [18:38:34]line ИТОГО: 700.00 [18:38:34]line Внесено: 700.00 [18:38:34]line СДАЧА: 0.00 [18:38:34]line НСП 1% : 6.20 [18:38:34]line НДС 12% : 74.38 [18:38:34]line Наличными: 700.00 [18:38:34]line Безнал.: 0.00 [18:38:34]line Место: АЗС № 86 "Партнер Нефть" [18:38:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:38:34]line СНО: Общий режим [18:38:34]line Чек 317 23.10.2024 18:38 [18:38:34]line Смена: 462 ФФД: 1.0 [18:38:34]line ЗНМ: 0300000155 [18:38:34]line РНМ: 0000000000100030 [18:38:34]line Версия ККМ: 001 [18:38:34]line ФМ: 0000000000965340 [18:38:34]line ФД: 188859 [18:38:34]line ФПД: 5544553836972 [18:38:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183833&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188859&fm=5544553836972&tin=02508201610067®Number=0000000000100030&sum=70000 [18:38:34]written 0, free lines is 4095 [18:38:34]OFD Sender: Processing packet 188859 [packets to send 1062, broken 1061] [18:38:34]ProducePacketName [18:38:34]name=ofd_packets/00188859 [18:38:34]OFD Sender: To server: pG, [18:38:34]CommunicateWithHost lk.salyk.kg:30040 [18:38:34]ConnectInit lk.salyk.kg [18:38:34]Connected sock=10 [18:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 69 9D 07 01 50 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 A9 42 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E1 02 00 35 04 06 00 05 0A F1 29 71 AC 9D 67 5A 86 7D 53 41 AC [18:38:34]Write to MH i2c: 01 00 00 4C 1F 6B [18:38:34]Write i2c OK [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: 01 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: 01 07 00 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: 01 07 00 4C 1F 00 00 00 00 00 5B 0C D9 [18:38:34]RasterBufferAndPrint [18:38:34]line [18:38:34]line [18:38:34]line [18:38:34]line [18:38:34]line [18:38:34]written 0, free lines is 3167 [18:38:34]MH_Cut [18:38:34]Write to MH i2c: D1 01 00 53 1F 01 44 [18:38:34]Write i2c OK [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: D1 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: D1 01 00 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: D1 01 00 53 1F 00 43 [18:38:34]Write to MH i2c: 01 00 00 54 1F 73 [18:38:34]Write i2c OK [18:38:34]MH_I2C_Read... [18:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E8 89 47 00 C6 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E1 02 00 F4 03 04 00 93 EC 18 67 B6 04 01 00 00 25 37 69 E4 5A D7 6D CE [18:38:34]CommunicateWithHost err = 0 [18:38:34]CheckOFDResponse [18:38:34]1017 (14) - 77093643461234 [18:38:34]1041 (16) - 0000000000965340 [18:38:34]1040 (4) - 188859 [18:38:34]1012 (4) - 23.10.2024 12:31 [18:38:34]1206 (1) - 0 [18:38:34]OFD Sender: Remove packet 188859 [18:38:34]ProducePacketName [18:38:34]name=ofd_packets/00188859 [18:38:34]NVStorageDeleteData [18:38:35]OFD Sender: No OFD packet to send [18:38:35]*** Cut start [18:38:35]*** Partial cut [18:38:35]*** CUTSNS_PIN = 1 [18:38:35]*** CUTSNS_PIN = 0 [18:38:36]*** Brake cut motor [18:38:36]Read from MH i2c: 01 [18:38:36]*** Stop cut motor [18:38:36]*** Cut end [18:38:36]MH_I2C_Read... [18:38:36]Read from MH i2c: 01 07 00 [18:38:36]MH_I2C_Read... [18:38:36]Read from MH i2c: 01 07 00 54 1F 00 00 00 00 00 FF 0F 88 [18:38:36]process_action close_receipt done [18:38:36]requested_data is exist [18:38:36]produce_requested_data [18:38:36]requested_item fm.sn is exist - process it [18:38:36]wFMCommunicate request_size=4 [18:38:36]MH_SAM_APDU [18:38:36]CAPDU: 80 11 00 00 [18:38:36]Write to MH i2c: E2 08 00 55 1F 80 11 00 00 00 00 00 00 EE [18:38:36]Write i2c OK [18:38:36]MH_I2C_Read... [18:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:36]Read from MH i2c: E2 [18:38:36]MH_I2C_Read... [18:38:36]Read from MH i2c: E2 17 00 [18:38:36]MH_I2C_Read... [18:38:36]Read from MH i2c: E2 17 00 55 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [18:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:38:36]wFMCommunicate OK [18:38:36]requested_item fd.num is exist - process it [18:38:36]SAM_PROTO_GetFieldsCounters [18:38:36]wFMCommunicate request_size=4 [18:38:36]MH_SAM_APDU [18:38:36]CAPDU: 80 13 00 00 [18:38:36]Write to MH i2c: E2 08 00 56 1F 80 13 00 00 00 00 00 00 F1 [18:38:36]Write i2c OK [18:38:36]MH_I2C_Read... [18:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:36]Read from MH i2c: E2 [18:38:36]MH_I2C_Read... [18:38:36]Read from MH i2c: E2 62 00 [18:38:36]MH_I2C_Read... [18:38:36]Read from MH i2c: E2 62 00 56 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [18:38:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:36]wFMCommunicate OK [18:38:36]SAM_PROTO_GetFieldsCounters done [18:38:36]requested_item shift.num is exist - process it [18:38:36]requested_item shift.opened is exist - process it [18:38:36]req_shift_opened [18:38:36]FM_GetShiftState [18:38:36]SAM_PROTO_GetShiftState [18:38:36]wFMCommunicate request_size=4 [18:38:36]MH_SAM_APDU [18:38:36]CAPDU: 80 13 01 00 [18:38:36]Write to MH i2c: E2 08 00 57 1F 80 13 01 00 00 00 00 00 F3 [18:38:36]Write i2c OK [18:38:36]MH_I2C_Read... [18:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:36]Read from MH i2c: E2 [18:38:36]MH_I2C_Read... [18:38:36]Read from MH i2c: E2 0E 00 [18:38:36]MH_I2C_Read... [18:38:36]Read from MH i2c: E2 0E 00 57 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DB [18:38:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:38:36]wFMCommunicate OK [18:38:36]SAM_PROTO_GetShiftState done [18:38:36]FM_GetShiftState done [18:38:36]req_shift_opened done [18:38:36]requested_item shift.open_date is exist - process it [18:38:36]req_shift_open_date [18:38:36]req_shift_open_date done [18:38:36]produce_requested_data done [18:38:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188859,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:38:36]process_action_free close_receipt [18:38:36]json_value_free [18:38:36]json_value_free done [18:38:36]process_json_proto returns [18:38:36]Send response to host [18:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188859,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:38:36]free response buf [18:38:36]execute_script done [18:38:36]execute_script returns [18:38:36]free content buf [18:38:36]Sock 9.Close socket [18:38:36]Sock 9.Thread stoped [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:41]accept exits with 7 [18:41:41]New connection [18:41:41]New thread 3067207012 created [18:41:41]Thread 3067350372 joined [18:41:41]Waiting for new connection... [18:41:41] Sock 7.Parse request [18:41:41]Sock 7.Check first char [18:41:41]Sock 7.First char is OK [18:41:41]request: POST /json_proto HTTP/1.0 [18:41:41]Method: POST [18:41:41]URL: /json_proto [18:41:41]Method is POST - this is cgi request [18:41:41]url: /json_proto [18:41:41]query_string will be loaded in cgi processing [18:41:41]execute_cgi json_proto POST (null) [18:41:41]execute_cgi path=json_proto method=POST [18:41:41]POST find Content-Length [18:41:41]Host: 172.17.42.131:8080 [18:41:41]Content-Length: 679 [18:41:41]Content-Type: application/json [18:41:41] [18:41:41]POST finish read [18:41:41]Found Content-Length = 679 [18:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:41]execute_script... [18: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 : (1)210921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:41]POST & json_proto [18:41:41]process_json_proto [18:41:41]json parsed OK: [18:41:41]protocol is kg_v1.0 [18:41:41]action value=close_receipt [18:41:41]process_action close_receipt [18:41:41]cmd_close_receipt [18:41:41]MH_GetDate [18:41:41]Write to MH i2c: F0 00 00 58 1F 66 [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: F0 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: F0 09 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: F0 09 00 58 1F 00 66 43 19 67 A0 18 CA 66 80 [18:41:41]GetLastDocTimeStamp 1729708713 [18:41:41]current date 1729708902 [18:41:41]FM_GetShiftState [18:41:41]SAM_PROTO_GetShiftState [18:41:41]wFMCommunicate request_size=4 [18:41:41]MH_SAM_APDU [18:41:41]CAPDU: 80 13 01 00 [18:41:41]Write to MH i2c: E2 08 00 59 1F 80 13 01 00 00 00 00 00 F5 [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:41]Read from MH i2c: E2 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 0E 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 0E 00 59 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DD [18:41:41]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:41:41]wFMCommunicate OK [18:41:41]SAM_PROTO_GetShiftState done [18:41:41]FM_GetShiftState done [18:41:41]opened in 1729642525 [18:41:41]opened+sec_in_day 1729728925 [18:41:41]quantity*price = 100050 [18:41:41]sum+1 = 100052 [18:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 318 23.10.2024 18:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188860 ФПД: 71361071123178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188860&fm=71361071123178&tin=02508201610067®Number=0000000000100030&sum=100000 [18:41:42]StoreToDocumentArchive [18:41:42]shift 462 fd 188860 [18:41:42]save to /storage/0462/doc_00188860 [18:41:42]save last doc name /storage/0462/doc_00188860 to /storage/kkm_last_doc_name [18:41:42]save OK [18:41:42]Clear old archive folders... [18:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:41:42]tlvbuf is 01184070 [18:41:42]SAM_PROTO_ClearQueue [18:41:42]wFMCommunicate request_size=4 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 09 00 00 [18:41:42]Write to MH i2c: E2 08 00 66 1F 80 09 00 00 00 00 00 00 F7 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 66 1F 00 90 00 F9 [18:41:42]RAPDU: 90 00 [18:41:42]wFMCommunicate OK [18:41:42]SAM_PROTO_ClearQueue done [18:41:42]KKMCreateOFDPacket [18:41:42]OFDProtocolAddRootSTLVToBuf [18:41:42]FM_MakeSignedData [18:41:42]FM_MakeSignedData [18:41:42]SAM_PROTO_SignData [18:41:42]wFMCommunicate request_size=4 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 0D 01 02 [18:41:42]Write to MH i2c: E2 08 00 67 1F 80 0D 01 02 00 00 00 00 FF [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 67 1F 00 90 00 FA [18:41:42]RAPDU: 90 00 [18:41:42]wFMCommunicate OK [18:41:42]wFMCommunicate request_size=255 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 66 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E1 02 00 35 04 06 00 40 E7 0B 4B [18:41:42]Write to MH i2c: E2 02 01 68 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 66 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E1 02 00 35 04 06 00 40 E7 0B 4B 00 00 BD [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 68 1F 00 90 00 FB [18:41:42]RAPDU: 90 00 [18:41:42]wFMCommunicate OK [18:41:42]wFMCommunicate request_size=7 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 0D 02 02 02 8A EA [18:41:42]Write to MH i2c: E2 0A 00 69 1F 80 0D 02 02 02 00 8A EA 00 00 7A [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 69 1F 00 90 00 FC [18:41:42]RAPDU: 90 00 [18:41:42]wFMCommunicate OK [18:41:42]wFMCommunicate request_size=4 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 0D 03 02 [18:41:42]Write to MH i2c: E2 08 00 6A 1F 80 0D 03 02 00 00 00 00 04 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 0B 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 0B 00 6A 1F 00 99 30 24 73 2E D8 CF CC 90 00 06 [18:41:42]RAPDU: 99 30 24 73 2E D8 CF CC 90 00 [18:41:42]wFMCommunicate OK [18:41:42]SAM_PROTO_SignData done [18:41:42]FM_MakeSignedData done [18:41:42]CreateOFDProtocolMessage [18:41:42]wFMCommunicate request_size=4 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 11 00 00 [18:41:42]Write to MH i2c: E2 08 00 6B 1F 80 11 00 00 00 00 00 00 04 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 17 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 17 00 6B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [18:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:41:42]wFMCommunicate OK [18:41:42]CreateOFDProtocolMessage done [18:41:42]OFDSenderStorePacket 188860 [18:41:42]StoreOFDPacket docnum=188860 [18:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F5 1C 04 01 26 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 66 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E1 02 00 35 04 06 00 40 E7 0B 4B 8A EA 99 30 24 73 2E D8 CF CC [18:41:42]CheckFolder [18:41:42]dirname=/storage/ofd_packets [18:41:42]CheckFolder done [18:41:42]ProducePacketName [18:41:42]name=ofd_packets/00188860 [18:41:42]NVStorageSaveData ofd_packets/00188860 [18:41:42]File name is /storage/ofd_packets/00188860 [18:41:42]Write 298 bytes [18:41:42]NVStorageSaveData done [18:41:42]OFDSenderStorePacket done [18:41:42]KKMCreateOFDPacket done [18:41:42]NVStorageSaveData kkm_last_timestamp [18:41:42]File name is /storage/kkm_last_timestamp [18:41:42]Write 4 bytes [18:41:42]NVStorageSaveData done [18:41:42]ExternCall_PrintAddStr [18:41:42]wPrintStart [18:41:42]Write to MH i2c: 01 00 00 6C 1F 8B [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 07 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 07 00 6C 1F 00 00 00 00 00 FF 0F A0 [18:41:42]RasterBufferAndPrint [18:41:42]line Счет N : (1)210921 [18:41:42]line ИНН: 02508201610067 [18:41:42]line Контрольно-Кассовый Чек [18:41:42]line ПРОДАЖА [18:41:42]line ТРК (МРК, ГНК) : 51 [18:41:42]line Товар: 2710194210 [18:41:42]line ДТ-К-5 [18:41:42]line 13.130 * 76.20 [18:41:42]line = 1000.51 [18:41:42]line НДС 12% НСП 1% [18:41:42]line > о реализуемом товаре [18:41:42]line ОКРУГЛЕНИЕ: -0.51 [18:41:42]line ИТОГО: 1000.00 [18:41:42]line Внесено: 1000.00 [18:41:42]line СДАЧА: 0.00 [18:41:42]line НСП 1% : 8.85 [18:41:42]line НДС 12% : 106.25 [18:41:42]line Наличными: 1000.00 [18:41:42]line Безнал.: 0.00 [18:41:42]line Место: АЗС № 86 "Партнер Нефть" [18:41:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:41:42]line СНО: Общий режим [18:41:42]line Чек 318 23.10.2024 18:41 [18:41:42]line Смена: 462 ФФД: 1.0 [18:41:42]line ЗНМ: 0300000155 [18:41:42]line РНМ: 0000000000100030 [18:41:42]line Версия ККМ: 001 [18:41:42]line ФМ: 0000000000965340 [18:41:42]line ФД: 188860 [18:41:42]line ФПД: 71361071123178 [18:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188860&fm=71361071123178&tin=02508201610067®Number=0000000000100030&sum=100000 [18:41:42]written 0, free lines is 4095 [18:41:42]OFD Sender: Processing packet 188860 [packets to send 1062, broken 1061] [18:41:42]ProducePacketName [18:41:42]name=ofd_packets/00188860 [18:41:42]OFD Sender: To server: pG, [18:41:42]CommunicateWithHost lk.salyk.kg:30040 [18:41:42]ConnectInit lk.salyk.kg [18:41:43]Write to MH i2c: 01 00 00 97 1F B6 [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 07 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 07 00 97 1F 00 00 00 00 00 51 0C 1A [18:41:43]RasterBufferAndPrint [18:41:43]line [18:41:43]line [18:41:43]line [18:41:43]line [18:41:43]line [18:41:43]written 0, free lines is 3157 [18:41:43]MH_Cut [18:41:43]Write to MH i2c: D1 01 00 9E 1F 01 8F [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D1 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D1 01 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D1 01 00 9E 1F 00 8E [18:41:43]Write to MH i2c: 01 00 00 9F 1F BE [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]Connected sock=10 [18:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F5 1C 04 01 26 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 66 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E1 02 00 35 04 06 00 40 E7 0B 4B 8A EA 99 30 24 73 2E D8 CF CC [18:41:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 17 47 00 21 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E1 02 00 F4 03 04 00 50 ED 18 67 B6 04 01 00 00 2F FA 8A F2 58 1D 48 87 [18:41:43]CommunicateWithHost err = 0 [18:41:43]CheckOFDResponse [18:41:43]1017 (14) - 77093643461234 [18:41:43]1041 (16) - 0000000000965340 [18:41:43]1040 (4) - 188860 [18:41:43]1012 (4) - 23.10.2024 12:34 [18:41:43]1206 (1) - 0 [18:41:43]OFD Sender: Remove packet 188860 [18:41:43]ProducePacketName [18:41:43]name=ofd_packets/00188860 [18:41:43]NVStorageDeleteData [18:41:44]OFD Sender: No OFD packet to send [18:41:44]*** Cut start [18:41:44]*** Partial cut [18:41:44]*** CUTSNS_PIN = 1 [18:41:44]*** CUTSNS_PIN = 0 [18:41:44]*** Brake cut motor [18:41:45]Read from MH i2c: 01 [18:41:45]MH_I2C_Read... [18:41:45]*** Stop cut motor [18:41:45]*** Cut end [18:41:45]Read from MH i2c: 01 07 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: 01 07 00 9F 1F 00 00 00 00 00 FF 0F D3 [18:41:45]process_action close_receipt done [18:41:45]requested_data is exist [18:41:45]produce_requested_data [18:41:45]requested_item fm.sn is exist - process it [18:41:45]wFMCommunicate request_size=4 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 11 00 00 [18:41:45]Write to MH i2c: E2 08 00 A0 1F 80 11 00 00 00 00 00 00 39 [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 17 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 17 00 A0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [18:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:41:45]wFMCommunicate OK [18:41:45]requested_item fd.num is exist - process it [18:41:45]SAM_PROTO_GetFieldsCounters [18:41:45]wFMCommunicate request_size=4 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 13 00 00 [18:41:45]Write to MH i2c: E2 08 00 A1 1F 80 13 00 00 00 00 00 00 3C [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 62 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 62 00 A1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [18: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:45]wFMCommunicate OK [18:41:45]SAM_PROTO_GetFieldsCounters done [18:41:45]requested_item shift.num is exist - process it [18:41:45]requested_item shift.opened is exist - process it [18:41:45]req_shift_opened [18:41:45]FM_GetShiftState [18:41:45]SAM_PROTO_GetShiftState [18:41:45]wFMCommunicate request_size=4 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 13 01 00 [18:41:45]Write to MH i2c: E2 08 00 A2 1F 80 13 01 00 00 00 00 00 3E [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 0E 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 0E 00 A2 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 26 [18:41:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:41:45]wFMCommunicate OK [18:41:45]SAM_PROTO_GetShiftState done [18:41:45]FM_GetShiftState done [18:41:45]req_shift_opened done [18:41:45]requested_item shift.open_date is exist - process it [18:41:45]req_shift_open_date [18:41:45]req_shift_open_date done [18:41:45]produce_requested_data done [18:41:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188860,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:41:45]process_action_free close_receipt [18:41:45]json_value_free [18:41:45]json_value_free done [18:41:45]process_json_proto returns [18:41:45]Send response to host [18:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188860,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:41:45]free response buf [18:41:45]execute_script done [18:41:45]execute_script returns [18:41:45]free content buf [18:41:45]Sock 7.Close socket [18:41:45]Sock 7.Thread stoped [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:24]accept exits with 9 [18:42:24]New connection [18:42:24]New thread 3067350372 created [18:42:24]Thread 3067207012 joined [18:42:24]Waiting for new connection... [18:42:24] Sock 9.Parse request [18:42:24]Sock 9.Check first char [18:42:24]Sock 9.First char is OK [18:42:24]request: POST /json_proto HTTP/1.0 [18:42:24]Method: POST [18:42:24]URL: /json_proto [18:42:24]Method is POST - this is cgi request [18:42:24]url: /json_proto [18:42:24]query_string will be loaded in cgi processing [18:42:24]execute_cgi json_proto POST (null) [18:42:24]execute_cgi path=json_proto method=POST [18:42:24]POST find Content-Length [18:42:24]Host: 172.17.42.131:8080 [18:42:24]Content-Length: 677 [18:42:24]Content-Type: application/json [18:42:24] [18:42:24]POST finish read [18:42:24]Found Content-Length = 677 [18:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:24]execute_script... [18:42:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:24]POST & json_proto [18:42:24]process_json_proto [18:42:24]json parsed OK: [18:42:24]protocol is kg_v1.0 [18:42:24]action value=close_receipt [18:42:24]process_action close_receipt [18:42:24]cmd_close_receipt [18:42:24]MH_GetDate [18:42:24]Write to MH i2c: F0 00 00 A3 1F B1 [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 09 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 09 00 A3 1F 00 92 43 19 67 A0 18 CA 66 F7 [18:42:24]GetLastDocTimeStamp 1729708902 [18:42:24]current date 1729708946 [18:42:24]FM_GetShiftState [18:42:24]SAM_PROTO_GetShiftState [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 13 01 00 [18:42:24]Write to MH i2c: E2 08 00 A4 1F 80 13 01 00 00 00 00 00 40 [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 0E 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 0E 00 A4 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 28 [18:42:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:42:24]wFMCommunicate OK [18:42:24]SAM_PROTO_GetShiftState done [18:42:24]FM_GetShiftState done [18:42:24]opened in 1729642525 [18:42:24]opened+sec_in_day 1729728925 [18:42:24]quantity*price = 24017 [18:42:24]sum+1 = 24018 [18:42:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 319 23.10.2024 18:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188861 ФПД: 160979871815482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184226&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188861&fm=160979871815482&tin=02508201610067®Number=0000000000100030&sum=24000 [18:42:25]StoreToDocumentArchive [18:42:25]shift 462 fd 188861 [18:42:25]save to /storage/0462/doc_00188861 [18:42:25]save last doc name /storage/0462/doc_00188861 to /storage/kkm_last_doc_name [18:42:25]save OK [18:42:25]Clear old archive folders... [18:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:25]tlvbuf is B6FB67E0 [18:42:25]SAM_PROTO_ClearQueue [18:42:25]wFMCommunicate request_size=4 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 09 00 00 [18:42:25]Write to MH i2c: E2 08 00 B1 1F 80 09 00 00 00 00 00 00 42 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 B1 1F 00 90 00 44 [18:42:25]RAPDU: 90 00 [18:42:25]wFMCommunicate OK [18:42:25]SAM_PROTO_ClearQueue done [18:42:25]KKMCreateOFDPacket [18:42:25]OFDProtocolAddRootSTLVToBuf [18:42:25]FM_MakeSignedData [18:42:25]FM_MakeSignedData [18:42:25]SAM_PROTO_SignData [18:42:25]wFMCommunicate request_size=4 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 0D 01 02 [18:42:25]Write to MH i2c: E2 08 00 B2 1F 80 0D 01 02 00 00 00 00 4A [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 B2 1F 00 90 00 45 [18:42:25]RAPDU: 90 00 [18:42:25]wFMCommunicate OK [18:42:25]wFMCommunicate request_size=255 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 92 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E1 02 00 35 04 06 00 92 [18:42:25]Write to MH i2c: E2 02 01 B3 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 92 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E1 02 00 35 04 06 00 92 00 00 59 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 B3 1F 00 90 00 46 [18:42:26]RAPDU: 90 00 [18:42:26]wFMCommunicate OK [18:42:26]wFMCommunicate request_size=10 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 0D 02 02 05 69 0C 13 57 3A [18:42:26]Write to MH i2c: E2 0D 00 B4 1F 80 0D 02 02 05 00 69 0C 13 57 3A 00 00 70 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 B4 1F 00 90 00 47 [18:42:26]RAPDU: 90 00 [18:42:26]wFMCommunicate OK [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 0D 03 02 [18:42:26]Write to MH i2c: E2 08 00 B5 1F 80 0D 03 02 00 00 00 00 4F [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0B 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0B 00 B5 1F 00 0C D9 C4 9C CB 64 17 F7 90 00 D2 [18:42:26]RAPDU: 0C D9 C4 9C CB 64 17 F7 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_SignData done [18:42:26]FM_MakeSignedData done [18:42:26]CreateOFDProtocolMessage [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 11 00 00 [18:42:26]Write to MH i2c: E2 08 00 B6 1F 80 11 00 00 00 00 00 00 4F [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 B6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [18:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:42:26]wFMCommunicate OK [18:42:26]CreateOFDProtocolMessage done [18:42:26]OFDSenderStorePacket 188861 [18:42:26]StoreOFDPacket docnum=188861 [18:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 26 07 01 D9 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 92 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E1 02 00 35 04 06 00 92 69 0C 13 57 3A 0C D9 C4 9C CB 64 17 F7 [18:42:26]CheckFolder [18:42:26]dirname=/storage/ofd_packets [18:42:26]CheckFolder done [18:42:26]ProducePacketName [18:42:26]name=ofd_packets/00188861 [18:42:26]NVStorageSaveData ofd_packets/00188861 [18:42:26]File name is /storage/ofd_packets/00188861 [18:42:26]Write 301 bytes [18:42:26]NVStorageSaveData done [18:42:26]OFDSenderStorePacket done [18:42:26]KKMCreateOFDPacket done [18:42:26]NVStorageSaveData kkm_last_timestamp [18:42:26]File name is /storage/kkm_last_timestamp [18:42:26]Write 4 bytes [18:42:26]NVStorageSaveData done [18:42:26]ExternCall_PrintAddStr [18:42:26]wPrintStart [18:42:26]Write to MH i2c: 01 00 00 B7 1F D6 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 B7 1F 00 00 00 00 00 FF 0F EB [18:42:26]RasterBufferAndPrint [18:42:26]line Счет N : (1)210923 [18:42:26]line ИНН: 02508201610067 [18:42:26]line Контрольно-Кассовый Чек [18:42:26]line ПРОДАЖА [18:42:26]line ТРК (МРК, ГНК) : 32 [18:42:26]line Товар: 2710124130 [18:42:26]line Аи-92-К-3 [18:42:26]line 3.590 * 66.90 [18:42:26]line = 240.17 [18:42:26]line НДС 12% НСП 1% [18:42:26]line > о реализуемом товаре [18:42:26]line ОКРУГЛЕНИЕ: -0.17 [18:42:26]line ИТОГО: 240.00 [18:42:26]line Внесено: 240.00 [18:42:26]line СДАЧА: 0.00 [18:42:26]line НСП 1% : 2.12 [18:42:26]line НДС 12% : 25.50 [18:42:26]line Наличными: 240.00 [18:42:26]line Безнал.: 0.00 [18:42:26]line Место: АЗС № 86 "Партнер Нефть" [18:42:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:42:26]line СНО: Общий режим [18:42:26]line Чек 319 23.10.2024 18:42 [18:42:26]line Смена: 462 ФФД: 1.0 [18:42:26]line ЗНМ: 0300000155 [18:42:26]line РНМ: 0000000000100030 [18:42:26]line Версия ККМ: 001 [18:42:26]line ФМ: 0000000000965340 [18:42:26]line ФД: 188861 [18:42:26]line ФПД: 160979871815482 [18:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184226&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188861&fm=160979871815482&tin=02508201610067®Number=0000000000100030&sum=24000 [18:42:26]written 0, free lines is 4095 [18:42:26]OFD Sender: Processing packet 188861 [packets to send 1062, broken 1061] [18:42:26]ProducePacketName [18:42:26]name=ofd_packets/00188861 [18:42:26]OFD Sender: To server: pG, [18:42:26]CommunicateWithHost lk.salyk.kg:30040 [18:42:26]ConnectInit lk.salyk.kg [18:42:26]Connected sock=10 [18:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 26 07 01 D9 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 92 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E1 02 00 35 04 06 00 92 69 0C 13 57 3A 0C D9 C4 9C CB 64 17 F7 [18:42:26]Write to MH i2c: 01 00 00 E2 1F 01 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 E2 1F 00 00 00 00 00 59 0C 6D [18:42:26]RasterBufferAndPrint [18:42:26]line [18:42:26]line [18:42:26]line [18:42:26]line [18:42:26]line [18:42:26]written 0, free lines is 3165 [18:42:26]MH_Cut [18:42:26]Write to MH i2c: D1 01 00 E9 1F 01 DA [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: D1 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: D1 01 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: D1 01 00 E9 1F 00 D9 [18:42:26]Write to MH i2c: 01 00 00 EA 1F 09 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 58 6F 47 00 82 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 36 35 33 34 30 10 04 04 00 BD E1 02 00 F4 03 04 00 7C ED 18 67 B6 04 01 00 00 68 AB CC 8E 59 EB E4 72 [18:42:26]CommunicateWithHost err = 0 [18:42:26]CheckOFDResponse [18:42:26]1017 (14) - 77093643461234 [18:42:26]1041 (16) - 0000000000965340 [18:42:26]1040 (4) - 188861 [18:42:26]1012 (4) - 23.10.2024 12:35 [18:42:26]1206 (1) - 0 [18:42:26]OFD Sender: Remove packet 188861 [18:42:26]ProducePacketName [18:42:26]name=ofd_packets/00188861 [18:42:26]NVStorageDeleteData [18:42:27]OFD Sender: No OFD packet to send [18:42:28]*** Cut start [18:42:28]*** Partial cut [18:42:28]*** CUTSNS_PIN = 1 [18:42:28]*** CUTSNS_PIN = 0 [18:42:28]*** Brake cut motor [18:42:28]Read from MH i2c: 01 [18:42:28]MH_I2C_Read... [18:42:28]*** Stop cut motor [18:42:28]*** Cut end [18:42:28]Read from MH i2c: 01 07 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: 01 07 00 EA 1F 00 00 00 00 00 FF 0F 1E [18:42:28]process_action close_receipt done [18:42:28]requested_data is exist [18:42:28]produce_requested_data [18:42:28]requested_item fm.sn is exist - process it [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 11 00 00 [18:42:28]Write to MH i2c: E2 08 00 EB 1F 80 11 00 00 00 00 00 00 84 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 17 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 17 00 EB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [18:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:42:28]wFMCommunicate OK [18:42:28]requested_item fd.num is exist - process it [18:42:28]SAM_PROTO_GetFieldsCounters [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 13 00 00 [18:42:28]Write to MH i2c: E2 08 00 EC 1F 80 13 00 00 00 00 00 00 87 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 62 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 62 00 EC 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [18:42:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:28]wFMCommunicate OK [18:42:28]SAM_PROTO_GetFieldsCounters done [18:42:28]requested_item shift.num is exist - process it [18:42:28]requested_item shift.opened is exist - process it [18:42:28]req_shift_opened [18:42:28]FM_GetShiftState [18:42:28]SAM_PROTO_GetShiftState [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 13 01 00 [18:42:28]Write to MH i2c: E2 08 00 ED 1F 80 13 01 00 00 00 00 00 89 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 0E 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 0E 00 ED 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 71 [18:42:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:42:28]wFMCommunicate OK [18:42:28]SAM_PROTO_GetShiftState done [18:42:28]FM_GetShiftState done [18:42:28]req_shift_opened done [18:42:28]requested_item shift.open_date is exist - process it [18:42:28]req_shift_open_date [18:42:28]req_shift_open_date done [18:42:28]produce_requested_data done [18:42:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188861,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:42:28]process_action_free close_receipt [18:42:28]json_value_free [18:42:28]json_value_free done [18:42:28]process_json_proto returns [18:42:28]Send response to host [18:42:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188861,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:42:28]free response buf [18:42:28]execute_script done [18:42:28]execute_script returns [18:42:28]free content buf [18:42:28]Sock 9.Close socket [18:42:28]Sock 9.Thread stoped [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:38]accept exits with 7 [18:43:38]New connection [18:43:38]New thread 3067207012 created [18:43:38]Thread 3067350372 joined [18:43:38]Waiting for new connection... [18:43:38] Sock 7.Parse request [18:43:38]Sock 7.Check first char [18:43:38]Sock 7.First char is OK [18:43:38]request: POST /json_proto HTTP/1.0 [18:43:38]Method: POST [18:43:38]URL: /json_proto [18:43:38]Method is POST - this is cgi request [18:43:38]url: /json_proto [18:43:38]query_string will be loaded in cgi processing [18:43:38]execute_cgi json_proto POST (null) [18:43:38]execute_cgi path=json_proto method=POST [18:43:38]POST find Content-Length [18:43:38]Host: 172.17.42.131:8080 [18:43:38]Content-Length: 816 [18:43:38]Content-Type: application/json [18:43:38] [18:43:38]POST finish read [18:43:38]Found Content-Length = 816 [18:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:38]execute_script... [18:43:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:38]POST & json_proto [18:43:38]process_json_proto [18:43:38]json parsed OK: [18:43:38]protocol is kg_v1.0 [18:43:38]action value=close_receipt [18:43:38]process_action close_receipt [18:43:38]cmd_close_receipt [18:43:38]MH_GetDate [18:43:38]Write to MH i2c: F0 00 00 EE 1F FC [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 09 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 09 00 EE 1F 00 DB 43 19 67 A0 18 CA 66 8B [18:43:38]GetLastDocTimeStamp 1729708946 [18:43:38]current date 1729709019 [18:43:38]FM_GetShiftState [18:43:38]SAM_PROTO_GetShiftState [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 13 01 00 [18:43:38]Write to MH i2c: E2 08 00 EF 1F 80 13 01 00 00 00 00 00 8B [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 0E 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 0E 00 EF 1F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 73 [18:43:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:43:38]wFMCommunicate OK [18:43:38]SAM_PROTO_GetShiftState done [18:43:38]FM_GetShiftState done [18:43:38]opened in 1729642525 [18:43:38]opened+sec_in_day 1729728925 [18:43:38]quantity*price = 50041 [18:43:38]sum+1 = 50042 [18:43:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 320 23.10.2024 18:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188862 ФПД: 269756927194626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184339&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188862&fm=269756927194626&tin=02508201610067®Number=0000000000100030&sum=50041 [18:43:39]StoreToDocumentArchive [18:43:39]shift 462 fd 188862 [18:43:39]save to /storage/0462/doc_00188862 [18:43:39]save last doc name /storage/0462/doc_00188862 to /storage/kkm_last_doc_name [18:43:39]save OK [18:43:39]Clear old archive folders... [18:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:39]tlvbuf is B6FB6350 [18:43:39]SAM_PROTO_ClearQueue [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 09 00 00 [18:43:39]Write to MH i2c: E2 08 00 FC 1F 80 09 00 00 00 00 00 00 8D [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 FC 1F 00 90 00 8F [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]SAM_PROTO_ClearQueue done [18:43:39]KKMCreateOFDPacket [18:43:39]OFDProtocolAddRootSTLVToBuf [18:43:39]FM_MakeSignedData [18:43:39]FM_MakeSignedData [18:43:39]SAM_PROTO_SignData [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 01 02 [18:43:39]Write to MH i2c: E2 08 00 FD 1F 80 0D 01 02 00 00 00 00 95 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 FD 1F 00 90 00 90 [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]wFMCommunicate request_size=255 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 DB 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E1 02 00 35 04 06 00 F5 [18:43:39]Write to MH i2c: E2 02 01 FE 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 DB 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E1 02 00 35 04 06 00 F5 00 00 9E [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 FE 1F 00 90 00 91 [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]wFMCommunicate request_size=10 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 02 02 05 57 AD D2 36 02 [18:43:39]Write to MH i2c: E2 0D 00 FF 1F 80 0D 02 02 05 00 57 AD D2 36 02 00 00 B0 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 FF 1F 00 90 00 92 [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 03 02 [18:43:39]Write to MH i2c: E2 08 00 00 20 80 0D 03 02 00 00 00 00 9B [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 0B 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 0B 00 00 20 00 D2 C2 CF 51 71 D2 5E 8D 90 00 7E [18:43:39]RAPDU: D2 C2 CF 51 71 D2 5E 8D 90 00 [18:43:39]wFMCommunicate OK [18:43:39]SAM_PROTO_SignData done [18:43:39]FM_MakeSignedData done [18:43:39]CreateOFDProtocolMessage [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 11 00 00 [18:43:39]Write to MH i2c: E2 08 00 01 20 80 11 00 00 00 00 00 00 9B [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 17 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 17 00 01 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [18:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:43:39]wFMCommunicate OK [18:43:39]CreateOFDProtocolMessage done [18:43:39]OFDSenderStorePacket 188862 [18:43:39]StoreOFDPacket docnum=188862 [18:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A 84 07 01 98 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 DB 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E1 02 00 35 04 06 00 F5 57 AD D2 36 02 D2 C2 CF 51 71 D2 5E 8D [18:43:39]CheckFolder [18:43:39]dirname=/storage/ofd_packets [18:43:39]CheckFolder done [18:43:39]ProducePacketName [18:43:39]name=ofd_packets/00188862 [18:43:39]NVStorageSaveData ofd_packets/00188862 [18:43:39]File name is /storage/ofd_packets/00188862 [18:43:39]Write 301 bytes [18:43:39]NVStorageSaveData done [18:43:39]OFDSenderStorePacket done [18:43:39]KKMCreateOFDPacket done [18:43:39]NVStorageSaveData kkm_last_timestamp [18:43:39]File name is /storage/kkm_last_timestamp [18:43:39]Write 4 bytes [18:43:39]NVStorageSaveData done [18:43:39]ExternCall_PrintAddStr [18:43:39]wPrintStart [18:43:39]Write to MH i2c: 01 00 00 02 20 22 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 07 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 07 00 02 20 00 00 00 00 00 FF 0F 37 [18:43:39]RasterBufferAndPrint [18:43:39]line Счет N : (1)210924 [18:43:39]line ИНН: 02508201610067 [18:43:39]line Контрольно-Кассовый Чек [18:43:39]line ПРОДАЖА [18:43:39]line ТРК (МРК, ГНК) : 42 [18:43:39]line Товар: 2710124130 [18:43:39]line Аи-92-К-3 [18:43:39]line 7.480 * 66.90 [18:43:39]line = 500.41 [18:43:39]line НДС 12% НСП 1% [18:43:39]line > о реализуемом товаре [18:43:39]line ИТОГО: 500.41 [18:43:39]line НСП 1% : 4.43 [18:43:39]line НДС 12% : 53.14 [18:43:39]line Наличными: 0.00 [18:43:39]line Безнал.: 500.41 [18:43:39]line Место: АЗС № 86 "Партнер Нефть" [18:43:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:43:39]line СНО: Общий режим [18:43:39]line Чек 320 23.10.2024 18:43 [18:43:39]line Смена: 462 ФФД: 1.0 [18:43:39]line ЗНМ: 0300000155 [18:43:39]line РНМ: 0000000000100030 [18:43:39]line Версия ККМ: 001 [18:43:39]line Платежная система: Бакай Банк [18:43:39]line ФМ: 0000000000965340 [18:43:39]line ФД: 188862 [18:43:39]line ФПД: 269756927194626 [18:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184339&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188862&fm=269756927194626&tin=02508201610067®Number=0000000000100030&sum=50041 [18:43:39]written 0, free lines is 4095 [18:43:39]OFD Sender: Processing packet 188862 [packets to send 1062, broken 1061] [18:43:39]ProducePacketName [18:43:39]name=ofd_packets/00188862 [18:43:39]OFD Sender: To server: pG, [18:43:39]CommunicateWithHost lk.salyk.kg:30040 [18:43:39]ConnectInit lk.salyk.kg [18:43:40]Connected sock=10 [18:43:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A 84 07 01 98 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 DB 43 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E1 02 00 35 04 06 00 F5 57 AD D2 36 02 D2 C2 CF 51 71 D2 5E 8D [18:43:40]Write to MH i2c: 01 00 00 2C 20 4C [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 2C 20 00 00 00 00 00 72 0C D1 [18:43:40]RasterBufferAndPrint [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]written 0, free lines is 3190 [18:43:40]MH_Cut [18:43:40]Write to MH i2c: D1 01 00 33 20 01 25 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 01 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 01 00 33 20 00 24 [18:43:40]Write to MH i2c: 01 00 00 34 20 54 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 44 9E 47 00 48 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E1 02 00 F4 03 04 00 C5 ED 18 67 B6 04 01 00 00 88 5E B6 01 C1 AD E1 C3 [18:43:40]CommunicateWithHost err = 0 [18:43:40]CheckOFDResponse [18:43:40]1017 (14) - 77093643461234 [18:43:40]1041 (16) - 0000000000965340 [18:43:40]1040 (4) - 188862 [18:43:40]1012 (4) - 23.10.2024 12:36 [18:43:40]1206 (1) - 0 [18:43:40]OFD Sender: Remove packet 188862 [18:43:40]ProducePacketName [18:43:40]name=ofd_packets/00188862 [18:43:40]NVStorageDeleteData [18:43:41]OFD Sender: No OFD packet to send [18:43:41]int [18:43:41]*** FLAG_PRN_PAP2 set [18:43:41]*** Cut start [18:43:41]*** Partial cut [18:43:41]*** CUTSNS_PIN = 1 [18:43:41]*** CUTSNS_PIN = 0 [18:43:41]*** Brake cut motor [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]*** Stop cut motor [18:43:42]*** Cut end [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 34 20 00 02 00 00 00 FF 0F 6B [18:43:42]process_action close_receipt done [18:43:42]requested_data is exist [18:43:42]produce_requested_data [18:43:42]requested_item fm.sn is exist - process it [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 11 00 00 [18:43:42]Write to MH i2c: E2 08 00 35 20 80 11 00 00 00 00 00 00 CF [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 35 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [18:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:43:42]wFMCommunicate OK [18:43:42]requested_item fd.num is exist - process it [18:43:42]SAM_PROTO_GetFieldsCounters [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 13 00 00 [18:43:42]Write to MH i2c: E2 08 00 36 20 80 13 00 00 00 00 00 00 D2 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 62 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 62 00 36 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [18:43:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_GetFieldsCounters done [18:43:42]requested_item shift.num is exist - process it [18:43:42]requested_item shift.opened is exist - process it [18:43:42]req_shift_opened [18:43:42]FM_GetShiftState [18:43:42]SAM_PROTO_GetShiftState [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 13 01 00 [18:43:42]Write to MH i2c: 01 00 00 37 20 57 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 37 20 00 02 00 00 00 FF 0F 6E [18:43:42]state=0 [18:43:42]Cover opened [18:43:42]Write to MH i2c: E2 08 00 38 20 80 13 01 00 00 00 00 00 D5 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0E 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0E 00 38 20 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BD [18:43:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_GetShiftState done [18:43:42]FM_GetShiftState done [18:43:42]req_shift_opened done [18:43:42]requested_item shift.open_date is exist - process it [18:43:42]req_shift_open_date [18:43:42]req_shift_open_date done [18:43:42]produce_requested_data done [18:43:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188862,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:43:42]process_action_free close_receipt [18:43:42]json_value_free [18:43:42]json_value_free done [18:43:42]process_json_proto returns [18:43:42]Send response to host [18:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188862,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:43:42]free response buf [18:43:42]execute_script done [18:43:42]execute_script returns [18:43:42]free content buf [18:43:42]Sock 7.Close socket [18:43:42]Sock 7.Thread stoped [18:43:46]OFD Sender: No OFD packet to send [18:43:47]Write to MH i2c: 01 00 00 39 20 59 [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 07 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 07 00 39 20 00 02 00 00 00 FF 0F 70 [18:43:47]state=3 [18:43:47]Cover opened [18:43:51]OFD Sender: No OFD packet to send [18:43:52]Write to MH i2c: 01 00 00 3A 20 5A [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 07 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 07 00 3A 20 00 02 00 00 00 FF 0F 71 [18:43:52]state=3 [18:43:52]Cover opened [18:43:56]OFD Sender: No OFD packet to send [18:43:57]Write to MH i2c: 01 00 00 3B 20 5B [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 07 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 07 00 3B 20 00 02 00 00 00 FF 0F 72 [18:43:57]state=3 [18:43:57]Cover opened [18:44:01]OFD Sender: No OFD packet to send [18:44:02]Write to MH i2c: 01 00 00 3C 20 5C [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: 01 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: 01 07 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: 01 07 00 3C 20 00 02 00 00 00 FF 0F 73 [18:44:02]state=3 [18:44:02]Cover opened [18:44:06]OFD Sender: No OFD packet to send [18:44:07]Write to MH i2c: 01 00 00 3D 20 5D [18:44:07]Write i2c OK [18:44:07]MH_I2C_Read... [18:44:07]Read from MH i2c: 01 [18:44:07]MH_I2C_Read... [18:44:07]Read from MH i2c: 01 07 00 [18:44:07]MH_I2C_Read... [18:44:07]Read from MH i2c: 01 07 00 3D 20 00 02 00 00 00 FF 0F 74 [18:44:07]state=3 [18:44:07]Cover opened [18:44:11]OFD Sender: No OFD packet to send [18:44:12]Write to MH i2c: 01 00 00 3E 20 5E [18:44:12]Write i2c OK [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: 01 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: 01 07 00 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: 01 07 00 3E 20 00 02 00 00 00 FF 0F 75 [18:44:12]state=3 [18:44:12]Cover opened [18:44:16]OFD Sender: No OFD packet to send [18:44:17]Write to MH i2c: 01 00 00 3F 20 5F [18:44:17]Write i2c OK [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: 01 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: 01 07 00 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: 01 07 00 3F 20 00 02 00 00 00 FF 0F 76 [18:44:17]state=3 [18:44:17]Cover opened [18:44:21]OFD Sender: No OFD packet to send [18:44:22]Write to MH i2c: 01 00 00 40 20 60 [18:44:22]Write i2c OK [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: 01 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: 01 07 00 [18:44:22]MH_I2C_Read... [18:44:22]Read from MH i2c: 01 07 00 40 20 00 02 00 00 00 FF 0F 77 [18:44:22]state=3 [18:44:22]Cover opened [18:44:26]OFD Sender: No OFD packet to send [18:44:27]Write to MH i2c: 01 00 00 41 20 61 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 07 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 07 00 41 20 00 02 00 00 00 FF 0F 78 [18:44:27]state=3 [18:44:27]Cover opened [18:44:31]OFD Sender: No OFD packet to send [18:44:32]Write to MH i2c: 01 00 00 42 20 62 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 07 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 07 00 42 20 00 02 00 00 00 FF 0F 79 [18:44:32]state=3 [18:44:32]Cover opened [18:44:36]OFD Sender: No OFD packet to send [18:44:37]Write to MH i2c: 01 00 00 43 20 63 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 07 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 07 00 43 20 00 02 00 00 00 FF 0F 7A [18:44:37]state=3 [18:44:37]Cover opened [18:44:41]OFD Sender: No OFD packet to send [18:44:42]Write to MH i2c: 01 00 00 44 20 64 [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: 01 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: 01 07 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: 01 07 00 44 20 00 02 00 00 00 FF 0F 7B [18:44:42]state=3 [18:44:42]Cover opened [18:44:46]OFD Sender: No OFD packet to send [18:44:47]Write to MH i2c: 01 00 00 45 20 65 [18:44:47]Write i2c OK [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: 01 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: 01 07 00 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: 01 07 00 45 20 00 02 00 00 00 FF 0F 7C [18:44:47]state=3 [18:44:47]Cover opened [18:44:51]OFD Sender: No OFD packet to send [18:44:52]Write to MH i2c: 01 00 00 46 20 66 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: 01 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: 01 07 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: 01 07 00 46 20 00 02 00 00 00 FF 0F 7D [18:44:52]state=3 [18:44:52]Cover opened [18:44:53]accept exits with 9 [18:44:53]New connection [18:44:53]New thread 3067350372 created [18:44:53]Thread 3067207012 joined [18:44:53]Waiting for new connection... [18:44:53] Sock 9.Parse request [18:44:53]Sock 9.Check first char [18:44:53]Sock 9.First char is OK [18:44:53]request: POST /json_proto HTTP/1.0 [18:44:53]Method: POST [18:44:53]URL: /json_proto [18:44:53]Method is POST - this is cgi request [18:44:53]url: /json_proto [18:44:53]query_string will be loaded in cgi processing [18:44:53]execute_cgi json_proto POST (null) [18:44:53]execute_cgi path=json_proto method=POST [18:44:53]POST find Content-Length [18:44:53]Host: 172.17.42.131:8080 [18:44:53]Content-Length: 769 [18:44:53]Content-Type: application/json [18:44:53] [18:44:53]POST finish read [18:44:53]Found Content-Length = 769 [18:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:53]execute_script... [18:44:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:53]POST & json_proto [18:44:53]process_json_proto [18:44:53]json parsed OK: [18:44:53]protocol is kg_v1.0 [18:44:53]action value=close_receipt [18:44:53]process_action close_receipt [18:44:53]cmd_close_receipt [18:44:53]MH_GetDate [18:44:53]Write to MH i2c: F0 00 00 47 20 56 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: F0 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: F0 09 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: F0 09 00 47 20 00 27 44 19 67 A0 18 CA 66 32 [18:44:53]GetLastDocTimeStamp 1729709019 [18:44:53]current date 1729709095 [18:44:53]FM_GetShiftState [18:44:53]SAM_PROTO_GetShiftState [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 13 01 00 [18:44:53]Write to MH i2c: E2 08 00 48 20 80 13 01 00 00 00 00 00 E5 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0E 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0E 00 48 20 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CD [18:44:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:44:53]wFMCommunicate OK [18:44:53]SAM_PROTO_GetShiftState done [18:44:53]FM_GetShiftState done [18:44:53]opened in 1729642525 [18:44:53]opened+sec_in_day 1729728925 [18:44:53]quantity*price = 100015 [18:44:53]sum+1 = 100017 [18:44:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 321 23.10.2024 18:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188863 ФПД: 114407522629729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184455&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188863&fm=114407522629729&tin=02508201610067®Number=0000000000100030&sum=100016 [18:44:54]StoreToDocumentArchive [18:44:54]shift 462 fd 188863 [18:44:54]save to /storage/0462/doc_00188863 [18:44:54]save last doc name /storage/0462/doc_00188863 to /storage/kkm_last_doc_name [18:44:54]save OK [18:44:54]Clear old archive folders... [18:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:54]tlvbuf is B6F22800 [18:44:54]SAM_PROTO_ClearQueue [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 09 00 00 [18:44:54]Write to MH i2c: E2 08 00 55 20 80 09 00 00 00 00 00 00 E7 [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 03 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [18:44:54]RAPDU: 90 00 [18:44:54]wFMCommunicate OK [18:44:54]SAM_PROTO_ClearQueue done [18:44:54]KKMCreateOFDPacket [18:44:54]OFDProtocolAddRootSTLVToBuf [18:44:54]FM_MakeSignedData [18:44:54]FM_MakeSignedData [18:44:54]SAM_PROTO_SignData [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 0D 01 02 [18:44:54]Write to MH i2c: E2 08 00 56 20 80 0D 01 02 00 00 00 00 EF [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 03 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [18:44:54]RAPDU: 90 00 [18:44:54]wFMCommunicate OK [18:44:54]wFMCommunicate request_size=255 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 27 44 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E1 02 00 35 04 06 00 68 [18:44:54]Write to MH i2c: E2 02 01 57 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 27 44 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E1 02 00 35 04 06 00 68 00 00 82 [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [18:44:55]RAPDU: 90 00 [18:44:55]wFMCommunicate OK [18:44:55]wFMCommunicate request_size=10 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 0D 02 02 05 0D 93 BE F8 61 [18:44:55]Write to MH i2c: E2 0D 00 58 20 80 0D 02 02 05 00 0D 93 BE F8 61 00 00 B3 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 58 20 00 90 00 EC [18:44:55]RAPDU: 90 00 [18:44:55]wFMCommunicate OK [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 0D 03 02 [18:44:55]Write to MH i2c: E2 08 00 59 20 80 0D 03 02 00 00 00 00 F4 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 0B 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 0B 00 59 20 00 77 D2 DD 27 E6 86 C6 1E 90 00 92 [18:44:55]RAPDU: 77 D2 DD 27 E6 86 C6 1E 90 00 [18:44:55]wFMCommunicate OK [18:44:55]SAM_PROTO_SignData done [18:44:55]FM_MakeSignedData done [18:44:55]CreateOFDProtocolMessage [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 11 00 00 [18:44:55]Write to MH i2c: E2 08 00 5A 20 80 11 00 00 00 00 00 00 F4 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 17 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 17 00 5A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [18:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:44:55]wFMCommunicate OK [18:44:55]CreateOFDProtocolMessage done [18:44:55]OFDSenderStorePacket 188863 [18:44:55]StoreOFDPacket docnum=188863 [18:44:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0E 5F 07 01 90 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 27 44 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E1 02 00 35 04 06 00 68 0D 93 BE F8 61 77 D2 DD 27 E6 86 C6 1E [18:44:55]CheckFolder [18:44:55]dirname=/storage/ofd_packets [18:44:55]CheckFolder done [18:44:55]ProducePacketName [18:44:55]name=ofd_packets/00188863 [18:44:55]NVStorageSaveData ofd_packets/00188863 [18:44:55]File name is /storage/ofd_packets/00188863 [18:44:55]Write 301 bytes [18:44:55]NVStorageSaveData done [18:44:55]OFDSenderStorePacket done [18:44:55]KKMCreateOFDPacket done [18:44:55]NVStorageSaveData kkm_last_timestamp [18:44:55]File name is /storage/kkm_last_timestamp [18:44:55]Write 4 bytes [18:44:55]NVStorageSaveData done [18:44:55]ExternCall_PrintAddStr [18:44:55]wPrintStart [18:44:55]Write to MH i2c: 01 00 00 5B 20 7B [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: 01 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: 01 07 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: 01 07 00 5B 20 00 02 00 00 00 FF 0F 92 [18:44:55]RasterBufferAndPrint [18:44:55]line Счет N : (1)210925 [18:44:55]line ИНН: 02508201610067 [18:44:55]line Контрольно-Кассовый Чек [18:44:55]line ПРОДАЖА [18:44:55]line ТРК (МРК, ГНК) : 12 [18:44:55]line Товар: 2710124130 [18:44:55]line Аи-92-К-3 [18:44:55]line 14.950 * 66.90 [18:44:55]line = 1000.16 [18:44:55]line НДС 12% НСП 1% [18:44:55]line > о реализуемом товаре [18:44:55]line ИТОГО: 1000.16 [18:44:55]line НСП 1% : 8.85 [18:44:55]line НДС 12% : 106.21 [18:44:55]line Наличными: 0.00 [18:44:55]line Безнал.: 1000.16 [18:44:55]line Место: АЗС № 86 "Партнер Нефть" [18:44:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:44:55]line СНО: Общий режим [18:44:55]line Чек 321 23.10.2024 18:44 [18:44:55]line Смена: 462 ФФД: 1.0 [18:44:55]line ЗНМ: 0300000155 [18:44:55]line РНМ: 0000000000100030 [18:44:55]line Версия ККМ: 001 [18:44:55]line Платежная система: Mbank [18:44:55]line ФМ: 0000000000965340 [18:44:55]line ФД: 188863 [18:44:55]line ФПД: 114407522629729 [18:44:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184455&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188863&fm=114407522629729&tin=02508201610067®Number=0000000000100030&sum=100016 [18:44:55]written 0, free lines is 4095 [18:44:55]Error from MH - 05 [18:44:55]process_action_free close_receipt [18:44:55]json_value_free [18:44:55]json_value_free done [18:44:55]process_json_proto returns [18:44:55]Send response to host [18:44:55]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [18:44:55]free response buf [18:44:55]execute_script done [18:44:55]execute_script returns [18:44:55]free content buf [18:44:55]Sock 9.Close socket [18:44:55]Sock 9.Thread stoped [18:44:55]OFD Sender: Processing packet 188863 [packets to send 1062, broken 1061] [18:44:55]ProducePacketName [18:44:55]name=ofd_packets/00188863 [18:44:55]OFD Sender: To server: pG, [18:44:55]CommunicateWithHost lk.salyk.kg:30040 [18:44:55]ConnectInit lk.salyk.kg [18:44:55]Connected sock=9 [18:44:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0E 5F 07 01 90 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 27 44 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E1 02 00 35 04 06 00 68 0D 93 BE F8 61 77 D2 DD 27 E6 86 C6 1E [18:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 94 E7 47 00 1C 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E1 02 00 F4 03 04 00 11 EE 18 67 B6 04 01 00 00 76 1B A6 31 3C AF DB A5 [18:44:56]CommunicateWithHost err = 0 [18:44:56]CheckOFDResponse [18:44:56]1017 (14) - 77093643461234 [18:44:56]1041 (16) - 0000000000965340 [18:44:56]1040 (4) - 188863 [18:44:56]1012 (4) - 23.10.2024 12:37 [18:44:56]1206 (1) - 0 [18:44:56]OFD Sender: Remove packet 188863 [18:44:56]ProducePacketName [18:44:56]name=ofd_packets/00188863 [18:44:56]NVStorageDeleteData [18:44:56]OFD Sender: No OFD packet to send [18:44:57]Write to MH i2c: 01 00 00 5E 20 7E [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: 01 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: 01 07 00 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: 01 07 00 5E 20 00 02 00 00 00 FF 0F 95 [18:44:57]state=3 [18:44:57]Cover opened [18:45:01]OFD Sender: No OFD packet to send [18:45:02]Write to MH i2c: 01 00 00 5F 20 7F [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 07 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 07 00 5F 20 00 02 00 00 00 FF 0F 96 [18:45:02]state=3 [18:45:02]Cover opened [18:45:06]OFD Sender: No OFD packet to send [18:45:07]Write to MH i2c: 01 00 00 60 20 80 [18:45:07]Write i2c OK [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: 01 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: 01 07 00 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: 01 07 00 60 20 00 02 00 00 00 FF 0F 97 [18:45:07]state=3 [18:45:07]Cover opened [18:45:11]OFD Sender: No OFD packet to send [18:45:12]Write to MH i2c: 01 00 00 61 20 81 [18:45:12]Write i2c OK [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 07 00 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 07 00 61 20 00 02 00 00 00 FF 0F 98 [18:45:12]state=3 [18:45:12]Cover opened [18:45:16]OFD Sender: No OFD packet to send [18:45:17]Write to MH i2c: 01 00 00 62 20 82 [18:45:17]Write i2c OK [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: 01 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: 01 07 00 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: 01 07 00 62 20 00 02 00 00 00 FF 0F 99 [18:45:17]state=3 [18:45:17]Cover opened [18:45:21]OFD Sender: No OFD packet to send [18:45:22]Write to MH i2c: 01 00 00 63 20 83 [18:45:22]Write i2c OK [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 07 00 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 07 00 63 20 00 02 00 00 00 FF 0F 9A [18:45:22]state=3 [18:45:22]Cover opened [18:45:26]OFD Sender: No OFD packet to send [18:45:27]Write to MH i2c: 01 00 00 64 20 84 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 64 20 00 02 00 00 00 FF 0F 9B [18:45:27]state=3 [18:45:27]Cover opened [18:45:31]OFD Sender: No OFD packet to send [18:45:32]Write to MH i2c: 01 00 00 65 20 85 [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 65 20 00 02 00 00 00 FF 0F 9C [18:45:32]state=3 [18:45:32]Cover opened [18:45:36]OFD Sender: No OFD packet to send [18:45:37]Write to MH i2c: 01 00 00 66 20 86 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: 01 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: 01 07 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: 01 07 00 66 20 00 02 00 00 00 FF 0F 9D [18:45:37]state=3 [18:45:37]Cover opened [18:45:41]OFD Sender: No OFD packet to send [18:45:42]Write to MH i2c: 01 00 00 67 20 87 [18:45:42]Write i2c OK [18:45:42]MH_I2C_Read... [18:45:42]Read from MH i2c: 01 [18:45:42]MH_I2C_Read... [18:45:42]Read from MH i2c: 01 07 00 [18:45:42]MH_I2C_Read... [18:45:42]Read from MH i2c: 01 07 00 67 20 00 02 00 00 00 FF 0F 9E [18:45:42]state=3 [18:45:42]Cover opened [18:45:46]OFD Sender: No OFD packet to send [18:45:47]Write to MH i2c: 01 00 00 68 20 88 [18:45:47]Write i2c OK [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: 01 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: 01 07 00 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: 01 07 00 68 20 00 02 00 00 00 FF 0F 9F [18:45:47]state=3 [18:45:47]Cover opened [18:45:51]OFD Sender: No OFD packet to send [18:45:52]Write to MH i2c: 01 00 00 69 20 89 [18:45:52]Write i2c OK [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: 01 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: 01 07 00 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: 01 07 00 69 20 00 02 00 00 00 FF 0F A0 [18:45:52]state=3 [18:45:52]Cover opened [18:45:56]OFD Sender: No OFD packet to send [18:45:57]Write to MH i2c: 01 00 00 6A 20 8A [18:45:57]Write i2c OK [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: 01 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: 01 07 00 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: 01 07 00 6A 20 00 02 00 00 00 FF 0F A1 [18:45:57]state=3 [18:45:57]Cover opened [18:46:02]OFD Sender: No OFD packet to send [18:46:02]Write to MH i2c: 01 00 00 6B 20 8B [18:46:02]Write i2c OK [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: 01 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: 01 07 00 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: 01 07 00 6B 20 00 02 00 00 00 FF 0F A2 [18:46:02]state=3 [18:46:02]Cover opened [18:46:07]OFD Sender: No OFD packet to send [18:46:07]Write to MH i2c: 01 00 00 6C 20 8C [18:46:07]Write i2c OK [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: 01 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: 01 07 00 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: 01 07 00 6C 20 00 02 00 00 00 FF 0F A3 [18:46:07]state=3 [18:46:07]Cover opened [18:46:12]OFD Sender: No OFD packet to send [18:46:12]Write to MH i2c: 01 00 00 6D 20 8D [18:46:12]Write i2c OK [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: 01 [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: 01 07 00 [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: 01 07 00 6D 20 00 02 00 00 00 FF 0F A4 [18:46:12]state=3 [18:46:12]Cover opened [18:46:17]OFD Sender: No OFD packet to send [18:46:17]Write to MH i2c: 01 00 00 6E 20 8E [18:46:17]Write i2c OK [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 07 00 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 07 00 6E 20 00 02 00 00 00 FF 0F A5 [18:46:17]state=3 [18:46:17]Cover opened [18:46:22]OFD Sender: No OFD packet to send [18:46:22]Write to MH i2c: 01 00 00 6F 20 8F [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: 01 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: 01 07 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: 01 07 00 6F 20 00 02 00 00 00 FF 0F A6 [18:46:22]state=3 [18:46:22]Cover opened [18:46:27]OFD Sender: No OFD packet to send [18:46:27]Write to MH i2c: 01 00 00 70 20 90 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: 01 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: 01 07 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: 01 07 00 70 20 00 02 00 00 00 FF 0F A7 [18:46:27]state=3 [18:46:27]Cover opened [18:46:32]OFD Sender: No OFD packet to send [18:46:32]Write to MH i2c: 01 00 00 71 20 91 [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 07 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 07 00 71 20 00 02 00 00 00 FF 0F A8 [18:46:32]state=3 [18:46:32]Cover opened [18:46:37]OFD Sender: No OFD packet to send [18:46:37]Write to MH i2c: 01 00 00 72 20 92 [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 07 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 07 00 72 20 00 02 00 00 00 FF 0F A9 [18:46:37]state=3 [18:46:37]Cover opened [18:46:42]OFD Sender: No OFD packet to send [18:46:42]Write to MH i2c: 01 00 00 73 20 93 [18:46:42]Write i2c OK [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: 01 [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: 01 07 00 [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: 01 07 00 73 20 00 02 00 00 00 FF 0F AA [18:46:42]state=3 [18:46:42]Cover opened [18:46:47]OFD Sender: No OFD packet to send [18:46:47]Write to MH i2c: 01 00 00 74 20 94 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 74 20 00 02 00 00 00 FF 0F AB [18:46:47]state=3 [18:46:47]Cover opened [18:46:52]OFD Sender: No OFD packet to send [18:46:52]Write to MH i2c: 01 00 00 75 20 95 [18:46:52]Write i2c OK [18:46:52]MH_I2C_Read... [18:46:52]Read from MH i2c: 01 [18:46:52]MH_I2C_Read... [18:46:52]Read from MH i2c: 01 07 00 [18:46:52]MH_I2C_Read... [18:46:52]Read from MH i2c: 01 07 00 75 20 00 02 00 00 00 FF 0F AC [18:46:52]state=3 [18:46:52]Cover opened [18:46:57]OFD Sender: No OFD packet to send [18:46:57]Write to MH i2c: 01 00 00 76 20 96 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 07 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 07 00 76 20 00 02 00 00 00 FF 0F AD [18:46:57]state=3 [18:46:57]Cover opened [18:47:02]OFD Sender: No OFD packet to send [18:47:02]Write to MH i2c: 01 00 00 77 20 97 [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 07 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 07 00 77 20 00 02 00 00 00 FF 0F AE [18:47:02]state=3 [18:47:02]Cover opened [18:47:07]OFD Sender: No OFD packet to send [18:47:07]Write to MH i2c: 01 00 00 78 20 98 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 07 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 07 00 78 20 00 02 00 00 00 FF 0F AF [18:47:07]state=3 [18:47:07]Cover opened [18:47:12]OFD Sender: No OFD packet to send [18:47:12]Write to MH i2c: 01 00 00 79 20 99 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 79 20 00 02 00 00 00 FF 0F B0 [18:47:12]state=3 [18:47:12]Cover opened [18:47:17]OFD Sender: No OFD packet to send [18:47:17]Write to MH i2c: 01 00 00 7A 20 9A [18:47:17]Write i2c OK [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: 01 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: 01 07 00 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: 01 07 00 7A 20 00 02 00 00 00 FF 0F B1 [18:47:17]state=3 [18:47:17]Cover opened [18:47:22]OFD Sender: No OFD packet to send [18:47:22]Write to MH i2c: 01 00 00 7B 20 9B [18:47:22]Write i2c OK [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: 01 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: 01 07 00 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: 01 07 00 7B 20 00 02 00 00 00 FF 0F B2 [18:47:22]state=3 [18:47:22]Cover opened [18:47:27]OFD Sender: No OFD packet to send [18:47:27]Write to MH i2c: 01 00 00 7C 20 9C [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: 01 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: 01 07 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: 01 07 00 7C 20 00 02 00 00 00 FF 0F B3 [18:47:27]state=3 [18:47:27]Cover opened [18:47:32]OFD Sender: No OFD packet to send [18:47:32]Write to MH i2c: 01 00 00 7D 20 9D [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: 01 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: 01 07 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: 01 07 00 7D 20 00 02 00 00 00 FF 0F B4 [18:47:32]state=3 [18:47:32]Cover opened [18:47:37]OFD Sender: No OFD packet to send [18:47:37]Write to MH i2c: 01 00 00 7E 20 9E [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: 01 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: 01 07 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: 01 07 00 7E 20 00 02 00 00 00 FF 0F B5 [18:47:37]state=3 [18:47:37]Cover opened [18:47:42]OFD Sender: No OFD packet to send [18:47:42]Write to MH i2c: 01 00 00 7F 20 9F [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: 01 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: 01 07 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: 01 07 00 7F 20 00 02 00 00 00 FF 0F B6 [18:47:42]state=3 [18:47:42]Cover opened [18:47:47]OFD Sender: No OFD packet to send [18:47:47]Write to MH i2c: 01 00 00 80 20 A0 [18:47:47]Write i2c OK [18:47:47]MH_I2C_Read... [18:47:47]Read from MH i2c: 01 [18:47:47]MH_I2C_Read... [18:47:47]Read from MH i2c: 01 07 00 [18:47:47]MH_I2C_Read... [18:47:47]Read from MH i2c: 01 07 00 80 20 00 02 00 00 00 FF 0F B7 [18:47:47]state=3 [18:47:47]Cover opened [18:47:52]OFD Sender: No OFD packet to send [18:47:52]Write to MH i2c: 01 00 00 81 20 A1 [18:47:52]Write i2c OK [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: 01 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: 01 07 00 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: 01 07 00 81 20 00 02 00 00 00 FF 0F B8 [18:47:52]state=3 [18:47:52]Cover opened [18:47:57]OFD Sender: No OFD packet to send [18:47:57]Write to MH i2c: 01 00 00 82 20 A2 [18:47:57]Write i2c OK [18:47:57]MH_I2C_Read... [18:47:57]Read from MH i2c: 01 [18:47:57]MH_I2C_Read... [18:47:57]Read from MH i2c: 01 07 00 [18:47:57]MH_I2C_Read... [18:47:57]Read from MH i2c: 01 07 00 82 20 00 02 00 00 00 FF 0F B9 [18:47:57]state=3 [18:47:57]Cover opened [18:48:02]OFD Sender: No OFD packet to send [18:48:02]Write to MH i2c: 01 00 00 83 20 A3 [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: 01 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: 01 07 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: 01 07 00 83 20 00 02 00 00 00 FF 0F BA [18:48:02]state=3 [18:48:02]Cover opened [18:48:07]OFD Sender: No OFD packet to send [18:48:07]Write to MH i2c: 01 00 00 84 20 A4 [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: 01 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: 01 07 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: 01 07 00 84 20 00 02 00 00 00 FF 0F BB [18:48:07]state=3 [18:48:07]Cover opened [18:48:12]OFD Sender: No OFD packet to send [18:48:12]Write to MH i2c: 01 00 00 85 20 A5 [18:48:12]Write i2c OK [18:48:12]MH_I2C_Read... [18:48:12]Read from MH i2c: 01 [18:48:12]MH_I2C_Read... [18:48:12]Read from MH i2c: 01 07 00 [18:48:12]MH_I2C_Read... [18:48:12]Read from MH i2c: 01 07 00 85 20 00 02 00 00 00 FF 0F BC [18:48:12]state=3 [18:48:12]Cover opened [18:48:17]OFD Sender: No OFD packet to send [18:48:17]Write to MH i2c: 01 00 00 86 20 A6 [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: 01 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: 01 07 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: 01 07 00 86 20 00 02 00 00 00 FF 0F BD [18:48:17]state=3 [18:48:17]Cover opened [18:48:22]OFD Sender: No OFD packet to send [18:48:22]Write to MH i2c: 01 00 00 87 20 A7 [18:48:22]Write i2c OK [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: 01 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: 01 07 00 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: 01 07 00 87 20 00 02 00 00 00 FF 0F BE [18:48:22]state=3 [18:48:22]Cover opened [18:48:27]Write to MH i2c: 01 00 00 88 20 A8 [18:48:27]Write i2c OK [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: 01 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: 01 07 00 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: 01 07 00 88 20 00 02 00 00 00 FF 0F BF [18:48:27]state=3 [18:48:27]Cover opened [18:48:27]OFD Sender: No OFD packet to send [18:48:32]Write to MH i2c: 01 00 00 89 20 A9 [18:48:32]Write i2c OK [18:48:32]MH_I2C_Read... [18:48:32]Read from MH i2c: 01 [18:48:32]MH_I2C_Read... [18:48:32]Read from MH i2c: 01 07 00 [18:48:32]MH_I2C_Read... [18:48:32]Read from MH i2c: 01 07 00 89 20 00 02 00 00 00 FF 0F C0 [18:48:32]state=3 [18:48:32]Cover opened [18:48:32]OFD Sender: No OFD packet to send [18:48:37]Write to MH i2c: 01 00 00 8A 20 AA [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: 01 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: 01 07 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: 01 07 00 8A 20 00 02 00 00 00 FF 0F C1 [18:48:37]state=3 [18:48:37]Cover opened [18:48:37]OFD Sender: No OFD packet to send [18:48:42]Write to MH i2c: 01 00 00 8B 20 AB [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 07 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 07 00 8B 20 00 02 00 00 00 FF 0F C2 [18:48:42]state=3 [18:48:42]Cover opened [18:48:42]OFD Sender: No OFD packet to send [18:48:47]Write to MH i2c: 01 00 00 8C 20 AC [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 07 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 07 00 8C 20 00 02 00 00 00 FF 0F C3 [18:48:47]state=3 [18:48:47]Cover opened [18:48:47]OFD Sender: No OFD packet to send [18:48:52]Write to MH i2c: 01 00 00 8D 20 AD [18:48:52]Write i2c OK [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 07 00 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 07 00 8D 20 00 02 00 00 00 FF 0F C4 [18:48:52]state=3 [18:48:52]Cover opened [18:48:52]OFD Sender: No OFD packet to send [18:48:57]Write to MH i2c: 01 00 00 8E 20 AE [18:48:57]Write i2c OK [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: 01 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: 01 07 00 [18:48:57]MH_I2C_Read... [18:48:57]Read from MH i2c: 01 07 00 8E 20 00 02 00 00 00 FF 0F C5 [18:48:57]state=3 [18:48:57]Cover opened [18:48:57]OFD Sender: No OFD packet to send [18:49:02]Write to MH i2c: 01 00 00 8F 20 AF [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 07 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 07 00 8F 20 00 02 00 00 00 FF 0F C6 [18:49:02]state=3 [18:49:02]Cover opened [18:49:02]OFD Sender: No OFD packet to send [18:49:07]Write to MH i2c: 01 00 00 90 20 B0 [18:49:07]Write i2c OK [18:49:07]MH_I2C_Read... [18:49:07]Read from MH i2c: 01 [18:49:07]MH_I2C_Read... [18:49:07]Read from MH i2c: 01 07 00 [18:49:07]MH_I2C_Read... [18:49:07]Read from MH i2c: 01 07 00 90 20 00 02 00 00 00 FF 0F C7 [18:49:07]state=3 [18:49:07]Cover opened [18:49:07]OFD Sender: No OFD packet to send [18:49:12]Write to MH i2c: 01 00 00 91 20 B1 [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: 01 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: 01 07 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: 01 07 00 91 20 00 02 00 00 00 FF 0F C8 [18:49:12]state=3 [18:49:12]Cover opened [18:49:12]OFD Sender: No OFD packet to send [18:49:17]Write to MH i2c: 01 00 00 92 20 B2 [18:49:17]Write i2c OK [18:49:17]MH_I2C_Read... [18:49:17]Read from MH i2c: 01 [18:49:17]MH_I2C_Read... [18:49:17]Read from MH i2c: 01 07 00 [18:49:17]MH_I2C_Read... [18:49:17]Read from MH i2c: 01 07 00 92 20 00 02 00 00 00 FF 0F C9 [18:49:17]state=3 [18:49:17]Cover opened [18:49:17]OFD Sender: No OFD packet to send [18:49:22]Write to MH i2c: 01 00 00 93 20 B3 [18:49:22]Write i2c OK [18:49:22]MH_I2C_Read... [18:49:22]Read from MH i2c: 01 [18:49:22]MH_I2C_Read... [18:49:22]Read from MH i2c: 01 07 00 [18:49:22]MH_I2C_Read... [18:49:22]Read from MH i2c: 01 07 00 93 20 00 02 00 00 00 FF 0F CA [18:49:22]state=3 [18:49:22]Cover opened [18:49:22]OFD Sender: No OFD packet to send [18:49:27]Write to MH i2c: 01 00 00 94 20 B4 [18:49:27]Write i2c OK [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: 01 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: 01 07 00 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: 01 07 00 94 20 00 02 00 00 00 FF 0F CB [18:49:27]state=3 [18:49:27]Cover opened [18:49:27]OFD Sender: No OFD packet to send [18:49:32]Write to MH i2c: 01 00 00 95 20 B5 [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 07 00 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 07 00 95 20 00 02 00 00 00 FF 0F CC [18:49:32]state=3 [18:49:32]Cover opened [18:49:32]OFD Sender: No OFD packet to send [18:49:37]Write to MH i2c: 01 00 00 96 20 B6 [18:49:37]Write i2c OK [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: 01 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: 01 07 00 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: 01 07 00 96 20 00 02 00 00 00 FF 0F CD [18:49:37]state=3 [18:49:37]Cover opened [18:49:37]OFD Sender: No OFD packet to send [18:49:42]Write to MH i2c: 01 00 00 97 20 B7 [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: 01 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: 01 07 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: 01 07 00 97 20 00 02 00 00 00 FF 0F CE [18:49:42]state=3 [18:49:42]Cover opened [18:49:42]OFD Sender: No OFD packet to send [18:49:47]Write to MH i2c: 01 00 00 98 20 B8 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 07 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 07 00 98 20 00 02 00 00 00 FF 0F CF [18:49:47]state=3 [18:49:47]Cover opened [18:49:47]OFD Sender: No OFD packet to send [18:49:52]Write to MH i2c: 01 00 00 99 20 B9 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 07 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 07 00 99 20 00 02 00 00 00 FF 0F D0 [18:49:52]state=3 [18:49:52]Cover opened [18:49:53]OFD Sender: No OFD packet to send [18:49:57]Write to MH i2c: 01 00 00 9A 20 BA [18:49:57]Write i2c OK [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 07 00 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 07 00 9A 20 00 02 00 00 00 FF 0F D1 [18:49:57]state=3 [18:49:57]Cover opened [18:49:58]OFD Sender: No OFD packet to send [18:50:02]Write to MH i2c: 01 00 00 9B 20 BB [18:50:02]Write i2c OK [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 07 00 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 07 00 9B 20 00 02 00 00 00 FF 0F D2 [18:50:02]state=3 [18:50:02]Cover opened [18:50:03]OFD Sender: No OFD packet to send [18:50:07]Write to MH i2c: 01 00 00 9C 20 BC [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 07 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 07 00 9C 20 00 02 00 00 00 FF 0F D3 [18:50:07]state=3 [18:50:07]Cover opened [18:50:08]OFD Sender: No OFD packet to send [18:50:12]Write to MH i2c: 01 00 00 9D 20 BD [18:50:12]Write i2c OK [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: 01 [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: 01 07 00 [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: 01 07 00 9D 20 00 02 00 00 00 FF 0F D4 [18:50:12]state=3 [18:50:12]Cover opened [18:50:13]OFD Sender: No OFD packet to send [18:50:17]Write to MH i2c: 01 00 00 9E 20 BE [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: 01 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: 01 07 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: 01 07 00 9E 20 00 02 00 00 00 FF 0F D5 [18:50:17]state=3 [18:50:17]Cover opened [18:50:18]OFD Sender: No OFD packet to send [18:50:22]Write to MH i2c: 01 00 00 9F 20 BF [18:50:22]Write i2c OK [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: 01 [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: 01 07 00 [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: 01 07 00 9F 20 00 02 00 00 00 FF 0F D6 [18:50:22]state=3 [18:50:22]Cover opened [18:50:23]OFD Sender: No OFD packet to send [18:50:27]Write to MH i2c: 01 00 00 A0 20 C0 [18:50:27]Write i2c OK [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: 01 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: 01 07 00 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: 01 07 00 A0 20 00 02 00 00 00 FF 0F D7 [18:50:27]state=3 [18:50:27]Cover opened [18:50:28]OFD Sender: No OFD packet to send [18:50:32]Write to MH i2c: 01 00 00 A1 20 C1 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 07 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 07 00 A1 20 00 02 00 00 00 FF 0F D8 [18:50:32]state=3 [18:50:32]Cover opened [18:50:33]OFD Sender: No OFD packet to send [18:50:37]Write to MH i2c: 01 00 00 A2 20 C2 [18:50:37]Write i2c OK [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 A2 20 00 02 00 00 00 FF 0F D9 [18:50:37]state=3 [18:50:37]Cover opened [18:50:38]OFD Sender: No OFD packet to send [18:50:42]Write to MH i2c: 01 00 00 A3 20 C3 [18:50:42]Write i2c OK [18:50:42]MH_I2C_Read... [18:50:42]Read from MH i2c: 01 [18:50:42]MH_I2C_Read... [18:50:42]Read from MH i2c: 01 07 00 [18:50:42]MH_I2C_Read... [18:50:42]Read from MH i2c: 01 07 00 A3 20 00 02 00 00 00 FF 0F DA [18:50:42]state=3 [18:50:42]Cover opened [18:50:43]OFD Sender: No OFD packet to send [18:50:47]Write to MH i2c: 01 00 00 A4 20 C4 [18:50:47]Write i2c OK [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 07 00 [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 07 00 A4 20 00 02 00 00 00 FF 0F DB [18:50:47]state=3 [18:50:47]Cover opened [18:50:48]OFD Sender: No OFD packet to send [18:50:52]Write to MH i2c: 01 00 00 A5 20 C5 [18:50:52]Write i2c OK [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: 01 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: 01 07 00 [18:50:52]MH_I2C_Read... [18:50:52]Read from MH i2c: 01 07 00 A5 20 00 02 00 00 00 FF 0F DC [18:50:52]state=3 [18:50:52]Cover opened [18:50:53]OFD Sender: No OFD packet to send [18:50:57]Write to MH i2c: 01 00 00 A6 20 C6 [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: 01 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: 01 07 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: 01 07 00 A6 20 00 02 00 00 00 FF 0F DD [18:50:57]state=3 [18:50:57]Cover opened [18:50:58]OFD Sender: No OFD packet to send [18:51:02]Write to MH i2c: 01 00 00 A7 20 C7 [18:51:02]Write i2c OK [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: 01 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: 01 07 00 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: 01 07 00 A7 20 00 02 00 00 00 FF 0F DE [18:51:02]state=3 [18:51:02]Cover opened [18:51:03]OFD Sender: No OFD packet to send [18:51:07]Write to MH i2c: 01 00 00 A8 20 C8 [18:51:07]Write i2c OK [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: 01 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: 01 07 00 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: 01 07 00 A8 20 00 02 00 00 00 FF 0F DF [18:51:07]state=3 [18:51:07]Cover opened [18:51:08]OFD Sender: No OFD packet to send [18:51:12]Write to MH i2c: 01 00 00 A9 20 C9 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 A9 20 00 02 00 00 00 FF 0F E0 [18:51:12]state=3 [18:51:12]Cover opened [18:51:13]OFD Sender: No OFD packet to send [18:51:15]int [18:51:15]Write to MH i2c: 01 00 00 AA 20 CA [18:51:15]*** FLAG_PRN_PAP1 set [18:51:15]Write i2c OK [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: 01 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: 01 07 00 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: 01 07 00 AA 20 00 03 00 00 00 FF 0F E2 [18:51:15]state=3 [18:51:15]No paper [18:51:15]Cover opened [18:51:18]OFD Sender: No OFD packet to send [18:51:20]Write to MH i2c: 01 00 00 AB 20 CB [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 07 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 07 00 AB 20 00 03 00 00 00 FF 0F E3 [18:51:20]state=3 [18:51:20]No paper [18:51:20]Cover opened [18:51:23]OFD Sender: No OFD packet to send [18:51:24]int [18:51:24]Write to MH i2c: 01 00 00 AC 20 CC [18:51:24]*** FLAG_PRN_PAP2 reset [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 AC 20 00 01 00 00 00 FF 0F E2 [18:51:24]state=3 [18:51:24]No paper [18:51:24]Cover closed [18:51:24]int [18:51:24]Write to MH i2c: 01 00 00 AD 20 CD [18:51:24]*** FLAG_PRN_PAP1 reset [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 AD 20 00 00 00 00 00 FF 0F E2 [18:51:24]state=0 [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725DF (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 5188975+1724520608=1729709583 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 6E 00 38 00 FF FF 84 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 10 46 19 67 A0 18 CA 66 BD [18:53:04]Current date/time: 23.10.2024 18:53 [18:53:04]FM_Init [18:53:04]wFMConnect [18:53:04]MH_SAM_On [18:53:04]Write to MH i2c: E0 00 00 08 00 E7 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_init finished! [18:53:04]*** atr: [18:53:04]*** 0F 3B D5 18 FF 81 91 FE [18:53:04]*** 1F C3 80 73 C8 21 10 0A [18:53:04]*** 00 00 00 00 00 00 00 00 [18:53:04]*** 00 00 00 00 00 00 00 00 [18:53:04]*** 00 00 00 00 00 00 00 00 [18:53:04]*** 00 00 00 00 00 00 00 00 [18:53:04]*** 00 00 00 00 00 00 00 00 [18:53:04]*** 00 00 00 00 00 00 00 00 [18:53:04]Read from MH i2c: E0 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E0 10 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:53:04]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:53:04]wFMCommunicate request_size=10 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:53:04]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:53:04]RAPDU: 90 00 [18:53:04]wFMCommunicate OK [18:53:04]wFMCommunicate request_size=4 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 80 11 00 00 [18:53:04]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 17 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [18:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:53:04]wFMCommunicate OK [18:53:04]Detected FM SN is 0000000000965340 [18:53:04]Stored FM SN is 0000000000965340 [18:53:04]wFMCommunicate request_size=9 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 80 16 00 00 04 28 0B 00 00 [18:53:04]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 28 0B 00 00 00 00 C5 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:53:04]RAPDU: 90 00 [18:53:04]wFMCommunicate OK [18:53:04]FM PIN OK [18:53:04]wFMCommunicate request_size=8 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 80 14 04 00 03 02 00 01 [18:53:04]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:53:04]RAPDU: 90 00 [18:53:04]wFMCommunicate OK [18:53:04]wFMCommunicate request_size=13 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:53:04]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:53:04]RAPDU: 90 00 [18:53:04]wFMCommunicate OK [18:53:04]wFMCommunicate request_size=4 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 80 11 00 00 [18:53:04]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 17 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [18:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:53:04]wFMCommunicate OK [18:53:04]DocumentArchiveInit [18:53:04]Start Httpd... [18:53:04]Httpd thread 3067239780 created [18:53:04]Write to MH i2c: 01 00 00 0F 00 0F [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 07 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:53:04]MH Int Process started [18:53:04]Allocated Socket 6 [18:53:04]Bind OK [18:53:04]Listen OK [18:53:04]httpd running on port 8080 [18:53:04]Waiting for new connection... [18:53:05]accept exits with 8 [18:53:05]New connection [18:53:05]New thread 3066953060 created [18:53:05]Waiting for new connection... [18:53:05] Sock 8.Parse request [18:53:05]Sock 8.Check first char [18:53:05]Sock 8.First char is OK [18:53:05]request: POST /json_proto HTTP/1.0 [18:53:05]Method: POST [18:53:05]URL: /json_proto [18:53:05]Method is POST - this is cgi request [18:53:05]url: /json_proto [18:53:05]query_string will be loaded in cgi processing [18:53:05]execute_cgi json_proto POST (null) [18:53:05]execute_cgi path=json_proto method=POST [18:53:05]POST find Content-Length [18:53:05]Host: 172.17.42.131:8080 [18:53:05]Content-Length: 215 [18:53:05]Content-Type: application/json [18:53:05] [18:53:05]POST finish read [18:53:05]Found Content-Length = 215 [18:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:05]execute_script... [18:53:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:05]POST & json_proto [18:53:05]process_json_proto [18:53:05]json parsed OK: [18:53:05]protocol is kg_v1.0 [18:53:05]action value=get_value [18:53:05]process_action get_value [18:53:05]cmd_get_value [18:53:05]process_action get_value done [18:53:05]requested_data is exist [18:53:05]produce_requested_data [18:53:05]requested_item kkm.sn is exist - process it [18:53:05]requested_item kkm.ver is exist - process it [18:53:05]requested_item fm.sn is exist - process it [18:53:05]wFMCommunicate request_size=4 [18:53:05]MH_SAM_APDU [18:53:05]CAPDU: 80 11 00 00 [18:53:05]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:53:05]Write i2c OK [18:53:05]MH_I2C_Read... [18:53:05]OFD Sender: No OFD packet to send [18:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:05]Read from MH i2c: E2 [18:53:05]MH_I2C_Read... [18:53:05]Read from MH i2c: E2 17 00 [18:53:05]MH_I2C_Read... [18:53:05]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [18:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:53:05]wFMCommunicate OK [18:53:05]requested_item fd.num is exist - process it [18:53:05]SAM_PROTO_GetFieldsCounters [18:53:05]wFMCommunicate request_size=4 [18:53:05]MH_SAM_APDU [18:53:05]CAPDU: 80 13 00 00 [18:53:05]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:53:05]Write i2c OK [18:53:05]MH_I2C_Read... [18:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:06]Read from MH i2c: E2 [18:53:06]MH_I2C_Read... [18:53:06]Read from MH i2c: E2 62 00 [18:53:06]MH_I2C_Read... [18:53:06]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [18:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:06]wFMCommunicate OK [18:53:06]SAM_PROTO_GetFieldsCounters done [18:53:06]requested_item shift.num is exist - process it [18:53:06]requested_item shift.opened is exist - process it [18:53:06]req_shift_opened [18:53:06]FM_GetShiftState [18:53:06]SAM_PROTO_GetShiftState [18:53:06]wFMCommunicate request_size=4 [18:53:06]MH_SAM_APDU [18:53:06]CAPDU: 80 13 01 00 [18:53:06]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:53:06]Write i2c OK [18:53:06]MH_I2C_Read... [18:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:06]Read from MH i2c: E2 [18:53:06]MH_I2C_Read... [18:53:06]Read from MH i2c: E2 0E 00 [18:53:06]MH_I2C_Read... [18:53:06]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 77 [18:53:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:53:06]wFMCommunicate OK [18:53:06]SAM_PROTO_GetShiftState done [18:53:06]FM_GetShiftState done [18:53:06]req_shift_opened done [18:53:06]requested_item shift.open_date is exist - process it [18:53:06]req_shift_open_date [18:53:06]req_shift_open_date done [18:53:06]produce_requested_data done [18:53:06]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188863,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:53:06]process_action_free get_value [18:53:06]json_value_free [18:53:06]json_value_free done [18:53:06]process_json_proto returns [18:53:06]Send response to host [18:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188863,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:53:06]free response buf [18:53:06]execute_script done [18:53:06]execute_script returns [18:53:06]free content buf [18:53:06]Sock 8.Close socket [18:53:06]Sock 8.Thread stoped [18:53:06]accept exits with 10 [18:53:06]New connection [18:53:06]New thread 3066809700 created [18:53:06]Thread 3066953060 joined [18:53:06]Waiting for new connection... [18:53:06] Sock 10.Parse request [18:53:06]Sock 10.Check first char [18:53:06]Sock 10.First char is OK [18:53:06]request: POST /json_proto HTTP/1.0 [18:53:06]Method: POST [18:53:06]URL: /json_proto [18:53:06]Method is POST - this is cgi request [18:53:06]url: /json_proto [18:53:06]query_string will be loaded in cgi processing [18:53:06]execute_cgi json_proto POST (null) [18:53:06]execute_cgi path=json_proto method=POST [18:53:06]POST find Content-Length [18:53:06]Host: 172.17.42.131:8080 [18:53:06]Content-Length: 331 [18:53:06]Content-Type: application/json [18:53:06] [18:53:06]POST finish read [18:53:06]Found Content-Length = 331 [18:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:53:06]execute_script... [18:53:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:53:06]POST & json_proto [18:53:06]process_json_proto [18:53:06]json parsed OK: [18:53:06]protocol is kg_v1.0 [18:53:06]action value=get_value [18:53:06]process_action get_value [18:53:06]cmd_get_value [18:53:06]process_action get_value done [18:53:06]requested_data is exist [18:53:06]produce_requested_data [18:53:06]requested_item fm.sale.total is exist - process it [18:53:06]SAM_PROTO_GetFMData [18:53:06]wFMCommunicate request_size=4 [18:53:06]MH_SAM_APDU [18:53:06]CAPDU: 80 13 03 00 [18:53:06]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:53:06]Write i2c OK [18:53:06]MH_I2C_Read... [18:53:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:53:06]Read from MH i2c: E2 [18:53:06]MH_I2C_Read... [18:53:06]Read from MH i2c: E2 FD 00 [18:53:06]MH_I2C_Read... [18:53:06]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 23 DE 02 00 69 04 A4 00 6F 04 04 00 94 DD 02 00 B1 04 05 00 1B 79 9F BF 06 70 04 05 00 68 53 22 A5 04 72 04 05 00 B3 25 7D 1A 02 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 4F CA 7F B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 42 6C 4A 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 36 17 90 00 75 [18:53:06]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 23 DE 02 00 69 04 A4 00 6F 04 04 00 94 DD 02 00 B1 04 05 00 1B 79 9F BF 06 70 04 05 00 68 53 22 A5 04 72 04 05 00 B3 25 7D 1A 02 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 4F CA 7F B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 42 6C 4A 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 36 17 90 00 [18:53:06]wFMCommunicate OK [18:53:06]wFMCommunicate request_size=4 [18:53:06]MH_SAM_APDU [18:53:06]CAPDU: 80 17 00 00 [18:53:06]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:53:06]Write i2c OK [18:53:06]MH_I2C_Read... [18:53:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:06]Read from MH i2c: E2 [18:53:06]MH_I2C_Read... [18:53:06]Read from MH i2c: E2 FD 00 [18:53:06]MH_I2C_Read... [18:53:06]Read from MH i2c: E2 FD 00 14 00 00 7B 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [18:53:06]RAPDU: 7B 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:53:06]wFMCommunicate OK [18:53:06]wFMCommunicate request_size=4 [18:53:06]MH_SAM_APDU [18:53:06]CAPDU: 80 17 00 00 [18:53:06]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:53:06]Write i2c OK [18:53:06]MH_I2C_Read... [18:53:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:07]Read from MH i2c: E2 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 FD 00 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [18:53:07]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:53:07]wFMCommunicate OK [18:53:07]wFMCommunicate request_size=4 [18:53:07]MH_SAM_APDU [18:53:07]CAPDU: 80 17 00 00 [18:53:07]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:53:07]Write i2c OK [18:53:07]MH_I2C_Read... [18:53:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:07]Read from MH i2c: E2 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 FD 00 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [18:53:07]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:53:07]wFMCommunicate OK [18:53:07]wFMCommunicate request_size=4 [18:53:07]MH_SAM_APDU [18:53:07]CAPDU: 80 17 00 00 [18:53:07]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:53:07]Write i2c OK [18:53:07]MH_I2C_Read... [18:53:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [18:53:07]Read from MH i2c: E2 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 E8 00 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 E8 00 17 00 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 75 [18:53:07]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:53:07]wFMCommunicate OK [18:53:07]SAM_PROTO_GetFMData done [18:53:07]requested_item fm.sale_refund.total is exist - process it [18:53:07]requested_item fm.buy.total is exist - process it [18:53:07]requested_item shift.sale.total is exist - process it [18:53:07]SAM_PROTO_GetShiftData [18:53:07]wFMCommunicate request_size=4 [18:53:07]MH_SAM_APDU [18:53:07]CAPDU: 80 13 02 00 [18:53:07]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:53:07]Write i2c OK [18:53:07]MH_I2C_Read... [18:53:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:53:08]Read from MH i2c: E2 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: E2 FD 00 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 41 01 00 00 69 04 9E 00 6F 04 04 00 41 01 00 00 B1 04 04 00 D0 E4 6F 02 70 04 04 00 28 7A F2 01 72 04 03 00 A8 6A 7D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 57 44 42 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 9B 85 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3C [18:53:08]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 41 01 00 00 69 04 9E 00 6F 04 04 00 41 01 00 00 B1 04 04 00 D0 E4 6F 02 70 04 04 00 28 7A F2 01 72 04 03 00 A8 6A 7D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 57 44 42 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 9B 85 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [18:53:08]wFMCommunicate OK [18:53:08]wFMCommunicate request_size=4 [18:53:08]MH_SAM_APDU [18:53:08]CAPDU: 80 17 00 00 [18:53:08]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:53:08]Write i2c OK [18:53:08]MH_I2C_Read... [18:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:08]Read from MH i2c: E2 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: E2 FD 00 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 B2 [18:53:08]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [18:53:08]wFMCommunicate OK [18:53:08]wFMCommunicate request_size=4 [18:53:08]MH_SAM_APDU [18:53:08]CAPDU: 80 17 00 00 [18:53:08]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:53:08]Write i2c OK [18:53:08]MH_I2C_Read... [18:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:08]Read from MH i2c: E2 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: E2 FD 00 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [18:53:08]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [18:53:08]wFMCommunicate OK [18:53:08]wFMCommunicate request_size=4 [18:53:08]MH_SAM_APDU [18:53:08]CAPDU: 80 17 00 00 [18:53:08]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:53:08]Write i2c OK [18:53:08]MH_I2C_Read... [18:53:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:09]Read from MH i2c: E2 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: E2 FD 00 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: E2 FD 00 1B 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 13 [18:53:09]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [18:53:09]wFMCommunicate OK [18:53:09]wFMCommunicate request_size=4 [18:53:09]MH_SAM_APDU [18:53:09]CAPDU: 80 17 00 00 [18:53:09]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:53:09]Write i2c OK [18:53:09]MH_I2C_Read... [18:53:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [18:53:09]Read from MH i2c: E2 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: E2 CE 00 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [18:53:09]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:53:09]wFMCommunicate OK [18:53:09]SAM_PROTO_GetShiftData done [18:53:09]requested_item shift.sale.total_cash is exist - process it [18:53:09]requested_item shift.sale_refund.total is exist - process it [18:53:09]requested_item shift.sale_refund.total_cash is exist - process it [18:53:09]requested_item shift.buy.total is exist - process it [18:53:09]requested_item shift.buy.total_cash is exist - process it [18:53:09]produce_requested_data done [18:53:09]produce_requested_data return {"fm.sale.total":289847032.59,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":408875.04,"shift.sale.total_cash":326682.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:53:09]process_action_free get_value [18:53:09]json_value_free [18:53:09]json_value_free done [18:53:09]process_json_proto returns [18:53:09]Send response to host [18:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289847032.59,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":408875.04,"shift.sale.total_cash":326682.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:53:09]free response buf [18:53:09]execute_script done [18:53:09]execute_script returns [18:53:09]free content buf [18:53:09]Sock 10.Close socket [18:53:09]Sock 10.Thread stoped [18:53:09]accept exits with 7 [18:53:09]New connection [18:53:09]New thread 3066953060 created [18:53:09]Thread 3066809700 joined [18:53:09]Waiting for new connection... [18:53:09] Sock 7.Parse request [18:53:09]Sock 7.Check first char [18:53:09]Sock 7.First char is OK [18:53:09]request: POST /json_proto HTTP/1.0 [18:53:09]Method: POST [18:53:09]URL: /json_proto [18:53:09]Method is POST - this is cgi request [18:53:09]url: /json_proto [18:53:09]query_string will be loaded in cgi processing [18:53:09]execute_cgi json_proto POST (null) [18:53:09]execute_cgi path=json_proto method=POST [18:53:09]POST find Content-Length [18:53:09]Host: 172.17.42.131:8080 [18:53:09]Content-Length: 144 [18:53:09]Content-Type: application/json [18:53:09] [18:53:09]POST finish read [18:53:09]Found Content-Length = 144 [18:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:53:09]execute_script... [18:53:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:53:09]POST & json_proto [18:53:09]process_json_proto [18:53:09]json parsed OK: [18:53:09]protocol is kg_v1.0 [18:53:09]action value=print_doc [18:53:09]process_action print_doc [18:53:09]ExternCall_PrintAddStr [18:53:09]wPrintStart [18:53:09]Write to MH i2c: 01 00 00 1D 00 1D [18:53:09]Write i2c OK [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: 01 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: 01 07 00 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [18:53:09]RasterBufferAndPrint [18:53:09]line Счет N : (1)210925 [18:53:09]line ИНН: 02508201610067 [18:53:09]line Контрольно-Кассовый Чек [18:53:09]line ПРОДАЖА [18:53:09]line ТРК (МРК, ГНК) : 12 [18:53:09]line Товар: 2710124130 [18:53:09]line Аи-92-К-3 [18:53:09]line 14.950 * 66.90 [18:53:09]line = 1000.16 [18:53:09]line НДС 12% НСП 1% [18:53:09]line > о реализуемом товаре [18:53:09]line ИТОГО: 1000.16 [18:53:09]line НСП 1% : 8.85 [18:53:09]line НДС 12% : 106.21 [18:53:09]line Наличными: 0.00 [18:53:09]line Безнал.: 1000.16 [18:53:09]line Место: АЗС № 86 "Партнер Нефть" [18:53:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:53:09]line СНО: Общий режим [18:53:09]line Чек 321 23.10.2024 18:44 [18:53:09]line Смена: 462 ФФД: 1.0 [18:53:09]line ЗНМ: 0300000155 [18:53:09]line РНМ: 0000000000100030 [18:53:09]line Версия ККМ: 001 [18:53:09]line Платежная система: Mbank [18:53:09]line ФМ: 0000000000965340 [18:53:09]line ФД: 188863 [18:53:09]line ФПД: 114407522629729 [18:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184455&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188863&fm=114407522629729&tin=02508201610067®Number=0000000000100030&sum=100016 [18:53:09]written 0, free lines is 4095 [18:53:10]Write to MH i2c: 01 00 00 46 00 46 [18:53:10]Write i2c OK [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: 01 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: 01 07 00 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 87 0C E0 [18:53:10]RasterBufferAndPrint [18:53:10]line [18:53:10]line [18:53:10]line [18:53:10]line [18:53:10]line [18:53:10]written 0, free lines is 3218 [18:53:10]MH_Cut [18:53:10]Write to MH i2c: D1 01 00 4D 00 01 1F [18:53:10]Write i2c OK [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: D1 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: D1 01 00 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: D1 01 00 4D 00 00 1E [18:53:10]Write to MH i2c: 01 00 00 4E 00 4E [18:53:10]Write i2c OK [18:53:10]MH_I2C_Read... [18:53:11]OFD Sender: No OFD packet to send [18:53:11]*** Cut start [18:53:11]*** Partial cut [18:53:11]*** CUTSNS_PIN = 1 [18:53:11]*** CUTSNS_PIN = 0 [18:53:11]*** Brake cut motor [18:53:12]Read from MH i2c: 01 [18:53:12]MH_I2C_Read... [18:53:12]*** Stop cut motor [18:53:12]*** Cut end [18:53:12]Read from MH i2c: 01 07 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 FF 0F 63 [18:53:12]process_action print_doc done [18:53:12]requested_data is exist [18:53:12]produce_requested_data [18:53:12]produce_requested_data return (null) [18:53:12]process_action_free print_doc [18:53:12]json_value_free [18:53:12]json_value_free done [18:53:12]process_json_proto returns [18:53:12]Send response to host [18:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:53:12]free response buf [18:53:12]execute_script done [18:53:12]execute_script returns [18:53:12]free content buf [18:53:12]Sock 7.Close socket [18:53:12]Sock 7.Thread stoped [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:01]accept exits with 9 [18:54:01]New connection [18:54:01]New thread 3066809700 created [18:54:01]Thread 3066953060 joined [18:54:01]Waiting for new connection... [18:54:01] Sock 9.Parse request [18:54:01]Sock 9.Check first char [18:54:01]Sock 9.First char is OK [18:54:01]request: POST /json_proto HTTP/1.0 [18:54:01]Method: POST [18:54:01]URL: /json_proto [18:54:01]Method is POST - this is cgi request [18:54:01]url: /json_proto [18:54:01]query_string will be loaded in cgi processing [18:54:01]execute_cgi json_proto POST (null) [18:54:01]execute_cgi path=json_proto method=POST [18:54:01]POST find Content-Length [18:54:01]Host: 172.17.42.131:8080 [18:54:01]Content-Length: 769 [18:54:01]Content-Type: application/json [18:54:01] [18:54:01]POST finish read [18:54:01]Found Content-Length = 769 [18:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:01]execute_script... [18:54:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:01]POST & json_proto [18:54:01]process_json_proto [18:54:01]json parsed OK: [18:54:01]protocol is kg_v1.0 [18:54:01]action value=close_receipt [18:54:01]process_action close_receipt [18:54:01]cmd_close_receipt [18:54:01]MH_GetDate [18:54:01]Write to MH i2c: F0 00 00 4F 00 3E [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: F0 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: F0 09 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: F0 09 00 4F 00 00 4A 46 19 67 A0 18 CA 66 3F [18:54:01]GetLastDocTimeStamp 1729709095 [18:54:01]current date 1729709642 [18:54:01]FM_GetShiftState [18:54:01]SAM_PROTO_GetShiftState [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 13 01 00 [18:54:01]Write to MH i2c: E2 08 00 50 00 80 13 01 00 00 00 00 00 CD [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 0E 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 0E 00 50 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B5 [18:54:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:54:01]wFMCommunicate OK [18:54:01]SAM_PROTO_GetShiftState done [18:54:01]FM_GetShiftState done [18:54:01]opened in 1729642525 [18:54:01]opened+sec_in_day 1729728925 [18:54:01]quantity*price = 100015 [18:54:01]sum+1 = 100017 [18:54:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 322 23.10.2024 18:54 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188864 ФПД: 160501300957852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185402&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188864&fm=160501300957852&tin=02508201610067®Number=0000000000100030&sum=100016 [18:54:02]StoreToDocumentArchive [18:54:02]shift 462 fd 188864 [18:54:02]save to /storage/0462/doc_00188864 [18:54:02]save last doc name /storage/0462/doc_00188864 to /storage/kkm_last_doc_name [18:54:02]save OK [18:54:02]Clear old archive folders... [18:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:02]tlvbuf is 004D8940 [18:54:02]SAM_PROTO_ClearQueue [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 09 00 00 [18:54:02]Write to MH i2c: E2 08 00 5D 00 80 09 00 00 00 00 00 00 CF [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 5D 00 00 90 00 D1 [18:54:02]RAPDU: 90 00 [18:54:02]wFMCommunicate OK [18:54:02]SAM_PROTO_ClearQueue done [18:54:02]KKMCreateOFDPacket [18:54:02]OFDProtocolAddRootSTLVToBuf [18:54:02]FM_MakeSignedData [18:54:02]FM_MakeSignedData [18:54:02]SAM_PROTO_SignData [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 0D 01 02 [18:54:02]Write to MH i2c: E2 08 00 5E 00 80 0D 01 02 00 00 00 00 D7 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [18:54:02]RAPDU: 90 00 [18:54:02]wFMCommunicate OK [18:54:02]wFMCommunicate request_size=255 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 4A 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E1 02 00 35 04 06 00 91 [18:54:02]Write to MH i2c: E2 02 01 5F 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 4A 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E1 02 00 35 04 06 00 91 00 00 BA [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 03 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [18:54:03]RAPDU: 90 00 [18:54:03]wFMCommunicate OK [18:54:03]wFMCommunicate request_size=10 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 0D 02 02 05 F9 9F 07 92 9C [18:54:03]Write to MH i2c: E2 0D 00 60 00 80 0D 02 02 05 00 F9 9F 07 92 9C 00 00 B1 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 03 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [18:54:03]RAPDU: 90 00 [18:54:03]wFMCommunicate OK [18:54:03]wFMCommunicate request_size=4 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 0D 03 02 [18:54:03]Write to MH i2c: E2 08 00 61 00 80 0D 03 02 00 00 00 00 DC [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 0B 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 0B 00 61 00 00 84 39 F8 C3 C7 79 3F 61 90 00 35 [18:54:03]RAPDU: 84 39 F8 C3 C7 79 3F 61 90 00 [18:54:03]wFMCommunicate OK [18:54:03]SAM_PROTO_SignData done [18:54:03]FM_MakeSignedData done [18:54:03]CreateOFDProtocolMessage [18:54:03]wFMCommunicate request_size=4 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 11 00 00 [18:54:03]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 17 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [18:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:54:03]wFMCommunicate OK [18:54:03]CreateOFDProtocolMessage done [18:54:03]OFDSenderStorePacket 188864 [18:54:03]StoreOFDPacket docnum=188864 [18:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A 7A 07 01 89 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 4A 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E1 02 00 35 04 06 00 91 F9 9F 07 92 9C 84 39 F8 C3 C7 79 3F 61 [18:54:03]CheckFolder [18:54:03]dirname=/storage/ofd_packets [18:54:03]CheckFolder done [18:54:03]ProducePacketName [18:54:03]name=ofd_packets/00188864 [18:54:03]NVStorageSaveData ofd_packets/00188864 [18:54:03]File name is /storage/ofd_packets/00188864 [18:54:03]Write 301 bytes [18:54:03]NVStorageSaveData done [18:54:03]OFDSenderStorePacket done [18:54:03]KKMCreateOFDPacket done [18:54:03]NVStorageSaveData kkm_last_timestamp [18:54:03]File name is /storage/kkm_last_timestamp [18:54:03]Write 4 bytes [18:54:03]NVStorageSaveData done [18:54:03]ExternCall_PrintAddStr [18:54:03]wPrintStart [18:54:03]Write to MH i2c: 01 00 00 63 00 63 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 07 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [18:54:03]RasterBufferAndPrint [18:54:03]line Счет N : (1)210926 [18:54:03]line ИНН: 02508201610067 [18:54:03]line Контрольно-Кассовый Чек [18:54:03]line ПРОДАЖА [18:54:03]line ТРК (МРК, ГНК) : 42 [18:54:03]line Товар: 2710124130 [18:54:03]line Аи-92-К-3 [18:54:03]line 14.950 * 66.90 [18:54:03]line = 1000.16 [18:54:03]line НДС 12% НСП 1% [18:54:03]line > о реализуемом товаре [18:54:03]line ИТОГО: 1000.16 [18:54:03]line НСП 1% : 8.85 [18:54:03]line НДС 12% : 106.21 [18:54:03]line Наличными: 0.00 [18:54:03]line Безнал.: 1000.16 [18:54:03]line Место: АЗС № 86 "Партнер Нефть" [18:54:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:54:03]line СНО: Общий режим [18:54:03]line Чек 322 23.10.2024 18:54 [18:54:03]line Смена: 462 ФФД: 1.0 [18:54:03]line ЗНМ: 0300000155 [18:54:03]line РНМ: 0000000000100030 [18:54:03]line Версия ККМ: 001 [18:54:03]line Платежная система: Mbank [18:54:03]line ФМ: 0000000000965340 [18:54:03]line ФД: 188864 [18:54:03]line ФПД: 160501300957852 [18:54:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185402&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188864&fm=160501300957852&tin=02508201610067®Number=0000000000100030&sum=100016 [18:54:03]written 0, free lines is 4095 [18:54:03]OFD Sender: Processing packet 188864 [packets to send 1062, broken 1061] [18:54:03]ProducePacketName [18:54:03]name=ofd_packets/00188864 [18:54:03]OFD Sender: To server: pG, [18:54:03]CommunicateWithHost lk.salyk.kg:30040 [18:54:03]ConnectInit lk.salyk.kg [18:54:03]Write to MH i2c: 01 00 00 8C 00 8C [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 07 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 07 00 8C 00 00 00 00 00 00 82 0C 21 [18:54:03]RasterBufferAndPrint [18:54:03]line [18:54:03]line [18:54:03]line [18:54:03]line [18:54:03]line [18:54:03]written 0, free lines is 3206 [18:54:03]MH_Cut [18:54:03]Write to MH i2c: D1 01 00 93 00 01 65 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: D1 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: D1 01 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: D1 01 00 93 00 00 64 [18:54:03]Write to MH i2c: 01 00 00 94 00 94 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:05]*** Cut start [18:54:05]*** Partial cut [18:54:05]*** CUTSNS_PIN = 1 [18:54:05]*** CUTSNS_PIN = 0 [18:54:05]*** Brake cut motor [18:54:05]Read from MH i2c: 01 [18:54:05]MH_I2C_Read... [18:54:05]*** Stop cut motor [18:54:05]*** Cut end [18:54:05]Read from MH i2c: 01 07 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 07 00 94 00 00 00 00 00 00 FF 0F A9 [18:54:05]process_action close_receipt done [18:54:05]requested_data is exist [18:54:05]produce_requested_data [18:54:05]requested_item fm.sn is exist - process it [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 11 00 00 [18:54:05]Write to MH i2c: E2 08 00 95 00 80 11 00 00 00 00 00 00 0F [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 17 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 17 00 95 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [18:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:54:05]wFMCommunicate OK [18:54:05]requested_item fd.num is exist - process it [18:54:05]SAM_PROTO_GetFieldsCounters [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 13 00 00 [18:54:05]Write to MH i2c: E2 08 00 96 00 80 13 00 00 00 00 00 00 12 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 62 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 62 00 96 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [18:54:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:05]wFMCommunicate OK [18:54:05]SAM_PROTO_GetFieldsCounters done [18:54:05]requested_item shift.num is exist - process it [18:54:05]requested_item shift.opened is exist - process it [18:54:05]req_shift_opened [18:54:05]FM_GetShiftState [18:54:05]SAM_PROTO_GetShiftState [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 13 01 00 [18:54:05]Write to MH i2c: E2 08 00 97 00 80 13 01 00 00 00 00 00 14 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 0E 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 0E 00 97 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FC [18:54:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:54:05]wFMCommunicate OK [18:54:05]SAM_PROTO_GetShiftState done [18:54:05]FM_GetShiftState done [18:54:05]req_shift_opened done [18:54:05]requested_item shift.open_date is exist - process it [18:54:05]req_shift_open_date [18:54:05]req_shift_open_date done [18:54:05]produce_requested_data done [18:54:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188864,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:54:05]process_action_free close_receipt [18:54:05]json_value_free [18:54:05]json_value_free done [18:54:05]process_json_proto returns [18:54:05]Send response to host [18:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188864,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:54:05]free response buf [18:54:05]execute_script done [18:54:05]execute_script returns [18:54:05]free content buf [18:54:05]Sock 9.Close socket [18:54:05]Sock 9.Thread stoped [18:56:02]accept exits with 8 [18:56:02]New connection [18:56:02]New thread 3066953060 created [18:56:02]Thread 3066809700 joined [18:56:02]Waiting for new connection... [18:56:02] Sock 8.Parse request [18:56:02]Sock 8.Check first char [18:56:02]Sock 8.First char is OK [18:56:02]request: POST /json_proto HTTP/1.0 [18:56:02]Method: POST [18:56:02]URL: /json_proto [18:56:02]Method is POST - this is cgi request [18:56:02]url: /json_proto [18:56:02]query_string will be loaded in cgi processing [18:56:02]execute_cgi json_proto POST (null) [18:56:02]execute_cgi path=json_proto method=POST [18:56:02]POST find Content-Length [18:56:02]Host: 172.17.42.131:8080 [18:56:02]Content-Length: 688 [18:56:02]Content-Type: application/json [18:56:02] [18:56:02]POST finish read [18:56:02]Found Content-Length = 688 [18:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:02]execute_script... [18: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 : (1)210927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:02]POST & json_proto [18:56:02]process_json_proto [18:56:02]json parsed OK: [18:56:02]protocol is kg_v1.0 [18:56:02]action value=close_receipt [18:56:02]process_action close_receipt [18:56:02]cmd_close_receipt [18:56:02]MH_GetDate [18:56:02]Write to MH i2c: F0 00 00 98 00 87 [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: F0 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: F0 09 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: F0 09 00 98 00 00 C2 46 19 67 A0 18 CA 66 00 [18:56:02]GetLastDocTimeStamp 1729709642 [18:56:02]current date 1729709762 [18:56:02]FM_GetShiftState [18:56:02]SAM_PROTO_GetShiftState [18:56:02]wFMCommunicate request_size=4 [18:56:02]MH_SAM_APDU [18:56:02]CAPDU: 80 13 01 00 [18:56:02]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:02]Read from MH i2c: E2 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 0E 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FE [18:56:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:56:02]wFMCommunicate OK [18:56:02]SAM_PROTO_GetShiftState done [18:56:02]FM_GetShiftState done [18:56:02]opened in 1729642525 [18:56:02]opened+sec_in_day 1729728925 [18:56:02]quantity*price = 400050 [18:56:02]sum+1 = 400051 [18:56:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 323 23.10.2024 18:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188865 ФПД: 111068412938415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185602&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188865&fm=111068412938415&tin=02508201610067®Number=0000000000100030&sum=400000 [18:56:03]StoreToDocumentArchive [18:56:03]shift 462 fd 188865 [18:56:03]save to /storage/0462/doc_00188865 [18:56:03]save last doc name /storage/0462/doc_00188865 to /storage/kkm_last_doc_name [18:56:03]save OK [18:56:03]Clear old archive folders... [18:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:56:03]tlvbuf is 004D1030 [18:56:03]SAM_PROTO_ClearQueue [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 09 00 00 [18:56:03]Write to MH i2c: E2 08 00 A6 00 80 09 00 00 00 00 00 00 18 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 A6 00 00 90 00 1A [18:56:03]RAPDU: 90 00 [18:56:03]wFMCommunicate OK [18:56:03]SAM_PROTO_ClearQueue done [18:56:03]KKMCreateOFDPacket [18:56:03]OFDProtocolAddRootSTLVToBuf [18:56:03]FM_MakeSignedData [18:56:03]FM_MakeSignedData [18:56:03]SAM_PROTO_SignData [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 0D 01 02 [18:56:03]Write to MH i2c: E2 08 00 A7 00 80 0D 01 02 00 00 00 00 20 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 A7 00 00 90 00 1B [18:56:03]RAPDU: 90 00 [18:56:03]wFMCommunicate OK [18:56:03]wFMCommunicate request_size=255 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 C2 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E1 02 [18:56:03]Write to MH i2c: E2 02 01 A8 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 C2 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E1 02 00 00 E1 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [18:56:03]RAPDU: 90 00 [18:56:03]wFMCommunicate OK [18:56:03]wFMCommunicate request_size=16 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 65 04 21 4C 88 AF [18:56:03]Write to MH i2c: E2 13 00 A9 00 80 0D 02 02 0B 00 00 35 04 06 00 65 04 21 4C 88 AF 00 00 85 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [18:56:03]RAPDU: 90 00 [18:56:03]wFMCommunicate OK [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 0D 03 02 [18:56:03]Write to MH i2c: E2 08 00 AA 00 80 0D 03 02 00 00 00 00 25 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 0B 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 0B 00 AA 00 00 3C FA 04 C2 BE BE 39 64 90 00 3B [18:56:03]RAPDU: 3C FA 04 C2 BE BE 39 64 90 00 [18:56:03]wFMCommunicate OK [18:56:03]SAM_PROTO_SignData done [18:56:03]FM_MakeSignedData done [18:56:03]CreateOFDProtocolMessage [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 11 00 00 [18:56:03]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 17 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [18:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:56:03]wFMCommunicate OK [18:56:03]CreateOFDProtocolMessage done [18:56:03]OFDSenderStorePacket 188865 [18:56:03]StoreOFDPacket docnum=188865 [18:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E1 99 0D 01 CA 29 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 C2 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E1 02 00 35 04 06 00 65 04 21 4C 88 AF 3C FA 04 C2 BE BE 39 64 [18:56:03]CheckFolder [18:56:03]dirname=/storage/ofd_packets [18:56:03]CheckFolder done [18:56:03]ProducePacketName [18:56:03]name=ofd_packets/00188865 [18:56:03]NVStorageSaveData ofd_packets/00188865 [18:56:03]File name is /storage/ofd_packets/00188865 [18:56:03]Write 307 bytes [18:56:03]NVStorageSaveData done [18:56:03]OFDSenderStorePacket done [18:56:03]KKMCreateOFDPacket done [18:56:03]NVStorageSaveData kkm_last_timestamp [18:56:03]File name is /storage/kkm_last_timestamp [18:56:03]Write 4 bytes [18:56:03]NVStorageSaveData done [18:56:03]ExternCall_PrintAddStr [18:56:03]wPrintStart [18:56:03]Write to MH i2c: 01 00 00 AC 00 AC [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 07 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [18:56:03]RasterBufferAndPrint [18:56:03]line Счет N : (1)210927 [18:56:03]line ИНН: 02508201610067 [18:56:03]line Контрольно-Кассовый Чек [18:56:03]line ПРОДАЖА [18:56:03]line ТРК (МРК, ГНК) : 21 [18:56:03]line Товар: 2710194210 [18:56:03]line D-ENERGY ДТ-К-5 [18:56:03]line 51.820 * 77.20 [18:56:03]line = 4000.50 [18:56:03]line НДС 12% НСП 1% [18:56:03]line > о реализуемом товаре [18:56:03]line ОКРУГЛЕНИЕ: -0.50 [18:56:03]line ИТОГО: 4000.00 [18:56:03]line Внесено: 4000.00 [18:56:03]line СДАЧА: 0.00 [18:56:03]line НСП 1% : 35.40 [18:56:03]line НДС 12% : 424.83 [18:56:03]line Наличными: 4000.00 [18:56:03]line Безнал.: 0.00 [18:56:03]line Место: АЗС № 86 "Партнер Нефть" [18:56:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:56:03]line СНО: Общий режим [18:56:03]line Чек 323 23.10.2024 18:56 [18:56:03]line Смена: 462 ФФД: 1.0 [18:56:03]line ЗНМ: 0300000155 [18:56:03]line РНМ: 0000000000100030 [18:56:03]line Версия ККМ: 001 [18:56:03]line ФМ: 0000000000965340 [18:56:03]line ФД: 188865 [18:56:03]line ФПД: 111068412938415 [18:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185602&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188865&fm=111068412938415&tin=02508201610067®Number=0000000000100030&sum=400000 [18:56:03]written 0, free lines is 4095 [18:56:04]Write to MH i2c: 01 00 00 D7 00 D7 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 D7 00 00 00 00 00 00 55 0C 3F [18:56:04]RasterBufferAndPrint [18:56:04]line [18:56:04]line [18:56:04]line [18:56:04]line [18:56:04]line [18:56:04]written 0, free lines is 3160 [18:56:04]MH_Cut [18:56:04]Write to MH i2c: D1 01 00 DE 00 01 B0 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: D1 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: D1 01 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: D1 01 00 DE 00 00 AF [18:56:04]Write to MH i2c: 01 00 00 DF 00 DF [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:05]*** Cut start [18:56:05]*** Partial cut [18:56:05]*** CUTSNS_PIN = 1 [18:56:05]*** CUTSNS_PIN = 0 [18:56:05]*** Brake cut motor [18:56:06]Read from MH i2c: 01 [18:56:06]MH_I2C_Read... [18:56:06]*** Stop cut motor [18:56:06]*** Cut end [18:56:06]Read from MH i2c: 01 07 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 FF 0F F4 [18:56:06]process_action close_receipt done [18:56:06]requested_data is exist [18:56:06]produce_requested_data [18:56:06]requested_item fm.sn is exist - process it [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 11 00 00 [18:56:06]Write to MH i2c: E2 08 00 E0 00 80 11 00 00 00 00 00 00 5A [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 17 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 17 00 E0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [18:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:56:06]wFMCommunicate OK [18:56:06]requested_item fd.num is exist - process it [18:56:06]SAM_PROTO_GetFieldsCounters [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 13 00 00 [18:56:06]Write to MH i2c: E2 08 00 E1 00 80 13 00 00 00 00 00 00 5D [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 62 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 62 00 E1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [18:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_GetFieldsCounters done [18:56:06]requested_item shift.num is exist - process it [18:56:06]requested_item shift.opened is exist - process it [18:56:06]req_shift_opened [18:56:06]FM_GetShiftState [18:56:06]SAM_PROTO_GetShiftState [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 13 01 00 [18:56:06]Write to MH i2c: E2 08 00 E2 00 80 13 01 00 00 00 00 00 5F [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 E2 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 47 [18:56:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_GetShiftState done [18:56:06]FM_GetShiftState done [18:56:06]req_shift_opened done [18:56:06]requested_item shift.open_date is exist - process it [18:56:06]req_shift_open_date [18:56:06]req_shift_open_date done [18:56:06]produce_requested_data done [18:56:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188865,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:56:06]process_action_free close_receipt [18:56:06]json_value_free [18:56:06]json_value_free done [18:56:06]process_json_proto returns [18:56:06]Send response to host [18:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188865,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:56:06]free response buf [18:56:06]execute_script done [18:56:06]execute_script returns [18:56:06]free content buf [18:56:06]Sock 8.Close socket [18:56:06]Sock 8.Thread stoped [18:56:11]accept exits with 9 [18:56:11]New connection [18:56:11]New thread 3066809700 created [18:56:11]Thread 3066953060 joined [18:56:11]Waiting for new connection... [18:56:11] Sock 9.Parse request [18:56:11]Sock 9.Check first char [18:56:11]Sock 9.First char is OK [18:56:11]request: POST /json_proto HTTP/1.0 [18:56:11]Method: POST [18:56:11]URL: /json_proto [18:56:11]Method is POST - this is cgi request [18:56:11]url: /json_proto [18:56:11]query_string will be loaded in cgi processing [18:56:11]execute_cgi json_proto POST (null) [18:56:11]execute_cgi path=json_proto method=POST [18:56:11]POST find Content-Length [18:56:11]Host: 172.17.42.131:8080 [18:56:11]Content-Length: 754 [18:56:11]Content-Type: application/json [18:56:11] [18:56:11]POST finish read [18:56:11]Found Content-Length = 754 [18:56:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 37.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074712", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:11]execute_script... [18:56:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 37.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074712", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:11]POST & json_proto [18:56:11]process_json_proto [18:56:11]json parsed OK: [18:56:11]protocol is kg_v1.0 [18:56:11]action value=close_receipt [18:56:11]process_action close_receipt [18:56:11]cmd_close_receipt [18:56:11]MH_GetDate [18:56:11]Write to MH i2c: F0 00 00 E3 00 D2 [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 09 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 09 00 E3 00 00 CB 46 19 67 A0 18 CA 66 54 [18:56:11]GetLastDocTimeStamp 1729709762 [18:56:11]current date 1729709771 [18:56:11]FM_GetShiftState [18:56:11]SAM_PROTO_GetShiftState [18:56:11]wFMCommunicate request_size=4 [18:56:11]MH_SAM_APDU [18:56:11]CAPDU: 80 13 01 00 [18:56:11]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:11]Read from MH i2c: E2 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 0E 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 49 [18:56:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:56:11]wFMCommunicate OK [18:56:11]SAM_PROTO_GetShiftState done [18:56:11]FM_GetShiftState done [18:56:11]opened in 1729642525 [18:56:11]opened+sec_in_day 1729728925 [18:56:11]quantity*price = 0 [18:56:11]sum+1 = 1 [18:56:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 324 23.10.2024 18:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30074712 ФМ: 0000000000965340 ФД: 188866 ФПД: 75952200346008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185611&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188866&fm=75952200346008&tin=02508201610067®Number=0000000000100030&sum=0 [18:56:12]StoreToDocumentArchive [18:56:12]shift 462 fd 188866 [18:56:12]save to /storage/0462/doc_00188866 [18:56:12]save last doc name /storage/0462/doc_00188866 to /storage/kkm_last_doc_name [18:56:12]save OK [18:56:12]Clear old archive folders... [18:56:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:12]tlvbuf is 0052D950 [18:56:12]SAM_PROTO_ClearQueue [18:56:12]wFMCommunicate request_size=4 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 09 00 00 [18:56:12]Write to MH i2c: E2 08 00 F1 00 80 09 00 00 00 00 00 00 63 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [18:56:12]RAPDU: 90 00 [18:56:12]wFMCommunicate OK [18:56:12]SAM_PROTO_ClearQueue done [18:56:12]KKMCreateOFDPacket [18:56:12]OFDProtocolAddRootSTLVToBuf [18:56:12]FM_MakeSignedData [18:56:12]FM_MakeSignedData [18:56:12]SAM_PROTO_SignData [18:56:12]wFMCommunicate request_size=4 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 0D 01 02 [18:56:12]Write to MH i2c: E2 08 00 F2 00 80 0D 01 02 00 00 00 00 6B [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [18:56:12]RAPDU: 90 00 [18:56:12]wFMCommunicate OK [18:56:12]wFMCommunicate request_size=255 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 CB 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E1 02 00 35 04 06 00 45 [18:56:12]Write to MH i2c: E2 02 01 F3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 CB 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E1 02 00 35 04 06 00 45 00 00 00 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [18:56:12]RAPDU: 90 00 [18:56:12]wFMCommunicate OK [18:56:12]wFMCommunicate request_size=10 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 0D 02 02 05 13 FF EB E9 98 [18:56:12]Write to MH i2c: E2 0D 00 F4 00 80 0D 02 02 05 00 13 FF EB E9 98 00 00 F6 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [18:56:12]RAPDU: 90 00 [18:56:12]wFMCommunicate OK [18:56:12]wFMCommunicate request_size=4 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 0D 03 02 [18:56:12]Write to MH i2c: E2 08 00 F5 00 80 0D 03 02 00 00 00 00 70 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 0B 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 0B 00 F5 00 00 C3 86 4F 16 24 D1 52 34 90 00 9A [18:56:12]RAPDU: C3 86 4F 16 24 D1 52 34 90 00 [18:56:12]wFMCommunicate OK [18:56:12]SAM_PROTO_SignData done [18:56:12]FM_MakeSignedData done [18:56:12]CreateOFDProtocolMessage [18:56:12]wFMCommunicate request_size=4 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 11 00 00 [18:56:12]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]ConnectInit Can't connect to host [18:56:12]CommunicateWithHost connect error [18:56:12]CommunicateWithHost err = -1 [18:56:12]OFD Sender: Server communicate error [18:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 17 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BE [18:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:56:12]wFMCommunicate OK [18:56:12]CreateOFDProtocolMessage done [18:56:12]OFDSenderStorePacket 188866 [18:56:12]StoreOFDPacket docnum=188866 [18:56:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A7 4E 07 01 C8 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 CB 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E1 02 00 35 04 06 00 45 13 FF EB E9 98 C3 86 4F 16 24 D1 52 34 [18:56:12]CheckFolder [18:56:12]dirname=/storage/ofd_packets [18:56:12]CheckFolder done [18:56:12]ProducePacketName [18:56:12]name=ofd_packets/00188866 [18:56:12]NVStorageSaveData ofd_packets/00188866 [18:56:12]File name is /storage/ofd_packets/00188866 [18:56:12]Write 301 bytes [18:56:12]NVStorageSaveData done [18:56:12]OFDSenderStorePacket done [18:56:12]KKMCreateOFDPacket done [18:56:12]NVStorageSaveData kkm_last_timestamp [18:56:12]File name is /storage/kkm_last_timestamp [18:56:12]Write 4 bytes [18:56:12]NVStorageSaveData done [18:56:12]ExternCall_PrintAddStr [18:56:12]wPrintStart [18:56:12]Write to MH i2c: 01 00 00 F7 00 F7 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: 01 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: 01 07 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [18:56:12]RasterBufferAndPrint [18:56:12]line Счет N : (1)210928 [18:56:12]line ИНН: 02508201610067 [18:56:12]line Контрольно-Кассовый Чек [18:56:12]line ПРОДАЖА [18:56:12]line ТРК (МРК, ГНК) : 12 [18:56:12]line Товар: 2710124130 [18:56:12]line Аи-92-К-3 [18:56:12]line 37.000 * 0.00 [18:56:12]line = 0.00 [18:56:12]line НДС 12% НСП 1% [18:56:12]line > о реализуемом товаре [18:56:12]line ИТОГО: 0.00 [18:56:12]line НСП 1% : 0.00 [18:56:12]line НДС 12% : 0.00 [18:56:12]line Наличными: 0.00 [18:56:12]line Безнал.: 0.00 [18:56:12]line Место: АЗС № 86 "Партнер Нефть" [18:56:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:56:12]line СНО: Общий режим [18:56:12]line Чек 324 23.10.2024 18:56 [18:56:12]line Смена: 462 ФФД: 1.0 [18:56:12]line ЗНМ: 0300000155 [18:56:12]line РНМ: 0000000000100030 [18:56:12]line Версия ККМ: 001 [18:56:12]line Талоны: ТК ГПНА Online [18:56:12]line 30074712 [18:56:12]line ФМ: 0000000000965340 [18:56:12]line ФД: 188866 [18:56:12]line ФПД: 75952200346008 [18:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185611&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188866&fm=75952200346008&tin=02508201610067®Number=0000000000100030&sum=0 [18:56:12]written 0, free lines is 4095 [18:56:12]OFD Sender: Processing packet 188864 [packets to send 1064, broken 1061] [18:56:12]ProducePacketName [18:56:12]name=ofd_packets/00188864 [18:56:12]OFD Sender: To server: pG, [18:56:12]CommunicateWithHost lk.salyk.kg:30040 [18:56:12]ConnectInit lk.salyk.kg [18:56:13]Connected sock=8 [18:56:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A 7A 07 01 89 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 4A 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E1 02 00 35 04 06 00 91 F9 9F 07 92 9C 84 39 F8 C3 C7 79 3F 61 [18:56:13]Write to MH i2c: 01 00 00 21 01 22 [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 07 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 6D 0C A2 [18:56:13]RasterBufferAndPrint [18:56:13]line [18:56:13]line [18:56:13]line [18:56:13]line [18:56:13]line [18:56:13]written 0, free lines is 3188 [18:56:13]MH_Cut [18:56:13]Write to MH i2c: D1 01 00 28 01 01 FB [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: D1 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: D1 01 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: D1 01 00 28 01 00 FA [18:56:13]Write to MH i2c: 01 00 00 29 01 2A [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6B 0A 47 00 BC FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E1 02 00 F4 03 04 00 B5 F0 18 67 B6 04 01 00 00 E3 EC 77 07 6D 1D 86 32 [18:56:13]CommunicateWithHost err = 0 [18:56:13]CheckOFDResponse [18:56:13]1017 (14) - 77093643461234 [18:56:13]1041 (16) - 0000000000965340 [18:56:13]1040 (4) - 188864 [18:56:13]1012 (4) - 23.10.2024 12:48 [18:56:13]1206 (1) - 0 [18:56:13]OFD Sender: Remove packet 188864 [18:56:13]ProducePacketName [18:56:13]name=ofd_packets/00188864 [18:56:13]NVStorageDeleteData [18:56:14]OFD Sender: Processing packet 188865 [packets to send 1063, broken 1061] [18:56:14]ProducePacketName [18:56:14]name=ofd_packets/00188865 [18:56:14]OFD Sender: To server: pG, [18:56:14]CommunicateWithHost lk.salyk.kg:30040 [18:56:14]ConnectInit lk.salyk.kg [18:56:14]Connected sock=8 [18:56:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E1 99 0D 01 CA 29 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 C2 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E1 02 00 35 04 06 00 65 04 21 4C 88 AF 3C FA 04 C2 BE BE 39 64 [18:56:14]*** Cut start [18:56:14]*** Partial cut [18:56:14]*** CUTSNS_PIN = 1 [18:56:14]*** CUTSNS_PIN = 0 [18:56:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 04 EB 47 00 BC 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E1 02 00 F4 03 04 00 B6 F0 18 67 B6 04 01 00 00 AF 0D 38 8C 46 75 C9 56 [18:56:14]CommunicateWithHost err = 0 [18:56:14]CheckOFDResponse [18:56:14]1017 (14) - 77093643461234 [18:56:14]1041 (16) - 0000000000965340 [18:56:14]1040 (4) - 188865 [18:56:14]1012 (4) - 23.10.2024 12:48 [18:56:14]1206 (1) - 0 [18:56:14]OFD Sender: Remove packet 188865 [18:56:14]ProducePacketName [18:56:14]name=ofd_packets/00188865 [18:56:14]NVStorageDeleteData [18:56:14]*** Brake cut motor [18:56:15]Read from MH i2c: 01 [18:56:15]MH_I2C_Read... [18:56:15]*** Stop cut motor [18:56:15]*** Cut end [18:56:15]Read from MH i2c: 01 07 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 FF 0F 3F [18:56:15]process_action close_receipt done [18:56:15]requested_data is exist [18:56:15]produce_requested_data [18:56:15]requested_item fm.sn is exist - process it [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 11 00 00 [18:56:15]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 17 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F3 [18:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:56:15]wFMCommunicate OK [18:56:15]requested_item fd.num is exist - process it [18:56:15]SAM_PROTO_GetFieldsCounters [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 13 00 00 [18:56:15]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]OFD Sender: Processing packet 188866 [packets to send 1062, broken 1061] [18:56:15]ProducePacketName [18:56:15]name=ofd_packets/00188866 [18:56:15]OFD Sender: To server: pG, [18:56:15]CommunicateWithHost lk.salyk.kg:30040 [18:56:15]ConnectInit lk.salyk.kg [18:56:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 62 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [18:56:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:15]wFMCommunicate OK [18:56:15]SAM_PROTO_GetFieldsCounters done [18:56:15]requested_item shift.num is exist - process it [18:56:15]requested_item shift.opened is exist - process it [18:56:15]req_shift_opened [18:56:15]FM_GetShiftState [18:56:15]SAM_PROTO_GetShiftState [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 13 01 00 [18:56:15]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 0E 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 0E 00 2C 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 92 [18:56:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [18:56:15]wFMCommunicate OK [18:56:15]SAM_PROTO_GetShiftState done [18:56:15]FM_GetShiftState done [18:56:15]req_shift_opened done [18:56:15]requested_item shift.open_date is exist - process it [18:56:15]req_shift_open_date [18:56:15]req_shift_open_date done [18:56:15]produce_requested_data done [18:56:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188866,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [18:56:15]process_action_free close_receipt [18:56:15]json_value_free [18:56:15]json_value_free done [18:56:15]process_json_proto returns [18:56:15]Send response to host [18:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188866,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [18:56:15]free response buf [18:56:15]execute_script done [18:56:15]execute_script returns [18:56:15]free content buf [18:56:15]Sock 9.Close socket [18:56:15]Sock 9.Thread stoped [18:56:15]Connected sock=8 [18:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A7 4E 07 01 C8 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 CB 46 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E1 02 00 35 04 06 00 45 13 FF EB E9 98 C3 86 4F 16 24 D1 52 34 [18:56:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A2 56 47 00 36 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 36 35 33 34 30 10 04 04 00 C2 E1 02 00 F4 03 04 00 B7 F0 18 67 B6 04 01 00 00 E2 04 E0 B5 4B 80 D8 58 [18:56:15]CommunicateWithHost err = 0 [18:56:15]CheckOFDResponse [18:56:15]1017 (14) - 77093643461234 [18:56:15]1041 (16) - 0000000000965340 [18:56:15]1040 (4) - 188866 [18:56:15]1012 (4) - 23.10.2024 12:48 [18:56:15]1206 (1) - 0 [18:56:15]OFD Sender: Remove packet 188866 [18:56:15]ProducePacketName [18:56:15]name=ofd_packets/00188866 [18:56:15]NVStorageDeleteData [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:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:28]accept exits with 11 [19:01:28]New connection [19:01:28]New thread 3066953060 created [19:01:28]Thread 3066809700 joined [19:01:28]Waiting for new connection... [19:01:28] Sock 11.Parse request [19:01:28]Sock 11.Check first char [19:01:28]Sock 11.First char is OK [19:01:28]request: POST /json_proto HTTP/1.0 [19:01:28]Method: POST [19:01:28]URL: /json_proto [19:01:28]Method is POST - this is cgi request [19:01:28]url: /json_proto [19:01:28]query_string will be loaded in cgi processing [19:01:28]execute_cgi json_proto POST (null) [19:01:28]execute_cgi path=json_proto method=POST [19:01:28]POST find Content-Length [19:01:28]Host: 172.17.42.131:8080 [19:01:28]Content-Length: 677 [19:01:28]Content-Type: application/json [19:01:28] [19:01:28]POST finish read [19:01:28]Found Content-Length = 677 [19:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:28]execute_script... [19:01:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:28]POST & json_proto [19:01:28]process_json_proto [19:01:28]json parsed OK: [19:01:28]protocol is kg_v1.0 [19:01:28]action value=close_receipt [19:01:28]process_action close_receipt [19:01:28]cmd_close_receipt [19:01:28]MH_GetDate [19:01:28]Write to MH i2c: F0 00 00 2D 01 1D [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: F0 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: F0 09 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: F0 09 00 2D 01 00 09 48 19 67 A0 18 CA 66 DF [19:01:28]GetLastDocTimeStamp 1729709771 [19:01:28]current date 1729710089 [19:01:28]FM_GetShiftState [19:01:28]SAM_PROTO_GetShiftState [19:01:28]wFMCommunicate request_size=4 [19:01:28]MH_SAM_APDU [19:01:28]CAPDU: 80 13 01 00 [19:01:28]Write to MH i2c: E2 08 00 2E 01 80 13 01 00 00 00 00 00 AC [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 0E 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 0E 00 2E 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 94 [19:01:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:01:28]wFMCommunicate OK [19:01:28]SAM_PROTO_GetShiftState done [19:01:28]FM_GetShiftState done [19:01:28]opened in 1729642525 [19:01:28]opened+sec_in_day 1729728925 [19:01:28]quantity*price = 30038 [19:01:28]sum+1 = 30039 [19:01:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 325 23.10.2024 19:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188867 ФПД: 102127332139971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188867&fm=102127332139971&tin=02508201610067®Number=0000000000100030&sum=30000 [19:01:29]StoreToDocumentArchive [19:01:29]shift 462 fd 188867 [19:01:29]save to /storage/0462/doc_00188867 [19:01:29]save last doc name /storage/0462/doc_00188867 to /storage/kkm_last_doc_name [19:01:29]save OK [19:01:29]Clear old archive folders... [19:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:29]tlvbuf is 00528A70 [19:01:29]SAM_PROTO_ClearQueue [19:01:29]wFMCommunicate request_size=4 [19:01:29]MH_SAM_APDU [19:01:29]CAPDU: 80 09 00 00 [19:01:29]Write to MH i2c: E2 08 00 3B 01 80 09 00 00 00 00 00 00 AE [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:29]Read from MH i2c: E2 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 03 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [19:01:29]RAPDU: 90 00 [19:01:29]wFMCommunicate OK [19:01:29]SAM_PROTO_ClearQueue done [19:01:29]KKMCreateOFDPacket [19:01:29]OFDProtocolAddRootSTLVToBuf [19:01:29]FM_MakeSignedData [19:01:29]FM_MakeSignedData [19:01:29]SAM_PROTO_SignData [19:01:29]wFMCommunicate request_size=4 [19:01:29]MH_SAM_APDU [19:01:29]CAPDU: 80 0D 01 02 [19:01:29]Write to MH i2c: E2 08 00 3C 01 80 0D 01 02 00 00 00 00 B6 [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:29]Read from MH i2c: E2 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 03 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [19:01:29]RAPDU: 90 00 [19:01:29]wFMCommunicate OK [19:01:29]wFMCommunicate request_size=255 [19:01:29]MH_SAM_APDU [19:01:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 09 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E1 02 00 35 04 06 00 5C [19:01:29]Write to MH i2c: E2 02 01 3D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 09 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E1 02 00 35 04 06 00 5C 00 00 05 [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 03 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [19:01:30]RAPDU: 90 00 [19:01:30]wFMCommunicate OK [19:01:30]wFMCommunicate request_size=10 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 0D 02 02 05 E2 5F 5A A3 C3 [19:01:30]Write to MH i2c: E2 0D 00 3E 01 80 0D 02 02 05 00 E2 5F 5A A3 C3 00 00 C4 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 03 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [19:01:30]RAPDU: 90 00 [19:01:30]wFMCommunicate OK [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 0D 03 02 [19:01:30]Write to MH i2c: E2 08 00 3F 01 80 0D 03 02 00 00 00 00 BB [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 0B 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 0B 00 3F 01 00 C3 54 0F 7B AC BA 39 12 90 00 0E [19:01:30]RAPDU: C3 54 0F 7B AC BA 39 12 90 00 [19:01:30]wFMCommunicate OK [19:01:30]SAM_PROTO_SignData done [19:01:30]FM_MakeSignedData done [19:01:30]CreateOFDProtocolMessage [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 11 00 00 [19:01:30]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 17 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 09 [19:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:01:30]wFMCommunicate OK [19:01:30]CreateOFDProtocolMessage done [19:01:30]OFDSenderStorePacket 188867 [19:01:30]StoreOFDPacket docnum=188867 [19:01:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 61 05 07 01 E9 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 09 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E1 02 00 35 04 06 00 5C E2 5F 5A A3 C3 C3 54 0F 7B AC BA 39 12 [19:01:30]CheckFolder [19:01:30]dirname=/storage/ofd_packets [19:01:30]CheckFolder done [19:01:30]ProducePacketName [19:01:30]name=ofd_packets/00188867 [19:01:30]NVStorageSaveData ofd_packets/00188867 [19:01:30]File name is /storage/ofd_packets/00188867 [19:01:30]Write 301 bytes [19:01:30]NVStorageSaveData done [19:01:30]OFDSenderStorePacket done [19:01:30]KKMCreateOFDPacket done [19:01:30]NVStorageSaveData kkm_last_timestamp [19:01:30]File name is /storage/kkm_last_timestamp [19:01:30]Write 4 bytes [19:01:30]NVStorageSaveData done [19:01:30]ExternCall_PrintAddStr [19:01:30]wPrintStart [19:01:30]Write to MH i2c: 01 00 00 41 01 42 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 07 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [19:01:30]RasterBufferAndPrint [19:01:30]line Счет N : (1)210932 [19:01:30]line ИНН: 02508201610067 [19:01:30]line Контрольно-Кассовый Чек [19:01:30]line ПРОДАЖА [19:01:30]line ТРК (МРК, ГНК) : 32 [19:01:30]line Товар: 2710124130 [19:01:30]line Аи-92-К-3 [19:01:30]line 4.490 * 66.90 [19:01:30]line = 300.38 [19:01:30]line НДС 12% НСП 1% [19:01:30]line > о реализуемом товаре [19:01:30]line ОКРУГЛЕНИЕ: -0.38 [19:01:30]line ИТОГО: 300.00 [19:01:30]line Внесено: 300.00 [19:01:30]line СДАЧА: 0.00 [19:01:30]line НСП 1% : 2.66 [19:01:30]line НДС 12% : 31.90 [19:01:30]line Наличными: 300.00 [19:01:30]line Безнал.: 0.00 [19:01:30]line Место: АЗС № 86 "Партнер Нефть" [19:01:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:01:30]line СНО: Общий режим [19:01:30]line Чек 325 23.10.2024 19:01 [19:01:30]line Смена: 462 ФФД: 1.0 [19:01:30]line ЗНМ: 0300000155 [19:01:30]line РНМ: 0000000000100030 [19:01:30]line Версия ККМ: 001 [19:01:30]line ФМ: 0000000000965340 [19:01:30]line ФД: 188867 [19:01:30]line ФПД: 102127332139971 [19:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188867&fm=102127332139971&tin=02508201610067®Number=0000000000100030&sum=30000 [19:01:30]written 0, free lines is 4095 [19:01:30]OFD Sender: Processing packet 188867 [packets to send 1062, broken 1061] [19:01:30]ProducePacketName [19:01:30]name=ofd_packets/00188867 [19:01:30]OFD Sender: To server: pG, [19:01:30]CommunicateWithHost lk.salyk.kg:30040 [19:01:30]ConnectInit lk.salyk.kg [19:01:30]Connected sock=9 [19:01:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 61 05 07 01 E9 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 09 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E1 02 00 35 04 06 00 5C E2 5F 5A A3 C3 C3 54 0F 7B AC BA 39 12 [19:01:30]Write to MH i2c: 01 00 00 6C 01 6D [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 07 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 07 00 6C 01 00 00 00 00 00 59 0C D9 [19:01:30]RasterBufferAndPrint [19:01:30]line [19:01:30]line [19:01:30]line [19:01:30]line [19:01:30]line [19:01:30]written 0, free lines is 3165 [19:01:30]MH_Cut [19:01:30]Write to MH i2c: D1 01 00 73 01 01 46 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: D1 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: D1 01 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: D1 01 00 73 01 00 45 [19:01:30]Write to MH i2c: 01 00 00 74 01 75 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F E8 47 00 9D 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E1 02 00 F4 03 04 00 F3 F1 18 67 B6 04 01 00 00 D0 D0 2D E3 52 26 BC 97 [19:01:31]CommunicateWithHost err = 0 [19:01:31]CheckOFDResponse [19:01:31]1017 (14) - 77093643461234 [19:01:31]1041 (16) - 0000000000965340 [19:01:31]1040 (4) - 188867 [19:01:31]1012 (4) - 23.10.2024 12:54 [19:01:31]1206 (1) - 0 [19:01:31]OFD Sender: Remove packet 188867 [19:01:31]ProducePacketName [19:01:31]name=ofd_packets/00188867 [19:01:31]NVStorageDeleteData [19:01:31]OFD Sender: No OFD packet to send [19:01:32]*** Cut start [19:01:32]*** Partial cut [19:01:32]*** CUTSNS_PIN = 1 [19:01:32]*** CUTSNS_PIN = 0 [19:01:32]*** Brake cut motor [19:01:32]Read from MH i2c: 01 [19:01:32]MH_I2C_Read... [19:01:32]*** Stop cut motor [19:01:32]*** Cut end [19:01:32]Read from MH i2c: 01 07 00 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [19:01:32]process_action close_receipt done [19:01:32]requested_data is exist [19:01:32]produce_requested_data [19:01:32]requested_item fm.sn is exist - process it [19:01:32]wFMCommunicate request_size=4 [19:01:32]MH_SAM_APDU [19:01:32]CAPDU: 80 11 00 00 [19:01:32]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [19:01:32]Write i2c OK [19:01:32]MH_I2C_Read... [19:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:32]Read from MH i2c: E2 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 17 00 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 17 00 75 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3E [19:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:01:32]wFMCommunicate OK [19:01:32]requested_item fd.num is exist - process it [19:01:32]SAM_PROTO_GetFieldsCounters [19:01:32]wFMCommunicate request_size=4 [19:01:32]MH_SAM_APDU [19:01:32]CAPDU: 80 13 00 00 [19:01:32]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [19:01:32]Write i2c OK [19:01:32]MH_I2C_Read... [19:01:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:32]Read from MH i2c: E2 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 62 00 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 62 00 76 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [19:01:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:32]wFMCommunicate OK [19:01:32]SAM_PROTO_GetFieldsCounters done [19:01:32]requested_item shift.num is exist - process it [19:01:32]requested_item shift.opened is exist - process it [19:01:32]req_shift_opened [19:01:32]FM_GetShiftState [19:01:32]SAM_PROTO_GetShiftState [19:01:32]wFMCommunicate request_size=4 [19:01:32]MH_SAM_APDU [19:01:32]CAPDU: 80 13 01 00 [19:01:32]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [19:01:32]Write i2c OK [19:01:32]MH_I2C_Read... [19:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:33]Read from MH i2c: E2 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 0E 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DD [19:01:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:01:33]wFMCommunicate OK [19:01:33]SAM_PROTO_GetShiftState done [19:01:33]FM_GetShiftState done [19:01:33]req_shift_opened done [19:01:33]requested_item shift.open_date is exist - process it [19:01:33]req_shift_open_date [19:01:33]req_shift_open_date done [19:01:33]produce_requested_data done [19:01:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188867,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:01:33]process_action_free close_receipt [19:01:33]json_value_free [19:01:33]json_value_free done [19:01:33]process_json_proto returns [19:01:33]Send response to host [19:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188867,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:01:33]free response buf [19:01:33]execute_script done [19:01:33]execute_script returns [19:01:33]free content buf [19:01:33]Sock 11.Close socket [19:01:33]Sock 11.Thread stoped [19:01:35]accept exits with 8 [19:01:35]New connection [19:01:35]New thread 3066809700 created [19:01:35]Thread 3066953060 joined [19:01:35]Waiting for new connection... [19:01:35] Sock 8.Parse request [19:01:35]Sock 8.Check first char [19:01:35]Sock 8.First char is OK [19:01:35]request: POST /json_proto HTTP/1.0 [19:01:35]Method: POST [19:01:35]URL: /json_proto [19:01:35]Method is POST - this is cgi request [19:01:35]url: /json_proto [19:01:35]query_string will be loaded in cgi processing [19:01:35]execute_cgi json_proto POST (null) [19:01:35]execute_cgi path=json_proto method=POST [19:01:35]POST find Content-Length [19:01:35]Host: 172.17.42.131:8080 [19:01:35]Content-Length: 682 [19:01:35]Content-Type: application/json [19:01:35] [19:01:35]POST finish read [19:01:35]Found Content-Length = 682 [19:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:35]execute_script... [19: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 : (1)210931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:35]POST & json_proto [19:01:35]process_json_proto [19:01:35]json parsed OK: [19:01:35]protocol is kg_v1.0 [19:01:35]action value=close_receipt [19:01:35]process_action close_receipt [19:01:35]cmd_close_receipt [19:01:35]MH_GetDate [19:01:35]Write to MH i2c: F0 00 00 78 01 68 [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: F0 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: F0 09 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: F0 09 00 78 01 00 10 48 19 67 A0 18 CA 66 31 [19:01:35]GetLastDocTimeStamp 1729710089 [19:01:35]current date 1729710096 [19:01:35]FM_GetShiftState [19:01:35]SAM_PROTO_GetShiftState [19:01:35]wFMCommunicate request_size=4 [19:01:35]MH_SAM_APDU [19:01:35]CAPDU: 80 13 01 00 [19:01:35]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:35]Read from MH i2c: E2 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 0E 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DF [19:01:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:01:35]wFMCommunicate OK [19:01:35]SAM_PROTO_GetShiftState done [19:01:35]FM_GetShiftState done [19:01:35]opened in 1729642525 [19:01:35]opened+sec_in_day 1729728925 [19:01:35]quantity*price = 100015 [19:01:35]sum+1 = 100017 [19:01:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 326 23.10.2024 19:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188868 ФПД: 67015603284112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190136&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188868&fm=67015603284112&tin=02508201610067®Number=0000000000100030&sum=100000 [19:01:36]StoreToDocumentArchive [19:01:36]shift 462 fd 188868 [19:01:36]save to /storage/0462/doc_00188868 [19:01:36]save last doc name /storage/0462/doc_00188868 to /storage/kkm_last_doc_name [19:01:36]save OK [19:01:36]Clear old archive folders... [19:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:36]tlvbuf is 004E2CD0 [19:01:36]SAM_PROTO_ClearQueue [19:01:36]wFMCommunicate request_size=4 [19:01:36]MH_SAM_APDU [19:01:36]CAPDU: 80 09 00 00 [19:01:36]Write to MH i2c: E2 08 00 86 01 80 09 00 00 00 00 00 00 F9 [19:01:36]Write i2c OK [19:01:36]MH_I2C_Read... [19:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:36]Read from MH i2c: E2 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: E2 03 00 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [19:01:36]RAPDU: 90 00 [19:01:36]wFMCommunicate OK [19:01:36]SAM_PROTO_ClearQueue done [19:01:36]KKMCreateOFDPacket [19:01:36]OFDProtocolAddRootSTLVToBuf [19:01:36]FM_MakeSignedData [19:01:36]FM_MakeSignedData [19:01:36]SAM_PROTO_SignData [19:01:36]wFMCommunicate request_size=4 [19:01:36]MH_SAM_APDU [19:01:36]CAPDU: 80 0D 01 02 [19:01:36]Write to MH i2c: E2 08 00 87 01 80 0D 01 02 00 00 00 00 01 [19:01:36]Write i2c OK [19:01:36]MH_I2C_Read... [19:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:36]Read from MH i2c: E2 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: E2 03 00 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [19:01:36]RAPDU: 90 00 [19:01:36]wFMCommunicate OK [19:01:36]wFMCommunicate request_size=255 [19:01:36]MH_SAM_APDU [19:01:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 10 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E1 02 00 35 04 06 00 3C [19:01:36]Write to MH i2c: E2 02 01 88 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 10 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E1 02 00 35 04 06 00 3C 00 00 3F [19:01:36]Write i2c OK [19:01:36]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [19:01:37]RAPDU: 90 00 [19:01:37]wFMCommunicate OK [19:01:37]wFMCommunicate request_size=10 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 0D 02 02 05 F3 49 3A 68 90 [19:01:37]Write to MH i2c: E2 0D 00 89 01 80 0D 02 02 05 00 F3 49 3A 68 90 00 00 7C [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [19:01:37]RAPDU: 90 00 [19:01:37]wFMCommunicate OK [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 0D 03 02 [19:01:37]Write to MH i2c: E2 08 00 8A 01 80 0D 03 02 00 00 00 00 06 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 0B 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 0B 00 8A 01 00 89 A3 69 6C A2 7A 68 78 90 00 04 [19:01:37]RAPDU: 89 A3 69 6C A2 7A 68 78 90 00 [19:01:37]wFMCommunicate OK [19:01:37]SAM_PROTO_SignData done [19:01:37]FM_MakeSignedData done [19:01:37]CreateOFDProtocolMessage [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 11 00 00 [19:01:37]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 17 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [19:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:01:37]wFMCommunicate OK [19:01:37]CreateOFDProtocolMessage done [19:01:37]OFDSenderStorePacket 188868 [19:01:37]StoreOFDPacket docnum=188868 [19:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D F8 07 01 A5 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 10 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E1 02 00 35 04 06 00 3C F3 49 3A 68 90 89 A3 69 6C A2 7A 68 78 [19:01:37]CheckFolder [19:01:37]dirname=/storage/ofd_packets [19:01:37]CheckFolder done [19:01:37]ProducePacketName [19:01:37]name=ofd_packets/00188868 [19:01:37]NVStorageSaveData ofd_packets/00188868 [19:01:37]File name is /storage/ofd_packets/00188868 [19:01:37]Write 301 bytes [19:01:37]NVStorageSaveData done [19:01:37]OFDSenderStorePacket done [19:01:37]KKMCreateOFDPacket done [19:01:37]NVStorageSaveData kkm_last_timestamp [19:01:37]File name is /storage/kkm_last_timestamp [19:01:37]Write 4 bytes [19:01:37]NVStorageSaveData done [19:01:37]ExternCall_PrintAddStr [19:01:37]wPrintStart [19:01:37]Write to MH i2c: 01 00 00 8C 01 8D [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 07 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [19:01:37]RasterBufferAndPrint [19:01:37]line Счет N : (1)210931 [19:01:37]line ИНН: 02508201610067 [19:01:37]line Контрольно-Кассовый Чек [19:01:37]line ПРОДАЖА [19:01:37]line ТРК (МРК, ГНК) : 42 [19:01:37]line Товар: 2710124130 [19:01:37]line Аи-92-К-3 [19:01:37]line 14.950 * 66.90 [19:01:37]line = 1000.16 [19:01:37]line НДС 12% НСП 1% [19:01:37]line > о реализуемом товаре [19:01:37]line ОКРУГЛЕНИЕ: -0.16 [19:01:37]line ИТОГО: 1000.00 [19:01:37]line Внесено: 1000.00 [19:01:37]line СДАЧА: 0.00 [19:01:37]line НСП 1% : 8.85 [19:01:37]line НДС 12% : 106.21 [19:01:37]line Наличными: 1000.00 [19:01:37]line Безнал.: 0.00 [19:01:37]line Место: АЗС № 86 "Партнер Нефть" [19:01:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:01:37]line СНО: Общий режим [19:01:37]line Чек 326 23.10.2024 19:01 [19:01:37]line Смена: 462 ФФД: 1.0 [19:01:37]line ЗНМ: 0300000155 [19:01:37]line РНМ: 0000000000100030 [19:01:37]line Версия ККМ: 001 [19:01:37]line ФМ: 0000000000965340 [19:01:37]line ФД: 188868 [19:01:37]line ФПД: 67015603284112 [19:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190136&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188868&fm=67015603284112&tin=02508201610067®Number=0000000000100030&sum=100000 [19:01:37]written 0, free lines is 4095 [19:01:37]OFD Sender: Processing packet 188868 [packets to send 1062, broken 1061] [19:01:37]ProducePacketName [19:01:37]name=ofd_packets/00188868 [19:01:37]OFD Sender: To server: pG, [19:01:37]CommunicateWithHost lk.salyk.kg:30040 [19:01:37]ConnectInit lk.salyk.kg [19:01:37]Connected sock=10 [19:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D F8 07 01 A5 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 10 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E1 02 00 35 04 06 00 3C F3 49 3A 68 90 89 A3 69 6C A2 7A 68 78 [19:01:37]Write to MH i2c: 01 00 00 B7 01 B8 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 07 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 07 00 B7 01 00 00 00 00 00 64 0C 2F [19:01:37]RasterBufferAndPrint [19:01:37]line [19:01:37]line [19:01:37]line [19:01:37]line [19:01:37]line [19:01:37]written 0, free lines is 3179 [19:01:37]MH_Cut [19:01:37]Write to MH i2c: D1 01 00 BE 01 01 91 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: D1 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: D1 01 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: D1 01 00 BE 01 00 90 [19:01:37]Write to MH i2c: 01 00 00 BF 01 C0 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 06 2C 47 00 70 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E1 02 00 F4 03 04 00 FA F1 18 67 B6 04 01 00 00 5A 6F 5E B5 EC 2E 28 8A [19:01:38]CommunicateWithHost err = 0 [19:01:38]CheckOFDResponse [19:01:38]1017 (14) - 77093643461234 [19:01:38]1041 (16) - 0000000000965340 [19:01:38]1040 (4) - 188868 [19:01:38]1012 (4) - 23.10.2024 12:54 [19:01:38]1206 (1) - 0 [19:01:38]OFD Sender: Remove packet 188868 [19:01:38]ProducePacketName [19:01:38]name=ofd_packets/00188868 [19:01:38]NVStorageDeleteData [19:01:38]OFD Sender: No OFD packet to send [19:01:39]*** Cut start [19:01:39]*** Partial cut [19:01:39]*** CUTSNS_PIN = 1 [19:01:39]*** CUTSNS_PIN = 0 [19:01:39]*** Brake cut motor [19:01:39]Read from MH i2c: 01 [19:01:39]MH_I2C_Read... [19:01:39]*** Stop cut motor [19:01:39]*** Cut end [19:01:39]Read from MH i2c: 01 07 00 [19:01:39]MH_I2C_Read... [19:01:39]Read from MH i2c: 01 07 00 BF 01 00 00 00 00 00 FF 0F D5 [19:01:39]process_action close_receipt done [19:01:39]requested_data is exist [19:01:39]produce_requested_data [19:01:39]requested_item fm.sn is exist - process it [19:01:39]wFMCommunicate request_size=4 [19:01:39]MH_SAM_APDU [19:01:39]CAPDU: 80 11 00 00 [19:01:39]Write to MH i2c: E2 08 00 C0 01 80 11 00 00 00 00 00 00 3B [19:01:39]Write i2c OK [19:01:39]MH_I2C_Read... [19:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:39]Read from MH i2c: E2 [19:01:39]MH_I2C_Read... [19:01:39]Read from MH i2c: E2 17 00 [19:01:39]MH_I2C_Read... [19:01:39]Read from MH i2c: E2 17 00 C0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 89 [19:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:01:39]wFMCommunicate OK [19:01:39]requested_item fd.num is exist - process it [19:01:39]SAM_PROTO_GetFieldsCounters [19:01:39]wFMCommunicate request_size=4 [19:01:39]MH_SAM_APDU [19:01:39]CAPDU: 80 13 00 00 [19:01:39]Write to MH i2c: E2 08 00 C1 01 80 13 00 00 00 00 00 00 3E [19:01:39]Write i2c OK [19:01:39]MH_I2C_Read... [19:01:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:40]Read from MH i2c: E2 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 62 00 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 62 00 C1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:01:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:40]wFMCommunicate OK [19:01:40]SAM_PROTO_GetFieldsCounters done [19:01:40]requested_item shift.num is exist - process it [19:01:40]requested_item shift.opened is exist - process it [19:01:40]req_shift_opened [19:01:40]FM_GetShiftState [19:01:40]SAM_PROTO_GetShiftState [19:01:40]wFMCommunicate request_size=4 [19:01:40]MH_SAM_APDU [19:01:40]CAPDU: 80 13 01 00 [19:01:40]Write to MH i2c: E2 08 00 C2 01 80 13 01 00 00 00 00 00 40 [19:01:40]Write i2c OK [19:01:40]MH_I2C_Read... [19:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:40]Read from MH i2c: E2 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 0E 00 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 0E 00 C2 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 28 [19:01:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:01:40]wFMCommunicate OK [19:01:40]SAM_PROTO_GetShiftState done [19:01:40]FM_GetShiftState done [19:01:40]req_shift_opened done [19:01:40]requested_item shift.open_date is exist - process it [19:01:40]req_shift_open_date [19:01:40]req_shift_open_date done [19:01:40]produce_requested_data done [19:01:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188868,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:01:40]process_action_free close_receipt [19:01:40]json_value_free [19:01:40]json_value_free done [19:01:40]process_json_proto returns [19:01:40]Send response to host [19:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188868,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:01:40]free response buf [19:01:40]execute_script done [19:01:40]execute_script returns [19:01:40]free content buf [19:01:40]Sock 8.Close socket [19:01:40]Sock 8.Thread stoped [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:05]accept exits with 9 [19:02:05]New connection [19:02:05]New thread 3066953060 created [19:02:05]Thread 3066809700 joined [19:02:05]Waiting for new connection... [19:02:05] Sock 9.Parse request [19:02:05]Sock 9.Check first char [19:02:05]Sock 9.First char is OK [19:02:05]request: POST /json_proto HTTP/1.0 [19:02:05]Method: POST [19:02:05]URL: /json_proto [19:02:05]Method is POST - this is cgi request [19:02:05]url: /json_proto [19:02:05]query_string will be loaded in cgi processing [19:02:05]execute_cgi json_proto POST (null) [19:02:05]execute_cgi path=json_proto method=POST [19:02:05]POST find Content-Length [19:02:05]Host: 172.17.42.131:8080 [19:02:05]Content-Length: 979 [19:02:05]Content-Type: application/json [19:02:05] [19:02:05]POST finish read [19:02:05]Found Content-Length = 979 [19:02:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 120.220, "sum" : 9040.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 120.22 \u0441\u043E\u043C", "deposit" : 9040.00, "total" : 9040.00, "payments": [ { "type": 0, "sum" : 9040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:05]execute_script... [19:02:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 120.220, "sum" : 9040.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 120.22 \u0441\u043E\u043C", "deposit" : 9040.00, "total" : 9040.00, "payments": [ { "type": 0, "sum" : 9040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:05]POST & json_proto [19:02:05]process_json_proto [19:02:05]json parsed OK: [19:02:05]protocol is kg_v1.0 [19:02:05]action value=close_receipt [19:02:05]process_action close_receipt [19:02:05]cmd_close_receipt [19:02:05]MH_GetDate [19:02:05]Write to MH i2c: F0 00 00 C3 01 B3 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: F0 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: F0 09 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: F0 09 00 C3 01 00 2D 48 19 67 A0 18 CA 66 99 [19:02:05]GetLastDocTimeStamp 1729710096 [19:02:05]current date 1729710125 [19:02:05]FM_GetShiftState [19:02:05]SAM_PROTO_GetShiftState [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 13 01 00 [19:02:05]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 0E 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2A [19:02:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:02:05]wFMCommunicate OK [19:02:05]SAM_PROTO_GetShiftState done [19:02:05]FM_GetShiftState done [19:02:05]opened in 1729642525 [19:02:05]opened+sec_in_day 1729728925 [19:02:05]quantity*price = 904054 [19:02:05]sum+1 = 904055 [19:02:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 9040.00 Внесено: 9040.00 СДАЧА: 0.00 НСП 1% : 80.00 НДС 12% : 960.06 Наличными: 9040.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 327 23.10.2024 19:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 120.22 сом ФМ: 0000000000965340 ФД: 188869 ФПД: 171486806633503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190205&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188869&fm=171486806633503&tin=02508201610067®Number=0000000000100030&sum=904000 [19:02:06]StoreToDocumentArchive [19:02:06]shift 462 fd 188869 [19:02:06]save to /storage/0462/doc_00188869 [19:02:06]save last doc name /storage/0462/doc_00188869 to /storage/kkm_last_doc_name [19:02:06]save OK [19:02:06]Clear old archive folders... [19:02:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:02:06]tlvbuf is 00534370 [19:02:06]SAM_PROTO_ClearQueue [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 09 00 00 [19:02:06]Write to MH i2c: E2 08 00 D1 01 80 09 00 00 00 00 00 00 44 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [19:02:06]RAPDU: 90 00 [19:02:06]wFMCommunicate OK [19:02:06]SAM_PROTO_ClearQueue done [19:02:06]KKMCreateOFDPacket [19:02:06]OFDProtocolAddRootSTLVToBuf [19:02:06]FM_MakeSignedData [19:02:06]FM_MakeSignedData [19:02:06]SAM_PROTO_SignData [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 0D 01 02 [19:02:06]Write to MH i2c: E2 08 00 D2 01 80 0D 01 02 00 00 00 00 4C [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [19:02:06]RAPDU: 90 00 [19:02:06]wFMCommunicate OK [19:02:06]wFMCommunicate request_size=255 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C D5 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 76 CB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 77 01 00 00 00 07 04 06 00 40 CB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 2D 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E1 02 00 35 04 06 00 9B F7 62 31 [19:02:06]Write to MH i2c: E2 02 01 D3 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C D5 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 76 CB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 77 01 00 00 00 07 04 06 00 40 CB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 2D 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E1 02 00 35 04 06 00 9B F7 62 31 00 00 B2 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [19:02:06]RAPDU: 90 00 [19:02:06]wFMCommunicate OK [19:02:06]wFMCommunicate request_size=7 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 0D 02 02 02 6C 1F [19:02:06]Write to MH i2c: E2 0A 00 D4 01 80 0D 02 02 02 00 6C 1F 00 00 DE [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [19:02:06]RAPDU: 90 00 [19:02:06]wFMCommunicate OK [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 0D 03 02 [19:02:06]Write to MH i2c: E2 08 00 D5 01 80 0D 03 02 00 00 00 00 51 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 0B 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 0B 00 D5 01 00 B6 14 C6 22 6B 11 D4 58 90 00 AC [19:02:06]RAPDU: B6 14 C6 22 6B 11 D4 58 90 00 [19:02:06]wFMCommunicate OK [19:02:06]SAM_PROTO_SignData done [19:02:06]FM_MakeSignedData done [19:02:06]CreateOFDProtocolMessage [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 11 00 00 [19:02:06]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:07]Read from MH i2c: E2 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 17 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [19:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:02:07]wFMCommunicate OK [19:02:07]CreateOFDProtocolMessage done [19:02:07]OFDSenderStorePacket 188869 [19:02:07]StoreOFDPacket docnum=188869 [19:02:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D1 0E 04 01 F1 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C D5 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 76 CB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 77 01 00 00 00 07 04 06 00 40 CB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 2D 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E1 02 00 35 04 06 00 9B F7 62 31 6C 1F B6 14 C6 22 6B 11 D4 58 [19:02:07]CheckFolder [19:02:07]dirname=/storage/ofd_packets [19:02:07]CheckFolder done [19:02:07]ProducePacketName [19:02:07]name=ofd_packets/00188869 [19:02:07]NVStorageSaveData ofd_packets/00188869 [19:02:07]File name is /storage/ofd_packets/00188869 [19:02:07]Write 298 bytes [19:02:07]NVStorageSaveData done [19:02:07]OFDSenderStorePacket done [19:02:07]KKMCreateOFDPacket done [19:02:07]NVStorageSaveData kkm_last_timestamp [19:02:07]File name is /storage/kkm_last_timestamp [19:02:07]Write 4 bytes [19:02:07]NVStorageSaveData done [19:02:07]ExternCall_PrintAddStr [19:02:07]wPrintStart [19:02:07]Write to MH i2c: 01 00 00 D7 01 D8 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 07 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [19:02:07]RasterBufferAndPrint [19:02:07]line Счет N : (1)210930 [19:02:07]line ИНН: 02508201610067 [19:02:07]line Контрольно-Кассовый Чек [19:02:07]line ПРОДАЖА [19:02:07]line ТРК (МРК, ГНК) : 51 [19:02:07]line Товар: 2710194210 [19:02:07]line ДТ-К-5 [19:02:07]line 120.220 * 75.20 [19:02:07]line = 9040.54 [19:02:07]line НДС 12% НСП 1% [19:02:07]line > о реализуемом товаре [19:02:07]line ОКРУГЛЕНИЕ: -0.54 [19:02:07]line ИТОГО: 9040.00 [19:02:07]line Внесено: 9040.00 [19:02:07]line СДАЧА: 0.00 [19:02:07]line НСП 1% : 80.00 [19:02:07]line НДС 12% : 960.06 [19:02:07]line Наличными: 9040.00 [19:02:07]line Безнал.: 0.00 [19:02:07]line Место: АЗС № 86 "Партнер Нефть" [19:02:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:02:07]line СНО: Общий режим [19:02:07]line Чек 327 23.10.2024 19:02 [19:02:07]line Смена: 462 ФФД: 1.0 [19:02:07]line ЗНМ: 0300000155 [19:02:07]line РНМ: 0000000000100030 [19:02:07]line Версия ККМ: 001 [19:02:07]line [19:02:07]line Дисконтная программа [19:02:07]line ДТ [19:02:07]line номер 86 [19:02:07]line сэкономлено 120.22 сом [19:02:07]line ФМ: 0000000000965340 [19:02:07]line ФД: 188869 [19:02:07]line ФПД: 171486806633503 [19:02:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190205&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188869&fm=171486806633503&tin=02508201610067®Number=0000000000100030&sum=904000 [19:02:07]OFD Sender: Processing packet 188869 [packets to send 1062, broken 1061] [19:02:07]ProducePacketName [19:02:07]name=ofd_packets/00188869 [19:02:07]OFD Sender: To server: pG, [19:02:07]CommunicateWithHost lk.salyk.kg:30040 [19:02:07]ConnectInit lk.salyk.kg [19:02:07]written 0, free lines is 4095 [19:02:07]Connected sock=10 [19:02:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D1 0E 04 01 F1 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C D5 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 76 CB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 77 01 00 00 00 07 04 06 00 40 CB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 2D 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E1 02 00 35 04 06 00 9B F7 62 31 6C 1F B6 14 C6 22 6B 11 D4 58 [19:02:07]Write to MH i2c: 01 00 00 07 02 09 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 07 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 E0 0B FB [19:02:07]RasterBufferAndPrint [19:02:07]line [19:02:07]line [19:02:07]line [19:02:07]line [19:02:07]line [19:02:07]written 0, free lines is 3041 [19:02:07]MH_Cut [19:02:07]Write to MH i2c: D1 01 00 0E 02 01 E2 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: D1 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: D1 01 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: D1 01 00 0E 02 00 E1 [19:02:07]Write to MH i2c: 01 00 00 0F 02 11 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E 50 47 00 D7 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 36 35 33 34 30 10 04 04 00 C5 E1 02 00 F4 03 04 00 18 F2 18 67 B6 04 01 00 00 63 8D 00 7D 93 D9 C7 73 [19:02:07]CommunicateWithHost err = 0 [19:02:07]CheckOFDResponse [19:02:07]1017 (14) - 77093643461234 [19:02:07]1041 (16) - 0000000000965340 [19:02:07]1040 (4) - 188869 [19:02:07]1012 (4) - 23.10.2024 12:54 [19:02:07]1206 (1) - 0 [19:02:07]OFD Sender: Remove packet 188869 [19:02:07]ProducePacketName [19:02:07]name=ofd_packets/00188869 [19:02:07]NVStorageDeleteData [19:02:08]OFD Sender: No OFD packet to send [19:02:09]*** Cut start [19:02:09]*** Partial cut [19:02:09]*** CUTSNS_PIN = 1 [19:02:09]*** CUTSNS_PIN = 0 [19:02:09]*** Brake cut motor [19:02:09]Read from MH i2c: 01 [19:02:09]MH_I2C_Read... [19:02:09]*** Stop cut motor [19:02:09]*** Cut end [19:02:09]Read from MH i2c: 01 07 00 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [19:02:09]process_action close_receipt done [19:02:09]requested_data is exist [19:02:09]produce_requested_data [19:02:09]requested_item fm.sn is exist - process it [19:02:09]wFMCommunicate request_size=4 [19:02:09]MH_SAM_APDU [19:02:09]CAPDU: 80 11 00 00 [19:02:09]Write to MH i2c: E2 08 00 10 02 80 11 00 00 00 00 00 00 8C [19:02:09]Write i2c OK [19:02:09]MH_I2C_Read... [19:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:09]Read from MH i2c: E2 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 17 00 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 17 00 10 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [19:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:02:09]wFMCommunicate OK [19:02:09]requested_item fd.num is exist - process it [19:02:09]SAM_PROTO_GetFieldsCounters [19:02:09]wFMCommunicate request_size=4 [19:02:09]MH_SAM_APDU [19:02:09]CAPDU: 80 13 00 00 [19:02:09]Write to MH i2c: E2 08 00 11 02 80 13 00 00 00 00 00 00 8F [19:02:09]Write i2c OK [19:02:09]MH_I2C_Read... [19:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:10]Read from MH i2c: E2 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 62 00 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 62 00 11 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [19:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:10]wFMCommunicate OK [19:02:10]SAM_PROTO_GetFieldsCounters done [19:02:10]requested_item shift.num is exist - process it [19:02:10]requested_item shift.opened is exist - process it [19:02:10]req_shift_opened [19:02:10]FM_GetShiftState [19:02:10]SAM_PROTO_GetShiftState [19:02:10]wFMCommunicate request_size=4 [19:02:10]MH_SAM_APDU [19:02:10]CAPDU: 80 13 01 00 [19:02:10]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [19:02:10]Write i2c OK [19:02:10]MH_I2C_Read... [19:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:10]Read from MH i2c: E2 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 0E 00 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 79 [19:02:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:02:10]wFMCommunicate OK [19:02:10]SAM_PROTO_GetShiftState done [19:02:10]FM_GetShiftState done [19:02:10]req_shift_opened done [19:02:10]requested_item shift.open_date is exist - process it [19:02:10]req_shift_open_date [19:02:10]req_shift_open_date done [19:02:10]produce_requested_data done [19:02:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188869,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:02:10]process_action_free close_receipt [19:02:10]json_value_free [19:02:10]json_value_free done [19:02:10]process_json_proto returns [19:02:10]Send response to host [19:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188869,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:02:10]free response buf [19:02:10]execute_script done [19:02:10]execute_script returns [19:02:10]free content buf [19:02:10]Sock 9.Close socket [19:02:10]Sock 9.Thread stoped [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]accept exits with 8 [19:03:53]New connection [19:03:53]New thread 3066809700 created [19:03:53]Thread 3066953060 joined [19:03:53]Waiting for new connection... [19:03:53] Sock 8.Parse request [19:03:53]Sock 8.Check first char [19:03:53]Sock 8.First char is OK [19:03:53]request: POST /json_proto HTTP/1.0 [19:03:53]Method: POST [19:03:53]URL: /json_proto [19:03:53]Method is POST - this is cgi request [19:03:53]url: /json_proto [19:03:53]query_string will be loaded in cgi processing [19:03:53]execute_cgi json_proto POST (null) [19:03:53]execute_cgi path=json_proto method=POST [19:03:53]POST find Content-Length [19:03:53]Host: 172.17.42.131:8080 [19:03:53]Content-Length: 677 [19:03:53]Content-Type: application/json [19:03:53] [19:03:53]POST finish read [19:03:53]Found Content-Length = 677 [19:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:53]execute_script... [19:03:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:53]POST & json_proto [19:03:53]process_json_proto [19:03:53]json parsed OK: [19:03:53]protocol is kg_v1.0 [19:03:53]action value=close_receipt [19:03:53]process_action close_receipt [19:03:53]cmd_close_receipt [19:03:53]MH_GetDate [19:03:53]Write to MH i2c: F0 00 00 13 02 04 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: F0 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: F0 09 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: F0 09 00 13 02 00 9A 48 19 67 A0 18 CA 66 57 [19:03:53]GetLastDocTimeStamp 1729710125 [19:03:53]current date 1729710234 [19:03:53]FM_GetShiftState [19:03:53]SAM_PROTO_GetShiftState [19:03:53]wFMCommunicate request_size=4 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 13 01 00 [19:03:53]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 0E 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7B [19:03:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:03:53]wFMCommunicate OK [19:03:53]SAM_PROTO_GetShiftState done [19:03:53]FM_GetShiftState done [19:03:53]opened in 1729642525 [19:03:53]opened+sec_in_day 1729728925 [19:03:53]quantity*price = 50041 [19:03:53]sum+1 = 50042 [19:03:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 328 23.10.2024 19:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188870 ФПД: 21302623738348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190354&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188870&fm=21302623738348&tin=02508201610067®Number=0000000000100030&sum=50000 [19:03:54]StoreToDocumentArchive [19:03:54]shift 462 fd 188870 [19:03:54]save to /storage/0462/doc_00188870 [19:03:54]save last doc name /storage/0462/doc_00188870 to /storage/kkm_last_doc_name [19:03:54]save OK [19:03:54]Clear old archive folders... [19:03:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:54]tlvbuf is 004D3D90 [19:03:54]SAM_PROTO_ClearQueue [19:03:54]wFMCommunicate request_size=4 [19:03:54]MH_SAM_APDU [19:03:54]CAPDU: 80 09 00 00 [19:03:54]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [19:03:54]Write i2c OK [19:03:54]MH_I2C_Read... [19:03:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:54]Read from MH i2c: E2 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 03 00 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [19:03:54]RAPDU: 90 00 [19:03:54]wFMCommunicate OK [19:03:54]SAM_PROTO_ClearQueue done [19:03:54]KKMCreateOFDPacket [19:03:54]OFDProtocolAddRootSTLVToBuf [19:03:54]FM_MakeSignedData [19:03:54]FM_MakeSignedData [19:03:54]SAM_PROTO_SignData [19:03:54]wFMCommunicate request_size=4 [19:03:54]MH_SAM_APDU [19:03:54]CAPDU: 80 0D 01 02 [19:03:54]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [19:03:54]Write i2c OK [19:03:54]MH_I2C_Read... [19:03:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:54]Read from MH i2c: E2 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 03 00 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [19:03:54]RAPDU: 90 00 [19:03:54]wFMCommunicate OK [19:03:54]wFMCommunicate request_size=255 [19:03:54]MH_SAM_APDU [19:03:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 9A 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E1 02 00 35 04 06 00 13 [19:03:55]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 9A 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E1 02 00 35 04 06 00 13 00 00 46 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 03 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [19:03:55]RAPDU: 90 00 [19:03:55]wFMCommunicate OK [19:03:55]wFMCommunicate request_size=10 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 0D 02 02 05 5F E7 52 19 EC [19:03:55]Write to MH i2c: E2 0D 00 24 02 80 0D 02 02 05 00 5F E7 52 19 EC 00 00 47 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 03 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [19:03:55]RAPDU: 90 00 [19:03:55]wFMCommunicate OK [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 0D 03 02 [19:03:55]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 0B 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 0B 00 25 02 00 2D 73 E6 92 34 B1 39 9B 90 00 74 [19:03:55]RAPDU: 2D 73 E6 92 34 B1 39 9B 90 00 [19:03:55]wFMCommunicate OK [19:03:55]SAM_PROTO_SignData done [19:03:55]FM_MakeSignedData done [19:03:55]CreateOFDProtocolMessage [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 11 00 00 [19:03:55]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 17 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [19:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:03:55]wFMCommunicate OK [19:03:55]CreateOFDProtocolMessage done [19:03:55]OFDSenderStorePacket 188870 [19:03:55]StoreOFDPacket docnum=188870 [19:03:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 06 07 01 33 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 9A 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E1 02 00 35 04 06 00 13 5F E7 52 19 EC 2D 73 E6 92 34 B1 39 9B [19:03:55]CheckFolder [19:03:55]dirname=/storage/ofd_packets [19:03:55]CheckFolder done [19:03:55]ProducePacketName [19:03:55]name=ofd_packets/00188870 [19:03:55]NVStorageSaveData ofd_packets/00188870 [19:03:55]File name is /storage/ofd_packets/00188870 [19:03:55]Write 301 bytes [19:03:55]NVStorageSaveData done [19:03:55]OFDSenderStorePacket done [19:03:55]KKMCreateOFDPacket done [19:03:55]NVStorageSaveData kkm_last_timestamp [19:03:55]File name is /storage/kkm_last_timestamp [19:03:55]Write 4 bytes [19:03:55]NVStorageSaveData done [19:03:55]ExternCall_PrintAddStr [19:03:55]wPrintStart [19:03:55]Write to MH i2c: 01 00 00 27 02 29 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: 01 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: 01 07 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [19:03:55]RasterBufferAndPrint [19:03:55]line Счет N : (1)210934 [19:03:55]line ИНН: 02508201610067 [19:03:55]line Контрольно-Кассовый Чек [19:03:55]line ПРОДАЖА [19:03:55]line ТРК (МРК, ГНК) : 42 [19:03:55]line Товар: 2710124130 [19:03:55]line Аи-92-К-3 [19:03:55]line 7.480 * 66.90 [19:03:55]line = 500.41 [19:03:55]line НДС 12% НСП 1% [19:03:55]line > о реализуемом товаре [19:03:55]line ОКРУГЛЕНИЕ: -0.41 [19:03:55]line ИТОГО: 500.00 [19:03:55]line Внесено: 500.00 [19:03:55]line СДАЧА: 0.00 [19:03:55]line НСП 1% : 4.43 [19:03:55]line НДС 12% : 53.14 [19:03:55]line Наличными: 500.00 [19:03:55]line Безнал.: 0.00 [19:03:55]line Место: АЗС № 86 "Партнер Нефть" [19:03:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:03:55]line СНО: Общий режим [19:03:55]line Чек 328 23.10.2024 19:03 [19:03:55]line Смена: 462 ФФД: 1.0 [19:03:55]line ЗНМ: 0300000155 [19:03:55]line РНМ: 0000000000100030 [19:03:55]line Версия ККМ: 001 [19:03:55]line ФМ: 0000000000965340 [19:03:55]line ФД: 188870 [19:03:55]line ФПД: 21302623738348 [19:03:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190354&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188870&fm=21302623738348&tin=02508201610067®Number=0000000000100030&sum=50000 [19:03:55]written 0, free lines is 4095 [19:03:55]OFD Sender: Processing packet 188870 [packets to send 1062, broken 1061] [19:03:55]ProducePacketName [19:03:55]name=ofd_packets/00188870 [19:03:55]OFD Sender: To server: pG, [19:03:55]CommunicateWithHost lk.salyk.kg:30040 [19:03:55]ConnectInit lk.salyk.kg [19:03:55]Connected sock=10 [19:03:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 06 07 01 33 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 9A 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E1 02 00 35 04 06 00 13 5F E7 52 19 EC 2D 73 E6 92 34 B1 39 9B [19:03:55]Write to MH i2c: 01 00 00 52 02 54 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: 01 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: 01 07 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 58 0C BF [19:03:55]RasterBufferAndPrint [19:03:55]line [19:03:55]line [19:03:55]line [19:03:55]line [19:03:55]line [19:03:55]written 0, free lines is 3164 [19:03:55]MH_Cut [19:03:55]Write to MH i2c: D1 01 00 59 02 01 2D [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: D1 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: D1 01 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: D1 01 00 59 02 00 2C [19:03:55]Write to MH i2c: 01 00 00 5A 02 5C [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4B B3 47 00 3B FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E1 02 00 F4 03 04 00 84 F2 18 67 B6 04 01 00 00 0F 0E 36 EB F5 DC BF 08 [19:03:56]CommunicateWithHost err = 0 [19:03:56]CheckOFDResponse [19:03:56]1017 (14) - 77093643461234 [19:03:56]1041 (16) - 0000000000965340 [19:03:56]1040 (4) - 188870 [19:03:56]1012 (4) - 23.10.2024 12:56 [19:03:56]1206 (1) - 0 [19:03:56]OFD Sender: Remove packet 188870 [19:03:56]ProducePacketName [19:03:56]name=ofd_packets/00188870 [19:03:56]NVStorageDeleteData [19:03:56]OFD Sender: No OFD packet to send [19:03:57]*** Cut start [19:03:57]*** Partial cut [19:03:57]*** CUTSNS_PIN = 1 [19:03:57]*** CUTSNS_PIN = 0 [19:03:57]*** Brake cut motor [19:03:57]Read from MH i2c: 01 [19:03:57]MH_I2C_Read... [19:03:57]*** Stop cut motor [19:03:57]*** Cut end [19:03:57]Read from MH i2c: 01 07 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FF 0F 71 [19:03:57]process_action close_receipt done [19:03:57]requested_data is exist [19:03:57]produce_requested_data [19:03:57]requested_item fm.sn is exist - process it [19:03:57]wFMCommunicate request_size=4 [19:03:57]MH_SAM_APDU [19:03:57]CAPDU: 80 11 00 00 [19:03:57]Write to MH i2c: E2 08 00 5B 02 80 11 00 00 00 00 00 00 D7 [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:57]Read from MH i2c: E2 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: E2 17 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: E2 17 00 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [19:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:03:57]wFMCommunicate OK [19:03:57]requested_item fd.num is exist - process it [19:03:57]SAM_PROTO_GetFieldsCounters [19:03:57]wFMCommunicate request_size=4 [19:03:57]MH_SAM_APDU [19:03:57]CAPDU: 80 13 00 00 [19:03:57]Write to MH i2c: E2 08 00 5C 02 80 13 00 00 00 00 00 00 DA [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 62 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 62 00 5C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [19:03:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:58]wFMCommunicate OK [19:03:58]SAM_PROTO_GetFieldsCounters done [19:03:58]requested_item shift.num is exist - process it [19:03:58]requested_item shift.opened is exist - process it [19:03:58]req_shift_opened [19:03:58]FM_GetShiftState [19:03:58]SAM_PROTO_GetShiftState [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 13 01 00 [19:03:58]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 0E 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C4 [19:03:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:03:58]wFMCommunicate OK [19:03:58]SAM_PROTO_GetShiftState done [19:03:58]FM_GetShiftState done [19:03:58]req_shift_opened done [19:03:58]requested_item shift.open_date is exist - process it [19:03:58]req_shift_open_date [19:03:58]req_shift_open_date done [19:03:58]produce_requested_data done [19:03:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188870,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:03:58]process_action_free close_receipt [19:03:58]json_value_free [19:03:58]json_value_free done [19:03:58]process_json_proto returns [19:03:58]Send response to host [19:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188870,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:03:58]free response buf [19:03:58]execute_script done [19:03:58]execute_script returns [19:03:58]free content buf [19:03:58]Sock 8.Close socket [19:03:58]Sock 8.Thread stoped [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:34]accept exits with 9 [19:04:34]New connection [19:04:34]New thread 3066953060 created [19:04:34]Thread 3066809700 joined [19:04:34]Waiting for new connection... [19:04:34] Sock 9.Parse request [19:04:34]Sock 9.Check first char [19:04:34]Sock 9.First char is OK [19:04:34]request: POST /json_proto HTTP/1.0 [19:04:34]Method: POST [19:04:34]URL: /json_proto [19:04:34]Method is POST - this is cgi request [19:04:34]url: /json_proto [19:04:34]query_string will be loaded in cgi processing [19:04:34]execute_cgi json_proto POST (null) [19:04:34]execute_cgi path=json_proto method=POST [19:04:34]POST find Content-Length [19:04:34]Host: 172.17.42.131:8080 [19:04:34]Content-Length: 977 [19:04:34]Content-Type: application/json [19:04:34] [19:04:34]POST finish read [19:04:34]Found Content-Length = 977 [19:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:34]execute_script... [19:04:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:34]POST & json_proto [19:04:34]process_json_proto [19:04:34]json parsed OK: [19:04:34]protocol is kg_v1.0 [19:04:34]action value=close_receipt [19:04:34]process_action close_receipt [19:04:34]cmd_close_receipt [19:04:34]MH_GetDate [19:04:34]Write to MH i2c: F0 00 00 5E 02 4F [19:04:34]Write i2c OK [19:04:34]MH_I2C_Read... [19:04:34]Read from MH i2c: F0 [19:04:34]MH_I2C_Read... [19:04:34]Read from MH i2c: F0 09 00 [19:04:34]MH_I2C_Read... [19:04:34]Read from MH i2c: F0 09 00 5E 02 00 C2 48 19 67 A0 18 CA 66 CA [19:04:34]GetLastDocTimeStamp 1729710234 [19:04:34]current date 1729710274 [19:04:34]FM_GetShiftState [19:04:34]SAM_PROTO_GetShiftState [19:04:34]wFMCommunicate request_size=4 [19:04:34]MH_SAM_APDU [19:04:34]CAPDU: 80 13 01 00 [19:04:34]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [19:04:34]Write i2c OK [19:04:34]MH_I2C_Read... [19:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:34]Read from MH i2c: E2 [19:04:34]MH_I2C_Read... [19:04:34]Read from MH i2c: E2 0E 00 [19:04:34]MH_I2C_Read... [19:04:34]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C6 [19:04:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:04:34]wFMCommunicate OK [19:04:34]SAM_PROTO_GetShiftState done [19:04:34]FM_GetShiftState done [19:04:34]opened in 1729642525 [19:04:34]opened+sec_in_day 1729728925 [19:04:34]quantity*price = 600020 [19:04:34]sum+1 = 600022 [19:04:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.19 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 329 23.10.2024 19:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 79.79 сом ФМ: 0000000000965340 ФД: 188871 ФПД: 14146042279807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190435&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188871&fm=14146042279807&tin=02508201610067®Number=0000000000100030&sum=600000 [19:04:35]StoreToDocumentArchive [19:04:35]shift 462 fd 188871 [19:04:35]save to /storage/0462/doc_00188871 [19:04:35]save last doc name /storage/0462/doc_00188871 to /storage/kkm_last_doc_name [19:04:35]save OK [19:04:35]Clear old archive folders... [19:04:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:04:35]tlvbuf is 004D3210 [19:04:35]SAM_PROTO_ClearQueue [19:04:35]wFMCommunicate request_size=4 [19:04:35]MH_SAM_APDU [19:04:35]CAPDU: 80 09 00 00 [19:04:35]Write to MH i2c: E2 08 00 6C 02 80 09 00 00 00 00 00 00 E0 [19:04:35]Write i2c OK [19:04:35]MH_I2C_Read... [19:04:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:35]Read from MH i2c: E2 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 03 00 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [19:04:35]RAPDU: 90 00 [19:04:35]wFMCommunicate OK [19:04:35]SAM_PROTO_ClearQueue done [19:04:35]KKMCreateOFDPacket [19:04:35]OFDProtocolAddRootSTLVToBuf [19:04:35]FM_MakeSignedData [19:04:35]FM_MakeSignedData [19:04:35]SAM_PROTO_SignData [19:04:35]wFMCommunicate request_size=4 [19:04:35]MH_SAM_APDU [19:04:35]CAPDU: 80 0D 01 02 [19:04:35]Write to MH i2c: E2 08 00 6D 02 80 0D 01 02 00 00 00 00 E8 [19:04:35]Write i2c OK [19:04:35]MH_I2C_Read... [19:04:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:35]Read from MH i2c: E2 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 03 00 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [19:04:35]RAPDU: 90 00 [19:04:35]wFMCommunicate OK [19:04:35]wFMCommunicate request_size=255 [19:04:35]MH_SAM_APDU [19:04:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 C3 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E1 02 00 35 04 06 00 0C DD A1 D3 [19:04:35]Write to MH i2c: E2 02 01 6E 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 C3 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E1 02 00 35 04 06 00 0C DD A1 D3 00 00 CF [19:04:35]Write i2c OK [19:04:35]MH_I2C_Read... [19:04:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:36]Read from MH i2c: E2 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 03 00 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [19:04:36]RAPDU: 90 00 [19:04:36]wFMCommunicate OK [19:04:36]wFMCommunicate request_size=7 [19:04:36]MH_SAM_APDU [19:04:36]CAPDU: 80 0D 02 02 02 37 7F [19:04:36]Write to MH i2c: E2 0A 00 6F 02 80 0D 02 02 02 00 37 7F 00 00 A5 [19:04:36]Write i2c OK [19:04:36]MH_I2C_Read... [19:04:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:36]Read from MH i2c: E2 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 03 00 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [19:04:36]RAPDU: 90 00 [19:04:36]wFMCommunicate OK [19:04:36]wFMCommunicate request_size=4 [19:04:36]MH_SAM_APDU [19:04:36]CAPDU: 80 0D 03 02 [19:04:36]Write to MH i2c: E2 08 00 70 02 80 0D 03 02 00 00 00 00 ED [19:04:36]Write i2c OK [19:04:36]MH_I2C_Read... [19:04:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:36]Read from MH i2c: E2 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 0B 00 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 0B 00 70 02 00 D9 20 B9 DB 68 85 4E 58 90 00 0E [19:04:36]RAPDU: D9 20 B9 DB 68 85 4E 58 90 00 [19:04:36]wFMCommunicate OK [19:04:36]SAM_PROTO_SignData done [19:04:36]FM_MakeSignedData done [19:04:36]CreateOFDProtocolMessage [19:04:36]wFMCommunicate request_size=4 [19:04:36]MH_SAM_APDU [19:04:36]CAPDU: 80 11 00 00 [19:04:36]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [19:04:36]Write i2c OK [19:04:36]MH_I2C_Read... [19:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:36]Read from MH i2c: E2 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 17 00 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [19:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:04:36]wFMCommunicate OK [19:04:36]CreateOFDProtocolMessage done [19:04:36]OFDSenderStorePacket 188871 [19:04:36]StoreOFDPacket docnum=188871 [19:04:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 34 A6 04 01 14 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 C3 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E1 02 00 35 04 06 00 0C DD A1 D3 37 7F D9 20 B9 DB 68 85 4E 58 [19:04:36]CheckFolder [19:04:36]dirname=/storage/ofd_packets [19:04:36]CheckFolder done [19:04:36]ProducePacketName [19:04:36]name=ofd_packets/00188871 [19:04:36]NVStorageSaveData ofd_packets/00188871 [19:04:36]File name is /storage/ofd_packets/00188871 [19:04:36]Write 298 bytes [19:04:36]NVStorageSaveData done [19:04:36]OFDSenderStorePacket done [19:04:36]KKMCreateOFDPacket done [19:04:36]NVStorageSaveData kkm_last_timestamp [19:04:36]File name is /storage/kkm_last_timestamp [19:04:36]Write 4 bytes [19:04:36]NVStorageSaveData done [19:04:36]ExternCall_PrintAddStr [19:04:36]wPrintStart [19:04:36]Write to MH i2c: 01 00 00 72 02 74 [19:04:36]Write i2c OK [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: 01 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: 01 07 00 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [19:04:36]RasterBufferAndPrint [19:04:36]line Счет N : (1)210933 [19:04:36]line ИНН: 02508201610067 [19:04:36]line Контрольно-Кассовый Чек [19:04:36]line ПРОДАЖА [19:04:36]line ТРК (МРК, ГНК) : 51 [19:04:36]line Товар: 2710194210 [19:04:36]line ДТ-К-5 [19:04:36]line 79.790 * 75.20 [19:04:36]line = 6000.21 [19:04:36]line НДС 12% НСП 1% [19:04:36]line > о реализуемом товаре [19:04:36]line ОКРУГЛЕНИЕ: -0.21 [19:04:36]line ИТОГО: 6000.00 [19:04:36]line Внесено: 6000.00 [19:04:36]line СДАЧА: 0.00 [19:04:36]line НСП 1% : 53.10 [19:04:36]line НДС 12% : 637.19 [19:04:36]line Наличными: 6000.00 [19:04:36]line Безнал.: 0.00 [19:04:36]line Место: АЗС № 86 "Партнер Нефть" [19:04:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:04:36]line СНО: Общий режим [19:04:36]line Чек 329 23.10.2024 19:04 [19:04:36]line Смена: 462 ФФД: 1.0 [19:04:36]line ЗНМ: 0300000155 [19:04:36]line РНМ: 0000000000100030 [19:04:36]line Версия ККМ: 001 [19:04:36]line [19:04:36]line Дисконтная программа [19:04:36]line ДТ [19:04:36]line номер 86 [19:04:36]line сэкономлено 79.79 сом [19:04:36]line ФМ: 0000000000965340 [19:04:36]line ФД: 188871 [19:04:36]line ФПД: 14146042279807 [19:04:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190435&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188871&fm=14146042279807&tin=02508201610067®Number=0000000000100030&sum=600000 [19:04:36]OFD Sender: Processing packet 188871 [packets to send 1062, broken 1061] [19:04:36]ProducePacketName [19:04:36]name=ofd_packets/00188871 [19:04:36]OFD Sender: To server: pG, [19:04:36]CommunicateWithHost lk.salyk.kg:30040 [19:04:36]ConnectInit lk.salyk.kg [19:04:36]written 0, free lines is 4095 [19:04:36]Connected sock=11 [19:04:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 34 A6 04 01 14 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 C3 48 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E1 02 00 35 04 06 00 0C DD A1 D3 37 7F D9 20 B9 DB 68 85 4E 58 [19:04:36]Write to MH i2c: 01 00 00 A2 02 A4 [19:04:36]Write i2c OK [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: 01 [19:04:36]MH_I2C_Read... [19:04:37]Read from MH i2c: 01 07 00 [19:04:37]MH_I2C_Read... [19:04:37]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 E2 0B 98 [19:04:37]RasterBufferAndPrint [19:04:37]line [19:04:37]line [19:04:37]line [19:04:37]line [19:04:37]line [19:04:37]written 0, free lines is 3044 [19:04:37]MH_Cut [19:04:37]Write to MH i2c: D1 01 00 A9 02 01 7D [19:04:37]Write i2c OK [19:04:37]MH_I2C_Read... [19:04:37]Read from MH i2c: D1 [19:04:37]MH_I2C_Read... [19:04:37]Read from MH i2c: D1 01 00 [19:04:37]MH_I2C_Read... [19:04:37]Read from MH i2c: D1 01 00 A9 02 00 7C [19:04:37]Write to MH i2c: 01 00 00 AA 02 AC [19:04:37]Write i2c OK [19:04:37]MH_I2C_Read... [19:04:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3B 3A 47 00 56 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E1 02 00 F4 03 04 00 AD F2 18 67 B6 04 01 00 00 8B E4 F6 51 76 A5 18 D9 [19:04:37]CommunicateWithHost err = 0 [19:04:37]CheckOFDResponse [19:04:37]1017 (14) - 77093643461234 [19:04:37]1041 (16) - 0000000000965340 [19:04:37]1040 (4) - 188871 [19:04:37]1012 (4) - 23.10.2024 12:57 [19:04:37]1206 (1) - 0 [19:04:37]OFD Sender: Remove packet 188871 [19:04:37]ProducePacketName [19:04:37]name=ofd_packets/00188871 [19:04:37]NVStorageDeleteData [19:04:37]OFD Sender: No OFD packet to send [19:04:38]*** Cut start [19:04:38]*** Partial cut [19:04:38]*** CUTSNS_PIN = 1 [19:04:38]*** CUTSNS_PIN = 0 [19:04:38]*** Brake cut motor [19:04:38]Read from MH i2c: 01 [19:04:38]MH_I2C_Read... [19:04:39]*** Stop cut motor [19:04:39]*** Cut end [19:04:39]Read from MH i2c: 01 07 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 FF 0F C1 [19:04:39]process_action close_receipt done [19:04:39]requested_data is exist [19:04:39]produce_requested_data [19:04:39]requested_item fm.sn is exist - process it [19:04:39]wFMCommunicate request_size=4 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 11 00 00 [19:04:39]Write to MH i2c: E2 08 00 AB 02 80 11 00 00 00 00 00 00 27 [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 17 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 17 00 AB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [19:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:04:39]wFMCommunicate OK [19:04:39]requested_item fd.num is exist - process it [19:04:39]SAM_PROTO_GetFieldsCounters [19:04:39]wFMCommunicate request_size=4 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 13 00 00 [19:04:39]Write to MH i2c: E2 08 00 AC 02 80 13 00 00 00 00 00 00 2A [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 62 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 62 00 AC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:04:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:39]wFMCommunicate OK [19:04:39]SAM_PROTO_GetFieldsCounters done [19:04:39]requested_item shift.num is exist - process it [19:04:39]requested_item shift.opened is exist - process it [19:04:39]req_shift_opened [19:04:39]FM_GetShiftState [19:04:39]SAM_PROTO_GetShiftState [19:04:39]wFMCommunicate request_size=4 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 13 01 00 [19:04:39]Write to MH i2c: E2 08 00 AD 02 80 13 01 00 00 00 00 00 2C [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 0E 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 0E 00 AD 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 14 [19:04:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:04:39]wFMCommunicate OK [19:04:39]SAM_PROTO_GetShiftState done [19:04:39]FM_GetShiftState done [19:04:39]req_shift_opened done [19:04:39]requested_item shift.open_date is exist - process it [19:04:39]req_shift_open_date [19:04:39]req_shift_open_date done [19:04:39]produce_requested_data done [19:04:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188871,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:04:39]process_action_free close_receipt [19:04:39]json_value_free [19:04:39]json_value_free done [19:04:39]process_json_proto returns [19:04:39]Send response to host [19:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188871,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:04:39]free response buf [19:04:39]execute_script done [19:04:39]execute_script returns [19:04:39]free content buf [19:04:39]Sock 9.Close socket [19:04:39]Sock 9.Thread stoped [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]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:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:50]accept exits with 8 [19:22:50]New connection [19:22:50]New thread 3066809700 created [19:22:50]Thread 3066953060 joined [19:22:50]Waiting for new connection... [19:22:50] Sock 8.Parse request [19:22:50]Sock 8.Check first char [19:22:50]Sock 8.First char is OK [19:22:50]request: POST /json_proto HTTP/1.0 [19:22:50]Method: POST [19:22:50]URL: /json_proto [19:22:50]Method is POST - this is cgi request [19:22:50]url: /json_proto [19:22:50]query_string will be loaded in cgi processing [19:22:50]execute_cgi json_proto POST (null) [19:22:50]execute_cgi path=json_proto method=POST [19:22:50]POST find Content-Length [19:22:50]Host: 172.17.42.131:8080 [19:22:50]Content-Length: 677 [19:22:50]Content-Type: application/json [19:22:50] [19:22:50]POST finish read [19:22:50]Found Content-Length = 677 [19:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:50]execute_script... [19: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 : (1)210935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:50]POST & json_proto [19:22:50]process_json_proto [19:22:50]json parsed OK: [19:22:50]protocol is kg_v1.0 [19:22:50]action value=close_receipt [19:22:50]process_action close_receipt [19:22:50]cmd_close_receipt [19:22:50]MH_GetDate [19:22:50]Write to MH i2c: F0 00 00 AE 02 9F [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: F0 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: F0 09 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: F0 09 00 AE 02 00 0B 4D 19 67 A0 18 CA 66 68 [19:22:50]GetLastDocTimeStamp 1729710275 [19:22:50]current date 1729711371 [19:22:50]FM_GetShiftState [19:22:50]SAM_PROTO_GetShiftState [19:22:50]wFMCommunicate request_size=4 [19:22:50]MH_SAM_APDU [19:22:50]CAPDU: 80 13 01 00 [19:22:50]Write to MH i2c: E2 08 00 AF 02 80 13 01 00 00 00 00 00 2E [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:50]Read from MH i2c: E2 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 0E 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 0E 00 AF 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 16 [19:22:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:22:50]wFMCommunicate OK [19:22:50]SAM_PROTO_GetShiftState done [19:22:50]FM_GetShiftState done [19:22:50]opened in 1729642525 [19:22:50]opened+sec_in_day 1729728925 [19:22:50]quantity*price = 65026 [19:22:50]sum+1 = 65028 [19:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 330 23.10.2024 19:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188872 ФПД: 238036854619884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192251&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188872&fm=238036854619884&tin=02508201610067®Number=0000000000100030&sum=65000 [19:22:51]StoreToDocumentArchive [19:22:51]shift 462 fd 188872 [19:22:51]save to /storage/0462/doc_00188872 [19:22:51]save last doc name /storage/0462/doc_00188872 to /storage/kkm_last_doc_name [19:22:51]save OK [19:22:51]Clear old archive folders... [19:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:51]tlvbuf is 004DAF30 [19:22:51]SAM_PROTO_ClearQueue [19:22:51]wFMCommunicate request_size=4 [19:22:51]MH_SAM_APDU [19:22:51]CAPDU: 80 09 00 00 [19:22:51]Write to MH i2c: E2 08 00 BC 02 80 09 00 00 00 00 00 00 30 [19:22:51]Write i2c OK [19:22:51]MH_I2C_Read... [19:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:51]Read from MH i2c: E2 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: E2 03 00 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [19:22:51]RAPDU: 90 00 [19:22:51]wFMCommunicate OK [19:22:51]SAM_PROTO_ClearQueue done [19:22:51]KKMCreateOFDPacket [19:22:51]OFDProtocolAddRootSTLVToBuf [19:22:51]FM_MakeSignedData [19:22:51]FM_MakeSignedData [19:22:51]SAM_PROTO_SignData [19:22:51]wFMCommunicate request_size=4 [19:22:51]MH_SAM_APDU [19:22:51]CAPDU: 80 0D 01 02 [19:22:51]Write to MH i2c: E2 08 00 BD 02 80 0D 01 02 00 00 00 00 38 [19:22:51]Write i2c OK [19:22:51]MH_I2C_Read... [19:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:51]Read from MH i2c: E2 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: E2 03 00 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [19:22:51]RAPDU: 90 00 [19:22:51]wFMCommunicate OK [19:22:51]wFMCommunicate request_size=255 [19:22:51]MH_SAM_APDU [19:22:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 0B 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E1 02 00 35 04 06 00 D8 [19:22:51]Write to MH i2c: E2 02 01 BE 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 0B 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E1 02 00 35 04 06 00 D8 00 00 13 [19:22:51]Write i2c OK [19:22:51]MH_I2C_Read... [19:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:51]Read from MH i2c: E2 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: E2 03 00 [19:22:51]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [19:22:52]RAPDU: 90 00 [19:22:52]wFMCommunicate OK [19:22:52]wFMCommunicate request_size=10 [19:22:52]MH_SAM_APDU [19:22:52]CAPDU: 80 0D 02 02 05 7E 46 29 BE EC [19:22:52]Write to MH i2c: E2 0D 00 BF 02 80 0D 02 02 05 00 7E 46 29 BE EC 00 00 DC [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:52]Read from MH i2c: E2 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 03 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [19:22:52]RAPDU: 90 00 [19:22:52]wFMCommunicate OK [19:22:52]wFMCommunicate request_size=4 [19:22:52]MH_SAM_APDU [19:22:52]CAPDU: 80 0D 03 02 [19:22:52]Write to MH i2c: E2 08 00 C0 02 80 0D 03 02 00 00 00 00 3D [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:52]Read from MH i2c: E2 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 0B 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 0B 00 C0 02 00 AA 7E 85 91 5C F5 B1 F8 90 00 76 [19:22:52]RAPDU: AA 7E 85 91 5C F5 B1 F8 90 00 [19:22:52]wFMCommunicate OK [19:22:52]SAM_PROTO_SignData done [19:22:52]FM_MakeSignedData done [19:22:52]CreateOFDProtocolMessage [19:22:52]wFMCommunicate request_size=4 [19:22:52]MH_SAM_APDU [19:22:52]CAPDU: 80 11 00 00 [19:22:52]Write to MH i2c: E2 08 00 C1 02 80 11 00 00 00 00 00 00 3D [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:52]Read from MH i2c: E2 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 17 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 17 00 C1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [19:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:22:52]wFMCommunicate OK [19:22:52]CreateOFDProtocolMessage done [19:22:52]OFDSenderStorePacket 188872 [19:22:52]StoreOFDPacket docnum=188872 [19:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0D BB 07 01 D0 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 0B 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E1 02 00 35 04 06 00 D8 7E 46 29 BE EC AA 7E 85 91 5C F5 B1 F8 [19:22:52]CheckFolder [19:22:52]dirname=/storage/ofd_packets [19:22:52]CheckFolder done [19:22:52]ProducePacketName [19:22:52]name=ofd_packets/00188872 [19:22:52]NVStorageSaveData ofd_packets/00188872 [19:22:52]File name is /storage/ofd_packets/00188872 [19:22:52]Write 301 bytes [19:22:52]NVStorageSaveData done [19:22:52]OFDSenderStorePacket done [19:22:52]KKMCreateOFDPacket done [19:22:52]NVStorageSaveData kkm_last_timestamp [19:22:52]File name is /storage/kkm_last_timestamp [19:22:52]Write 4 bytes [19:22:52]NVStorageSaveData done [19:22:52]ExternCall_PrintAddStr [19:22:52]wPrintStart [19:22:52]Write to MH i2c: 01 00 00 C2 02 C4 [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: 01 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: 01 07 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: 01 07 00 C2 02 00 00 00 00 00 FF 0F D9 [19:22:52]RasterBufferAndPrint [19:22:52]line Счет N : (1)210935 [19:22:52]line ИНН: 02508201610067 [19:22:52]line Контрольно-Кассовый Чек [19:22:52]line ПРОДАЖА [19:22:52]line ТРК (МРК, ГНК) : 42 [19:22:52]line Товар: 2710124130 [19:22:52]line Аи-92-К-3 [19:22:52]line 9.720 * 66.90 [19:22:52]line = 650.27 [19:22:52]line НДС 12% НСП 1% [19:22:52]line > о реализуемом товаре [19:22:52]line ОКРУГЛЕНИЕ: -0.27 [19:22:52]line ИТОГО: 650.00 [19:22:52]line Внесено: 650.00 [19:22:52]line СДАЧА: 0.00 [19:22:52]line НСП 1% : 5.75 [19:22:52]line НДС 12% : 69.05 [19:22:52]line Наличными: 650.00 [19:22:52]line Безнал.: 0.00 [19:22:52]line Место: АЗС № 86 "Партнер Нефть" [19:22:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:22:52]line СНО: Общий режим [19:22:52]line Чек 330 23.10.2024 19:22 [19:22:52]line Смена: 462 ФФД: 1.0 [19:22:52]line ЗНМ: 0300000155 [19:22:52]line РНМ: 0000000000100030 [19:22:52]line Версия ККМ: 001 [19:22:52]line ФМ: 0000000000965340 [19:22:52]line ФД: 188872 [19:22:52]line ФПД: 238036854619884 [19:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192251&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188872&fm=238036854619884&tin=02508201610067®Number=0000000000100030&sum=65000 [19:22:52]written 0, free lines is 4095 [19:22:52]OFD Sender: Processing packet 188872 [packets to send 1062, broken 1061] [19:22:52]ProducePacketName [19:22:52]name=ofd_packets/00188872 [19:22:52]OFD Sender: To server: pG, [19:22:52]CommunicateWithHost lk.salyk.kg:30040 [19:22:52]ConnectInit lk.salyk.kg [19:22:52]Connected sock=10 [19:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0D BB 07 01 D0 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 0B 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E1 02 00 35 04 06 00 D8 7E 46 29 BE EC AA 7E 85 91 5C F5 B1 F8 [19:22:52]Write to MH i2c: 01 00 00 ED 02 EF [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: 01 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: 01 07 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 54 0C 56 [19:22:52]RasterBufferAndPrint [19:22:52]line [19:22:52]line [19:22:52]line [19:22:52]line [19:22:52]line [19:22:52]written 0, free lines is 3160 [19:22:52]MH_Cut [19:22:52]Write to MH i2c: D1 01 00 F4 02 01 C8 [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: D1 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: D1 01 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: D1 01 00 F4 02 00 C7 [19:22:52]Write to MH i2c: 01 00 00 F5 02 F7 [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 16 72 47 00 AC 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 36 35 33 34 30 10 04 04 00 C8 E1 02 00 F4 03 04 00 F5 F6 18 67 B6 04 01 00 00 BB 49 2C 77 26 23 D3 70 [19:22:52]CommunicateWithHost err = 0 [19:22:52]CheckOFDResponse [19:22:52]1017 (14) - 77093643461234 [19:22:52]1041 (16) - 0000000000965340 [19:22:52]1040 (4) - 188872 [19:22:52]1012 (4) - 23.10.2024 13:15 [19:22:52]1206 (1) - 0 [19:22:52]OFD Sender: Remove packet 188872 [19:22:52]ProducePacketName [19:22:52]name=ofd_packets/00188872 [19:22:52]NVStorageDeleteData [19:22:53]OFD Sender: No OFD packet to send [19:22:53]*** Cut start [19:22:53]*** Partial cut [19:22:53]*** CUTSNS_PIN = 1 [19:22:53]*** CUTSNS_PIN = 0 [19:22:54]*** Brake cut motor [19:22:54]Read from MH i2c: 01 [19:22:54]MH_I2C_Read... [19:22:54]*** Stop cut motor [19:22:54]*** Cut end [19:22:54]Read from MH i2c: 01 07 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 FF 0F 0C [19:22:54]process_action close_receipt done [19:22:54]requested_data is exist [19:22:54]produce_requested_data [19:22:54]requested_item fm.sn is exist - process it [19:22:54]wFMCommunicate request_size=4 [19:22:54]MH_SAM_APDU [19:22:54]CAPDU: 80 11 00 00 [19:22:54]Write to MH i2c: E2 08 00 F6 02 80 11 00 00 00 00 00 00 72 [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:54]Read from MH i2c: E2 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 17 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 17 00 F6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [19:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:22:54]wFMCommunicate OK [19:22:54]requested_item fd.num is exist - process it [19:22:54]SAM_PROTO_GetFieldsCounters [19:22:54]wFMCommunicate request_size=4 [19:22:54]MH_SAM_APDU [19:22:54]CAPDU: 80 13 00 00 [19:22:54]Write to MH i2c: E2 08 00 F7 02 80 13 00 00 00 00 00 00 75 [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:54]Read from MH i2c: E2 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 62 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 62 00 F7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [19:22:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:54]wFMCommunicate OK [19:22:54]SAM_PROTO_GetFieldsCounters done [19:22:54]requested_item shift.num is exist - process it [19:22:54]requested_item shift.opened is exist - process it [19:22:54]req_shift_opened [19:22:54]FM_GetShiftState [19:22:54]SAM_PROTO_GetShiftState [19:22:54]wFMCommunicate request_size=4 [19:22:54]MH_SAM_APDU [19:22:54]CAPDU: 80 13 01 00 [19:22:54]Write to MH i2c: E2 08 00 F8 02 80 13 01 00 00 00 00 00 77 [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:54]Read from MH i2c: E2 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 0E 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 0E 00 F8 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5F [19:22:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:22:54]wFMCommunicate OK [19:22:54]SAM_PROTO_GetShiftState done [19:22:54]FM_GetShiftState done [19:22:54]req_shift_opened done [19:22:54]requested_item shift.open_date is exist - process it [19:22:54]req_shift_open_date [19:22:54]req_shift_open_date done [19:22:54]produce_requested_data done [19:22:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188872,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:22:54]process_action_free close_receipt [19:22:54]json_value_free [19:22:54]json_value_free done [19:22:54]process_json_proto returns [19:22:54]Send response to host [19:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188872,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:22:54]free response buf [19:22:54]execute_script done [19:22:54]execute_script returns [19:22:54]free content buf [19:22:54]Sock 8.Close socket [19:22:54]Sock 8.Thread stoped [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]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:44]accept exits with 9 [19:25:44]New connection [19:25:44]New thread 3066953060 created [19:25:44]Thread 3066809700 joined [19:25:44]Waiting for new connection... [19:25:44] Sock 9.Parse request [19:25:44]Sock 9.Check first char [19:25:44]Sock 9.First char is OK [19:25:44]request: POST /json_proto HTTP/1.0 [19:25:44]Method: POST [19:25:44]URL: /json_proto [19:25:44]Method is POST - this is cgi request [19:25:44]url: /json_proto [19:25:44]query_string will be loaded in cgi processing [19:25:44]execute_cgi json_proto POST (null) [19:25:44]execute_cgi path=json_proto method=POST [19:25:44]POST find Content-Length [19:25:44]Host: 172.17.42.131:8080 [19:25:44]Content-Length: 682 [19:25:44]Content-Type: application/json [19:25:44] [19:25:44]POST finish read [19:25:44]Found Content-Length = 682 [19:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:44]execute_script... [19:25:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:44]POST & json_proto [19:25:44]process_json_proto [19:25:44]json parsed OK: [19:25:44]protocol is kg_v1.0 [19:25:44]action value=close_receipt [19:25:44]process_action close_receipt [19:25:44]cmd_close_receipt [19:25:44]MH_GetDate [19:25:44]Write to MH i2c: F0 00 00 F9 02 EA [19:25:44]Write i2c OK [19:25:44]MH_I2C_Read... [19:25:44]Read from MH i2c: F0 [19:25:44]MH_I2C_Read... [19:25:44]Read from MH i2c: F0 09 00 [19:25:44]MH_I2C_Read... [19:25:44]Read from MH i2c: F0 09 00 F9 02 00 B9 4D 19 67 A0 18 CA 66 61 [19:25:44]GetLastDocTimeStamp 1729711371 [19:25:44]current date 1729711545 [19:25:44]FM_GetShiftState [19:25:44]SAM_PROTO_GetShiftState [19:25:44]wFMCommunicate request_size=4 [19:25:44]MH_SAM_APDU [19:25:44]CAPDU: 80 13 01 00 [19:25:44]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [19:25:44]Write i2c OK [19:25:44]MH_I2C_Read... [19:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:44]Read from MH i2c: E2 [19:25:44]MH_I2C_Read... [19:25:44]Read from MH i2c: E2 0E 00 [19:25:44]MH_I2C_Read... [19:25:44]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 61 [19:25:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:25:44]wFMCommunicate OK [19:25:44]SAM_PROTO_GetShiftState done [19:25:44]FM_GetShiftState done [19:25:44]opened in 1729642525 [19:25:44]opened+sec_in_day 1729728925 [19:25:44]quantity*price = 200043 [19:25:44]sum+1 = 200044 [19:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 331 23.10.2024 19:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188873 ФПД: 141623629747827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192545&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188873&fm=141623629747827&tin=02508201610067®Number=0000000000100030&sum=200000 [19:25:46]StoreToDocumentArchive [19:25:46]shift 462 fd 188873 [19:25:46]save to /storage/0462/doc_00188873 [19:25:46]save last doc name /storage/0462/doc_00188873 to /storage/kkm_last_doc_name [19:25:46]save OK [19:25:46]Clear old archive folders... [19:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:46]tlvbuf is 004DA530 [19:25:46]SAM_PROTO_ClearQueue [19:25:46]wFMCommunicate request_size=4 [19:25:46]MH_SAM_APDU [19:25:46]CAPDU: 80 09 00 00 [19:25:46]Write to MH i2c: E2 08 00 07 03 80 09 00 00 00 00 00 00 7C [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:46]Read from MH i2c: E2 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [19:25:46]RAPDU: 90 00 [19:25:46]wFMCommunicate OK [19:25:46]SAM_PROTO_ClearQueue done [19:25:46]KKMCreateOFDPacket [19:25:46]OFDProtocolAddRootSTLVToBuf [19:25:46]FM_MakeSignedData [19:25:46]FM_MakeSignedData [19:25:46]SAM_PROTO_SignData [19:25:46]wFMCommunicate request_size=4 [19:25:46]MH_SAM_APDU [19:25:46]CAPDU: 80 0D 01 02 [19:25:46]Write to MH i2c: E2 08 00 08 03 80 0D 01 02 00 00 00 00 84 [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:46]Read from MH i2c: E2 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [19:25:46]RAPDU: 90 00 [19:25:46]wFMCommunicate OK [19:25:46]wFMCommunicate request_size=255 [19:25:46]MH_SAM_APDU [19:25:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 B9 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E1 02 00 35 04 06 00 80 [19:25:46]Write to MH i2c: E2 02 01 09 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 B9 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E1 02 00 35 04 06 00 80 00 00 6C [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:46]Read from MH i2c: E2 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [19:25:46]RAPDU: 90 00 [19:25:46]wFMCommunicate OK [19:25:46]wFMCommunicate request_size=10 [19:25:46]MH_SAM_APDU [19:25:46]CAPDU: 80 0D 02 02 05 CE 52 24 96 73 [19:25:46]Write to MH i2c: E2 0D 00 0A 03 80 0D 02 02 05 00 CE 52 24 96 73 00 00 DE [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:46]Read from MH i2c: E2 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [19:25:46]RAPDU: 90 00 [19:25:46]wFMCommunicate OK [19:25:46]wFMCommunicate request_size=4 [19:25:46]MH_SAM_APDU [19:25:46]CAPDU: 80 0D 03 02 [19:25:46]Write to MH i2c: E2 08 00 0B 03 80 0D 03 02 00 00 00 00 89 [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:46]Read from MH i2c: E2 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 0B 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 0B 00 0B 03 00 F4 DA 7C C9 77 6A 7F 60 90 00 5D [19:25:46]RAPDU: F4 DA 7C C9 77 6A 7F 60 90 00 [19:25:46]wFMCommunicate OK [19:25:46]SAM_PROTO_SignData done [19:25:46]FM_MakeSignedData done [19:25:46]CreateOFDProtocolMessage [19:25:46]wFMCommunicate request_size=4 [19:25:46]MH_SAM_APDU [19:25:46]CAPDU: 80 11 00 00 [19:25:46]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:46]Read from MH i2c: E2 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 17 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 17 00 0C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [19:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:25:46]wFMCommunicate OK [19:25:46]CreateOFDProtocolMessage done [19:25:46]OFDSenderStorePacket 188873 [19:25:46]StoreOFDPacket docnum=188873 [19:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 12 07 01 6A F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 B9 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E1 02 00 35 04 06 00 80 CE 52 24 96 73 F4 DA 7C C9 77 6A 7F 60 [19:25:46]CheckFolder [19:25:46]dirname=/storage/ofd_packets [19:25:46]CheckFolder done [19:25:46]ProducePacketName [19:25:46]name=ofd_packets/00188873 [19:25:46]NVStorageSaveData ofd_packets/00188873 [19:25:46]File name is /storage/ofd_packets/00188873 [19:25:46]Write 301 bytes [19:25:46]NVStorageSaveData done [19:25:46]OFDSenderStorePacket done [19:25:46]KKMCreateOFDPacket done [19:25:46]NVStorageSaveData kkm_last_timestamp [19:25:46]File name is /storage/kkm_last_timestamp [19:25:46]Write 4 bytes [19:25:46]NVStorageSaveData done [19:25:46]ExternCall_PrintAddStr [19:25:46]wPrintStart [19:25:46]Write to MH i2c: 01 00 00 0D 03 10 [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: 01 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: 01 07 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 FF 0F 25 [19:25:46]RasterBufferAndPrint [19:25:46]line Счет N : (1)210937 [19:25:46]line ИНН: 02508201610067 [19:25:46]line Контрольно-Кассовый Чек [19:25:46]line ПРОДАЖА [19:25:46]line ТРК (МРК, ГНК) : 23 [19:25:46]line Товар: 2710124500 [19:25:46]line Аи-95-К-3 [19:25:46]line 26.960 * 74.20 [19:25:46]line = 2000.43 [19:25:46]line НДС 12% НСП 1% [19:25:46]line > о реализуемом товаре [19:25:46]line ОКРУГЛЕНИЕ: -0.43 [19:25:46]line ИТОГО: 2000.00 [19:25:46]line Внесено: 2000.00 [19:25:46]line СДАЧА: 0.00 [19:25:46]line НСП 1% : 17.70 [19:25:46]line НДС 12% : 212.43 [19:25:46]line Наличными: 2000.00 [19:25:46]line Безнал.: 0.00 [19:25:46]line Место: АЗС № 86 "Партнер Нефть" [19:25:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:25:46]line СНО: Общий режим [19:25:46]line Чек 331 23.10.2024 19:25 [19:25:46]line Смена: 462 ФФД: 1.0 [19:25:46]line ЗНМ: 0300000155 [19:25:46]line РНМ: 0000000000100030 [19:25:46]line Версия ККМ: 001 [19:25:46]line ФМ: 0000000000965340 [19:25:46]line ФД: 188873 [19:25:46]line ФПД: 141623629747827 [19:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192545&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188873&fm=141623629747827&tin=02508201610067®Number=0000000000100030&sum=200000 [19:25:46]OFD Sender: Processing packet 188873 [packets to send 1062, broken 1061] [19:25:46]ProducePacketName [19:25:46]name=ofd_packets/00188873 [19:25:46]OFD Sender: To server: pG, [19:25:46]CommunicateWithHost lk.salyk.kg:30040 [19:25:46]ConnectInit lk.salyk.kg [19:25:46]written 0, free lines is 4095 [19:25:47]Connected sock=10 [19:25:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 12 07 01 6A F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 B9 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E1 02 00 35 04 06 00 80 CE 52 24 96 73 F4 DA 7C C9 77 6A 7F 60 [19:25:47]Write to MH i2c: 01 00 00 38 03 3B [19:25:47]Write i2c OK [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: 01 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: 01 07 00 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 52 0C A0 [19:25:47]RasterBufferAndPrint [19:25:47]line [19:25:47]line [19:25:47]line [19:25:47]line [19:25:47]line [19:25:47]written 0, free lines is 3158 [19:25:47]MH_Cut [19:25:47]Write to MH i2c: D1 01 00 3F 03 01 14 [19:25:47]Write i2c OK [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: D1 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: D1 01 00 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: D1 01 00 3F 03 00 13 [19:25:47]Write to MH i2c: 01 00 00 40 03 43 [19:25:47]Write i2c OK [19:25:47]MH_I2C_Read... [19:25:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E F2 47 00 6F 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E1 02 00 F4 03 04 00 A3 F7 18 67 B6 04 01 00 00 F0 46 84 5D 8E 38 DA 51 [19:25:47]CommunicateWithHost err = 0 [19:25:47]CheckOFDResponse [19:25:47]1017 (14) - 77093643461234 [19:25:47]1041 (16) - 0000000000965340 [19:25:47]1040 (4) - 188873 [19:25:47]1012 (4) - 23.10.2024 13:18 [19:25:47]1206 (1) - 0 [19:25:47]OFD Sender: Remove packet 188873 [19:25:47]ProducePacketName [19:25:47]name=ofd_packets/00188873 [19:25:47]NVStorageDeleteData [19:25:48]OFD Sender: No OFD packet to send [19:25:48]*** Cut start [19:25:48]*** Partial cut [19:25:48]*** CUTSNS_PIN = 1 [19:25:48]*** CUTSNS_PIN = 0 [19:25:49]*** Brake cut motor [19:25:49]Read from MH i2c: 01 [19:25:49]MH_I2C_Read... [19:25:49]*** Stop cut motor [19:25:49]*** Cut end [19:25:49]Read from MH i2c: 01 07 00 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 FF 0F 58 [19:25:49]process_action close_receipt done [19:25:49]requested_data is exist [19:25:49]produce_requested_data [19:25:49]requested_item fm.sn is exist - process it [19:25:49]wFMCommunicate request_size=4 [19:25:49]MH_SAM_APDU [19:25:49]CAPDU: 80 11 00 00 [19:25:49]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [19:25:49]Write i2c OK [19:25:49]MH_I2C_Read... [19:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:49]Read from MH i2c: E2 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 17 00 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [19:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:25:49]wFMCommunicate OK [19:25:49]requested_item fd.num is exist - process it [19:25:49]SAM_PROTO_GetFieldsCounters [19:25:49]wFMCommunicate request_size=4 [19:25:49]MH_SAM_APDU [19:25:49]CAPDU: 80 13 00 00 [19:25:49]Write to MH i2c: E2 08 00 42 03 80 13 00 00 00 00 00 00 C1 [19:25:49]Write i2c OK [19:25:49]MH_I2C_Read... [19:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:49]Read from MH i2c: E2 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 62 00 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 62 00 42 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [19:25:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:49]wFMCommunicate OK [19:25:49]SAM_PROTO_GetFieldsCounters done [19:25:49]requested_item shift.num is exist - process it [19:25:49]requested_item shift.opened is exist - process it [19:25:49]req_shift_opened [19:25:49]FM_GetShiftState [19:25:49]SAM_PROTO_GetShiftState [19:25:49]wFMCommunicate request_size=4 [19:25:49]MH_SAM_APDU [19:25:49]CAPDU: 80 13 01 00 [19:25:49]Write to MH i2c: E2 08 00 43 03 80 13 01 00 00 00 00 00 C3 [19:25:49]Write i2c OK [19:25:49]MH_I2C_Read... [19:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:49]Read from MH i2c: E2 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 0E 00 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 0E 00 43 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AB [19:25:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:25:49]wFMCommunicate OK [19:25:49]SAM_PROTO_GetShiftState done [19:25:49]FM_GetShiftState done [19:25:49]req_shift_opened done [19:25:49]requested_item shift.open_date is exist - process it [19:25:49]req_shift_open_date [19:25:49]req_shift_open_date done [19:25:49]produce_requested_data done [19:25:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188873,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:25:49]process_action_free close_receipt [19:25:49]json_value_free [19:25:49]json_value_free done [19:25:49]process_json_proto returns [19:25:49]Send response to host [19:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188873,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:25:49]free response buf [19:25:49]execute_script done [19:25:49]execute_script returns [19:25:49]free content buf [19:25:49]Sock 9.Close socket [19:25:49]Sock 9.Thread stoped [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:54]accept exits with 8 [19:26:54]New connection [19:26:54]New thread 3066809700 created [19:26:54]Thread 3066953060 joined [19:26:54]Waiting for new connection... [19:26:54] Sock 8.Parse request [19:26:54]Sock 8.Check first char [19:26:54]Sock 8.First char is OK [19:26:54]request: POST /json_proto HTTP/1.0 [19:26:54]Method: POST [19:26:54]URL: /json_proto [19:26:54]Method is POST - this is cgi request [19:26:54]url: /json_proto [19:26:54]query_string will be loaded in cgi processing [19:26:54]execute_cgi json_proto POST (null) [19:26:54]execute_cgi path=json_proto method=POST [19:26:54]POST find Content-Length [19:26:54]Host: 172.17.42.131:8080 [19:26:54]Content-Length: 688 [19:26:54]Content-Type: application/json [19:26:54] [19:26:54]POST finish read [19:26:54]Found Content-Length = 688 [19:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 77.730, "sum" : 6000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:54]execute_script... [19:26:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 77.730, "sum" : 6000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:54]POST & json_proto [19:26:54]process_json_proto [19:26:54]json parsed OK: [19:26:54]protocol is kg_v1.0 [19:26:54]action value=close_receipt [19:26:54]process_action close_receipt [19:26:54]cmd_close_receipt [19:26:54]MH_GetDate [19:26:54]Write to MH i2c: F0 00 00 44 03 36 [19:26:54]Write i2c OK [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: F0 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: F0 09 00 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: F0 09 00 44 03 00 FE 4D 19 67 A0 18 CA 66 F2 [19:26:54]GetLastDocTimeStamp 1729711545 [19:26:54]current date 1729711614 [19:26:54]FM_GetShiftState [19:26:54]SAM_PROTO_GetShiftState [19:26:54]wFMCommunicate request_size=4 [19:26:54]MH_SAM_APDU [19:26:54]CAPDU: 80 13 01 00 [19:26:54]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [19:26:54]Write i2c OK [19:26:54]MH_I2C_Read... [19:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:54]Read from MH i2c: E2 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 0E 00 [19:26:54]MH_I2C_Read... [19:26:54]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AD [19:26:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:26:54]wFMCommunicate OK [19:26:54]SAM_PROTO_GetShiftState done [19:26:54]FM_GetShiftState done [19:26:54]opened in 1729642525 [19:26:54]opened+sec_in_day 1729728925 [19:26:54]quantity*price = 600075 [19:26:54]sum+1 = 600077 [19:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 332 23.10.2024 19:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188874 ФПД: 83315349435748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188874&fm=83315349435748&tin=02508201610067®Number=0000000000100030&sum=600000 [19:26:55]StoreToDocumentArchive [19:26:55]shift 462 fd 188874 [19:26:55]save to /storage/0462/doc_00188874 [19:26:55]save last doc name /storage/0462/doc_00188874 to /storage/kkm_last_doc_name [19:26:55]save OK [19:26:55]Clear old archive folders... [19:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:26:55]tlvbuf is 0053A0C0 [19:26:55]SAM_PROTO_ClearQueue [19:26:55]wFMCommunicate request_size=4 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 09 00 00 [19:26:55]Write to MH i2c: E2 08 00 52 03 80 09 00 00 00 00 00 00 C7 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 03 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [19:26:55]RAPDU: 90 00 [19:26:55]wFMCommunicate OK [19:26:55]SAM_PROTO_ClearQueue done [19:26:55]KKMCreateOFDPacket [19:26:55]OFDProtocolAddRootSTLVToBuf [19:26:55]FM_MakeSignedData [19:26:55]FM_MakeSignedData [19:26:55]SAM_PROTO_SignData [19:26:55]wFMCommunicate request_size=4 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 0D 01 02 [19:26:55]Write to MH i2c: E2 08 00 53 03 80 0D 01 02 00 00 00 00 CF [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 03 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [19:26:55]RAPDU: 90 00 [19:26:55]wFMCommunicate OK [19:26:55]wFMCommunicate request_size=255 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FE 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E1 02 [19:26:55]Write to MH i2c: E2 02 01 54 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FE 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E1 02 00 00 CA [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 03 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [19:26:55]RAPDU: 90 00 [19:26:55]wFMCommunicate OK [19:26:55]wFMCommunicate request_size=16 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4B C6 5D CE B5 64 [19:26:55]Write to MH i2c: E2 13 00 55 03 80 0D 02 02 0B 00 00 35 04 06 00 4B C6 5D CE B5 64 00 00 7C [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 03 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [19:26:55]RAPDU: 90 00 [19:26:55]wFMCommunicate OK [19:26:55]wFMCommunicate request_size=4 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 0D 03 02 [19:26:55]Write to MH i2c: E2 08 00 56 03 80 0D 03 02 00 00 00 00 D4 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 0B 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 0B 00 56 03 00 87 DB 13 33 5E 20 69 5C 90 00 C0 [19:26:55]RAPDU: 87 DB 13 33 5E 20 69 5C 90 00 [19:26:55]wFMCommunicate OK [19:26:55]SAM_PROTO_SignData done [19:26:55]FM_MakeSignedData done [19:26:55]CreateOFDProtocolMessage [19:26:55]wFMCommunicate request_size=4 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 11 00 00 [19:26:55]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 17 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [19:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:26:55]wFMCommunicate OK [19:26:55]CreateOFDProtocolMessage done [19:26:55]OFDSenderStorePacket 188874 [19:26:55]StoreOFDPacket docnum=188874 [19:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E9 0D 0D 01 F4 72 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FE 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E1 02 00 35 04 06 00 4B C6 5D CE B5 64 87 DB 13 33 5E 20 69 5C [19:26:55]CheckFolder [19:26:55]dirname=/storage/ofd_packets [19:26:55]CheckFolder done [19:26:55]ProducePacketName [19:26:55]name=ofd_packets/00188874 [19:26:55]NVStorageSaveData ofd_packets/00188874 [19:26:55]File name is /storage/ofd_packets/00188874 [19:26:55]Write 307 bytes [19:26:55]NVStorageSaveData done [19:26:55]OFDSenderStorePacket done [19:26:55]KKMCreateOFDPacket done [19:26:55]NVStorageSaveData kkm_last_timestamp [19:26:55]File name is /storage/kkm_last_timestamp [19:26:55]Write 4 bytes [19:26:55]NVStorageSaveData done [19:26:55]ExternCall_PrintAddStr [19:26:55]wPrintStart [19:26:55]Write to MH i2c: 01 00 00 58 03 5B [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 07 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 FF 0F 70 [19:26:55]RasterBufferAndPrint [19:26:55]line Счет N : (1)210936 [19:26:55]line ИНН: 02508201610067 [19:26:55]line Контрольно-Кассовый Чек [19:26:55]line ПРОДАЖА [19:26:55]line ТРК (МРК, ГНК) : 31 [19:26:55]line Товар: 2710194210 [19:26:55]line D-ENERGY ДТ-К-5 [19:26:55]line 77.730 * 77.20 [19:26:55]line = 6000.76 [19:26:55]line НДС 12% НСП 1% [19:26:55]line > о реализуемом товаре [19:26:55]line ОКРУГЛЕНИЕ: -0.76 [19:26:55]line ИТОГО: 6000.00 [19:26:55]line Внесено: 6000.00 [19:26:55]line СДАЧА: 0.00 [19:26:55]line НСП 1% : 53.10 [19:26:55]line НДС 12% : 637.25 [19:26:55]line Наличными: 6000.00 [19:26:55]line Безнал.: 0.00 [19:26:55]line Место: АЗС № 86 "Партнер Нефть" [19:26:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:26:55]line СНО: Общий режим [19:26:55]line Чек 332 23.10.2024 19:26 [19:26:55]line Смена: 462 ФФД: 1.0 [19:26:55]line ЗНМ: 0300000155 [19:26:55]line РНМ: 0000000000100030 [19:26:55]line Версия ККМ: 001 [19:26:55]line ФМ: 0000000000965340 [19:26:55]line ФД: 188874 [19:26:55]line ФПД: 83315349435748 [19:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188874&fm=83315349435748&tin=02508201610067®Number=0000000000100030&sum=600000 [19:26:55]OFD Sender: Processing packet 188874 [packets to send 1062, broken 1061] [19:26:55]ProducePacketName [19:26:55]name=ofd_packets/00188874 [19:26:55]OFD Sender: To server: pG, [19:26:55]CommunicateWithHost lk.salyk.kg:30040 [19:26:55]ConnectInit lk.salyk.kg [19:26:55]written 0, free lines is 4095 [19:26:55]Connected sock=10 [19:26:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E9 0D 0D 01 F4 72 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FE 4D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E1 02 00 35 04 06 00 4B C6 5D CE B5 64 87 DB 13 33 5E 20 69 5C [19:26:56]Write to MH i2c: 01 00 00 83 03 86 [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: 01 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: 01 07 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: 01 07 00 83 03 00 00 00 00 00 56 0C EF [19:26:56]RasterBufferAndPrint [19:26:56]line [19:26:56]line [19:26:56]line [19:26:56]line [19:26:56]line [19:26:56]written 0, free lines is 3161 [19:26:56]MH_Cut [19:26:56]Write to MH i2c: D1 01 00 8A 03 01 5F [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: D1 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: D1 01 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: D1 01 00 8A 03 00 5E [19:26:56]Write to MH i2c: 01 00 00 8B 03 8E [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5D 1E 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 36 35 33 34 30 10 04 04 00 CA E1 02 00 F4 03 04 00 E8 F7 18 67 B6 04 01 00 00 B1 3F C5 25 7A A8 CF AD [19:26:56]CommunicateWithHost err = 0 [19:26:56]CheckOFDResponse [19:26:56]1017 (14) - 77093643461234 [19:26:56]1041 (16) - 0000000000965340 [19:26:56]1040 (4) - 188874 [19:26:56]1012 (4) - 23.10.2024 13:19 [19:26:56]1206 (1) - 0 [19:26:56]OFD Sender: Remove packet 188874 [19:26:56]ProducePacketName [19:26:56]name=ofd_packets/00188874 [19:26:56]NVStorageDeleteData [19:26:56]OFD Sender: No OFD packet to send [19:26:57]*** Cut start [19:26:57]*** Partial cut [19:26:57]*** CUTSNS_PIN = 1 [19:26:57]*** CUTSNS_PIN = 0 [19:26:57]*** Brake cut motor [19:26:58]Read from MH i2c: 01 [19:26:58]MH_I2C_Read... [19:26:58]*** Stop cut motor [19:26:58]*** Cut end [19:26:58]Read from MH i2c: 01 07 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 FF 0F A3 [19:26:58]process_action close_receipt done [19:26:58]requested_data is exist [19:26:58]produce_requested_data [19:26:58]requested_item fm.sn is exist - process it [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 11 00 00 [19:26:58]Write to MH i2c: E2 08 00 8C 03 80 11 00 00 00 00 00 00 09 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 17 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 17 00 8C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [19:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:26:58]wFMCommunicate OK [19:26:58]requested_item fd.num is exist - process it [19:26:58]SAM_PROTO_GetFieldsCounters [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 13 00 00 [19:26:58]Write to MH i2c: E2 08 00 8D 03 80 13 00 00 00 00 00 00 0C [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 62 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 62 00 8D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [19:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:58]wFMCommunicate OK [19:26:58]SAM_PROTO_GetFieldsCounters done [19:26:58]requested_item shift.num is exist - process it [19:26:58]requested_item shift.opened is exist - process it [19:26:58]req_shift_opened [19:26:58]FM_GetShiftState [19:26:58]SAM_PROTO_GetShiftState [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 13 01 00 [19:26:58]Write to MH i2c: E2 08 00 8E 03 80 13 01 00 00 00 00 00 0E [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:58]Read from MH i2c: E2 0E 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 0E 00 8E 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F6 [19:26:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:26:58]wFMCommunicate OK [19:26:58]SAM_PROTO_GetShiftState done [19:26:58]FM_GetShiftState done [19:26:58]req_shift_opened done [19:26:58]requested_item shift.open_date is exist - process it [19:26:58]req_shift_open_date [19:26:58]req_shift_open_date done [19:26:58]produce_requested_data done [19:26:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188874,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:26:58]process_action_free close_receipt [19:26:58]json_value_free [19:26:58]json_value_free done [19:26:58]process_json_proto returns [19:26:58]Send response to host [19:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188874,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:26:58]free response buf [19:26:58]execute_script done [19:26:58]execute_script returns [19:26:58]free content buf [19:26:58]Sock 8.Close socket [19:26:58]Sock 8.Thread stoped [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:45]accept exits with 9 [19:28:45]New connection [19:28:45]New thread 3066953060 created [19:28:45]Thread 3066809700 joined [19:28:45]Waiting for new connection... [19:28:45] Sock 9.Parse request [19:28:45]Sock 9.Check first char [19:28:45]Sock 9.First char is OK [19:28:45]request: POST /json_proto HTTP/1.0 [19:28:45]Method: POST [19:28:45]URL: /json_proto [19:28:45]Method is POST - this is cgi request [19:28:45]url: /json_proto [19:28:45]query_string will be loaded in cgi processing [19:28:45]execute_cgi json_proto POST (null) [19:28:45]execute_cgi path=json_proto method=POST [19:28:45]POST find Content-Length [19:28:45]Host: 172.17.42.131:8080 [19:28:45]Content-Length: 682 [19:28:45]Content-Type: application/json [19:28:45] [19:28:45]POST finish read [19:28:45]Found Content-Length = 682 [19:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:45]execute_script... [19:28:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:45]POST & json_proto [19:28:45]process_json_proto [19:28:45]json parsed OK: [19:28:45]protocol is kg_v1.0 [19:28:45]action value=close_receipt [19:28:45]process_action close_receipt [19:28:45]cmd_close_receipt [19:28:45]MH_GetDate [19:28:45]Write to MH i2c: F0 00 00 8F 03 81 [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: F0 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: F0 09 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: F0 09 00 8F 03 00 6D 4E 19 67 A0 18 CA 66 AD [19:28:45]GetLastDocTimeStamp 1729711614 [19:28:45]current date 1729711725 [19:28:45]FM_GetShiftState [19:28:45]SAM_PROTO_GetShiftState [19:28:45]wFMCommunicate request_size=4 [19:28:45]MH_SAM_APDU [19:28:45]CAPDU: 80 13 01 00 [19:28:45]Write to MH i2c: E2 08 00 90 03 80 13 01 00 00 00 00 00 10 [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:45]Read from MH i2c: E2 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 0E 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 0E 00 90 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F8 [19:28:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:28:45]wFMCommunicate OK [19:28:45]SAM_PROTO_GetShiftState done [19:28:45]FM_GetShiftState done [19:28:45]opened in 1729642525 [19:28:45]opened+sec_in_day 1729728925 [19:28:45]quantity*price = 200031 [19:28:45]sum+1 = 200032 [19:28:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 333 23.10.2024 19:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188875 ФПД: 79092142419451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192845&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188875&fm=79092142419451&tin=02508201610067®Number=0000000000100030&sum=200000 [19:28:46]StoreToDocumentArchive [19:28:46]shift 462 fd 188875 [19:28:46]save to /storage/0462/doc_00188875 [19:28:46]save last doc name /storage/0462/doc_00188875 to /storage/kkm_last_doc_name [19:28:46]save OK [19:28:46]Clear old archive folders... [19:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:46]tlvbuf is 004D7C40 [19:28:46]SAM_PROTO_ClearQueue [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 09 00 00 [19:28:46]Write to MH i2c: E2 08 00 9D 03 80 09 00 00 00 00 00 00 12 [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 03 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [19:28:46]RAPDU: 90 00 [19:28:46]wFMCommunicate OK [19:28:46]SAM_PROTO_ClearQueue done [19:28:46]KKMCreateOFDPacket [19:28:46]OFDProtocolAddRootSTLVToBuf [19:28:46]FM_MakeSignedData [19:28:46]FM_MakeSignedData [19:28:46]SAM_PROTO_SignData [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 0D 01 02 [19:28:46]Write to MH i2c: E2 08 00 9E 03 80 0D 01 02 00 00 00 00 1A [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 03 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [19:28:46]RAPDU: 90 00 [19:28:46]wFMCommunicate OK [19:28:46]wFMCommunicate request_size=255 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 6D 4E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E1 02 00 35 04 06 00 47 [19:28:46]Write to MH i2c: E2 02 01 9F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 6D 4E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E1 02 00 35 04 06 00 47 00 00 1C [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 03 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [19:28:46]RAPDU: 90 00 [19:28:46]wFMCommunicate OK [19:28:46]wFMCommunicate request_size=10 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 0D 02 02 05 EF 13 0D AD FB [19:28:46]Write to MH i2c: E2 0D 00 A0 03 80 0D 02 02 05 00 EF 13 0D AD FB 00 00 DE [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 03 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [19:28:46]RAPDU: 90 00 [19:28:46]wFMCommunicate OK [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 0D 03 02 [19:28:46]Write to MH i2c: E2 08 00 A1 03 80 0D 03 02 00 00 00 00 1F [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 0B 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 0B 00 A1 03 00 17 0B 8F 14 0A 13 2B 53 90 00 80 [19:28:46]RAPDU: 17 0B 8F 14 0A 13 2B 53 90 00 [19:28:46]wFMCommunicate OK [19:28:46]SAM_PROTO_SignData done [19:28:46]FM_MakeSignedData done [19:28:46]CreateOFDProtocolMessage [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 11 00 00 [19:28:46]Write to MH i2c: E2 08 00 A2 03 80 11 00 00 00 00 00 00 1F [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 17 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 17 00 A2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [19:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:28:46]wFMCommunicate OK [19:28:46]CreateOFDProtocolMessage done [19:28:46]OFDSenderStorePacket 188875 [19:28:46]StoreOFDPacket docnum=188875 [19:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 F2 07 01 96 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 6D 4E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E1 02 00 35 04 06 00 47 EF 13 0D AD FB 17 0B 8F 14 0A 13 2B 53 [19:28:46]CheckFolder [19:28:46]dirname=/storage/ofd_packets [19:28:46]CheckFolder done [19:28:46]ProducePacketName [19:28:46]name=ofd_packets/00188875 [19:28:46]NVStorageSaveData ofd_packets/00188875 [19:28:46]File name is /storage/ofd_packets/00188875 [19:28:46]Write 301 bytes [19:28:46]NVStorageSaveData done [19:28:46]OFDSenderStorePacket done [19:28:46]KKMCreateOFDPacket done [19:28:46]NVStorageSaveData kkm_last_timestamp [19:28:46]File name is /storage/kkm_last_timestamp [19:28:46]Write 4 bytes [19:28:46]NVStorageSaveData done [19:28:46]ExternCall_PrintAddStr [19:28:46]wPrintStart [19:28:46]Write to MH i2c: 01 00 00 A3 03 A6 [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: 01 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: 01 07 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: 01 07 00 A3 03 00 00 00 00 00 FF 0F BB [19:28:46]RasterBufferAndPrint [19:28:46]line Счет N : (1)210938 [19:28:46]line ИНН: 02508201610067 [19:28:46]line Контрольно-Кассовый Чек [19:28:46]line ПРОДАЖА [19:28:46]line ТРК (МРК, ГНК) : 42 [19:28:46]line Товар: 2710124130 [19:28:46]line Аи-92-К-3 [19:28:46]line 29.900 * 66.90 [19:28:46]line = 2000.31 [19:28:46]line НДС 12% НСП 1% [19:28:46]line > о реализуемом товаре [19:28:46]line ОКРУГЛЕНИЕ: -0.31 [19:28:46]line ИТОГО: 2000.00 [19:28:46]line Внесено: 2000.00 [19:28:46]line СДАЧА: 0.00 [19:28:46]line НСП 1% : 17.70 [19:28:46]line НДС 12% : 212.42 [19:28:46]line Наличными: 2000.00 [19:28:46]line Безнал.: 0.00 [19:28:46]line Место: АЗС № 86 "Партнер Нефть" [19:28:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:28:46]line СНО: Общий режим [19:28:46]line Чек 333 23.10.2024 19:28 [19:28:46]line Смена: 462 ФФД: 1.0 [19:28:46]line ЗНМ: 0300000155 [19:28:46]line РНМ: 0000000000100030 [19:28:46]line Версия ККМ: 001 [19:28:46]line ФМ: 0000000000965340 [19:28:46]line ФД: 188875 [19:28:46]line ФПД: 79092142419451 [19:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192845&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188875&fm=79092142419451&tin=02508201610067®Number=0000000000100030&sum=200000 [19:28:46]written 0, free lines is 4095 [19:28:46]OFD Sender: Processing packet 188875 [packets to send 1062, broken 1061] [19:28:46]ProducePacketName [19:28:46]name=ofd_packets/00188875 [19:28:46]OFD Sender: To server: pG, [19:28:46]CommunicateWithHost lk.salyk.kg:30040 [19:28:46]ConnectInit lk.salyk.kg [19:28:47]Connected sock=10 [19:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 F2 07 01 96 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 6D 4E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E1 02 00 35 04 06 00 47 EF 13 0D AD FB 17 0B 8F 14 0A 13 2B 53 [19:28:47]Write to MH i2c: 01 00 00 CE 03 D1 [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: 01 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: 01 07 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: 01 07 00 CE 03 00 00 00 00 00 53 0C 37 [19:28:47]RasterBufferAndPrint [19:28:47]line [19:28:47]line [19:28:47]line [19:28:47]line [19:28:47]line [19:28:47]written 0, free lines is 3158 [19:28:47]MH_Cut [19:28:47]Write to MH i2c: D1 01 00 D5 03 01 AA [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: D1 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: D1 01 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: D1 01 00 D5 03 00 A9 [19:28:47]Write to MH i2c: 01 00 00 D6 03 D9 [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 68 42 47 00 DC 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E1 02 00 F4 03 04 00 57 F8 18 67 B6 04 01 00 00 10 55 BC 87 CA F1 8E AA [19:28:47]CommunicateWithHost err = 0 [19:28:47]CheckOFDResponse [19:28:47]1017 (14) - 77093643461234 [19:28:47]1041 (16) - 0000000000965340 [19:28:47]1040 (4) - 188875 [19:28:47]1012 (4) - 23.10.2024 13:21 [19:28:47]1206 (1) - 0 [19:28:47]OFD Sender: Remove packet 188875 [19:28:47]ProducePacketName [19:28:47]name=ofd_packets/00188875 [19:28:47]NVStorageDeleteData [19:28:48]OFD Sender: No OFD packet to send [19:28:48]*** Cut start [19:28:48]*** Partial cut [19:28:48]*** CUTSNS_PIN = 1 [19:28:48]*** CUTSNS_PIN = 0 [19:28:48]*** Brake cut motor [19:28:49]Read from MH i2c: 01 [19:28:49]MH_I2C_Read... [19:28:49]*** Stop cut motor [19:28:49]*** Cut end [19:28:49]Read from MH i2c: 01 07 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 FF 0F EE [19:28:49]process_action close_receipt done [19:28:49]requested_data is exist [19:28:49]produce_requested_data [19:28:49]requested_item fm.sn is exist - process it [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 11 00 00 [19:28:49]Write to MH i2c: E2 08 00 D7 03 80 11 00 00 00 00 00 00 54 [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 17 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 17 00 D7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A2 [19:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:28:49]wFMCommunicate OK [19:28:49]requested_item fd.num is exist - process it [19:28:49]SAM_PROTO_GetFieldsCounters [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 13 00 00 [19:28:49]Write to MH i2c: E2 08 00 D8 03 80 13 00 00 00 00 00 00 57 [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 62 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 62 00 D8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [19:28:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:49]wFMCommunicate OK [19:28:49]SAM_PROTO_GetFieldsCounters done [19:28:49]requested_item shift.num is exist - process it [19:28:49]requested_item shift.opened is exist - process it [19:28:49]req_shift_opened [19:28:49]FM_GetShiftState [19:28:49]SAM_PROTO_GetShiftState [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 13 01 00 [19:28:49]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 41 [19:28:49]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:28:49]wFMCommunicate OK [19:28:49]SAM_PROTO_GetShiftState done [19:28:49]FM_GetShiftState done [19:28:49]req_shift_opened done [19:28:49]requested_item shift.open_date is exist - process it [19:28:49]req_shift_open_date [19:28:49]req_shift_open_date done [19:28:49]produce_requested_data done [19:28:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188875,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:28:49]process_action_free close_receipt [19:28:49]json_value_free [19:28:49]json_value_free done [19:28:49]process_json_proto returns [19:28:49]Send response to host [19:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188875,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:28:49]free response buf [19:28:49]execute_script done [19:28:49]execute_script returns [19:28:49]free content buf [19:28:49]Sock 9.Close socket [19:28:49]Sock 9.Thread stoped [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32: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:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35: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:30]accept exits with 8 [19:36:30]New connection [19:36:30]New thread 3066809700 created [19:36:30]Thread 3066953060 joined [19:36:30]Waiting for new connection... [19:36:30] Sock 8.Parse request [19:36:30]Sock 8.Check first char [19:36:30]Sock 8.First char is OK [19:36:30]request: POST /json_proto HTTP/1.0 [19:36:30]Method: POST [19:36:30]URL: /json_proto [19:36:30]Method is POST - this is cgi request [19:36:30]url: /json_proto [19:36:30]query_string will be loaded in cgi processing [19:36:30]execute_cgi json_proto POST (null) [19:36:30]execute_cgi path=json_proto method=POST [19:36:30]POST find Content-Length [19:36:30]Host: 172.17.42.131:8080 [19:36:30]Content-Length: 677 [19:36:30]Content-Type: application/json [19:36:30] [19:36:30]POST finish read [19:36:30]Found Content-Length = 677 [19:36:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:30]execute_script... [19:36:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:30]POST & json_proto [19:36:30]process_json_proto [19:36:30]json parsed OK: [19:36:30]protocol is kg_v1.0 [19:36:30]action value=close_receipt [19:36:30]process_action close_receipt [19:36:30]cmd_close_receipt [19:36:30]MH_GetDate [19:36:30]Write to MH i2c: F0 00 00 DA 03 CC [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: F0 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: F0 09 00 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: F0 09 00 DA 03 00 3F 50 19 67 A0 18 CA 66 CC [19:36:30]GetLastDocTimeStamp 1729711725 [19:36:30]current date 1729712191 [19:36:30]FM_GetShiftState [19:36:30]SAM_PROTO_GetShiftState [19:36:30]wFMCommunicate request_size=4 [19:36:30]MH_SAM_APDU [19:36:30]CAPDU: 80 13 01 00 [19:36:30]Write to MH i2c: E2 08 00 DB 03 80 13 01 00 00 00 00 00 5B [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:30]Read from MH i2c: E2 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 0E 00 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 0E 00 DB 03 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 43 [19:36:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:36:30]wFMCommunicate OK [19:36:30]SAM_PROTO_GetShiftState done [19:36:30]FM_GetShiftState done [19:36:30]opened in 1729642525 [19:36:30]opened+sec_in_day 1729728925 [19:36:30]quantity*price = 40006 [19:36:30]sum+1 = 40007 [19:36:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 334 23.10.2024 19:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188876 ФПД: 102445719100715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193631&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188876&fm=102445719100715&tin=02508201610067®Number=0000000000100030&sum=40000 [19:36:31]StoreToDocumentArchive [19:36:31]shift 462 fd 188876 [19:36:31]save to /storage/0462/doc_00188876 [19:36:31]save last doc name /storage/0462/doc_00188876 to /storage/kkm_last_doc_name [19:36:31]save OK [19:36:31]Clear old archive folders... [19:36:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:31]tlvbuf is 0053A010 [19:36:31]SAM_PROTO_ClearQueue [19:36:31]wFMCommunicate request_size=4 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 09 00 00 [19:36:31]Write to MH i2c: E2 08 00 E8 03 80 09 00 00 00 00 00 00 5D [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]SAM_PROTO_ClearQueue done [19:36:31]KKMCreateOFDPacket [19:36:31]OFDProtocolAddRootSTLVToBuf [19:36:31]FM_MakeSignedData [19:36:31]FM_MakeSignedData [19:36:31]SAM_PROTO_SignData [19:36:31]wFMCommunicate request_size=4 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 01 02 [19:36:31]Write to MH i2c: E2 08 00 E9 03 80 0D 01 02 00 00 00 00 65 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=255 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 3F 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E1 02 00 35 04 06 00 5D [19:36:31]Write to MH i2c: E2 02 01 EA 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 3F 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E1 02 00 35 04 06 00 5D 00 00 E0 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=10 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 02 02 05 2C 80 B2 1D 2B [19:36:31]Write to MH i2c: E2 0D 00 EB 03 80 0D 02 02 05 00 2C 80 B2 1D 2B 00 00 18 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=4 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 03 02 [19:36:31]Write to MH i2c: E2 08 00 EC 03 80 0D 03 02 00 00 00 00 6A [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 0B 00 [19:36:31]MH_I2C_Read... [19:36:32]Read from MH i2c: E2 0B 00 EC 03 00 85 C4 E3 0F 46 46 6E D3 90 00 73 [19:36:32]RAPDU: 85 C4 E3 0F 46 46 6E D3 90 00 [19:36:32]wFMCommunicate OK [19:36:32]SAM_PROTO_SignData done [19:36:32]FM_MakeSignedData done [19:36:32]CreateOFDProtocolMessage [19:36:32]wFMCommunicate request_size=4 [19:36:32]MH_SAM_APDU [19:36:32]CAPDU: 80 11 00 00 [19:36:32]Write to MH i2c: E2 08 00 ED 03 80 11 00 00 00 00 00 00 6A [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:32]Read from MH i2c: E2 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: E2 17 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: E2 17 00 ED 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [19:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:36:32]wFMCommunicate OK [19:36:32]CreateOFDProtocolMessage done [19:36:32]OFDSenderStorePacket 188876 [19:36:32]StoreOFDPacket docnum=188876 [19:36:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE 75 07 01 72 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 3F 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E1 02 00 35 04 06 00 5D 2C 80 B2 1D 2B 85 C4 E3 0F 46 46 6E D3 [19:36:32]CheckFolder [19:36:32]dirname=/storage/ofd_packets [19:36:32]CheckFolder done [19:36:32]ProducePacketName [19:36:32]name=ofd_packets/00188876 [19:36:32]NVStorageSaveData ofd_packets/00188876 [19:36:32]File name is /storage/ofd_packets/00188876 [19:36:32]Write 301 bytes [19:36:32]NVStorageSaveData done [19:36:32]OFDSenderStorePacket done [19:36:32]KKMCreateOFDPacket done [19:36:32]NVStorageSaveData kkm_last_timestamp [19:36:32]File name is /storage/kkm_last_timestamp [19:36:32]Write 4 bytes [19:36:32]NVStorageSaveData done [19:36:32]ExternCall_PrintAddStr [19:36:32]wPrintStart [19:36:32]Write to MH i2c: 01 00 00 EE 03 F1 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 EE 03 00 00 00 00 00 FF 0F 06 [19:36:32]RasterBufferAndPrint [19:36:32]line Счет N : (1)210939 [19:36:32]line ИНН: 02508201610067 [19:36:32]line Контрольно-Кассовый Чек [19:36:32]line ПРОДАЖА [19:36:32]line ТРК (МРК, ГНК) : 42 [19:36:32]line Товар: 2710124130 [19:36:32]line Аи-92-К-3 [19:36:32]line 5.980 * 66.90 [19:36:32]line = 400.06 [19:36:32]line НДС 12% НСП 1% [19:36:32]line > о реализуемом товаре [19:36:32]line ОКРУГЛЕНИЕ: -0.06 [19:36:32]line ИТОГО: 400.00 [19:36:32]line Внесено: 400.00 [19:36:32]line СДАЧА: 0.00 [19:36:32]line НСП 1% : 3.54 [19:36:32]line НДС 12% : 42.48 [19:36:32]line Наличными: 400.00 [19:36:32]line Безнал.: 0.00 [19:36:32]line Место: АЗС № 86 "Партнер Нефть" [19:36:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:36:32]line СНО: Общий режим [19:36:32]line Чек 334 23.10.2024 19:36 [19:36:32]line Смена: 462 ФФД: 1.0 [19:36:32]line ЗНМ: 0300000155 [19:36:32]line РНМ: 0000000000100030 [19:36:32]line Версия ККМ: 001 [19:36:32]line ФМ: 0000000000965340 [19:36:32]line ФД: 188876 [19:36:32]line ФПД: 102445719100715 [19:36:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193631&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188876&fm=102445719100715&tin=02508201610067®Number=0000000000100030&sum=40000 [19:36:32]written 0, free lines is 4095 [19:36:32]OFD Sender: Processing packet 188876 [packets to send 1062, broken 1061] [19:36:32]ProducePacketName [19:36:32]name=ofd_packets/00188876 [19:36:32]OFD Sender: To server: pG, [19:36:32]CommunicateWithHost lk.salyk.kg:30040 [19:36:32]ConnectInit lk.salyk.kg [19:36:32]Connected sock=9 [19:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE 75 07 01 72 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 3F 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E1 02 00 35 04 06 00 5D 2C 80 B2 1D 2B 85 C4 E3 0F 46 46 6E D3 [19:36:32]Write to MH i2c: 01 00 00 19 04 1D [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 19 04 00 00 00 00 00 53 0C 83 [19:36:32]RasterBufferAndPrint [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]written 0, free lines is 3160 [19:36:32]MH_Cut [19:36:32]Write to MH i2c: D1 01 00 20 04 01 F6 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 01 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 01 00 20 04 00 F5 [19:36:32]Write to MH i2c: 01 00 00 21 04 25 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 20 D7 47 00 AB 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 36 35 33 34 30 10 04 04 00 CC E1 02 00 F4 03 04 00 28 FA 18 67 B6 04 01 00 00 D3 15 5E 83 8E DA 18 E5 [19:36:32]CommunicateWithHost err = 0 [19:36:32]CheckOFDResponse [19:36:32]1017 (14) - 77093643461234 [19:36:32]1041 (16) - 0000000000965340 [19:36:32]1040 (4) - 188876 [19:36:32]1012 (4) - 23.10.2024 13:29 [19:36:32]1206 (1) - 0 [19:36:32]OFD Sender: Remove packet 188876 [19:36:32]ProducePacketName [19:36:32]name=ofd_packets/00188876 [19:36:32]NVStorageDeleteData [19:36:33]OFD Sender: No OFD packet to send [19:36:33]*** Cut start [19:36:33]*** Partial cut [19:36:33]*** CUTSNS_PIN = 1 [19:36:33]*** CUTSNS_PIN = 0 [19:36:34]*** Brake cut motor [19:36:34]Read from MH i2c: 01 [19:36:34]MH_I2C_Read... [19:36:34]*** Stop cut motor [19:36:34]*** Cut end [19:36:34]Read from MH i2c: 01 07 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: 01 07 00 21 04 00 00 00 00 00 FF 0F 3A [19:36:34]process_action close_receipt done [19:36:34]requested_data is exist [19:36:34]produce_requested_data [19:36:34]requested_item fm.sn is exist - process it [19:36:34]wFMCommunicate request_size=4 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 11 00 00 [19:36:34]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 17 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 17 00 22 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [19:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:36:34]wFMCommunicate OK [19:36:34]requested_item fd.num is exist - process it [19:36:34]SAM_PROTO_GetFieldsCounters [19:36:34]wFMCommunicate request_size=4 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 13 00 00 [19:36:34]Write to MH i2c: E2 08 00 23 04 80 13 00 00 00 00 00 00 A3 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 62 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 62 00 23 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [19:36:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:34]wFMCommunicate OK [19:36:34]SAM_PROTO_GetFieldsCounters done [19:36:34]requested_item shift.num is exist - process it [19:36:34]requested_item shift.opened is exist - process it [19:36:34]req_shift_opened [19:36:34]FM_GetShiftState [19:36:34]SAM_PROTO_GetShiftState [19:36:34]wFMCommunicate request_size=4 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 13 01 00 [19:36:34]Write to MH i2c: E2 08 00 24 04 80 13 01 00 00 00 00 00 A5 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 0E 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 0E 00 24 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8D [19:36:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:36:34]wFMCommunicate OK [19:36:34]SAM_PROTO_GetShiftState done [19:36:34]FM_GetShiftState done [19:36:34]req_shift_opened done [19:36:34]requested_item shift.open_date is exist - process it [19:36:34]req_shift_open_date [19:36:34]req_shift_open_date done [19:36:34]produce_requested_data done [19:36:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188876,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:36:34]process_action_free close_receipt [19:36:34]json_value_free [19:36:34]json_value_free done [19:36:34]process_json_proto returns [19:36:34]Send response to host [19:36:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188876,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:36:34]free response buf [19:36:34]execute_script done [19:36:34]execute_script returns [19:36:34]free content buf [19:36:34]Sock 8.Close socket [19:36:34]Sock 8.Thread stoped [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:16]accept exits with 10 [19:38:16]New connection [19:38:16]New thread 3066953060 created [19:38:16]Thread 3066809700 joined [19:38:16]Waiting for new connection... [19:38:16] Sock 10.Parse request [19:38:16]Sock 10.Check first char [19:38:16]Sock 10.First char is OK [19:38:16]request: POST /json_proto HTTP/1.0 [19:38:16]Method: POST [19:38:16]URL: /json_proto [19:38:16]Method is POST - this is cgi request [19:38:16]url: /json_proto [19:38:16]query_string will be loaded in cgi processing [19:38:16]execute_cgi json_proto POST (null) [19:38:16]execute_cgi path=json_proto method=POST [19:38:16]POST find Content-Length [19:38:16]Host: 172.17.42.131:8080 [19:38:16]Content-Length: 754 [19:38:16]Content-Type: application/json [19:38:16] [19:38:16]POST finish read [19:38:16]Found Content-Length = 754 [19:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:16]execute_script... [19:38:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:16]POST & json_proto [19:38:16]process_json_proto [19:38:16]json parsed OK: [19:38:16]protocol is kg_v1.0 [19:38:16]action value=close_receipt [19:38:16]process_action close_receipt [19:38:16]cmd_close_receipt [19:38:16]MH_GetDate [19:38:16]Write to MH i2c: F0 00 00 25 04 18 [19:38:16]Write i2c OK [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: F0 [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: F0 09 00 [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: F0 09 00 25 04 00 A9 50 19 67 A0 18 CA 66 82 [19:38:16]GetLastDocTimeStamp 1729712191 [19:38:16]current date 1729712297 [19:38:16]FM_GetShiftState [19:38:16]SAM_PROTO_GetShiftState [19:38:16]wFMCommunicate request_size=4 [19:38:16]MH_SAM_APDU [19:38:16]CAPDU: 80 13 01 00 [19:38:16]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [19:38:16]Write i2c OK [19:38:16]MH_I2C_Read... [19:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:16]Read from MH i2c: E2 [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: E2 0E 00 [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8F [19:38:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:38:16]wFMCommunicate OK [19:38:16]SAM_PROTO_GetShiftState done [19:38:16]FM_GetShiftState done [19:38:16]opened in 1729642525 [19:38:16]opened+sec_in_day 1729728925 [19:38:16]quantity*price = 0 [19:38:16]sum+1 = 1 [19:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 335 23.10.2024 19:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118758 ФМ: 0000000000965340 ФД: 188877 ФПД: 233747874674664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188877&fm=233747874674664&tin=02508201610067®Number=0000000000100030&sum=0 [19:38:17]StoreToDocumentArchive [19:38:17]shift 462 fd 188877 [19:38:17]save to /storage/0462/doc_00188877 [19:38:17]save last doc name /storage/0462/doc_00188877 to /storage/kkm_last_doc_name [19:38:17]save OK [19:38:17]Clear old archive folders... [19:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:17]tlvbuf is 004E3170 [19:38:17]SAM_PROTO_ClearQueue [19:38:17]wFMCommunicate request_size=4 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 09 00 00 [19:38:17]Write to MH i2c: E2 08 00 33 04 80 09 00 00 00 00 00 00 A9 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [19:38:17]RAPDU: 90 00 [19:38:17]wFMCommunicate OK [19:38:17]SAM_PROTO_ClearQueue done [19:38:17]KKMCreateOFDPacket [19:38:17]OFDProtocolAddRootSTLVToBuf [19:38:17]FM_MakeSignedData [19:38:17]FM_MakeSignedData [19:38:17]SAM_PROTO_SignData [19:38:17]wFMCommunicate request_size=4 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 0D 01 02 [19:38:17]Write to MH i2c: E2 08 00 34 04 80 0D 01 02 00 00 00 00 B1 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [19:38:17]RAPDU: 90 00 [19:38:17]wFMCommunicate OK [19:38:17]wFMCommunicate request_size=255 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 A9 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E1 02 00 35 04 06 00 D4 [19:38:17]Write to MH i2c: E2 02 01 35 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 A9 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E1 02 00 35 04 06 00 D4 00 00 29 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [19:38:17]RAPDU: 90 00 [19:38:17]wFMCommunicate OK [19:38:17]wFMCommunicate request_size=10 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 0D 02 02 05 97 AB 09 77 E8 [19:38:17]Write to MH i2c: E2 0D 00 36 04 80 0D 02 02 05 00 97 AB 09 77 E8 00 00 68 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [19:38:17]RAPDU: 90 00 [19:38:17]wFMCommunicate OK [19:38:17]wFMCommunicate request_size=4 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 0D 03 02 [19:38:17]Write to MH i2c: E2 08 00 37 04 80 0D 03 02 00 00 00 00 B6 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:18]Read from MH i2c: E2 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 0B 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 0B 00 37 04 00 04 4D AC A0 86 73 C4 38 90 00 49 [19:38:18]RAPDU: 04 4D AC A0 86 73 C4 38 90 00 [19:38:18]wFMCommunicate OK [19:38:18]SAM_PROTO_SignData done [19:38:18]FM_MakeSignedData done [19:38:18]CreateOFDProtocolMessage [19:38:18]wFMCommunicate request_size=4 [19:38:18]MH_SAM_APDU [19:38:18]CAPDU: 80 11 00 00 [19:38:18]Write to MH i2c: E2 08 00 38 04 80 11 00 00 00 00 00 00 B6 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:18]Read from MH i2c: E2 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 17 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 17 00 38 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [19:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:38:18]wFMCommunicate OK [19:38:18]CreateOFDProtocolMessage done [19:38:18]OFDSenderStorePacket 188877 [19:38:18]StoreOFDPacket docnum=188877 [19:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 A1 07 01 B1 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 A9 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E1 02 00 35 04 06 00 D4 97 AB 09 77 E8 04 4D AC A0 86 73 C4 38 [19:38:18]CheckFolder [19:38:18]dirname=/storage/ofd_packets [19:38:18]CheckFolder done [19:38:18]ProducePacketName [19:38:18]name=ofd_packets/00188877 [19:38:18]NVStorageSaveData ofd_packets/00188877 [19:38:18]File name is /storage/ofd_packets/00188877 [19:38:18]Write 301 bytes [19:38:18]NVStorageSaveData done [19:38:18]OFDSenderStorePacket done [19:38:18]KKMCreateOFDPacket done [19:38:18]NVStorageSaveData kkm_last_timestamp [19:38:18]File name is /storage/kkm_last_timestamp [19:38:18]Write 4 bytes [19:38:18]NVStorageSaveData done [19:38:18]ExternCall_PrintAddStr [19:38:18]wPrintStart [19:38:18]Write to MH i2c: 01 00 00 39 04 3D [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 07 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [19:38:18]RasterBufferAndPrint [19:38:18]line Счет N : (1)210940 [19:38:18]line ИНН: 02508201610067 [19:38:18]line Контрольно-Кассовый Чек [19:38:18]line ПРОДАЖА [19:38:18]line ТРК (МРК, ГНК) : 12 [19:38:18]line Товар: 2710124130 [19:38:18]line Аи-92-К-3 [19:38:18]line 20.000 * 0.00 [19:38:18]line = 0.00 [19:38:18]line НДС 12% НСП 1% [19:38:18]line > о реализуемом товаре [19:38:18]line ИТОГО: 0.00 [19:38:18]line НСП 1% : 0.00 [19:38:18]line НДС 12% : 0.00 [19:38:18]line Наличными: 0.00 [19:38:18]line Безнал.: 0.00 [19:38:18]line Место: АЗС № 86 "Партнер Нефть" [19:38:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:38:18]line СНО: Общий режим [19:38:18]line Чек 335 23.10.2024 19:38 [19:38:18]line Смена: 462 ФФД: 1.0 [19:38:18]line ЗНМ: 0300000155 [19:38:18]line РНМ: 0000000000100030 [19:38:18]line Версия ККМ: 001 [19:38:18]line Талоны: ТК ГПНА Online [19:38:18]line 30118758 [19:38:18]line ФМ: 0000000000965340 [19:38:18]line ФД: 188877 [19:38:18]line ФПД: 233747874674664 [19:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188877&fm=233747874674664&tin=02508201610067®Number=0000000000100030&sum=0 [19:38:18]written 0, free lines is 4095 [19:38:18]OFD Sender: Processing packet 188877 [packets to send 1062, broken 1061] [19:38:18]ProducePacketName [19:38:18]name=ofd_packets/00188877 [19:38:18]OFD Sender: To server: pG, [19:38:18]CommunicateWithHost lk.salyk.kg:30040 [19:38:18]ConnectInit lk.salyk.kg [19:38:18]Connected sock=8 [19:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 A1 07 01 B1 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 A9 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E1 02 00 35 04 06 00 D4 97 AB 09 77 E8 04 4D AC A0 86 73 C4 38 [19:38:18]Write to MH i2c: 01 00 00 63 04 67 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 07 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 72 0C EC [19:38:18]RasterBufferAndPrint [19:38:18]line [19:38:18]line [19:38:18]line [19:38:18]line [19:38:18]line [19:38:18]written 0, free lines is 3191 [19:38:18]MH_Cut [19:38:18]Write to MH i2c: D1 01 00 6A 04 01 40 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: D1 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: D1 01 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: D1 01 00 6A 04 00 3F [19:38:18]Write to MH i2c: 01 00 00 6B 04 6F [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 29 11 47 00 C8 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E1 02 00 F4 03 04 00 92 FA 18 67 B6 04 01 00 00 CF 21 12 AC 5E DD 76 A9 [19:38:18]CommunicateWithHost err = 0 [19:38:18]CheckOFDResponse [19:38:18]1017 (14) - 77093643461234 [19:38:18]1041 (16) - 0000000000965340 [19:38:18]1040 (4) - 188877 [19:38:18]1012 (4) - 23.10.2024 13:30 [19:38:18]1206 (1) - 0 [19:38:18]OFD Sender: Remove packet 188877 [19:38:18]ProducePacketName [19:38:18]name=ofd_packets/00188877 [19:38:18]NVStorageDeleteData [19:38:19]OFD Sender: No OFD packet to send [19:38:19]*** Cut start [19:38:19]*** Partial cut [19:38:19]*** CUTSNS_PIN = 1 [19:38:19]*** CUTSNS_PIN = 0 [19:38:20]*** Brake cut motor [19:38:20]Read from MH i2c: 01 [19:38:20]MH_I2C_Read... [19:38:20]*** Stop cut motor [19:38:20]*** Cut end [19:38:20]Read from MH i2c: 01 07 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [19:38:20]process_action close_receipt done [19:38:20]requested_data is exist [19:38:20]produce_requested_data [19:38:20]requested_item fm.sn is exist - process it [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 11 00 00 [19:38:20]Write to MH i2c: E2 08 00 6C 04 80 11 00 00 00 00 00 00 EA [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 17 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 17 00 6C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [19:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:38:20]wFMCommunicate OK [19:38:20]requested_item fd.num is exist - process it [19:38:20]SAM_PROTO_GetFieldsCounters [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 13 00 00 [19:38:20]Write to MH i2c: E2 08 00 6D 04 80 13 00 00 00 00 00 00 ED [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 62 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 62 00 6D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [19:38:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:20]wFMCommunicate OK [19:38:20]SAM_PROTO_GetFieldsCounters done [19:38:20]requested_item shift.num is exist - process it [19:38:20]requested_item shift.opened is exist - process it [19:38:20]req_shift_opened [19:38:20]FM_GetShiftState [19:38:20]SAM_PROTO_GetShiftState [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 13 01 00 [19:38:20]Write to MH i2c: E2 08 00 6E 04 80 13 01 00 00 00 00 00 EF [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:20]Read from MH i2c: E2 0E 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 0E 00 6E 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D7 [19:38:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:38:20]wFMCommunicate OK [19:38:20]SAM_PROTO_GetShiftState done [19:38:20]FM_GetShiftState done [19:38:20]req_shift_opened done [19:38:20]requested_item shift.open_date is exist - process it [19:38:20]req_shift_open_date [19:38:20]req_shift_open_date done [19:38:20]produce_requested_data done [19:38:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188877,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:38:20]process_action_free close_receipt [19:38:20]json_value_free [19:38:20]json_value_free done [19:38:20]process_json_proto returns [19:38:20]Send response to host [19:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188877,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:38:20]free response buf [19:38:20]execute_script done [19:38:20]execute_script returns [19:38:20]free content buf [19:38:20]Sock 10.Close socket [19:38:20]Sock 10.Thread stoped [19:38:21]accept exits with 9 [19:38:21]New connection [19:38:21]New thread 3066809700 created [19:38:21]Thread 3066953060 joined [19:38:21]Waiting for new connection... [19:38:21] Sock 9.Parse request [19:38:21]Sock 9.Check first char [19:38:21]Sock 9.First char is OK [19:38:21]request: POST /json_proto HTTP/1.0 [19:38:21]Method: POST [19:38:21]URL: /json_proto [19:38:21]Method is POST - this is cgi request [19:38:21]url: /json_proto [19:38:21]query_string will be loaded in cgi processing [19:38:21]execute_cgi json_proto POST (null) [19:38:21]execute_cgi path=json_proto method=POST [19:38:21]POST find Content-Length [19:38:21]Host: 172.17.42.131:8080 [19:38:21]Content-Length: 682 [19:38:21]Content-Type: application/json [19:38:21] [19:38:21]POST finish read [19:38:21]Found Content-Length = 682 [19:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:21]execute_script... [19:38:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:21]POST & json_proto [19:38:21]process_json_proto [19:38:21]json parsed OK: [19:38:21]protocol is kg_v1.0 [19:38:21]action value=close_receipt [19:38:21]process_action close_receipt [19:38:21]cmd_close_receipt [19:38:21]MH_GetDate [19:38:21]Write to MH i2c: F0 00 00 6F 04 62 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: F0 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: F0 09 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: F0 09 00 6F 04 00 AD 50 19 67 A0 18 CA 66 D0 [19:38:21]GetLastDocTimeStamp 1729712297 [19:38:21]current date 1729712301 [19:38:21]FM_GetShiftState [19:38:21]SAM_PROTO_GetShiftState [19:38:21]wFMCommunicate request_size=4 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 13 01 00 [19:38:21]Write to MH i2c: E2 08 00 70 04 80 13 01 00 00 00 00 00 F1 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 0E 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 0E 00 70 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D9 [19:38:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:38:21]wFMCommunicate OK [19:38:21]SAM_PROTO_GetShiftState done [19:38:21]FM_GetShiftState done [19:38:21]opened in 1729642525 [19:38:21]opened+sec_in_day 1729728925 [19:38:21]quantity*price = 100015 [19:38:21]sum+1 = 100017 [19:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 336 23.10.2024 19:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188878 ФПД: 120371125488345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193821&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188878&fm=120371125488345&tin=02508201610067®Number=0000000000100030&sum=100000 [19:38:22]StoreToDocumentArchive [19:38:22]shift 462 fd 188878 [19:38:22]save to /storage/0462/doc_00188878 [19:38:22]save last doc name /storage/0462/doc_00188878 to /storage/kkm_last_doc_name [19:38:22]save OK [19:38:22]Clear old archive folders... [19:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:22]tlvbuf is 0053D060 [19:38:22]SAM_PROTO_ClearQueue [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 09 00 00 [19:38:22]Write to MH i2c: E2 08 00 7D 04 80 09 00 00 00 00 00 00 F3 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]SAM_PROTO_ClearQueue done [19:38:22]KKMCreateOFDPacket [19:38:22]OFDProtocolAddRootSTLVToBuf [19:38:22]FM_MakeSignedData [19:38:22]FM_MakeSignedData [19:38:22]SAM_PROTO_SignData [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 01 02 [19:38:22]Write to MH i2c: E2 08 00 7E 04 80 0D 01 02 00 00 00 00 FB [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=255 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 AD 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E1 02 00 35 04 06 00 6D [19:38:22]Write to MH i2c: E2 02 01 7F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 AD 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E1 02 00 35 04 06 00 6D 00 00 23 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=10 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 02 02 05 7A 16 2D 0A D9 [19:38:22]Write to MH i2c: E2 0D 00 80 04 80 0D 02 02 05 00 7A 16 2D 0A D9 00 00 A8 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:23]Read from MH i2c: E2 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 03 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [19:38:23]RAPDU: 90 00 [19:38:23]wFMCommunicate OK [19:38:23]wFMCommunicate request_size=4 [19:38:23]MH_SAM_APDU [19:38:23]CAPDU: 80 0D 03 02 [19:38:23]Write to MH i2c: E2 08 00 81 04 80 0D 03 02 00 00 00 00 00 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:23]Read from MH i2c: E2 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 0B 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 0B 00 81 04 00 72 32 EA 51 6F 29 C9 BB 90 00 FC [19:38:23]RAPDU: 72 32 EA 51 6F 29 C9 BB 90 00 [19:38:23]wFMCommunicate OK [19:38:23]SAM_PROTO_SignData done [19:38:23]FM_MakeSignedData done [19:38:23]CreateOFDProtocolMessage [19:38:23]wFMCommunicate request_size=4 [19:38:23]MH_SAM_APDU [19:38:23]CAPDU: 80 11 00 00 [19:38:23]Write to MH i2c: E2 08 00 82 04 80 11 00 00 00 00 00 00 00 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:23]Read from MH i2c: E2 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 17 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 17 00 82 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [19:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:38:23]wFMCommunicate OK [19:38:23]CreateOFDProtocolMessage done [19:38:23]OFDSenderStorePacket 188878 [19:38:23]StoreOFDPacket docnum=188878 [19:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F3 7C 07 01 72 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 AD 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E1 02 00 35 04 06 00 6D 7A 16 2D 0A D9 72 32 EA 51 6F 29 C9 BB [19:38:23]CheckFolder [19:38:23]dirname=/storage/ofd_packets [19:38:23]CheckFolder done [19:38:23]ProducePacketName [19:38:23]name=ofd_packets/00188878 [19:38:23]NVStorageSaveData ofd_packets/00188878 [19:38:23]File name is /storage/ofd_packets/00188878 [19:38:23]Write 301 bytes [19:38:23]NVStorageSaveData done [19:38:23]OFDSenderStorePacket done [19:38:23]KKMCreateOFDPacket done [19:38:23]NVStorageSaveData kkm_last_timestamp [19:38:23]File name is /storage/kkm_last_timestamp [19:38:23]Write 4 bytes [19:38:23]NVStorageSaveData done [19:38:23]ExternCall_PrintAddStr [19:38:23]wPrintStart [19:38:23]Write to MH i2c: 01 00 00 83 04 87 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 FF 0F 9C [19:38:23]RasterBufferAndPrint [19:38:23]line Счет N : (1)210941 [19:38:23]line ИНН: 02508201610067 [19:38:23]line Контрольно-Кассовый Чек [19:38:23]line ПРОДАЖА [19:38:23]line ТРК (МРК, ГНК) : 22 [19:38:23]line Товар: 2710124130 [19:38:23]line Аи-92-К-3 [19:38:23]line 14.950 * 66.90 [19:38:23]line = 1000.16 [19:38:23]line НДС 12% НСП 1% [19:38:23]line > о реализуемом товаре [19:38:23]line ОКРУГЛЕНИЕ: -0.16 [19:38:23]line ИТОГО: 1000.00 [19:38:23]line Внесено: 1000.00 [19:38:23]line СДАЧА: 0.00 [19:38:23]line НСП 1% : 8.85 [19:38:23]line НДС 12% : 106.21 [19:38:23]line Наличными: 1000.00 [19:38:23]line Безнал.: 0.00 [19:38:23]line Место: АЗС № 86 "Партнер Нефть" [19:38:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:38:23]line СНО: Общий режим [19:38:23]line Чек 336 23.10.2024 19:38 [19:38:23]line Смена: 462 ФФД: 1.0 [19:38:23]line ЗНМ: 0300000155 [19:38:23]line РНМ: 0000000000100030 [19:38:23]line Версия ККМ: 001 [19:38:23]line ФМ: 0000000000965340 [19:38:23]line ФД: 188878 [19:38:23]line ФПД: 120371125488345 [19:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193821&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188878&fm=120371125488345&tin=02508201610067®Number=0000000000100030&sum=100000 [19:38:23]OFD Sender: Processing packet 188878 [packets to send 1062, broken 1061] [19:38:23]ProducePacketName [19:38:23]name=ofd_packets/00188878 [19:38:23]OFD Sender: To server: pG, [19:38:23]CommunicateWithHost lk.salyk.kg:30040 [19:38:23]written 0, free lines is 4095 [19:38:23]ConnectInit lk.salyk.kg [19:38:23]Connected sock=10 [19:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F3 7C 07 01 72 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 AD 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E1 02 00 35 04 06 00 6D 7A 16 2D 0A D9 72 32 EA 51 6F 29 C9 BB [19:38:23]Write to MH i2c: 01 00 00 AE 04 B2 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 AE 04 00 00 00 00 00 5D 0C 22 [19:38:23]RasterBufferAndPrint [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]written 0, free lines is 3172 [19:38:24]MH_Cut [19:38:24]Write to MH i2c: D1 01 00 B5 04 01 8B [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: D1 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: D1 01 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: D1 01 00 B5 04 00 8A [19:38:24]Write to MH i2c: 01 00 00 B6 04 BA [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 ED 94 47 00 65 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E1 02 00 F4 03 04 00 98 FA 18 67 B6 04 01 00 00 A7 E0 2D DE 30 97 FD F3 [19:38:24]CommunicateWithHost err = 0 [19:38:24]CheckOFDResponse [19:38:24]1017 (14) - 77093643461234 [19:38:24]1041 (16) - 0000000000965340 [19:38:24]1040 (4) - 188878 [19:38:24]1012 (4) - 23.10.2024 13:31 [19:38:24]1206 (1) - 0 [19:38:24]OFD Sender: Remove packet 188878 [19:38:24]ProducePacketName [19:38:24]name=ofd_packets/00188878 [19:38:24]NVStorageDeleteData [19:38:24]OFD Sender: No OFD packet to send [19:38:25]*** Cut start [19:38:25]*** Partial cut [19:38:25]*** CUTSNS_PIN = 1 [19:38:25]*** CUTSNS_PIN = 0 [19:38:25]*** Brake cut motor [19:38:25]Read from MH i2c: 01 [19:38:25]MH_I2C_Read... [19:38:25]*** Stop cut motor [19:38:25]*** Cut end [19:38:25]Read from MH i2c: 01 07 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 FF 0F CF [19:38:25]process_action close_receipt done [19:38:25]requested_data is exist [19:38:25]produce_requested_data [19:38:25]requested_item fm.sn is exist - process it [19:38:25]wFMCommunicate request_size=4 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 11 00 00 [19:38:25]Write to MH i2c: E2 08 00 B7 04 80 11 00 00 00 00 00 00 35 [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:25]Read from MH i2c: E2 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 17 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 17 00 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [19:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:38:25]wFMCommunicate OK [19:38:25]requested_item fd.num is exist - process it [19:38:25]SAM_PROTO_GetFieldsCounters [19:38:25]wFMCommunicate request_size=4 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 13 00 00 [19:38:25]Write to MH i2c: E2 08 00 B8 04 80 13 00 00 00 00 00 00 38 [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 62 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 62 00 B8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [19:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:26]wFMCommunicate OK [19:38:26]SAM_PROTO_GetFieldsCounters done [19:38:26]requested_item shift.num is exist - process it [19:38:26]requested_item shift.opened is exist - process it [19:38:26]req_shift_opened [19:38:26]FM_GetShiftState [19:38:26]SAM_PROTO_GetShiftState [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 13 01 00 [19:38:26]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0E 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 22 [19:38:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:38:26]wFMCommunicate OK [19:38:26]SAM_PROTO_GetShiftState done [19:38:26]FM_GetShiftState done [19:38:26]req_shift_opened done [19:38:26]requested_item shift.open_date is exist - process it [19:38:26]req_shift_open_date [19:38:26]req_shift_open_date done [19:38:26]produce_requested_data done [19:38:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188878,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:38:26]process_action_free close_receipt [19:38:26]json_value_free [19:38:26]json_value_free done [19:38:26]process_json_proto returns [19:38:26]Send response to host [19:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188878,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:38:26]free response buf [19:38:26]execute_script done [19:38:26]execute_script returns [19:38:26]free content buf [19:38:26]Sock 9.Close socket [19:38:26]Sock 9.Thread stoped [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:17]accept exits with 8 [19:39:17]New connection [19:39:17]New thread 3066953060 created [19:39:17]Thread 3066809700 joined [19:39:17]Waiting for new connection... [19:39:17] Sock 8.Parse request [19:39:17]Sock 8.Check first char [19:39:17]Sock 8.First char is OK [19:39:17]request: POST /json_proto HTTP/1.0 [19:39:17]Method: POST [19:39:17]URL: /json_proto [19:39:17]Method is POST - this is cgi request [19:39:17]url: /json_proto [19:39:17]query_string will be loaded in cgi processing [19:39:17]execute_cgi json_proto POST (null) [19:39:17]execute_cgi path=json_proto method=POST [19:39:17]POST find Content-Length [19:39:17]Host: 172.17.42.131:8080 [19:39:17]Content-Length: 688 [19:39:17]Content-Type: application/json [19:39:17] [19:39:17]POST finish read [19:39:17]Found Content-Length = 688 [19:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:17]execute_script... [19:39:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:17]POST & json_proto [19:39:17]process_json_proto [19:39:17]json parsed OK: [19:39:17]protocol is kg_v1.0 [19:39:17]action value=close_receipt [19:39:17]process_action close_receipt [19:39:17]cmd_close_receipt [19:39:17]MH_GetDate [19:39:17]Write to MH i2c: F0 00 00 BA 04 AD [19:39:17]Write i2c OK [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: F0 [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: F0 09 00 [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: F0 09 00 BA 04 00 E6 50 19 67 A0 18 CA 66 54 [19:39:17]GetLastDocTimeStamp 1729712301 [19:39:17]current date 1729712358 [19:39:17]FM_GetShiftState [19:39:17]SAM_PROTO_GetShiftState [19:39:17]wFMCommunicate request_size=4 [19:39:17]MH_SAM_APDU [19:39:17]CAPDU: 80 13 01 00 [19:39:17]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [19:39:17]Write i2c OK [19:39:17]MH_I2C_Read... [19:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:17]Read from MH i2c: E2 [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: E2 0E 00 [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 24 [19:39:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:39:17]wFMCommunicate OK [19:39:17]SAM_PROTO_GetShiftState done [19:39:17]FM_GetShiftState done [19:39:17]opened in 1729642525 [19:39:17]opened+sec_in_day 1729728925 [19:39:17]quantity*price = 200025 [19:39:17]sum+1 = 200026 [19:39:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 337 23.10.2024 19:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188879 ФПД: 47430053424034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193918&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188879&fm=47430053424034&tin=02508201610067®Number=0000000000100030&sum=200000 [19:39:19]StoreToDocumentArchive [19:39:19]shift 462 fd 188879 [19:39:19]save to /storage/0462/doc_00188879 [19:39:19]save last doc name /storage/0462/doc_00188879 to /storage/kkm_last_doc_name [19:39:19]save OK [19:39:19]Clear old archive folders... [19:39:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:39:19]tlvbuf is 004DDF40 [19:39:19]SAM_PROTO_ClearQueue [19:39:19]wFMCommunicate request_size=4 [19:39:19]MH_SAM_APDU [19:39:19]CAPDU: 80 09 00 00 [19:39:19]Write to MH i2c: E2 08 00 C8 04 80 09 00 00 00 00 00 00 3E [19:39:19]Write i2c OK [19:39:19]MH_I2C_Read... [19:39:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:19]Read from MH i2c: E2 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 03 00 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [19:39:19]RAPDU: 90 00 [19:39:19]wFMCommunicate OK [19:39:19]SAM_PROTO_ClearQueue done [19:39:19]KKMCreateOFDPacket [19:39:19]OFDProtocolAddRootSTLVToBuf [19:39:19]FM_MakeSignedData [19:39:19]FM_MakeSignedData [19:39:19]SAM_PROTO_SignData [19:39:19]wFMCommunicate request_size=4 [19:39:19]MH_SAM_APDU [19:39:19]CAPDU: 80 0D 01 02 [19:39:19]Write to MH i2c: E2 08 00 C9 04 80 0D 01 02 00 00 00 00 46 [19:39:19]Write i2c OK [19:39:19]MH_I2C_Read... [19:39:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:19]Read from MH i2c: E2 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 03 00 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [19:39:19]RAPDU: 90 00 [19:39:19]wFMCommunicate OK [19:39:19]wFMCommunicate request_size=255 [19:39:19]MH_SAM_APDU [19:39:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 E6 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E1 02 [19:39:19]Write to MH i2c: E2 02 01 CA 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 E6 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E1 02 00 00 70 [19:39:19]Write i2c OK [19:39:19]MH_I2C_Read... [19:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:19]Read from MH i2c: E2 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 03 00 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [19:39:19]RAPDU: 90 00 [19:39:19]wFMCommunicate OK [19:39:19]wFMCommunicate request_size=16 [19:39:19]MH_SAM_APDU [19:39:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2B 23 2B 7C 6B A2 [19:39:19]Write to MH i2c: E2 13 00 CB 04 80 0D 02 02 0B 00 00 35 04 06 00 2B 23 2B 7C 6B A2 00 00 A0 [19:39:19]Write i2c OK [19:39:19]MH_I2C_Read... [19:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:19]Read from MH i2c: E2 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 03 00 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [19:39:19]RAPDU: 90 00 [19:39:19]wFMCommunicate OK [19:39:19]wFMCommunicate request_size=4 [19:39:19]MH_SAM_APDU [19:39:19]CAPDU: 80 0D 03 02 [19:39:19]Write to MH i2c: E2 08 00 CC 04 80 0D 03 02 00 00 00 00 4B [19:39:19]Write i2c OK [19:39:19]MH_I2C_Read... [19:39:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:19]Read from MH i2c: E2 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 0B 00 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 0B 00 CC 04 00 05 00 CF 71 3B B4 7F 89 90 00 88 [19:39:19]RAPDU: 05 00 CF 71 3B B4 7F 89 90 00 [19:39:19]wFMCommunicate OK [19:39:19]SAM_PROTO_SignData done [19:39:19]FM_MakeSignedData done [19:39:19]CreateOFDProtocolMessage [19:39:19]wFMCommunicate request_size=4 [19:39:19]MH_SAM_APDU [19:39:19]CAPDU: 80 11 00 00 [19:39:19]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [19:39:19]Write i2c OK [19:39:19]MH_I2C_Read... [19:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:19]Read from MH i2c: E2 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 17 00 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [19:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:39:19]wFMCommunicate OK [19:39:19]CreateOFDProtocolMessage done [19:39:19]OFDSenderStorePacket 188879 [19:39:19]StoreOFDPacket docnum=188879 [19:39:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BA A2 0D 01 C2 FD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 E6 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E1 02 00 35 04 06 00 2B 23 2B 7C 6B A2 05 00 CF 71 3B B4 7F 89 [19:39:19]CheckFolder [19:39:19]dirname=/storage/ofd_packets [19:39:19]CheckFolder done [19:39:19]ProducePacketName [19:39:19]name=ofd_packets/00188879 [19:39:19]NVStorageSaveData ofd_packets/00188879 [19:39:19]File name is /storage/ofd_packets/00188879 [19:39:19]Write 307 bytes [19:39:19]NVStorageSaveData done [19:39:19]OFDSenderStorePacket done [19:39:19]KKMCreateOFDPacket done [19:39:19]NVStorageSaveData kkm_last_timestamp [19:39:19]File name is /storage/kkm_last_timestamp [19:39:19]Write 4 bytes [19:39:19]NVStorageSaveData done [19:39:19]ExternCall_PrintAddStr [19:39:19]wPrintStart [19:39:19]Write to MH i2c: 01 00 00 CE 04 D2 [19:39:19]Write i2c OK [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: 01 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: 01 07 00 [19:39:19]MH_I2C_Read... [19:39:19]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [19:39:19]RasterBufferAndPrint [19:39:19]line Счет N : (1)210942 [19:39:19]line ИНН: 02508201610067 [19:39:19]line Контрольно-Кассовый Чек [19:39:19]line ПРОДАЖА [19:39:19]line ТРК (МРК, ГНК) : 31 [19:39:19]line Товар: 2710194210 [19:39:19]line D-ENERGY ДТ-К-5 [19:39:19]line 25.910 * 77.20 [19:39:19]line = 2000.25 [19:39:19]line НДС 12% НСП 1% [19:39:19]line > о реализуемом товаре [19:39:19]line ОКРУГЛЕНИЕ: -0.25 [19:39:19]line ИТОГО: 2000.00 [19:39:19]line Внесено: 2000.00 [19:39:19]line СДАЧА: 0.00 [19:39:19]line НСП 1% : 17.70 [19:39:19]line НДС 12% : 212.42 [19:39:19]line Наличными: 2000.00 [19:39:19]line Безнал.: 0.00 [19:39:19]line Место: АЗС № 86 "Партнер Нефть" [19:39:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:39:19]line СНО: Общий режим [19:39:19]line Чек 337 23.10.2024 19:39 [19:39:19]line Смена: 462 ФФД: 1.0 [19:39:19]line ЗНМ: 0300000155 [19:39:19]line РНМ: 0000000000100030 [19:39:19]line Версия ККМ: 001 [19:39:19]line ФМ: 0000000000965340 [19:39:19]line ФД: 188879 [19:39:19]line ФПД: 47430053424034 [19:39:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193918&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188879&fm=47430053424034&tin=02508201610067®Number=0000000000100030&sum=200000 [19:39:19]written 0, free lines is 4095 [19:39:19]OFD Sender: Processing packet 188879 [packets to send 1062, broken 1061] [19:39:19]ProducePacketName [19:39:19]name=ofd_packets/00188879 [19:39:19]OFD Sender: To server: pG, [19:39:19]CommunicateWithHost lk.salyk.kg:30040 [19:39:19]ConnectInit lk.salyk.kg [19:39:19]Connected sock=10 [19:39:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BA A2 0D 01 C2 FD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 E6 50 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E1 02 00 35 04 06 00 2B 23 2B 7C 6B A2 05 00 CF 71 3B B4 7F 89 [19:39:20]Write to MH i2c: 01 00 00 F9 04 FD [19:39:20]Write i2c OK [19:39:20]MH_I2C_Read... [19:39:20]Read from MH i2c: 01 [19:39:20]MH_I2C_Read... [19:39:20]Read from MH i2c: 01 07 00 [19:39:20]MH_I2C_Read... [19:39:20]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 58 0C 68 [19:39:20]RasterBufferAndPrint [19:39:20]line [19:39:20]line [19:39:20]line [19:39:20]line [19:39:20]line [19:39:20]written 0, free lines is 3164 [19:39:20]MH_Cut [19:39:20]Write to MH i2c: D1 01 00 00 05 01 D7 [19:39:20]Write i2c OK [19:39:20]MH_I2C_Read... [19:39:20]Read from MH i2c: D1 [19:39:20]MH_I2C_Read... [19:39:20]Read from MH i2c: D1 01 00 [19:39:20]MH_I2C_Read... [19:39:20]Read from MH i2c: D1 01 00 00 05 00 D6 [19:39:20]Write to MH i2c: 01 00 00 01 05 06 [19:39:20]Write i2c OK [19:39:20]MH_I2C_Read... [19:39:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B4 0D 47 00 F8 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E1 02 00 F4 03 04 00 D0 FA 18 67 B6 04 01 00 00 BA DB 19 75 ED E1 5F 37 [19:39:20]CommunicateWithHost err = 0 [19:39:20]CheckOFDResponse [19:39:20]1017 (14) - 77093643461234 [19:39:20]1041 (16) - 0000000000965340 [19:39:20]1040 (4) - 188879 [19:39:20]1012 (4) - 23.10.2024 13:32 [19:39:20]1206 (1) - 0 [19:39:20]OFD Sender: Remove packet 188879 [19:39:20]ProducePacketName [19:39:20]name=ofd_packets/00188879 [19:39:20]NVStorageDeleteData [19:39:20]OFD Sender: No OFD packet to send [19:39:21]*** Cut start [19:39:21]*** Partial cut [19:39:21]*** CUTSNS_PIN = 1 [19:39:21]*** CUTSNS_PIN = 0 [19:39:21]*** Brake cut motor [19:39:21]Read from MH i2c: 01 [19:39:22]MH_I2C_Read... [19:39:22]*** Stop cut motor [19:39:22]*** Cut end [19:39:22]Read from MH i2c: 01 07 00 [19:39:22]MH_I2C_Read... [19:39:22]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [19:39:22]process_action close_receipt done [19:39:22]requested_data is exist [19:39:22]produce_requested_data [19:39:22]requested_item fm.sn is exist - process it [19:39:22]wFMCommunicate request_size=4 [19:39:22]MH_SAM_APDU [19:39:22]CAPDU: 80 11 00 00 [19:39:22]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [19:39:22]Write i2c OK [19:39:22]MH_I2C_Read... [19:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:22]Read from MH i2c: E2 [19:39:22]MH_I2C_Read... [19:39:22]Read from MH i2c: E2 17 00 [19:39:22]MH_I2C_Read... [19:39:22]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [19:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:39:22]wFMCommunicate OK [19:39:22]requested_item fd.num is exist - process it [19:39:22]SAM_PROTO_GetFieldsCounters [19:39:22]wFMCommunicate request_size=4 [19:39:22]MH_SAM_APDU [19:39:22]CAPDU: 80 13 00 00 [19:39:22]Write to MH i2c: E2 08 00 03 05 80 13 00 00 00 00 00 00 84 [19:39:22]Write i2c OK [19:39:22]MH_I2C_Read... [19:39:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:22]Read from MH i2c: E2 [19:39:22]MH_I2C_Read... [19:39:22]Read from MH i2c: E2 62 00 [19:39:22]MH_I2C_Read... [19:39:22]Read from MH i2c: E2 62 00 03 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [19:39:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:22]wFMCommunicate OK [19:39:22]SAM_PROTO_GetFieldsCounters done [19:39:22]requested_item shift.num is exist - process it [19:39:22]requested_item shift.opened is exist - process it [19:39:22]req_shift_opened [19:39:22]FM_GetShiftState [19:39:22]SAM_PROTO_GetShiftState [19:39:22]wFMCommunicate request_size=4 [19:39:22]MH_SAM_APDU [19:39:22]CAPDU: 80 13 01 00 [19:39:22]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [19:39:22]Write i2c OK [19:39:22]MH_I2C_Read... [19:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:22]Read from MH i2c: E2 [19:39:22]MH_I2C_Read... [19:39:22]Read from MH i2c: E2 0E 00 [19:39:22]MH_I2C_Read... [19:39:22]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6E [19:39:22]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:39:22]wFMCommunicate OK [19:39:22]SAM_PROTO_GetShiftState done [19:39:22]FM_GetShiftState done [19:39:22]req_shift_opened done [19:39:22]requested_item shift.open_date is exist - process it [19:39:22]req_shift_open_date [19:39:22]req_shift_open_date done [19:39:22]produce_requested_data done [19:39:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188879,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:39:22]process_action_free close_receipt [19:39:22]json_value_free [19:39:22]json_value_free done [19:39:22]process_json_proto returns [19:39:22]Send response to host [19:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188879,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:39:22]free response buf [19:39:22]execute_script done [19:39:22]execute_script returns [19:39:22]free content buf [19:39:22]Sock 8.Close socket [19:39:22]Sock 8.Thread stoped [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:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:51]accept exits with 9 [19:51:51]New connection [19:51:51]New thread 3066809700 created [19:51:51]Thread 3066953060 joined [19:51:51]Waiting for new connection... [19:51:51] Sock 9.Parse request [19:51:51]Sock 9.Check first char [19:51:51]Sock 9.First char is OK [19:51:51]request: POST /json_proto HTTP/1.0 [19:51:51]Method: POST [19:51:51]URL: /json_proto [19:51:51]Method is POST - this is cgi request [19:51:51]url: /json_proto [19:51:51]query_string will be loaded in cgi processing [19:51:51]execute_cgi json_proto POST (null) [19:51:51]execute_cgi path=json_proto method=POST [19:51:51]POST find Content-Length [19:51:51]Host: 172.17.42.131:8080 [19:51:51]Content-Length: 677 [19:51:51]Content-Type: application/json [19:51:51] [19:51:51]POST finish read [19:51:51]Found Content-Length = 677 [19:51:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:51]execute_script... [19:51:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:51]POST & json_proto [19:51:51]process_json_proto [19:51:51]json parsed OK: [19:51:51]protocol is kg_v1.0 [19:51:51]action value=close_receipt [19:51:51]process_action close_receipt [19:51:51]cmd_close_receipt [19:51:51]MH_GetDate [19:51:51]Write to MH i2c: F0 00 00 05 05 F9 [19:51:51]Write i2c OK [19:51:51]MH_I2C_Read... [19:51:51]Read from MH i2c: F0 [19:51:51]MH_I2C_Read... [19:51:51]Read from MH i2c: F0 09 00 [19:51:51]MH_I2C_Read... [19:51:51]Read from MH i2c: F0 09 00 05 05 00 D7 53 19 67 A0 18 CA 66 94 [19:51:51]GetLastDocTimeStamp 1729712358 [19:51:51]current date 1729713111 [19:51:51]FM_GetShiftState [19:51:51]SAM_PROTO_GetShiftState [19:51:51]wFMCommunicate request_size=4 [19:51:51]MH_SAM_APDU [19:51:51]CAPDU: 80 13 01 00 [19:51:51]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [19:51:51]Write i2c OK [19:51:51]MH_I2C_Read... [19:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:51]Read from MH i2c: E2 [19:51:51]MH_I2C_Read... [19:51:51]Read from MH i2c: E2 0E 00 [19:51:51]MH_I2C_Read... [19:51:51]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 70 [19:51:51]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:51:51]wFMCommunicate OK [19:51:51]SAM_PROTO_GetShiftState done [19:51:51]FM_GetShiftState done [19:51:51]opened in 1729642525 [19:51:51]opened+sec_in_day 1729728925 [19:51:51]quantity*price = 50041 [19:51:51]sum+1 = 50042 [19:51:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 338 23.10.2024 19:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188880 ФПД: 156334695186309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188880&fm=156334695186309&tin=02508201610067®Number=0000000000100030&sum=50000 [19:51:52]StoreToDocumentArchive [19:51:52]shift 462 fd 188880 [19:51:52]save to /storage/0462/doc_00188880 [19:51:52]save last doc name /storage/0462/doc_00188880 to /storage/kkm_last_doc_name [19:51:52]save OK [19:51:52]Clear old archive folders... [19:51:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:51:52]tlvbuf is 004DE160 [19:51:52]SAM_PROTO_ClearQueue [19:51:52]wFMCommunicate request_size=4 [19:51:52]MH_SAM_APDU [19:51:52]CAPDU: 80 09 00 00 [19:51:52]Write to MH i2c: E2 08 00 13 05 80 09 00 00 00 00 00 00 8A [19:51:52]Write i2c OK [19:51:52]MH_I2C_Read... [19:51:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:52]Read from MH i2c: E2 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 03 00 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [19:51:52]RAPDU: 90 00 [19:51:52]wFMCommunicate OK [19:51:52]SAM_PROTO_ClearQueue done [19:51:52]KKMCreateOFDPacket [19:51:52]OFDProtocolAddRootSTLVToBuf [19:51:52]FM_MakeSignedData [19:51:52]FM_MakeSignedData [19:51:52]SAM_PROTO_SignData [19:51:52]wFMCommunicate request_size=4 [19:51:52]MH_SAM_APDU [19:51:52]CAPDU: 80 0D 01 02 [19:51:52]Write to MH i2c: E2 08 00 14 05 80 0D 01 02 00 00 00 00 92 [19:51:52]Write i2c OK [19:51:52]MH_I2C_Read... [19:51:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:52]Read from MH i2c: E2 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 03 00 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [19:51:52]RAPDU: 90 00 [19:51:52]wFMCommunicate OK [19:51:52]wFMCommunicate request_size=255 [19:51:52]MH_SAM_APDU [19:51:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D7 53 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E1 02 00 35 04 06 00 8E [19:51:52]Write to MH i2c: E2 02 01 15 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D7 53 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E1 02 00 35 04 06 00 8E 00 00 12 [19:51:52]Write i2c OK [19:51:52]MH_I2C_Read... [19:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:52]Read from MH i2c: E2 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 03 00 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [19:51:52]RAPDU: 90 00 [19:51:52]wFMCommunicate OK [19:51:52]wFMCommunicate request_size=10 [19:51:52]MH_SAM_APDU [19:51:52]CAPDU: 80 0D 02 02 05 2F 81 F8 FF 85 [19:51:52]Write to MH i2c: E2 0D 00 16 05 80 0D 02 02 05 00 2F 81 F8 FF 85 00 00 CB [19:51:52]Write i2c OK [19:51:52]MH_I2C_Read... [19:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:52]Read from MH i2c: E2 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 03 00 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [19:51:52]RAPDU: 90 00 [19:51:52]wFMCommunicate OK [19:51:52]wFMCommunicate request_size=4 [19:51:52]MH_SAM_APDU [19:51:52]CAPDU: 80 0D 03 02 [19:51:52]Write to MH i2c: E2 08 00 17 05 80 0D 03 02 00 00 00 00 97 [19:51:52]Write i2c OK [19:51:52]MH_I2C_Read... [19:51:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:52]Read from MH i2c: E2 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 0B 00 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 0B 00 17 05 00 07 B4 A9 C8 84 67 B5 17 90 00 7B [19:51:52]RAPDU: 07 B4 A9 C8 84 67 B5 17 90 00 [19:51:52]wFMCommunicate OK [19:51:52]SAM_PROTO_SignData done [19:51:52]FM_MakeSignedData done [19:51:52]CreateOFDProtocolMessage [19:51:52]wFMCommunicate request_size=4 [19:51:52]MH_SAM_APDU [19:51:52]CAPDU: 80 11 00 00 [19:51:52]Write to MH i2c: E2 08 00 18 05 80 11 00 00 00 00 00 00 97 [19:51:52]Write i2c OK [19:51:52]MH_I2C_Read... [19:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:52]Read from MH i2c: E2 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 17 00 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: E2 17 00 18 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [19:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:51:52]wFMCommunicate OK [19:51:52]CreateOFDProtocolMessage done [19:51:52]OFDSenderStorePacket 188880 [19:51:52]StoreOFDPacket docnum=188880 [19:51:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 E0 07 01 1C 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D7 53 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E1 02 00 35 04 06 00 8E 2F 81 F8 FF 85 07 B4 A9 C8 84 67 B5 17 [19:51:52]CheckFolder [19:51:52]dirname=/storage/ofd_packets [19:51:52]CheckFolder done [19:51:52]ProducePacketName [19:51:52]name=ofd_packets/00188880 [19:51:52]NVStorageSaveData ofd_packets/00188880 [19:51:52]File name is /storage/ofd_packets/00188880 [19:51:52]Write 301 bytes [19:51:52]NVStorageSaveData done [19:51:52]OFDSenderStorePacket done [19:51:52]KKMCreateOFDPacket done [19:51:52]NVStorageSaveData kkm_last_timestamp [19:51:52]File name is /storage/kkm_last_timestamp [19:51:52]Write 4 bytes [19:51:52]NVStorageSaveData done [19:51:52]ExternCall_PrintAddStr [19:51:52]wPrintStart [19:51:52]Write to MH i2c: 01 00 00 19 05 1E [19:51:52]Write i2c OK [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: 01 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: 01 07 00 [19:51:52]MH_I2C_Read... [19:51:52]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [19:51:52]RasterBufferAndPrint [19:51:52]line Счет N : (1)210943 [19:51:52]line ИНН: 02508201610067 [19:51:52]line Контрольно-Кассовый Чек [19:51:52]line ПРОДАЖА [19:51:52]line ТРК (МРК, ГНК) : 12 [19:51:52]line Товар: 2710124130 [19:51:52]line Аи-92-К-3 [19:51:52]line 7.480 * 66.90 [19:51:52]line = 500.41 [19:51:52]line НДС 12% НСП 1% [19:51:52]line > о реализуемом товаре [19:51:52]line ОКРУГЛЕНИЕ: -0.41 [19:51:52]line ИТОГО: 500.00 [19:51:52]line Внесено: 500.00 [19:51:52]line СДАЧА: 0.00 [19:51:52]line НСП 1% : 4.43 [19:51:52]line НДС 12% : 53.14 [19:51:52]line Наличными: 500.00 [19:51:52]line Безнал.: 0.00 [19:51:52]line Место: АЗС № 86 "Партнер Нефть" [19:51:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:51:52]line СНО: Общий режим [19:51:52]line Чек 338 23.10.2024 19:51 [19:51:52]line Смена: 462 ФФД: 1.0 [19:51:52]line ЗНМ: 0300000155 [19:51:52]line РНМ: 0000000000100030 [19:51:52]line Версия ККМ: 001 [19:51:52]line ФМ: 0000000000965340 [19:51:52]line ФД: 188880 [19:51:52]line ФПД: 156334695186309 [19:51:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188880&fm=156334695186309&tin=02508201610067®Number=0000000000100030&sum=50000 [19:51:52]written 0, free lines is 4095 [19:51:52]OFD Sender: Processing packet 188880 [packets to send 1062, broken 1061] [19:51:52]ProducePacketName [19:51:52]name=ofd_packets/00188880 [19:51:52]OFD Sender: To server: pG, [19:51:52]CommunicateWithHost lk.salyk.kg:30040 [19:51:52]ConnectInit lk.salyk.kg [19:51:53]Write to MH i2c: 01 00 00 44 05 49 [19:51:53]Write i2c OK [19:51:53]MH_I2C_Read... [19:51:53]Read from MH i2c: 01 [19:51:53]MH_I2C_Read... [19:51:53]Read from MH i2c: 01 07 00 [19:51:53]MH_I2C_Read... [19:51:53]Read from MH i2c: 01 07 00 44 05 00 00 00 00 00 50 0C AC [19:51:53]RasterBufferAndPrint [19:51:53]line [19:51:53]line [19:51:53]line [19:51:53]line [19:51:53]line [19:51:53]written 0, free lines is 3155 [19:51:53]MH_Cut [19:51:53]Write to MH i2c: D1 01 00 4B 05 01 22 [19:51:53]Write i2c OK [19:51:53]MH_I2C_Read... [19:51:53]Read from MH i2c: D1 [19:51:53]MH_I2C_Read... [19:51:53]Read from MH i2c: D1 01 00 [19:51:53]MH_I2C_Read... [19:51:53]Read from MH i2c: D1 01 00 4B 05 00 21 [19:51:53]Write to MH i2c: 01 00 00 4C 05 51 [19:51:53]Write i2c OK [19:51:53]MH_I2C_Read... [19:51:54]*** Cut start [19:51:54]*** Partial cut [19:51:54]*** CUTSNS_PIN = 1 [19:51:54]*** CUTSNS_PIN = 0 [19:51:54]*** Brake cut motor [19:51:55]Read from MH i2c: 01 [19:51:55]MH_I2C_Read... [19:51:55]*** Stop cut motor [19:51:55]*** Cut end [19:51:55]Read from MH i2c: 01 07 00 [19:51:55]MH_I2C_Read... [19:51:55]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 FF 0F 66 [19:51:55]process_action close_receipt done [19:51:55]requested_data is exist [19:51:55]produce_requested_data [19:51:55]requested_item fm.sn is exist - process it [19:51:55]wFMCommunicate request_size=4 [19:51:55]MH_SAM_APDU [19:51:55]CAPDU: 80 11 00 00 [19:51:55]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [19:51:55]Write i2c OK [19:51:55]MH_I2C_Read... [19:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:55]Read from MH i2c: E2 [19:51:55]MH_I2C_Read... [19:51:55]Read from MH i2c: E2 17 00 [19:51:55]MH_I2C_Read... [19:51:55]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [19:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:51:55]wFMCommunicate OK [19:51:55]requested_item fd.num is exist - process it [19:51:55]SAM_PROTO_GetFieldsCounters [19:51:55]wFMCommunicate request_size=4 [19:51:55]MH_SAM_APDU [19:51:55]CAPDU: 80 13 00 00 [19:51:55]Write to MH i2c: E2 08 00 4E 05 80 13 00 00 00 00 00 00 CF [19:51:55]Write i2c OK [19:51:55]MH_I2C_Read... [19:51:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:55]Read from MH i2c: E2 [19:51:55]MH_I2C_Read... [19:51:55]Read from MH i2c: E2 62 00 [19:51:55]MH_I2C_Read... [19:51:55]Read from MH i2c: E2 62 00 4E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [19:51:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:55]wFMCommunicate OK [19:51:55]SAM_PROTO_GetFieldsCounters done [19:51:55]requested_item shift.num is exist - process it [19:51:55]requested_item shift.opened is exist - process it [19:51:55]req_shift_opened [19:51:55]FM_GetShiftState [19:51:55]SAM_PROTO_GetShiftState [19:51:55]wFMCommunicate request_size=4 [19:51:55]MH_SAM_APDU [19:51:55]CAPDU: 80 13 01 00 [19:51:55]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [19:51:55]Write i2c OK [19:51:55]MH_I2C_Read... [19:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:55]Read from MH i2c: E2 [19:51:55]MH_I2C_Read... [19:51:55]Read from MH i2c: E2 0E 00 [19:51:55]MH_I2C_Read... [19:51:55]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B9 [19:51:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:51:55]wFMCommunicate OK [19:51:55]SAM_PROTO_GetShiftState done [19:51:55]FM_GetShiftState done [19:51:55]req_shift_opened done [19:51:55]requested_item shift.open_date is exist - process it [19:51:55]req_shift_open_date [19:51:55]req_shift_open_date done [19:51:55]produce_requested_data done [19:51:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188880,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:51:55]process_action_free close_receipt [19:51:55]json_value_free [19:51:55]json_value_free done [19:51:55]process_json_proto returns [19:51:55]Send response to host [19:51:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188880,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:51:55]free response buf [19:51:55]execute_script done [19:51:55]execute_script returns [19:51:55]free content buf [19:51:55]Sock 9.Close socket [19:51:55]Sock 9.Thread stoped [19:54:04]ConnectInit Can't connect to host [19:54:04]CommunicateWithHost connect error [19:54:04]CommunicateWithHost err = -1 [19:54:04]OFD Sender: Server communicate error [19:54:09]OFD Sender: Processing packet 188880 [packets to send 1062, broken 1061] [19:54:09]ProducePacketName [19:54:09]name=ofd_packets/00188880 [19:54:09]OFD Sender: To server: pG, [19:54:09]CommunicateWithHost lk.salyk.kg:30040 [19:54:09]ConnectInit lk.salyk.kg [19:54:09]Connected sock=9 [19:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 E0 07 01 1C 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D7 53 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E1 02 00 35 04 06 00 8E 2F 81 F8 FF 85 07 B4 A9 C8 84 67 B5 17 [19:54:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E C6 47 00 3B 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 36 35 33 34 30 10 04 04 00 D0 E1 02 00 F4 03 04 00 49 FE 18 67 B6 04 01 00 00 2D 53 A2 AD 0C 24 6F 01 [19:54:09]CommunicateWithHost err = 0 [19:54:09]CheckOFDResponse [19:54:09]1017 (14) - 77093643461234 [19:54:09]1041 (16) - 0000000000965340 [19:54:09]1040 (4) - 188880 [19:54:09]1012 (4) - 23.10.2024 13:46 [19:54:09]1206 (1) - 0 [19:54:09]OFD Sender: Remove packet 188880 [19:54:09]ProducePacketName [19:54:09]name=ofd_packets/00188880 [19:54:09]NVStorageDeleteData [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:02]accept exits with 8 [19:55:02]New connection [19:55:02]New thread 3066953060 created [19:55:02]Thread 3066809700 joined [19:55:02]Waiting for new connection... [19:55:02] Sock 8.Parse request [19:55:02]Sock 8.Check first char [19:55:02]Sock 8.First char is OK [19:55:02]request: POST /json_proto HTTP/1.0 [19:55:02]Method: POST [19:55:02]URL: /json_proto [19:55:02]Method is POST - this is cgi request [19:55:02]url: /json_proto [19:55:02]query_string will be loaded in cgi processing [19:55:02]execute_cgi json_proto POST (null) [19:55:02]execute_cgi path=json_proto method=POST [19:55:02]POST find Content-Length [19:55:02]Host: 172.17.42.131:8080 [19:55:02]Content-Length: 677 [19:55:02]Content-Type: application/json [19:55:02] [19:55:02]POST finish read [19:55:02]Found Content-Length = 677 [19:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:02]execute_script... [19:55:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:02]POST & json_proto [19:55:02]process_json_proto [19:55:02]json parsed OK: [19:55:02]protocol is kg_v1.0 [19:55:02]action value=close_receipt [19:55:02]process_action close_receipt [19:55:02]cmd_close_receipt [19:55:02]MH_GetDate [19:55:02]Write to MH i2c: F0 00 00 50 05 44 [19:55:02]Write i2c OK [19:55:02]MH_I2C_Read... [19:55:02]Read from MH i2c: F0 [19:55:02]MH_I2C_Read... [19:55:02]Read from MH i2c: F0 09 00 [19:55:02]MH_I2C_Read... [19:55:02]Read from MH i2c: F0 09 00 50 05 00 97 54 19 67 A0 18 CA 66 A0 [19:55:02]GetLastDocTimeStamp 1729713111 [19:55:02]current date 1729713303 [19:55:02]FM_GetShiftState [19:55:02]SAM_PROTO_GetShiftState [19:55:02]wFMCommunicate request_size=4 [19:55:02]MH_SAM_APDU [19:55:02]CAPDU: 80 13 01 00 [19:55:02]Write to MH i2c: E2 08 00 51 05 80 13 01 00 00 00 00 00 D3 [19:55:02]Write i2c OK [19:55:02]MH_I2C_Read... [19:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:02]Read from MH i2c: E2 [19:55:02]MH_I2C_Read... [19:55:02]Read from MH i2c: E2 0E 00 [19:55:02]MH_I2C_Read... [19:55:02]Read from MH i2c: E2 0E 00 51 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BB [19:55:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:55:02]wFMCommunicate OK [19:55:02]SAM_PROTO_GetShiftState done [19:55:02]FM_GetShiftState done [19:55:02]opened in 1729642525 [19:55:02]opened+sec_in_day 1729728925 [19:55:02]quantity*price = 50041 [19:55:02]sum+1 = 50042 [19:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 339 23.10.2024 19:55 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188881 ФПД: 182429378543139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188881&fm=182429378543139&tin=02508201610067®Number=0000000000100030&sum=50000 [19:55:03]StoreToDocumentArchive [19:55:03]shift 462 fd 188881 [19:55:03]save to /storage/0462/doc_00188881 [19:55:03]save last doc name /storage/0462/doc_00188881 to /storage/kkm_last_doc_name [19:55:03]save OK [19:55:03]Clear old archive folders... [19:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:03]tlvbuf is 004DFA90 [19:55:03]SAM_PROTO_ClearQueue [19:55:03]wFMCommunicate request_size=4 [19:55:03]MH_SAM_APDU [19:55:03]CAPDU: 80 09 00 00 [19:55:03]Write to MH i2c: E2 08 00 5E 05 80 09 00 00 00 00 00 00 D5 [19:55:03]Write i2c OK [19:55:03]MH_I2C_Read... [19:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:03]Read from MH i2c: E2 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 03 00 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [19:55:03]RAPDU: 90 00 [19:55:03]wFMCommunicate OK [19:55:03]SAM_PROTO_ClearQueue done [19:55:03]KKMCreateOFDPacket [19:55:03]OFDProtocolAddRootSTLVToBuf [19:55:03]FM_MakeSignedData [19:55:03]FM_MakeSignedData [19:55:03]SAM_PROTO_SignData [19:55:03]wFMCommunicate request_size=4 [19:55:03]MH_SAM_APDU [19:55:03]CAPDU: 80 0D 01 02 [19:55:03]Write to MH i2c: E2 08 00 5F 05 80 0D 01 02 00 00 00 00 DD [19:55:03]Write i2c OK [19:55:03]MH_I2C_Read... [19:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:03]Read from MH i2c: E2 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 03 00 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [19:55:03]RAPDU: 90 00 [19:55:03]wFMCommunicate OK [19:55:03]wFMCommunicate request_size=255 [19:55:03]MH_SAM_APDU [19:55:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 97 54 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E1 02 00 35 04 06 00 A5 [19:55:03]Write to MH i2c: E2 02 01 60 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 97 54 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E1 02 00 35 04 06 00 A5 00 00 37 [19:55:03]Write i2c OK [19:55:03]MH_I2C_Read... [19:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:03]Read from MH i2c: E2 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 03 00 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [19:55:03]RAPDU: 90 00 [19:55:03]wFMCommunicate OK [19:55:03]wFMCommunicate request_size=10 [19:55:03]MH_SAM_APDU [19:55:03]CAPDU: 80 0D 02 02 05 EB 26 4D FE 23 [19:55:03]Write to MH i2c: E2 0D 00 61 05 80 0D 02 02 05 00 EB 26 4D FE 23 00 00 69 [19:55:03]Write i2c OK [19:55:03]MH_I2C_Read... [19:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:03]Read from MH i2c: E2 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 03 00 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [19:55:03]RAPDU: 90 00 [19:55:03]wFMCommunicate OK [19:55:03]wFMCommunicate request_size=4 [19:55:03]MH_SAM_APDU [19:55:03]CAPDU: 80 0D 03 02 [19:55:03]Write to MH i2c: E2 08 00 62 05 80 0D 03 02 00 00 00 00 E2 [19:55:03]Write i2c OK [19:55:03]MH_I2C_Read... [19:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:03]Read from MH i2c: E2 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 0B 00 [19:55:03]MH_I2C_Read... [19:55:03]Read from MH i2c: E2 0B 00 62 05 00 43 94 E5 15 AA B4 57 3F 90 00 A8 [19:55:03]RAPDU: 43 94 E5 15 AA B4 57 3F 90 00 [19:55:03]wFMCommunicate OK [19:55:03]SAM_PROTO_SignData done [19:55:03]FM_MakeSignedData done [19:55:03]CreateOFDProtocolMessage [19:55:03]wFMCommunicate request_size=4 [19:55:03]MH_SAM_APDU [19:55:03]CAPDU: 80 11 00 00 [19:55:03]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [19:55:03]Write i2c OK [19:55:03]MH_I2C_Read... [19:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:04]Read from MH i2c: E2 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: E2 17 00 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [19:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:55:04]wFMCommunicate OK [19:55:04]CreateOFDProtocolMessage done [19:55:04]OFDSenderStorePacket 188881 [19:55:04]StoreOFDPacket docnum=188881 [19:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 DE 07 01 16 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 97 54 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E1 02 00 35 04 06 00 A5 EB 26 4D FE 23 43 94 E5 15 AA B4 57 3F [19:55:04]CheckFolder [19:55:04]dirname=/storage/ofd_packets [19:55:04]CheckFolder done [19:55:04]ProducePacketName [19:55:04]name=ofd_packets/00188881 [19:55:04]NVStorageSaveData ofd_packets/00188881 [19:55:04]File name is /storage/ofd_packets/00188881 [19:55:04]Write 301 bytes [19:55:04]NVStorageSaveData done [19:55:04]OFDSenderStorePacket done [19:55:04]KKMCreateOFDPacket done [19:55:04]NVStorageSaveData kkm_last_timestamp [19:55:04]File name is /storage/kkm_last_timestamp [19:55:04]Write 4 bytes [19:55:04]NVStorageSaveData done [19:55:04]ExternCall_PrintAddStr [19:55:04]wPrintStart [19:55:04]Write to MH i2c: 01 00 00 64 05 69 [19:55:04]Write i2c OK [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 64 05 00 00 00 00 00 FF 0F 7E [19:55:04]RasterBufferAndPrint [19:55:04]line Счет N : (1)210944 [19:55:04]line ИНН: 02508201610067 [19:55:04]line Контрольно-Кассовый Чек [19:55:04]line ПРОДАЖА [19:55:04]line ТРК (МРК, ГНК) : 42 [19:55:04]line Товар: 2710124130 [19:55:04]line Аи-92-К-3 [19:55:04]line 7.480 * 66.90 [19:55:04]line = 500.41 [19:55:04]line НДС 12% НСП 1% [19:55:04]line > о реализуемом товаре [19:55:04]line ОКРУГЛЕНИЕ: -0.41 [19:55:04]line ИТОГО: 500.00 [19:55:04]line Внесено: 500.00 [19:55:04]line СДАЧА: 0.00 [19:55:04]line НСП 1% : 4.43 [19:55:04]line НДС 12% : 53.14 [19:55:04]line Наличными: 500.00 [19:55:04]line Безнал.: 0.00 [19:55:04]line Место: АЗС № 86 "Партнер Нефть" [19:55:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:55:04]line СНО: Общий режим [19:55:04]line Чек 339 23.10.2024 19:55 [19:55:04]line Смена: 462 ФФД: 1.0 [19:55:04]line ЗНМ: 0300000155 [19:55:04]line РНМ: 0000000000100030 [19:55:04]line Версия ККМ: 001 [19:55:04]line ФМ: 0000000000965340 [19:55:04]line ФД: 188881 [19:55:04]line ФПД: 182429378543139 [19:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188881&fm=182429378543139&tin=02508201610067®Number=0000000000100030&sum=50000 [19:55:04]written 0, free lines is 4095 [19:55:04]OFD Sender: Processing packet 188881 [packets to send 1062, broken 1061] [19:55:04]ProducePacketName [19:55:04]name=ofd_packets/00188881 [19:55:04]OFD Sender: To server: pG, [19:55:04]CommunicateWithHost lk.salyk.kg:30040 [19:55:04]ConnectInit lk.salyk.kg [19:55:04]Connected sock=10 [19:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 DE 07 01 16 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 97 54 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E1 02 00 35 04 06 00 A5 EB 26 4D FE 23 43 94 E5 15 AA B4 57 3F [19:55:04]Write to MH i2c: 01 00 00 8F 05 94 [19:55:04]Write i2c OK [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 53 0C FA [19:55:04]RasterBufferAndPrint [19:55:04]line [19:55:04]line [19:55:04]line [19:55:04]line [19:55:04]line [19:55:04]written 0, free lines is 3159 [19:55:04]MH_Cut [19:55:04]Write to MH i2c: D1 01 00 96 05 01 6D [19:55:04]Write i2c OK [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: D1 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: D1 01 00 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: D1 01 00 96 05 00 6C [19:55:04]Write to MH i2c: 01 00 00 97 05 9C [19:55:04]Write i2c OK [19:55:04]MH_I2C_Read... [19:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 39 47 00 7B 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E1 02 00 F4 03 04 00 80 FE 18 67 B6 04 01 00 00 29 F8 A4 57 F4 D5 FA 2F [19:55:04]CommunicateWithHost err = 0 [19:55:04]CheckOFDResponse [19:55:04]1017 (14) - 77093643461234 [19:55:04]1041 (16) - 0000000000965340 [19:55:04]1040 (4) - 188881 [19:55:04]1012 (4) - 23.10.2024 13:47 [19:55:04]1206 (1) - 0 [19:55:04]OFD Sender: Remove packet 188881 [19:55:04]ProducePacketName [19:55:04]name=ofd_packets/00188881 [19:55:04]NVStorageDeleteData [19:55:05]OFD Sender: No OFD packet to send [19:55:05]*** Cut start [19:55:05]*** Partial cut [19:55:05]*** CUTSNS_PIN = 1 [19:55:05]*** CUTSNS_PIN = 0 [19:55:06]*** Brake cut motor [19:55:06]Read from MH i2c: 01 [19:55:06]MH_I2C_Read... [19:55:06]*** Stop cut motor [19:55:06]*** Cut end [19:55:06]Read from MH i2c: 01 07 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [19:55:06]process_action close_receipt done [19:55:06]requested_data is exist [19:55:06]produce_requested_data [19:55:06]requested_item fm.sn is exist - process it [19:55:06]wFMCommunicate request_size=4 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 11 00 00 [19:55:06]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 17 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [19:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:55:06]wFMCommunicate OK [19:55:06]requested_item fd.num is exist - process it [19:55:06]SAM_PROTO_GetFieldsCounters [19:55:06]wFMCommunicate request_size=4 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 13 00 00 [19:55:06]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 62 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 62 00 99 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [19:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:06]wFMCommunicate OK [19:55:06]SAM_PROTO_GetFieldsCounters done [19:55:06]requested_item shift.num is exist - process it [19:55:06]requested_item shift.opened is exist - process it [19:55:06]req_shift_opened [19:55:06]FM_GetShiftState [19:55:06]SAM_PROTO_GetShiftState [19:55:06]wFMCommunicate request_size=4 [19:55:06]MH_SAM_APDU [19:55:06]CAPDU: 80 13 01 00 [19:55:06]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [19:55:06]Write i2c OK [19:55:06]MH_I2C_Read... [19:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:06]Read from MH i2c: E2 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 0E 00 [19:55:06]MH_I2C_Read... [19:55:06]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 04 [19:55:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [19:55:06]wFMCommunicate OK [19:55:06]SAM_PROTO_GetShiftState done [19:55:06]FM_GetShiftState done [19:55:06]req_shift_opened done [19:55:06]requested_item shift.open_date is exist - process it [19:55:06]req_shift_open_date [19:55:06]req_shift_open_date done [19:55:06]produce_requested_data done [19:55:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188881,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [19:55:06]process_action_free close_receipt [19:55:06]json_value_free [19:55:06]json_value_free done [19:55:06]process_json_proto returns [19:55:06]Send response to host [19:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188881,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [19:55:06]free response buf [19:55:06]execute_script done [19:55:06]execute_script returns [19:55:06]free content buf [19:55:06]Sock 8.Close socket [19:55:06]Sock 8.Thread stoped [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01: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:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:57]accept exits with 9 [20:08:57]New connection [20:08:57]New thread 3066809700 created [20:08:57]Thread 3066953060 joined [20:08:57]Waiting for new connection... [20:08:57] Sock 9.Parse request [20:08:57]Sock 9.Check first char [20:08:57]Sock 9.First char is OK [20:08:57]request: POST /json_proto HTTP/1.0 [20:08:57]Method: POST [20:08:57]URL: /json_proto [20:08:57]Method is POST - this is cgi request [20:08:57]url: /json_proto [20:08:57]query_string will be loaded in cgi processing [20:08:57]execute_cgi json_proto POST (null) [20:08:57]execute_cgi path=json_proto method=POST [20:08:57]POST find Content-Length [20:08:57]Host: 172.17.42.131:8080 [20:08:57]Content-Length: 678 [20:08:57]Content-Type: application/json [20:08:57] [20:08:57]POST finish read [20:08:57]Found Content-Length = 678 [20:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:57]execute_script... [20:08:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:57]POST & json_proto [20:08:57]process_json_proto [20:08:57]json parsed OK: [20:08:57]protocol is kg_v1.0 [20:08:57]action value=close_receipt [20:08:57]process_action close_receipt [20:08:57]cmd_close_receipt [20:08:57]MH_GetDate [20:08:57]Write to MH i2c: F0 00 00 9B 05 8F [20:08:57]Write i2c OK [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: F0 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: F0 09 00 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: F0 09 00 9B 05 00 DA 57 19 67 A0 18 CA 66 31 [20:08:57]GetLastDocTimeStamp 1729713303 [20:08:57]current date 1729714138 [20:08:57]FM_GetShiftState [20:08:57]SAM_PROTO_GetShiftState [20:08:57]wFMCommunicate request_size=4 [20:08:57]MH_SAM_APDU [20:08:57]CAPDU: 80 13 01 00 [20:08:57]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [20:08:57]Write i2c OK [20:08:57]MH_I2C_Read... [20:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:57]Read from MH i2c: E2 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: E2 0E 00 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 06 [20:08:57]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:08:57]wFMCommunicate OK [20:08:57]SAM_PROTO_GetShiftState done [20:08:57]FM_GetShiftState done [20:08:57]opened in 1729642525 [20:08:57]opened+sec_in_day 1729728925 [20:08:57]quantity*price = 90004 [20:08:57]sum+1 = 90006 [20:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 340 23.10.2024 20:08 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188882 ФПД: 232424107550497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188882&fm=232424107550497&tin=02508201610067®Number=0000000000100030&sum=90000 [20:08:58]StoreToDocumentArchive [20:08:58]shift 462 fd 188882 [20:08:58]save to /storage/0462/doc_00188882 [20:08:58]save last doc name /storage/0462/doc_00188882 to /storage/kkm_last_doc_name [20:08:58]save OK [20:08:58]Clear old archive folders... [20:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:58]tlvbuf is 0051B9A0 [20:08:58]SAM_PROTO_ClearQueue [20:08:58]wFMCommunicate request_size=4 [20:08:58]MH_SAM_APDU [20:08:58]CAPDU: 80 09 00 00 [20:08:58]Write to MH i2c: E2 08 00 A9 05 80 09 00 00 00 00 00 00 20 [20:08:58]Write i2c OK [20:08:58]MH_I2C_Read... [20:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:58]Read from MH i2c: E2 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 03 00 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [20:08:58]RAPDU: 90 00 [20:08:58]wFMCommunicate OK [20:08:58]SAM_PROTO_ClearQueue done [20:08:58]KKMCreateOFDPacket [20:08:58]OFDProtocolAddRootSTLVToBuf [20:08:58]FM_MakeSignedData [20:08:58]FM_MakeSignedData [20:08:58]SAM_PROTO_SignData [20:08:58]wFMCommunicate request_size=4 [20:08:58]MH_SAM_APDU [20:08:58]CAPDU: 80 0D 01 02 [20:08:58]Write to MH i2c: E2 08 00 AA 05 80 0D 01 02 00 00 00 00 28 [20:08:58]Write i2c OK [20:08:58]MH_I2C_Read... [20:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:58]Read from MH i2c: E2 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 03 00 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [20:08:58]RAPDU: 90 00 [20:08:58]wFMCommunicate OK [20:08:58]wFMCommunicate request_size=255 [20:08:58]MH_SAM_APDU [20:08:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 DA 57 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E1 02 00 35 04 06 00 D3 [20:08:58]Write to MH i2c: E2 02 01 AB 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 DA 57 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E1 02 00 35 04 06 00 D3 00 00 8F [20:08:58]Write i2c OK [20:08:58]MH_I2C_Read... [20:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:58]OFD Sender: No OFD packet to send [20:08:58]Read from MH i2c: E2 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 03 00 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [20:08:58]RAPDU: 90 00 [20:08:58]wFMCommunicate OK [20:08:58]wFMCommunicate request_size=10 [20:08:58]MH_SAM_APDU [20:08:58]CAPDU: 80 0D 02 02 05 63 74 5E 27 21 [20:08:58]Write to MH i2c: E2 0D 00 AC 05 80 0D 02 02 05 00 63 74 5E 27 21 00 00 B2 [20:08:58]Write i2c OK [20:08:58]MH_I2C_Read... [20:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:58]Read from MH i2c: E2 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 03 00 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [20:08:58]RAPDU: 90 00 [20:08:58]wFMCommunicate OK [20:08:58]wFMCommunicate request_size=4 [20:08:58]MH_SAM_APDU [20:08:58]CAPDU: 80 0D 03 02 [20:08:58]Write to MH i2c: E2 08 00 AD 05 80 0D 03 02 00 00 00 00 2D [20:08:58]Write i2c OK [20:08:58]MH_I2C_Read... [20:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:59]Read from MH i2c: E2 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: E2 0B 00 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: E2 0B 00 AD 05 00 B9 17 EF A8 36 B4 74 4B 90 00 3E [20:08:59]RAPDU: B9 17 EF A8 36 B4 74 4B 90 00 [20:08:59]wFMCommunicate OK [20:08:59]SAM_PROTO_SignData done [20:08:59]FM_MakeSignedData done [20:08:59]CreateOFDProtocolMessage [20:08:59]wFMCommunicate request_size=4 [20:08:59]MH_SAM_APDU [20:08:59]CAPDU: 80 11 00 00 [20:08:59]Write to MH i2c: E2 08 00 AE 05 80 11 00 00 00 00 00 00 2D [20:08:59]Write i2c OK [20:08:59]MH_I2C_Read... [20:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:59]Read from MH i2c: E2 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: E2 17 00 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: E2 17 00 AE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [20:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:08:59]wFMCommunicate OK [20:08:59]CreateOFDProtocolMessage done [20:08:59]OFDSenderStorePacket 188882 [20:08:59]StoreOFDPacket docnum=188882 [20:08:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E4 7C 07 01 02 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 DA 57 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E1 02 00 35 04 06 00 D3 63 74 5E 27 21 B9 17 EF A8 36 B4 74 4B [20:08:59]CheckFolder [20:08:59]dirname=/storage/ofd_packets [20:08:59]CheckFolder done [20:08:59]ProducePacketName [20:08:59]name=ofd_packets/00188882 [20:08:59]NVStorageSaveData ofd_packets/00188882 [20:08:59]File name is /storage/ofd_packets/00188882 [20:08:59]Write 301 bytes [20:08:59]NVStorageSaveData done [20:08:59]OFDSenderStorePacket done [20:08:59]KKMCreateOFDPacket done [20:08:59]NVStorageSaveData kkm_last_timestamp [20:08:59]File name is /storage/kkm_last_timestamp [20:08:59]Write 4 bytes [20:08:59]NVStorageSaveData done [20:08:59]ExternCall_PrintAddStr [20:08:59]wPrintStart [20:08:59]Write to MH i2c: 01 00 00 AF 05 B4 [20:08:59]Write i2c OK [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: 01 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: 01 07 00 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 FF 0F C9 [20:08:59]RasterBufferAndPrint [20:08:59]line Счет N : (1)210946 [20:08:59]line ИНН: 02508201610067 [20:08:59]line Контрольно-Кассовый Чек [20:08:59]line ПРОДАЖА [20:08:59]line ТРК (МРК, ГНК) : 43 [20:08:59]line Товар: 2710124500 [20:08:59]line Аи-95-К-3 [20:08:59]line 12.130 * 74.20 [20:08:59]line = 900.05 [20:08:59]line НДС 12% НСП 1% [20:08:59]line > о реализуемом товаре [20:08:59]line ОКРУГЛЕНИЕ: -0.05 [20:08:59]line ИТОГО: 900.00 [20:08:59]line Внесено: 900.00 [20:08:59]line СДАЧА: 0.00 [20:08:59]line НСП 1% : 7.96 [20:08:59]line НДС 12% : 95.58 [20:08:59]line Наличными: 900.00 [20:08:59]line Безнал.: 0.00 [20:08:59]line Место: АЗС № 86 "Партнер Нефть" [20:08:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:08:59]line СНО: Общий режим [20:08:59]line Чек 340 23.10.2024 20:08 [20:08:59]line Смена: 462 ФФД: 1.0 [20:08:59]line ЗНМ: 0300000155 [20:08:59]line РНМ: 0000000000100030 [20:08:59]line Версия ККМ: 001 [20:08:59]line ФМ: 0000000000965340 [20:08:59]line ФД: 188882 [20:08:59]line ФПД: 232424107550497 [20:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188882&fm=232424107550497&tin=02508201610067®Number=0000000000100030&sum=90000 [20:08:59]written 0, free lines is 4095 [20:08:59]OFD Sender: Processing packet 188882 [packets to send 1062, broken 1061] [20:08:59]ProducePacketName [20:08:59]name=ofd_packets/00188882 [20:08:59]OFD Sender: To server: pG, [20:08:59]CommunicateWithHost lk.salyk.kg:30040 [20:08:59]ConnectInit lk.salyk.kg [20:08:59]Connected sock=10 [20:08:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E4 7C 07 01 02 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 DA 57 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E1 02 00 35 04 06 00 D3 63 74 5E 27 21 B9 17 EF A8 36 B4 74 4B [20:08:59]Write to MH i2c: 01 00 00 DA 05 DF [20:08:59]Write i2c OK [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: 01 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: 01 07 00 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: 01 07 00 DA 05 00 00 00 00 00 5E 0C 50 [20:08:59]RasterBufferAndPrint [20:08:59]line [20:08:59]line [20:08:59]line [20:08:59]line [20:08:59]line [20:08:59]written 0, free lines is 3170 [20:08:59]MH_Cut [20:08:59]Write to MH i2c: D1 01 00 E1 05 01 B8 [20:08:59]Write i2c OK [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: D1 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: D1 01 00 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: D1 01 00 E1 05 00 B7 [20:08:59]Write to MH i2c: 01 00 00 E2 05 E7 [20:08:59]Write i2c OK [20:08:59]MH_I2C_Read... [20:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 85 B4 47 00 EB 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 36 35 33 34 30 10 04 04 00 D2 E1 02 00 F4 03 04 00 C3 01 19 67 B6 04 01 00 00 9F F2 CD E9 CC 93 D8 FA [20:08:59]CommunicateWithHost err = 0 [20:08:59]CheckOFDResponse [20:08:59]1017 (14) - 77093643461234 [20:08:59]1041 (16) - 0000000000965340 [20:08:59]1040 (4) - 188882 [20:08:59]1012 (4) - 23.10.2024 14:01 [20:08:59]1206 (1) - 0 [20:08:59]OFD Sender: Remove packet 188882 [20:08:59]ProducePacketName [20:08:59]name=ofd_packets/00188882 [20:08:59]NVStorageDeleteData [20:09:00]OFD Sender: No OFD packet to send [20:09:00]*** Cut start [20:09:00]*** Partial cut [20:09:00]*** CUTSNS_PIN = 1 [20:09:00]*** CUTSNS_PIN = 0 [20:09:01]*** Brake cut motor [20:09:01]Read from MH i2c: 01 [20:09:01]MH_I2C_Read... [20:09:01]*** Stop cut motor [20:09:01]*** Cut end [20:09:01]Read from MH i2c: 01 07 00 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 FF 0F FC [20:09:01]process_action close_receipt done [20:09:01]requested_data is exist [20:09:01]produce_requested_data [20:09:01]requested_item fm.sn is exist - process it [20:09:01]wFMCommunicate request_size=4 [20:09:01]MH_SAM_APDU [20:09:01]CAPDU: 80 11 00 00 [20:09:01]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [20:09:01]Write i2c OK [20:09:01]MH_I2C_Read... [20:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:01]Read from MH i2c: E2 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: E2 17 00 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [20:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:09:01]wFMCommunicate OK [20:09:01]requested_item fd.num is exist - process it [20:09:01]SAM_PROTO_GetFieldsCounters [20:09:01]wFMCommunicate request_size=4 [20:09:01]MH_SAM_APDU [20:09:01]CAPDU: 80 13 00 00 [20:09:01]Write to MH i2c: E2 08 00 E4 05 80 13 00 00 00 00 00 00 65 [20:09:01]Write i2c OK [20:09:01]MH_I2C_Read... [20:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:01]Read from MH i2c: E2 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: E2 62 00 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: E2 62 00 E4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [20:09:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:01]wFMCommunicate OK [20:09:01]SAM_PROTO_GetFieldsCounters done [20:09:01]requested_item shift.num is exist - process it [20:09:01]requested_item shift.opened is exist - process it [20:09:01]req_shift_opened [20:09:01]FM_GetShiftState [20:09:01]SAM_PROTO_GetShiftState [20:09:01]wFMCommunicate request_size=4 [20:09:01]MH_SAM_APDU [20:09:01]CAPDU: 80 13 01 00 [20:09:01]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [20:09:01]Write i2c OK [20:09:01]MH_I2C_Read... [20:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:01]Read from MH i2c: E2 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: E2 0E 00 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4F [20:09:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:09:01]wFMCommunicate OK [20:09:01]SAM_PROTO_GetShiftState done [20:09:01]FM_GetShiftState done [20:09:01]req_shift_opened done [20:09:01]requested_item shift.open_date is exist - process it [20:09:01]req_shift_open_date [20:09:01]req_shift_open_date done [20:09:01]produce_requested_data done [20:09:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188882,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:09:01]process_action_free close_receipt [20:09:01]json_value_free [20:09:01]json_value_free done [20:09:01]process_json_proto returns [20:09:01]Send response to host [20:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188882,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:09:01]free response buf [20:09:01]execute_script done [20:09:01]execute_script returns [20:09:01]free content buf [20:09:01]Sock 9.Close socket [20:09:01]Sock 9.Thread stoped [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:09:59]accept exits with 8 [20:09:59]New connection [20:09:59]New thread 3066953060 created [20:09:59]Thread 3066809700 joined [20:09:59]Waiting for new connection... [20:09:59] Sock 8.Parse request [20:09:59]Sock 8.Check first char [20:09:59]Sock 8.First char is OK [20:09:59]request: POST /json_proto HTTP/1.0 [20:09:59]Method: POST [20:09:59]URL: /json_proto [20:09:59]Method is POST - this is cgi request [20:09:59]url: /json_proto [20:09:59]query_string will be loaded in cgi processing [20:09:59]execute_cgi json_proto POST (null) [20:09:59]execute_cgi path=json_proto method=POST [20:09:59]POST find Content-Length [20:09:59]Host: 172.17.42.131:8080 [20:09:59]Content-Length: 682 [20:09:59]Content-Type: application/json [20:09:59] [20:09:59]POST finish read [20:09:59]Found Content-Length = 682 [20:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:59]execute_script... [20:09:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:59]POST & json_proto [20:09:59]process_json_proto [20:09:59]json parsed OK: [20:09:59]protocol is kg_v1.0 [20:09:59]action value=close_receipt [20:09:59]process_action close_receipt [20:09:59]cmd_close_receipt [20:09:59]MH_GetDate [20:09:59]Write to MH i2c: F0 00 00 E6 05 DA [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: F0 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: F0 09 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: F0 09 00 E6 05 00 17 58 19 67 A0 18 CA 66 BA [20:09:59]GetLastDocTimeStamp 1729714138 [20:09:59]current date 1729714199 [20:09:59]FM_GetShiftState [20:09:59]SAM_PROTO_GetShiftState [20:09:59]wFMCommunicate request_size=4 [20:09:59]MH_SAM_APDU [20:09:59]CAPDU: 80 13 01 00 [20:09:59]Write to MH i2c: E2 08 00 E7 05 80 13 01 00 00 00 00 00 69 [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:59]Read from MH i2c: E2 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 0E 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 0E 00 E7 05 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 51 [20:09:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:09:59]wFMCommunicate OK [20:09:59]SAM_PROTO_GetShiftState done [20:09:59]FM_GetShiftState done [20:09:59]opened in 1729642525 [20:09:59]opened+sec_in_day 1729728925 [20:09:59]quantity*price = 100015 [20:09:59]sum+1 = 100017 [20:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 341 23.10.2024 20:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188883 ФПД: 209063063712254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200959&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188883&fm=209063063712254&tin=02508201610067®Number=0000000000100030&sum=100000 [20:10:00]StoreToDocumentArchive [20:10:00]shift 462 fd 188883 [20:10:00]save to /storage/0462/doc_00188883 [20:10:00]save last doc name /storage/0462/doc_00188883 to /storage/kkm_last_doc_name [20:10:00]save OK [20:10:00]Clear old archive folders... [20:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:00]tlvbuf is 004DED50 [20:10:00]SAM_PROTO_ClearQueue [20:10:00]wFMCommunicate request_size=4 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 09 00 00 [20:10:00]Write to MH i2c: E2 08 00 F4 05 80 09 00 00 00 00 00 00 6B [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [20:10:00]RAPDU: 90 00 [20:10:00]wFMCommunicate OK [20:10:00]SAM_PROTO_ClearQueue done [20:10:00]KKMCreateOFDPacket [20:10:00]OFDProtocolAddRootSTLVToBuf [20:10:00]FM_MakeSignedData [20:10:00]FM_MakeSignedData [20:10:00]SAM_PROTO_SignData [20:10:00]wFMCommunicate request_size=4 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 0D 01 02 [20:10:00]Write to MH i2c: E2 08 00 F5 05 80 0D 01 02 00 00 00 00 73 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [20:10:00]RAPDU: 90 00 [20:10:00]wFMCommunicate OK [20:10:00]wFMCommunicate request_size=255 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 17 58 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E1 02 00 35 04 06 00 BE [20:10:00]Write to MH i2c: E2 02 01 F6 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 17 58 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E1 02 00 35 04 06 00 BE 00 00 68 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]OFD Sender: No OFD packet to send [20:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [20:10:00]RAPDU: 90 00 [20:10:00]wFMCommunicate OK [20:10:00]wFMCommunicate request_size=10 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 0D 02 02 05 24 49 A5 F1 FE [20:10:00]Write to MH i2c: E2 0D 00 F7 05 80 0D 02 02 05 00 24 49 A5 F1 FE 00 00 81 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [20:10:00]RAPDU: 90 00 [20:10:00]wFMCommunicate OK [20:10:00]wFMCommunicate request_size=4 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 0D 03 02 [20:10:00]Write to MH i2c: E2 08 00 F8 05 80 0D 03 02 00 00 00 00 78 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 0B 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 0B 00 F8 05 00 2F 2B 91 2A 8E 07 98 4B 90 00 06 [20:10:00]RAPDU: 2F 2B 91 2A 8E 07 98 4B 90 00 [20:10:00]wFMCommunicate OK [20:10:00]SAM_PROTO_SignData done [20:10:00]FM_MakeSignedData done [20:10:00]CreateOFDProtocolMessage [20:10:00]wFMCommunicate request_size=4 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 11 00 00 [20:10:00]Write to MH i2c: E2 08 00 F9 05 80 11 00 00 00 00 00 00 78 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 17 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 17 00 F9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [20:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:10:00]wFMCommunicate OK [20:10:00]CreateOFDProtocolMessage done [20:10:00]OFDSenderStorePacket 188883 [20:10:00]StoreOFDPacket docnum=188883 [20:10:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D 94 07 01 39 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 17 58 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E1 02 00 35 04 06 00 BE 24 49 A5 F1 FE 2F 2B 91 2A 8E 07 98 4B [20:10:00]CheckFolder [20:10:00]dirname=/storage/ofd_packets [20:10:00]CheckFolder done [20:10:00]ProducePacketName [20:10:00]name=ofd_packets/00188883 [20:10:00]NVStorageSaveData ofd_packets/00188883 [20:10:00]File name is /storage/ofd_packets/00188883 [20:10:00]Write 301 bytes [20:10:00]NVStorageSaveData done [20:10:00]OFDSenderStorePacket done [20:10:00]KKMCreateOFDPacket done [20:10:00]NVStorageSaveData kkm_last_timestamp [20:10:00]File name is /storage/kkm_last_timestamp [20:10:00]Write 4 bytes [20:10:00]NVStorageSaveData done [20:10:00]ExternCall_PrintAddStr [20:10:00]wPrintStart [20:10:00]Write to MH i2c: 01 00 00 FA 05 FF [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 FA 05 00 00 00 00 00 FF 0F 14 [20:10:00]RasterBufferAndPrint [20:10:00]line Счет N : (1)210945 [20:10:00]line ИНН: 02508201610067 [20:10:00]line Контрольно-Кассовый Чек [20:10:00]line ПРОДАЖА [20:10:00]line ТРК (МРК, ГНК) : 32 [20:10:00]line Товар: 2710124130 [20:10:00]line Аи-92-К-3 [20:10:00]line 14.950 * 66.90 [20:10:00]line = 1000.16 [20:10:00]line НДС 12% НСП 1% [20:10:00]line > о реализуемом товаре [20:10:00]line ОКРУГЛЕНИЕ: -0.16 [20:10:00]line ИТОГО: 1000.00 [20:10:00]line Внесено: 1000.00 [20:10:00]line СДАЧА: 0.00 [20:10:00]line НСП 1% : 8.85 [20:10:00]line НДС 12% : 106.21 [20:10:00]line Наличными: 1000.00 [20:10:00]line Безнал.: 0.00 [20:10:00]line Место: АЗС № 86 "Партнер Нефть" [20:10:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:10:00]line СНО: Общий режим [20:10:00]line Чек 341 23.10.2024 20:09 [20:10:00]line Смена: 462 ФФД: 1.0 [20:10:00]line ЗНМ: 0300000155 [20:10:00]line РНМ: 0000000000100030 [20:10:00]line Версия ККМ: 001 [20:10:00]line ФМ: 0000000000965340 [20:10:00]line ФД: 188883 [20:10:00]line ФПД: 209063063712254 [20:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200959&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188883&fm=209063063712254&tin=02508201610067®Number=0000000000100030&sum=100000 [20:10:00]written 0, free lines is 4095 [20:10:00]OFD Sender: Processing packet 188883 [packets to send 1062, broken 1061] [20:10:00]ProducePacketName [20:10:00]name=ofd_packets/00188883 [20:10:00]OFD Sender: To server: pG, [20:10:00]CommunicateWithHost lk.salyk.kg:30040 [20:10:00]ConnectInit lk.salyk.kg [20:10:01]Connected sock=10 [20:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D 94 07 01 39 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 17 58 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E1 02 00 35 04 06 00 BE 24 49 A5 F1 FE 2F 2B 91 2A 8E 07 98 4B [20:10:01]Write to MH i2c: 01 00 00 25 06 2B [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: 01 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: 01 07 00 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 5F 0C 9D [20:10:01]RasterBufferAndPrint [20:10:01]line [20:10:01]line [20:10:01]line [20:10:01]line [20:10:01]line [20:10:01]written 0, free lines is 3170 [20:10:01]MH_Cut [20:10:01]Write to MH i2c: D1 01 00 2C 06 01 04 [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: D1 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: D1 01 00 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: D1 01 00 2C 06 00 03 [20:10:01]Write to MH i2c: 01 00 00 2D 06 33 [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D2 62 47 00 19 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E1 02 00 F4 03 04 00 01 02 19 67 B6 04 01 00 00 75 D4 49 D9 F4 65 19 9B [20:10:01]CommunicateWithHost err = 0 [20:10:01]CheckOFDResponse [20:10:01]1017 (14) - 77093643461234 [20:10:01]1041 (16) - 0000000000965340 [20:10:01]1040 (4) - 188883 [20:10:01]1012 (4) - 23.10.2024 14:02 [20:10:01]1206 (1) - 0 [20:10:01]OFD Sender: Remove packet 188883 [20:10:01]ProducePacketName [20:10:01]name=ofd_packets/00188883 [20:10:01]NVStorageDeleteData [20:10:02]OFD Sender: No OFD packet to send [20:10:02]*** Cut start [20:10:02]*** Partial cut [20:10:02]*** CUTSNS_PIN = 1 [20:10:02]*** CUTSNS_PIN = 0 [20:10:02]*** Brake cut motor [20:10:03]Read from MH i2c: 01 [20:10:03]MH_I2C_Read... [20:10:03]*** Stop cut motor [20:10:03]*** Cut end [20:10:03]Read from MH i2c: 01 07 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FF 0F 48 [20:10:03]process_action close_receipt done [20:10:03]requested_data is exist [20:10:03]produce_requested_data [20:10:03]requested_item fm.sn is exist - process it [20:10:03]wFMCommunicate request_size=4 [20:10:03]MH_SAM_APDU [20:10:03]CAPDU: 80 11 00 00 [20:10:03]Write to MH i2c: E2 08 00 2E 06 80 11 00 00 00 00 00 00 AE [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 17 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 17 00 2E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [20:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:10:03]wFMCommunicate OK [20:10:03]requested_item fd.num is exist - process it [20:10:03]SAM_PROTO_GetFieldsCounters [20:10:03]wFMCommunicate request_size=4 [20:10:03]MH_SAM_APDU [20:10:03]CAPDU: 80 13 00 00 [20:10:03]Write to MH i2c: E2 08 00 2F 06 80 13 00 00 00 00 00 00 B1 [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 62 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 62 00 2F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [20:10:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:03]wFMCommunicate OK [20:10:03]SAM_PROTO_GetFieldsCounters done [20:10:03]requested_item shift.num is exist - process it [20:10:03]requested_item shift.opened is exist - process it [20:10:03]req_shift_opened [20:10:03]FM_GetShiftState [20:10:03]SAM_PROTO_GetShiftState [20:10:03]wFMCommunicate request_size=4 [20:10:03]MH_SAM_APDU [20:10:03]CAPDU: 80 13 01 00 [20:10:03]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 0E 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9B [20:10:03]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:10:03]wFMCommunicate OK [20:10:03]SAM_PROTO_GetShiftState done [20:10:03]FM_GetShiftState done [20:10:03]req_shift_opened done [20:10:03]requested_item shift.open_date is exist - process it [20:10:03]req_shift_open_date [20:10:03]req_shift_open_date done [20:10:03]produce_requested_data done [20:10:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188883,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:10:03]process_action_free close_receipt [20:10:03]json_value_free [20:10:03]json_value_free done [20:10:03]process_json_proto returns [20:10:03]Send response to host [20:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188883,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:10:03]free response buf [20:10:03]execute_script done [20:10:03]execute_script returns [20:10:03]free content buf [20:10:03]Sock 8.Close socket [20:10:03]Sock 8.Thread stoped [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:01]accept exits with 9 [20:15:01]New connection [20:15:01]New thread 3066809700 created [20:15:01]Thread 3066953060 joined [20:15:01]Waiting for new connection... [20:15:01] Sock 9.Parse request [20:15:01]Sock 9.Check first char [20:15:01]Sock 9.First char is OK [20:15:01]request: POST /json_proto HTTP/1.0 [20:15:01]Method: POST [20:15:01]URL: /json_proto [20:15:01]Method is POST - this is cgi request [20:15:01]url: /json_proto [20:15:01]query_string will be loaded in cgi processing [20:15:01]execute_cgi json_proto POST (null) [20:15:01]execute_cgi path=json_proto method=POST [20:15:01]POST find Content-Length [20:15:01]Host: 172.17.42.131:8080 [20:15:01]Content-Length: 682 [20:15:01]Content-Type: application/json [20:15:01] [20:15:01]POST finish read [20:15:01]Found Content-Length = 682 [20:15:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:01]execute_script... [20:15:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:01]POST & json_proto [20:15:01]process_json_proto [20:15:01]json parsed OK: [20:15:01]protocol is kg_v1.0 [20:15:01]action value=close_receipt [20:15:01]process_action close_receipt [20:15:01]cmd_close_receipt [20:15:01]MH_GetDate [20:15:01]Write to MH i2c: F0 00 00 31 06 26 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: F0 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: F0 09 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: F0 09 00 31 06 00 46 59 19 67 A0 18 CA 66 36 [20:15:01]GetLastDocTimeStamp 1729714199 [20:15:01]current date 1729714502 [20:15:01]FM_GetShiftState [20:15:01]SAM_PROTO_GetShiftState [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 13 01 00 [20:15:01]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 0E 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9D [20:15:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:15:01]wFMCommunicate OK [20:15:01]SAM_PROTO_GetShiftState done [20:15:01]FM_GetShiftState done [20:15:01]opened in 1729642525 [20:15:01]opened+sec_in_day 1729728925 [20:15:01]quantity*price = 100015 [20:15:01]sum+1 = 100017 [20:15:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 342 23.10.2024 20:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188884 ФПД: 197718031639875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201502&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188884&fm=197718031639875&tin=02508201610067®Number=0000000000100030&sum=100000 [20:15:02]StoreToDocumentArchive [20:15:02]shift 462 fd 188884 [20:15:02]save to /storage/0462/doc_00188884 [20:15:02]save last doc name /storage/0462/doc_00188884 to /storage/kkm_last_doc_name [20:15:02]save OK [20:15:02]Clear old archive folders... [20:15:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:02]tlvbuf is 004DFCB0 [20:15:02]SAM_PROTO_ClearQueue [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 09 00 00 [20:15:02]Write to MH i2c: E2 08 00 3F 06 80 09 00 00 00 00 00 00 B7 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]SAM_PROTO_ClearQueue done [20:15:02]KKMCreateOFDPacket [20:15:02]OFDProtocolAddRootSTLVToBuf [20:15:02]FM_MakeSignedData [20:15:02]FM_MakeSignedData [20:15:02]SAM_PROTO_SignData [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 01 02 [20:15:02]Write to MH i2c: E2 08 00 40 06 80 0D 01 02 00 00 00 00 BF [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]wFMCommunicate request_size=255 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 46 59 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E1 02 00 35 04 06 00 B3 [20:15:02]Write to MH i2c: E2 02 01 41 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 46 59 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E1 02 00 35 04 06 00 B3 00 00 DB [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]wFMCommunicate request_size=10 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 02 02 05 D2 D1 0A A5 43 [20:15:02]Write to MH i2c: E2 0D 00 42 06 80 0D 02 02 05 00 D2 D1 0A A5 43 00 00 61 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 03 02 [20:15:02]Write to MH i2c: E2 08 00 43 06 80 0D 03 02 00 00 00 00 C4 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 0B 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 0B 00 43 06 00 1D 41 12 69 84 32 68 37 90 00 F3 [20:15:02]RAPDU: 1D 41 12 69 84 32 68 37 90 00 [20:15:02]wFMCommunicate OK [20:15:02]SAM_PROTO_SignData done [20:15:02]FM_MakeSignedData done [20:15:02]CreateOFDProtocolMessage [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 11 00 00 [20:15:02]Write to MH i2c: E2 08 00 44 06 80 11 00 00 00 00 00 00 C4 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 17 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 17 00 44 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [20:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:15:02]wFMCommunicate OK [20:15:02]CreateOFDProtocolMessage done [20:15:02]OFDSenderStorePacket 188884 [20:15:02]StoreOFDPacket docnum=188884 [20:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C8 05 07 01 E8 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 46 59 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E1 02 00 35 04 06 00 B3 D2 D1 0A A5 43 1D 41 12 69 84 32 68 37 [20:15:02]CheckFolder [20:15:02]dirname=/storage/ofd_packets [20:15:02]CheckFolder done [20:15:02]ProducePacketName [20:15:02]name=ofd_packets/00188884 [20:15:02]NVStorageSaveData ofd_packets/00188884 [20:15:02]File name is /storage/ofd_packets/00188884 [20:15:02]Write 301 bytes [20:15:02]NVStorageSaveData done [20:15:02]OFDSenderStorePacket done [20:15:02]KKMCreateOFDPacket done [20:15:02]NVStorageSaveData kkm_last_timestamp [20:15:02]File name is /storage/kkm_last_timestamp [20:15:02]Write 4 bytes [20:15:02]NVStorageSaveData done [20:15:02]ExternCall_PrintAddStr [20:15:02]wPrintStart [20:15:02]Write to MH i2c: 01 00 00 45 06 4B [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 07 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 07 00 45 06 00 00 00 00 00 FF 0F 60 [20:15:02]RasterBufferAndPrint [20:15:02]line Счет N : (1)210947 [20:15:02]line ИНН: 02508201610067 [20:15:02]line Контрольно-Кассовый Чек [20:15:02]line ПРОДАЖА [20:15:02]line ТРК (МРК, ГНК) : 12 [20:15:02]line Товар: 2710124130 [20:15:02]line Аи-92-К-3 [20:15:02]line 14.950 * 66.90 [20:15:02]line = 1000.16 [20:15:02]line НДС 12% НСП 1% [20:15:02]line > о реализуемом товаре [20:15:02]line ОКРУГЛЕНИЕ: -0.16 [20:15:02]line ИТОГО: 1000.00 [20:15:02]line Внесено: 1000.00 [20:15:02]line СДАЧА: 0.00 [20:15:02]line НСП 1% : 8.85 [20:15:02]line НДС 12% : 106.21 [20:15:02]line Наличными: 1000.00 [20:15:02]line Безнал.: 0.00 [20:15:02]line Место: АЗС № 86 "Партнер Нефть" [20:15:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:15:02]line СНО: Общий режим [20:15:02]line Чек 342 23.10.2024 20:15 [20:15:02]line Смена: 462 ФФД: 1.0 [20:15:02]line ЗНМ: 0300000155 [20:15:02]line РНМ: 0000000000100030 [20:15:02]line Версия ККМ: 001 [20:15:02]line ФМ: 0000000000965340 [20:15:02]line ФД: 188884 [20:15:02]line ФПД: 197718031639875 [20:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201502&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188884&fm=197718031639875&tin=02508201610067®Number=0000000000100030&sum=100000 [20:15:02]written 0, free lines is 4095 [20:15:03]OFD Sender: Processing packet 188884 [packets to send 1062, broken 1061] [20:15:03]ProducePacketName [20:15:03]name=ofd_packets/00188884 [20:15:03]OFD Sender: To server: pG, [20:15:03]CommunicateWithHost lk.salyk.kg:30040 [20:15:03]ConnectInit lk.salyk.kg [20:15:03]Connected sock=10 [20:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C8 05 07 01 E8 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 46 59 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E1 02 00 35 04 06 00 B3 D2 D1 0A A5 43 1D 41 12 69 84 32 68 37 [20:15:03]Write to MH i2c: 01 00 00 70 06 76 [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 07 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 57 0C E0 [20:15:03]RasterBufferAndPrint [20:15:03]line [20:15:03]line [20:15:03]line [20:15:03]line [20:15:03]line [20:15:03]written 0, free lines is 3163 [20:15:03]MH_Cut [20:15:03]Write to MH i2c: D1 01 00 77 06 01 4F [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: D1 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: D1 01 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: D1 01 00 77 06 00 4E [20:15:03]Write to MH i2c: 01 00 00 78 06 7E [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D4 BA 47 00 D7 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E1 02 00 F4 03 04 00 2F 03 19 67 B6 04 01 00 00 A2 9A 99 F0 84 9D 13 8B [20:15:03]CommunicateWithHost err = 0 [20:15:03]CheckOFDResponse [20:15:03]1017 (14) - 77093643461234 [20:15:03]1041 (16) - 0000000000965340 [20:15:03]1040 (4) - 188884 [20:15:03]1012 (4) - 23.10.2024 14:07 [20:15:03]1206 (1) - 0 [20:15:03]OFD Sender: Remove packet 188884 [20:15:03]ProducePacketName [20:15:03]name=ofd_packets/00188884 [20:15:03]NVStorageDeleteData [20:15:04]OFD Sender: No OFD packet to send [20:15:04]*** Cut start [20:15:04]*** Partial cut [20:15:04]*** CUTSNS_PIN = 1 [20:15:04]*** CUTSNS_PIN = 0 [20:15:05]*** Brake cut motor [20:15:05]Read from MH i2c: 01 [20:15:05]MH_I2C_Read... [20:15:05]*** Stop cut motor [20:15:05]*** Cut end [20:15:05]Read from MH i2c: 01 07 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 FF 0F 93 [20:15:05]process_action close_receipt done [20:15:05]requested_data is exist [20:15:05]produce_requested_data [20:15:05]requested_item fm.sn is exist - process it [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 11 00 00 [20:15:05]Write to MH i2c: E2 08 00 79 06 80 11 00 00 00 00 00 00 F9 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 17 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 17 00 79 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [20:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:15:05]wFMCommunicate OK [20:15:05]requested_item fd.num is exist - process it [20:15:05]SAM_PROTO_GetFieldsCounters [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 13 00 00 [20:15:05]Write to MH i2c: E2 08 00 7A 06 80 13 00 00 00 00 00 00 FC [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 62 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 62 00 7A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [20:15:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:05]wFMCommunicate OK [20:15:05]SAM_PROTO_GetFieldsCounters done [20:15:05]requested_item shift.num is exist - process it [20:15:05]requested_item shift.opened is exist - process it [20:15:05]req_shift_opened [20:15:05]FM_GetShiftState [20:15:05]SAM_PROTO_GetShiftState [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 13 01 00 [20:15:05]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 0E 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 0E 00 7B 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E6 [20:15:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:15:05]wFMCommunicate OK [20:15:05]SAM_PROTO_GetShiftState done [20:15:05]FM_GetShiftState done [20:15:05]req_shift_opened done [20:15:05]requested_item shift.open_date is exist - process it [20:15:05]req_shift_open_date [20:15:05]req_shift_open_date done [20:15:05]produce_requested_data done [20:15:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188884,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:15:05]process_action_free close_receipt [20:15:05]json_value_free [20:15:05]json_value_free done [20:15:05]process_json_proto returns [20:15:05]Send response to host [20:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188884,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:15:05]free response buf [20:15:05]execute_script done [20:15:05]execute_script returns [20:15:05]free content buf [20:15:05]Sock 9.Close socket [20:15:05]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]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:47]accept exits with 8 [20:20:47]New connection [20:20:47]New thread 3066953060 created [20:20:47]Thread 3066809700 joined [20:20:47]Waiting for new connection... [20:20:47] Sock 8.Parse request [20:20:47]Sock 8.Check first char [20:20:47]Sock 8.First char is OK [20:20:47]request: POST /json_proto HTTP/1.0 [20:20:47]Method: POST [20:20:47]URL: /json_proto [20:20:47]Method is POST - this is cgi request [20:20:47]url: /json_proto [20:20:47]query_string will be loaded in cgi processing [20:20:47]execute_cgi json_proto POST (null) [20:20:47]execute_cgi path=json_proto method=POST [20:20:47]POST find Content-Length [20:20:47]Host: 172.17.42.131:8080 [20:20:47]Content-Length: 766 [20:20:47]Content-Type: application/json [20:20:47] [20:20:47]POST finish read [20:20:47]Found Content-Length = 766 [20:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:47]execute_script... [20:20:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:47]POST & json_proto [20:20:47]process_json_proto [20:20:47]json parsed OK: [20:20:47]protocol is kg_v1.0 [20:20:47]action value=close_receipt [20:20:47]process_action close_receipt [20:20:47]cmd_close_receipt [20:20:47]MH_GetDate [20:20:47]Write to MH i2c: F0 00 00 7C 06 71 [20:20:47]Write i2c OK [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: F0 [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: F0 09 00 [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: F0 09 00 7C 06 00 A0 5A 19 67 A0 18 CA 66 DC [20:20:47]GetLastDocTimeStamp 1729714502 [20:20:47]current date 1729714848 [20:20:47]FM_GetShiftState [20:20:47]SAM_PROTO_GetShiftState [20:20:47]wFMCommunicate request_size=4 [20:20:47]MH_SAM_APDU [20:20:47]CAPDU: 80 13 01 00 [20:20:47]Write to MH i2c: E2 08 00 7D 06 80 13 01 00 00 00 00 00 00 [20:20:47]Write i2c OK [20:20:47]MH_I2C_Read... [20:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:47]Read from MH i2c: E2 [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: E2 0E 00 [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: E2 0E 00 7D 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E8 [20:20:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:20:47]wFMCommunicate OK [20:20:47]SAM_PROTO_GetShiftState done [20:20:47]FM_GetShiftState done [20:20:47]opened in 1729642525 [20:20:47]opened+sec_in_day 1729728925 [20:20:47]quantity*price = 60009 [20:20:47]sum+1 = 60010 [20:20:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 343 23.10.2024 20:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188885 ФПД: 164139646592382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202048&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188885&fm=164139646592382&tin=02508201610067®Number=0000000000100030&sum=60009 [20:20:49]StoreToDocumentArchive [20:20:49]shift 462 fd 188885 [20:20:49]save to /storage/0462/doc_00188885 [20:20:49]save last doc name /storage/0462/doc_00188885 to /storage/kkm_last_doc_name [20:20:49]save OK [20:20:49]Clear old archive folders... [20:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:49]tlvbuf is 004FE370 [20:20:49]SAM_PROTO_ClearQueue [20:20:49]wFMCommunicate request_size=4 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 09 00 00 [20:20:49]Write to MH i2c: E2 08 00 8A 06 80 09 00 00 00 00 00 00 02 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [20:20:49]RAPDU: 90 00 [20:20:49]wFMCommunicate OK [20:20:49]SAM_PROTO_ClearQueue done [20:20:49]KKMCreateOFDPacket [20:20:49]OFDProtocolAddRootSTLVToBuf [20:20:49]FM_MakeSignedData [20:20:49]FM_MakeSignedData [20:20:49]SAM_PROTO_SignData [20:20:49]wFMCommunicate request_size=4 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 0D 01 02 [20:20:49]Write to MH i2c: E2 08 00 8B 06 80 0D 01 02 00 00 00 00 0A [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [20:20:49]RAPDU: 90 00 [20:20:49]wFMCommunicate OK [20:20:49]wFMCommunicate request_size=255 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 A0 5A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E1 02 00 35 04 06 00 95 [20:20:49]Write to MH i2c: E2 02 01 8C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 A0 5A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E1 02 00 35 04 06 00 95 00 00 5A [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [20:20:49]RAPDU: 90 00 [20:20:49]wFMCommunicate OK [20:20:49]wFMCommunicate request_size=10 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 0D 02 02 05 48 BD 54 25 7E [20:20:49]Write to MH i2c: E2 0D 00 8D 06 80 0D 02 02 05 00 48 BD 54 25 7E 00 00 13 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [20:20:49]RAPDU: 90 00 [20:20:49]wFMCommunicate OK [20:20:49]wFMCommunicate request_size=4 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 0D 03 02 [20:20:49]Write to MH i2c: E2 08 00 8E 06 80 0D 03 02 00 00 00 00 0F [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 0B 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 0B 00 8E 06 00 36 69 FE D2 30 EC EB 5D 90 00 E3 [20:20:49]RAPDU: 36 69 FE D2 30 EC EB 5D 90 00 [20:20:49]wFMCommunicate OK [20:20:49]SAM_PROTO_SignData done [20:20:49]FM_MakeSignedData done [20:20:49]CreateOFDProtocolMessage [20:20:49]wFMCommunicate request_size=4 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 11 00 00 [20:20:49]Write to MH i2c: E2 08 00 8F 06 80 11 00 00 00 00 00 00 0F [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 17 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 17 00 8F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [20:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:49]wFMCommunicate OK [20:20:49]CreateOFDProtocolMessage done [20:20:49]OFDSenderStorePacket 188885 [20:20:49]StoreOFDPacket docnum=188885 [20:20:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C2 72 07 01 43 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 A0 5A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E1 02 00 35 04 06 00 95 48 BD 54 25 7E 36 69 FE D2 30 EC EB 5D [20:20:49]CheckFolder [20:20:49]dirname=/storage/ofd_packets [20:20:49]CheckFolder done [20:20:49]ProducePacketName [20:20:49]name=ofd_packets/00188885 [20:20:49]NVStorageSaveData ofd_packets/00188885 [20:20:49]File name is /storage/ofd_packets/00188885 [20:20:49]Write 301 bytes [20:20:49]NVStorageSaveData done [20:20:49]OFDSenderStorePacket done [20:20:49]KKMCreateOFDPacket done [20:20:49]NVStorageSaveData kkm_last_timestamp [20:20:49]File name is /storage/kkm_last_timestamp [20:20:49]Write 4 bytes [20:20:49]NVStorageSaveData done [20:20:49]ExternCall_PrintAddStr [20:20:49]wPrintStart [20:20:49]Write to MH i2c: 01 00 00 90 06 96 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 FF 0F AB [20:20:49]RasterBufferAndPrint [20:20:49]line Счет N : (1)210948 [20:20:49]line ИНН: 02508201610067 [20:20:49]line Контрольно-Кассовый Чек [20:20:49]line ПРОДАЖА [20:20:49]line ТРК (МРК, ГНК) : 32 [20:20:49]line Товар: 2710124130 [20:20:49]line Аи-92-К-3 [20:20:49]line 8.970 * 66.90 [20:20:49]line = 600.09 [20:20:49]line НДС 12% НСП 1% [20:20:49]line > о реализуемом товаре [20:20:49]line ИТОГО: 600.09 [20:20:49]line НСП 1% : 5.31 [20:20:49]line НДС 12% : 63.73 [20:20:49]line Наличными: 0.00 [20:20:49]line Безнал.: 600.09 [20:20:49]line Место: АЗС № 86 "Партнер Нефть" [20:20:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:20:49]line СНО: Общий режим [20:20:49]line Чек 343 23.10.2024 20:20 [20:20:49]line Смена: 462 ФФД: 1.0 [20:20:49]line ЗНМ: 0300000155 [20:20:49]line РНМ: 0000000000100030 [20:20:49]line Версия ККМ: 001 [20:20:49]line Платежная система: Mbank [20:20:49]line ФМ: 0000000000965340 [20:20:49]line ФД: 188885 [20:20:49]line ФПД: 164139646592382 [20:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202048&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188885&fm=164139646592382&tin=02508201610067®Number=0000000000100030&sum=60009 [20:20:49]OFD Sender: Processing packet 188885 [packets to send 1062, broken 1061] [20:20:49]ProducePacketName [20:20:49]name=ofd_packets/00188885 [20:20:49]OFD Sender: To server: pG, [20:20:49]CommunicateWithHost lk.salyk.kg:30040 [20:20:49]ConnectInit lk.salyk.kg [20:20:49]written 0, free lines is 4095 [20:20:49]Connected sock=10 [20:20:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C2 72 07 01 43 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 A0 5A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E1 02 00 35 04 06 00 95 48 BD 54 25 7E 36 69 FE D2 30 EC EB 5D [20:20:50]Write to MH i2c: 01 00 00 B9 06 BF [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 07 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 93 0C 65 [20:20:50]RasterBufferAndPrint [20:20:50]line [20:20:50]line [20:20:50]line [20:20:50]line [20:20:50]line [20:20:50]written 0, free lines is 3223 [20:20:50]MH_Cut [20:20:50]Write to MH i2c: D1 01 00 C0 06 01 98 [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: D1 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: D1 01 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: D1 01 00 C0 06 00 97 [20:20:50]Write to MH i2c: 01 00 00 C1 06 C7 [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E7 E0 47 00 0F 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 36 35 33 34 30 10 04 04 00 D5 E1 02 00 F4 03 04 00 8A 04 19 67 B6 04 01 00 00 BA 35 F5 F4 BF FF B2 52 [20:20:50]CommunicateWithHost err = 0 [20:20:50]CheckOFDResponse [20:20:50]1017 (14) - 77093643461234 [20:20:50]1041 (16) - 0000000000965340 [20:20:50]1040 (4) - 188885 [20:20:50]1012 (4) - 23.10.2024 14:13 [20:20:50]1206 (1) - 0 [20:20:50]OFD Sender: Remove packet 188885 [20:20:50]ProducePacketName [20:20:50]name=ofd_packets/00188885 [20:20:50]NVStorageDeleteData [20:20:50]OFD Sender: No OFD packet to send [20:20:51]*** Cut start [20:20:51]*** Partial cut [20:20:51]*** CUTSNS_PIN = 1 [20:20:51]*** CUTSNS_PIN = 0 [20:20:51]*** Brake cut motor [20:20:51]Read from MH i2c: 01 [20:20:51]MH_I2C_Read... [20:20:51]*** Stop cut motor [20:20:51]*** Cut end [20:20:51]Read from MH i2c: 01 07 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [20:20:51]process_action close_receipt done [20:20:51]requested_data is exist [20:20:51]produce_requested_data [20:20:51]requested_item fm.sn is exist - process it [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 11 00 00 [20:20:51]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:52]Read from MH i2c: E2 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 17 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [20:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:52]wFMCommunicate OK [20:20:52]requested_item fd.num is exist - process it [20:20:52]SAM_PROTO_GetFieldsCounters [20:20:52]wFMCommunicate request_size=4 [20:20:52]MH_SAM_APDU [20:20:52]CAPDU: 80 13 00 00 [20:20:52]Write to MH i2c: E2 08 00 C3 06 80 13 00 00 00 00 00 00 45 [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:52]Read from MH i2c: E2 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 62 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 62 00 C3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [20:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:52]wFMCommunicate OK [20:20:52]SAM_PROTO_GetFieldsCounters done [20:20:52]requested_item shift.num is exist - process it [20:20:52]requested_item shift.opened is exist - process it [20:20:52]req_shift_opened [20:20:52]FM_GetShiftState [20:20:52]SAM_PROTO_GetShiftState [20:20:52]wFMCommunicate request_size=4 [20:20:52]MH_SAM_APDU [20:20:52]CAPDU: 80 13 01 00 [20:20:52]Write to MH i2c: E2 08 00 C4 06 80 13 01 00 00 00 00 00 47 [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:52]Read from MH i2c: E2 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 0E 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 0E 00 C4 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2F [20:20:52]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:20:52]wFMCommunicate OK [20:20:52]SAM_PROTO_GetShiftState done [20:20:52]FM_GetShiftState done [20:20:52]req_shift_opened done [20:20:52]requested_item shift.open_date is exist - process it [20:20:52]req_shift_open_date [20:20:52]req_shift_open_date done [20:20:52]produce_requested_data done [20:20:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188885,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:20:52]process_action_free close_receipt [20:20:52]json_value_free [20:20:52]json_value_free done [20:20:52]process_json_proto returns [20:20:52]Send response to host [20:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188885,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:20:52]free response buf [20:20:52]execute_script done [20:20:52]execute_script returns [20:20:52]free content buf [20:20:52]Sock 8.Close socket [20:20:52]Sock 8.Thread stoped [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:11]accept exits with 9 [20:21:11]New connection [20:21:11]New thread 3066809700 created [20:21:11]Thread 3066953060 joined [20:21:11]Waiting for new connection... [20:21:11] Sock 9.Parse request [20:21:11]Sock 9.Check first char [20:21:11]Sock 9.First char is OK [20:21:11]request: POST /json_proto HTTP/1.0 [20:21:11]Method: POST [20:21:11]URL: /json_proto [20:21:11]Method is POST - this is cgi request [20:21:11]url: /json_proto [20:21:11]query_string will be loaded in cgi processing [20:21:11]execute_cgi json_proto POST (null) [20:21:11]execute_cgi path=json_proto method=POST [20:21:11]POST find Content-Length [20:21:11]Host: 172.17.42.131:8080 [20:21:11]Content-Length: 682 [20:21:11]Content-Type: application/json [20:21:11] [20:21:11]POST finish read [20:21:11]Found Content-Length = 682 [20:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:11]execute_script... [20:21:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:11]POST & json_proto [20:21:11]process_json_proto [20:21:11]json parsed OK: [20:21:11]protocol is kg_v1.0 [20:21:11]action value=close_receipt [20:21:11]process_action close_receipt [20:21:11]cmd_close_receipt [20:21:11]MH_GetDate [20:21:11]Write to MH i2c: F0 00 00 C5 06 BA [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: F0 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: F0 09 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: F0 09 00 C5 06 00 B7 5A 19 67 A0 18 CA 66 3C [20:21:11]GetLastDocTimeStamp 1729714848 [20:21:11]current date 1729714871 [20:21:11]FM_GetShiftState [20:21:11]SAM_PROTO_GetShiftState [20:21:11]wFMCommunicate request_size=4 [20:21:11]MH_SAM_APDU [20:21:11]CAPDU: 80 13 01 00 [20:21:11]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:11]Read from MH i2c: E2 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 0E 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 31 [20:21:11]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:21:11]wFMCommunicate OK [20:21:11]SAM_PROTO_GetShiftState done [20:21:11]FM_GetShiftState done [20:21:11]opened in 1729642525 [20:21:11]opened+sec_in_day 1729728925 [20:21:11]quantity*price = 200043 [20:21:11]sum+1 = 200044 [20:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 344 23.10.2024 20:21 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188886 ФПД: 20569558910319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188886&fm=20569558910319&tin=02508201610067®Number=0000000000100030&sum=200000 [20:21:12]StoreToDocumentArchive [20:21:12]shift 462 fd 188886 [20:21:12]save to /storage/0462/doc_00188886 [20:21:12]save last doc name /storage/0462/doc_00188886 to /storage/kkm_last_doc_name [20:21:12]save OK [20:21:12]Clear old archive folders... [20:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:12]tlvbuf is 004FFCB0 [20:21:12]SAM_PROTO_ClearQueue [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 09 00 00 [20:21:12]Write to MH i2c: E2 08 00 D3 06 80 09 00 00 00 00 00 00 4B [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [20:21:12]RAPDU: 90 00 [20:21:12]wFMCommunicate OK [20:21:12]SAM_PROTO_ClearQueue done [20:21:12]KKMCreateOFDPacket [20:21:12]OFDProtocolAddRootSTLVToBuf [20:21:12]FM_MakeSignedData [20:21:12]FM_MakeSignedData [20:21:12]SAM_PROTO_SignData [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 0D 01 02 [20:21:12]Write to MH i2c: E2 08 00 D4 06 80 0D 01 02 00 00 00 00 53 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [20:21:12]RAPDU: 90 00 [20:21:12]wFMCommunicate OK [20:21:12]wFMCommunicate request_size=255 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 B8 5A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E1 02 00 35 04 06 00 12 [20:21:12]Write to MH i2c: E2 02 01 D5 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 B8 5A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E1 02 00 35 04 06 00 12 00 00 F3 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [20:21:12]RAPDU: 90 00 [20:21:12]wFMCommunicate OK [20:21:12]wFMCommunicate request_size=10 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 0D 02 02 05 B5 39 40 85 6F [20:21:12]Write to MH i2c: E2 0D 00 D6 06 80 0D 02 02 05 00 B5 39 40 85 6F 00 00 82 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [20:21:12]RAPDU: 90 00 [20:21:12]wFMCommunicate OK [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 0D 03 02 [20:21:12]Write to MH i2c: E2 08 00 D7 06 80 0D 03 02 00 00 00 00 58 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 0B 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 0B 00 D7 06 00 03 0E 24 D9 94 34 07 09 90 00 3F [20:21:12]RAPDU: 03 0E 24 D9 94 34 07 09 90 00 [20:21:12]wFMCommunicate OK [20:21:12]SAM_PROTO_SignData done [20:21:12]FM_MakeSignedData done [20:21:12]CreateOFDProtocolMessage [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 11 00 00 [20:21:12]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 17 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [20:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:21:12]wFMCommunicate OK [20:21:12]CreateOFDProtocolMessage done [20:21:12]OFDSenderStorePacket 188886 [20:21:12]StoreOFDPacket docnum=188886 [20:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C9 A4 07 01 2F 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 B8 5A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E1 02 00 35 04 06 00 12 B5 39 40 85 6F 03 0E 24 D9 94 34 07 09 [20:21:12]CheckFolder [20:21:12]dirname=/storage/ofd_packets [20:21:12]CheckFolder done [20:21:12]ProducePacketName [20:21:12]name=ofd_packets/00188886 [20:21:12]NVStorageSaveData ofd_packets/00188886 [20:21:12]File name is /storage/ofd_packets/00188886 [20:21:12]Write 301 bytes [20:21:12]NVStorageSaveData done [20:21:12]OFDSenderStorePacket done [20:21:12]KKMCreateOFDPacket done [20:21:12]NVStorageSaveData kkm_last_timestamp [20:21:12]File name is /storage/kkm_last_timestamp [20:21:12]Write 4 bytes [20:21:12]NVStorageSaveData done [20:21:12]ExternCall_PrintAddStr [20:21:12]wPrintStart [20:21:12]Write to MH i2c: 01 00 00 D9 06 DF [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: 01 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: 01 07 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 FF 0F F4 [20:21:12]RasterBufferAndPrint [20:21:12]line Счет N : (1)210949 [20:21:12]line ИНН: 02508201610067 [20:21:12]line Контрольно-Кассовый Чек [20:21:12]line ПРОДАЖА [20:21:12]line ТРК (МРК, ГНК) : 13 [20:21:12]line Товар: 2710124500 [20:21:12]line Аи-95-К-3 [20:21:12]line 26.960 * 74.20 [20:21:12]line = 2000.43 [20:21:12]line НДС 12% НСП 1% [20:21:12]line > о реализуемом товаре [20:21:12]line ОКРУГЛЕНИЕ: -0.43 [20:21:12]line ИТОГО: 2000.00 [20:21:12]line Внесено: 2000.00 [20:21:12]line СДАЧА: 0.00 [20:21:12]line НСП 1% : 17.70 [20:21:12]line НДС 12% : 212.43 [20:21:12]line Наличными: 2000.00 [20:21:12]line Безнал.: 0.00 [20:21:12]line Место: АЗС № 86 "Партнер Нефть" [20:21:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:21:12]line СНО: Общий режим [20:21:12]line Чек 344 23.10.2024 20:21 [20:21:12]line Смена: 462 ФФД: 1.0 [20:21:12]line ЗНМ: 0300000155 [20:21:12]line РНМ: 0000000000100030 [20:21:12]line Версия ККМ: 001 [20:21:12]line ФМ: 0000000000965340 [20:21:12]line ФД: 188886 [20:21:12]line ФПД: 20569558910319 [20:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188886&fm=20569558910319&tin=02508201610067®Number=0000000000100030&sum=200000 [20:21:12]written 0, free lines is 4095 [20:21:13]OFD Sender: Processing packet 188886 [packets to send 1062, broken 1061] [20:21:13]ProducePacketName [20:21:13]name=ofd_packets/00188886 [20:21:13]OFD Sender: To server: pG, [20:21:13]CommunicateWithHost lk.salyk.kg:30040 [20:21:13]ConnectInit lk.salyk.kg [20:21:13]Connected sock=10 [20:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C9 A4 07 01 2F 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 B8 5A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E1 02 00 35 04 06 00 12 B5 39 40 85 6F 03 0E 24 D9 94 34 07 09 [20:21:13]Write to MH i2c: 01 00 00 04 07 0B [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 07 00 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 07 00 04 07 00 00 00 00 00 5B 0C 79 [20:21:13]RasterBufferAndPrint [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]written 0, free lines is 3166 [20:21:13]MH_Cut [20:21:13]Write to MH i2c: D1 01 00 0B 07 01 E4 [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 01 00 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 01 00 0B 07 00 E3 [20:21:13]Write to MH i2c: 01 00 00 0C 07 13 [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B6 78 47 00 FC 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E1 02 00 F4 03 04 00 A1 04 19 67 B6 04 01 00 00 8F EC B7 A1 FB 69 FA C4 [20:21:13]CommunicateWithHost err = 0 [20:21:13]CheckOFDResponse [20:21:13]1017 (14) - 77093643461234 [20:21:13]1041 (16) - 0000000000965340 [20:21:13]1040 (4) - 188886 [20:21:13]1012 (4) - 23.10.2024 14:13 [20:21:13]1206 (1) - 0 [20:21:13]OFD Sender: Remove packet 188886 [20:21:13]ProducePacketName [20:21:13]name=ofd_packets/00188886 [20:21:13]NVStorageDeleteData [20:21:14]OFD Sender: No OFD packet to send [20:21:14]*** Cut start [20:21:14]*** Partial cut [20:21:14]*** CUTSNS_PIN = 1 [20:21:14]*** CUTSNS_PIN = 0 [20:21:14]*** Brake cut motor [20:21:15]Read from MH i2c: 01 [20:21:15]MH_I2C_Read... [20:21:15]*** Stop cut motor [20:21:15]*** Cut end [20:21:15]Read from MH i2c: 01 07 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 FF 0F 28 [20:21:15]process_action close_receipt done [20:21:15]requested_data is exist [20:21:15]produce_requested_data [20:21:15]requested_item fm.sn is exist - process it [20:21:15]wFMCommunicate request_size=4 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 11 00 00 [20:21:15]Write to MH i2c: E2 08 00 0D 07 80 11 00 00 00 00 00 00 8E [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 17 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 17 00 0D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [20:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:21:15]wFMCommunicate OK [20:21:15]requested_item fd.num is exist - process it [20:21:15]SAM_PROTO_GetFieldsCounters [20:21:15]wFMCommunicate request_size=4 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 13 00 00 [20:21:15]Write to MH i2c: E2 08 00 0E 07 80 13 00 00 00 00 00 00 91 [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 62 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 62 00 0E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [20:21:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:15]wFMCommunicate OK [20:21:15]SAM_PROTO_GetFieldsCounters done [20:21:15]requested_item shift.num is exist - process it [20:21:15]requested_item shift.opened is exist - process it [20:21:15]req_shift_opened [20:21:15]FM_GetShiftState [20:21:15]SAM_PROTO_GetShiftState [20:21:15]wFMCommunicate request_size=4 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 13 01 00 [20:21:15]Write to MH i2c: E2 08 00 0F 07 80 13 01 00 00 00 00 00 93 [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 0E 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 0E 00 0F 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7B [20:21:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:21:15]wFMCommunicate OK [20:21:15]SAM_PROTO_GetShiftState done [20:21:15]FM_GetShiftState done [20:21:15]req_shift_opened done [20:21:15]requested_item shift.open_date is exist - process it [20:21:15]req_shift_open_date [20:21:15]req_shift_open_date done [20:21:15]produce_requested_data done [20:21:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188886,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:21:15]process_action_free close_receipt [20:21:15]json_value_free [20:21:15]json_value_free done [20:21:15]process_json_proto returns [20:21:15]Send response to host [20:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188886,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:21:15]free response buf [20:21:15]execute_script done [20:21:15]execute_script returns [20:21:15]free content buf [20:21:15]Sock 9.Close socket [20:21:15]Sock 9.Thread stoped [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:32]accept exits with 8 [20:23:32]New connection [20:23:32]New thread 3066953060 created [20:23:32]Thread 3066809700 joined [20:23:32]Waiting for new connection... [20:23:32] Sock 8.Parse request [20:23:32]Sock 8.Check first char [20:23:32]Sock 8.First char is OK [20:23:32]request: POST /json_proto HTTP/1.0 [20:23:32]Method: POST [20:23:32]URL: /json_proto [20:23:32]Method is POST - this is cgi request [20:23:32]url: /json_proto [20:23:32]query_string will be loaded in cgi processing [20:23:32]execute_cgi json_proto POST (null) [20:23:32]execute_cgi path=json_proto method=POST [20:23:32]POST find Content-Length [20:23:32]Host: 172.17.42.131:8080 [20:23:32]Content-Length: 677 [20:23:32]Content-Type: application/json [20:23:32] [20:23:32]POST finish read [20:23:32]Found Content-Length = 677 [20:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:32]execute_script... [20:23:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:32]POST & json_proto [20:23:32]process_json_proto [20:23:32]json parsed OK: [20:23:32]protocol is kg_v1.0 [20:23:32]action value=close_receipt [20:23:32]process_action close_receipt [20:23:32]cmd_close_receipt [20:23:32]MH_GetDate [20:23:32]Write to MH i2c: F0 00 00 10 07 06 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: F0 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: F0 09 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: F0 09 00 10 07 00 45 5B 19 67 A0 18 CA 66 17 [20:23:32]GetLastDocTimeStamp 1729714872 [20:23:32]current date 1729715013 [20:23:32]FM_GetShiftState [20:23:32]SAM_PROTO_GetShiftState [20:23:32]wFMCommunicate request_size=4 [20:23:32]MH_SAM_APDU [20:23:32]CAPDU: 80 13 01 00 [20:23:32]Write to MH i2c: E2 08 00 11 07 80 13 01 00 00 00 00 00 95 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:32]Read from MH i2c: E2 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 0E 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: E2 0E 00 11 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7D [20:23:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:23:32]wFMCommunicate OK [20:23:32]SAM_PROTO_GetShiftState done [20:23:32]FM_GetShiftState done [20:23:32]opened in 1729642525 [20:23:32]opened+sec_in_day 1729728925 [20:23:32]quantity*price = 40006 [20:23:32]sum+1 = 40007 [20:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 345 23.10.2024 20:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188887 ФПД: 47362482098612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202333&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188887&fm=47362482098612&tin=02508201610067®Number=0000000000100030&sum=40000 [20:23:33]StoreToDocumentArchive [20:23:33]shift 462 fd 188887 [20:23:33]save to /storage/0462/doc_00188887 [20:23:33]save last doc name /storage/0462/doc_00188887 to /storage/kkm_last_doc_name [20:23:33]save OK [20:23:33]Clear old archive folders... [20:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:33]tlvbuf is 004D8AA0 [20:23:33]SAM_PROTO_ClearQueue [20:23:33]wFMCommunicate request_size=4 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 09 00 00 [20:23:33]Write to MH i2c: E2 08 00 1E 07 80 09 00 00 00 00 00 00 97 [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:33]Read from MH i2c: E2 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 03 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 03 00 1E 07 00 90 00 99 [20:23:33]RAPDU: 90 00 [20:23:33]wFMCommunicate OK [20:23:33]SAM_PROTO_ClearQueue done [20:23:33]KKMCreateOFDPacket [20:23:33]OFDProtocolAddRootSTLVToBuf [20:23:33]FM_MakeSignedData [20:23:33]FM_MakeSignedData [20:23:33]SAM_PROTO_SignData [20:23:33]wFMCommunicate request_size=4 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 0D 01 02 [20:23:33]Write to MH i2c: E2 08 00 1F 07 80 0D 01 02 00 00 00 00 9F [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:33]Read from MH i2c: E2 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 03 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [20:23:33]RAPDU: 90 00 [20:23:33]wFMCommunicate OK [20:23:33]wFMCommunicate request_size=255 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 45 5B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E1 02 00 35 04 06 00 2B [20:23:33]Write to MH i2c: E2 02 01 20 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 45 5B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E1 02 00 35 04 06 00 2B 00 00 0F [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:33]Read from MH i2c: E2 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 03 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [20:23:33]RAPDU: 90 00 [20:23:33]wFMCommunicate OK [20:23:33]wFMCommunicate request_size=10 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 0D 02 02 05 13 6F EB D1 B4 [20:23:33]Write to MH i2c: E2 0D 00 21 07 80 0D 02 02 05 00 13 6F EB D1 B4 00 00 9E [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:33]Read from MH i2c: E2 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 03 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [20:23:33]RAPDU: 90 00 [20:23:33]wFMCommunicate OK [20:23:33]wFMCommunicate request_size=4 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 0D 03 02 [20:23:33]Write to MH i2c: E2 08 00 22 07 80 0D 03 02 00 00 00 00 A4 [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:33]Read from MH i2c: E2 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 0B 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 0B 00 22 07 00 09 E6 33 7F 23 C5 77 60 90 00 05 [20:23:33]RAPDU: 09 E6 33 7F 23 C5 77 60 90 00 [20:23:33]wFMCommunicate OK [20:23:33]SAM_PROTO_SignData done [20:23:33]FM_MakeSignedData done [20:23:33]CreateOFDProtocolMessage [20:23:33]wFMCommunicate request_size=4 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 11 00 00 [20:23:33]Write to MH i2c: E2 08 00 23 07 80 11 00 00 00 00 00 00 A4 [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:33]Read from MH i2c: E2 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 17 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 17 00 23 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [20:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:23:33]wFMCommunicate OK [20:23:33]CreateOFDProtocolMessage done [20:23:33]OFDSenderStorePacket 188887 [20:23:33]StoreOFDPacket docnum=188887 [20:23:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F A7 07 01 74 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 45 5B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E1 02 00 35 04 06 00 2B 13 6F EB D1 B4 09 E6 33 7F 23 C5 77 60 [20:23:33]CheckFolder [20:23:33]dirname=/storage/ofd_packets [20:23:33]CheckFolder done [20:23:33]ProducePacketName [20:23:33]name=ofd_packets/00188887 [20:23:33]NVStorageSaveData ofd_packets/00188887 [20:23:33]File name is /storage/ofd_packets/00188887 [20:23:33]Write 301 bytes [20:23:33]NVStorageSaveData done [20:23:33]OFDSenderStorePacket done [20:23:33]KKMCreateOFDPacket done [20:23:33]NVStorageSaveData kkm_last_timestamp [20:23:33]File name is /storage/kkm_last_timestamp [20:23:33]Write 4 bytes [20:23:33]NVStorageSaveData done [20:23:34]ExternCall_PrintAddStr [20:23:34]wPrintStart [20:23:34]Write to MH i2c: 01 00 00 24 07 2B [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: 01 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: 01 07 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: 01 07 00 24 07 00 00 00 00 00 FF 0F 40 [20:23:34]RasterBufferAndPrint [20:23:34]line Счет N : (1)210950 [20:23:34]line ИНН: 02508201610067 [20:23:34]line Контрольно-Кассовый Чек [20:23:34]line ПРОДАЖА [20:23:34]line ТРК (МРК, ГНК) : 42 [20:23:34]line Товар: 2710124130 [20:23:34]line Аи-92-К-3 [20:23:34]line 5.980 * 66.90 [20:23:34]line = 400.06 [20:23:34]line НДС 12% НСП 1% [20:23:34]line > о реализуемом товаре [20:23:34]line ОКРУГЛЕНИЕ: -0.06 [20:23:34]line ИТОГО: 400.00 [20:23:34]line Внесено: 400.00 [20:23:34]line СДАЧА: 0.00 [20:23:34]line НСП 1% : 3.54 [20:23:34]line НДС 12% : 42.48 [20:23:34]line Наличными: 400.00 [20:23:34]line Безнал.: 0.00 [20:23:34]line Место: АЗС № 86 "Партнер Нефть" [20:23:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:23:34]line СНО: Общий режим [20:23:34]line Чек 345 23.10.2024 20:23 [20:23:34]line Смена: 462 ФФД: 1.0 [20:23:34]line ЗНМ: 0300000155 [20:23:34]line РНМ: 0000000000100030 [20:23:34]line Версия ККМ: 001 [20:23:34]line ФМ: 0000000000965340 [20:23:34]line ФД: 188887 [20:23:34]line ФПД: 47362482098612 [20:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202333&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188887&fm=47362482098612&tin=02508201610067®Number=0000000000100030&sum=40000 [20:23:34]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:23:34]ProducePacketName [20:23:34]name=ofd_packets/00188887 [20:23:34]OFD Sender: To server: pG, [20:23:34]CommunicateWithHost lk.salyk.kg:30040 [20:23:34]ConnectInit lk.salyk.kg [20:23:34]written 0, free lines is 4095 [20:23:34]Write to MH i2c: 01 00 00 4F 07 56 [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: 01 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: 01 07 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: 01 07 00 4F 07 00 00 00 00 00 57 0C C0 [20:23:34]RasterBufferAndPrint [20:23:34]line [20:23:34]line [20:23:34]line [20:23:34]line [20:23:34]line [20:23:34]written 0, free lines is 3162 [20:23:34]MH_Cut [20:23:34]Write to MH i2c: D1 01 00 56 07 01 2F [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: D1 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: D1 01 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: D1 01 00 56 07 00 2E [20:23:34]Write to MH i2c: 01 00 00 57 07 5E [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:35]*** Cut start [20:23:35]*** Partial cut [20:23:35]*** CUTSNS_PIN = 1 [20:23:35]*** CUTSNS_PIN = 0 [20:23:36]*** Brake cut motor [20:23:36]Read from MH i2c: 01 [20:23:36]MH_I2C_Read... [20:23:36]*** Stop cut motor [20:23:36]*** Cut end [20:23:36]Read from MH i2c: 01 07 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 FF 0F 73 [20:23:36]process_action close_receipt done [20:23:36]requested_data is exist [20:23:36]produce_requested_data [20:23:36]requested_item fm.sn is exist - process it [20:23:36]wFMCommunicate request_size=4 [20:23:36]MH_SAM_APDU [20:23:36]CAPDU: 80 11 00 00 [20:23:36]Write to MH i2c: E2 08 00 58 07 80 11 00 00 00 00 00 00 D9 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 17 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 17 00 58 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [20:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:23:36]wFMCommunicate OK [20:23:36]requested_item fd.num is exist - process it [20:23:36]SAM_PROTO_GetFieldsCounters [20:23:36]wFMCommunicate request_size=4 [20:23:36]MH_SAM_APDU [20:23:36]CAPDU: 80 13 00 00 [20:23:36]Write to MH i2c: E2 08 00 59 07 80 13 00 00 00 00 00 00 DC [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 62 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 62 00 59 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [20:23:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:36]wFMCommunicate OK [20:23:36]SAM_PROTO_GetFieldsCounters done [20:23:36]requested_item shift.num is exist - process it [20:23:36]requested_item shift.opened is exist - process it [20:23:36]req_shift_opened [20:23:36]FM_GetShiftState [20:23:36]SAM_PROTO_GetShiftState [20:23:36]wFMCommunicate request_size=4 [20:23:36]MH_SAM_APDU [20:23:36]CAPDU: 80 13 01 00 [20:23:36]Write to MH i2c: E2 08 00 5A 07 80 13 01 00 00 00 00 00 DE [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:36]Read from MH i2c: E2 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 0E 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: E2 0E 00 5A 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C6 [20:23:36]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:23:36]wFMCommunicate OK [20:23:36]SAM_PROTO_GetShiftState done [20:23:36]FM_GetShiftState done [20:23:36]req_shift_opened done [20:23:36]requested_item shift.open_date is exist - process it [20:23:36]req_shift_open_date [20:23:36]req_shift_open_date done [20:23:36]produce_requested_data done [20:23:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188887,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:23:36]process_action_free close_receipt [20:23:36]json_value_free [20:23:36]json_value_free done [20:23:36]process_json_proto returns [20:23:36]Send response to host [20:23:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188887,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:23:36]free response buf [20:23:36]execute_script done [20:23:36]execute_script returns [20:23:36]free content buf [20:23:36]Sock 8.Close socket [20:23:36]Sock 8.Thread stoped [20:23:39]ConnectInit Can't take IP for lk.salyk.kg [20:23:39]CommunicateWithHost connect error [20:23:39]CommunicateWithHost err = -1 [20:23:39]OFD Sender: Server communicate error [20:23:44]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:23:44]ProducePacketName [20:23:44]name=ofd_packets/00188887 [20:23:44]OFD Sender: To server: pG, [20:23:44]CommunicateWithHost lk.salyk.kg:30040 [20:23:44]ConnectInit lk.salyk.kg [20:23:49]ConnectInit Can't take IP for lk.salyk.kg [20:23:49]CommunicateWithHost connect error [20:23:49]CommunicateWithHost err = -1 [20:23:49]OFD Sender: Server communicate error [20:23:54]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:23:54]ProducePacketName [20:23:54]name=ofd_packets/00188887 [20:23:54]OFD Sender: To server: pG, [20:23:54]CommunicateWithHost lk.salyk.kg:30040 [20:23:54]ConnectInit lk.salyk.kg [20:23:59]ConnectInit Can't take IP for lk.salyk.kg [20:23:59]CommunicateWithHost connect error [20:23:59]CommunicateWithHost err = -1 [20:23:59]OFD Sender: Server communicate error [20:24:04]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:24:04]ProducePacketName [20:24:04]name=ofd_packets/00188887 [20:24:04]OFD Sender: To server: pG, [20:24:04]CommunicateWithHost lk.salyk.kg:30040 [20:24:04]ConnectInit lk.salyk.kg [20:24:09]ConnectInit Can't take IP for lk.salyk.kg [20:24:09]CommunicateWithHost connect error [20:24:09]CommunicateWithHost err = -1 [20:24:09]OFD Sender: Server communicate error [20:24:14]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:24:14]ProducePacketName [20:24:14]name=ofd_packets/00188887 [20:24:14]OFD Sender: To server: pG, [20:24:14]CommunicateWithHost lk.salyk.kg:30040 [20:24:14]ConnectInit lk.salyk.kg [20:24:19]ConnectInit Can't take IP for lk.salyk.kg [20:24:19]CommunicateWithHost connect error [20:24:19]CommunicateWithHost err = -1 [20:24:19]OFD Sender: Server communicate error [20:24:24]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:24:24]ProducePacketName [20:24:24]name=ofd_packets/00188887 [20:24:24]OFD Sender: To server: pG, [20:24:24]CommunicateWithHost lk.salyk.kg:30040 [20:24:24]ConnectInit lk.salyk.kg [20:24:29]ConnectInit Can't take IP for lk.salyk.kg [20:24:29]CommunicateWithHost connect error [20:24:29]CommunicateWithHost err = -1 [20:24:29]OFD Sender: Server communicate error [20:24:34]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:24:34]ProducePacketName [20:24:34]name=ofd_packets/00188887 [20:24:34]OFD Sender: To server: pG, [20:24:34]CommunicateWithHost lk.salyk.kg:30040 [20:24:34]ConnectInit lk.salyk.kg [20:24:39]ConnectInit Can't take IP for lk.salyk.kg [20:24:39]CommunicateWithHost connect error [20:24:39]CommunicateWithHost err = -1 [20:24:39]OFD Sender: Server communicate error [20:24:44]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:24:44]ProducePacketName [20:24:44]name=ofd_packets/00188887 [20:24:44]OFD Sender: To server: pG, [20:24:44]CommunicateWithHost lk.salyk.kg:30040 [20:24:44]ConnectInit lk.salyk.kg [20:24:49]ConnectInit Can't take IP for lk.salyk.kg [20:24:49]CommunicateWithHost connect error [20:24:49]CommunicateWithHost err = -1 [20:24:49]OFD Sender: Server communicate error [20:24:54]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:24:54]ProducePacketName [20:24:54]name=ofd_packets/00188887 [20:24:54]OFD Sender: To server: pG, [20:24:54]CommunicateWithHost lk.salyk.kg:30040 [20:24:54]ConnectInit lk.salyk.kg [20:24:59]ConnectInit Can't take IP for lk.salyk.kg [20:24:59]CommunicateWithHost connect error [20:24:59]CommunicateWithHost err = -1 [20:24:59]OFD Sender: Server communicate error [20:25:04]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:25:04]ProducePacketName [20:25:04]name=ofd_packets/00188887 [20:25:04]OFD Sender: To server: pG, [20:25:04]CommunicateWithHost lk.salyk.kg:30040 [20:25:04]ConnectInit lk.salyk.kg [20:25:09]ConnectInit Can't take IP for lk.salyk.kg [20:25:09]CommunicateWithHost connect error [20:25:09]CommunicateWithHost err = -1 [20:25:09]OFD Sender: Server communicate error [20:25:14]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:25:14]ProducePacketName [20:25:14]name=ofd_packets/00188887 [20:25:14]OFD Sender: To server: pG, [20:25:14]CommunicateWithHost lk.salyk.kg:30040 [20:25:14]ConnectInit lk.salyk.kg [20:25:19]ConnectInit Can't take IP for lk.salyk.kg [20:25:19]CommunicateWithHost connect error [20:25:19]CommunicateWithHost err = -1 [20:25:19]OFD Sender: Server communicate error [20:25:24]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:25:24]ProducePacketName [20:25:24]name=ofd_packets/00188887 [20:25:24]OFD Sender: To server: pG, [20:25:24]CommunicateWithHost lk.salyk.kg:30040 [20:25:24]ConnectInit lk.salyk.kg [20:25:29]ConnectInit Can't take IP for lk.salyk.kg [20:25:29]CommunicateWithHost connect error [20:25:29]CommunicateWithHost err = -1 [20:25:29]OFD Sender: Server communicate error [20:25:34]OFD Sender: Processing packet 188887 [packets to send 1062, broken 1061] [20:25:34]ProducePacketName [20:25:34]name=ofd_packets/00188887 [20:25:34]OFD Sender: To server: pG, [20:25:34]CommunicateWithHost lk.salyk.kg:30040 [20:25:34]ConnectInit lk.salyk.kg [20:25:37]Connected sock=8 [20:25:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F A7 07 01 74 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 45 5B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E1 02 00 35 04 06 00 2B 13 6F EB D1 B4 09 E6 33 7F 23 C5 77 60 [20:25:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 79 06 47 00 97 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 D7 E1 02 00 F4 03 04 00 A9 05 19 67 B6 04 01 00 00 29 38 5F AE 42 C7 16 0E [20:25:37]CommunicateWithHost err = 0 [20:25:37]CheckOFDResponse [20:25:37]1017 (14) - 77093643461234 [20:25:37]1041 (16) - 0000000000965340 [20:25:37]1040 (4) - 188887 [20:25:37]1012 (4) - 23.10.2024 14:18 [20:25:37]1206 (1) - 0 [20:25:37]OFD Sender: Remove packet 188887 [20:25:37]ProducePacketName [20:25:37]name=ofd_packets/00188887 [20:25:37]NVStorageDeleteData [20:25:38]OFD Sender: No OFD packet to send [20:25:38]ConnectInit Can't connect to host [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:23]accept exits with 10 [20:26:23]New connection [20:26:23]New thread 3066809700 created [20:26:23]Thread 3066953060 joined [20:26:23]Waiting for new connection... [20:26:23] Sock 10.Parse request [20:26:23]Sock 10.Check first char [20:26:23]Sock 10.First char is OK [20:26:23]request: POST /json_proto HTTP/1.0 [20:26:23]Method: POST [20:26:23]URL: /json_proto [20:26:23]Method is POST - this is cgi request [20:26:23]url: /json_proto [20:26:23]query_string will be loaded in cgi processing [20:26:23]execute_cgi json_proto POST (null) [20:26:23]execute_cgi path=json_proto method=POST [20:26:23]POST find Content-Length [20:26:23]Host: 172.17.42.131:8080 [20:26:23]Content-Length: 677 [20:26:23]Content-Type: application/json [20:26:23] [20:26:23]POST finish read [20:26:23]Found Content-Length = 677 [20:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:23]execute_script... [20:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:23]POST & json_proto [20:26:23]process_json_proto [20:26:23]json parsed OK: [20:26:23]protocol is kg_v1.0 [20:26:23]action value=close_receipt [20:26:23]process_action close_receipt [20:26:23]cmd_close_receipt [20:26:23]MH_GetDate [20:26:23]Write to MH i2c: F0 00 00 5B 07 51 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: F0 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: F0 09 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: F0 09 00 5B 07 00 F0 5B 19 67 A0 18 CA 66 0D [20:26:23]GetLastDocTimeStamp 1729715013 [20:26:23]current date 1729715184 [20:26:23]FM_GetShiftState [20:26:23]SAM_PROTO_GetShiftState [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 13 01 00 [20:26:23]Write to MH i2c: E2 08 00 5C 07 80 13 01 00 00 00 00 00 E0 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0E 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0E 00 5C 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C8 [20:26:23]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:26:23]wFMCommunicate OK [20:26:23]SAM_PROTO_GetShiftState done [20:26:23]FM_GetShiftState done [20:26:23]opened in 1729642525 [20:26:23]opened+sec_in_day 1729728925 [20:26:23]quantity*price = 32045 [20:26:23]sum+1 = 32046 [20:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 346 23.10.2024 20:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188888 ФПД: 256772940560837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202624&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188888&fm=256772940560837&tin=02508201610067®Number=0000000000100030&sum=32000 [20:26:24]StoreToDocumentArchive [20:26:24]shift 462 fd 188888 [20:26:24]save to /storage/0462/doc_00188888 [20:26:24]save last doc name /storage/0462/doc_00188888 to /storage/kkm_last_doc_name [20:26:24]save OK [20:26:24]Clear old archive folders... [20:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:24]tlvbuf is 00525810 [20:26:24]SAM_PROTO_ClearQueue [20:26:24]wFMCommunicate request_size=4 [20:26:24]MH_SAM_APDU [20:26:24]CAPDU: 80 09 00 00 [20:26:24]Write to MH i2c: E2 08 00 69 07 80 09 00 00 00 00 00 00 E2 [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [20:26:25]RAPDU: 90 00 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_ClearQueue done [20:26:25]KKMCreateOFDPacket [20:26:25]OFDProtocolAddRootSTLVToBuf [20:26:25]FM_MakeSignedData [20:26:25]FM_MakeSignedData [20:26:25]SAM_PROTO_SignData [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 0D 01 02 [20:26:25]Write to MH i2c: E2 08 00 6A 07 80 0D 01 02 00 00 00 00 EA [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [20:26:25]RAPDU: 90 00 [20:26:25]wFMCommunicate OK [20:26:25]wFMCommunicate request_size=255 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 F0 5B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E1 02 00 35 04 06 00 E9 [20:26:25]Write to MH i2c: E2 02 01 6B 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 F0 5B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E1 02 00 35 04 06 00 E9 00 00 8E [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [20:26:25]RAPDU: 90 00 [20:26:25]wFMCommunicate OK [20:26:25]wFMCommunicate request_size=10 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 0D 02 02 05 88 9B E8 F9 C5 [20:26:25]Write to MH i2c: E2 0D 00 6C 07 80 0D 02 02 05 00 88 9B E8 F9 C5 00 00 C0 [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [20:26:25]RAPDU: 90 00 [20:26:25]wFMCommunicate OK [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 0D 03 02 [20:26:25]Write to MH i2c: E2 08 00 6D 07 80 0D 03 02 00 00 00 00 EF [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 0B 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 0B 00 6D 07 00 A2 A1 F0 84 F6 A0 35 D2 90 00 44 [20:26:25]RAPDU: A2 A1 F0 84 F6 A0 35 D2 90 00 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_SignData done [20:26:25]FM_MakeSignedData done [20:26:25]CreateOFDProtocolMessage [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 11 00 00 [20:26:25]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 17 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [20:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:26:25]wFMCommunicate OK [20:26:25]CreateOFDProtocolMessage done [20:26:25]OFDSenderStorePacket 188888 [20:26:25]StoreOFDPacket docnum=188888 [20:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 65 07 07 01 CE C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 F0 5B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E1 02 00 35 04 06 00 E9 88 9B E8 F9 C5 A2 A1 F0 84 F6 A0 35 D2 [20:26:25]CheckFolder [20:26:25]dirname=/storage/ofd_packets [20:26:25]CheckFolder done [20:26:25]ProducePacketName [20:26:25]name=ofd_packets/00188888 [20:26:25]NVStorageSaveData ofd_packets/00188888 [20:26:25]File name is /storage/ofd_packets/00188888 [20:26:25]Write 301 bytes [20:26:25]NVStorageSaveData done [20:26:25]OFDSenderStorePacket done [20:26:25]KKMCreateOFDPacket done [20:26:25]NVStorageSaveData kkm_last_timestamp [20:26:25]File name is /storage/kkm_last_timestamp [20:26:25]Write 4 bytes [20:26:25]NVStorageSaveData done [20:26:25]ExternCall_PrintAddStr [20:26:25]wPrintStart [20:26:25]Write to MH i2c: 01 00 00 6F 07 76 [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: 01 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: 01 07 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 FF 0F 8B [20:26:25]RasterBufferAndPrint [20:26:25]line Счет N : (1)210951 [20:26:25]line ИНН: 02508201610067 [20:26:25]line Контрольно-Кассовый Чек [20:26:25]line ПРОДАЖА [20:26:25]line ТРК (МРК, ГНК) : 42 [20:26:25]line Товар: 2710124130 [20:26:25]line Аи-92-К-3 [20:26:25]line 4.790 * 66.90 [20:26:25]line = 320.45 [20:26:25]line НДС 12% НСП 1% [20:26:25]line > о реализуемом товаре [20:26:25]line ОКРУГЛЕНИЕ: -0.45 [20:26:25]line ИТОГО: 320.00 [20:26:25]line Внесено: 320.00 [20:26:25]line СДАЧА: 0.00 [20:26:25]line НСП 1% : 2.84 [20:26:25]line НДС 12% : 34.03 [20:26:25]line Наличными: 320.00 [20:26:25]line Безнал.: 0.00 [20:26:25]line Место: АЗС № 86 "Партнер Нефть" [20:26:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:26:25]line СНО: Общий режим [20:26:25]line Чек 346 23.10.2024 20:26 [20:26:25]line Смена: 462 ФФД: 1.0 [20:26:25]line ЗНМ: 0300000155 [20:26:25]line РНМ: 0000000000100030 [20:26:25]line Версия ККМ: 001 [20:26:25]line ФМ: 0000000000965340 [20:26:25]line ФД: 188888 [20:26:25]line ФПД: 256772940560837 [20:26:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202624&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188888&fm=256772940560837&tin=02508201610067®Number=0000000000100030&sum=32000 [20:26:25]written 0, free lines is 4095 [20:26:25]OFD Sender: Processing packet 188888 [packets to send 1062, broken 1061] [20:26:25]ProducePacketName [20:26:25]name=ofd_packets/00188888 [20:26:25]OFD Sender: To server: pG, [20:26:25]CommunicateWithHost lk.salyk.kg:30040 [20:26:25]ConnectInit lk.salyk.kg [20:26:25]Connected sock=9 [20:26:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 65 07 07 01 CE C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 F0 5B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E1 02 00 35 04 06 00 E9 88 9B E8 F9 C5 A2 A1 F0 84 F6 A0 35 D2 [20:26:26]Write to MH i2c: 01 00 00 9A 07 A1 [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 07 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 07 00 9A 07 00 00 00 00 00 58 0C 0C [20:26:26]RasterBufferAndPrint [20:26:26]line [20:26:26]line [20:26:26]line [20:26:26]line [20:26:26]line [20:26:26]written 0, free lines is 3164 [20:26:26]MH_Cut [20:26:26]Write to MH i2c: D1 01 00 A1 07 01 7A [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: D1 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: D1 01 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: D1 01 00 A1 07 00 79 [20:26:26]Write to MH i2c: 01 00 00 A2 07 A9 [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 51 AA 47 00 36 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E1 02 00 F4 03 04 00 DA 05 19 67 B6 04 01 00 00 0B E5 9F CB 9F 06 68 04 [20:26:26]CommunicateWithHost err = 0 [20:26:26]CheckOFDResponse [20:26:26]1017 (14) - 77093643461234 [20:26:26]1041 (16) - 0000000000965340 [20:26:26]1040 (4) - 188888 [20:26:26]1012 (4) - 23.10.2024 14:19 [20:26:26]1206 (1) - 0 [20:26:26]OFD Sender: Remove packet 188888 [20:26:26]ProducePacketName [20:26:26]name=ofd_packets/00188888 [20:26:26]NVStorageDeleteData [20:26:26]OFD Sender: No OFD packet to send [20:26:27]*** Cut start [20:26:27]*** Partial cut [20:26:27]*** CUTSNS_PIN = 1 [20:26:27]*** CUTSNS_PIN = 0 [20:26:27]*** Brake cut motor [20:26:27]Read from MH i2c: 01 [20:26:27]MH_I2C_Read... [20:26:27]*** Stop cut motor [20:26:27]*** Cut end [20:26:27]Read from MH i2c: 01 07 00 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: 01 07 00 A2 07 00 00 00 00 00 FF 0F BE [20:26:27]process_action close_receipt done [20:26:27]requested_data is exist [20:26:27]produce_requested_data [20:26:27]requested_item fm.sn is exist - process it [20:26:27]wFMCommunicate request_size=4 [20:26:27]MH_SAM_APDU [20:26:27]CAPDU: 80 11 00 00 [20:26:27]Write to MH i2c: E2 08 00 A3 07 80 11 00 00 00 00 00 00 24 [20:26:27]Write i2c OK [20:26:27]MH_I2C_Read... [20:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:28]Read from MH i2c: E2 [20:26:28]MH_I2C_Read... [20:26:28]Read from MH i2c: E2 17 00 [20:26:28]MH_I2C_Read... [20:26:28]Read from MH i2c: E2 17 00 A3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [20:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:26:28]wFMCommunicate OK [20:26:28]requested_item fd.num is exist - process it [20:26:28]SAM_PROTO_GetFieldsCounters [20:26:28]wFMCommunicate request_size=4 [20:26:28]MH_SAM_APDU [20:26:28]CAPDU: 80 13 00 00 [20:26:28]Write to MH i2c: E2 08 00 A4 07 80 13 00 00 00 00 00 00 27 [20:26:28]Write i2c OK [20:26:28]MH_I2C_Read... [20:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:28]Read from MH i2c: E2 [20:26:28]MH_I2C_Read... [20:26:28]Read from MH i2c: E2 62 00 [20:26:28]MH_I2C_Read... [20:26:28]Read from MH i2c: E2 62 00 A4 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [20:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:28]wFMCommunicate OK [20:26:28]SAM_PROTO_GetFieldsCounters done [20:26:28]requested_item shift.num is exist - process it [20:26:28]requested_item shift.opened is exist - process it [20:26:28]req_shift_opened [20:26:28]FM_GetShiftState [20:26:28]SAM_PROTO_GetShiftState [20:26:28]wFMCommunicate request_size=4 [20:26:28]MH_SAM_APDU [20:26:28]CAPDU: 80 13 01 00 [20:26:28]Write to MH i2c: E2 08 00 A5 07 80 13 01 00 00 00 00 00 29 [20:26:28]Write i2c OK [20:26:28]MH_I2C_Read... [20:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:28]Read from MH i2c: E2 [20:26:28]MH_I2C_Read... [20:26:28]Read from MH i2c: E2 0E 00 [20:26:28]MH_I2C_Read... [20:26:28]Read from MH i2c: E2 0E 00 A5 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 11 [20:26:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:26:28]wFMCommunicate OK [20:26:28]SAM_PROTO_GetShiftState done [20:26:28]FM_GetShiftState done [20:26:28]req_shift_opened done [20:26:28]requested_item shift.open_date is exist - process it [20:26:28]req_shift_open_date [20:26:28]req_shift_open_date done [20:26:28]produce_requested_data done [20:26:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188888,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:26:28]process_action_free close_receipt [20:26:28]json_value_free [20:26:28]json_value_free done [20:26:28]process_json_proto returns [20:26:28]Send response to host [20:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188888,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:26:28]free response buf [20:26:28]execute_script done [20:26:28]execute_script returns [20:26:28]free content buf [20:26:28]Sock 10.Close socket [20:26:28]Sock 10.Thread stoped [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:20]accept exits with 8 [20:44:20]New connection [20:44:20]New thread 3066953060 created [20:44:20]Thread 3066809700 joined [20:44:20]Waiting for new connection... [20:44:20] Sock 8.Parse request [20:44:20]Sock 8.Check first char [20:44:20]Sock 8.First char is OK [20:44:20]request: POST /json_proto HTTP/1.0 [20:44:20]Method: POST [20:44:20]URL: /json_proto [20:44:20]Method is POST - this is cgi request [20:44:20]url: /json_proto [20:44:20]query_string will be loaded in cgi processing [20:44:20]execute_cgi json_proto POST (null) [20:44:20]execute_cgi path=json_proto method=POST [20:44:20]POST find Content-Length [20:44:20]Host: 172.17.42.131:8080 [20:44:20]Content-Length: 682 [20:44:20]Content-Type: application/json [20:44:20] [20:44:20]POST finish read [20:44:20]Found Content-Length = 682 [20:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:20]execute_script... [20:44:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:20]POST & json_proto [20:44:20]process_json_proto [20:44:20]json parsed OK: [20:44:20]protocol is kg_v1.0 [20:44:20]action value=close_receipt [20:44:20]process_action close_receipt [20:44:20]cmd_close_receipt [20:44:20]MH_GetDate [20:44:20]Write to MH i2c: F0 00 00 A6 07 9C [20:44:20]Write i2c OK [20:44:20]MH_I2C_Read... [20:44:20]Read from MH i2c: F0 [20:44:20]MH_I2C_Read... [20:44:20]Read from MH i2c: F0 09 00 [20:44:20]MH_I2C_Read... [20:44:20]Read from MH i2c: F0 09 00 A6 07 00 25 60 19 67 A0 18 CA 66 92 [20:44:20]GetLastDocTimeStamp 1729715184 [20:44:20]current date 1729716261 [20:44:20]FM_GetShiftState [20:44:20]SAM_PROTO_GetShiftState [20:44:20]wFMCommunicate request_size=4 [20:44:20]MH_SAM_APDU [20:44:20]CAPDU: 80 13 01 00 [20:44:20]Write to MH i2c: E2 08 00 A7 07 80 13 01 00 00 00 00 00 2B [20:44:20]Write i2c OK [20:44:20]MH_I2C_Read... [20:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:20]Read from MH i2c: E2 [20:44:20]MH_I2C_Read... [20:44:20]Read from MH i2c: E2 0E 00 [20:44:20]MH_I2C_Read... [20:44:20]Read from MH i2c: E2 0E 00 A7 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 13 [20:44:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:44:20]wFMCommunicate OK [20:44:20]SAM_PROTO_GetShiftState done [20:44:20]FM_GetShiftState done [20:44:20]opened in 1729642525 [20:44:20]opened+sec_in_day 1729728925 [20:44:20]quantity*price = 100021 [20:44:20]sum+1 = 100023 [20:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 347 23.10.2024 20:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188889 ФПД: 629190376577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204421&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188889&fm=629190376577&tin=02508201610067®Number=0000000000100030&sum=100000 [20:44:22]StoreToDocumentArchive [20:44:22]shift 462 fd 188889 [20:44:22]save to /storage/0462/doc_00188889 [20:44:22]save last doc name /storage/0462/doc_00188889 to /storage/kkm_last_doc_name [20:44:22]save OK [20:44:22]Clear old archive folders... [20:44:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:22]tlvbuf is 004B7C30 [20:44:22]SAM_PROTO_ClearQueue [20:44:22]wFMCommunicate request_size=4 [20:44:22]MH_SAM_APDU [20:44:22]CAPDU: 80 09 00 00 [20:44:22]Write to MH i2c: E2 08 00 B4 07 80 09 00 00 00 00 00 00 2D [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:22]Read from MH i2c: E2 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 03 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [20:44:22]RAPDU: 90 00 [20:44:22]wFMCommunicate OK [20:44:22]SAM_PROTO_ClearQueue done [20:44:22]KKMCreateOFDPacket [20:44:22]OFDProtocolAddRootSTLVToBuf [20:44:22]FM_MakeSignedData [20:44:22]FM_MakeSignedData [20:44:22]SAM_PROTO_SignData [20:44:22]wFMCommunicate request_size=4 [20:44:22]MH_SAM_APDU [20:44:22]CAPDU: 80 0D 01 02 [20:44:22]Write to MH i2c: E2 08 00 B5 07 80 0D 01 02 00 00 00 00 35 [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:22]Read from MH i2c: E2 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 03 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [20:44:22]RAPDU: 90 00 [20:44:22]wFMCommunicate OK [20:44:22]wFMCommunicate request_size=255 [20:44:22]MH_SAM_APDU [20:44:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 25 60 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E1 02 00 35 04 06 00 00 [20:44:22]Write to MH i2c: E2 02 01 B6 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 25 60 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E1 02 00 35 04 06 00 00 00 00 B1 [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:22]Read from MH i2c: E2 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 03 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [20:44:22]RAPDU: 90 00 [20:44:22]wFMCommunicate OK [20:44:22]wFMCommunicate request_size=10 [20:44:22]MH_SAM_APDU [20:44:22]CAPDU: 80 0D 02 02 05 92 7E AB 3C 81 [20:44:22]Write to MH i2c: E2 0D 00 B7 07 80 0D 02 02 05 00 92 7E AB 3C 81 00 00 BA [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:22]Read from MH i2c: E2 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 03 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [20:44:22]RAPDU: 90 00 [20:44:22]wFMCommunicate OK [20:44:22]wFMCommunicate request_size=4 [20:44:22]MH_SAM_APDU [20:44:22]CAPDU: 80 0D 03 02 [20:44:22]Write to MH i2c: E2 08 00 B8 07 80 0D 03 02 00 00 00 00 3A [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:22]Read from MH i2c: E2 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 0B 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 0B 00 B8 07 00 27 A7 2A 95 96 71 53 EC 90 00 0E [20:44:22]RAPDU: 27 A7 2A 95 96 71 53 EC 90 00 [20:44:22]wFMCommunicate OK [20:44:22]SAM_PROTO_SignData done [20:44:22]FM_MakeSignedData done [20:44:22]CreateOFDProtocolMessage [20:44:22]wFMCommunicate request_size=4 [20:44:22]MH_SAM_APDU [20:44:22]CAPDU: 80 11 00 00 [20:44:22]Write to MH i2c: E2 08 00 B9 07 80 11 00 00 00 00 00 00 3A [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:22]Read from MH i2c: E2 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 17 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 17 00 B9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [20:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:44:22]wFMCommunicate OK [20:44:22]CreateOFDProtocolMessage done [20:44:22]OFDSenderStorePacket 188889 [20:44:22]StoreOFDPacket docnum=188889 [20:44:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 00 07 01 0D 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 25 60 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E1 02 00 35 04 06 00 00 92 7E AB 3C 81 27 A7 2A 95 96 71 53 EC [20:44:22]CheckFolder [20:44:22]dirname=/storage/ofd_packets [20:44:22]CheckFolder done [20:44:22]ProducePacketName [20:44:22]name=ofd_packets/00188889 [20:44:22]NVStorageSaveData ofd_packets/00188889 [20:44:22]File name is /storage/ofd_packets/00188889 [20:44:22]Write 301 bytes [20:44:22]NVStorageSaveData done [20:44:22]OFDSenderStorePacket done [20:44:22]KKMCreateOFDPacket done [20:44:22]NVStorageSaveData kkm_last_timestamp [20:44:22]File name is /storage/kkm_last_timestamp [20:44:22]Write 4 bytes [20:44:22]NVStorageSaveData done [20:44:22]ExternCall_PrintAddStr [20:44:22]wPrintStart [20:44:22]Write to MH i2c: 01 00 00 BA 07 C1 [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 07 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 07 00 BA 07 00 00 00 00 00 FF 0F D6 [20:44:22]RasterBufferAndPrint [20:44:22]line Счет N : (1)210952 [20:44:22]line ИНН: 02508201610067 [20:44:22]line Контрольно-Кассовый Чек [20:44:22]line ПРОДАЖА [20:44:22]line ТРК (МРК, ГНК) : 43 [20:44:22]line Товар: 2710124500 [20:44:22]line Аи-95-К-3 [20:44:22]line 13.480 * 74.20 [20:44:22]line = 1000.22 [20:44:22]line НДС 12% НСП 1% [20:44:22]line > о реализуемом товаре [20:44:22]line ОКРУГЛЕНИЕ: -0.22 [20:44:22]line ИТОГО: 1000.00 [20:44:22]line Внесено: 1000.00 [20:44:22]line СДАЧА: 0.00 [20:44:22]line НСП 1% : 8.85 [20:44:22]line НДС 12% : 106.22 [20:44:22]line Наличными: 1000.00 [20:44:22]line Безнал.: 0.00 [20:44:22]line Место: АЗС № 86 "Партнер Нефть" [20:44:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:44:22]line СНО: Общий режим [20:44:22]line Чек 347 23.10.2024 20:44 [20:44:22]line Смена: 462 ФФД: 1.0 [20:44:22]line ЗНМ: 0300000155 [20:44:22]line РНМ: 0000000000100030 [20:44:22]line Версия ККМ: 001 [20:44:22]line ФМ: 0000000000965340 [20:44:22]line ФД: 188889 [20:44:22]line ФПД: 629190376577 [20:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204421&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188889&fm=629190376577&tin=02508201610067®Number=0000000000100030&sum=100000 [20:44:22]written 0, free lines is 4095 [20:44:22]OFD Sender: Processing packet 188889 [packets to send 1062, broken 1061] [20:44:22]ProducePacketName [20:44:22]name=ofd_packets/00188889 [20:44:22]OFD Sender: To server: pG, [20:44:22]CommunicateWithHost lk.salyk.kg:30040 [20:44:22]ConnectInit lk.salyk.kg [20:44:22]Connected sock=9 [20:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 00 07 01 0D 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 25 60 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E1 02 00 35 04 06 00 00 92 7E AB 3C 81 27 A7 2A 95 96 71 53 EC [20:44:23]Write to MH i2c: 01 00 00 E5 07 EC [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 07 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 07 00 E5 07 00 00 00 00 00 5E 0C 5D [20:44:23]RasterBufferAndPrint [20:44:23]line [20:44:23]line [20:44:23]line [20:44:23]line [20:44:23]line [20:44:23]written 0, free lines is 3168 [20:44:23]MH_Cut [20:44:23]Write to MH i2c: D1 01 00 EC 07 01 C5 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: D1 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: D1 01 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: D1 01 00 EC 07 00 C4 [20:44:23]Write to MH i2c: 01 00 00 ED 07 F4 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DA 1B 47 00 99 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 36 35 33 34 30 10 04 04 00 D9 E1 02 00 F4 03 04 00 0F 0A 19 67 B6 04 01 00 00 6F A2 0B 6C D3 B3 25 7C [20:44:23]CommunicateWithHost err = 0 [20:44:23]CheckOFDResponse [20:44:23]1017 (14) - 77093643461234 [20:44:23]1041 (16) - 0000000000965340 [20:44:23]1040 (4) - 188889 [20:44:23]1012 (4) - 23.10.2024 14:37 [20:44:23]1206 (1) - 0 [20:44:23]OFD Sender: Remove packet 188889 [20:44:23]ProducePacketName [20:44:23]name=ofd_packets/00188889 [20:44:23]NVStorageDeleteData [20:44:23]OFD Sender: No OFD packet to send [20:44:24]*** Cut start [20:44:24]*** Partial cut [20:44:24]*** CUTSNS_PIN = 1 [20:44:24]*** CUTSNS_PIN = 0 [20:44:24]*** Brake cut motor [20:44:25]Read from MH i2c: 01 [20:44:25]MH_I2C_Read... [20:44:25]*** Stop cut motor [20:44:25]*** Cut end [20:44:25]Read from MH i2c: 01 07 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 07 00 ED 07 00 00 00 00 00 FF 0F 09 [20:44:25]process_action close_receipt done [20:44:25]requested_data is exist [20:44:25]produce_requested_data [20:44:25]requested_item fm.sn is exist - process it [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 11 00 00 [20:44:25]Write to MH i2c: E2 08 00 EE 07 80 11 00 00 00 00 00 00 6F [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 17 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 17 00 EE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [20:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:44:25]wFMCommunicate OK [20:44:25]requested_item fd.num is exist - process it [20:44:25]SAM_PROTO_GetFieldsCounters [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 13 00 00 [20:44:25]Write to MH i2c: E2 08 00 EF 07 80 13 00 00 00 00 00 00 72 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 62 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 62 00 EF 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [20:44:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:25]wFMCommunicate OK [20:44:25]SAM_PROTO_GetFieldsCounters done [20:44:25]requested_item shift.num is exist - process it [20:44:25]requested_item shift.opened is exist - process it [20:44:25]req_shift_opened [20:44:25]FM_GetShiftState [20:44:25]SAM_PROTO_GetShiftState [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 13 01 00 [20:44:25]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 0E 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5C [20:44:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:44:25]wFMCommunicate OK [20:44:25]SAM_PROTO_GetShiftState done [20:44:25]FM_GetShiftState done [20:44:25]req_shift_opened done [20:44:25]requested_item shift.open_date is exist - process it [20:44:25]req_shift_open_date [20:44:25]req_shift_open_date done [20:44:25]produce_requested_data done [20:44:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188889,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:44:25]process_action_free close_receipt [20:44:25]json_value_free [20:44:25]json_value_free done [20:44:25]process_json_proto returns [20:44:25]Send response to host [20:44:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188889,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:44:25]free response buf [20:44:25]execute_script done [20:44:25]execute_script returns [20:44:25]free content buf [20:44:25]Sock 8.Close socket [20:44:25]Sock 8.Thread stoped [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:45:59]accept exits with 10 [20:45:59]New connection [20:45:59]New thread 3066809700 created [20:45:59]Thread 3066953060 joined [20:45:59]Waiting for new connection... [20:45:59] Sock 10.Parse request [20:45:59]Sock 10.Check first char [20:45:59]Sock 10.First char is OK [20:45:59]request: POST /json_proto HTTP/1.0 [20:45:59]Method: POST [20:45:59]URL: /json_proto [20:45:59]Method is POST - this is cgi request [20:45:59]url: /json_proto [20:45:59]query_string will be loaded in cgi processing [20:45:59]execute_cgi json_proto POST (null) [20:45:59]execute_cgi path=json_proto method=POST [20:45:59]POST find Content-Length [20:45:59]Host: 172.17.42.131:8080 [20:45:59]Content-Length: 769 [20:45:59]Content-Type: application/json [20:45:59] [20:45:59]POST finish read [20:45:59]Found Content-Length = 769 [20:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:59]execute_script... [20: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 : (1)210953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:59]POST & json_proto [20:45:59]process_json_proto [20:45:59]json parsed OK: [20:45:59]protocol is kg_v1.0 [20:45:59]action value=close_receipt [20:45:59]process_action close_receipt [20:45:59]cmd_close_receipt [20:45:59]MH_GetDate [20:45:59]Write to MH i2c: F0 00 00 F1 07 E7 [20:45:59]Write i2c OK [20:45:59]MH_I2C_Read... [20:45:59]Read from MH i2c: F0 [20:45:59]MH_I2C_Read... [20:45:59]Read from MH i2c: F0 09 00 [20:45:59]MH_I2C_Read... [20:45:59]Read from MH i2c: F0 09 00 F1 07 00 88 60 19 67 A0 18 CA 66 40 [20:45:59]GetLastDocTimeStamp 1729716261 [20:45:59]current date 1729716360 [20:45:59]FM_GetShiftState [20:45:59]SAM_PROTO_GetShiftState [20:45:59]wFMCommunicate request_size=4 [20:45:59]MH_SAM_APDU [20:45:59]CAPDU: 80 13 01 00 [20:45:59]Write to MH i2c: E2 08 00 F2 07 80 13 01 00 00 00 00 00 76 [20:45:59]Write i2c OK [20:45:59]MH_I2C_Read... [20:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:59]Read from MH i2c: E2 [20:45:59]MH_I2C_Read... [20:45:59]Read from MH i2c: E2 0E 00 [20:45:59]MH_I2C_Read... [20:45:59]Read from MH i2c: E2 0E 00 F2 07 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5E [20:45:59]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:45:59]wFMCommunicate OK [20:45:59]SAM_PROTO_GetShiftState done [20:45:59]FM_GetShiftState done [20:45:59]opened in 1729642525 [20:45:59]opened+sec_in_day 1729728925 [20:45:59]quantity*price = 150032 [20:45:59]sum+1 = 150033 [20:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 348 23.10.2024 20:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188890 ФПД: 84070402062120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204600&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188890&fm=84070402062120&tin=02508201610067®Number=0000000000100030&sum=150032 [20:46:00]StoreToDocumentArchive [20:46:00]shift 462 fd 188890 [20:46:00]save to /storage/0462/doc_00188890 [20:46:00]save last doc name /storage/0462/doc_00188890 to /storage/kkm_last_doc_name [20:46:00]save OK [20:46:00]Clear old archive folders... [20:46:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:00]tlvbuf is 004E3710 [20:46:00]SAM_PROTO_ClearQueue [20:46:00]wFMCommunicate request_size=4 [20:46:00]MH_SAM_APDU [20:46:00]CAPDU: 80 09 00 00 [20:46:00]Write to MH i2c: E2 08 00 FF 07 80 09 00 00 00 00 00 00 78 [20:46:00]Write i2c OK [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 [20:46:00]MH_I2C_Read... [20:46:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:00]Read from MH i2c: E2 03 00 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [20:46:00]RAPDU: 90 00 [20:46:00]wFMCommunicate OK [20:46:00]SAM_PROTO_ClearQueue done [20:46:00]KKMCreateOFDPacket [20:46:00]OFDProtocolAddRootSTLVToBuf [20:46:00]FM_MakeSignedData [20:46:00]FM_MakeSignedData [20:46:00]SAM_PROTO_SignData [20:46:00]wFMCommunicate request_size=4 [20:46:00]MH_SAM_APDU [20:46:00]CAPDU: 80 0D 01 02 [20:46:00]Write to MH i2c: E2 08 00 00 08 80 0D 01 02 00 00 00 00 81 [20:46:00]Write i2c OK [20:46:00]MH_I2C_Read... [20:46:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:00]Read from MH i2c: E2 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 03 00 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [20:46:00]RAPDU: 90 00 [20:46:00]wFMCommunicate OK [20:46:00]wFMCommunicate request_size=255 [20:46:00]MH_SAM_APDU [20:46:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 88 60 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E1 02 00 35 04 06 00 4C [20:46:00]Write to MH i2c: E2 02 01 01 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 88 60 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E1 02 00 35 04 06 00 4C 00 00 36 [20:46:00]Write i2c OK [20:46:00]MH_I2C_Read... [20:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:00]Read from MH i2c: E2 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 03 00 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [20:46:00]RAPDU: 90 00 [20:46:00]wFMCommunicate OK [20:46:00]wFMCommunicate request_size=10 [20:46:00]MH_SAM_APDU [20:46:00]CAPDU: 80 0D 02 02 05 76 2A 73 77 28 [20:46:00]Write to MH i2c: E2 0D 00 02 08 80 0D 02 02 05 00 76 2A 73 77 28 00 00 40 [20:46:00]Write i2c OK [20:46:00]MH_I2C_Read... [20:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:00]Read from MH i2c: E2 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 03 00 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [20:46:00]RAPDU: 90 00 [20:46:00]wFMCommunicate OK [20:46:00]wFMCommunicate request_size=4 [20:46:00]MH_SAM_APDU [20:46:00]CAPDU: 80 0D 03 02 [20:46:00]Write to MH i2c: E2 08 00 03 08 80 0D 03 02 00 00 00 00 86 [20:46:00]Write i2c OK [20:46:00]MH_I2C_Read... [20:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:01]Read from MH i2c: E2 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: E2 0B 00 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: E2 0B 00 03 08 00 B2 57 F9 BD A0 D9 D3 64 90 00 F6 [20:46:01]RAPDU: B2 57 F9 BD A0 D9 D3 64 90 00 [20:46:01]wFMCommunicate OK [20:46:01]SAM_PROTO_SignData done [20:46:01]FM_MakeSignedData done [20:46:01]CreateOFDProtocolMessage [20:46:01]wFMCommunicate request_size=4 [20:46:01]MH_SAM_APDU [20:46:01]CAPDU: 80 11 00 00 [20:46:01]Write to MH i2c: E2 08 00 04 08 80 11 00 00 00 00 00 00 86 [20:46:01]Write i2c OK [20:46:01]MH_I2C_Read... [20:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:01]Read from MH i2c: E2 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: E2 17 00 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: E2 17 00 04 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [20:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:46:01]wFMCommunicate OK [20:46:01]CreateOFDProtocolMessage done [20:46:01]OFDSenderStorePacket 188890 [20:46:01]StoreOFDPacket docnum=188890 [20:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C E3 07 01 88 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 88 60 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E1 02 00 35 04 06 00 4C 76 2A 73 77 28 B2 57 F9 BD A0 D9 D3 64 [20:46:01]CheckFolder [20:46:01]dirname=/storage/ofd_packets [20:46:01]CheckFolder done [20:46:01]ProducePacketName [20:46:01]name=ofd_packets/00188890 [20:46:01]NVStorageSaveData ofd_packets/00188890 [20:46:01]File name is /storage/ofd_packets/00188890 [20:46:01]Write 301 bytes [20:46:01]NVStorageSaveData done [20:46:01]OFDSenderStorePacket done [20:46:01]KKMCreateOFDPacket done [20:46:01]NVStorageSaveData kkm_last_timestamp [20:46:01]File name is /storage/kkm_last_timestamp [20:46:01]Write 4 bytes [20:46:01]NVStorageSaveData done [20:46:01]ExternCall_PrintAddStr [20:46:01]wPrintStart [20:46:01]Write to MH i2c: 01 00 00 05 08 0D [20:46:01]Write i2c OK [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: 01 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: 01 07 00 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 FF 0F 22 [20:46:01]RasterBufferAndPrint [20:46:01]line Счет N : (1)210953 [20:46:01]line ИНН: 02508201610067 [20:46:01]line Контрольно-Кассовый Чек [20:46:01]line ПРОДАЖА [20:46:01]line ТРК (МРК, ГНК) : 33 [20:46:01]line Товар: 2710124500 [20:46:01]line Аи-95-К-3 [20:46:01]line 20.220 * 74.20 [20:46:01]line = 1500.32 [20:46:01]line НДС 12% НСП 1% [20:46:01]line > о реализуемом товаре [20:46:01]line ИТОГО: 1500.32 [20:46:01]line НСП 1% : 13.28 [20:46:01]line НДС 12% : 159.33 [20:46:01]line Наличными: 0.00 [20:46:01]line Безнал.: 1500.32 [20:46:01]line Место: АЗС № 86 "Партнер Нефть" [20:46:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:46:01]line СНО: Общий режим [20:46:01]line Чек 348 23.10.2024 20:46 [20:46:01]line Смена: 462 ФФД: 1.0 [20:46:01]line ЗНМ: 0300000155 [20:46:01]line РНМ: 0000000000100030 [20:46:01]line Версия ККМ: 001 [20:46:01]line Платежная система: Mbank [20:46:01]line ФМ: 0000000000965340 [20:46:01]line ФД: 188890 [20:46:01]line ФПД: 84070402062120 [20:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204600&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188890&fm=84070402062120&tin=02508201610067®Number=0000000000100030&sum=150032 [20:46:01]OFD Sender: Processing packet 188890 [packets to send 1062, broken 1061] [20:46:01]ProducePacketName [20:46:01]name=ofd_packets/00188890 [20:46:01]OFD Sender: To server: pG, [20:46:01]CommunicateWithHost lk.salyk.kg:30040 [20:46:01]ConnectInit lk.salyk.kg [20:46:01]written 0, free lines is 4095 [20:46:01]Connected sock=9 [20:46:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C E3 07 01 88 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 88 60 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E1 02 00 35 04 06 00 4C 76 2A 73 77 28 B2 57 F9 BD A0 D9 D3 64 [20:46:01]Write to MH i2c: 01 00 00 2E 08 36 [20:46:01]Write i2c OK [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: 01 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: 01 07 00 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 87 0C D0 [20:46:01]RasterBufferAndPrint [20:46:01]line [20:46:01]line [20:46:01]line [20:46:01]line [20:46:01]line [20:46:01]written 0, free lines is 3211 [20:46:01]MH_Cut [20:46:01]Write to MH i2c: D1 01 00 35 08 01 0F [20:46:01]Write i2c OK [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: D1 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: D1 01 00 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: D1 01 00 35 08 00 0E [20:46:01]Write to MH i2c: 01 00 00 36 08 3E [20:46:01]Write i2c OK [20:46:01]MH_I2C_Read... [20:46:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 92 47 00 52 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E1 02 00 F4 03 04 00 72 0A 19 67 B6 04 01 00 00 65 FD FA 2F C8 59 03 7A [20:46:02]CommunicateWithHost err = 0 [20:46:02]CheckOFDResponse [20:46:02]1017 (14) - 77093643461234 [20:46:02]1041 (16) - 0000000000965340 [20:46:02]1040 (4) - 188890 [20:46:02]1012 (4) - 23.10.2024 14:38 [20:46:02]1206 (1) - 0 [20:46:02]OFD Sender: Remove packet 188890 [20:46:02]ProducePacketName [20:46:02]name=ofd_packets/00188890 [20:46:02]NVStorageDeleteData [20:46:02]OFD Sender: No OFD packet to send [20:46:03]*** Cut start [20:46:03]*** Partial cut [20:46:03]*** CUTSNS_PIN = 1 [20:46:03]*** CUTSNS_PIN = 0 [20:46:03]*** Brake cut motor [20:46:03]Read from MH i2c: 01 [20:46:03]MH_I2C_Read... [20:46:03]*** Stop cut motor [20:46:03]*** Cut end [20:46:03]Read from MH i2c: 01 07 00 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: 01 07 00 36 08 00 00 00 00 00 FF 0F 53 [20:46:03]process_action close_receipt done [20:46:03]requested_data is exist [20:46:03]produce_requested_data [20:46:03]requested_item fm.sn is exist - process it [20:46:03]wFMCommunicate request_size=4 [20:46:03]MH_SAM_APDU [20:46:03]CAPDU: 80 11 00 00 [20:46:03]Write to MH i2c: E2 08 00 37 08 80 11 00 00 00 00 00 00 B9 [20:46:03]Write i2c OK [20:46:03]MH_I2C_Read... [20:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:03]Read from MH i2c: E2 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: E2 17 00 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: E2 17 00 37 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [20:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:46:03]wFMCommunicate OK [20:46:03]requested_item fd.num is exist - process it [20:46:03]SAM_PROTO_GetFieldsCounters [20:46:03]wFMCommunicate request_size=4 [20:46:03]MH_SAM_APDU [20:46:03]CAPDU: 80 13 00 00 [20:46:03]Write to MH i2c: E2 08 00 38 08 80 13 00 00 00 00 00 00 BC [20:46:03]Write i2c OK [20:46:03]MH_I2C_Read... [20:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:03]Read from MH i2c: E2 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: E2 62 00 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: E2 62 00 38 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [20: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 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:03]wFMCommunicate OK [20:46:03]SAM_PROTO_GetFieldsCounters done [20:46:03]requested_item shift.num is exist - process it [20:46:03]requested_item shift.opened is exist - process it [20:46:03]req_shift_opened [20:46:03]FM_GetShiftState [20:46:03]SAM_PROTO_GetShiftState [20:46:03]wFMCommunicate request_size=4 [20:46:03]MH_SAM_APDU [20:46:03]CAPDU: 80 13 01 00 [20:46:03]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [20:46:03]Write i2c OK [20:46:03]MH_I2C_Read... [20:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:04]Read from MH i2c: E2 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 0E 00 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A6 [20:46:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:46:04]wFMCommunicate OK [20:46:04]SAM_PROTO_GetShiftState done [20:46:04]FM_GetShiftState done [20:46:04]req_shift_opened done [20:46:04]requested_item shift.open_date is exist - process it [20:46:04]req_shift_open_date [20:46:04]req_shift_open_date done [20:46:04]produce_requested_data done [20:46:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188890,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:46:04]process_action_free close_receipt [20:46:04]json_value_free [20:46:04]json_value_free done [20:46:04]process_json_proto returns [20:46:04]Send response to host [20:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188890,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:46:04]free response buf [20:46:04]execute_script done [20:46:04]execute_script returns [20:46:04]free content buf [20:46:04]Sock 10.Close socket [20:46:04]Sock 10.Thread stoped [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:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]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:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:19]accept exits with 8 [20:57:19]New connection [20:57:19]New thread 3066953060 created [20:57:19]Thread 3066809700 joined [20:57:19]Waiting for new connection... [20:57:19] Sock 8.Parse request [20:57:19]Sock 8.Check first char [20:57:19]Sock 8.First char is OK [20:57:19]request: POST /json_proto HTTP/1.0 [20:57:19]Method: POST [20:57:19]URL: /json_proto [20:57:19]Method is POST - this is cgi request [20:57:19]url: /json_proto [20:57:19]query_string will be loaded in cgi processing [20:57:19]execute_cgi json_proto POST (null) [20:57:19]execute_cgi path=json_proto method=POST [20:57:19]POST find Content-Length [20:57:19]Host: 172.17.42.131:8080 [20:57:19]Content-Length: 688 [20:57:19]Content-Type: application/json [20:57:19] [20:57:19]POST finish read [20:57:19]Found Content-Length = 688 [20:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:19]execute_script... [20:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:19]POST & json_proto [20:57:19]process_json_proto [20:57:19]json parsed OK: [20:57:19]protocol is kg_v1.0 [20:57:19]action value=close_receipt [20:57:19]process_action close_receipt [20:57:19]cmd_close_receipt [20:57:19]MH_GetDate [20:57:19]Write to MH i2c: F0 00 00 3A 08 31 [20:57:19]Write i2c OK [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: F0 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: F0 09 00 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: F0 09 00 3A 08 00 30 63 19 67 A0 18 CA 66 35 [20:57:19]GetLastDocTimeStamp 1729716360 [20:57:19]current date 1729717040 [20:57:19]FM_GetShiftState [20:57:19]SAM_PROTO_GetShiftState [20:57:19]wFMCommunicate request_size=4 [20:57:19]MH_SAM_APDU [20:57:19]CAPDU: 80 13 01 00 [20:57:19]Write to MH i2c: E2 08 00 3B 08 80 13 01 00 00 00 00 00 C0 [20:57:19]Write i2c OK [20:57:19]MH_I2C_Read... [20:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:19]Read from MH i2c: E2 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: E2 0E 00 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: E2 0E 00 3B 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A8 [20:57:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:57:19]wFMCommunicate OK [20:57:19]SAM_PROTO_GetShiftState done [20:57:19]FM_GetShiftState done [20:57:19]opened in 1729642525 [20:57:19]opened+sec_in_day 1729728925 [20:57:19]quantity*price = 100051 [20:57:19]sum+1 = 100052 [20:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 349 23.10.2024 20:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188891 ФПД: 256168172188913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188891&fm=256168172188913&tin=02508201610067®Number=0000000000100030&sum=100000 [20:57:20]StoreToDocumentArchive [20:57:20]shift 462 fd 188891 [20:57:20]save to /storage/0462/doc_00188891 [20:57:20]save last doc name /storage/0462/doc_00188891 to /storage/kkm_last_doc_name [20:57:20]save OK [20:57:20]Clear old archive folders... [20:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:57:20]tlvbuf is 00524E90 [20:57:20]SAM_PROTO_ClearQueue [20:57:20]wFMCommunicate request_size=4 [20:57:20]MH_SAM_APDU [20:57:20]CAPDU: 80 09 00 00 [20:57:20]Write to MH i2c: E2 08 00 48 08 80 09 00 00 00 00 00 00 C2 [20:57:20]Write i2c OK [20:57:20]MH_I2C_Read... [20:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:20]Read from MH i2c: E2 [20:57:20]MH_I2C_Read... [20:57:20]Read from MH i2c: E2 03 00 [20:57:20]MH_I2C_Read... [20:57:20]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [20:57:20]RAPDU: 90 00 [20:57:20]wFMCommunicate OK [20:57:20]SAM_PROTO_ClearQueue done [20:57:20]KKMCreateOFDPacket [20:57:20]OFDProtocolAddRootSTLVToBuf [20:57:20]FM_MakeSignedData [20:57:20]FM_MakeSignedData [20:57:20]SAM_PROTO_SignData [20:57:20]wFMCommunicate request_size=4 [20:57:20]MH_SAM_APDU [20:57:20]CAPDU: 80 0D 01 02 [20:57:20]Write to MH i2c: E2 08 00 49 08 80 0D 01 02 00 00 00 00 CA [20:57:20]Write i2c OK [20:57:20]MH_I2C_Read... [20:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:20]Read from MH i2c: E2 [20:57:20]MH_I2C_Read... [20:57:20]Read from MH i2c: E2 03 00 [20:57:20]MH_I2C_Read... [20:57:20]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [20:57:20]RAPDU: 90 00 [20:57:20]wFMCommunicate OK [20:57:20]wFMCommunicate request_size=255 [20:57:20]MH_SAM_APDU [20:57:20]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 30 63 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E1 02 [20:57:20]Write to MH i2c: E2 02 01 4A 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 30 63 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E1 02 00 00 25 [20:57:20]Write i2c OK [20:57:20]MH_I2C_Read... [20:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:21]Read from MH i2c: E2 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: E2 03 00 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [20:57:21]RAPDU: 90 00 [20:57:21]wFMCommunicate OK [20:57:21]wFMCommunicate request_size=16 [20:57:21]MH_SAM_APDU [20:57:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E8 FB CC E7 F4 F1 [20:57:21]Write to MH i2c: E2 13 00 4B 08 80 0D 02 02 0B 00 00 35 04 06 00 E8 FB CC E7 F4 F1 00 00 9D [20:57:21]Write i2c OK [20:57:21]MH_I2C_Read... [20:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:21]Read from MH i2c: E2 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: E2 03 00 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [20:57:21]RAPDU: 90 00 [20:57:21]wFMCommunicate OK [20:57:21]wFMCommunicate request_size=4 [20:57:21]MH_SAM_APDU [20:57:21]CAPDU: 80 0D 03 02 [20:57:21]Write to MH i2c: E2 08 00 4C 08 80 0D 03 02 00 00 00 00 CF [20:57:21]Write i2c OK [20:57:21]MH_I2C_Read... [20:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:21]Read from MH i2c: E2 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: E2 0B 00 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: E2 0B 00 4C 08 00 44 9B C0 39 04 AD D9 58 90 00 8A [20:57:21]RAPDU: 44 9B C0 39 04 AD D9 58 90 00 [20:57:21]wFMCommunicate OK [20:57:21]SAM_PROTO_SignData done [20:57:21]FM_MakeSignedData done [20:57:21]CreateOFDProtocolMessage [20:57:21]wFMCommunicate request_size=4 [20:57:21]MH_SAM_APDU [20:57:21]CAPDU: 80 11 00 00 [20:57:21]Write to MH i2c: E2 08 00 4D 08 80 11 00 00 00 00 00 00 CF [20:57:21]Write i2c OK [20:57:21]MH_I2C_Read... [20:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:21]Read from MH i2c: E2 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: E2 17 00 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: E2 17 00 4D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [20:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:57:21]wFMCommunicate OK [20:57:21]CreateOFDProtocolMessage done [20:57:21]OFDSenderStorePacket 188891 [20:57:21]StoreOFDPacket docnum=188891 [20:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CE 85 0D 01 F5 E9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 30 63 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E1 02 00 35 04 06 00 E8 FB CC E7 F4 F1 44 9B C0 39 04 AD D9 58 [20:57:21]CheckFolder [20:57:21]dirname=/storage/ofd_packets [20:57:21]CheckFolder done [20:57:21]ProducePacketName [20:57:21]name=ofd_packets/00188891 [20:57:21]NVStorageSaveData ofd_packets/00188891 [20:57:21]File name is /storage/ofd_packets/00188891 [20:57:21]Write 307 bytes [20:57:21]NVStorageSaveData done [20:57:21]OFDSenderStorePacket done [20:57:21]KKMCreateOFDPacket done [20:57:21]NVStorageSaveData kkm_last_timestamp [20:57:21]File name is /storage/kkm_last_timestamp [20:57:21]Write 4 bytes [20:57:21]NVStorageSaveData done [20:57:21]ExternCall_PrintAddStr [20:57:21]wPrintStart [20:57:21]Write to MH i2c: 01 00 00 4E 08 56 [20:57:21]Write i2c OK [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: 01 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: 01 07 00 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: 01 07 00 4E 08 00 00 00 00 00 FF 0F 6B [20:57:21]RasterBufferAndPrint [20:57:21]line Счет N : (1)210954 [20:57:21]line ИНН: 02508201610067 [20:57:21]line Контрольно-Кассовый Чек [20:57:21]line ПРОДАЖА [20:57:21]line ТРК (МРК, ГНК) : 11 [20:57:21]line Товар: 2710194210 [20:57:21]line D-ENERGY ДТ-К-5 [20:57:21]line 12.960 * 77.20 [20:57:21]line = 1000.51 [20:57:21]line НДС 12% НСП 1% [20:57:21]line > о реализуемом товаре [20:57:21]line ОКРУГЛЕНИЕ: -0.51 [20:57:21]line ИТОГО: 1000.00 [20:57:21]line Внесено: 1000.00 [20:57:21]line СДАЧА: 0.00 [20:57:21]line НСП 1% : 8.85 [20:57:21]line НДС 12% : 106.25 [20:57:21]line Наличными: 1000.00 [20:57:21]line Безнал.: 0.00 [20:57:21]line Место: АЗС № 86 "Партнер Нефть" [20:57:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:57:21]line СНО: Общий режим [20:57:21]line Чек 349 23.10.2024 20:57 [20:57:21]line Смена: 462 ФФД: 1.0 [20:57:21]line ЗНМ: 0300000155 [20:57:21]line РНМ: 0000000000100030 [20:57:21]line Версия ККМ: 001 [20:57:21]line ФМ: 0000000000965340 [20:57:21]line ФД: 188891 [20:57:21]line ФПД: 256168172188913 [20:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188891&fm=256168172188913&tin=02508201610067®Number=0000000000100030&sum=100000 [20:57:21]written 0, free lines is 4095 [20:57:21]OFD Sender: Processing packet 188891 [packets to send 1062, broken 1061] [20:57:21]ProducePacketName [20:57:21]name=ofd_packets/00188891 [20:57:21]OFD Sender: To server: pG, [20:57:21]CommunicateWithHost lk.salyk.kg:30040 [20:57:21]ConnectInit lk.salyk.kg [20:57:21]Connected sock=11 [20:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CE 85 0D 01 F5 E9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 30 63 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E1 02 00 35 04 06 00 E8 FB CC E7 F4 F1 44 9B C0 39 04 AD D9 58 [20:57:21]Write to MH i2c: 01 00 00 79 08 81 [20:57:21]Write i2c OK [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: 01 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: 01 07 00 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: 01 07 00 79 08 00 00 00 00 00 55 0C E9 [20:57:21]RasterBufferAndPrint [20:57:21]line [20:57:21]line [20:57:21]line [20:57:21]line [20:57:21]line [20:57:21]written 0, free lines is 3160 [20:57:21]MH_Cut [20:57:21]Write to MH i2c: D1 01 00 80 08 01 5A [20:57:21]Write i2c OK [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: D1 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: D1 01 00 [20:57:21]MH_I2C_Read... [20:57:21]Read from MH i2c: D1 01 00 80 08 00 59 [20:57:21]Write to MH i2c: 01 00 00 81 08 89 [20:57:21]Write i2c OK [20:57:21]MH_I2C_Read... [20:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 43 47 00 B6 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E1 02 00 F4 03 04 00 1A 0D 19 67 B6 04 01 00 00 14 79 05 E6 98 70 19 29 [20:57:22]CommunicateWithHost err = 0 [20:57:22]CheckOFDResponse [20:57:22]1017 (14) - 77093643461234 [20:57:22]1041 (16) - 0000000000965340 [20:57:22]1040 (4) - 188891 [20:57:22]1012 (4) - 23.10.2024 14:50 [20:57:22]1206 (1) - 0 [20:57:22]OFD Sender: Remove packet 188891 [20:57:22]ProducePacketName [20:57:22]name=ofd_packets/00188891 [20:57:22]NVStorageDeleteData [20:57:22]OFD Sender: No OFD packet to send [20:57:23]*** Cut start [20:57:23]*** Partial cut [20:57:23]*** CUTSNS_PIN = 1 [20:57:23]*** CUTSNS_PIN = 0 [20:57:23]*** Brake cut motor [20:57:23]Read from MH i2c: 01 [20:57:23]MH_I2C_Read... [20:57:23]*** Stop cut motor [20:57:23]*** Cut end [20:57:23]Read from MH i2c: 01 07 00 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 FF 0F 9E [20:57:23]process_action close_receipt done [20:57:23]requested_data is exist [20:57:23]produce_requested_data [20:57:23]requested_item fm.sn is exist - process it [20:57:23]wFMCommunicate request_size=4 [20:57:23]MH_SAM_APDU [20:57:23]CAPDU: 80 11 00 00 [20:57:23]Write to MH i2c: E2 08 00 82 08 80 11 00 00 00 00 00 00 04 [20:57:23]Write i2c OK [20:57:23]MH_I2C_Read... [20:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:23]Read from MH i2c: E2 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: E2 17 00 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: E2 17 00 82 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [20:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:57:23]wFMCommunicate OK [20:57:23]requested_item fd.num is exist - process it [20:57:23]SAM_PROTO_GetFieldsCounters [20:57:23]wFMCommunicate request_size=4 [20:57:23]MH_SAM_APDU [20:57:23]CAPDU: 80 13 00 00 [20:57:23]Write to MH i2c: E2 08 00 83 08 80 13 00 00 00 00 00 00 07 [20:57:23]Write i2c OK [20:57:23]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 62 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 62 00 83 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [20:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:24]wFMCommunicate OK [20:57:24]SAM_PROTO_GetFieldsCounters done [20:57:24]requested_item shift.num is exist - process it [20:57:24]requested_item shift.opened is exist - process it [20:57:24]req_shift_opened [20:57:24]FM_GetShiftState [20:57:24]SAM_PROTO_GetShiftState [20:57:24]wFMCommunicate request_size=4 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 13 01 00 [20:57:24]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 0E 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F1 [20:57:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [20:57:24]wFMCommunicate OK [20:57:24]SAM_PROTO_GetShiftState done [20:57:24]FM_GetShiftState done [20:57:24]req_shift_opened done [20:57:24]requested_item shift.open_date is exist - process it [20:57:24]req_shift_open_date [20:57:24]req_shift_open_date done [20:57:24]produce_requested_data done [20:57:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188891,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [20:57:24]process_action_free close_receipt [20:57:24]json_value_free [20:57:24]json_value_free done [20:57:24]process_json_proto returns [20:57:24]Send response to host [20:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188891,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [20:57:24]free response buf [20:57:24]execute_script done [20:57:24]execute_script returns [20:57:24]free content buf [20:57:24]Sock 8.Close socket [20:57:24]Sock 8.Thread stoped [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09: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:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:50]accept exits with 9 [21:11:50]New connection [21:11:50]New thread 3066809700 created [21:11:50]Thread 3066953060 joined [21:11:50]Waiting for new connection... [21:11:50] Sock 9.Parse request [21:11:50]Sock 9.Check first char [21:11:50]Sock 9.First char is OK [21:11:50]request: POST /json_proto HTTP/1.0 [21:11:50]Method: POST [21:11:50]URL: /json_proto [21:11:50]Method is POST - this is cgi request [21:11:50]url: /json_proto [21:11:50]query_string will be loaded in cgi processing [21:11:50]execute_cgi json_proto POST (null) [21:11:50]execute_cgi path=json_proto method=POST [21:11:50]POST find Content-Length [21:11:50]Host: 172.17.42.131:8080 [21:11:50]Content-Length: 769 [21:11:50]Content-Type: application/json [21:11:50] [21:11:50]POST finish read [21:11:50]Found Content-Length = 769 [21:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:50]execute_script... [21:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:50]POST & json_proto [21:11:50]process_json_proto [21:11:50]json parsed OK: [21:11:50]protocol is kg_v1.0 [21:11:50]action value=close_receipt [21:11:50]process_action close_receipt [21:11:50]cmd_close_receipt [21:11:50]MH_GetDate [21:11:50]Write to MH i2c: F0 00 00 85 08 7C [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: F0 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: F0 09 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: F0 09 00 85 08 00 97 66 19 67 A0 18 CA 66 EA [21:11:50]GetLastDocTimeStamp 1729717040 [21:11:50]current date 1729717911 [21:11:50]FM_GetShiftState [21:11:50]SAM_PROTO_GetShiftState [21:11:50]wFMCommunicate request_size=4 [21:11:50]MH_SAM_APDU [21:11:50]CAPDU: 80 13 01 00 [21:11:50]Write to MH i2c: E2 08 00 86 08 80 13 01 00 00 00 00 00 0B [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:50]Read from MH i2c: E2 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 0E 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 0E 00 86 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F3 [21:11:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:11:50]wFMCommunicate OK [21:11:50]SAM_PROTO_GetShiftState done [21:11:50]FM_GetShiftState done [21:11:50]opened in 1729642525 [21:11:50]opened+sec_in_day 1729728925 [21:11:50]quantity*price = 500033 [21:11:50]sum+1 = 500035 [21:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.34 НСП 1% : 44.25 НДС 12% : 531.01 Наличными: 0.00 Безнал.: 5000.34 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 350 23.10.2024 21:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188892 ФПД: 208227711475863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188892&fm=208227711475863&tin=02508201610067®Number=0000000000100030&sum=500034 [21:11:51]StoreToDocumentArchive [21:11:51]shift 462 fd 188892 [21:11:51]save to /storage/0462/doc_00188892 [21:11:51]save last doc name /storage/0462/doc_00188892 to /storage/kkm_last_doc_name [21:11:51]save OK [21:11:51]Clear old archive folders... [21:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:51]tlvbuf is 00515F20 [21:11:51]SAM_PROTO_ClearQueue [21:11:51]wFMCommunicate request_size=4 [21:11:51]MH_SAM_APDU [21:11:51]CAPDU: 80 09 00 00 [21:11:51]Write to MH i2c: E2 08 00 93 08 80 09 00 00 00 00 00 00 0D [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:51]Read from MH i2c: E2 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 03 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [21:11:51]RAPDU: 90 00 [21:11:51]wFMCommunicate OK [21:11:51]SAM_PROTO_ClearQueue done [21:11:51]KKMCreateOFDPacket [21:11:51]OFDProtocolAddRootSTLVToBuf [21:11:51]FM_MakeSignedData [21:11:51]FM_MakeSignedData [21:11:51]SAM_PROTO_SignData [21:11:51]wFMCommunicate request_size=4 [21:11:51]MH_SAM_APDU [21:11:51]CAPDU: 80 0D 01 02 [21:11:51]Write to MH i2c: E2 08 00 94 08 80 0D 01 02 00 00 00 00 15 [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:51]Read from MH i2c: E2 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 03 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [21:11:51]RAPDU: 90 00 [21:11:51]wFMCommunicate OK [21:11:51]wFMCommunicate request_size=255 [21:11:51]MH_SAM_APDU [21:11:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 97 66 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E1 02 00 35 04 06 00 BD [21:11:51]Write to MH i2c: E2 02 01 95 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 97 66 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E1 02 00 35 04 06 00 BD 00 00 E0 [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]OFD Sender: No OFD packet to send [21:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:51]Read from MH i2c: E2 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 03 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [21:11:51]RAPDU: 90 00 [21:11:51]wFMCommunicate OK [21:11:51]wFMCommunicate request_size=10 [21:11:51]MH_SAM_APDU [21:11:51]CAPDU: 80 0D 02 02 05 61 CA C6 60 97 [21:11:51]Write to MH i2c: E2 0D 00 96 08 80 0D 02 02 05 00 61 CA C6 60 97 00 00 0A [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:51]Read from MH i2c: E2 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 03 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [21:11:51]RAPDU: 90 00 [21:11:51]wFMCommunicate OK [21:11:51]wFMCommunicate request_size=4 [21:11:51]MH_SAM_APDU [21:11:51]CAPDU: 80 0D 03 02 [21:11:51]Write to MH i2c: E2 08 00 97 08 80 0D 03 02 00 00 00 00 1A [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:51]Read from MH i2c: E2 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 0B 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 0B 00 97 08 00 3A A9 62 B6 A0 E1 43 ED 90 00 C7 [21:11:51]RAPDU: 3A A9 62 B6 A0 E1 43 ED 90 00 [21:11:51]wFMCommunicate OK [21:11:51]SAM_PROTO_SignData done [21:11:51]FM_MakeSignedData done [21:11:51]CreateOFDProtocolMessage [21:11:51]wFMCommunicate request_size=4 [21:11:51]MH_SAM_APDU [21:11:51]CAPDU: 80 11 00 00 [21:11:51]Write to MH i2c: E2 08 00 98 08 80 11 00 00 00 00 00 00 1A [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:51]Read from MH i2c: E2 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 17 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: E2 17 00 98 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [21:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:11:51]wFMCommunicate OK [21:11:51]CreateOFDProtocolMessage done [21:11:51]OFDSenderStorePacket 188892 [21:11:51]StoreOFDPacket docnum=188892 [21:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F3 58 07 01 FC 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 97 66 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E1 02 00 35 04 06 00 BD 61 CA C6 60 97 3A A9 62 B6 A0 E1 43 ED [21:11:51]CheckFolder [21:11:51]dirname=/storage/ofd_packets [21:11:51]CheckFolder done [21:11:51]ProducePacketName [21:11:51]name=ofd_packets/00188892 [21:11:51]NVStorageSaveData ofd_packets/00188892 [21:11:51]File name is /storage/ofd_packets/00188892 [21:11:51]Write 301 bytes [21:11:51]NVStorageSaveData done [21:11:51]OFDSenderStorePacket done [21:11:51]KKMCreateOFDPacket done [21:11:51]NVStorageSaveData kkm_last_timestamp [21:11:51]File name is /storage/kkm_last_timestamp [21:11:51]Write 4 bytes [21:11:51]NVStorageSaveData done [21:11:51]ExternCall_PrintAddStr [21:11:51]wPrintStart [21:11:51]Write to MH i2c: 01 00 00 99 08 A1 [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 07 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 07 00 99 08 00 00 00 00 00 FF 0F B6 [21:11:51]RasterBufferAndPrint [21:11:51]line Счет N : (1)210955 [21:11:51]line ИНН: 02508201610067 [21:11:51]line Контрольно-Кассовый Чек [21:11:51]line ПРОДАЖА [21:11:51]line ТРК (МРК, ГНК) : 43 [21:11:51]line Товар: 2710124500 [21:11:51]line Аи-95-К-3 [21:11:51]line 67.390 * 74.20 [21:11:51]line = 5000.34 [21:11:51]line НДС 12% НСП 1% [21:11:51]line > о реализуемом товаре [21:11:51]line ИТОГО: 5000.34 [21:11:51]line НСП 1% : 44.25 [21:11:51]line НДС 12% : 531.01 [21:11:51]line Наличными: 0.00 [21:11:51]line Безнал.: 5000.34 [21:11:51]line Место: АЗС № 86 "Партнер Нефть" [21:11:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:11:51]line СНО: Общий режим [21:11:51]line Чек 350 23.10.2024 21:11 [21:11:51]line Смена: 462 ФФД: 1.0 [21:11:51]line ЗНМ: 0300000155 [21:11:51]line РНМ: 0000000000100030 [21:11:51]line Версия ККМ: 001 [21:11:51]line Платежная система: Mbank [21:11:51]line ФМ: 0000000000965340 [21:11:51]line ФД: 188892 [21:11:51]line ФПД: 208227711475863 [21:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188892&fm=208227711475863&tin=02508201610067®Number=0000000000100030&sum=500034 [21:11:51]written 0, free lines is 4095 [21:11:52]OFD Sender: Processing packet 188892 [packets to send 1062, broken 1061] [21:11:52]ProducePacketName [21:11:52]name=ofd_packets/00188892 [21:11:52]OFD Sender: To server: pG, [21:11:52]CommunicateWithHost lk.salyk.kg:30040 [21:11:52]ConnectInit lk.salyk.kg [21:11:52]Connected sock=10 [21:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F3 58 07 01 FC 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 97 66 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E1 02 00 35 04 06 00 BD 61 CA C6 60 97 3A A9 62 B6 A0 E1 43 ED [21:11:52]Write to MH i2c: 01 00 00 C2 08 CA [21:11:52]Write i2c OK [21:11:52]MH_I2C_Read... [21:11:52]Read from MH i2c: 01 [21:11:52]MH_I2C_Read... [21:11:52]Read from MH i2c: 01 07 00 [21:11:52]MH_I2C_Read... [21:11:52]Read from MH i2c: 01 07 00 C2 08 00 00 00 00 00 93 0C 70 [21:11:52]RasterBufferAndPrint [21:11:52]line [21:11:52]line [21:11:52]line [21:11:52]line [21:11:52]line [21:11:52]written 0, free lines is 3222 [21:11:52]MH_Cut [21:11:52]Write to MH i2c: D1 01 00 C9 08 01 A3 [21:11:52]Write i2c OK [21:11:52]MH_I2C_Read... [21:11:52]Read from MH i2c: D1 [21:11:52]MH_I2C_Read... [21:11:52]Read from MH i2c: D1 01 00 [21:11:52]MH_I2C_Read... [21:11:52]Read from MH i2c: D1 01 00 C9 08 00 A2 [21:11:52]Write to MH i2c: 01 00 00 CA 08 D2 [21:11:52]Write i2c OK [21:11:52]MH_I2C_Read... [21:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 58 99 47 00 B6 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 36 35 33 34 30 10 04 04 00 DC E1 02 00 F4 03 04 00 80 10 19 67 B6 04 01 00 00 F7 32 A9 40 A5 B3 71 A6 [21:11:52]CommunicateWithHost err = 0 [21:11:52]CheckOFDResponse [21:11:52]1017 (14) - 77093643461234 [21:11:52]1041 (16) - 0000000000965340 [21:11:52]1040 (4) - 188892 [21:11:52]1012 (4) - 23.10.2024 15:04 [21:11:52]1206 (1) - 0 [21:11:52]OFD Sender: Remove packet 188892 [21:11:52]ProducePacketName [21:11:52]name=ofd_packets/00188892 [21:11:52]NVStorageDeleteData [21:11:53]OFD Sender: No OFD packet to send [21:11:53]*** Cut start [21:11:53]*** Partial cut [21:11:53]*** CUTSNS_PIN = 1 [21:11:53]*** CUTSNS_PIN = 0 [21:11:53]*** Brake cut motor [21:11:54]Read from MH i2c: 01 [21:11:54]MH_I2C_Read... [21:11:54]*** Stop cut motor [21:11:54]*** Cut end [21:11:54]Read from MH i2c: 01 07 00 [21:11:54]MH_I2C_Read... [21:11:54]Read from MH i2c: 01 07 00 CA 08 00 00 00 00 00 FF 0F E7 [21:11:54]process_action close_receipt done [21:11:54]requested_data is exist [21:11:54]produce_requested_data [21:11:54]requested_item fm.sn is exist - process it [21:11:54]wFMCommunicate request_size=4 [21:11:54]MH_SAM_APDU [21:11:54]CAPDU: 80 11 00 00 [21:11:54]Write to MH i2c: E2 08 00 CB 08 80 11 00 00 00 00 00 00 4D [21:11:54]Write i2c OK [21:11:54]MH_I2C_Read... [21:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:54]Read from MH i2c: E2 [21:11:54]MH_I2C_Read... [21:11:54]Read from MH i2c: E2 17 00 [21:11:54]MH_I2C_Read... [21:11:54]Read from MH i2c: E2 17 00 CB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [21:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:11:54]wFMCommunicate OK [21:11:54]requested_item fd.num is exist - process it [21:11:54]SAM_PROTO_GetFieldsCounters [21:11:54]wFMCommunicate request_size=4 [21:11:54]MH_SAM_APDU [21:11:54]CAPDU: 80 13 00 00 [21:11:54]Write to MH i2c: E2 08 00 CC 08 80 13 00 00 00 00 00 00 50 [21:11:54]Write i2c OK [21:11:54]MH_I2C_Read... [21:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:54]Read from MH i2c: E2 [21:11:54]MH_I2C_Read... [21:11:54]Read from MH i2c: E2 62 00 [21:11:54]MH_I2C_Read... [21:11:54]Read from MH i2c: E2 62 00 CC 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [21:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:54]wFMCommunicate OK [21:11:54]SAM_PROTO_GetFieldsCounters done [21:11:54]requested_item shift.num is exist - process it [21:11:54]requested_item shift.opened is exist - process it [21:11:54]req_shift_opened [21:11:54]FM_GetShiftState [21:11:54]SAM_PROTO_GetShiftState [21:11:54]wFMCommunicate request_size=4 [21:11:54]MH_SAM_APDU [21:11:54]CAPDU: 80 13 01 00 [21:11:54]Write to MH i2c: E2 08 00 CD 08 80 13 01 00 00 00 00 00 52 [21:11:54]Write i2c OK [21:11:54]MH_I2C_Read... [21:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:54]Read from MH i2c: E2 [21:11:54]MH_I2C_Read... [21:11:54]Read from MH i2c: E2 0E 00 [21:11:54]MH_I2C_Read... [21:11:54]Read from MH i2c: E2 0E 00 CD 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3A [21:11:54]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:11:54]wFMCommunicate OK [21:11:54]SAM_PROTO_GetShiftState done [21:11:54]FM_GetShiftState done [21:11:54]req_shift_opened done [21:11:54]requested_item shift.open_date is exist - process it [21:11:54]req_shift_open_date [21:11:54]req_shift_open_date done [21:11:54]produce_requested_data done [21:11:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188892,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:11:54]process_action_free close_receipt [21:11:54]json_value_free [21:11:54]json_value_free done [21:11:54]process_json_proto returns [21:11:54]Send response to host [21:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188892,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:11:54]free response buf [21:11:54]execute_script done [21:11:54]execute_script returns [21:11:54]free content buf [21:11:54]Sock 9.Close socket [21:11:54]Sock 9.Thread stoped [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:08]accept exits with 8 [21:17:08]New connection [21:17:08]New thread 3066953060 created [21:17:08]Thread 3066809700 joined [21:17:08]Waiting for new connection... [21:17:08] Sock 8.Parse request [21:17:08]Sock 8.Check first char [21:17:08]Sock 8.First char is OK [21:17:08]request: POST /json_proto HTTP/1.0 [21:17:08]Method: POST [21:17:08]URL: /json_proto [21:17:08]Method is POST - this is cgi request [21:17:08]url: /json_proto [21:17:08]query_string will be loaded in cgi processing [21:17:08]execute_cgi json_proto POST (null) [21:17:08]execute_cgi path=json_proto method=POST [21:17:08]POST find Content-Length [21:17:08]Host: 172.17.42.131:8080 [21:17:08]Content-Length: 682 [21:17:08]Content-Type: application/json [21:17:08] [21:17:08]POST finish read [21:17:08]Found Content-Length = 682 [21:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:08]execute_script... [21:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:08]POST & json_proto [21:17:08]process_json_proto [21:17:08]json parsed OK: [21:17:08]protocol is kg_v1.0 [21:17:08]action value=close_receipt [21:17:08]process_action close_receipt [21:17:08]cmd_close_receipt [21:17:08]MH_GetDate [21:17:08]Write to MH i2c: F0 00 00 CE 08 C5 [21:17:08]Write i2c OK [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: F0 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: F0 09 00 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: F0 09 00 CE 08 00 D5 67 19 67 A0 18 CA 66 72 [21:17:08]GetLastDocTimeStamp 1729717911 [21:17:08]current date 1729718229 [21:17:08]FM_GetShiftState [21:17:08]SAM_PROTO_GetShiftState [21:17:08]wFMCommunicate request_size=4 [21:17:08]MH_SAM_APDU [21:17:08]CAPDU: 80 13 01 00 [21:17:08]Write to MH i2c: E2 08 00 CF 08 80 13 01 00 00 00 00 00 54 [21:17:08]Write i2c OK [21:17:08]MH_I2C_Read... [21:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:08]Read from MH i2c: E2 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: E2 0E 00 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: E2 0E 00 CF 08 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3C [21:17:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:17:08]wFMCommunicate OK [21:17:08]SAM_PROTO_GetShiftState done [21:17:08]FM_GetShiftState done [21:17:08]opened in 1729642525 [21:17:08]opened+sec_in_day 1729728925 [21:17:08]quantity*price = 120018 [21:17:08]sum+1 = 120020 [21:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 351 23.10.2024 21:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188893 ФПД: 97015693168691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188893&fm=97015693168691&tin=02508201610067®Number=0000000000100030&sum=120000 [21:17:09]StoreToDocumentArchive [21:17:09]shift 462 fd 188893 [21:17:09]save to /storage/0462/doc_00188893 [21:17:09]save last doc name /storage/0462/doc_00188893 to /storage/kkm_last_doc_name [21:17:09]save OK [21:17:09]Clear old archive folders... [21:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:09]tlvbuf is 005178A0 [21:17:09]SAM_PROTO_ClearQueue [21:17:09]wFMCommunicate request_size=4 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 09 00 00 [21:17:09]Write to MH i2c: E2 08 00 DC 08 80 09 00 00 00 00 00 00 56 [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:09]Read from MH i2c: E2 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [21:17:09]RAPDU: 90 00 [21:17:09]wFMCommunicate OK [21:17:09]SAM_PROTO_ClearQueue done [21:17:09]KKMCreateOFDPacket [21:17:09]OFDProtocolAddRootSTLVToBuf [21:17:09]FM_MakeSignedData [21:17:09]FM_MakeSignedData [21:17:09]SAM_PROTO_SignData [21:17:09]wFMCommunicate request_size=4 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 0D 01 02 [21:17:09]Write to MH i2c: E2 08 00 DD 08 80 0D 01 02 00 00 00 00 5E [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:09]Read from MH i2c: E2 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [21:17:09]RAPDU: 90 00 [21:17:09]wFMCommunicate OK [21:17:09]wFMCommunicate request_size=255 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 D5 67 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E1 02 00 35 04 06 00 58 [21:17:09]Write to MH i2c: E2 02 01 DE 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 D5 67 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E1 02 00 35 04 06 00 58 00 00 DB [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:10]Read from MH i2c: E2 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: E2 03 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [21:17:10]RAPDU: 90 00 [21:17:10]wFMCommunicate OK [21:17:10]wFMCommunicate request_size=10 [21:17:10]MH_SAM_APDU [21:17:10]CAPDU: 80 0D 02 02 05 3C 39 ED D0 33 [21:17:10]Write to MH i2c: E2 0D 00 DF 08 80 0D 02 02 05 00 3C 39 ED D0 33 00 00 D0 [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:10]Read from MH i2c: E2 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: E2 03 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [21:17:10]RAPDU: 90 00 [21:17:10]wFMCommunicate OK [21:17:10]wFMCommunicate request_size=4 [21:17:10]MH_SAM_APDU [21:17:10]CAPDU: 80 0D 03 02 [21:17:10]Write to MH i2c: E2 08 00 E0 08 80 0D 03 02 00 00 00 00 63 [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:10]Read from MH i2c: E2 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: E2 0B 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: E2 0B 00 E0 08 00 41 B5 98 5A A4 BC 7D 1C 90 00 45 [21:17:10]RAPDU: 41 B5 98 5A A4 BC 7D 1C 90 00 [21:17:10]wFMCommunicate OK [21:17:10]SAM_PROTO_SignData done [21:17:10]FM_MakeSignedData done [21:17:10]CreateOFDProtocolMessage [21:17:10]wFMCommunicate request_size=4 [21:17:10]MH_SAM_APDU [21:17:10]CAPDU: 80 11 00 00 [21:17:10]Write to MH i2c: E2 08 00 E1 08 80 11 00 00 00 00 00 00 63 [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:10]Read from MH i2c: E2 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: E2 17 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: E2 17 00 E1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [21:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:17:10]wFMCommunicate OK [21:17:10]CreateOFDProtocolMessage done [21:17:10]OFDSenderStorePacket 188893 [21:17:10]StoreOFDPacket docnum=188893 [21:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 87 07 01 F3 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 D5 67 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E1 02 00 35 04 06 00 58 3C 39 ED D0 33 41 B5 98 5A A4 BC 7D 1C [21:17:10]CheckFolder [21:17:10]dirname=/storage/ofd_packets [21:17:10]CheckFolder done [21:17:10]ProducePacketName [21:17:10]name=ofd_packets/00188893 [21:17:10]NVStorageSaveData ofd_packets/00188893 [21:17:10]File name is /storage/ofd_packets/00188893 [21:17:10]Write 301 bytes [21:17:10]NVStorageSaveData done [21:17:10]OFDSenderStorePacket done [21:17:10]KKMCreateOFDPacket done [21:17:10]NVStorageSaveData kkm_last_timestamp [21:17:10]File name is /storage/kkm_last_timestamp [21:17:10]Write 4 bytes [21:17:10]NVStorageSaveData done [21:17:10]ExternCall_PrintAddStr [21:17:10]wPrintStart [21:17:10]Write to MH i2c: 01 00 00 E2 08 EA [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 07 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 07 00 E2 08 00 00 00 00 00 FF 0F FF [21:17:10]RasterBufferAndPrint [21:17:10]line Счет N : (1)210956 [21:17:10]line ИНН: 02508201610067 [21:17:10]line Контрольно-Кассовый Чек [21:17:10]line ПРОДАЖА [21:17:10]line ТРК (МРК, ГНК) : 32 [21:17:10]line Товар: 2710124130 [21:17:10]line Аи-92-К-3 [21:17:10]line 17.940 * 66.90 [21:17:10]line = 1200.19 [21:17:10]line НДС 12% НСП 1% [21:17:10]line > о реализуемом товаре [21:17:10]line ОКРУГЛЕНИЕ: -0.19 [21:17:10]line ИТОГО: 1200.00 [21:17:10]line Внесено: 1200.00 [21:17:10]line СДАЧА: 0.00 [21:17:10]line НСП 1% : 10.62 [21:17:10]line НДС 12% : 127.45 [21:17:10]line Наличными: 1200.00 [21:17:10]line Безнал.: 0.00 [21:17:10]line Место: АЗС № 86 "Партнер Нефть" [21:17:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:17:10]line СНО: Общий режим [21:17:10]line Чек 351 23.10.2024 21:17 [21:17:10]line Смена: 462 ФФД: 1.0 [21:17:10]line ЗНМ: 0300000155 [21:17:10]line РНМ: 0000000000100030 [21:17:10]line Версия ККМ: 001 [21:17:10]line ФМ: 0000000000965340 [21:17:10]line ФД: 188893 [21:17:10]line ФПД: 97015693168691 [21:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188893&fm=97015693168691&tin=02508201610067®Number=0000000000100030&sum=120000 [21:17:10]written 0, free lines is 4095 [21:17:10]OFD Sender: Processing packet 188893 [packets to send 1062, broken 1061] [21:17:10]ProducePacketName [21:17:10]name=ofd_packets/00188893 [21:17:10]OFD Sender: To server: pG, [21:17:10]CommunicateWithHost lk.salyk.kg:30040 [21:17:10]ConnectInit lk.salyk.kg [21:17:10]Connected sock=10 [21:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 87 07 01 F3 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 D5 67 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E1 02 00 35 04 06 00 58 3C 39 ED D0 33 41 B5 98 5A A4 BC 7D 1C [21:17:10]Write to MH i2c: 01 00 00 0D 09 16 [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 07 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 07 00 0D 09 00 00 00 00 00 5A 0C 83 [21:17:10]RasterBufferAndPrint [21:17:10]line [21:17:10]line [21:17:10]line [21:17:10]line [21:17:10]line [21:17:10]written 0, free lines is 3166 [21:17:10]MH_Cut [21:17:10]Write to MH i2c: D1 01 00 14 09 01 EF [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: D1 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: D1 01 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: D1 01 00 14 09 00 EE [21:17:10]Write to MH i2c: 01 00 00 15 09 1E [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 89 AA 47 00 E2 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 36 35 33 34 30 10 04 04 00 DD E1 02 00 F4 03 04 00 BF 11 19 67 B6 04 01 00 00 53 D9 D7 8A 8C 76 F8 4E [21:17:11]CommunicateWithHost err = 0 [21:17:11]CheckOFDResponse [21:17:11]1017 (14) - 77093643461234 [21:17:11]1041 (16) - 0000000000965340 [21:17:11]1040 (4) - 188893 [21:17:11]1012 (4) - 23.10.2024 15:09 [21:17:11]1206 (1) - 0 [21:17:11]OFD Sender: Remove packet 188893 [21:17:11]ProducePacketName [21:17:11]name=ofd_packets/00188893 [21:17:11]NVStorageDeleteData [21:17:11]OFD Sender: No OFD packet to send [21:17:12]*** Cut start [21:17:12]*** Partial cut [21:17:12]*** CUTSNS_PIN = 1 [21:17:12]*** CUTSNS_PIN = 0 [21:17:12]*** Brake cut motor [21:17:12]Read from MH i2c: 01 [21:17:12]MH_I2C_Read... [21:17:12]*** Stop cut motor [21:17:12]*** Cut end [21:17:12]Read from MH i2c: 01 07 00 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: 01 07 00 15 09 00 00 00 00 00 FF 0F 33 [21:17:12]process_action close_receipt done [21:17:12]requested_data is exist [21:17:12]produce_requested_data [21:17:12]requested_item fm.sn is exist - process it [21:17:12]wFMCommunicate request_size=4 [21:17:12]MH_SAM_APDU [21:17:12]CAPDU: 80 11 00 00 [21:17:12]Write to MH i2c: E2 08 00 16 09 80 11 00 00 00 00 00 00 99 [21:17:12]Write i2c OK [21:17:12]MH_I2C_Read... [21:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:12]Read from MH i2c: E2 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 17 00 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 17 00 16 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [21:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:17:12]wFMCommunicate OK [21:17:12]requested_item fd.num is exist - process it [21:17:12]SAM_PROTO_GetFieldsCounters [21:17:12]wFMCommunicate request_size=4 [21:17:12]MH_SAM_APDU [21:17:12]CAPDU: 80 13 00 00 [21:17:12]Write to MH i2c: E2 08 00 17 09 80 13 00 00 00 00 00 00 9C [21:17:12]Write i2c OK [21:17:12]MH_I2C_Read... [21:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:12]Read from MH i2c: E2 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 62 00 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 62 00 17 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [21:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:12]wFMCommunicate OK [21:17:12]SAM_PROTO_GetFieldsCounters done [21:17:12]requested_item shift.num is exist - process it [21:17:12]requested_item shift.opened is exist - process it [21:17:12]req_shift_opened [21:17:12]FM_GetShiftState [21:17:12]SAM_PROTO_GetShiftState [21:17:12]wFMCommunicate request_size=4 [21:17:12]MH_SAM_APDU [21:17:12]CAPDU: 80 13 01 00 [21:17:12]Write to MH i2c: E2 08 00 18 09 80 13 01 00 00 00 00 00 9E [21:17:12]Write i2c OK [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 [21:17:13]MH_I2C_Read... [21:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:13]Read from MH i2c: E2 0E 00 [21:17:13]MH_I2C_Read... [21:17:13]Read from MH i2c: E2 0E 00 18 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 86 [21:17:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:17:13]wFMCommunicate OK [21:17:13]SAM_PROTO_GetShiftState done [21:17:13]FM_GetShiftState done [21:17:13]req_shift_opened done [21:17:13]requested_item shift.open_date is exist - process it [21:17:13]req_shift_open_date [21:17:13]req_shift_open_date done [21:17:13]produce_requested_data done [21:17:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188893,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:17:13]process_action_free close_receipt [21:17:13]json_value_free [21:17:13]json_value_free done [21:17:13]process_json_proto returns [21:17:13]Send response to host [21:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188893,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:17:13]free response buf [21:17:13]execute_script done [21:17:13]execute_script returns [21:17:13]free content buf [21:17:13]Sock 8.Close socket [21:17:13]Sock 8.Thread stoped [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:02]accept exits with 9 [21:18:02]New connection [21:18:02]New thread 3066809700 created [21:18:02]Thread 3066953060 joined [21:18:02]Waiting for new connection... [21:18:02] Sock 9.Parse request [21:18:02]Sock 9.Check first char [21:18:02]Sock 9.First char is OK [21:18:02]request: POST /json_proto HTTP/1.0 [21:18:02]Method: POST [21:18:02]URL: /json_proto [21:18:02]Method is POST - this is cgi request [21:18:02]url: /json_proto [21:18:02]query_string will be loaded in cgi processing [21:18:02]execute_cgi json_proto POST (null) [21:18:02]execute_cgi path=json_proto method=POST [21:18:02]POST find Content-Length [21:18:02]Host: 172.17.42.131:8080 [21:18:02]Content-Length: 682 [21:18:02]Content-Type: application/json [21:18:02] [21:18:02]POST finish read [21:18:02]Found Content-Length = 682 [21:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:02]execute_script... [21:18:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:02]POST & json_proto [21:18:02]process_json_proto [21:18:02]json parsed OK: [21:18:02]protocol is kg_v1.0 [21:18:02]action value=close_receipt [21:18:02]process_action close_receipt [21:18:02]cmd_close_receipt [21:18:02]MH_GetDate [21:18:02]Write to MH i2c: F0 00 00 19 09 11 [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: F0 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: F0 09 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: F0 09 00 19 09 00 0B 68 19 67 A0 18 CA 66 F5 [21:18:02]GetLastDocTimeStamp 1729718229 [21:18:02]current date 1729718283 [21:18:02]FM_GetShiftState [21:18:02]SAM_PROTO_GetShiftState [21:18:02]wFMCommunicate request_size=4 [21:18:02]MH_SAM_APDU [21:18:02]CAPDU: 80 13 01 00 [21:18:02]Write to MH i2c: E2 08 00 1A 09 80 13 01 00 00 00 00 00 A0 [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:02]Read from MH i2c: E2 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 0E 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 0E 00 1A 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 88 [21:18:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:18:02]wFMCommunicate OK [21:18:02]SAM_PROTO_GetShiftState done [21:18:02]FM_GetShiftState done [21:18:02]opened in 1729642525 [21:18:02]opened+sec_in_day 1729728925 [21:18:02]quantity*price = 100021 [21:18:02]sum+1 = 100023 [21:18:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 352 23.10.2024 21:18 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188894 ФПД: 220361084159029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188894&fm=220361084159029&tin=02508201610067®Number=0000000000100030&sum=100000 [21:18:03]StoreToDocumentArchive [21:18:03]shift 462 fd 188894 [21:18:03]save to /storage/0462/doc_00188894 [21:18:03]save last doc name /storage/0462/doc_00188894 to /storage/kkm_last_doc_name [21:18:03]save OK [21:18:03]Clear old archive folders... [21:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:03]tlvbuf is 004F5C60 [21:18:03]SAM_PROTO_ClearQueue [21:18:03]wFMCommunicate request_size=4 [21:18:03]MH_SAM_APDU [21:18:03]CAPDU: 80 09 00 00 [21:18:03]Write to MH i2c: E2 08 00 27 09 80 09 00 00 00 00 00 00 A2 [21:18:03]Write i2c OK [21:18:03]MH_I2C_Read... [21:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:03]Read from MH i2c: E2 [21:18:03]MH_I2C_Read... [21:18:03]Read from MH i2c: E2 03 00 [21:18:03]MH_I2C_Read... [21:18:03]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [21:18:03]RAPDU: 90 00 [21:18:03]wFMCommunicate OK [21:18:03]SAM_PROTO_ClearQueue done [21:18:03]KKMCreateOFDPacket [21:18:03]OFDProtocolAddRootSTLVToBuf [21:18:03]FM_MakeSignedData [21:18:03]FM_MakeSignedData [21:18:03]SAM_PROTO_SignData [21:18:03]wFMCommunicate request_size=4 [21:18:03]MH_SAM_APDU [21:18:03]CAPDU: 80 0D 01 02 [21:18:03]Write to MH i2c: E2 08 00 28 09 80 0D 01 02 00 00 00 00 AA [21:18:03]Write i2c OK [21:18:03]MH_I2C_Read... [21:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:03]Read from MH i2c: E2 [21:18:03]MH_I2C_Read... [21:18:03]Read from MH i2c: E2 03 00 [21:18:03]MH_I2C_Read... [21:18:03]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [21:18:03]RAPDU: 90 00 [21:18:03]wFMCommunicate OK [21:18:03]wFMCommunicate request_size=255 [21:18:03]MH_SAM_APDU [21:18:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 0B 68 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E1 02 00 35 04 06 00 C8 [21:18:03]Write to MH i2c: E2 02 01 29 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 0B 68 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E1 02 00 35 04 06 00 C8 00 00 E6 [21:18:03]Write i2c OK [21:18:03]MH_I2C_Read... [21:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:04]Read from MH i2c: E2 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: E2 03 00 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [21:18:04]RAPDU: 90 00 [21:18:04]wFMCommunicate OK [21:18:04]wFMCommunicate request_size=10 [21:18:04]MH_SAM_APDU [21:18:04]CAPDU: 80 0D 02 02 05 6A D0 24 C4 35 [21:18:04]Write to MH i2c: E2 0D 00 2A 09 80 0D 02 02 05 00 6A D0 24 C4 35 00 00 0E [21:18:04]Write i2c OK [21:18:04]MH_I2C_Read... [21:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:04]Read from MH i2c: E2 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: E2 03 00 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [21:18:04]RAPDU: 90 00 [21:18:04]wFMCommunicate OK [21:18:04]wFMCommunicate request_size=4 [21:18:04]MH_SAM_APDU [21:18:04]CAPDU: 80 0D 03 02 [21:18:04]Write to MH i2c: E2 08 00 2B 09 80 0D 03 02 00 00 00 00 AF [21:18:04]Write i2c OK [21:18:04]MH_I2C_Read... [21:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:04]Read from MH i2c: E2 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: E2 0B 00 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: E2 0B 00 2B 09 00 4C 54 46 8C 01 91 79 9F 90 00 CC [21:18:04]RAPDU: 4C 54 46 8C 01 91 79 9F 90 00 [21:18:04]wFMCommunicate OK [21:18:04]SAM_PROTO_SignData done [21:18:04]FM_MakeSignedData done [21:18:04]CreateOFDProtocolMessage [21:18:04]wFMCommunicate request_size=4 [21:18:04]MH_SAM_APDU [21:18:04]CAPDU: 80 11 00 00 [21:18:04]Write to MH i2c: E2 08 00 2C 09 80 11 00 00 00 00 00 00 AF [21:18:04]Write i2c OK [21:18:04]MH_I2C_Read... [21:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:04]Read from MH i2c: E2 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: E2 17 00 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: E2 17 00 2C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [21:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:18:04]wFMCommunicate OK [21:18:04]CreateOFDProtocolMessage done [21:18:04]OFDSenderStorePacket 188894 [21:18:04]StoreOFDPacket docnum=188894 [21:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 24 16 07 01 F0 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 0B 68 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E1 02 00 35 04 06 00 C8 6A D0 24 C4 35 4C 54 46 8C 01 91 79 9F [21:18:04]CheckFolder [21:18:04]dirname=/storage/ofd_packets [21:18:04]CheckFolder done [21:18:04]ProducePacketName [21:18:04]name=ofd_packets/00188894 [21:18:04]NVStorageSaveData ofd_packets/00188894 [21:18:04]File name is /storage/ofd_packets/00188894 [21:18:04]Write 301 bytes [21:18:04]NVStorageSaveData done [21:18:04]OFDSenderStorePacket done [21:18:04]KKMCreateOFDPacket done [21:18:04]NVStorageSaveData kkm_last_timestamp [21:18:04]File name is /storage/kkm_last_timestamp [21:18:04]Write 4 bytes [21:18:04]NVStorageSaveData done [21:18:04]ExternCall_PrintAddStr [21:18:04]wPrintStart [21:18:04]Write to MH i2c: 01 00 00 2D 09 36 [21:18:04]Write i2c OK [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: 01 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: 01 07 00 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: 01 07 00 2D 09 00 00 00 00 00 FF 0F 4B [21:18:04]RasterBufferAndPrint [21:18:04]line Счет N : (1)210957 [21:18:04]line ИНН: 02508201610067 [21:18:04]line Контрольно-Кассовый Чек [21:18:04]line ПРОДАЖА [21:18:04]line ТРК (МРК, ГНК) : 13 [21:18:04]line Товар: 2710124500 [21:18:04]line Аи-95-К-3 [21:18:04]line 13.480 * 74.20 [21:18:04]line = 1000.22 [21:18:04]line НДС 12% НСП 1% [21:18:04]line > о реализуемом товаре [21:18:04]line ОКРУГЛЕНИЕ: -0.22 [21:18:04]line ИТОГО: 1000.00 [21:18:04]line Внесено: 1000.00 [21:18:04]line СДАЧА: 0.00 [21:18:04]line НСП 1% : 8.85 [21:18:04]line НДС 12% : 106.22 [21:18:04]line Наличными: 1000.00 [21:18:04]line Безнал.: 0.00 [21:18:04]line Место: АЗС № 86 "Партнер Нефть" [21:18:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:18:04]line СНО: Общий режим [21:18:04]line Чек 352 23.10.2024 21:18 [21:18:04]line Смена: 462 ФФД: 1.0 [21:18:04]line ЗНМ: 0300000155 [21:18:04]line РНМ: 0000000000100030 [21:18:04]line Версия ККМ: 001 [21:18:04]line ФМ: 0000000000965340 [21:18:04]line ФД: 188894 [21:18:04]line ФПД: 220361084159029 [21:18:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188894&fm=220361084159029&tin=02508201610067®Number=0000000000100030&sum=100000 [21:18:04]OFD Sender: Processing packet 188894 [packets to send 1062, broken 1061] [21:18:04]ProducePacketName [21:18:04]name=ofd_packets/00188894 [21:18:04]OFD Sender: To server: pG, [21:18:04]CommunicateWithHost lk.salyk.kg:30040 [21:18:04]ConnectInit lk.salyk.kg [21:18:04]written 0, free lines is 4095 [21:18:05]Connected sock=11 [21:18:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 24 16 07 01 F0 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 0B 68 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E1 02 00 35 04 06 00 C8 6A D0 24 C4 35 4C 54 46 8C 01 91 79 9F [21:18:05]Write to MH i2c: 01 00 00 58 09 61 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: 01 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: 01 07 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: 01 07 00 58 09 00 00 00 00 00 56 0C CA [21:18:05]RasterBufferAndPrint [21:18:05]line [21:18:05]line [21:18:05]line [21:18:05]line [21:18:05]line [21:18:05]written 0, free lines is 3161 [21:18:05]MH_Cut [21:18:05]Write to MH i2c: D1 01 00 5F 09 01 3A [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: D1 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: D1 01 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: D1 01 00 5F 09 00 39 [21:18:05]Write to MH i2c: 01 00 00 60 09 69 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 11 0D 47 00 F1 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 36 35 33 34 30 10 04 04 00 DE E1 02 00 F4 03 04 00 F5 11 19 67 B6 04 01 00 00 21 1A 84 C6 DE 05 37 B5 [21:18:05]CommunicateWithHost err = 0 [21:18:05]CheckOFDResponse [21:18:05]1017 (14) - 77093643461234 [21:18:05]1041 (16) - 0000000000965340 [21:18:05]1040 (4) - 188894 [21:18:05]1012 (4) - 23.10.2024 15:10 [21:18:05]1206 (1) - 0 [21:18:05]OFD Sender: Remove packet 188894 [21:18:05]ProducePacketName [21:18:05]name=ofd_packets/00188894 [21:18:05]NVStorageDeleteData [21:18:05]OFD Sender: No OFD packet to send [21:18:06]*** Cut start [21:18:06]*** Partial cut [21:18:06]*** CUTSNS_PIN = 1 [21:18:06]*** CUTSNS_PIN = 0 [21:18:06]*** Brake cut motor [21:18:07]Read from MH i2c: 01 [21:18:07]MH_I2C_Read... [21:18:07]*** Stop cut motor [21:18:07]*** Cut end [21:18:07]Read from MH i2c: 01 07 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 60 09 00 00 00 00 00 FF 0F 7E [21:18:07]process_action close_receipt done [21:18:07]requested_data is exist [21:18:07]produce_requested_data [21:18:07]requested_item fm.sn is exist - process it [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 11 00 00 [21:18:07]Write to MH i2c: E2 08 00 61 09 80 11 00 00 00 00 00 00 E4 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 61 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [21:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:18:07]wFMCommunicate OK [21:18:07]requested_item fd.num is exist - process it [21:18:07]SAM_PROTO_GetFieldsCounters [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 13 00 00 [21:18:07]Write to MH i2c: E2 08 00 62 09 80 13 00 00 00 00 00 00 E7 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 62 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 62 00 62 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [21:18:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:07]wFMCommunicate OK [21:18:07]SAM_PROTO_GetFieldsCounters done [21:18:07]requested_item shift.num is exist - process it [21:18:07]requested_item shift.opened is exist - process it [21:18:07]req_shift_opened [21:18:07]FM_GetShiftState [21:18:07]SAM_PROTO_GetShiftState [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 13 01 00 [21:18:07]Write to MH i2c: E2 08 00 63 09 80 13 01 00 00 00 00 00 E9 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0E 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0E 00 63 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D1 [21:18:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:18:07]wFMCommunicate OK [21:18:07]SAM_PROTO_GetShiftState done [21:18:07]FM_GetShiftState done [21:18:07]req_shift_opened done [21:18:07]requested_item shift.open_date is exist - process it [21:18:07]req_shift_open_date [21:18:07]req_shift_open_date done [21:18:07]produce_requested_data done [21:18:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188894,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:18:07]process_action_free close_receipt [21:18:07]json_value_free [21:18:07]json_value_free done [21:18:07]process_json_proto returns [21:18:07]Send response to host [21:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188894,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:18:07]free response buf [21:18:07]execute_script done [21:18:07]execute_script returns [21:18:07]free content buf [21:18:07]Sock 9.Close socket [21:18:07]Sock 9.Thread stoped [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:19]accept exits with 8 [21:21:19]New connection [21:21:19]New thread 3066953060 created [21:21:19]Thread 3066809700 joined [21:21:19]Waiting for new connection... [21:21:19] Sock 8.Parse request [21:21:19]Sock 8.Check first char [21:21:19]Sock 8.First char is OK [21:21:19]request: POST /json_proto HTTP/1.0 [21:21:19]Method: POST [21:21:19]URL: /json_proto [21:21:19]Method is POST - this is cgi request [21:21:19]url: /json_proto [21:21:19]query_string will be loaded in cgi processing [21:21:19]execute_cgi json_proto POST (null) [21:21:19]execute_cgi path=json_proto method=POST [21:21:19]POST find Content-Length [21:21:19]Host: 172.17.42.131:8080 [21:21:19]Content-Length: 772 [21:21:19]Content-Type: application/json [21:21:19] [21:21:19]POST finish read [21:21:19]Found Content-Length = 772 [21:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 4.540, "sum" : 350.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:19]execute_script... [21:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 4.540, "sum" : 350.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:19]POST & json_proto [21:21:19]process_json_proto [21:21:19]json parsed OK: [21:21:19]protocol is kg_v1.0 [21:21:19]action value=close_receipt [21:21:19]process_action close_receipt [21:21:19]cmd_close_receipt [21:21:19]MH_GetDate [21:21:19]Write to MH i2c: F0 00 00 64 09 5C [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: F0 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: F0 09 00 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: F0 09 00 64 09 00 D0 68 19 67 A0 18 CA 66 05 [21:21:19]GetLastDocTimeStamp 1729718283 [21:21:19]current date 1729718480 [21:21:19]FM_GetShiftState [21:21:19]SAM_PROTO_GetShiftState [21:21:19]wFMCommunicate request_size=4 [21:21:19]MH_SAM_APDU [21:21:19]CAPDU: 80 13 01 00 [21:21:19]Write to MH i2c: E2 08 00 65 09 80 13 01 00 00 00 00 00 EB [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:19]Read from MH i2c: E2 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: E2 0E 00 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: E2 0E 00 65 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D3 [21:21:19]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:21:19]wFMCommunicate OK [21:21:19]SAM_PROTO_GetShiftState done [21:21:19]FM_GetShiftState done [21:21:19]opened in 1729642525 [21:21:19]opened+sec_in_day 1729728925 [21:21:19]quantity*price = 35048 [21:21:19]sum+1 = 35050 [21:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.49 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 0.00 Безнал.: 350.49 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 353 23.10.2024 21:21 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188895 ФПД: 39454043798168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212120&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188895&fm=39454043798168&tin=02508201610067®Number=0000000000100030&sum=35049 [21:21:21]StoreToDocumentArchive [21:21:21]shift 462 fd 188895 [21:21:21]save to /storage/0462/doc_00188895 [21:21:21]save last doc name /storage/0462/doc_00188895 to /storage/kkm_last_doc_name [21:21:21]save OK [21:21:21]Clear old archive folders... [21:21:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:21:21]tlvbuf is 004D1410 [21:21:21]SAM_PROTO_ClearQueue [21:21:21]wFMCommunicate request_size=4 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 09 00 00 [21:21:21]Write to MH i2c: E2 08 00 72 09 80 09 00 00 00 00 00 00 ED [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [21:21:21]RAPDU: 90 00 [21:21:21]wFMCommunicate OK [21:21:21]SAM_PROTO_ClearQueue done [21:21:21]KKMCreateOFDPacket [21:21:21]OFDProtocolAddRootSTLVToBuf [21:21:21]FM_MakeSignedData [21:21:21]FM_MakeSignedData [21:21:21]SAM_PROTO_SignData [21:21:21]wFMCommunicate request_size=4 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 0D 01 02 [21:21:21]Write to MH i2c: E2 08 00 73 09 80 0D 01 02 00 00 00 00 F5 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [21:21:21]RAPDU: 90 00 [21:21:21]wFMCommunicate OK [21:21:21]wFMCommunicate request_size=255 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 D0 68 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E1 02 [21:21:21]Write to MH i2c: E2 02 01 74 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 D0 68 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E1 02 00 00 50 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [21:21:21]RAPDU: 90 00 [21:21:21]wFMCommunicate OK [21:21:21]wFMCommunicate request_size=16 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 23 E2 1C 43 FA 98 [21:21:21]Write to MH i2c: E2 13 00 75 09 80 0D 02 02 0B 00 00 35 04 06 00 23 E2 1C 43 FA 98 00 00 43 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [21:21:21]RAPDU: 90 00 [21:21:21]wFMCommunicate OK [21:21:21]wFMCommunicate request_size=4 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 0D 03 02 [21:21:21]Write to MH i2c: E2 08 00 76 09 80 0D 03 02 00 00 00 00 FA [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 0B 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 0B 00 76 09 00 3E 99 84 B2 94 5D D5 C9 90 00 97 [21:21:21]RAPDU: 3E 99 84 B2 94 5D D5 C9 90 00 [21:21:21]wFMCommunicate OK [21:21:21]SAM_PROTO_SignData done [21:21:21]FM_MakeSignedData done [21:21:21]CreateOFDProtocolMessage [21:21:21]wFMCommunicate request_size=4 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 11 00 00 [21:21:21]Write to MH i2c: E2 08 00 77 09 80 11 00 00 00 00 00 00 FA [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 17 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 17 00 77 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [21:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:21:21]wFMCommunicate OK [21:21:21]CreateOFDProtocolMessage done [21:21:21]OFDSenderStorePacket 188895 [21:21:21]StoreOFDPacket docnum=188895 [21:21:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 81 3C 0D 01 4F AF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 D0 68 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E1 02 00 35 04 06 00 23 E2 1C 43 FA 98 3E 99 84 B2 94 5D D5 C9 [21:21:21]CheckFolder [21:21:21]dirname=/storage/ofd_packets [21:21:21]CheckFolder done [21:21:21]ProducePacketName [21:21:21]name=ofd_packets/00188895 [21:21:21]NVStorageSaveData ofd_packets/00188895 [21:21:21]File name is /storage/ofd_packets/00188895 [21:21:21]Write 307 bytes [21:21:21]NVStorageSaveData done [21:21:21]OFDSenderStorePacket done [21:21:21]KKMCreateOFDPacket done [21:21:21]NVStorageSaveData kkm_last_timestamp [21:21:21]File name is /storage/kkm_last_timestamp [21:21:21]Write 4 bytes [21:21:21]NVStorageSaveData done [21:21:21]ExternCall_PrintAddStr [21:21:21]wPrintStart [21:21:21]Write to MH i2c: 01 00 00 78 09 81 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: 01 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: 01 07 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: 01 07 00 78 09 00 00 00 00 00 FF 0F 96 [21:21:21]RasterBufferAndPrint [21:21:21]line Счет N : (1)210958 [21:21:21]line ИНН: 02508201610067 [21:21:21]line Контрольно-Кассовый Чек [21:21:21]line ПРОДАЖА [21:21:21]line ТРК (МРК, ГНК) : 41 [21:21:21]line Товар: 2710194210 [21:21:21]line D-ENERGY ДТ-К-5 [21:21:21]line 4.540 * 77.20 [21:21:21]line = 350.49 [21:21:21]line НДС 12% НСП 1% [21:21:21]line > о реализуемом товаре [21:21:21]line ИТОГО: 350.49 [21:21:21]line НСП 1% : 3.10 [21:21:21]line НДС 12% : 37.22 [21:21:21]line Наличными: 0.00 [21:21:21]line Безнал.: 350.49 [21:21:21]line Место: АЗС № 86 "Партнер Нефть" [21:21:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:21:21]line СНО: Общий режим [21:21:21]line Чек 353 23.10.2024 21:21 [21:21:21]line Смена: 462 ФФД: 1.0 [21:21:21]line ЗНМ: 0300000155 [21:21:21]line РНМ: 0000000000100030 [21:21:21]line Версия ККМ: 001 [21:21:21]line Платежная система: Mbank [21:21:21]line ФМ: 0000000000965340 [21:21:21]line ФД: 188895 [21:21:21]line ФПД: 39454043798168 [21:21:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212120&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188895&fm=39454043798168&tin=02508201610067®Number=0000000000100030&sum=35049 [21:21:21]written 0, free lines is 4095 [21:21:21]OFD Sender: Processing packet 188895 [packets to send 1062, broken 1061] [21:21:21]ProducePacketName [21:21:21]name=ofd_packets/00188895 [21:21:21]OFD Sender: To server: pG, [21:21:21]CommunicateWithHost lk.salyk.kg:30040 [21:21:21]ConnectInit lk.salyk.kg [21:21:22]Connected sock=11 [21:21:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 81 3C 0D 01 4F AF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 D0 68 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E1 02 00 35 04 06 00 23 E2 1C 43 FA 98 3E 99 84 B2 94 5D D5 C9 [21:21:22]Write to MH i2c: 01 00 00 A1 09 AA [21:21:22]Write i2c OK [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: 01 [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: 01 07 00 [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: 01 07 00 A1 09 00 00 00 00 00 8D 0C 4A [21:21:22]RasterBufferAndPrint [21:21:22]line [21:21:22]line [21:21:22]line [21:21:22]line [21:21:22]line [21:21:22]written 0, free lines is 3216 [21:21:22]MH_Cut [21:21:22]Write to MH i2c: D1 01 00 A8 09 01 83 [21:21:22]Write i2c OK [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: D1 [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: D1 01 00 [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: D1 01 00 A8 09 00 82 [21:21:22]Write to MH i2c: 01 00 00 A9 09 B2 [21:21:22]Write i2c OK [21:21:22]MH_I2C_Read... [21:21:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 71 1C 47 00 7D 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E1 02 00 F4 03 04 00 BA 12 19 67 B6 04 01 00 00 13 15 56 69 1F AB 9C 02 [21:21:22]CommunicateWithHost err = 0 [21:21:22]CheckOFDResponse [21:21:22]1017 (14) - 77093643461234 [21:21:22]1041 (16) - 0000000000965340 [21:21:22]1040 (4) - 188895 [21:21:22]1012 (4) - 23.10.2024 15:14 [21:21:22]1206 (1) - 0 [21:21:22]OFD Sender: Remove packet 188895 [21:21:22]ProducePacketName [21:21:22]name=ofd_packets/00188895 [21:21:22]NVStorageDeleteData [21:21:22]OFD Sender: No OFD packet to send [21:21:23]*** Cut start [21:21:23]*** Partial cut [21:21:23]*** CUTSNS_PIN = 1 [21:21:23]*** CUTSNS_PIN = 0 [21:21:23]*** Brake cut motor [21:21:23]Read from MH i2c: 01 [21:21:23]MH_I2C_Read... [21:21:23]*** Stop cut motor [21:21:23]Read from MH i2c: 01 07 00 [21:21:23]MH_I2C_Read... [21:21:23]*** Cut end [21:21:23]Read from MH i2c: 01 07 00 A9 09 00 00 00 00 00 FF 0F C7 [21:21:23]process_action close_receipt done [21:21:23]requested_data is exist [21:21:23]produce_requested_data [21:21:23]requested_item fm.sn is exist - process it [21:21:23]wFMCommunicate request_size=4 [21:21:23]MH_SAM_APDU [21:21:23]CAPDU: 80 11 00 00 [21:21:23]Write to MH i2c: E2 08 00 AA 09 80 11 00 00 00 00 00 00 2D [21:21:23]Write i2c OK [21:21:23]MH_I2C_Read... [21:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:24]Read from MH i2c: E2 [21:21:24]MH_I2C_Read... [21:21:24]Read from MH i2c: E2 17 00 [21:21:24]MH_I2C_Read... [21:21:24]Read from MH i2c: E2 17 00 AA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [21:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:21:24]wFMCommunicate OK [21:21:24]requested_item fd.num is exist - process it [21:21:24]SAM_PROTO_GetFieldsCounters [21:21:24]wFMCommunicate request_size=4 [21:21:24]MH_SAM_APDU [21:21:24]CAPDU: 80 13 00 00 [21:21:24]Write to MH i2c: E2 08 00 AB 09 80 13 00 00 00 00 00 00 30 [21:21:24]Write i2c OK [21:21:24]MH_I2C_Read... [21:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:24]Read from MH i2c: E2 [21:21:24]MH_I2C_Read... [21:21:24]Read from MH i2c: E2 62 00 [21:21:24]MH_I2C_Read... [21:21:24]Read from MH i2c: E2 62 00 AB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [21:21:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:24]wFMCommunicate OK [21:21:24]SAM_PROTO_GetFieldsCounters done [21:21:24]requested_item shift.num is exist - process it [21:21:24]requested_item shift.opened is exist - process it [21:21:24]req_shift_opened [21:21:24]FM_GetShiftState [21:21:24]SAM_PROTO_GetShiftState [21:21:24]wFMCommunicate request_size=4 [21:21:24]MH_SAM_APDU [21:21:24]CAPDU: 80 13 01 00 [21:21:24]Write to MH i2c: E2 08 00 AC 09 80 13 01 00 00 00 00 00 32 [21:21:24]Write i2c OK [21:21:24]MH_I2C_Read... [21:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:24]Read from MH i2c: E2 [21:21:24]MH_I2C_Read... [21:21:24]Read from MH i2c: E2 0E 00 [21:21:24]MH_I2C_Read... [21:21:24]Read from MH i2c: E2 0E 00 AC 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1A [21:21:24]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:21:24]wFMCommunicate OK [21:21:24]SAM_PROTO_GetShiftState done [21:21:24]FM_GetShiftState done [21:21:24]req_shift_opened done [21:21:24]requested_item shift.open_date is exist - process it [21:21:24]req_shift_open_date [21:21:24]req_shift_open_date done [21:21:24]produce_requested_data done [21:21:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188895,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:21:24]process_action_free close_receipt [21:21:24]json_value_free [21:21:24]json_value_free done [21:21:24]process_json_proto returns [21:21:24]Send response to host [21:21:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188895,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:21:24]free response buf [21:21:24]execute_script done [21:21:24]execute_script returns [21:21:24]free content buf [21:21:24]Sock 8.Close socket [21:21:24]Sock 8.Thread stoped [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:22]accept exits with 9 [21:23:22]New connection [21:23:22]New thread 3066809700 created [21:23:22]Thread 3066953060 joined [21:23:22]Waiting for new connection... [21:23:22] Sock 9.Parse request [21:23:22]Sock 9.Check first char [21:23:22]Sock 9.First char is OK [21:23:22]request: POST /json_proto HTTP/1.0 [21:23:22]Method: POST [21:23:22]URL: /json_proto [21:23:22]Method is POST - this is cgi request [21:23:22]url: /json_proto [21:23:22]query_string will be loaded in cgi processing [21:23:22]execute_cgi json_proto POST (null) [21:23:22]execute_cgi path=json_proto method=POST [21:23:22]POST find Content-Length [21:23:22]Host: 172.17.42.131:8080 [21:23:22]Content-Length: 688 [21:23:22]Content-Type: application/json [21:23:22] [21:23:22]POST finish read [21:23:22]Found Content-Length = 688 [21:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 34.330, "sum" : 2650.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2650.00, "total" : 2650.00, "payments": [ { "type": 0, "sum" : 2650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:22]execute_script... [21:23:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 34.330, "sum" : 2650.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2650.00, "total" : 2650.00, "payments": [ { "type": 0, "sum" : 2650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:22]POST & json_proto [21:23:22]process_json_proto [21:23:22]json parsed OK: [21:23:22]protocol is kg_v1.0 [21:23:22]action value=close_receipt [21:23:22]process_action close_receipt [21:23:22]cmd_close_receipt [21:23:22]MH_GetDate [21:23:22]Write to MH i2c: F0 00 00 AD 09 A5 [21:23:22]Write i2c OK [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: F0 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: F0 09 00 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: F0 09 00 AD 09 00 4B 69 19 67 A0 18 CA 66 CA [21:23:22]GetLastDocTimeStamp 1729718480 [21:23:22]current date 1729718603 [21:23:22]FM_GetShiftState [21:23:22]SAM_PROTO_GetShiftState [21:23:22]wFMCommunicate request_size=4 [21:23:22]MH_SAM_APDU [21:23:22]CAPDU: 80 13 01 00 [21:23:22]Write to MH i2c: E2 08 00 AE 09 80 13 01 00 00 00 00 00 34 [21:23:22]Write i2c OK [21:23:22]MH_I2C_Read... [21:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:22]Read from MH i2c: E2 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: E2 0E 00 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: E2 0E 00 AE 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1C [21:23:22]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:23:22]wFMCommunicate OK [21:23:22]SAM_PROTO_GetShiftState done [21:23:22]FM_GetShiftState done [21:23:22]opened in 1729642525 [21:23:22]opened+sec_in_day 1729728925 [21:23:22]quantity*price = 265027 [21:23:22]sum+1 = 265029 [21:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 2650.00 Внесено: 2650.00 СДАЧА: 0.00 НСП 1% : 23.45 НДС 12% : 281.45 Наличными: 2650.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 354 23.10.2024 21:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188896 ФПД: 20981192109745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212323&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188896&fm=20981192109745&tin=02508201610067®Number=0000000000100030&sum=265000 [21:23:23]StoreToDocumentArchive [21:23:23]shift 462 fd 188896 [21:23:23]save to /storage/0462/doc_00188896 [21:23:23]save last doc name /storage/0462/doc_00188896 to /storage/kkm_last_doc_name [21:23:23]save OK [21:23:23]Clear old archive folders... [21:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:23:23]tlvbuf is 004E2620 [21:23:23]SAM_PROTO_ClearQueue [21:23:23]wFMCommunicate request_size=4 [21:23:23]MH_SAM_APDU [21:23:23]CAPDU: 80 09 00 00 [21:23:23]Write to MH i2c: E2 08 00 BB 09 80 09 00 00 00 00 00 00 36 [21:23:23]Write i2c OK [21:23:23]MH_I2C_Read... [21:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:23]Read from MH i2c: E2 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 03 00 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [21:23:23]RAPDU: 90 00 [21:23:23]wFMCommunicate OK [21:23:23]SAM_PROTO_ClearQueue done [21:23:23]KKMCreateOFDPacket [21:23:23]OFDProtocolAddRootSTLVToBuf [21:23:23]FM_MakeSignedData [21:23:23]FM_MakeSignedData [21:23:23]SAM_PROTO_SignData [21:23:23]wFMCommunicate request_size=4 [21:23:23]MH_SAM_APDU [21:23:23]CAPDU: 80 0D 01 02 [21:23:23]Write to MH i2c: E2 08 00 BC 09 80 0D 01 02 00 00 00 00 3E [21:23:23]Write i2c OK [21:23:23]MH_I2C_Read... [21:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:24]Read from MH i2c: E2 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 03 00 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [21:23:24]RAPDU: 90 00 [21:23:24]wFMCommunicate OK [21:23:24]wFMCommunicate request_size=255 [21:23:24]MH_SAM_APDU [21:23:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 86 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 44 0B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 0B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 6D 00 00 00 00 07 04 06 00 28 0B 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 4B 69 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E1 02 [21:23:24]Write to MH i2c: E2 02 01 BD 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 86 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 44 0B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 0B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 6D 00 00 00 00 07 04 06 00 28 0B 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 4B 69 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E1 02 00 00 19 [21:23:24]Write i2c OK [21:23:24]MH_I2C_Read... [21:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:24]Read from MH i2c: E2 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 03 00 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [21:23:24]RAPDU: 90 00 [21:23:24]wFMCommunicate OK [21:23:24]wFMCommunicate request_size=16 [21:23:24]MH_SAM_APDU [21:23:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 13 15 10 80 AE B1 [21:23:24]Write to MH i2c: E2 13 00 BE 09 80 0D 02 02 0B 00 00 35 04 06 00 13 15 10 80 AE B1 00 00 AD [21:23:24]Write i2c OK [21:23:24]MH_I2C_Read... [21:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:24]Read from MH i2c: E2 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 03 00 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [21:23:24]RAPDU: 90 00 [21:23:24]wFMCommunicate OK [21:23:24]wFMCommunicate request_size=4 [21:23:24]MH_SAM_APDU [21:23:24]CAPDU: 80 0D 03 02 [21:23:24]Write to MH i2c: E2 08 00 BF 09 80 0D 03 02 00 00 00 00 43 [21:23:24]Write i2c OK [21:23:24]MH_I2C_Read... [21:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:24]Read from MH i2c: E2 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 0B 00 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 0B 00 BF 09 00 C2 9E 9E 3E 65 BA B8 77 90 00 CE [21:23:24]RAPDU: C2 9E 9E 3E 65 BA B8 77 90 00 [21:23:24]wFMCommunicate OK [21:23:24]SAM_PROTO_SignData done [21:23:24]FM_MakeSignedData done [21:23:24]CreateOFDProtocolMessage [21:23:24]wFMCommunicate request_size=4 [21:23:24]MH_SAM_APDU [21:23:24]CAPDU: 80 11 00 00 [21:23:24]Write to MH i2c: E2 08 00 C0 09 80 11 00 00 00 00 00 00 43 [21:23:24]Write i2c OK [21:23:24]MH_I2C_Read... [21:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:24]Read from MH i2c: E2 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 17 00 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 17 00 C0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [21:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:23:24]wFMCommunicate OK [21:23:24]CreateOFDProtocolMessage done [21:23:24]OFDSenderStorePacket 188896 [21:23:24]StoreOFDPacket docnum=188896 [21:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C8 4C 0D 01 12 02 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 86 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 44 0B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 0B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 6D 00 00 00 00 07 04 06 00 28 0B 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 4B 69 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E1 02 00 35 04 06 00 13 15 10 80 AE B1 C2 9E 9E 3E 65 BA B8 77 [21:23:24]CheckFolder [21:23:24]dirname=/storage/ofd_packets [21:23:24]CheckFolder done [21:23:24]ProducePacketName [21:23:24]name=ofd_packets/00188896 [21:23:24]NVStorageSaveData ofd_packets/00188896 [21:23:24]File name is /storage/ofd_packets/00188896 [21:23:24]Write 307 bytes [21:23:24]NVStorageSaveData done [21:23:24]OFDSenderStorePacket done [21:23:24]KKMCreateOFDPacket done [21:23:24]NVStorageSaveData kkm_last_timestamp [21:23:24]File name is /storage/kkm_last_timestamp [21:23:24]Write 4 bytes [21:23:24]NVStorageSaveData done [21:23:24]ExternCall_PrintAddStr [21:23:24]wPrintStart [21:23:24]Write to MH i2c: 01 00 00 C1 09 CA [21:23:24]Write i2c OK [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: 01 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: 01 07 00 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: 01 07 00 C1 09 00 00 00 00 00 FF 0F DF [21:23:24]RasterBufferAndPrint [21:23:24]line Счет N : (1)210959 [21:23:24]line ИНН: 02508201610067 [21:23:24]line Контрольно-Кассовый Чек [21:23:24]line ПРОДАЖА [21:23:24]line ТРК (МРК, ГНК) : 41 [21:23:24]line Товар: 2710194210 [21:23:24]line D-ENERGY ДТ-К-5 [21:23:24]line 34.330 * 77.20 [21:23:24]line = 2650.28 [21:23:24]line НДС 12% НСП 1% [21:23:24]line > о реализуемом товаре [21:23:24]line ОКРУГЛЕНИЕ: -0.28 [21:23:24]line ИТОГО: 2650.00 [21:23:24]line Внесено: 2650.00 [21:23:24]line СДАЧА: 0.00 [21:23:24]line НСП 1% : 23.45 [21:23:24]line НДС 12% : 281.45 [21:23:24]line Наличными: 2650.00 [21:23:24]line Безнал.: 0.00 [21:23:24]line Место: АЗС № 86 "Партнер Нефть" [21:23:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:23:24]line СНО: Общий режим [21:23:24]line Чек 354 23.10.2024 21:23 [21:23:24]line Смена: 462 ФФД: 1.0 [21:23:24]line ЗНМ: 0300000155 [21:23:24]line РНМ: 0000000000100030 [21:23:24]line Версия ККМ: 001 [21:23:24]line ФМ: 0000000000965340 [21:23:24]line ФД: 188896 [21:23:24]line ФПД: 20981192109745 [21:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212323&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188896&fm=20981192109745&tin=02508201610067®Number=0000000000100030&sum=265000 [21:23:24]OFD Sender: Processing packet 188896 [packets to send 1062, broken 1061] [21:23:24]ProducePacketName [21:23:24]name=ofd_packets/00188896 [21:23:24]OFD Sender: To server: pG, [21:23:24]CommunicateWithHost lk.salyk.kg:30040 [21:23:24]ConnectInit lk.salyk.kg [21:23:24]written 0, free lines is 4095 [21:23:25]Connected sock=11 [21:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C8 4C 0D 01 12 02 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 86 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 44 0B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 0B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 6D 00 00 00 00 07 04 06 00 28 0B 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 4B 69 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E1 02 00 35 04 06 00 13 15 10 80 AE B1 C2 9E 9E 3E 65 BA B8 77 [21:23:25]Write to MH i2c: 01 00 00 EC 09 F5 [21:23:25]Write i2c OK [21:23:25]MH_I2C_Read... [21:23:25]Read from MH i2c: 01 [21:23:25]MH_I2C_Read... [21:23:25]Read from MH i2c: 01 07 00 [21:23:25]MH_I2C_Read... [21:23:25]Read from MH i2c: 01 07 00 EC 09 00 00 00 00 00 60 0C 68 [21:23:25]RasterBufferAndPrint [21:23:25]line [21:23:25]line [21:23:25]line [21:23:25]line [21:23:25]line [21:23:25]written 0, free lines is 3171 [21:23:25]MH_Cut [21:23:25]Write to MH i2c: D1 01 00 F3 09 01 CE [21:23:25]Write i2c OK [21:23:25]MH_I2C_Read... [21:23:25]Read from MH i2c: D1 [21:23:25]MH_I2C_Read... [21:23:25]Read from MH i2c: D1 01 00 [21:23:25]MH_I2C_Read... [21:23:25]Read from MH i2c: D1 01 00 F3 09 00 CD [21:23:25]Write to MH i2c: 01 00 00 F4 09 FD [21:23:25]Write i2c OK [21:23:25]MH_I2C_Read... [21:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 83 3F 47 00 00 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 36 35 33 34 30 10 04 04 00 E0 E1 02 00 F4 03 04 00 35 13 19 67 B6 04 01 00 00 75 D5 9A 14 8B 6B 05 2F [21:23:25]CommunicateWithHost err = 0 [21:23:25]CheckOFDResponse [21:23:25]1017 (14) - 77093643461234 [21:23:25]1041 (16) - 0000000000965340 [21:23:25]1040 (4) - 188896 [21:23:25]1012 (4) - 23.10.2024 15:16 [21:23:25]1206 (1) - 0 [21:23:25]OFD Sender: Remove packet 188896 [21:23:25]ProducePacketName [21:23:25]name=ofd_packets/00188896 [21:23:25]NVStorageDeleteData [21:23:26]OFD Sender: No OFD packet to send [21:23:26]*** Cut start [21:23:26]*** Partial cut [21:23:26]*** CUTSNS_PIN = 1 [21:23:26]*** CUTSNS_PIN = 0 [21:23:26]*** Brake cut motor [21:23:27]Read from MH i2c: 01 [21:23:27]MH_I2C_Read... [21:23:27]*** Stop cut motor [21:23:27]*** Cut end [21:23:27]Read from MH i2c: 01 07 00 [21:23:27]MH_I2C_Read... [21:23:27]Read from MH i2c: 01 07 00 F4 09 00 00 00 00 00 FF 0F 12 [21:23:27]process_action close_receipt done [21:23:27]requested_data is exist [21:23:27]produce_requested_data [21:23:27]requested_item fm.sn is exist - process it [21:23:27]wFMCommunicate request_size=4 [21:23:27]MH_SAM_APDU [21:23:27]CAPDU: 80 11 00 00 [21:23:27]Write to MH i2c: E2 08 00 F5 09 80 11 00 00 00 00 00 00 78 [21:23:27]Write i2c OK [21:23:27]MH_I2C_Read... [21:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:27]Read from MH i2c: E2 [21:23:27]MH_I2C_Read... [21:23:27]Read from MH i2c: E2 17 00 [21:23:27]MH_I2C_Read... [21:23:27]Read from MH i2c: E2 17 00 F5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [21:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:23:27]wFMCommunicate OK [21:23:27]requested_item fd.num is exist - process it [21:23:27]SAM_PROTO_GetFieldsCounters [21:23:27]wFMCommunicate request_size=4 [21:23:27]MH_SAM_APDU [21:23:27]CAPDU: 80 13 00 00 [21:23:27]Write to MH i2c: E2 08 00 F6 09 80 13 00 00 00 00 00 00 7B [21:23:27]Write i2c OK [21:23:27]MH_I2C_Read... [21:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:27]Read from MH i2c: E2 [21:23:27]MH_I2C_Read... [21:23:27]Read from MH i2c: E2 62 00 [21:23:27]MH_I2C_Read... [21:23:27]Read from MH i2c: E2 62 00 F6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [21:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:27]wFMCommunicate OK [21:23:27]SAM_PROTO_GetFieldsCounters done [21:23:27]requested_item shift.num is exist - process it [21:23:27]requested_item shift.opened is exist - process it [21:23:27]req_shift_opened [21:23:27]FM_GetShiftState [21:23:27]SAM_PROTO_GetShiftState [21:23:27]wFMCommunicate request_size=4 [21:23:27]MH_SAM_APDU [21:23:27]CAPDU: 80 13 01 00 [21:23:27]Write to MH i2c: E2 08 00 F7 09 80 13 01 00 00 00 00 00 7D [21:23:27]Write i2c OK [21:23:27]MH_I2C_Read... [21:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:27]Read from MH i2c: E2 [21:23:27]MH_I2C_Read... [21:23:27]Read from MH i2c: E2 0E 00 [21:23:27]MH_I2C_Read... [21:23:27]Read from MH i2c: E2 0E 00 F7 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 65 [21:23:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:23:27]wFMCommunicate OK [21:23:27]SAM_PROTO_GetShiftState done [21:23:27]FM_GetShiftState done [21:23:27]req_shift_opened done [21:23:27]requested_item shift.open_date is exist - process it [21:23:27]req_shift_open_date [21:23:27]req_shift_open_date done [21:23:27]produce_requested_data done [21:23:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188896,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:23:27]process_action_free close_receipt [21:23:27]json_value_free [21:23:27]json_value_free done [21:23:27]process_json_proto returns [21:23:27]Send response to host [21:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188896,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:23:27]free response buf [21:23:27]execute_script done [21:23:27]execute_script returns [21:23:27]free content buf [21:23:27]Sock 9.Close socket [21:23:27]Sock 9.Thread stoped [21:23:31]OFD Sender: No OFD packet to send [21:23:33]accept exits with 8 [21:23:33]New connection [21:23:33]New thread 3066953060 created [21:23:33]Thread 3066809700 joined [21:23:33]Waiting for new connection... [21:23:33] Sock 8.Parse request [21:23:33]Sock 8.Check first char [21:23:33]Sock 8.First char is OK [21:23:33]request: POST /json_proto HTTP/1.0 [21:23:33]Method: POST [21:23:33]URL: /json_proto [21:23:33]Method is POST - this is cgi request [21:23:33]url: /json_proto [21:23:33]query_string will be loaded in cgi processing [21:23:33]execute_cgi json_proto POST (null) [21:23:33]execute_cgi path=json_proto method=POST [21:23:33]POST find Content-Length [21:23:33]Host: 172.17.42.131:8080 [21:23:33]Content-Length: 677 [21:23:33]Content-Type: application/json [21:23:33] [21:23:33]POST finish read [21:23:33]Found Content-Length = 677 [21:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:33]execute_script... [21:23:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:33]POST & json_proto [21:23:33]process_json_proto [21:23:33]json parsed OK: [21:23:33]protocol is kg_v1.0 [21:23:33]action value=close_receipt [21:23:33]process_action close_receipt [21:23:33]cmd_close_receipt [21:23:33]MH_GetDate [21:23:33]Write to MH i2c: F0 00 00 F8 09 F0 [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: F0 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: F0 09 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: F0 09 00 F8 09 00 56 69 19 67 A0 18 CA 66 20 [21:23:33]GetLastDocTimeStamp 1729718603 [21:23:33]current date 1729718614 [21:23:33]FM_GetShiftState [21:23:33]SAM_PROTO_GetShiftState [21:23:33]wFMCommunicate request_size=4 [21:23:33]MH_SAM_APDU [21:23:33]CAPDU: 80 13 01 00 [21:23:33]Write to MH i2c: E2 08 00 F9 09 80 13 01 00 00 00 00 00 7F [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 0E 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 0E 00 F9 09 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 67 [21:23:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:23:33]wFMCommunicate OK [21:23:33]SAM_PROTO_GetShiftState done [21:23:33]FM_GetShiftState done [21:23:33]opened in 1729642525 [21:23:33]opened+sec_in_day 1729728925 [21:23:33]quantity*price = 30038 [21:23:33]sum+1 = 30039 [21:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 355 23.10.2024 21:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188897 ФПД: 194798117475723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212334&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188897&fm=194798117475723&tin=02508201610067®Number=0000000000100030&sum=30000 [21:23:34]StoreToDocumentArchive [21:23:34]shift 462 fd 188897 [21:23:34]save to /storage/0462/doc_00188897 [21:23:34]save last doc name /storage/0462/doc_00188897 to /storage/kkm_last_doc_name [21:23:34]save OK [21:23:34]Clear old archive folders... [21:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:34]tlvbuf is 0052A570 [21:23:34]SAM_PROTO_ClearQueue [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 09 00 00 [21:23:34]Write to MH i2c: E2 08 00 06 0A 80 09 00 00 00 00 00 00 82 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 03 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [21:23:34]RAPDU: 90 00 [21:23:34]wFMCommunicate OK [21:23:34]SAM_PROTO_ClearQueue done [21:23:34]KKMCreateOFDPacket [21:23:34]OFDProtocolAddRootSTLVToBuf [21:23:34]FM_MakeSignedData [21:23:34]FM_MakeSignedData [21:23:34]SAM_PROTO_SignData [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 0D 01 02 [21:23:34]Write to MH i2c: E2 08 00 07 0A 80 0D 01 02 00 00 00 00 8A [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 03 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [21:23:34]RAPDU: 90 00 [21:23:34]wFMCommunicate OK [21:23:34]wFMCommunicate request_size=255 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 56 69 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E1 02 00 35 04 06 00 B1 [21:23:34]Write to MH i2c: E2 02 01 08 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 56 69 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E1 02 00 35 04 06 00 B1 00 00 D8 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:35]Read from MH i2c: E2 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 03 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [21:23:35]RAPDU: 90 00 [21:23:35]wFMCommunicate OK [21:23:35]wFMCommunicate request_size=10 [21:23:35]MH_SAM_APDU [21:23:35]CAPDU: 80 0D 02 02 05 2A F8 98 55 8B [21:23:35]Write to MH i2c: E2 0D 00 09 0A 80 0D 02 02 05 00 2A F8 98 55 8B 00 00 31 [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:35]Read from MH i2c: E2 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 03 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [21:23:35]RAPDU: 90 00 [21:23:35]wFMCommunicate OK [21:23:35]wFMCommunicate request_size=4 [21:23:35]MH_SAM_APDU [21:23:35]CAPDU: 80 0D 03 02 [21:23:35]Write to MH i2c: E2 08 00 0A 0A 80 0D 03 02 00 00 00 00 8F [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:35]Read from MH i2c: E2 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 0B 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 0B 00 0A 0A 00 E0 5B 85 F5 75 14 0D 9E 90 00 79 [21:23:35]RAPDU: E0 5B 85 F5 75 14 0D 9E 90 00 [21:23:35]wFMCommunicate OK [21:23:35]SAM_PROTO_SignData done [21:23:35]FM_MakeSignedData done [21:23:35]CreateOFDProtocolMessage [21:23:35]wFMCommunicate request_size=4 [21:23:35]MH_SAM_APDU [21:23:35]CAPDU: 80 11 00 00 [21:23:35]Write to MH i2c: E2 08 00 0B 0A 80 11 00 00 00 00 00 00 8F [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:35]Read from MH i2c: E2 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 17 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 17 00 0B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [21:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:23:35]wFMCommunicate OK [21:23:35]CreateOFDProtocolMessage done [21:23:35]OFDSenderStorePacket 188897 [21:23:35]StoreOFDPacket docnum=188897 [21:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 41 6B 07 01 98 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 56 69 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E1 02 00 35 04 06 00 B1 2A F8 98 55 8B E0 5B 85 F5 75 14 0D 9E [21:23:35]CheckFolder [21:23:35]dirname=/storage/ofd_packets [21:23:35]CheckFolder done [21:23:35]ProducePacketName [21:23:35]name=ofd_packets/00188897 [21:23:35]NVStorageSaveData ofd_packets/00188897 [21:23:35]File name is /storage/ofd_packets/00188897 [21:23:35]Write 301 bytes [21:23:35]NVStorageSaveData done [21:23:35]OFDSenderStorePacket done [21:23:35]KKMCreateOFDPacket done [21:23:35]NVStorageSaveData kkm_last_timestamp [21:23:35]File name is /storage/kkm_last_timestamp [21:23:35]Write 4 bytes [21:23:35]NVStorageSaveData done [21:23:35]ExternCall_PrintAddStr [21:23:35]wPrintStart [21:23:35]Write to MH i2c: 01 00 00 0C 0A 16 [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: 01 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: 01 07 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: 01 07 00 0C 0A 00 00 00 00 00 FF 0F 2B [21:23:35]RasterBufferAndPrint [21:23:35]line Счет N : (1)210960 [21:23:35]line ИНН: 02508201610067 [21:23:35]line Контрольно-Кассовый Чек [21:23:35]line ПРОДАЖА [21:23:35]line ТРК (МРК, ГНК) : 32 [21:23:35]line Товар: 2710124130 [21:23:35]line Аи-92-К-3 [21:23:35]line 4.490 * 66.90 [21:23:35]line = 300.38 [21:23:35]line НДС 12% НСП 1% [21:23:35]line > о реализуемом товаре [21:23:35]line ОКРУГЛЕНИЕ: -0.38 [21:23:35]line ИТОГО: 300.00 [21:23:35]line Внесено: 300.00 [21:23:35]line СДАЧА: 0.00 [21:23:35]line НСП 1% : 2.66 [21:23:35]line НДС 12% : 31.90 [21:23:35]line Наличными: 300.00 [21:23:35]line Безнал.: 0.00 [21:23:35]line Место: АЗС № 86 "Партнер Нефть" [21:23:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:23:35]line СНО: Общий режим [21:23:35]line Чек 355 23.10.2024 21:23 [21:23:35]line Смена: 462 ФФД: 1.0 [21:23:35]line ЗНМ: 0300000155 [21:23:35]line РНМ: 0000000000100030 [21:23:35]line Версия ККМ: 001 [21:23:35]line ФМ: 0000000000965340 [21:23:35]line ФД: 188897 [21:23:35]line ФПД: 194798117475723 [21:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212334&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188897&fm=194798117475723&tin=02508201610067®Number=0000000000100030&sum=30000 [21:23:35]written 0, free lines is 4095 [21:23:35]OFD Sender: Processing packet 188897 [packets to send 1062, broken 1061] [21:23:35]ProducePacketName [21:23:35]name=ofd_packets/00188897 [21:23:35]OFD Sender: To server: pG, [21:23:35]CommunicateWithHost lk.salyk.kg:30040 [21:23:35]ConnectInit lk.salyk.kg [21:23:35]Write to MH i2c: 01 00 00 37 0A 41 [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: 01 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: 01 07 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: 01 07 00 37 0A 00 00 00 00 00 59 0C AD [21:23:35]RasterBufferAndPrint [21:23:35]line [21:23:35]line [21:23:35]line [21:23:35]line [21:23:35]line [21:23:35]written 0, free lines is 3165 [21:23:35]MH_Cut [21:23:35]Write to MH i2c: D1 01 00 3E 0A 01 1A [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: D1 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: D1 01 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: D1 01 00 3E 0A 00 19 [21:23:35]Write to MH i2c: 01 00 00 3F 0A 49 [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]Connected sock=10 [21:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 41 6B 07 01 98 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 56 69 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E1 02 00 35 04 06 00 B1 2A F8 98 55 8B E0 5B 85 F5 75 14 0D 9E [21:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 15 A3 47 00 89 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E1 02 00 F4 03 04 00 40 13 19 67 B6 04 01 00 00 37 44 93 72 3D 54 F0 7C [21:23:36]CommunicateWithHost err = 0 [21:23:36]CheckOFDResponse [21:23:36]1017 (14) - 77093643461234 [21:23:36]1041 (16) - 0000000000965340 [21:23:36]1040 (4) - 188897 [21:23:36]1012 (4) - 23.10.2024 15:16 [21:23:36]1206 (1) - 0 [21:23:36]OFD Sender: Remove packet 188897 [21:23:36]ProducePacketName [21:23:36]name=ofd_packets/00188897 [21:23:36]NVStorageDeleteData [21:23:36]OFD Sender: No OFD packet to send [21:23:36]*** Cut start [21:23:36]*** Partial cut [21:23:36]*** CUTSNS_PIN = 1 [21:23:36]*** CUTSNS_PIN = 0 [21:23:37]*** Brake cut motor [21:23:37]Read from MH i2c: 01 [21:23:37]MH_I2C_Read... [21:23:37]*** Stop cut motor [21:23:37]*** Cut end [21:23:37]Read from MH i2c: 01 07 00 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 FF 0F 5E [21:23:37]process_action close_receipt done [21:23:37]requested_data is exist [21:23:37]produce_requested_data [21:23:37]requested_item fm.sn is exist - process it [21:23:37]wFMCommunicate request_size=4 [21:23:37]MH_SAM_APDU [21:23:37]CAPDU: 80 11 00 00 [21:23:37]Write to MH i2c: E2 08 00 40 0A 80 11 00 00 00 00 00 00 C4 [21:23:37]Write i2c OK [21:23:37]MH_I2C_Read... [21:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:37]Read from MH i2c: E2 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 17 00 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 17 00 40 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [21:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:23:37]wFMCommunicate OK [21:23:37]requested_item fd.num is exist - process it [21:23:37]SAM_PROTO_GetFieldsCounters [21:23:37]wFMCommunicate request_size=4 [21:23:37]MH_SAM_APDU [21:23:37]CAPDU: 80 13 00 00 [21:23:37]Write to MH i2c: E2 08 00 41 0A 80 13 00 00 00 00 00 00 C7 [21:23:37]Write i2c OK [21:23:37]MH_I2C_Read... [21:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:37]Read from MH i2c: E2 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 62 00 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 62 00 41 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [21:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:37]wFMCommunicate OK [21:23:37]SAM_PROTO_GetFieldsCounters done [21:23:37]requested_item shift.num is exist - process it [21:23:37]requested_item shift.opened is exist - process it [21:23:37]req_shift_opened [21:23:37]FM_GetShiftState [21:23:37]SAM_PROTO_GetShiftState [21:23:37]wFMCommunicate request_size=4 [21:23:37]MH_SAM_APDU [21:23:37]CAPDU: 80 13 01 00 [21:23:37]Write to MH i2c: E2 08 00 42 0A 80 13 01 00 00 00 00 00 C9 [21:23:37]Write i2c OK [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 [21:23:37]MH_I2C_Read... [21:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:37]Read from MH i2c: E2 0E 00 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 0E 00 42 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B1 [21:23:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:23:37]wFMCommunicate OK [21:23:37]SAM_PROTO_GetShiftState done [21:23:37]FM_GetShiftState done [21:23:37]req_shift_opened done [21:23:37]requested_item shift.open_date is exist - process it [21:23:37]req_shift_open_date [21:23:37]req_shift_open_date done [21:23:37]produce_requested_data done [21:23:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188897,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:23:37]process_action_free close_receipt [21:23:37]json_value_free [21:23:37]json_value_free done [21:23:37]process_json_proto returns [21:23:37]Send response to host [21:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188897,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:23:37]free response buf [21:23:37]execute_script done [21:23:37]execute_script returns [21:23:37]free content buf [21:23:37]Sock 8.Close socket [21:23:37]Sock 8.Thread stoped [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:02]OFD Sender: No OFD packet to send [21:27:07]OFD Sender: No OFD packet to send [21:27:12]OFD Sender: No OFD packet to send [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:02]accept exits with 9 [21:29:02]New connection [21:29:02]New thread 3066809700 created [21:29:02]Thread 3066953060 joined [21:29:02]Waiting for new connection... [21:29:02] Sock 9.Parse request [21:29:02]Sock 9.Check first char [21:29:02]Sock 9.First char is OK [21:29:02]request: POST /json_proto HTTP/1.0 [21:29:02]Method: POST [21:29:02]URL: /json_proto [21:29:02]Method is POST - this is cgi request [21:29:02]url: /json_proto [21:29:02]query_string will be loaded in cgi processing [21:29:02]execute_cgi json_proto POST (null) [21:29:02]execute_cgi path=json_proto method=POST [21:29:02]POST find Content-Length [21:29:02]Host: 172.17.42.131:8080 [21:29:02]Content-Length: 769 [21:29:02]Content-Type: application/json [21:29:02] [21:29:02]POST finish read [21:29:02]Found Content-Length = 769 [21:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:02]execute_script... [21: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 : (1)210961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:02]POST & json_proto [21:29:02]process_json_proto [21:29:02]json parsed OK: [21:29:02]protocol is kg_v1.0 [21:29:02]action value=close_receipt [21:29:02]process_action close_receipt [21:29:02]cmd_close_receipt [21:29:02]MH_GetDate [21:29:02]Write to MH i2c: F0 00 00 43 0A 3C [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: F0 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: F0 09 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: F0 09 00 43 0A 00 9F 6A 19 67 A0 18 CA 66 B6 [21:29:02]GetLastDocTimeStamp 1729718614 [21:29:02]current date 1729718943 [21:29:02]FM_GetShiftState [21:29:02]SAM_PROTO_GetShiftState [21:29:02]wFMCommunicate request_size=4 [21:29:02]MH_SAM_APDU [21:29:02]CAPDU: 80 13 01 00 [21:29:02]Write to MH i2c: E2 08 00 44 0A 80 13 01 00 00 00 00 00 CB [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:02]Read from MH i2c: E2 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 0E 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 0E 00 44 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B3 [21:29:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:29:02]wFMCommunicate OK [21:29:02]SAM_PROTO_GetShiftState done [21:29:02]FM_GetShiftState done [21:29:02]opened in 1729642525 [21:29:02]opened+sec_in_day 1729728925 [21:29:02]quantity*price = 200031 [21:29:02]sum+1 = 200032 [21:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 356 23.10.2024 21:29 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188898 ФПД: 269756190584418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212903&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188898&fm=269756190584418&tin=02508201610067®Number=0000000000100030&sum=200031 [21:29:03]StoreToDocumentArchive [21:29:03]shift 462 fd 188898 [21:29:03]save to /storage/0462/doc_00188898 [21:29:03]save last doc name /storage/0462/doc_00188898 to /storage/kkm_last_doc_name [21:29:03]save OK [21:29:03]Clear old archive folders... [21:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:03]tlvbuf is 004E35A0 [21:29:03]SAM_PROTO_ClearQueue [21:29:03]wFMCommunicate request_size=4 [21:29:03]MH_SAM_APDU [21:29:03]CAPDU: 80 09 00 00 [21:29:03]Write to MH i2c: E2 08 00 51 0A 80 09 00 00 00 00 00 00 CD [21:29:03]Write i2c OK [21:29:03]MH_I2C_Read... [21:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:03]Read from MH i2c: E2 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: E2 03 00 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: E2 03 00 51 0A 00 90 00 CF [21:29:03]RAPDU: 90 00 [21:29:03]wFMCommunicate OK [21:29:03]SAM_PROTO_ClearQueue done [21:29:03]KKMCreateOFDPacket [21:29:03]OFDProtocolAddRootSTLVToBuf [21:29:03]FM_MakeSignedData [21:29:03]FM_MakeSignedData [21:29:03]SAM_PROTO_SignData [21:29:03]wFMCommunicate request_size=4 [21:29:03]MH_SAM_APDU [21:29:03]CAPDU: 80 0D 01 02 [21:29:03]Write to MH i2c: E2 08 00 52 0A 80 0D 01 02 00 00 00 00 D5 [21:29:03]Write i2c OK [21:29:03]MH_I2C_Read... [21:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:04]Read from MH i2c: E2 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 03 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [21:29:04]RAPDU: 90 00 [21:29:04]wFMCommunicate OK [21:29:04]wFMCommunicate request_size=255 [21:29:04]MH_SAM_APDU [21:29:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 9F 6A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E1 02 00 35 04 06 00 F5 [21:29:04]Write to MH i2c: E2 02 01 53 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 9F 6A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E1 02 00 35 04 06 00 F5 00 00 3F [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:04]Read from MH i2c: E2 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 03 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [21:29:04]RAPDU: 90 00 [21:29:04]wFMCommunicate OK [21:29:04]wFMCommunicate request_size=10 [21:29:04]MH_SAM_APDU [21:29:04]CAPDU: 80 0D 02 02 05 57 81 EA 6E 62 [21:29:04]Write to MH i2c: E2 0D 00 54 0A 80 0D 02 02 05 00 57 81 EA 6E 62 00 00 74 [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:04]Read from MH i2c: E2 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 03 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [21:29:04]RAPDU: 90 00 [21:29:04]wFMCommunicate OK [21:29:04]wFMCommunicate request_size=4 [21:29:04]MH_SAM_APDU [21:29:04]CAPDU: 80 0D 03 02 [21:29:04]Write to MH i2c: E2 08 00 55 0A 80 0D 03 02 00 00 00 00 DA [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:04]Read from MH i2c: E2 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 0B 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 0B 00 55 0A 00 B2 C5 A3 61 C8 EA 76 9B 90 00 19 [21:29:04]RAPDU: B2 C5 A3 61 C8 EA 76 9B 90 00 [21:29:04]wFMCommunicate OK [21:29:04]SAM_PROTO_SignData done [21:29:04]FM_MakeSignedData done [21:29:04]CreateOFDProtocolMessage [21:29:04]wFMCommunicate request_size=4 [21:29:04]MH_SAM_APDU [21:29:04]CAPDU: 80 11 00 00 [21:29:04]Write to MH i2c: E2 08 00 56 0A 80 11 00 00 00 00 00 00 DA [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:04]Read from MH i2c: E2 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 17 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 17 00 56 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [21:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:29:04]wFMCommunicate OK [21:29:04]CreateOFDProtocolMessage done [21:29:04]OFDSenderStorePacket 188898 [21:29:04]StoreOFDPacket docnum=188898 [21:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5C 46 07 01 16 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 9F 6A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E1 02 00 35 04 06 00 F5 57 81 EA 6E 62 B2 C5 A3 61 C8 EA 76 9B [21:29:04]CheckFolder [21:29:04]dirname=/storage/ofd_packets [21:29:04]CheckFolder done [21:29:04]ProducePacketName [21:29:04]name=ofd_packets/00188898 [21:29:04]NVStorageSaveData ofd_packets/00188898 [21:29:04]File name is /storage/ofd_packets/00188898 [21:29:04]Write 301 bytes [21:29:04]NVStorageSaveData done [21:29:04]OFDSenderStorePacket done [21:29:04]KKMCreateOFDPacket done [21:29:04]NVStorageSaveData kkm_last_timestamp [21:29:04]File name is /storage/kkm_last_timestamp [21:29:04]Write 4 bytes [21:29:04]NVStorageSaveData done [21:29:04]ExternCall_PrintAddStr [21:29:04]wPrintStart [21:29:04]Write to MH i2c: 01 00 00 57 0A 61 [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: 01 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: 01 07 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: 01 07 00 57 0A 00 00 00 00 00 FF 0F 76 [21:29:04]RasterBufferAndPrint [21:29:04]line Счет N : (1)210961 [21:29:04]line ИНН: 02508201610067 [21:29:04]line Контрольно-Кассовый Чек [21:29:04]line ПРОДАЖА [21:29:04]line ТРК (МРК, ГНК) : 42 [21:29:04]line Товар: 2710124130 [21:29:04]line Аи-92-К-3 [21:29:04]line 29.900 * 66.90 [21:29:04]line = 2000.31 [21:29:04]line НДС 12% НСП 1% [21:29:04]line > о реализуемом товаре [21:29:04]line ИТОГО: 2000.31 [21:29:04]line НСП 1% : 17.70 [21:29:04]line НДС 12% : 212.42 [21:29:04]line Наличными: 0.00 [21:29:04]line Безнал.: 2000.31 [21:29:04]line Место: АЗС № 86 "Партнер Нефть" [21:29:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:29:04]line СНО: Общий режим [21:29:04]line Чек 356 23.10.2024 21:29 [21:29:04]line Смена: 462 ФФД: 1.0 [21:29:04]line ЗНМ: 0300000155 [21:29:04]line РНМ: 0000000000100030 [21:29:04]line Версия ККМ: 001 [21:29:04]line Платежная система: Mbank [21:29:04]line ФМ: 0000000000965340 [21:29:04]line ФД: 188898 [21:29:04]line ФПД: 269756190584418 [21:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212903&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188898&fm=269756190584418&tin=02508201610067®Number=0000000000100030&sum=200031 [21:29:04]OFD Sender: Processing packet 188898 [packets to send 1062, broken 1061] [21:29:04]ProducePacketName [21:29:04]name=ofd_packets/00188898 [21:29:04]OFD Sender: To server: pG, [21:29:04]CommunicateWithHost lk.salyk.kg:30040 [21:29:04]ConnectInit lk.salyk.kg [21:29:04]written 0, free lines is 4095 [21:29:04]Connected sock=10 [21:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5C 46 07 01 16 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 9F 6A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E1 02 00 35 04 06 00 F5 57 81 EA 6E 62 B2 C5 A3 61 C8 EA 76 9B [21:29:04]Write to MH i2c: 01 00 00 80 0A 8A [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: 01 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: 01 07 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: 01 07 00 80 0A 00 00 00 00 00 8B 0C 28 [21:29:04]RasterBufferAndPrint [21:29:04]line [21:29:04]line [21:29:04]line [21:29:04]line [21:29:04]line [21:29:04]written 0, free lines is 3214 [21:29:04]MH_Cut [21:29:04]Write to MH i2c: D1 01 00 87 0A 01 63 [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: D1 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: D1 01 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: D1 01 00 87 0A 00 62 [21:29:04]Write to MH i2c: 01 00 00 88 0A 92 [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7F 8E 47 00 CE 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E1 02 00 F4 03 04 00 89 14 19 67 B6 04 01 00 00 8D 25 15 16 77 AB B8 BA [21:29:05]CommunicateWithHost err = 0 [21:29:05]CheckOFDResponse [21:29:05]1017 (14) - 77093643461234 [21:29:05]1041 (16) - 0000000000965340 [21:29:05]1040 (4) - 188898 [21:29:05]1012 (4) - 23.10.2024 15:21 [21:29:05]1206 (1) - 0 [21:29:05]OFD Sender: Remove packet 188898 [21:29:05]ProducePacketName [21:29:05]name=ofd_packets/00188898 [21:29:05]NVStorageDeleteData [21:29:05]OFD Sender: No OFD packet to send [21:29:06]*** Cut start [21:29:06]*** Partial cut [21:29:06]*** CUTSNS_PIN = 1 [21:29:06]*** CUTSNS_PIN = 0 [21:29:06]*** Brake cut motor [21:29:06]Read from MH i2c: 01 [21:29:06]MH_I2C_Read... [21:29:06]*** Stop cut motor [21:29:06]*** Cut end [21:29:06]Read from MH i2c: 01 07 00 [21:29:06]MH_I2C_Read... [21:29:06]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 FF 0F A7 [21:29:06]process_action close_receipt done [21:29:06]requested_data is exist [21:29:06]produce_requested_data [21:29:06]requested_item fm.sn is exist - process it [21:29:06]wFMCommunicate request_size=4 [21:29:06]MH_SAM_APDU [21:29:06]CAPDU: 80 11 00 00 [21:29:06]Write to MH i2c: E2 08 00 89 0A 80 11 00 00 00 00 00 00 0D [21:29:06]Write i2c OK [21:29:06]MH_I2C_Read... [21:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:06]Read from MH i2c: E2 [21:29:06]MH_I2C_Read... [21:29:06]Read from MH i2c: E2 17 00 [21:29:06]MH_I2C_Read... [21:29:06]Read from MH i2c: E2 17 00 89 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [21:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:29:06]wFMCommunicate OK [21:29:06]requested_item fd.num is exist - process it [21:29:06]SAM_PROTO_GetFieldsCounters [21:29:06]wFMCommunicate request_size=4 [21:29:06]MH_SAM_APDU [21:29:06]CAPDU: 80 13 00 00 [21:29:06]Write to MH i2c: E2 08 00 8A 0A 80 13 00 00 00 00 00 00 10 [21:29:06]Write i2c OK [21:29:06]MH_I2C_Read... [21:29:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:07]Read from MH i2c: E2 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 62 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 62 00 8A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [21:29:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:07]wFMCommunicate OK [21:29:07]SAM_PROTO_GetFieldsCounters done [21:29:07]requested_item shift.num is exist - process it [21:29:07]requested_item shift.opened is exist - process it [21:29:07]req_shift_opened [21:29:07]FM_GetShiftState [21:29:07]SAM_PROTO_GetShiftState [21:29:07]wFMCommunicate request_size=4 [21:29:07]MH_SAM_APDU [21:29:07]CAPDU: 80 13 01 00 [21:29:07]Write to MH i2c: E2 08 00 8B 0A 80 13 01 00 00 00 00 00 12 [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:07]Read from MH i2c: E2 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 0E 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 0E 00 8B 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FA [21:29:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:29:07]wFMCommunicate OK [21:29:07]SAM_PROTO_GetShiftState done [21:29:07]FM_GetShiftState done [21:29:07]req_shift_opened done [21:29:07]requested_item shift.open_date is exist - process it [21:29:07]req_shift_open_date [21:29:07]req_shift_open_date done [21:29:07]produce_requested_data done [21:29:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188898,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:29:07]process_action_free close_receipt [21:29:07]json_value_free [21:29:07]json_value_free done [21:29:07]process_json_proto returns [21:29:07]Send response to host [21:29:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188898,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:29:07]free response buf [21:29:07]execute_script done [21:29:07]execute_script returns [21:29:07]free content buf [21:29:07]Sock 9.Close socket [21:29:07]Sock 9.Thread stoped [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:05]accept exits with 8 [21:31:05]New connection [21:31:05]New thread 3066953060 created [21:31:05]Thread 3066809700 joined [21:31:05]Waiting for new connection... [21:31:05] Sock 8.Parse request [21:31:05]Sock 8.Check first char [21:31:05]Sock 8.First char is OK [21:31:05]request: POST /json_proto HTTP/1.0 [21:31:05]Method: POST [21:31:05]URL: /json_proto [21:31:05]Method is POST - this is cgi request [21:31:05]url: /json_proto [21:31:05]query_string will be loaded in cgi processing [21:31:05]execute_cgi json_proto POST (null) [21:31:05]execute_cgi path=json_proto method=POST [21:31:05]POST find Content-Length [21:31:05]Host: 172.17.42.131:8080 [21:31:05]Content-Length: 677 [21:31:05]Content-Type: application/json [21:31:05] [21:31:05]POST finish read [21:31:05]Found Content-Length = 677 [21:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:05]execute_script... [21:31:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:05]POST & json_proto [21:31:05]process_json_proto [21:31:05]json parsed OK: [21:31:05]protocol is kg_v1.0 [21:31:05]action value=close_receipt [21:31:05]process_action close_receipt [21:31:05]cmd_close_receipt [21:31:05]MH_GetDate [21:31:05]Write to MH i2c: F0 00 00 8C 0A 85 [21:31:05]Write i2c OK [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: F0 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: F0 09 00 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: F0 09 00 8C 0A 00 1A 6B 19 67 A0 18 CA 66 7B [21:31:05]GetLastDocTimeStamp 1729718943 [21:31:05]current date 1729719066 [21:31:05]FM_GetShiftState [21:31:05]SAM_PROTO_GetShiftState [21:31:05]wFMCommunicate request_size=4 [21:31:05]MH_SAM_APDU [21:31:05]CAPDU: 80 13 01 00 [21:31:05]Write to MH i2c: E2 08 00 8D 0A 80 13 01 00 00 00 00 00 14 [21:31:05]Write i2c OK [21:31:05]MH_I2C_Read... [21:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:05]Read from MH i2c: E2 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: E2 0E 00 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: E2 0E 00 8D 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FC [21:31:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:31:05]wFMCommunicate OK [21:31:05]SAM_PROTO_GetShiftState done [21:31:05]FM_GetShiftState done [21:31:05]opened in 1729642525 [21:31:05]opened+sec_in_day 1729728925 [21:31:05]quantity*price = 40006 [21:31:05]sum+1 = 40007 [21:31:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 357 23.10.2024 21:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188899 ФПД: 90313471564751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213106&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188899&fm=90313471564751&tin=02508201610067®Number=0000000000100030&sum=40000 [21:31:06]StoreToDocumentArchive [21:31:06]shift 462 fd 188899 [21:31:06]save to /storage/0462/doc_00188899 [21:31:06]save last doc name /storage/0462/doc_00188899 to /storage/kkm_last_doc_name [21:31:06]save OK [21:31:06]Clear old archive folders... [21:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:06]tlvbuf is 004F2200 [21:31:06]SAM_PROTO_ClearQueue [21:31:06]wFMCommunicate request_size=4 [21:31:06]MH_SAM_APDU [21:31:06]CAPDU: 80 09 00 00 [21:31:06]Write to MH i2c: E2 08 00 9A 0A 80 09 00 00 00 00 00 00 16 [21:31:06]Write i2c OK [21:31:06]MH_I2C_Read... [21:31:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:06]Read from MH i2c: E2 [21:31:06]MH_I2C_Read... [21:31:06]Read from MH i2c: E2 03 00 [21:31:06]MH_I2C_Read... [21:31:06]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [21:31:06]RAPDU: 90 00 [21:31:06]wFMCommunicate OK [21:31:06]SAM_PROTO_ClearQueue done [21:31:06]KKMCreateOFDPacket [21:31:06]OFDProtocolAddRootSTLVToBuf [21:31:06]FM_MakeSignedData [21:31:06]FM_MakeSignedData [21:31:06]SAM_PROTO_SignData [21:31:06]wFMCommunicate request_size=4 [21:31:06]MH_SAM_APDU [21:31:06]CAPDU: 80 0D 01 02 [21:31:06]Write to MH i2c: E2 08 00 9B 0A 80 0D 01 02 00 00 00 00 1E [21:31:06]Write i2c OK [21:31:06]MH_I2C_Read... [21:31:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:06]Read from MH i2c: E2 [21:31:06]MH_I2C_Read... [21:31:06]Read from MH i2c: E2 03 00 [21:31:06]MH_I2C_Read... [21:31:06]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [21:31:06]RAPDU: 90 00 [21:31:06]wFMCommunicate OK [21:31:06]wFMCommunicate request_size=255 [21:31:06]MH_SAM_APDU [21:31:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 1A 6B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E1 02 00 35 04 06 00 52 [21:31:07]Write to MH i2c: E2 02 01 9C 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 1A 6B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E1 02 00 35 04 06 00 52 00 00 B2 [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:07]Read from MH i2c: E2 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: E2 03 00 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: E2 03 00 9C 0A 00 90 00 1A [21:31:07]RAPDU: 90 00 [21:31:07]wFMCommunicate OK [21:31:07]wFMCommunicate request_size=10 [21:31:07]MH_SAM_APDU [21:31:07]CAPDU: 80 0D 02 02 05 23 BE 64 1B CF [21:31:07]Write to MH i2c: E2 0D 00 9D 0A 80 0D 02 02 05 00 23 BE 64 1B CF 00 00 5A [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:07]Read from MH i2c: E2 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: E2 03 00 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [21:31:07]RAPDU: 90 00 [21:31:07]wFMCommunicate OK [21:31:07]wFMCommunicate request_size=4 [21:31:07]MH_SAM_APDU [21:31:07]CAPDU: 80 0D 03 02 [21:31:07]Write to MH i2c: E2 08 00 9E 0A 80 0D 03 02 00 00 00 00 23 [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:07]Read from MH i2c: E2 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: E2 0B 00 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: E2 0B 00 9E 0A 00 5D 55 D7 23 FD C2 9B A0 90 00 CA [21:31:07]RAPDU: 5D 55 D7 23 FD C2 9B A0 90 00 [21:31:07]wFMCommunicate OK [21:31:07]SAM_PROTO_SignData done [21:31:07]FM_MakeSignedData done [21:31:07]CreateOFDProtocolMessage [21:31:07]wFMCommunicate request_size=4 [21:31:07]MH_SAM_APDU [21:31:07]CAPDU: 80 11 00 00 [21:31:07]Write to MH i2c: E2 08 00 9F 0A 80 11 00 00 00 00 00 00 23 [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:07]Read from MH i2c: E2 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: E2 17 00 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: E2 17 00 9F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [21:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:31:07]wFMCommunicate OK [21:31:07]CreateOFDProtocolMessage done [21:31:07]OFDSenderStorePacket 188899 [21:31:07]StoreOFDPacket docnum=188899 [21:31:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 90 07 01 80 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 1A 6B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E1 02 00 35 04 06 00 52 23 BE 64 1B CF 5D 55 D7 23 FD C2 9B A0 [21:31:07]CheckFolder [21:31:07]dirname=/storage/ofd_packets [21:31:07]CheckFolder done [21:31:07]ProducePacketName [21:31:07]name=ofd_packets/00188899 [21:31:07]NVStorageSaveData ofd_packets/00188899 [21:31:07]File name is /storage/ofd_packets/00188899 [21:31:07]Write 301 bytes [21:31:07]NVStorageSaveData done [21:31:07]OFDSenderStorePacket done [21:31:07]KKMCreateOFDPacket done [21:31:07]NVStorageSaveData kkm_last_timestamp [21:31:07]File name is /storage/kkm_last_timestamp [21:31:07]Write 4 bytes [21:31:07]NVStorageSaveData done [21:31:07]ExternCall_PrintAddStr [21:31:07]wPrintStart [21:31:07]Write to MH i2c: 01 00 00 A0 0A AA [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: 01 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: 01 07 00 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: 01 07 00 A0 0A 00 00 00 00 00 FF 0F BF [21:31:07]RasterBufferAndPrint [21:31:07]line Счет N : (1)210962 [21:31:07]line ИНН: 02508201610067 [21:31:07]line Контрольно-Кассовый Чек [21:31:07]line ПРОДАЖА [21:31:07]line ТРК (МРК, ГНК) : 12 [21:31:07]line Товар: 2710124130 [21:31:07]line Аи-92-К-3 [21:31:07]line 5.980 * 66.90 [21:31:07]line = 400.06 [21:31:07]line НДС 12% НСП 1% [21:31:07]line > о реализуемом товаре [21:31:07]line ОКРУГЛЕНИЕ: -0.06 [21:31:07]line ИТОГО: 400.00 [21:31:07]line Внесено: 400.00 [21:31:07]line СДАЧА: 0.00 [21:31:07]line НСП 1% : 3.54 [21:31:07]line НДС 12% : 42.48 [21:31:07]line Наличными: 400.00 [21:31:07]line Безнал.: 0.00 [21:31:07]line Место: АЗС № 86 "Партнер Нефть" [21:31:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:31:07]line СНО: Общий режим [21:31:07]line Чек 357 23.10.2024 21:31 [21:31:07]line Смена: 462 ФФД: 1.0 [21:31:07]line ЗНМ: 0300000155 [21:31:07]line РНМ: 0000000000100030 [21:31:07]line Версия ККМ: 001 [21:31:07]line ФМ: 0000000000965340 [21:31:07]line ФД: 188899 [21:31:07]line ФПД: 90313471564751 [21:31:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213106&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188899&fm=90313471564751&tin=02508201610067®Number=0000000000100030&sum=40000 [21:31:07]written 0, free lines is 4095 [21:31:07]OFD Sender: Processing packet 188899 [packets to send 1062, broken 1061] [21:31:07]ProducePacketName [21:31:07]name=ofd_packets/00188899 [21:31:07]OFD Sender: To server: pG, [21:31:07]CommunicateWithHost lk.salyk.kg:30040 [21:31:07]ConnectInit lk.salyk.kg [21:31:07]Connected sock=10 [21:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 90 07 01 80 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 1A 6B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E1 02 00 35 04 06 00 52 23 BE 64 1B CF 5D 55 D7 23 FD C2 9B A0 [21:31:07]Write to MH i2c: 01 00 00 CB 0A D5 [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: 01 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: 01 07 00 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 52 0C 3A [21:31:07]RasterBufferAndPrint [21:31:07]line [21:31:07]line [21:31:07]line [21:31:07]line [21:31:07]line [21:31:07]written 0, free lines is 3158 [21:31:07]MH_Cut [21:31:07]Write to MH i2c: D1 01 00 D2 0A 01 AE [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: D1 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: D1 01 00 [21:31:07]MH_I2C_Read... [21:31:07]Read from MH i2c: D1 01 00 D2 0A 00 AD [21:31:07]Write to MH i2c: 01 00 00 D3 0A DD [21:31:07]Write i2c OK [21:31:07]MH_I2C_Read... [21:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 68 47 00 78 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E1 02 00 F4 03 04 00 04 15 19 67 B6 04 01 00 00 FD B3 8A 3B 5F 95 96 25 [21:31:08]CommunicateWithHost err = 0 [21:31:08]CheckOFDResponse [21:31:08]1017 (14) - 77093643461234 [21:31:08]1041 (16) - 0000000000965340 [21:31:08]1040 (4) - 188899 [21:31:08]1012 (4) - 23.10.2024 15:23 [21:31:08]1206 (1) - 0 [21:31:08]OFD Sender: Remove packet 188899 [21:31:08]ProducePacketName [21:31:08]name=ofd_packets/00188899 [21:31:08]NVStorageDeleteData [21:31:08]OFD Sender: No OFD packet to send [21:31:09]*** Cut start [21:31:09]*** Partial cut [21:31:09]*** CUTSNS_PIN = 1 [21:31:09]*** CUTSNS_PIN = 0 [21:31:09]*** Brake cut motor [21:31:09]Read from MH i2c: 01 [21:31:09]MH_I2C_Read... [21:31:09]*** Stop cut motor [21:31:09]*** Cut end [21:31:09]Read from MH i2c: 01 07 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 FF 0F F2 [21:31:09]process_action close_receipt done [21:31:09]requested_data is exist [21:31:09]produce_requested_data [21:31:09]requested_item fm.sn is exist - process it [21:31:09]wFMCommunicate request_size=4 [21:31:09]MH_SAM_APDU [21:31:09]CAPDU: 80 11 00 00 [21:31:09]Write to MH i2c: E2 08 00 D4 0A 80 11 00 00 00 00 00 00 58 [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:09]Read from MH i2c: E2 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 17 00 [21:31:09]MH_I2C_Read... [21:31:09]Read from MH i2c: E2 17 00 D4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [21:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:31:09]wFMCommunicate OK [21:31:09]requested_item fd.num is exist - process it [21:31:09]SAM_PROTO_GetFieldsCounters [21:31:09]wFMCommunicate request_size=4 [21:31:09]MH_SAM_APDU [21:31:09]CAPDU: 80 13 00 00 [21:31:09]Write to MH i2c: E2 08 00 D5 0A 80 13 00 00 00 00 00 00 5B [21:31:09]Write i2c OK [21:31:09]MH_I2C_Read... [21:31:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:10]Read from MH i2c: E2 [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: E2 62 00 [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: E2 62 00 D5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [21:31:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:10]wFMCommunicate OK [21:31:10]SAM_PROTO_GetFieldsCounters done [21:31:10]requested_item shift.num is exist - process it [21:31:10]requested_item shift.opened is exist - process it [21:31:10]req_shift_opened [21:31:10]FM_GetShiftState [21:31:10]SAM_PROTO_GetShiftState [21:31:10]wFMCommunicate request_size=4 [21:31:10]MH_SAM_APDU [21:31:10]CAPDU: 80 13 01 00 [21:31:10]Write to MH i2c: E2 08 00 D6 0A 80 13 01 00 00 00 00 00 5D [21:31:10]Write i2c OK [21:31:10]MH_I2C_Read... [21:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:10]Read from MH i2c: E2 [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: E2 0E 00 [21:31:10]MH_I2C_Read... [21:31:10]Read from MH i2c: E2 0E 00 D6 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 45 [21:31:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:31:10]wFMCommunicate OK [21:31:10]SAM_PROTO_GetShiftState done [21:31:10]FM_GetShiftState done [21:31:10]req_shift_opened done [21:31:10]requested_item shift.open_date is exist - process it [21:31:10]req_shift_open_date [21:31:10]req_shift_open_date done [21:31:10]produce_requested_data done [21:31:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188899,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:31:10]process_action_free close_receipt [21:31:10]json_value_free [21:31:10]json_value_free done [21:31:10]process_json_proto returns [21:31:10]Send response to host [21:31:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188899,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:31:10]free response buf [21:31:10]execute_script done [21:31:10]execute_script returns [21:31:10]free content buf [21:31:10]Sock 8.Close socket [21:31:10]Sock 8.Thread stoped [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32: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:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]accept exits with 9 [21:38:05]New connection [21:38:05]New thread 3066809700 created [21:38:05]Thread 3066953060 joined [21:38:05]Waiting for new connection... [21:38:05] Sock 9.Parse request [21:38:05]Sock 9.Check first char [21:38:05]Sock 9.First char is OK [21:38:05]request: POST /json_proto HTTP/1.0 [21:38:05]Method: POST [21:38:05]URL: /json_proto [21:38:05]Method is POST - this is cgi request [21:38:05]url: /json_proto [21:38:05]query_string will be loaded in cgi processing [21:38:05]execute_cgi json_proto POST (null) [21:38:05]execute_cgi path=json_proto method=POST [21:38:05]POST find Content-Length [21:38:05]Host: 172.17.42.131:8080 [21:38:05]Content-Length: 769 [21:38:05]Content-Type: application/json [21:38:05] [21:38:05]POST finish read [21:38:05]Found Content-Length = 769 [21:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:05]execute_script... [21:38:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:05]POST & json_proto [21:38:05]process_json_proto [21:38:05]json parsed OK: [21:38:05]protocol is kg_v1.0 [21:38:05]action value=close_receipt [21:38:05]process_action close_receipt [21:38:05]cmd_close_receipt [21:38:05]MH_GetDate [21:38:05]Write to MH i2c: F0 00 00 D7 0A D0 [21:38:05]Write i2c OK [21:38:05]MH_I2C_Read... [21:38:05]Read from MH i2c: F0 [21:38:05]MH_I2C_Read... [21:38:05]Read from MH i2c: F0 09 00 [21:38:05]MH_I2C_Read... [21:38:05]Read from MH i2c: F0 09 00 D7 0A 00 BE 6C 19 67 A0 18 CA 66 6B [21:38:05]GetLastDocTimeStamp 1729719066 [21:38:05]current date 1729719486 [21:38:05]FM_GetShiftState [21:38:05]SAM_PROTO_GetShiftState [21:38:05]wFMCommunicate request_size=4 [21:38:05]MH_SAM_APDU [21:38:05]CAPDU: 80 13 01 00 [21:38:05]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [21:38:05]Write i2c OK [21:38:05]MH_I2C_Read... [21:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:05]Read from MH i2c: E2 [21:38:05]MH_I2C_Read... [21:38:05]Read from MH i2c: E2 0E 00 [21:38:05]MH_I2C_Read... [21:38:05]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 47 [21:38:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:38:05]wFMCommunicate OK [21:38:05]SAM_PROTO_GetShiftState done [21:38:05]FM_GetShiftState done [21:38:05]opened in 1729642525 [21:38:05]opened+sec_in_day 1729728925 [21:38:05]quantity*price = 100015 [21:38:05]sum+1 = 100017 [21:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 358 23.10.2024 21:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188900 ФПД: 166889373346107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213806&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188900&fm=166889373346107&tin=02508201610067®Number=0000000000100030&sum=100016 [21:38:06]StoreToDocumentArchive [21:38:06]shift 462 fd 188900 [21:38:06]save to /storage/0462/doc_00188900 [21:38:06]save last doc name /storage/0462/doc_00188900 to /storage/kkm_last_doc_name [21:38:06]save OK [21:38:06]Clear old archive folders... [21:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:06]tlvbuf is 004EBA20 [21:38:06]SAM_PROTO_ClearQueue [21:38:06]wFMCommunicate request_size=4 [21:38:06]MH_SAM_APDU [21:38:06]CAPDU: 80 09 00 00 [21:38:06]Write to MH i2c: E2 08 00 E5 0A 80 09 00 00 00 00 00 00 61 [21:38:06]Write i2c OK [21:38:06]MH_I2C_Read... [21:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:06]Read from MH i2c: E2 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 03 00 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [21:38:06]RAPDU: 90 00 [21:38:06]wFMCommunicate OK [21:38:06]SAM_PROTO_ClearQueue done [21:38:06]KKMCreateOFDPacket [21:38:06]OFDProtocolAddRootSTLVToBuf [21:38:06]FM_MakeSignedData [21:38:06]FM_MakeSignedData [21:38:06]SAM_PROTO_SignData [21:38:06]wFMCommunicate request_size=4 [21:38:06]MH_SAM_APDU [21:38:06]CAPDU: 80 0D 01 02 [21:38:06]Write to MH i2c: E2 08 00 E6 0A 80 0D 01 02 00 00 00 00 69 [21:38:06]Write i2c OK [21:38:06]MH_I2C_Read... [21:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:06]Read from MH i2c: E2 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 03 00 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [21:38:06]RAPDU: 90 00 [21:38:06]wFMCommunicate OK [21:38:06]wFMCommunicate request_size=255 [21:38:06]MH_SAM_APDU [21:38:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 BE 6C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E1 02 00 35 04 06 00 97 [21:38:06]Write to MH i2c: E2 02 01 E7 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 BE 6C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E1 02 00 35 04 06 00 97 00 00 34 [21:38:06]Write i2c OK [21:38:06]MH_I2C_Read... [21:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:06]Read from MH i2c: E2 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 03 00 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [21:38:06]RAPDU: 90 00 [21:38:06]wFMCommunicate OK [21:38:06]wFMCommunicate request_size=10 [21:38:06]MH_SAM_APDU [21:38:06]CAPDU: 80 0D 02 02 05 C8 F5 D0 A9 3B [21:38:06]Write to MH i2c: E2 0D 00 E8 0A 80 0D 02 02 05 00 C8 F5 D0 A9 3B 00 00 E7 [21:38:06]Write i2c OK [21:38:06]MH_I2C_Read... [21:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:06]Read from MH i2c: E2 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 03 00 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [21:38:06]RAPDU: 90 00 [21:38:06]wFMCommunicate OK [21:38:06]wFMCommunicate request_size=4 [21:38:06]MH_SAM_APDU [21:38:06]CAPDU: 80 0D 03 02 [21:38:06]Write to MH i2c: E2 08 00 E9 0A 80 0D 03 02 00 00 00 00 6E [21:38:06]Write i2c OK [21:38:06]MH_I2C_Read... [21:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:06]Read from MH i2c: E2 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 0B 00 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 0B 00 E9 0A 00 C2 7D DD 50 21 3A 71 58 90 00 FF [21:38:06]RAPDU: C2 7D DD 50 21 3A 71 58 90 00 [21:38:06]wFMCommunicate OK [21:38:06]SAM_PROTO_SignData done [21:38:06]FM_MakeSignedData done [21:38:06]CreateOFDProtocolMessage [21:38:06]wFMCommunicate request_size=4 [21:38:06]MH_SAM_APDU [21:38:06]CAPDU: 80 11 00 00 [21:38:06]Write to MH i2c: E2 08 00 EA 0A 80 11 00 00 00 00 00 00 6E [21:38:06]Write i2c OK [21:38:06]MH_I2C_Read... [21:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:06]Read from MH i2c: E2 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 17 00 [21:38:06]MH_I2C_Read... [21:38:06]Read from MH i2c: E2 17 00 EA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [21:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:38:06]wFMCommunicate OK [21:38:06]CreateOFDProtocolMessage done [21:38:06]OFDSenderStorePacket 188900 [21:38:06]StoreOFDPacket docnum=188900 [21:38:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 7F 07 01 36 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 BE 6C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E1 02 00 35 04 06 00 97 C8 F5 D0 A9 3B C2 7D DD 50 21 3A 71 58 [21:38:06]CheckFolder [21:38:06]dirname=/storage/ofd_packets [21:38:06]CheckFolder done [21:38:06]ProducePacketName [21:38:06]name=ofd_packets/00188900 [21:38:06]NVStorageSaveData ofd_packets/00188900 [21:38:06]File name is /storage/ofd_packets/00188900 [21:38:06]Write 301 bytes [21:38:06]NVStorageSaveData done [21:38:06]OFDSenderStorePacket done [21:38:06]KKMCreateOFDPacket done [21:38:06]NVStorageSaveData kkm_last_timestamp [21:38:06]File name is /storage/kkm_last_timestamp [21:38:06]Write 4 bytes [21:38:06]NVStorageSaveData done [21:38:07]ExternCall_PrintAddStr [21:38:07]wPrintStart [21:38:07]Write to MH i2c: 01 00 00 EB 0A F5 [21:38:07]Write i2c OK [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: 01 [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: 01 07 00 [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: 01 07 00 EB 0A 00 00 00 00 00 FF 0F 0A [21:38:07]RasterBufferAndPrint [21:38:07]line Счет N : (1)210964 [21:38:07]line ИНН: 02508201610067 [21:38:07]line Контрольно-Кассовый Чек [21:38:07]line ПРОДАЖА [21:38:07]line ТРК (МРК, ГНК) : 32 [21:38:07]line Товар: 2710124130 [21:38:07]line Аи-92-К-3 [21:38:07]line 14.950 * 66.90 [21:38:07]line = 1000.16 [21:38:07]line НДС 12% НСП 1% [21:38:07]line > о реализуемом товаре [21:38:07]line ИТОГО: 1000.16 [21:38:07]line НСП 1% : 8.85 [21:38:07]line НДС 12% : 106.21 [21:38:07]line Наличными: 0.00 [21:38:07]line Безнал.: 1000.16 [21:38:07]line Место: АЗС № 86 "Партнер Нефть" [21:38:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:38:07]line СНО: Общий режим [21:38:07]line Чек 358 23.10.2024 21:38 [21:38:07]line Смена: 462 ФФД: 1.0 [21:38:07]line ЗНМ: 0300000155 [21:38:07]line РНМ: 0000000000100030 [21:38:07]line Версия ККМ: 001 [21:38:07]line Платежная система: Mbank [21:38:07]line ФМ: 0000000000965340 [21:38:07]line ФД: 188900 [21:38:07]line ФПД: 166889373346107 [21:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213806&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188900&fm=166889373346107&tin=02508201610067®Number=0000000000100030&sum=100016 [21:38:07]written 0, free lines is 4095 [21:38:07]OFD Sender: Processing packet 188900 [packets to send 1062, broken 1061] [21:38:07]ProducePacketName [21:38:07]name=ofd_packets/00188900 [21:38:07]OFD Sender: To server: pG, [21:38:07]CommunicateWithHost lk.salyk.kg:30040 [21:38:07]ConnectInit lk.salyk.kg [21:38:07]Write to MH i2c: 01 00 00 14 0B 1F [21:38:07]Write i2c OK [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: 01 [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: 01 07 00 [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: 01 07 00 14 0B 00 00 00 00 00 82 0C B4 [21:38:07]RasterBufferAndPrint [21:38:07]line [21:38:07]line [21:38:07]line [21:38:07]line [21:38:07]line [21:38:07]written 0, free lines is 3207 [21:38:07]MH_Cut [21:38:07]Write to MH i2c: D1 01 00 1B 0B 01 F8 [21:38:07]Write i2c OK [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: D1 [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: D1 01 00 [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: D1 01 00 1B 0B 00 F7 [21:38:07]Write to MH i2c: 01 00 00 1C 0B 27 [21:38:07]Write i2c OK [21:38:07]MH_I2C_Read... [21:38:07]Connected sock=10 [21:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 7F 07 01 36 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 BE 6C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E1 02 00 35 04 06 00 97 C8 F5 D0 A9 3B C2 7D DD 50 21 3A 71 58 [21:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A 02 47 00 53 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E1 02 00 F4 03 04 00 A8 16 19 67 B6 04 01 00 00 DB F5 BE C1 A1 0A F3 45 [21:38:07]CommunicateWithHost err = 0 [21:38:07]CheckOFDResponse [21:38:07]1017 (14) - 77093643461234 [21:38:07]1041 (16) - 0000000000965340 [21:38:07]1040 (4) - 188900 [21:38:07]1012 (4) - 23.10.2024 15:30 [21:38:07]1206 (1) - 0 [21:38:07]OFD Sender: Remove packet 188900 [21:38:07]ProducePacketName [21:38:07]name=ofd_packets/00188900 [21:38:07]NVStorageDeleteData [21:38:08]OFD Sender: No OFD packet to send [21:38:08]*** Cut start [21:38:08]*** Partial cut [21:38:08]*** CUTSNS_PIN = 1 [21:38:08]*** CUTSNS_PIN = 0 [21:38:09]*** Brake cut motor [21:38:09]Read from MH i2c: 01 [21:38:09]MH_I2C_Read... [21:38:09]*** Stop cut motor [21:38:09]*** Cut end [21:38:09]Read from MH i2c: 01 07 00 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 FF 0F 3C [21:38:09]process_action close_receipt done [21:38:09]requested_data is exist [21:38:09]produce_requested_data [21:38:09]requested_item fm.sn is exist - process it [21:38:09]wFMCommunicate request_size=4 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 11 00 00 [21:38:09]Write to MH i2c: E2 08 00 1D 0B 80 11 00 00 00 00 00 00 A2 [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:09]Read from MH i2c: E2 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 17 00 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 17 00 1D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [21:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:38:09]wFMCommunicate OK [21:38:09]requested_item fd.num is exist - process it [21:38:09]SAM_PROTO_GetFieldsCounters [21:38:09]wFMCommunicate request_size=4 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 13 00 00 [21:38:09]Write to MH i2c: E2 08 00 1E 0B 80 13 00 00 00 00 00 00 A5 [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:09]Read from MH i2c: E2 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 62 00 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 62 00 1E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [21:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:09]wFMCommunicate OK [21:38:09]SAM_PROTO_GetFieldsCounters done [21:38:09]requested_item shift.num is exist - process it [21:38:09]requested_item shift.opened is exist - process it [21:38:09]req_shift_opened [21:38:09]FM_GetShiftState [21:38:09]SAM_PROTO_GetShiftState [21:38:09]wFMCommunicate request_size=4 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 13 01 00 [21:38:09]Write to MH i2c: E2 08 00 1F 0B 80 13 01 00 00 00 00 00 A7 [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 [21:38:09]MH_I2C_Read... [21:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:09]Read from MH i2c: E2 0E 00 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 0E 00 1F 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8F [21:38:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:38:09]wFMCommunicate OK [21:38:09]SAM_PROTO_GetShiftState done [21:38:09]FM_GetShiftState done [21:38:09]req_shift_opened done [21:38:09]requested_item shift.open_date is exist - process it [21:38:09]req_shift_open_date [21:38:09]req_shift_open_date done [21:38:09]produce_requested_data done [21:38:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188900,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:38:09]process_action_free close_receipt [21:38:09]json_value_free [21:38:09]json_value_free done [21:38:09]process_json_proto returns [21:38:09]Send response to host [21:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188900,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:38:09]free response buf [21:38:09]execute_script done [21:38:09]execute_script returns [21:38:09]free content buf [21:38:09]Sock 9.Close socket [21:38:09]Sock 9.Thread stoped [21:38:13]accept exits with 8 [21:38:13]New connection [21:38:13]New thread 3066953060 created [21:38:13]Thread 3066809700 joined [21:38:13]Waiting for new connection... [21:38:13] Sock 8.Parse request [21:38:13]Sock 8.Check first char [21:38:13]Sock 8.First char is OK [21:38:13]request: POST /json_proto HTTP/1.0 [21:38:13]Method: POST [21:38:13]URL: /json_proto [21:38:13]Method is POST - this is cgi request [21:38:13]url: /json_proto [21:38:13]query_string will be loaded in cgi processing [21:38:13]execute_cgi json_proto POST (null) [21:38:13]execute_cgi path=json_proto method=POST [21:38:13]POST find Content-Length [21:38:13]Host: 172.17.42.131:8080 [21:38:13]Content-Length: 688 [21:38:13]Content-Type: application/json [21:38:13] [21:38:13]POST finish read [21:38:13]Found Content-Length = 688 [21:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:13]execute_script... [21:38:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:13]POST & json_proto [21:38:13]process_json_proto [21:38:13]json parsed OK: [21:38:13]protocol is kg_v1.0 [21:38:13]action value=close_receipt [21:38:13]process_action close_receipt [21:38:13]cmd_close_receipt [21:38:13]MH_GetDate [21:38:13]Write to MH i2c: F0 00 00 20 0B 1A [21:38:13]Write i2c OK [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: F0 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: F0 09 00 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: F0 09 00 20 0B 00 C6 6C 19 67 A0 18 CA 66 BD [21:38:13]GetLastDocTimeStamp 1729719486 [21:38:13]current date 1729719494 [21:38:13]FM_GetShiftState [21:38:13]SAM_PROTO_GetShiftState [21:38:13]wFMCommunicate request_size=4 [21:38:13]MH_SAM_APDU [21:38:13]CAPDU: 80 13 01 00 [21:38:13]Write to MH i2c: E2 08 00 21 0B 80 13 01 00 00 00 00 00 A9 [21:38:13]Write i2c OK [21:38:13]MH_I2C_Read... [21:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:13]Read from MH i2c: E2 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 0E 00 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 0E 00 21 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 91 [21:38:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:38:13]wFMCommunicate OK [21:38:13]SAM_PROTO_GetShiftState done [21:38:13]FM_GetShiftState done [21:38:13]opened in 1729642525 [21:38:13]opened+sec_in_day 1729728925 [21:38:13]quantity*price = 250050 [21:38:13]sum+1 = 250052 [21:38:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 359 23.10.2024 21:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188901 ФПД: 220817107297437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213814&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188901&fm=220817107297437&tin=02508201610067®Number=0000000000100030&sum=250000 [21:38:14]StoreToDocumentArchive [21:38:14]shift 462 fd 188901 [21:38:14]save to /storage/0462/doc_00188901 [21:38:14]save last doc name /storage/0462/doc_00188901 to /storage/kkm_last_doc_name [21:38:14]save OK [21:38:14]Clear old archive folders... [21:38:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:38:14]tlvbuf is 00539F70 [21:38:14]SAM_PROTO_ClearQueue [21:38:14]wFMCommunicate request_size=4 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 09 00 00 [21:38:14]Write to MH i2c: E2 08 00 2E 0B 80 09 00 00 00 00 00 00 AB [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 2E 0B 00 90 00 AD [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]SAM_PROTO_ClearQueue done [21:38:14]KKMCreateOFDPacket [21:38:14]OFDProtocolAddRootSTLVToBuf [21:38:14]FM_MakeSignedData [21:38:14]FM_MakeSignedData [21:38:14]SAM_PROTO_SignData [21:38:14]wFMCommunicate request_size=4 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 01 02 [21:38:14]Write to MH i2c: E2 08 00 2F 0B 80 0D 01 02 00 00 00 00 B3 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 2F 0B 00 90 00 AE [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]wFMCommunicate request_size=255 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 C6 6C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E1 02 [21:38:14]Write to MH i2c: E2 02 01 30 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 C6 6C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E1 02 00 00 53 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 30 0B 00 90 00 AF [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]wFMCommunicate request_size=16 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C8 D4 FD 3D A4 9D [21:38:14]Write to MH i2c: E2 13 00 31 0B 80 0D 02 02 0B 00 00 35 04 06 00 C8 D4 FD 3D A4 9D 00 00 22 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]wFMCommunicate request_size=4 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 03 02 [21:38:14]Write to MH i2c: E2 08 00 32 0B 80 0D 03 02 00 00 00 00 B8 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 0B 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 0B 00 32 0B 00 BB 2A 9D 40 3C 89 80 7A 90 00 3A [21:38:14]RAPDU: BB 2A 9D 40 3C 89 80 7A 90 00 [21:38:14]wFMCommunicate OK [21:38:14]SAM_PROTO_SignData done [21:38:14]FM_MakeSignedData done [21:38:14]CreateOFDProtocolMessage [21:38:14]wFMCommunicate request_size=4 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 11 00 00 [21:38:14]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:15]Read from MH i2c: E2 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: E2 17 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [21:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:38:15]wFMCommunicate OK [21:38:15]CreateOFDProtocolMessage done [21:38:15]OFDSenderStorePacket 188901 [21:38:15]StoreOFDPacket docnum=188901 [21:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C5 48 0D 01 FB 32 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 C6 6C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E1 02 00 35 04 06 00 C8 D4 FD 3D A4 9D BB 2A 9D 40 3C 89 80 7A [21:38:15]CheckFolder [21:38:15]dirname=/storage/ofd_packets [21:38:15]CheckFolder done [21:38:15]ProducePacketName [21:38:15]name=ofd_packets/00188901 [21:38:15]NVStorageSaveData ofd_packets/00188901 [21:38:15]File name is /storage/ofd_packets/00188901 [21:38:15]Write 307 bytes [21:38:15]NVStorageSaveData done [21:38:15]OFDSenderStorePacket done [21:38:15]KKMCreateOFDPacket done [21:38:15]NVStorageSaveData kkm_last_timestamp [21:38:15]File name is /storage/kkm_last_timestamp [21:38:15]Write 4 bytes [21:38:15]NVStorageSaveData done [21:38:15]ExternCall_PrintAddStr [21:38:15]wPrintStart [21:38:15]Write to MH i2c: 01 00 00 34 0B 3F [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 34 0B 00 00 00 00 00 FF 0F 54 [21:38:15]RasterBufferAndPrint [21:38:15]line Счет N : (1)210963 [21:38:15]line ИНН: 02508201610067 [21:38:15]line Контрольно-Кассовый Чек [21:38:15]line ПРОДАЖА [21:38:15]line ТРК (МРК, ГНК) : 41 [21:38:15]line Товар: 2710194210 [21:38:15]line D-ENERGY ДТ-К-5 [21:38:15]line 32.390 * 77.20 [21:38:15]line = 2500.51 [21:38:15]line НДС 12% НСП 1% [21:38:15]line > о реализуемом товаре [21:38:15]line ОКРУГЛЕНИЕ: -0.51 [21:38:15]line ИТОГО: 2500.00 [21:38:15]line Внесено: 2500.00 [21:38:15]line СДАЧА: 0.00 [21:38:15]line НСП 1% : 22.13 [21:38:15]line НДС 12% : 265.54 [21:38:15]line Наличными: 2500.00 [21:38:15]line Безнал.: 0.00 [21:38:15]line Место: АЗС № 86 "Партнер Нефть" [21:38:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:38:15]line СНО: Общий режим [21:38:15]line Чек 359 23.10.2024 21:38 [21:38:15]line Смена: 462 ФФД: 1.0 [21:38:15]line ЗНМ: 0300000155 [21:38:15]line РНМ: 0000000000100030 [21:38:15]line Версия ККМ: 001 [21:38:15]line ФМ: 0000000000965340 [21:38:15]line ФД: 188901 [21:38:15]line ФПД: 220817107297437 [21:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213814&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188901&fm=220817107297437&tin=02508201610067®Number=0000000000100030&sum=250000 [21:38:15]written 0, free lines is 4095 [21:38:15]OFD Sender: Processing packet 188901 [packets to send 1062, broken 1061] [21:38:15]ProducePacketName [21:38:15]name=ofd_packets/00188901 [21:38:15]OFD Sender: To server: pG, [21:38:15]CommunicateWithHost lk.salyk.kg:30040 [21:38:15]ConnectInit lk.salyk.kg [21:38:15]Connected sock=10 [21:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C5 48 0D 01 FB 32 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 C6 6C 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E1 02 00 35 04 06 00 C8 D4 FD 3D A4 9D BB 2A 9D 40 3C 89 80 7A [21:38:15]Write to MH i2c: 01 00 00 5F 0B 6A [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 5F 0B 00 00 00 00 00 5F 0C DC [21:38:15]RasterBufferAndPrint [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]written 0, free lines is 3175 [21:38:15]MH_Cut [21:38:15]Write to MH i2c: D1 01 00 66 0B 01 43 [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 01 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 01 00 66 0B 00 42 [21:38:15]Write to MH i2c: 01 00 00 67 0B 72 [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CA 83 47 00 5B 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E1 02 00 F4 03 04 00 B0 16 19 67 B6 04 01 00 00 3B 22 BC 0B 3B 09 7F 19 [21:38:15]CommunicateWithHost err = 0 [21:38:15]CheckOFDResponse [21:38:15]1017 (14) - 77093643461234 [21:38:15]1041 (16) - 0000000000965340 [21:38:15]1040 (4) - 188901 [21:38:15]1012 (4) - 23.10.2024 15:30 [21:38:15]1206 (1) - 0 [21:38:15]OFD Sender: Remove packet 188901 [21:38:15]ProducePacketName [21:38:15]name=ofd_packets/00188901 [21:38:15]NVStorageDeleteData [21:38:16]OFD Sender: No OFD packet to send [21:38:16]*** Cut start [21:38:16]*** Partial cut [21:38:16]*** CUTSNS_PIN = 1 [21:38:16]*** CUTSNS_PIN = 0 [21:38:17]*** Brake cut motor [21:38:17]Read from MH i2c: 01 [21:38:17]MH_I2C_Read... [21:38:17]*** Stop cut motor [21:38:17]*** Cut end [21:38:17]Read from MH i2c: 01 07 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 FF 0F 87 [21:38:17]process_action close_receipt done [21:38:17]requested_data is exist [21:38:17]produce_requested_data [21:38:17]requested_item fm.sn is exist - process it [21:38:17]wFMCommunicate request_size=4 [21:38:17]MH_SAM_APDU [21:38:17]CAPDU: 80 11 00 00 [21:38:17]Write to MH i2c: E2 08 00 68 0B 80 11 00 00 00 00 00 00 ED [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:17]Read from MH i2c: E2 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 17 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 17 00 68 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [21:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:38:17]wFMCommunicate OK [21:38:17]requested_item fd.num is exist - process it [21:38:17]SAM_PROTO_GetFieldsCounters [21:38:17]wFMCommunicate request_size=4 [21:38:17]MH_SAM_APDU [21:38:17]CAPDU: 80 13 00 00 [21:38:17]Write to MH i2c: E2 08 00 69 0B 80 13 00 00 00 00 00 00 F0 [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:17]Read from MH i2c: E2 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 62 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 62 00 69 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [21:38:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:17]wFMCommunicate OK [21:38:17]SAM_PROTO_GetFieldsCounters done [21:38:17]requested_item shift.num is exist - process it [21:38:17]requested_item shift.opened is exist - process it [21:38:17]req_shift_opened [21:38:17]FM_GetShiftState [21:38:17]SAM_PROTO_GetShiftState [21:38:17]wFMCommunicate request_size=4 [21:38:17]MH_SAM_APDU [21:38:17]CAPDU: 80 13 01 00 [21:38:17]Write to MH i2c: E2 08 00 6A 0B 80 13 01 00 00 00 00 00 F2 [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:17]Read from MH i2c: E2 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 0E 00 [21:38:17]MH_I2C_Read... [21:38:17]Read from MH i2c: E2 0E 00 6A 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DA [21:38:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:38:17]wFMCommunicate OK [21:38:17]SAM_PROTO_GetShiftState done [21:38:17]FM_GetShiftState done [21:38:17]req_shift_opened done [21:38:17]requested_item shift.open_date is exist - process it [21:38:17]req_shift_open_date [21:38:17]req_shift_open_date done [21:38:17]produce_requested_data done [21:38:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188901,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:38:17]process_action_free close_receipt [21:38:17]json_value_free [21:38:17]json_value_free done [21:38:17]process_json_proto returns [21:38:17]Send response to host [21:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188901,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:38:17]free response buf [21:38:17]execute_script done [21:38:17]execute_script returns [21:38:17]free content buf [21:38:17]Sock 8.Close socket [21:38:17]Sock 8.Thread stoped [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:34]accept exits with 9 [21:41:34]New connection [21:41:34]New thread 3066809700 created [21:41:34]Thread 3066953060 joined [21:41:34]Waiting for new connection... [21:41:34] Sock 9.Parse request [21:41:34]Sock 9.Check first char [21:41:34]Sock 9.First char is OK [21:41:34]request: POST /json_proto HTTP/1.0 [21:41:34]Method: POST [21:41:34]URL: /json_proto [21:41:34]Method is POST - this is cgi request [21:41:34]url: /json_proto [21:41:34]query_string will be loaded in cgi processing [21:41:34]execute_cgi json_proto POST (null) [21:41:34]execute_cgi path=json_proto method=POST [21:41:34]POST find Content-Length [21:41:34]Host: 172.17.42.131:8080 [21:41:34]Content-Length: 677 [21:41:34]Content-Type: application/json [21:41:34] [21:41:34]POST finish read [21:41:34]Found Content-Length = 677 [21:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:34]execute_script... [21:41:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:34]POST & json_proto [21:41:34]process_json_proto [21:41:34]json parsed OK: [21:41:34]protocol is kg_v1.0 [21:41:34]action value=close_receipt [21:41:34]process_action close_receipt [21:41:34]cmd_close_receipt [21:41:34]MH_GetDate [21:41:34]Write to MH i2c: F0 00 00 6B 0B 65 [21:41:34]Write i2c OK [21:41:34]MH_I2C_Read... [21:41:34]Read from MH i2c: F0 [21:41:34]MH_I2C_Read... [21:41:34]Read from MH i2c: F0 09 00 [21:41:34]MH_I2C_Read... [21:41:34]Read from MH i2c: F0 09 00 6B 0B 00 8F 6D 19 67 A0 18 CA 66 D2 [21:41:34]GetLastDocTimeStamp 1729719494 [21:41:34]current date 1729719695 [21:41:34]FM_GetShiftState [21:41:34]SAM_PROTO_GetShiftState [21:41:34]wFMCommunicate request_size=4 [21:41:34]MH_SAM_APDU [21:41:34]CAPDU: 80 13 01 00 [21:41:34]Write to MH i2c: E2 08 00 6C 0B 80 13 01 00 00 00 00 00 F4 [21:41:34]Write i2c OK [21:41:34]MH_I2C_Read... [21:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:34]Read from MH i2c: E2 [21:41:34]MH_I2C_Read... [21:41:34]Read from MH i2c: E2 0E 00 [21:41:34]MH_I2C_Read... [21:41:34]Read from MH i2c: E2 0E 00 6C 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DC [21:41:34]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:41:34]wFMCommunicate OK [21:41:34]SAM_PROTO_GetShiftState done [21:41:34]FM_GetShiftState done [21:41:34]opened in 1729642525 [21:41:34]opened+sec_in_day 1729728925 [21:41:34]quantity*price = 50041 [21:41:34]sum+1 = 50042 [21:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 360 23.10.2024 21:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188902 ФПД: 48090951196882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T214135&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188902&fm=48090951196882&tin=02508201610067®Number=0000000000100030&sum=50000 [21:41:35]StoreToDocumentArchive [21:41:35]shift 462 fd 188902 [21:41:35]save to /storage/0462/doc_00188902 [21:41:35]save last doc name /storage/0462/doc_00188902 to /storage/kkm_last_doc_name [21:41:35]save OK [21:41:35]Clear old archive folders... [21:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:35]tlvbuf is 004B6A40 [21:41:35]SAM_PROTO_ClearQueue [21:41:35]wFMCommunicate request_size=4 [21:41:35]MH_SAM_APDU [21:41:35]CAPDU: 80 09 00 00 [21:41:35]Write to MH i2c: E2 08 00 79 0B 80 09 00 00 00 00 00 00 F6 [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:35]Read from MH i2c: E2 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 03 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 03 00 79 0B 00 90 00 F8 [21:41:35]RAPDU: 90 00 [21:41:35]wFMCommunicate OK [21:41:35]SAM_PROTO_ClearQueue done [21:41:35]KKMCreateOFDPacket [21:41:35]OFDProtocolAddRootSTLVToBuf [21:41:35]FM_MakeSignedData [21:41:35]FM_MakeSignedData [21:41:35]SAM_PROTO_SignData [21:41:35]wFMCommunicate request_size=4 [21:41:35]MH_SAM_APDU [21:41:35]CAPDU: 80 0D 01 02 [21:41:35]Write to MH i2c: E2 08 00 7A 0B 80 0D 01 02 00 00 00 00 FE [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:35]Read from MH i2c: E2 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 03 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [21:41:35]RAPDU: 90 00 [21:41:35]wFMCommunicate OK [21:41:35]wFMCommunicate request_size=255 [21:41:35]MH_SAM_APDU [21:41:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 8F 6D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E1 02 00 35 04 06 00 2B [21:41:35]Write to MH i2c: E2 02 01 7B 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 8F 6D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E1 02 00 35 04 06 00 2B 00 00 19 [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:35]Read from MH i2c: E2 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 03 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [21:41:35]RAPDU: 90 00 [21:41:35]wFMCommunicate OK [21:41:35]wFMCommunicate request_size=10 [21:41:35]MH_SAM_APDU [21:41:35]CAPDU: 80 0D 02 02 05 BD 0C 10 20 D2 [21:41:35]Write to MH i2c: E2 0D 00 7C 0B 80 0D 02 02 05 00 BD 0C 10 20 D2 00 00 D6 [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:35]Read from MH i2c: E2 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 03 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [21:41:35]RAPDU: 90 00 [21:41:35]wFMCommunicate OK [21:41:35]wFMCommunicate request_size=4 [21:41:35]MH_SAM_APDU [21:41:35]CAPDU: 80 0D 03 02 [21:41:35]Write to MH i2c: E2 08 00 7D 0B 80 0D 03 02 00 00 00 00 03 [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:35]Read from MH i2c: E2 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 0B 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 0B 00 7D 0B 00 F9 1F 3C C4 2D 22 C2 D5 90 00 02 [21:41:35]RAPDU: F9 1F 3C C4 2D 22 C2 D5 90 00 [21:41:35]wFMCommunicate OK [21:41:35]SAM_PROTO_SignData done [21:41:35]FM_MakeSignedData done [21:41:35]CreateOFDProtocolMessage [21:41:35]wFMCommunicate request_size=4 [21:41:35]MH_SAM_APDU [21:41:35]CAPDU: 80 11 00 00 [21:41:35]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:35]Read from MH i2c: E2 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 17 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [21:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:41:35]wFMCommunicate OK [21:41:35]CreateOFDProtocolMessage done [21:41:35]OFDSenderStorePacket 188902 [21:41:35]StoreOFDPacket docnum=188902 [21:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9D FA 07 01 09 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 8F 6D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E1 02 00 35 04 06 00 2B BD 0C 10 20 D2 F9 1F 3C C4 2D 22 C2 D5 [21:41:35]CheckFolder [21:41:35]dirname=/storage/ofd_packets [21:41:35]CheckFolder done [21:41:35]ProducePacketName [21:41:35]name=ofd_packets/00188902 [21:41:35]NVStorageSaveData ofd_packets/00188902 [21:41:35]File name is /storage/ofd_packets/00188902 [21:41:35]Write 301 bytes [21:41:35]NVStorageSaveData done [21:41:35]OFDSenderStorePacket done [21:41:35]KKMCreateOFDPacket done [21:41:35]NVStorageSaveData kkm_last_timestamp [21:41:35]File name is /storage/kkm_last_timestamp [21:41:35]Write 4 bytes [21:41:35]NVStorageSaveData done [21:41:35]ExternCall_PrintAddStr [21:41:35]wPrintStart [21:41:35]Write to MH i2c: 01 00 00 7F 0B 8A [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: 01 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: 01 07 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: 01 07 00 7F 0B 00 00 00 00 00 FF 0F 9F [21:41:35]RasterBufferAndPrint [21:41:35]line Счет N : (1)210965 [21:41:35]line ИНН: 02508201610067 [21:41:35]line Контрольно-Кассовый Чек [21:41:35]line ПРОДАЖА [21:41:35]line ТРК (МРК, ГНК) : 12 [21:41:35]line Товар: 2710124130 [21:41:35]line Аи-92-К-3 [21:41:35]line 7.480 * 66.90 [21:41:35]line = 500.41 [21:41:35]line НДС 12% НСП 1% [21:41:35]line > о реализуемом товаре [21:41:35]line ОКРУГЛЕНИЕ: -0.41 [21:41:35]line ИТОГО: 500.00 [21:41:35]line Внесено: 500.00 [21:41:35]line СДАЧА: 0.00 [21:41:35]line НСП 1% : 4.43 [21:41:35]line НДС 12% : 53.14 [21:41:35]line Наличными: 500.00 [21:41:35]line Безнал.: 0.00 [21:41:35]line Место: АЗС № 86 "Партнер Нефть" [21:41:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:41:35]line СНО: Общий режим [21:41:35]line Чек 360 23.10.2024 21:41 [21:41:35]line Смена: 462 ФФД: 1.0 [21:41:35]line ЗНМ: 0300000155 [21:41:35]line РНМ: 0000000000100030 [21:41:35]line Версия ККМ: 001 [21:41:35]line ФМ: 0000000000965340 [21:41:35]line ФД: 188902 [21:41:35]line ФПД: 48090951196882 [21:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T214135&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188902&fm=48090951196882&tin=02508201610067®Number=0000000000100030&sum=50000 [21:41:35]written 0, free lines is 4095 [21:41:35]OFD Sender: Processing packet 188902 [packets to send 1062, broken 1061] [21:41:35]ProducePacketName [21:41:35]name=ofd_packets/00188902 [21:41:35]OFD Sender: To server: pG, [21:41:35]CommunicateWithHost lk.salyk.kg:30040 [21:41:35]ConnectInit lk.salyk.kg [21:41:36]Connected sock=10 [21:41:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9D FA 07 01 09 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 8F 6D 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E1 02 00 35 04 06 00 2B BD 0C 10 20 D2 F9 1F 3C C4 2D 22 C2 D5 [21:41:36]Write to MH i2c: 01 00 00 AA 0B B5 [21:41:36]Write i2c OK [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: 01 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: 01 07 00 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: 01 07 00 AA 0B 00 00 00 00 00 53 0C 1B [21:41:36]RasterBufferAndPrint [21:41:36]line [21:41:36]line [21:41:36]line [21:41:36]line [21:41:36]line [21:41:36]written 0, free lines is 3159 [21:41:36]MH_Cut [21:41:36]Write to MH i2c: D1 01 00 B1 0B 01 8E [21:41:36]Write i2c OK [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: D1 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: D1 01 00 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: D1 01 00 B1 0B 00 8D [21:41:36]Write to MH i2c: 01 00 00 B2 0B BD [21:41:36]Write i2c OK [21:41:36]MH_I2C_Read... [21:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A1 8B 47 00 2B 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 36 35 33 34 30 10 04 04 00 E6 E1 02 00 F4 03 04 00 78 17 19 67 B6 04 01 00 00 01 15 51 4C DB 4B 47 18 [21:41:36]CommunicateWithHost err = 0 [21:41:36]CheckOFDResponse [21:41:36]1017 (14) - 77093643461234 [21:41:36]1041 (16) - 0000000000965340 [21:41:36]1040 (4) - 188902 [21:41:36]1012 (4) - 23.10.2024 15:34 [21:41:36]1206 (1) - 0 [21:41:36]OFD Sender: Remove packet 188902 [21:41:36]ProducePacketName [21:41:36]name=ofd_packets/00188902 [21:41:36]NVStorageDeleteData [21:41:37]OFD Sender: No OFD packet to send [21:41:37]*** Cut start [21:41:37]*** Partial cut [21:41:37]*** CUTSNS_PIN = 1 [21:41:37]*** CUTSNS_PIN = 0 [21:41:37]*** Brake cut motor [21:41:38]Read from MH i2c: 01 [21:41:38]MH_I2C_Read... [21:41:38]*** Stop cut motor [21:41:38]*** Cut end [21:41:38]Read from MH i2c: 01 07 00 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: 01 07 00 B2 0B 00 00 00 00 00 FF 0F D2 [21:41:38]process_action close_receipt done [21:41:38]requested_data is exist [21:41:38]produce_requested_data [21:41:38]requested_item fm.sn is exist - process it [21:41:38]wFMCommunicate request_size=4 [21:41:38]MH_SAM_APDU [21:41:38]CAPDU: 80 11 00 00 [21:41:38]Write to MH i2c: E2 08 00 B3 0B 80 11 00 00 00 00 00 00 38 [21:41:38]Write i2c OK [21:41:38]MH_I2C_Read... [21:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:38]Read from MH i2c: E2 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: E2 17 00 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: E2 17 00 B3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [21:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:41:38]wFMCommunicate OK [21:41:38]requested_item fd.num is exist - process it [21:41:38]SAM_PROTO_GetFieldsCounters [21:41:38]wFMCommunicate request_size=4 [21:41:38]MH_SAM_APDU [21:41:38]CAPDU: 80 13 00 00 [21:41:38]Write to MH i2c: E2 08 00 B4 0B 80 13 00 00 00 00 00 00 3B [21:41:38]Write i2c OK [21:41:38]MH_I2C_Read... [21:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:38]Read from MH i2c: E2 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: E2 62 00 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: E2 62 00 B4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:41:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:38]wFMCommunicate OK [21:41:38]SAM_PROTO_GetFieldsCounters done [21:41:38]requested_item shift.num is exist - process it [21:41:38]requested_item shift.opened is exist - process it [21:41:38]req_shift_opened [21:41:38]FM_GetShiftState [21:41:38]SAM_PROTO_GetShiftState [21:41:38]wFMCommunicate request_size=4 [21:41:38]MH_SAM_APDU [21:41:38]CAPDU: 80 13 01 00 [21:41:38]Write to MH i2c: E2 08 00 B5 0B 80 13 01 00 00 00 00 00 3D [21:41:38]Write i2c OK [21:41:38]MH_I2C_Read... [21:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:38]Read from MH i2c: E2 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: E2 0E 00 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: E2 0E 00 B5 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 25 [21:41:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:41:38]wFMCommunicate OK [21:41:38]SAM_PROTO_GetShiftState done [21:41:38]FM_GetShiftState done [21:41:38]req_shift_opened done [21:41:38]requested_item shift.open_date is exist - process it [21:41:38]req_shift_open_date [21:41:38]req_shift_open_date done [21:41:38]produce_requested_data done [21:41:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188902,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:41:38]process_action_free close_receipt [21:41:38]json_value_free [21:41:38]json_value_free done [21:41:38]process_json_proto returns [21:41:38]Send response to host [21:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188902,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:41:38]free response buf [21:41:38]execute_script done [21:41:38]execute_script returns [21:41:38]free content buf [21:41:38]Sock 9.Close socket [21:41:38]Sock 9.Thread stoped [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]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:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:26]accept exits with 8 [21:50:26]New connection [21:50:26]New thread 3066953060 created [21:50:26]Thread 3066809700 joined [21:50:26]Waiting for new connection... [21:50:26] Sock 8.Parse request [21:50:26]Sock 8.Check first char [21:50:26]Sock 8.First char is OK [21:50:26]request: POST /json_proto HTTP/1.0 [21:50:26]Method: POST [21:50:26]URL: /json_proto [21:50:26]Method is POST - this is cgi request [21:50:26]url: /json_proto [21:50:26]query_string will be loaded in cgi processing [21:50:26]execute_cgi json_proto POST (null) [21:50:26]execute_cgi path=json_proto method=POST [21:50:26]POST find Content-Length [21:50:26]Host: 172.17.42.131:8080 [21:50:26]Content-Length: 682 [21:50:26]Content-Type: application/json [21:50:26] [21:50:26]POST finish read [21:50:26]Found Content-Length = 682 [21:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:26]execute_script... [21:50:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:26]POST & json_proto [21:50:26]process_json_proto [21:50:26]json parsed OK: [21:50:26]protocol is kg_v1.0 [21:50:26]action value=close_receipt [21:50:26]process_action close_receipt [21:50:26]cmd_close_receipt [21:50:26]MH_GetDate [21:50:26]Write to MH i2c: F0 00 00 B6 0B B0 [21:50:26]Write i2c OK [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: F0 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: F0 09 00 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: F0 09 00 B6 0B 00 A3 6F 19 67 A0 18 CA 66 33 [21:50:26]GetLastDocTimeStamp 1729719695 [21:50:26]current date 1729720227 [21:50:26]FM_GetShiftState [21:50:26]SAM_PROTO_GetShiftState [21:50:26]wFMCommunicate request_size=4 [21:50:26]MH_SAM_APDU [21:50:26]CAPDU: 80 13 01 00 [21:50:26]Write to MH i2c: E2 08 00 B7 0B 80 13 01 00 00 00 00 00 3F [21:50:26]Write i2c OK [21:50:26]MH_I2C_Read... [21:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:26]Read from MH i2c: E2 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: E2 0E 00 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: E2 0E 00 B7 0B 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 27 [21:50:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:50:26]wFMCommunicate OK [21:50:26]SAM_PROTO_GetShiftState done [21:50:26]FM_GetShiftState done [21:50:26]opened in 1729642525 [21:50:26]opened+sec_in_day 1729728925 [21:50:26]quantity*price = 100015 [21:50:26]sum+1 = 100017 [21:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 361 23.10.2024 21:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188903 ФПД: 132660174578835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215027&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188903&fm=132660174578835&tin=02508201610067®Number=0000000000100030&sum=100000 [21:50:27]StoreToDocumentArchive [21:50:27]shift 462 fd 188903 [21:50:27]save to /storage/0462/doc_00188903 [21:50:27]save last doc name /storage/0462/doc_00188903 to /storage/kkm_last_doc_name [21:50:27]save OK [21:50:27]Clear old archive folders... [21:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:27]tlvbuf is 00521440 [21:50:27]SAM_PROTO_ClearQueue [21:50:27]wFMCommunicate request_size=4 [21:50:27]MH_SAM_APDU [21:50:27]CAPDU: 80 09 00 00 [21:50:27]Write to MH i2c: E2 08 00 C4 0B 80 09 00 00 00 00 00 00 41 [21:50:27]Write i2c OK [21:50:27]MH_I2C_Read... [21:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:27]Read from MH i2c: E2 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: E2 03 00 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [21:50:27]RAPDU: 90 00 [21:50:27]wFMCommunicate OK [21:50:27]SAM_PROTO_ClearQueue done [21:50:27]KKMCreateOFDPacket [21:50:27]OFDProtocolAddRootSTLVToBuf [21:50:27]FM_MakeSignedData [21:50:27]FM_MakeSignedData [21:50:27]SAM_PROTO_SignData [21:50:27]wFMCommunicate request_size=4 [21:50:27]MH_SAM_APDU [21:50:27]CAPDU: 80 0D 01 02 [21:50:27]Write to MH i2c: E2 08 00 C5 0B 80 0D 01 02 00 00 00 00 49 [21:50:27]Write i2c OK [21:50:27]MH_I2C_Read... [21:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:27]Read from MH i2c: E2 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: E2 03 00 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [21:50:27]RAPDU: 90 00 [21:50:27]wFMCommunicate OK [21:50:27]wFMCommunicate request_size=255 [21:50:27]MH_SAM_APDU [21:50:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 A3 6F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E1 02 00 35 04 06 00 78 [21:50:27]Write to MH i2c: E2 02 01 C6 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 A3 6F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E1 02 00 35 04 06 00 78 00 00 C3 [21:50:27]Write i2c OK [21:50:27]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [21:50:28]RAPDU: 90 00 [21:50:28]wFMCommunicate OK [21:50:28]wFMCommunicate request_size=10 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 0D 02 02 05 A7 5A 94 E4 93 [21:50:28]Write to MH i2c: E2 0D 00 C7 0B 80 0D 02 02 05 00 A7 5A 94 E4 93 00 00 62 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [21:50:28]RAPDU: 90 00 [21:50:28]wFMCommunicate OK [21:50:28]wFMCommunicate request_size=4 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 0D 03 02 [21:50:28]Write to MH i2c: E2 08 00 C8 0B 80 0D 03 02 00 00 00 00 4E [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 0B 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 0B 00 C8 0B 00 26 ED E6 12 B2 A9 4E 46 90 00 49 [21:50:28]RAPDU: 26 ED E6 12 B2 A9 4E 46 90 00 [21:50:28]wFMCommunicate OK [21:50:28]SAM_PROTO_SignData done [21:50:28]FM_MakeSignedData done [21:50:28]CreateOFDProtocolMessage [21:50:28]wFMCommunicate request_size=4 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 11 00 00 [21:50:28]Write to MH i2c: E2 08 00 C9 0B 80 11 00 00 00 00 00 00 4E [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 17 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 17 00 C9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [21:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:50:28]wFMCommunicate OK [21:50:28]CreateOFDProtocolMessage done [21:50:28]OFDSenderStorePacket 188903 [21:50:28]StoreOFDPacket docnum=188903 [21:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 7A 07 01 83 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 A3 6F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E1 02 00 35 04 06 00 78 A7 5A 94 E4 93 26 ED E6 12 B2 A9 4E 46 [21:50:28]CheckFolder [21:50:28]dirname=/storage/ofd_packets [21:50:28]CheckFolder done [21:50:28]ProducePacketName [21:50:28]name=ofd_packets/00188903 [21:50:28]NVStorageSaveData ofd_packets/00188903 [21:50:28]File name is /storage/ofd_packets/00188903 [21:50:28]Write 301 bytes [21:50:28]NVStorageSaveData done [21:50:28]OFDSenderStorePacket done [21:50:28]KKMCreateOFDPacket done [21:50:28]NVStorageSaveData kkm_last_timestamp [21:50:28]File name is /storage/kkm_last_timestamp [21:50:28]Write 4 bytes [21:50:28]NVStorageSaveData done [21:50:28]ExternCall_PrintAddStr [21:50:28]wPrintStart [21:50:28]Write to MH i2c: 01 00 00 CA 0B D5 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 07 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 FF 0F EA [21:50:28]RasterBufferAndPrint [21:50:28]line Счет N : (1)210966 [21:50:28]line ИНН: 02508201610067 [21:50:28]line Контрольно-Кассовый Чек [21:50:28]line ПРОДАЖА [21:50:28]line ТРК (МРК, ГНК) : 12 [21:50:28]line Товар: 2710124130 [21:50:28]line Аи-92-К-3 [21:50:28]line 14.950 * 66.90 [21:50:28]line = 1000.16 [21:50:28]line НДС 12% НСП 1% [21:50:28]line > о реализуемом товаре [21:50:28]line ОКРУГЛЕНИЕ: -0.16 [21:50:28]line ИТОГО: 1000.00 [21:50:28]line Внесено: 1000.00 [21:50:28]line СДАЧА: 0.00 [21:50:28]line НСП 1% : 8.85 [21:50:28]line НДС 12% : 106.21 [21:50:28]line Наличными: 1000.00 [21:50:28]line Безнал.: 0.00 [21:50:28]line Место: АЗС № 86 "Партнер Нефть" [21:50:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:50:28]line СНО: Общий режим [21:50:28]line Чек 361 23.10.2024 21:50 [21:50:28]line Смена: 462 ФФД: 1.0 [21:50:28]line ЗНМ: 0300000155 [21:50:28]line РНМ: 0000000000100030 [21:50:28]line Версия ККМ: 001 [21:50:28]line ФМ: 0000000000965340 [21:50:28]line ФД: 188903 [21:50:28]line ФПД: 132660174578835 [21:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215027&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188903&fm=132660174578835&tin=02508201610067®Number=0000000000100030&sum=100000 [21:50:28]written 0, free lines is 4095 [21:50:28]OFD Sender: Processing packet 188903 [packets to send 1062, broken 1061] [21:50:28]ProducePacketName [21:50:28]name=ofd_packets/00188903 [21:50:28]OFD Sender: To server: pG, [21:50:28]CommunicateWithHost lk.salyk.kg:30040 [21:50:28]ConnectInit lk.salyk.kg [21:50:28]Connected sock=10 [21:50:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 7A 07 01 83 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 A3 6F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E1 02 00 35 04 06 00 78 A7 5A 94 E4 93 26 ED E6 12 B2 A9 4E 46 [21:50:28]Write to MH i2c: 01 00 00 F5 0B 00 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 07 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 51 0C 64 [21:50:28]RasterBufferAndPrint [21:50:28]line [21:50:28]line [21:50:28]line [21:50:28]line [21:50:28]line [21:50:28]written 0, free lines is 3157 [21:50:28]MH_Cut [21:50:28]Write to MH i2c: D1 01 00 FC 0B 01 D9 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: D1 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: D1 01 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: D1 01 00 FC 0B 00 D8 [21:50:28]Write to MH i2c: 01 00 00 FD 0B 08 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 85 E7 47 00 CE 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 36 35 33 34 30 10 04 04 00 E7 E1 02 00 F4 03 04 00 8D 19 19 67 B6 04 01 00 00 FF D4 12 EB B1 0D 48 FE [21:50:29]CommunicateWithHost err = 0 [21:50:29]CheckOFDResponse [21:50:29]1017 (14) - 77093643461234 [21:50:29]1041 (16) - 0000000000965340 [21:50:29]1040 (4) - 188903 [21:50:29]1012 (4) - 23.10.2024 15:43 [21:50:29]1206 (1) - 0 [21:50:29]OFD Sender: Remove packet 188903 [21:50:29]ProducePacketName [21:50:29]name=ofd_packets/00188903 [21:50:29]NVStorageDeleteData [21:50:29]OFD Sender: No OFD packet to send [21:50:30]*** Cut start [21:50:30]*** Partial cut [21:50:30]*** CUTSNS_PIN = 1 [21:50:30]*** CUTSNS_PIN = 0 [21:50:30]*** Brake cut motor [21:50:30]Read from MH i2c: 01 [21:50:30]MH_I2C_Read... [21:50:30]*** Stop cut motor [21:50:30]*** Cut end [21:50:30]Read from MH i2c: 01 07 00 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: 01 07 00 FD 0B 00 00 00 00 00 FF 0F 1D [21:50:30]process_action close_receipt done [21:50:30]requested_data is exist [21:50:30]produce_requested_data [21:50:30]requested_item fm.sn is exist - process it [21:50:30]wFMCommunicate request_size=4 [21:50:30]MH_SAM_APDU [21:50:30]CAPDU: 80 11 00 00 [21:50:30]Write to MH i2c: E2 08 00 FE 0B 80 11 00 00 00 00 00 00 83 [21:50:30]Write i2c OK [21:50:30]MH_I2C_Read... [21:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:30]Read from MH i2c: E2 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 17 00 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 17 00 FE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [21:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:50:30]wFMCommunicate OK [21:50:30]requested_item fd.num is exist - process it [21:50:30]SAM_PROTO_GetFieldsCounters [21:50:30]wFMCommunicate request_size=4 [21:50:30]MH_SAM_APDU [21:50:30]CAPDU: 80 13 00 00 [21:50:30]Write to MH i2c: E2 08 00 FF 0B 80 13 00 00 00 00 00 00 86 [21:50:30]Write i2c OK [21:50:30]MH_I2C_Read... [21:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:30]Read from MH i2c: E2 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 62 00 [21:50:30]MH_I2C_Read... [21:50:30]Read from MH i2c: E2 62 00 FF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [21:50:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:30]wFMCommunicate OK [21:50:30]SAM_PROTO_GetFieldsCounters done [21:50:30]requested_item shift.num is exist - process it [21:50:30]requested_item shift.opened is exist - process it [21:50:30]req_shift_opened [21:50:30]FM_GetShiftState [21:50:30]SAM_PROTO_GetShiftState [21:50:30]wFMCommunicate request_size=4 [21:50:30]MH_SAM_APDU [21:50:30]CAPDU: 80 13 01 00 [21:50:30]Write to MH i2c: E2 08 00 00 0C 80 13 01 00 00 00 00 00 89 [21:50:30]Write i2c OK [21:50:30]MH_I2C_Read... [21:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:31]Read from MH i2c: E2 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: E2 0E 00 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: E2 0E 00 00 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 71 [21:50:31]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:50:31]wFMCommunicate OK [21:50:31]SAM_PROTO_GetShiftState done [21:50:31]FM_GetShiftState done [21:50:31]req_shift_opened done [21:50:31]requested_item shift.open_date is exist - process it [21:50:31]req_shift_open_date [21:50:31]req_shift_open_date done [21:50:31]produce_requested_data done [21:50:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188903,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:50:31]process_action_free close_receipt [21:50:31]json_value_free [21:50:31]json_value_free done [21:50:31]process_json_proto returns [21:50:31]Send response to host [21:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188903,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:50:31]free response buf [21:50:31]execute_script done [21:50:31]execute_script returns [21:50:31]free content buf [21:50:31]Sock 8.Close socket [21:50:31]Sock 8.Thread stoped [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:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:38]accept exits with 9 [21:56:38]New connection [21:56:38]New thread 3066809700 created [21:56:38]Thread 3066953060 joined [21:56:38]Waiting for new connection... [21:56:38] Sock 9.Parse request [21:56:38]Sock 9.Check first char [21:56:38]Sock 9.First char is OK [21:56:38]request: POST /json_proto HTTP/1.0 [21:56:38]Method: POST [21:56:38]URL: /json_proto [21:56:38]Method is POST - this is cgi request [21:56:38]url: /json_proto [21:56:38]query_string will be loaded in cgi processing [21:56:38]execute_cgi json_proto POST (null) [21:56:38]execute_cgi path=json_proto method=POST [21:56:38]POST find Content-Length [21:56:38]Host: 172.17.42.131:8080 [21:56:38]Content-Length: 677 [21:56:38]Content-Type: application/json [21:56:38] [21:56:38]POST finish read [21:56:38]Found Content-Length = 677 [21:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:38]execute_script... [21:56:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:38]POST & json_proto [21:56:38]process_json_proto [21:56:38]json parsed OK: [21:56:38]protocol is kg_v1.0 [21:56:38]action value=close_receipt [21:56:38]process_action close_receipt [21:56:38]cmd_close_receipt [21:56:38]MH_GetDate [21:56:38]Write to MH i2c: F0 00 00 01 0C FC [21:56:38]Write i2c OK [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: F0 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: F0 09 00 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: F0 09 00 01 0C 00 17 71 19 67 A0 18 CA 66 F5 [21:56:38]GetLastDocTimeStamp 1729720227 [21:56:38]current date 1729720599 [21:56:38]FM_GetShiftState [21:56:38]SAM_PROTO_GetShiftState [21:56:38]wFMCommunicate request_size=4 [21:56:38]MH_SAM_APDU [21:56:38]CAPDU: 80 13 01 00 [21:56:38]Write to MH i2c: E2 08 00 02 0C 80 13 01 00 00 00 00 00 8B [21:56:38]Write i2c OK [21:56:38]MH_I2C_Read... [21:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:38]Read from MH i2c: E2 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: E2 0E 00 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: E2 0E 00 02 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 73 [21:56:38]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:56:38]wFMCommunicate OK [21:56:38]SAM_PROTO_GetShiftState done [21:56:38]FM_GetShiftState done [21:56:38]opened in 1729642525 [21:56:38]opened+sec_in_day 1729728925 [21:56:38]quantity*price = 30038 [21:56:38]sum+1 = 30039 [21:56:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 362 23.10.2024 21:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188904 ФПД: 186230829040527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215639&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188904&fm=186230829040527&tin=02508201610067®Number=0000000000100030&sum=30000 [21:56:39]StoreToDocumentArchive [21:56:39]shift 462 fd 188904 [21:56:39]save to /storage/0462/doc_00188904 [21:56:39]save last doc name /storage/0462/doc_00188904 to /storage/kkm_last_doc_name [21:56:39]save OK [21:56:39]Clear old archive folders... [21:56:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:56:39]tlvbuf is 004F1FF0 [21:56:39]SAM_PROTO_ClearQueue [21:56:39]wFMCommunicate request_size=4 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 09 00 00 [21:56:39]Write to MH i2c: E2 08 00 0F 0C 80 09 00 00 00 00 00 00 8D [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 03 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [21:56:39]RAPDU: 90 00 [21:56:39]wFMCommunicate OK [21:56:39]SAM_PROTO_ClearQueue done [21:56:39]KKMCreateOFDPacket [21:56:39]OFDProtocolAddRootSTLVToBuf [21:56:39]FM_MakeSignedData [21:56:39]FM_MakeSignedData [21:56:39]SAM_PROTO_SignData [21:56:39]wFMCommunicate request_size=4 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 0D 01 02 [21:56:39]Write to MH i2c: E2 08 00 10 0C 80 0D 01 02 00 00 00 00 95 [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 03 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [21:56:39]RAPDU: 90 00 [21:56:39]wFMCommunicate OK [21:56:39]wFMCommunicate request_size=255 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 17 71 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E1 02 00 35 04 06 00 A9 [21:56:39]Write to MH i2c: E2 02 01 11 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 17 71 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E1 02 00 35 04 06 00 A9 00 00 B2 [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 03 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [21:56:39]RAPDU: 90 00 [21:56:39]wFMCommunicate OK [21:56:39]wFMCommunicate request_size=10 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 0D 02 02 05 60 3E 69 43 8F [21:56:39]Write to MH i2c: E2 0D 00 12 0C 80 0D 02 02 05 00 60 3E 69 43 8F 00 00 7B [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 03 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [21:56:39]RAPDU: 90 00 [21:56:39]wFMCommunicate OK [21:56:39]wFMCommunicate request_size=4 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 0D 03 02 [21:56:39]Write to MH i2c: E2 08 00 13 0C 80 0D 03 02 00 00 00 00 9A [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 0B 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 0B 00 13 0C 00 C6 3D 1D 1E 5D 67 3A 2E 90 00 05 [21:56:39]RAPDU: C6 3D 1D 1E 5D 67 3A 2E 90 00 [21:56:39]wFMCommunicate OK [21:56:39]SAM_PROTO_SignData done [21:56:39]FM_MakeSignedData done [21:56:39]CreateOFDProtocolMessage [21:56:39]wFMCommunicate request_size=4 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 11 00 00 [21:56:39]Write to MH i2c: E2 08 00 14 0C 80 11 00 00 00 00 00 00 9A [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 17 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 17 00 14 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [21:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:56:39]wFMCommunicate OK [21:56:39]CreateOFDProtocolMessage done [21:56:39]OFDSenderStorePacket 188904 [21:56:39]StoreOFDPacket docnum=188904 [21:56:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 05 07 01 0F 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 17 71 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E1 02 00 35 04 06 00 A9 60 3E 69 43 8F C6 3D 1D 1E 5D 67 3A 2E [21:56:39]CheckFolder [21:56:39]dirname=/storage/ofd_packets [21:56:39]CheckFolder done [21:56:39]ProducePacketName [21:56:39]name=ofd_packets/00188904 [21:56:39]NVStorageSaveData ofd_packets/00188904 [21:56:39]File name is /storage/ofd_packets/00188904 [21:56:39]Write 301 bytes [21:56:39]NVStorageSaveData done [21:56:39]OFDSenderStorePacket done [21:56:39]KKMCreateOFDPacket done [21:56:39]NVStorageSaveData kkm_last_timestamp [21:56:39]File name is /storage/kkm_last_timestamp [21:56:39]Write 4 bytes [21:56:39]NVStorageSaveData done [21:56:39]ExternCall_PrintAddStr [21:56:39]wPrintStart [21:56:39]Write to MH i2c: 01 00 00 15 0C 21 [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: 01 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: 01 07 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 FF 0F 36 [21:56:39]RasterBufferAndPrint [21:56:39]line Счет N : (1)210967 [21:56:39]line ИНН: 02508201610067 [21:56:39]line Контрольно-Кассовый Чек [21:56:39]line ПРОДАЖА [21:56:39]line ТРК (МРК, ГНК) : 32 [21:56:39]line Товар: 2710124130 [21:56:39]line Аи-92-К-3 [21:56:39]line 4.490 * 66.90 [21:56:39]line = 300.38 [21:56:39]line НДС 12% НСП 1% [21:56:39]line > о реализуемом товаре [21:56:39]line ОКРУГЛЕНИЕ: -0.38 [21:56:39]line ИТОГО: 300.00 [21:56:39]line Внесено: 300.00 [21:56:39]line СДАЧА: 0.00 [21:56:39]line НСП 1% : 2.66 [21:56:39]line НДС 12% : 31.90 [21:56:39]line Наличными: 300.00 [21:56:39]line Безнал.: 0.00 [21:56:39]line Место: АЗС № 86 "Партнер Нефть" [21:56:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:56:39]line СНО: Общий режим [21:56:39]line Чек 362 23.10.2024 21:56 [21:56:39]line Смена: 462 ФФД: 1.0 [21:56:39]line ЗНМ: 0300000155 [21:56:39]line РНМ: 0000000000100030 [21:56:39]line Версия ККМ: 001 [21:56:39]line ФМ: 0000000000965340 [21:56:39]line ФД: 188904 [21:56:39]line ФПД: 186230829040527 [21:56:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215639&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188904&fm=186230829040527&tin=02508201610067®Number=0000000000100030&sum=30000 [21:56:39]OFD Sender: Processing packet 188904 [packets to send 1062, broken 1061] [21:56:39]ProducePacketName [21:56:39]name=ofd_packets/00188904 [21:56:39]OFD Sender: To server: pG, [21:56:39]CommunicateWithHost lk.salyk.kg:30040 [21:56:39]ConnectInit lk.salyk.kg [21:56:39]written 0, free lines is 4095 [21:56:40]Connected sock=11 [21:56:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 05 07 01 0F 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 17 71 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E1 02 00 35 04 06 00 A9 60 3E 69 43 8F C6 3D 1D 1E 5D 67 3A 2E [21:56:40]Write to MH i2c: 01 00 00 40 0C 4C [21:56:40]Write i2c OK [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: 01 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: 01 07 00 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 58 0C B7 [21:56:40]RasterBufferAndPrint [21:56:40]line [21:56:40]line [21:56:40]line [21:56:40]line [21:56:40]line [21:56:40]written 0, free lines is 3162 [21:56:40]MH_Cut [21:56:40]Write to MH i2c: D1 01 00 47 0C 01 25 [21:56:40]Write i2c OK [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: D1 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: D1 01 00 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: D1 01 00 47 0C 00 24 [21:56:40]Write to MH i2c: 01 00 00 48 0C 54 [21:56:40]Write i2c OK [21:56:40]MH_I2C_Read... [21:56:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 66 1A 47 00 49 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 36 35 33 34 30 10 04 04 00 E8 E1 02 00 F4 03 04 00 00 1B 19 67 B6 04 01 00 00 AA F7 2B 86 9C 3F EB 40 [21:56:40]CommunicateWithHost err = 0 [21:56:40]CheckOFDResponse [21:56:40]1017 (14) - 77093643461234 [21:56:40]1041 (16) - 0000000000965340 [21:56:40]1040 (4) - 188904 [21:56:40]1012 (4) - 23.10.2024 15:49 [21:56:40]1206 (1) - 0 [21:56:40]OFD Sender: Remove packet 188904 [21:56:40]ProducePacketName [21:56:40]name=ofd_packets/00188904 [21:56:40]NVStorageDeleteData [21:56:41]OFD Sender: No OFD packet to send [21:56:41]*** Cut start [21:56:41]*** Partial cut [21:56:41]*** CUTSNS_PIN = 1 [21:56:41]*** CUTSNS_PIN = 0 [21:56:41]*** Brake cut motor [21:56:42]Read from MH i2c: 01 [21:56:42]MH_I2C_Read... [21:56:42]*** Stop cut motor [21:56:42]*** Cut end [21:56:42]Read from MH i2c: 01 07 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 FF 0F 69 [21:56:42]process_action close_receipt done [21:56:42]requested_data is exist [21:56:42]produce_requested_data [21:56:42]requested_item fm.sn is exist - process it [21:56:42]wFMCommunicate request_size=4 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 11 00 00 [21:56:42]Write to MH i2c: E2 08 00 49 0C 80 11 00 00 00 00 00 00 CF [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:42]Read from MH i2c: E2 17 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 17 00 49 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [21:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:56:42]wFMCommunicate OK [21:56:42]requested_item fd.num is exist - process it [21:56:42]SAM_PROTO_GetFieldsCounters [21:56:42]wFMCommunicate request_size=4 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 13 00 00 [21:56:42]Write to MH i2c: E2 08 00 4A 0C 80 13 00 00 00 00 00 00 D2 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 62 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 62 00 4A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [21:56:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:42]wFMCommunicate OK [21:56:42]SAM_PROTO_GetFieldsCounters done [21:56:42]requested_item shift.num is exist - process it [21:56:42]requested_item shift.opened is exist - process it [21:56:42]req_shift_opened [21:56:42]FM_GetShiftState [21:56:42]SAM_PROTO_GetShiftState [21:56:42]wFMCommunicate request_size=4 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 13 01 00 [21:56:42]Write to MH i2c: E2 08 00 4B 0C 80 13 01 00 00 00 00 00 D4 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 0E 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 0E 00 4B 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BC [21:56:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [21:56:42]wFMCommunicate OK [21:56:42]SAM_PROTO_GetShiftState done [21:56:42]FM_GetShiftState done [21:56:42]req_shift_opened done [21:56:42]requested_item shift.open_date is exist - process it [21:56:42]req_shift_open_date [21:56:42]req_shift_open_date done [21:56:42]produce_requested_data done [21:56:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188904,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [21:56:42]process_action_free close_receipt [21:56:42]json_value_free [21:56:42]json_value_free done [21:56:42]process_json_proto returns [21:56:42]Send response to host [21:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188904,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [21:56:42]free response buf [21:56:42]execute_script done [21:56:42]execute_script returns [21:56:42]free content buf [21:56:42]Sock 9.Close socket [21:56:42]Sock 9.Thread stoped [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:17]accept exits with 8 [22:11:17]New connection [22:11:17]New thread 3066953060 created [22:11:17]Thread 3066809700 joined [22:11:17]Waiting for new connection... [22:11:17] Sock 8.Parse request [22:11:17]Sock 8.Check first char [22:11:17]Sock 8.First char is OK [22:11:17]request: POST /json_proto HTTP/1.0 [22:11:17]Method: POST [22:11:17]URL: /json_proto [22:11:17]Method is POST - this is cgi request [22:11:17]url: /json_proto [22:11:17]query_string will be loaded in cgi processing [22:11:17]execute_cgi json_proto POST (null) [22:11:17]execute_cgi path=json_proto method=POST [22:11:17]POST find Content-Length [22:11:17]Host: 172.17.42.131:8080 [22:11:17]Content-Length: 677 [22:11:17]Content-Type: application/json [22:11:17] [22:11:17]POST finish read [22:11:17]Found Content-Length = 677 [22:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:17]execute_script... [22:11:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:17]POST & json_proto [22:11:17]process_json_proto [22:11:17]json parsed OK: [22:11:17]protocol is kg_v1.0 [22:11:17]action value=close_receipt [22:11:17]process_action close_receipt [22:11:17]cmd_close_receipt [22:11:17]MH_GetDate [22:11:17]Write to MH i2c: F0 00 00 4C 0C 47 [22:11:17]Write i2c OK [22:11:17]MH_I2C_Read... [22:11:17]Read from MH i2c: F0 [22:11:17]MH_I2C_Read... [22:11:17]Read from MH i2c: F0 09 00 [22:11:17]MH_I2C_Read... [22:11:17]Read from MH i2c: F0 09 00 4C 0C 00 86 74 19 67 A0 18 CA 66 B2 [22:11:17]GetLastDocTimeStamp 1729720599 [22:11:17]current date 1729721478 [22:11:17]FM_GetShiftState [22:11:17]SAM_PROTO_GetShiftState [22:11:17]wFMCommunicate request_size=4 [22:11:17]MH_SAM_APDU [22:11:17]CAPDU: 80 13 01 00 [22:11:17]Write to MH i2c: E2 08 00 4D 0C 80 13 01 00 00 00 00 00 D6 [22:11:17]Write i2c OK [22:11:17]MH_I2C_Read... [22:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:17]Read from MH i2c: E2 [22:11:17]MH_I2C_Read... [22:11:17]Read from MH i2c: E2 0E 00 [22:11:17]MH_I2C_Read... [22:11:17]Read from MH i2c: E2 0E 00 4D 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 BE [22:11:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:11:17]wFMCommunicate OK [22:11:17]SAM_PROTO_GetShiftState done [22:11:17]FM_GetShiftState done [22:11:17]opened in 1729642525 [22:11:17]opened+sec_in_day 1729728925 [22:11:17]quantity*price = 50041 [22:11:17]sum+1 = 50042 [22:11:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 363 23.10.2024 22:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188905 ФПД: 253652486635910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221118&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188905&fm=253652486635910&tin=02508201610067®Number=0000000000100030&sum=50000 [22:11:18]StoreToDocumentArchive [22:11:18]shift 462 fd 188905 [22:11:18]save to /storage/0462/doc_00188905 [22:11:18]save last doc name /storage/0462/doc_00188905 to /storage/kkm_last_doc_name [22:11:18]save OK [22:11:18]Clear old archive folders... [22:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:18]tlvbuf is 00518020 [22:11:18]SAM_PROTO_ClearQueue [22:11:18]wFMCommunicate request_size=4 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 09 00 00 [22:11:18]Write to MH i2c: E2 08 00 5A 0C 80 09 00 00 00 00 00 00 D8 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 5A 0C 00 90 00 DA [22:11:18]RAPDU: 90 00 [22:11:18]wFMCommunicate OK [22:11:18]SAM_PROTO_ClearQueue done [22:11:18]KKMCreateOFDPacket [22:11:18]OFDProtocolAddRootSTLVToBuf [22:11:18]FM_MakeSignedData [22:11:18]FM_MakeSignedData [22:11:18]SAM_PROTO_SignData [22:11:18]wFMCommunicate request_size=4 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 0D 01 02 [22:11:18]Write to MH i2c: E2 08 00 5B 0C 80 0D 01 02 00 00 00 00 E0 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [22:11:18]RAPDU: 90 00 [22:11:18]wFMCommunicate OK [22:11:18]wFMCommunicate request_size=255 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 86 74 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E1 02 00 35 04 06 00 E6 [22:11:18]Write to MH i2c: E2 02 01 5C 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 86 74 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E1 02 00 35 04 06 00 E6 00 00 BA [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [22:11:18]RAPDU: 90 00 [22:11:18]wFMCommunicate OK [22:11:18]wFMCommunicate request_size=10 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 0D 02 02 05 B2 12 5C C1 86 [22:11:18]Write to MH i2c: E2 0D 00 5D 0C 80 0D 02 02 05 00 B2 12 5C C1 86 00 00 54 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [22:11:18]RAPDU: 90 00 [22:11:18]wFMCommunicate OK [22:11:18]wFMCommunicate request_size=4 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 0D 03 02 [22:11:18]Write to MH i2c: E2 08 00 5E 0C 80 0D 03 02 00 00 00 00 E5 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 0B 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 0B 00 5E 0C 00 AC 15 76 61 02 66 BB 42 90 00 E3 [22:11:18]RAPDU: AC 15 76 61 02 66 BB 42 90 00 [22:11:18]wFMCommunicate OK [22:11:18]SAM_PROTO_SignData done [22:11:18]FM_MakeSignedData done [22:11:18]CreateOFDProtocolMessage [22:11:18]wFMCommunicate request_size=4 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 11 00 00 [22:11:18]Write to MH i2c: E2 08 00 5F 0C 80 11 00 00 00 00 00 00 E5 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 17 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 17 00 5F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [22:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:11:18]wFMCommunicate OK [22:11:18]CreateOFDProtocolMessage done [22:11:18]OFDSenderStorePacket 188905 [22:11:18]StoreOFDPacket docnum=188905 [22:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 86 07 01 3A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 86 74 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E1 02 00 35 04 06 00 E6 B2 12 5C C1 86 AC 15 76 61 02 66 BB 42 [22:11:18]CheckFolder [22:11:18]dirname=/storage/ofd_packets [22:11:18]CheckFolder done [22:11:18]ProducePacketName [22:11:18]name=ofd_packets/00188905 [22:11:18]NVStorageSaveData ofd_packets/00188905 [22:11:18]File name is /storage/ofd_packets/00188905 [22:11:18]Write 301 bytes [22:11:18]NVStorageSaveData done [22:11:18]OFDSenderStorePacket done [22:11:18]KKMCreateOFDPacket done [22:11:18]NVStorageSaveData kkm_last_timestamp [22:11:18]File name is /storage/kkm_last_timestamp [22:11:18]Write 4 bytes [22:11:18]NVStorageSaveData done [22:11:18]ExternCall_PrintAddStr [22:11:18]wPrintStart [22:11:18]Write to MH i2c: 01 00 00 60 0C 6C [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: 01 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: 01 07 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 FF 0F 81 [22:11:18]RasterBufferAndPrint [22:11:18]line Счет N : (1)210968 [22:11:18]line ИНН: 02508201610067 [22:11:18]line Контрольно-Кассовый Чек [22:11:18]line ПРОДАЖА [22:11:18]line ТРК (МРК, ГНК) : 22 [22:11:18]line Товар: 2710124130 [22:11:18]line Аи-92-К-3 [22:11:18]line 7.480 * 66.90 [22:11:18]line = 500.41 [22:11:18]line НДС 12% НСП 1% [22:11:18]line > о реализуемом товаре [22:11:18]line ОКРУГЛЕНИЕ: -0.41 [22:11:18]line ИТОГО: 500.00 [22:11:18]line Внесено: 500.00 [22:11:18]line СДАЧА: 0.00 [22:11:18]line НСП 1% : 4.43 [22:11:18]line НДС 12% : 53.14 [22:11:18]line Наличными: 500.00 [22:11:18]line Безнал.: 0.00 [22:11:18]line Место: АЗС № 86 "Партнер Нефть" [22:11:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:11:18]line СНО: Общий режим [22:11:18]line Чек 363 23.10.2024 22:11 [22:11:18]line Смена: 462 ФФД: 1.0 [22:11:18]line ЗНМ: 0300000155 [22:11:18]line РНМ: 0000000000100030 [22:11:18]line Версия ККМ: 001 [22:11:18]line ФМ: 0000000000965340 [22:11:18]line ФД: 188905 [22:11:18]line ФПД: 253652486635910 [22:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221118&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188905&fm=253652486635910&tin=02508201610067®Number=0000000000100030&sum=50000 [22:11:19]OFD Sender: Processing packet 188905 [packets to send 1062, broken 1061] [22:11:19]ProducePacketName [22:11:19]name=ofd_packets/00188905 [22:11:19]OFD Sender: To server: pG, [22:11:19]CommunicateWithHost lk.salyk.kg:30040 [22:11:19]ConnectInit lk.salyk.kg [22:11:19]written 0, free lines is 4095 [22:11:19]Connected sock=11 [22:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 86 07 01 3A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 86 74 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E1 02 00 35 04 06 00 E6 B2 12 5C C1 86 AC 15 76 61 02 66 BB 42 [22:11:19]Write to MH i2c: 01 00 00 8B 0C 97 [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: 01 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: 01 07 00 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: 01 07 00 8B 0C 00 00 00 00 00 55 0C FF [22:11:19]RasterBufferAndPrint [22:11:19]line [22:11:19]line [22:11:19]line [22:11:19]line [22:11:19]line [22:11:19]written 0, free lines is 3160 [22:11:19]MH_Cut [22:11:19]Write to MH i2c: D1 01 00 92 0C 01 70 [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: D1 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: D1 01 00 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: D1 01 00 92 0C 00 6F [22:11:19]Write to MH i2c: 01 00 00 93 0C 9F [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2E 46 47 00 AA 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 36 35 33 34 30 10 04 04 00 E9 E1 02 00 F4 03 04 00 70 1E 19 67 B6 04 01 00 00 12 87 72 99 FD 12 7E 79 [22:11:19]CommunicateWithHost err = 0 [22:11:19]CheckOFDResponse [22:11:19]1017 (14) - 77093643461234 [22:11:19]1041 (16) - 0000000000965340 [22:11:19]1040 (4) - 188905 [22:11:19]1012 (4) - 23.10.2024 16:04 [22:11:19]1206 (1) - 0 [22:11:19]OFD Sender: Remove packet 188905 [22:11:19]ProducePacketName [22:11:19]name=ofd_packets/00188905 [22:11:19]NVStorageDeleteData [22:11:20]OFD Sender: No OFD packet to send [22:11:20]*** Cut start [22:11:20]*** Partial cut [22:11:20]*** CUTSNS_PIN = 1 [22:11:21]*** CUTSNS_PIN = 0 [22:11:21]*** Brake cut motor [22:11:21]Read from MH i2c: 01 [22:11:21]MH_I2C_Read... [22:11:21]*** Stop cut motor [22:11:21]*** Cut end [22:11:21]Read from MH i2c: 01 07 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: 01 07 00 93 0C 00 00 00 00 00 FF 0F B4 [22:11:21]process_action close_receipt done [22:11:21]requested_data is exist [22:11:21]produce_requested_data [22:11:21]requested_item fm.sn is exist - process it [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 11 00 00 [22:11:21]Write to MH i2c: E2 08 00 94 0C 80 11 00 00 00 00 00 00 1A [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 17 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 17 00 94 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [22:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:11:21]wFMCommunicate OK [22:11:21]requested_item fd.num is exist - process it [22:11:21]SAM_PROTO_GetFieldsCounters [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 13 00 00 [22:11:21]Write to MH i2c: E2 08 00 95 0C 80 13 00 00 00 00 00 00 1D [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 62 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 62 00 95 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [22:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:21]wFMCommunicate OK [22:11:21]SAM_PROTO_GetFieldsCounters done [22:11:21]requested_item shift.num is exist - process it [22:11:21]requested_item shift.opened is exist - process it [22:11:21]req_shift_opened [22:11:21]FM_GetShiftState [22:11:21]SAM_PROTO_GetShiftState [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 13 01 00 [22:11:21]Write to MH i2c: E2 08 00 96 0C 80 13 01 00 00 00 00 00 1F [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 0E 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 0E 00 96 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 07 [22:11:21]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:11:21]wFMCommunicate OK [22:11:21]SAM_PROTO_GetShiftState done [22:11:21]FM_GetShiftState done [22:11:21]req_shift_opened done [22:11:21]requested_item shift.open_date is exist - process it [22:11:21]req_shift_open_date [22:11:21]req_shift_open_date done [22:11:21]produce_requested_data done [22:11:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188905,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:11:21]process_action_free close_receipt [22:11:21]json_value_free [22:11:21]json_value_free done [22:11:21]process_json_proto returns [22:11:21]Send response to host [22:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188905,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:11:21]free response buf [22:11:21]execute_script done [22:11:21]execute_script returns [22:11:21]free content buf [22:11:21]Sock 8.Close socket [22:11:21]Sock 8.Thread stoped [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:10]accept exits with 9 [22:17:10]New connection [22:17:10]New thread 3066809700 created [22:17:10]Thread 3066953060 joined [22:17:10]Waiting for new connection... [22:17:10] Sock 9.Parse request [22:17:10]Sock 9.Check first char [22:17:10]Sock 9.First char is OK [22:17:10]request: POST /json_proto HTTP/1.0 [22:17:10]Method: POST [22:17:10]URL: /json_proto [22:17:10]Method is POST - this is cgi request [22:17:10]url: /json_proto [22:17:10]query_string will be loaded in cgi processing [22:17:10]execute_cgi json_proto POST (null) [22:17:10]execute_cgi path=json_proto method=POST [22:17:10]POST find Content-Length [22:17:10]Host: 172.17.42.131:8080 [22:17:10]Content-Length: 677 [22:17:10]Content-Type: application/json [22:17:10] [22:17:10]POST finish read [22:17:10]Found Content-Length = 677 [22:17:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:10]execute_script... [22:17:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:10]POST & json_proto [22:17:10]process_json_proto [22:17:10]json parsed OK: [22:17:10]protocol is kg_v1.0 [22:17:10]action value=close_receipt [22:17:10]process_action close_receipt [22:17:10]cmd_close_receipt [22:17:10]MH_GetDate [22:17:10]Write to MH i2c: F0 00 00 97 0C 92 [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: F0 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: F0 09 00 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: F0 09 00 97 0C 00 E7 75 19 67 A0 18 CA 66 5F [22:17:10]GetLastDocTimeStamp 1729721478 [22:17:10]current date 1729721831 [22:17:10]FM_GetShiftState [22:17:10]SAM_PROTO_GetShiftState [22:17:10]wFMCommunicate request_size=4 [22:17:10]MH_SAM_APDU [22:17:10]CAPDU: 80 13 01 00 [22:17:10]Write to MH i2c: E2 08 00 98 0C 80 13 01 00 00 00 00 00 21 [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:10]Read from MH i2c: E2 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: E2 0E 00 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: E2 0E 00 98 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 09 [22:17:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:17:10]wFMCommunicate OK [22:17:10]SAM_PROTO_GetShiftState done [22:17:10]FM_GetShiftState done [22:17:10]opened in 1729642525 [22:17:10]opened+sec_in_day 1729728925 [22:17:10]quantity*price = 30038 [22:17:10]sum+1 = 30039 [22:17:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 364 23.10.2024 22:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188906 ФПД: 3645979421803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221711&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188906&fm=3645979421803&tin=02508201610067®Number=0000000000100030&sum=30000 [22:17:11]StoreToDocumentArchive [22:17:11]shift 462 fd 188906 [22:17:11]save to /storage/0462/doc_00188906 [22:17:11]save last doc name /storage/0462/doc_00188906 to /storage/kkm_last_doc_name [22:17:11]save OK [22:17:11]Clear old archive folders... [22:17:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:17:11]tlvbuf is 004EBBF0 [22:17:11]SAM_PROTO_ClearQueue [22:17:11]wFMCommunicate request_size=4 [22:17:11]MH_SAM_APDU [22:17:11]CAPDU: 80 09 00 00 [22:17:11]Write to MH i2c: E2 08 00 A5 0C 80 09 00 00 00 00 00 00 23 [22:17:11]Write i2c OK [22:17:11]MH_I2C_Read... [22:17:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:11]Read from MH i2c: E2 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 03 00 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [22:17:11]RAPDU: 90 00 [22:17:11]wFMCommunicate OK [22:17:11]SAM_PROTO_ClearQueue done [22:17:11]KKMCreateOFDPacket [22:17:11]OFDProtocolAddRootSTLVToBuf [22:17:11]FM_MakeSignedData [22:17:11]FM_MakeSignedData [22:17:11]SAM_PROTO_SignData [22:17:11]wFMCommunicate request_size=4 [22:17:11]MH_SAM_APDU [22:17:11]CAPDU: 80 0D 01 02 [22:17:11]Write to MH i2c: E2 08 00 A6 0C 80 0D 01 02 00 00 00 00 2B [22:17:11]Write i2c OK [22:17:11]MH_I2C_Read... [22:17:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:11]Read from MH i2c: E2 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 03 00 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [22:17:11]RAPDU: 90 00 [22:17:11]wFMCommunicate OK [22:17:11]wFMCommunicate request_size=255 [22:17:11]MH_SAM_APDU [22:17:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 E7 75 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E1 02 00 35 04 06 00 03 [22:17:11]Write to MH i2c: E2 02 01 A7 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 E7 75 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E1 02 00 35 04 06 00 03 00 00 7A [22:17:11]Write i2c OK [22:17:11]MH_I2C_Read... [22:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:12]Read from MH i2c: E2 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 03 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [22:17:12]RAPDU: 90 00 [22:17:12]wFMCommunicate OK [22:17:12]wFMCommunicate request_size=10 [22:17:12]MH_SAM_APDU [22:17:12]CAPDU: 80 0D 02 02 05 50 E5 4E EC 6B [22:17:12]Write to MH i2c: E2 0D 00 A8 0C 80 0D 02 02 05 00 50 E5 4E EC 6B 00 00 12 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]OFD Sender: No OFD packet to send [22:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:12]Read from MH i2c: E2 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 03 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [22:17:12]RAPDU: 90 00 [22:17:12]wFMCommunicate OK [22:17:12]wFMCommunicate request_size=4 [22:17:12]MH_SAM_APDU [22:17:12]CAPDU: 80 0D 03 02 [22:17:12]Write to MH i2c: E2 08 00 A9 0C 80 0D 03 02 00 00 00 00 30 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:12]Read from MH i2c: E2 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 0B 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 0B 00 A9 0C 00 88 A5 3C B3 99 0D DD C5 90 00 95 [22:17:12]RAPDU: 88 A5 3C B3 99 0D DD C5 90 00 [22:17:12]wFMCommunicate OK [22:17:12]SAM_PROTO_SignData done [22:17:12]FM_MakeSignedData done [22:17:12]CreateOFDProtocolMessage [22:17:12]wFMCommunicate request_size=4 [22:17:12]MH_SAM_APDU [22:17:12]CAPDU: 80 11 00 00 [22:17:12]Write to MH i2c: E2 08 00 AA 0C 80 11 00 00 00 00 00 00 30 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:12]Read from MH i2c: E2 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 17 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 17 00 AA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [22:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:17:12]wFMCommunicate OK [22:17:12]CreateOFDProtocolMessage done [22:17:12]OFDSenderStorePacket 188906 [22:17:12]StoreOFDPacket docnum=188906 [22:17:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CC B3 07 01 CE C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 E7 75 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E1 02 00 35 04 06 00 03 50 E5 4E EC 6B 88 A5 3C B3 99 0D DD C5 [22:17:12]CheckFolder [22:17:12]dirname=/storage/ofd_packets [22:17:12]CheckFolder done [22:17:12]ProducePacketName [22:17:12]name=ofd_packets/00188906 [22:17:12]NVStorageSaveData ofd_packets/00188906 [22:17:12]File name is /storage/ofd_packets/00188906 [22:17:12]Write 301 bytes [22:17:12]NVStorageSaveData done [22:17:12]OFDSenderStorePacket done [22:17:12]KKMCreateOFDPacket done [22:17:12]NVStorageSaveData kkm_last_timestamp [22:17:12]File name is /storage/kkm_last_timestamp [22:17:12]Write 4 bytes [22:17:12]NVStorageSaveData done [22:17:12]ExternCall_PrintAddStr [22:17:12]wPrintStart [22:17:12]Write to MH i2c: 01 00 00 AB 0C B7 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 AB 0C 00 00 00 00 00 FF 0F CC [22:17:12]RasterBufferAndPrint [22:17:12]line Счет N : (1)210970 [22:17:12]line ИНН: 02508201610067 [22:17:12]line Контрольно-Кассовый Чек [22:17:12]line ПРОДАЖА [22:17:12]line ТРК (МРК, ГНК) : 22 [22:17:12]line Товар: 2710124130 [22:17:12]line Аи-92-К-3 [22:17:12]line 4.490 * 66.90 [22:17:12]line = 300.38 [22:17:12]line НДС 12% НСП 1% [22:17:12]line > о реализуемом товаре [22:17:12]line ОКРУГЛЕНИЕ: -0.38 [22:17:12]line ИТОГО: 300.00 [22:17:12]line Внесено: 300.00 [22:17:12]line СДАЧА: 0.00 [22:17:12]line НСП 1% : 2.66 [22:17:12]line НДС 12% : 31.90 [22:17:12]line Наличными: 300.00 [22:17:12]line Безнал.: 0.00 [22:17:12]line Место: АЗС № 86 "Партнер Нефть" [22:17:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:17:12]line СНО: Общий режим [22:17:12]line Чек 364 23.10.2024 22:17 [22:17:12]line Смена: 462 ФФД: 1.0 [22:17:12]line ЗНМ: 0300000155 [22:17:12]line РНМ: 0000000000100030 [22:17:12]line Версия ККМ: 001 [22:17:12]line ФМ: 0000000000965340 [22:17:12]line ФД: 188906 [22:17:12]line ФПД: 3645979421803 [22:17:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221711&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188906&fm=3645979421803&tin=02508201610067®Number=0000000000100030&sum=30000 [22:17:12]written 0, free lines is 4095 [22:17:12]OFD Sender: Processing packet 188906 [packets to send 1062, broken 1061] [22:17:12]ProducePacketName [22:17:12]name=ofd_packets/00188906 [22:17:12]OFD Sender: To server: pG, [22:17:12]CommunicateWithHost lk.salyk.kg:30040 [22:17:12]ConnectInit lk.salyk.kg [22:17:12]Connected sock=10 [22:17:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CC B3 07 01 CE C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 E7 75 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E1 02 00 35 04 06 00 03 50 E5 4E EC 6B 88 A5 3C B3 99 0D DD C5 [22:17:12]Write to MH i2c: 01 00 00 D6 0C E2 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 D6 0C 00 00 00 00 00 54 0C 49 [22:17:12]RasterBufferAndPrint [22:17:12]line [22:17:12]line [22:17:12]line [22:17:12]line [22:17:12]line [22:17:12]written 0, free lines is 3160 [22:17:12]MH_Cut [22:17:12]Write to MH i2c: D1 01 00 DD 0C 01 BB [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: D1 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: D1 01 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: D1 01 00 DD 0C 00 BA [22:17:12]Write to MH i2c: 01 00 00 DE 0C EA [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 22 5B 47 00 11 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 36 35 33 34 30 10 04 04 00 EA E1 02 00 F4 03 04 00 D1 1F 19 67 B6 04 01 00 00 B6 FF 5C 51 B9 82 57 6F [22:17:13]CommunicateWithHost err = 0 [22:17:13]CheckOFDResponse [22:17:13]1017 (14) - 77093643461234 [22:17:13]1041 (16) - 0000000000965340 [22:17:13]1040 (4) - 188906 [22:17:13]1012 (4) - 23.10.2024 16:09 [22:17:13]1206 (1) - 0 [22:17:13]OFD Sender: Remove packet 188906 [22:17:13]ProducePacketName [22:17:13]name=ofd_packets/00188906 [22:17:13]NVStorageDeleteData [22:17:13]OFD Sender: No OFD packet to send [22:17:14]*** Cut start [22:17:14]*** Partial cut [22:17:14]*** CUTSNS_PIN = 1 [22:17:14]*** CUTSNS_PIN = 0 [22:17:14]*** Brake cut motor [22:17:14]Read from MH i2c: 01 [22:17:14]MH_I2C_Read... [22:17:14]*** Stop cut motor [22:17:14]*** Cut end [22:17:14]Read from MH i2c: 01 07 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: 01 07 00 DE 0C 00 00 00 00 00 FF 0F FF [22:17:14]process_action close_receipt done [22:17:14]requested_data is exist [22:17:14]produce_requested_data [22:17:14]requested_item fm.sn is exist - process it [22:17:14]wFMCommunicate request_size=4 [22:17:14]MH_SAM_APDU [22:17:14]CAPDU: 80 11 00 00 [22:17:14]Write to MH i2c: E2 08 00 DF 0C 80 11 00 00 00 00 00 00 65 [22:17:14]Write i2c OK [22:17:14]MH_I2C_Read... [22:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:14]Read from MH i2c: E2 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 17 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 17 00 DF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [22:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:17:14]wFMCommunicate OK [22:17:14]requested_item fd.num is exist - process it [22:17:14]SAM_PROTO_GetFieldsCounters [22:17:14]wFMCommunicate request_size=4 [22:17:14]MH_SAM_APDU [22:17:14]CAPDU: 80 13 00 00 [22:17:14]Write to MH i2c: E2 08 00 E0 0C 80 13 00 00 00 00 00 00 68 [22:17:14]Write i2c OK [22:17:14]MH_I2C_Read... [22:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:14]Read from MH i2c: E2 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 62 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 62 00 E0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [22:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:14]wFMCommunicate OK [22:17:14]SAM_PROTO_GetFieldsCounters done [22:17:14]requested_item shift.num is exist - process it [22:17:14]requested_item shift.opened is exist - process it [22:17:14]req_shift_opened [22:17:14]FM_GetShiftState [22:17:14]SAM_PROTO_GetShiftState [22:17:14]wFMCommunicate request_size=4 [22:17:14]MH_SAM_APDU [22:17:14]CAPDU: 80 13 01 00 [22:17:14]Write to MH i2c: E2 08 00 E1 0C 80 13 01 00 00 00 00 00 6A [22:17:14]Write i2c OK [22:17:14]MH_I2C_Read... [22:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:14]Read from MH i2c: E2 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 0E 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 0E 00 E1 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 52 [22:17:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:17:14]wFMCommunicate OK [22:17:14]SAM_PROTO_GetShiftState done [22:17:14]FM_GetShiftState done [22:17:14]req_shift_opened done [22:17:14]requested_item shift.open_date is exist - process it [22:17:14]req_shift_open_date [22:17:14]req_shift_open_date done [22:17:14]produce_requested_data done [22:17:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188906,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:17:14]process_action_free close_receipt [22:17:14]json_value_free [22:17:14]json_value_free done [22:17:14]process_json_proto returns [22:17:14]Send response to host [22:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188906,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:17:14]free response buf [22:17:14]execute_script done [22:17:14]execute_script returns [22:17:14]free content buf [22:17:14]Sock 9.Close socket [22:17:14]Sock 9.Thread stoped [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:07]accept exits with 8 [22:18:07]New connection [22:18:07]New thread 3066953060 created [22:18:07]Thread 3066809700 joined [22:18:07]Waiting for new connection... [22:18:07] Sock 8.Parse request [22:18:07]Sock 8.Check first char [22:18:07]Sock 8.First char is OK [22:18:07]request: POST /json_proto HTTP/1.0 [22:18:07]Method: POST [22:18:07]URL: /json_proto [22:18:07]Method is POST - this is cgi request [22:18:07]url: /json_proto [22:18:07]query_string will be loaded in cgi processing [22:18:07]execute_cgi json_proto POST (null) [22:18:07]execute_cgi path=json_proto method=POST [22:18:07]POST find Content-Length [22:18:07]Host: 172.17.42.131:8080 [22:18:07]Content-Length: 688 [22:18:07]Content-Type: application/json [22:18:07] [22:18:07]POST finish read [22:18:07]Found Content-Length = 688 [22:18:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:07]execute_script... [22:18:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:07]POST & json_proto [22:18:07]process_json_proto [22:18:07]json parsed OK: [22:18:07]protocol is kg_v1.0 [22:18:07]action value=close_receipt [22:18:07]process_action close_receipt [22:18:07]cmd_close_receipt [22:18:07]MH_GetDate [22:18:07]Write to MH i2c: F0 00 00 E2 0C DD [22:18:07]Write i2c OK [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: F0 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: F0 09 00 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: F0 09 00 E2 0C 00 20 76 19 67 A0 18 CA 66 E4 [22:18:07]GetLastDocTimeStamp 1729721831 [22:18:07]current date 1729721888 [22:18:07]FM_GetShiftState [22:18:07]SAM_PROTO_GetShiftState [22:18:07]wFMCommunicate request_size=4 [22:18:07]MH_SAM_APDU [22:18:07]CAPDU: 80 13 01 00 [22:18:07]Write to MH i2c: E2 08 00 E3 0C 80 13 01 00 00 00 00 00 6C [22:18:07]Write i2c OK [22:18:07]MH_I2C_Read... [22:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:07]Read from MH i2c: E2 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: E2 0E 00 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: E2 0E 00 E3 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 54 [22:18:07]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:18:07]wFMCommunicate OK [22:18:07]SAM_PROTO_GetShiftState done [22:18:07]FM_GetShiftState done [22:18:07]opened in 1729642525 [22:18:07]opened+sec_in_day 1729728925 [22:18:07]quantity*price = 300076 [22:18:07]sum+1 = 300077 [22:18:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 365 23.10.2024 22:18 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188907 ФПД: 132506378692740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221808&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188907&fm=132506378692740&tin=02508201610067®Number=0000000000100030&sum=300000 [22:18:08]StoreToDocumentArchive [22:18:08]shift 462 fd 188907 [22:18:08]save to /storage/0462/doc_00188907 [22:18:08]save last doc name /storage/0462/doc_00188907 to /storage/kkm_last_doc_name [22:18:08]save OK [22:18:08]Clear old archive folders... [22:18:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:18:08]tlvbuf is 00517FF0 [22:18:08]SAM_PROTO_ClearQueue [22:18:08]wFMCommunicate request_size=4 [22:18:08]MH_SAM_APDU [22:18:08]CAPDU: 80 09 00 00 [22:18:08]Write to MH i2c: E2 08 00 F0 0C 80 09 00 00 00 00 00 00 6E [22:18:08]Write i2c OK [22:18:08]MH_I2C_Read... [22:18:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:08]Read from MH i2c: E2 [22:18:08]MH_I2C_Read... [22:18:08]Read from MH i2c: E2 03 00 [22:18:08]MH_I2C_Read... [22:18:08]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [22:18:08]RAPDU: 90 00 [22:18:08]wFMCommunicate OK [22:18:08]SAM_PROTO_ClearQueue done [22:18:08]KKMCreateOFDPacket [22:18:08]OFDProtocolAddRootSTLVToBuf [22:18:08]FM_MakeSignedData [22:18:08]FM_MakeSignedData [22:18:08]SAM_PROTO_SignData [22:18:08]wFMCommunicate request_size=4 [22:18:08]MH_SAM_APDU [22:18:08]CAPDU: 80 0D 01 02 [22:18:08]Write to MH i2c: E2 08 00 F1 0C 80 0D 01 02 00 00 00 00 76 [22:18:08]Write i2c OK [22:18:08]MH_I2C_Read... [22:18:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:08]Read from MH i2c: E2 [22:18:08]MH_I2C_Read... [22:18:08]Read from MH i2c: E2 03 00 [22:18:08]MH_I2C_Read... [22:18:08]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [22:18:08]RAPDU: 90 00 [22:18:08]wFMCommunicate OK [22:18:08]wFMCommunicate request_size=255 [22:18:08]MH_SAM_APDU [22:18:08]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 20 76 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E1 02 [22:18:08]Write to MH i2c: E2 02 01 F2 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 20 76 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E1 02 00 00 D6 [22:18:08]Write i2c OK [22:18:08]MH_I2C_Read... [22:18:08]OFD Sender: No OFD packet to send [22:18:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:09]Read from MH i2c: E2 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 03 00 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [22:18:09]RAPDU: 90 00 [22:18:09]wFMCommunicate OK [22:18:09]wFMCommunicate request_size=16 [22:18:09]MH_SAM_APDU [22:18:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 78 83 8B A1 E8 84 [22:18:09]Write to MH i2c: E2 13 00 F3 0C 80 0D 02 02 0B 00 00 35 04 06 00 78 83 8B A1 E8 84 00 00 61 [22:18:09]Write i2c OK [22:18:09]MH_I2C_Read... [22:18:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:09]Read from MH i2c: E2 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 03 00 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [22:18:09]RAPDU: 90 00 [22:18:09]wFMCommunicate OK [22:18:09]wFMCommunicate request_size=4 [22:18:09]MH_SAM_APDU [22:18:09]CAPDU: 80 0D 03 02 [22:18:09]Write to MH i2c: E2 08 00 F4 0C 80 0D 03 02 00 00 00 00 7B [22:18:09]Write i2c OK [22:18:09]MH_I2C_Read... [22:18:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:09]Read from MH i2c: E2 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 0B 00 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 0B 00 F4 0C 00 89 4E 04 21 86 49 D0 30 90 00 47 [22:18:09]RAPDU: 89 4E 04 21 86 49 D0 30 90 00 [22:18:09]wFMCommunicate OK [22:18:09]SAM_PROTO_SignData done [22:18:09]FM_MakeSignedData done [22:18:09]CreateOFDProtocolMessage [22:18:09]wFMCommunicate request_size=4 [22:18:09]MH_SAM_APDU [22:18:09]CAPDU: 80 11 00 00 [22:18:09]Write to MH i2c: E2 08 00 F5 0C 80 11 00 00 00 00 00 00 7B [22:18:09]Write i2c OK [22:18:09]MH_I2C_Read... [22:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:09]Read from MH i2c: E2 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 17 00 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 17 00 F5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [22:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:18:09]wFMCommunicate OK [22:18:09]CreateOFDProtocolMessage done [22:18:09]OFDSenderStorePacket 188907 [22:18:09]StoreOFDPacket docnum=188907 [22:18:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C3 6A 0D 01 BC EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 20 76 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E1 02 00 35 04 06 00 78 83 8B A1 E8 84 89 4E 04 21 86 49 D0 30 [22:18:09]CheckFolder [22:18:09]dirname=/storage/ofd_packets [22:18:09]CheckFolder done [22:18:09]ProducePacketName [22:18:09]name=ofd_packets/00188907 [22:18:09]NVStorageSaveData ofd_packets/00188907 [22:18:09]File name is /storage/ofd_packets/00188907 [22:18:09]Write 307 bytes [22:18:09]NVStorageSaveData done [22:18:09]OFDSenderStorePacket done [22:18:09]KKMCreateOFDPacket done [22:18:09]NVStorageSaveData kkm_last_timestamp [22:18:09]File name is /storage/kkm_last_timestamp [22:18:09]Write 4 bytes [22:18:09]NVStorageSaveData done [22:18:09]ExternCall_PrintAddStr [22:18:09]wPrintStart [22:18:09]Write to MH i2c: 01 00 00 F6 0C 02 [22:18:09]Write i2c OK [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: 01 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: 01 07 00 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: 01 07 00 F6 0C 00 00 00 00 00 FF 0F 17 [22:18:09]RasterBufferAndPrint [22:18:09]line Счет N : (1)210969 [22:18:09]line ИНН: 02508201610067 [22:18:09]line Контрольно-Кассовый Чек [22:18:09]line ПРОДАЖА [22:18:09]line ТРК (МРК, ГНК) : 31 [22:18:09]line Товар: 2710194210 [22:18:09]line D-ENERGY ДТ-К-5 [22:18:09]line 38.870 * 77.20 [22:18:09]line = 3000.76 [22:18:09]line НДС 12% НСП 1% [22:18:09]line > о реализуемом товаре [22:18:09]line ОКРУГЛЕНИЕ: -0.76 [22:18:09]line ИТОГО: 3000.00 [22:18:09]line Внесено: 3000.00 [22:18:09]line СДАЧА: 0.00 [22:18:09]line НСП 1% : 26.55 [22:18:09]line НДС 12% : 318.66 [22:18:09]line Наличными: 3000.00 [22:18:09]line Безнал.: 0.00 [22:18:09]line Место: АЗС № 86 "Партнер Нефть" [22:18:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:18:09]line СНО: Общий режим [22:18:09]line Чек 365 23.10.2024 22:18 [22:18:09]line Смена: 462 ФФД: 1.0 [22:18:09]line ЗНМ: 0300000155 [22:18:09]line РНМ: 0000000000100030 [22:18:09]line Версия ККМ: 001 [22:18:09]line ФМ: 0000000000965340 [22:18:09]line ФД: 188907 [22:18:09]line ФПД: 132506378692740 [22:18:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221808&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188907&fm=132506378692740&tin=02508201610067®Number=0000000000100030&sum=300000 [22:18:09]OFD Sender: Processing packet 188907 [packets to send 1062, broken 1061] [22:18:09]ProducePacketName [22:18:09]name=ofd_packets/00188907 [22:18:09]OFD Sender: To server: pG, [22:18:09]CommunicateWithHost lk.salyk.kg:30040 [22:18:09]ConnectInit lk.salyk.kg [22:18:09]written 0, free lines is 4095 [22:18:09]Connected sock=10 [22:18:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C3 6A 0D 01 BC EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 20 76 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E1 02 00 35 04 06 00 78 83 8B A1 E8 84 89 4E 04 21 86 49 D0 30 [22:18:09]Write to MH i2c: 01 00 00 21 0D 2E [22:18:09]Write i2c OK [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: 01 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: 01 07 00 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: 01 07 00 21 0D 00 00 00 00 00 54 0C 95 [22:18:09]RasterBufferAndPrint [22:18:09]line [22:18:09]line [22:18:09]line [22:18:09]line [22:18:09]line [22:18:09]written 0, free lines is 3160 [22:18:09]MH_Cut [22:18:09]Write to MH i2c: D1 01 00 28 0D 01 07 [22:18:09]Write i2c OK [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: D1 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: D1 01 00 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: D1 01 00 28 0D 00 06 [22:18:09]Write to MH i2c: 01 00 00 29 0D 36 [22:18:09]Write i2c OK [22:18:09]MH_I2C_Read... [22:18:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 42 47 00 D8 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 36 35 33 34 30 10 04 04 00 EB E1 02 00 F4 03 04 00 0A 20 19 67 B6 04 01 00 00 57 96 02 1A 52 2D 49 DE [22:18:10]CommunicateWithHost err = 0 [22:18:10]CheckOFDResponse [22:18:10]1017 (14) - 77093643461234 [22:18:10]1041 (16) - 0000000000965340 [22:18:10]1040 (4) - 188907 [22:18:10]1012 (4) - 23.10.2024 16:10 [22:18:10]1206 (1) - 0 [22:18:10]OFD Sender: Remove packet 188907 [22:18:10]ProducePacketName [22:18:10]name=ofd_packets/00188907 [22:18:10]NVStorageDeleteData [22:18:10]OFD Sender: No OFD packet to send [22:18:11]*** Cut start [22:18:11]*** Partial cut [22:18:11]*** CUTSNS_PIN = 1 [22:18:11]*** CUTSNS_PIN = 0 [22:18:11]*** Brake cut motor [22:18:11]Read from MH i2c: 01 [22:18:11]MH_I2C_Read... [22:18:11]*** Stop cut motor [22:18:11]*** Cut end [22:18:11]Read from MH i2c: 01 07 00 [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: 01 07 00 29 0D 00 00 00 00 00 FF 0F 4B [22:18:11]process_action close_receipt done [22:18:11]requested_data is exist [22:18:11]produce_requested_data [22:18:11]requested_item fm.sn is exist - process it [22:18:11]wFMCommunicate request_size=4 [22:18:11]MH_SAM_APDU [22:18:11]CAPDU: 80 11 00 00 [22:18:11]Write to MH i2c: E2 08 00 2A 0D 80 11 00 00 00 00 00 00 B1 [22:18:11]Write i2c OK [22:18:11]MH_I2C_Read... [22:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:11]Read from MH i2c: E2 [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: E2 17 00 [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: E2 17 00 2A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [22:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:18:11]wFMCommunicate OK [22:18:11]requested_item fd.num is exist - process it [22:18:11]SAM_PROTO_GetFieldsCounters [22:18:11]wFMCommunicate request_size=4 [22:18:11]MH_SAM_APDU [22:18:11]CAPDU: 80 13 00 00 [22:18:11]Write to MH i2c: E2 08 00 2B 0D 80 13 00 00 00 00 00 00 B4 [22:18:11]Write i2c OK [22:18:11]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 62 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 62 00 2B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [22:18:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:12]wFMCommunicate OK [22:18:12]SAM_PROTO_GetFieldsCounters done [22:18:12]requested_item shift.num is exist - process it [22:18:12]requested_item shift.opened is exist - process it [22:18:12]req_shift_opened [22:18:12]FM_GetShiftState [22:18:12]SAM_PROTO_GetShiftState [22:18:12]wFMCommunicate request_size=4 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 13 01 00 [22:18:12]Write to MH i2c: E2 08 00 2C 0D 80 13 01 00 00 00 00 00 B6 [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 0E 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 0E 00 2C 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 9E [22:18:12]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:18:12]wFMCommunicate OK [22:18:12]SAM_PROTO_GetShiftState done [22:18:12]FM_GetShiftState done [22:18:12]req_shift_opened done [22:18:12]requested_item shift.open_date is exist - process it [22:18:12]req_shift_open_date [22:18:12]req_shift_open_date done [22:18:12]produce_requested_data done [22:18:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188907,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:18:12]process_action_free close_receipt [22:18:12]json_value_free [22:18:12]json_value_free done [22:18:12]process_json_proto returns [22:18:12]Send response to host [22:18:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188907,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:18:12]free response buf [22:18:12]execute_script done [22:18:12]execute_script returns [22:18:12]free content buf [22:18:12]Sock 8.Close socket [22:18:12]Sock 8.Thread stoped [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]accept exits with 9 [22:22:56]New connection [22:22:56]New thread 3066809700 created [22:22:56]Thread 3066953060 joined [22:22:56]Waiting for new connection... [22:22:56] Sock 9.Parse request [22:22:56]Sock 9.Check first char [22:22:56]Sock 9.First char is OK [22:22:56]request: POST /json_proto HTTP/1.0 [22:22:56]Method: POST [22:22:56]URL: /json_proto [22:22:56]Method is POST - this is cgi request [22:22:56]url: /json_proto [22:22:56]query_string will be loaded in cgi processing [22:22:56]execute_cgi json_proto POST (null) [22:22:56]execute_cgi path=json_proto method=POST [22:22:56]POST find Content-Length [22:22:56]Host: 172.17.42.131:8080 [22:22:56]Content-Length: 679 [22:22:56]Content-Type: application/json [22:22:56] [22:22:56]POST finish read [22:22:56]Found Content-Length = 679 [22:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:56]execute_script... [22:22:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:56]POST & json_proto [22:22:56]process_json_proto [22:22:56]json parsed OK: [22:22:56]protocol is kg_v1.0 [22:22:56]action value=close_receipt [22:22:56]process_action close_receipt [22:22:56]cmd_close_receipt [22:22:56]MH_GetDate [22:22:56]Write to MH i2c: F0 00 00 2D 0D 29 [22:22:56]Write i2c OK [22:22:56]MH_I2C_Read... [22:22:56]Read from MH i2c: F0 [22:22:56]MH_I2C_Read... [22:22:56]Read from MH i2c: F0 09 00 [22:22:56]MH_I2C_Read... [22:22:56]Read from MH i2c: F0 09 00 2D 0D 00 42 77 19 67 A0 18 CA 66 53 [22:22:56]GetLastDocTimeStamp 1729721888 [22:22:56]current date 1729722178 [22:22:56]FM_GetShiftState [22:22:56]SAM_PROTO_GetShiftState [22:22:56]wFMCommunicate request_size=4 [22:22:56]MH_SAM_APDU [22:22:56]CAPDU: 80 13 01 00 [22:22:56]Write to MH i2c: E2 08 00 2E 0D 80 13 01 00 00 00 00 00 B8 [22:22:56]Write i2c OK [22:22:56]MH_I2C_Read... [22:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:56]Read from MH i2c: E2 [22:22:56]MH_I2C_Read... [22:22:56]Read from MH i2c: E2 0E 00 [22:22:56]MH_I2C_Read... [22:22:56]Read from MH i2c: E2 0E 00 2E 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A0 [22:22:56]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:22:56]wFMCommunicate OK [22:22:56]SAM_PROTO_GetShiftState done [22:22:56]FM_GetShiftState done [22:22:56]opened in 1729642525 [22:22:56]opened+sec_in_day 1729728925 [22:22:56]quantity*price = 100050 [22:22:56]sum+1 = 100052 [22:22:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 366 23.10.2024 22:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188908 ФПД: 85505603635237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T222258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188908&fm=85505603635237&tin=02508201610067®Number=0000000000100030&sum=100000 [22:22:57]StoreToDocumentArchive [22:22:57]shift 462 fd 188908 [22:22:57]save to /storage/0462/doc_00188908 [22:22:57]save last doc name /storage/0462/doc_00188908 to /storage/kkm_last_doc_name [22:22:57]save OK [22:22:57]Clear old archive folders... [22:22:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:22:57]tlvbuf is 004B7140 [22:22:57]SAM_PROTO_ClearQueue [22:22:57]wFMCommunicate request_size=4 [22:22:57]MH_SAM_APDU [22:22:57]CAPDU: 80 09 00 00 [22:22:57]Write to MH i2c: E2 08 00 3B 0D 80 09 00 00 00 00 00 00 BA [22:22:57]Write i2c OK [22:22:57]MH_I2C_Read... [22:22:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:58]Read from MH i2c: E2 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 03 00 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 03 00 3B 0D 00 90 00 BC [22:22:58]RAPDU: 90 00 [22:22:58]wFMCommunicate OK [22:22:58]SAM_PROTO_ClearQueue done [22:22:58]KKMCreateOFDPacket [22:22:58]OFDProtocolAddRootSTLVToBuf [22:22:58]FM_MakeSignedData [22:22:58]FM_MakeSignedData [22:22:58]SAM_PROTO_SignData [22:22:58]wFMCommunicate request_size=4 [22:22:58]MH_SAM_APDU [22:22:58]CAPDU: 80 0D 01 02 [22:22:58]Write to MH i2c: E2 08 00 3C 0D 80 0D 01 02 00 00 00 00 C2 [22:22:58]Write i2c OK [22:22:58]MH_I2C_Read... [22:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:58]Read from MH i2c: E2 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 03 00 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 03 00 3C 0D 00 90 00 BD [22:22:58]RAPDU: 90 00 [22:22:58]wFMCommunicate OK [22:22:58]wFMCommunicate request_size=255 [22:22:58]MH_SAM_APDU [22:22:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 42 77 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E1 02 00 35 04 06 00 4D C4 53 21 [22:22:58]Write to MH i2c: E2 02 01 3D 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 42 77 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E1 02 00 35 04 06 00 4D C4 53 21 00 00 F8 [22:22:58]Write i2c OK [22:22:58]MH_I2C_Read... [22:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:58]Read from MH i2c: E2 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 03 00 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 03 00 3D 0D 00 90 00 BE [22:22:58]RAPDU: 90 00 [22:22:58]wFMCommunicate OK [22:22:58]wFMCommunicate request_size=7 [22:22:58]MH_SAM_APDU [22:22:58]CAPDU: 80 0D 02 02 02 88 25 [22:22:58]Write to MH i2c: E2 0A 00 3E 0D 80 0D 02 02 02 00 88 25 00 00 76 [22:22:58]Write i2c OK [22:22:58]MH_I2C_Read... [22:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:58]Read from MH i2c: E2 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 03 00 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 03 00 3E 0D 00 90 00 BF [22:22:58]RAPDU: 90 00 [22:22:58]wFMCommunicate OK [22:22:58]wFMCommunicate request_size=4 [22:22:58]MH_SAM_APDU [22:22:58]CAPDU: 80 0D 03 02 [22:22:58]Write to MH i2c: E2 08 00 3F 0D 80 0D 03 02 00 00 00 00 C7 [22:22:58]Write i2c OK [22:22:58]MH_I2C_Read... [22:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:58]Read from MH i2c: E2 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 0B 00 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 0B 00 3F 0D 00 22 89 8E 63 48 EC 20 58 90 00 10 [22:22:58]RAPDU: 22 89 8E 63 48 EC 20 58 90 00 [22:22:58]wFMCommunicate OK [22:22:58]SAM_PROTO_SignData done [22:22:58]FM_MakeSignedData done [22:22:58]CreateOFDProtocolMessage [22:22:58]wFMCommunicate request_size=4 [22:22:58]MH_SAM_APDU [22:22:58]CAPDU: 80 11 00 00 [22:22:58]Write to MH i2c: E2 08 00 40 0D 80 11 00 00 00 00 00 00 C7 [22:22:58]Write i2c OK [22:22:58]MH_I2C_Read... [22:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:58]Read from MH i2c: E2 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 17 00 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: E2 17 00 40 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 15 [22:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:22:58]wFMCommunicate OK [22:22:58]CreateOFDProtocolMessage done [22:22:58]OFDSenderStorePacket 188908 [22:22:58]StoreOFDPacket docnum=188908 [22:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 20 6F 04 01 2A 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 42 77 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E1 02 00 35 04 06 00 4D C4 53 21 88 25 22 89 8E 63 48 EC 20 58 [22:22:58]CheckFolder [22:22:58]dirname=/storage/ofd_packets [22:22:58]CheckFolder done [22:22:58]ProducePacketName [22:22:58]name=ofd_packets/00188908 [22:22:58]NVStorageSaveData ofd_packets/00188908 [22:22:58]File name is /storage/ofd_packets/00188908 [22:22:58]Write 298 bytes [22:22:58]NVStorageSaveData done [22:22:58]OFDSenderStorePacket done [22:22:58]KKMCreateOFDPacket done [22:22:58]NVStorageSaveData kkm_last_timestamp [22:22:58]File name is /storage/kkm_last_timestamp [22:22:58]Write 4 bytes [22:22:58]NVStorageSaveData done [22:22:58]ExternCall_PrintAddStr [22:22:58]wPrintStart [22:22:58]Write to MH i2c: 01 00 00 41 0D 4E [22:22:58]Write i2c OK [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: 01 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: 01 07 00 [22:22:58]MH_I2C_Read... [22:22:58]Read from MH i2c: 01 07 00 41 0D 00 00 00 00 00 FF 0F 63 [22:22:58]RasterBufferAndPrint [22:22:58]line Счет N : (1)210971 [22:22:58]line ИНН: 02508201610067 [22:22:58]line Контрольно-Кассовый Чек [22:22:58]line ПРОДАЖА [22:22:58]line ТРК (МРК, ГНК) : 51 [22:22:58]line Товар: 2710194210 [22:22:58]line ДТ-К-5 [22:22:58]line 13.130 * 76.20 [22:22:58]line = 1000.51 [22:22:58]line НДС 12% НСП 1% [22:22:58]line > о реализуемом товаре [22:22:58]line ОКРУГЛЕНИЕ: -0.51 [22:22:58]line ИТОГО: 1000.00 [22:22:58]line Внесено: 1000.00 [22:22:58]line СДАЧА: 0.00 [22:22:58]line НСП 1% : 8.85 [22:22:58]line НДС 12% : 106.25 [22:22:58]line Наличными: 1000.00 [22:22:58]line Безнал.: 0.00 [22:22:58]line Место: АЗС № 86 "Партнер Нефть" [22:22:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:22:58]line СНО: Общий режим [22:22:58]line Чек 366 23.10.2024 22:22 [22:22:58]line Смена: 462 ФФД: 1.0 [22:22:58]line ЗНМ: 0300000155 [22:22:58]line РНМ: 0000000000100030 [22:22:58]line Версия ККМ: 001 [22:22:58]line ФМ: 0000000000965340 [22:22:58]line ФД: 188908 [22:22:58]line ФПД: 85505603635237 [22:22:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T222258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188908&fm=85505603635237&tin=02508201610067®Number=0000000000100030&sum=100000 [22:22:58]OFD Sender: Processing packet 188908 [packets to send 1062, broken 1061] [22:22:58]ProducePacketName [22:22:58]name=ofd_packets/00188908 [22:22:58]OFD Sender: To server: pG, [22:22:58]CommunicateWithHost lk.salyk.kg:30040 [22:22:58]ConnectInit lk.salyk.kg [22:22:58]written 0, free lines is 4095 [22:22:59]Connected sock=8 [22:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 20 6F 04 01 2A 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 42 77 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E1 02 00 35 04 06 00 4D C4 53 21 88 25 22 89 8E 63 48 EC 20 58 [22:22:59]Write to MH i2c: 01 00 00 6C 0D 79 [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: 01 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: 01 07 00 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: 01 07 00 6C 0D 00 00 00 00 00 56 0C E2 [22:22:59]RasterBufferAndPrint [22:22:59]line [22:22:59]line [22:22:59]line [22:22:59]line [22:22:59]line [22:22:59]written 0, free lines is 3161 [22:22:59]MH_Cut [22:22:59]Write to MH i2c: D1 01 00 73 0D 01 52 [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: D1 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: D1 01 00 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: D1 01 00 73 0D 00 51 [22:22:59]Write to MH i2c: 01 00 00 74 0D 81 [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A 4B 47 00 75 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E1 02 00 F4 03 04 00 2B 21 19 67 B6 04 01 00 00 0A D7 B4 82 3C 3C 59 3B [22:22:59]CommunicateWithHost err = 0 [22:22:59]CheckOFDResponse [22:22:59]1017 (14) - 77093643461234 [22:22:59]1041 (16) - 0000000000965340 [22:22:59]1040 (4) - 188908 [22:22:59]1012 (4) - 23.10.2024 16:15 [22:22:59]1206 (1) - 0 [22:22:59]OFD Sender: Remove packet 188908 [22:22:59]ProducePacketName [22:22:59]name=ofd_packets/00188908 [22:22:59]NVStorageDeleteData [22:22:59]OFD Sender: No OFD packet to send [22:23:00]*** Cut start [22:23:00]*** Partial cut [22:23:00]*** CUTSNS_PIN = 1 [22:23:00]*** CUTSNS_PIN = 0 [22:23:00]*** Brake cut motor [22:23:01]Read from MH i2c: 01 [22:23:01]MH_I2C_Read... [22:23:01]*** Stop cut motor [22:23:01]*** Cut end [22:23:01]Read from MH i2c: 01 07 00 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 FF 0F 96 [22:23:01]process_action close_receipt done [22:23:01]requested_data is exist [22:23:01]produce_requested_data [22:23:01]requested_item fm.sn is exist - process it [22:23:01]wFMCommunicate request_size=4 [22:23:01]MH_SAM_APDU [22:23:01]CAPDU: 80 11 00 00 [22:23:01]Write to MH i2c: E2 08 00 75 0D 80 11 00 00 00 00 00 00 FC [22:23:01]Write i2c OK [22:23:01]MH_I2C_Read... [22:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:01]Read from MH i2c: E2 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: E2 17 00 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: E2 17 00 75 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [22:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:23:01]wFMCommunicate OK [22:23:01]requested_item fd.num is exist - process it [22:23:01]SAM_PROTO_GetFieldsCounters [22:23:01]wFMCommunicate request_size=4 [22:23:01]MH_SAM_APDU [22:23:01]CAPDU: 80 13 00 00 [22:23:01]Write to MH i2c: E2 08 00 76 0D 80 13 00 00 00 00 00 00 FF [22:23:01]Write i2c OK [22:23:01]MH_I2C_Read... [22:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:01]Read from MH i2c: E2 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: E2 62 00 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: E2 62 00 76 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [22:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:01]wFMCommunicate OK [22:23:01]SAM_PROTO_GetFieldsCounters done [22:23:01]requested_item shift.num is exist - process it [22:23:01]requested_item shift.opened is exist - process it [22:23:01]req_shift_opened [22:23:01]FM_GetShiftState [22:23:01]SAM_PROTO_GetShiftState [22:23:01]wFMCommunicate request_size=4 [22:23:01]MH_SAM_APDU [22:23:01]CAPDU: 80 13 01 00 [22:23:01]Write to MH i2c: E2 08 00 77 0D 80 13 01 00 00 00 00 00 01 [22:23:01]Write i2c OK [22:23:01]MH_I2C_Read... [22:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:01]Read from MH i2c: E2 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: E2 0E 00 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: E2 0E 00 77 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E9 [22:23:01]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:23:01]wFMCommunicate OK [22:23:01]SAM_PROTO_GetShiftState done [22:23:01]FM_GetShiftState done [22:23:01]req_shift_opened done [22:23:01]requested_item shift.open_date is exist - process it [22:23:01]req_shift_open_date [22:23:01]req_shift_open_date done [22:23:01]produce_requested_data done [22:23:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188908,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:23:01]process_action_free close_receipt [22:23:01]json_value_free [22:23:01]json_value_free done [22:23:01]process_json_proto returns [22:23:01]Send response to host [22:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188908,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:23:01]free response buf [22:23:01]execute_script done [22:23:01]execute_script returns [22:23:01]free content buf [22:23:01]Sock 9.Close socket [22:23:01]Sock 9.Thread stoped [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]accept exits with 10 [22:36:53]New connection [22:36:53]New thread 3066953060 created [22:36:53]Thread 3066809700 joined [22:36:53]Waiting for new connection... [22:36:53] Sock 10.Parse request [22:36:53]Sock 10.Check first char [22:36:53]Sock 10.First char is OK [22:36:53]request: POST /json_proto HTTP/1.0 [22:36:53]Method: POST [22:36:53]URL: /json_proto [22:36:53]Method is POST - this is cgi request [22:36:53]url: /json_proto [22:36:53]query_string will be loaded in cgi processing [22:36:53]execute_cgi json_proto POST (null) [22:36:53]execute_cgi path=json_proto method=POST [22:36:53]POST find Content-Length [22:36:53]Host: 172.17.42.131:8080 [22:36:53]Content-Length: 688 [22:36:53]Content-Type: application/json [22:36:53] [22:36:53]POST finish read [22:36:53]Found Content-Length = 688 [22:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 42.750, "sum" : 3300.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3300.00, "total" : 3300.00, "payments": [ { "type": 0, "sum" : 3300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:53]execute_script... [22:36:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 42.750, "sum" : 3300.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3300.00, "total" : 3300.00, "payments": [ { "type": 0, "sum" : 3300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:53]POST & json_proto [22:36:53]process_json_proto [22:36:53]json parsed OK: [22:36:53]protocol is kg_v1.0 [22:36:53]action value=close_receipt [22:36:53]process_action close_receipt [22:36:53]cmd_close_receipt [22:36:53]MH_GetDate [22:36:53]Write to MH i2c: F0 00 00 78 0D 74 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: F0 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: F0 09 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: F0 09 00 78 0D 00 86 7A 19 67 A0 18 CA 66 E5 [22:36:53]GetLastDocTimeStamp 1729722178 [22:36:53]current date 1729723014 [22:36:53]FM_GetShiftState [22:36:53]SAM_PROTO_GetShiftState [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 13 01 00 [22:36:53]Write to MH i2c: E2 08 00 79 0D 80 13 01 00 00 00 00 00 03 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0E 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0E 00 79 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EB [22:36:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_GetShiftState done [22:36:53]FM_GetShiftState done [22:36:53]opened in 1729642525 [22:36:53]opened+sec_in_day 1729728925 [22:36:53]quantity*price = 330030 [22:36:53]sum+1 = 330031 [22:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 3300.00 Внесено: 3300.00 СДАЧА: 0.00 НСП 1% : 29.21 НДС 12% : 350.47 Наличными: 3300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 367 23.10.2024 22:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188909 ФПД: 225465198124328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188909&fm=225465198124328&tin=02508201610067®Number=0000000000100030&sum=330000 [22:36:54]StoreToDocumentArchive [22:36:54]shift 462 fd 188909 [22:36:54]save to /storage/0462/doc_00188909 [22:36:54]save last doc name /storage/0462/doc_00188909 to /storage/kkm_last_doc_name [22:36:54]save OK [22:36:54]Clear old archive folders... [22:36:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:36:54]tlvbuf is 00518070 [22:36:54]SAM_PROTO_ClearQueue [22:36:54]wFMCommunicate request_size=4 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 09 00 00 [22:36:54]Write to MH i2c: E2 08 00 86 0D 80 09 00 00 00 00 00 00 05 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 86 0D 00 90 00 07 [22:36:54]RAPDU: 90 00 [22:36:54]wFMCommunicate OK [22:36:54]SAM_PROTO_ClearQueue done [22:36:54]KKMCreateOFDPacket [22:36:54]OFDProtocolAddRootSTLVToBuf [22:36:54]FM_MakeSignedData [22:36:54]FM_MakeSignedData [22:36:54]SAM_PROTO_SignData [22:36:54]wFMCommunicate request_size=4 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 0D 01 02 [22:36:54]Write to MH i2c: E2 08 00 87 0D 80 0D 01 02 00 00 00 00 0D [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 87 0D 00 90 00 08 [22:36:54]RAPDU: 90 00 [22:36:54]wFMCommunicate OK [22:36:54]wFMCommunicate request_size=255 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE A6 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2E 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 86 7A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E1 02 [22:36:54]Write to MH i2c: E2 02 01 88 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE A6 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2E 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 86 7A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E1 02 00 00 5C [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [22:36:54]RAPDU: 90 00 [22:36:54]wFMCommunicate OK [22:36:54]wFMCommunicate request_size=16 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CD 0F 35 0B 1D 28 [22:36:54]Write to MH i2c: E2 13 00 89 0D 80 0D 02 02 0B 00 00 35 04 06 00 CD 0F 35 0B 1D 28 00 00 C6 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 89 0D 00 90 00 0A [22:36:54]RAPDU: 90 00 [22:36:54]wFMCommunicate OK [22:36:54]wFMCommunicate request_size=4 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 0D 03 02 [22:36:54]Write to MH i2c: E2 08 00 8A 0D 80 0D 03 02 00 00 00 00 12 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 0B 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 0B 00 8A 0D 00 03 62 CC 6E C9 4E 83 8B 90 00 D7 [22:36:54]RAPDU: 03 62 CC 6E C9 4E 83 8B 90 00 [22:36:54]wFMCommunicate OK [22:36:54]SAM_PROTO_SignData done [22:36:54]FM_MakeSignedData done [22:36:54]CreateOFDProtocolMessage [22:36:54]wFMCommunicate request_size=4 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 11 00 00 [22:36:54]Write to MH i2c: E2 08 00 8B 0D 80 11 00 00 00 00 00 00 12 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 17 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 17 00 8B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [22:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:36:55]wFMCommunicate OK [22:36:55]CreateOFDProtocolMessage done [22:36:55]OFDSenderStorePacket 188909 [22:36:55]StoreOFDPacket docnum=188909 [22:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B9 F4 0D 01 71 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE A6 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2E 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 86 7A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E1 02 00 35 04 06 00 CD 0F 35 0B 1D 28 03 62 CC 6E C9 4E 83 8B [22:36:55]CheckFolder [22:36:55]dirname=/storage/ofd_packets [22:36:55]CheckFolder done [22:36:55]ProducePacketName [22:36:55]name=ofd_packets/00188909 [22:36:55]NVStorageSaveData ofd_packets/00188909 [22:36:55]File name is /storage/ofd_packets/00188909 [22:36:55]Write 307 bytes [22:36:55]NVStorageSaveData done [22:36:55]OFDSenderStorePacket done [22:36:55]KKMCreateOFDPacket done [22:36:55]NVStorageSaveData kkm_last_timestamp [22:36:55]File name is /storage/kkm_last_timestamp [22:36:55]Write 4 bytes [22:36:55]NVStorageSaveData done [22:36:55]ExternCall_PrintAddStr [22:36:55]wPrintStart [22:36:55]Write to MH i2c: 01 00 00 8C 0D 99 [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 07 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 07 00 8C 0D 00 00 00 00 00 FF 0F AE [22:36:55]RasterBufferAndPrint [22:36:55]line Счет N : (1)210972 [22:36:55]line ИНН: 02508201610067 [22:36:55]line Контрольно-Кассовый Чек [22:36:55]line ПРОДАЖА [22:36:55]line ТРК (МРК, ГНК) : 11 [22:36:55]line Товар: 2710194210 [22:36:55]line D-ENERGY ДТ-К-5 [22:36:55]line 42.750 * 77.20 [22:36:55]line = 3300.30 [22:36:55]line НДС 12% НСП 1% [22:36:55]line > о реализуемом товаре [22:36:55]line ОКРУГЛЕНИЕ: -0.30 [22:36:55]line ИТОГО: 3300.00 [22:36:55]line Внесено: 3300.00 [22:36:55]line СДАЧА: 0.00 [22:36:55]line НСП 1% : 29.21 [22:36:55]line НДС 12% : 350.47 [22:36:55]line Наличными: 3300.00 [22:36:55]line Безнал.: 0.00 [22:36:55]line Место: АЗС № 86 "Партнер Нефть" [22:36:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:36:55]line СНО: Общий режим [22:36:55]line Чек 367 23.10.2024 22:36 [22:36:55]line Смена: 462 ФФД: 1.0 [22:36:55]line ЗНМ: 0300000155 [22:36:55]line РНМ: 0000000000100030 [22:36:55]line Версия ККМ: 001 [22:36:55]line ФМ: 0000000000965340 [22:36:55]line ФД: 188909 [22:36:55]line ФПД: 225465198124328 [22:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188909&fm=225465198124328&tin=02508201610067®Number=0000000000100030&sum=330000 [22:36:55]OFD Sender: Processing packet 188909 [packets to send 1062, broken 1061] [22:36:55]ProducePacketName [22:36:55]name=ofd_packets/00188909 [22:36:55]OFD Sender: To server: pG, [22:36:55]CommunicateWithHost lk.salyk.kg:30040 [22:36:55]ConnectInit lk.salyk.kg [22:36:55]written 0, free lines is 4095 [22:36:55]Connected sock=9 [22:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B9 F4 0D 01 71 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE A6 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2E 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 86 7A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E1 02 00 35 04 06 00 CD 0F 35 0B 1D 28 03 62 CC 6E C9 4E 83 8B [22:36:55]Write to MH i2c: 01 00 00 B7 0D C4 [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 07 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 07 00 B7 0D 00 00 00 00 00 59 0C 30 [22:36:55]RasterBufferAndPrint [22:36:55]line [22:36:55]line [22:36:55]line [22:36:55]line [22:36:55]line [22:36:55]written 0, free lines is 3165 [22:36:55]MH_Cut [22:36:55]Write to MH i2c: D1 01 00 BE 0D 01 9D [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: D1 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: D1 01 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: D1 01 00 BE 0D 00 9C [22:36:55]Write to MH i2c: 01 00 00 BF 0D CC [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 54 36 47 00 A0 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E1 02 00 F4 03 04 00 70 24 19 67 B6 04 01 00 00 09 3E 70 C7 86 95 1C E8 [22:36:55]CommunicateWithHost err = 0 [22:36:55]CheckOFDResponse [22:36:55]1017 (14) - 77093643461234 [22:36:55]1041 (16) - 0000000000965340 [22:36:55]1040 (4) - 188909 [22:36:55]1012 (4) - 23.10.2024 16:29 [22:36:55]1206 (1) - 0 [22:36:55]OFD Sender: Remove packet 188909 [22:36:55]ProducePacketName [22:36:55]name=ofd_packets/00188909 [22:36:55]NVStorageDeleteData [22:36:56]OFD Sender: No OFD packet to send [22:36:57]*** Cut start [22:36:57]*** Partial cut [22:36:57]*** CUTSNS_PIN = 1 [22:36:57]*** CUTSNS_PIN = 0 [22:36:57]*** Brake cut motor [22:36:57]Read from MH i2c: 01 [22:36:57]MH_I2C_Read... [22:36:57]*** Stop cut motor [22:36:57]*** Cut end [22:36:57]Read from MH i2c: 01 07 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 FF 0F E1 [22:36:57]process_action close_receipt done [22:36:57]requested_data is exist [22:36:57]produce_requested_data [22:36:57]requested_item fm.sn is exist - process it [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 11 00 00 [22:36:57]Write to MH i2c: E2 08 00 C0 0D 80 11 00 00 00 00 00 00 47 [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 17 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 17 00 C0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [22:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:36:57]wFMCommunicate OK [22:36:57]requested_item fd.num is exist - process it [22:36:57]SAM_PROTO_GetFieldsCounters [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 13 00 00 [22:36:57]Write to MH i2c: E2 08 00 C1 0D 80 13 00 00 00 00 00 00 4A [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 62 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 62 00 C1 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [22:36:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:57]wFMCommunicate OK [22:36:57]SAM_PROTO_GetFieldsCounters done [22:36:57]requested_item shift.num is exist - process it [22:36:57]requested_item shift.opened is exist - process it [22:36:57]req_shift_opened [22:36:57]FM_GetShiftState [22:36:57]SAM_PROTO_GetShiftState [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 13 01 00 [22:36:57]Write to MH i2c: E2 08 00 C2 0D 80 13 01 00 00 00 00 00 4C [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:58]Read from MH i2c: E2 [22:36:58]MH_I2C_Read... [22:36:58]Read from MH i2c: E2 0E 00 [22:36:58]MH_I2C_Read... [22:36:58]Read from MH i2c: E2 0E 00 C2 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 34 [22:36:58]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:36:58]wFMCommunicate OK [22:36:58]SAM_PROTO_GetShiftState done [22:36:58]FM_GetShiftState done [22:36:58]req_shift_opened done [22:36:58]requested_item shift.open_date is exist - process it [22:36:58]req_shift_open_date [22:36:58]req_shift_open_date done [22:36:58]produce_requested_data done [22:36:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188909,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:36:58]process_action_free close_receipt [22:36:58]json_value_free [22:36:58]json_value_free done [22:36:58]process_json_proto returns [22:36:58]Send response to host [22:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188909,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:36:58]free response buf [22:36:58]execute_script done [22:36:58]execute_script returns [22:36:58]free content buf [22:36:58]Sock 10.Close socket [22:36:58]Sock 10.Thread stoped [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:45]accept exits with 8 [22:37:45]New connection [22:37:45]New thread 3066809700 created [22:37:45]Thread 3066953060 joined [22:37:45]Waiting for new connection... [22:37:45] Sock 8.Parse request [22:37:45]Sock 8.Check first char [22:37:45]Sock 8.First char is OK [22:37:45]request: POST /json_proto HTTP/1.0 [22:37:45]Method: POST [22:37:45]URL: /json_proto [22:37:45]Method is POST - this is cgi request [22:37:45]url: /json_proto [22:37:45]query_string will be loaded in cgi processing [22:37:45]execute_cgi json_proto POST (null) [22:37:45]execute_cgi path=json_proto method=POST [22:37:45]POST find Content-Length [22:37:45]Host: 172.17.42.131:8080 [22:37:45]Content-Length: 677 [22:37:45]Content-Type: application/json [22:37:45] [22:37:45]POST finish read [22:37:45]Found Content-Length = 677 [22:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:45]execute_script... [22:37:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:45]POST & json_proto [22:37:45]process_json_proto [22:37:45]json parsed OK: [22:37:45]protocol is kg_v1.0 [22:37:45]action value=close_receipt [22:37:45]process_action close_receipt [22:37:45]cmd_close_receipt [22:37:45]MH_GetDate [22:37:45]Write to MH i2c: F0 00 00 C3 0D BF [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: F0 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: F0 09 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: F0 09 00 C3 0D 00 BB 7A 19 67 A0 18 CA 66 65 [22:37:45]GetLastDocTimeStamp 1729723014 [22:37:45]current date 1729723067 [22:37:45]FM_GetShiftState [22:37:45]SAM_PROTO_GetShiftState [22:37:45]wFMCommunicate request_size=4 [22:37:45]MH_SAM_APDU [22:37:45]CAPDU: 80 13 01 00 [22:37:45]Write to MH i2c: E2 08 00 C4 0D 80 13 01 00 00 00 00 00 4E [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:45]Read from MH i2c: E2 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 0E 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 0E 00 C4 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 36 [22:37:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:37:45]wFMCommunicate OK [22:37:45]SAM_PROTO_GetShiftState done [22:37:45]FM_GetShiftState done [22:37:45]opened in 1729642525 [22:37:45]opened+sec_in_day 1729728925 [22:37:45]quantity*price = 50041 [22:37:45]sum+1 = 50042 [22:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 368 23.10.2024 22:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188910 ФПД: 92590515500981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188910&fm=92590515500981&tin=02508201610067®Number=0000000000100030&sum=50000 [22:37:46]StoreToDocumentArchive [22:37:46]shift 462 fd 188910 [22:37:46]save to /storage/0462/doc_00188910 [22:37:46]save last doc name /storage/0462/doc_00188910 to /storage/kkm_last_doc_name [22:37:46]save OK [22:37:46]Clear old archive folders... [22:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:46]tlvbuf is 004FEC80 [22:37:46]SAM_PROTO_ClearQueue [22:37:46]wFMCommunicate request_size=4 [22:37:46]MH_SAM_APDU [22:37:46]CAPDU: 80 09 00 00 [22:37:46]Write to MH i2c: E2 08 00 D1 0D 80 09 00 00 00 00 00 00 50 [22:37:46]Write i2c OK [22:37:46]MH_I2C_Read... [22:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:47]Read from MH i2c: E2 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 03 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 03 00 D1 0D 00 90 00 52 [22:37:47]RAPDU: 90 00 [22:37:47]wFMCommunicate OK [22:37:47]SAM_PROTO_ClearQueue done [22:37:47]KKMCreateOFDPacket [22:37:47]OFDProtocolAddRootSTLVToBuf [22:37:47]FM_MakeSignedData [22:37:47]FM_MakeSignedData [22:37:47]SAM_PROTO_SignData [22:37:47]wFMCommunicate request_size=4 [22:37:47]MH_SAM_APDU [22:37:47]CAPDU: 80 0D 01 02 [22:37:47]Write to MH i2c: E2 08 00 D2 0D 80 0D 01 02 00 00 00 00 58 [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:47]Read from MH i2c: E2 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 03 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [22:37:47]RAPDU: 90 00 [22:37:47]wFMCommunicate OK [22:37:47]wFMCommunicate request_size=255 [22:37:47]MH_SAM_APDU [22:37:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 BB 7A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E1 02 00 35 04 06 00 54 [22:37:47]Write to MH i2c: E2 02 01 D3 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 BB 7A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E1 02 00 35 04 06 00 54 00 00 E5 [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:47]Read from MH i2c: E2 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 03 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [22:37:47]RAPDU: 90 00 [22:37:47]wFMCommunicate OK [22:37:47]wFMCommunicate request_size=10 [22:37:47]MH_SAM_APDU [22:37:47]CAPDU: 80 0D 02 02 05 35 E8 C9 37 B5 [22:37:47]Write to MH i2c: E2 0D 00 D4 0D 80 0D 02 02 05 00 35 E8 C9 37 B5 00 00 37 [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:47]Read from MH i2c: E2 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 03 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [22:37:47]RAPDU: 90 00 [22:37:47]wFMCommunicate OK [22:37:47]wFMCommunicate request_size=4 [22:37:47]MH_SAM_APDU [22:37:47]CAPDU: 80 0D 03 02 [22:37:47]Write to MH i2c: E2 08 00 D5 0D 80 0D 03 02 00 00 00 00 5D [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:47]Read from MH i2c: E2 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 0B 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 0B 00 D5 0D 00 4E 95 32 B8 DF 15 2A 67 90 00 B0 [22:37:47]RAPDU: 4E 95 32 B8 DF 15 2A 67 90 00 [22:37:47]wFMCommunicate OK [22:37:47]SAM_PROTO_SignData done [22:37:47]FM_MakeSignedData done [22:37:47]CreateOFDProtocolMessage [22:37:47]wFMCommunicate request_size=4 [22:37:47]MH_SAM_APDU [22:37:47]CAPDU: 80 11 00 00 [22:37:47]Write to MH i2c: E2 08 00 D6 0D 80 11 00 00 00 00 00 00 5D [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:47]Read from MH i2c: E2 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 17 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 17 00 D6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [22:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:37:47]wFMCommunicate OK [22:37:47]CreateOFDProtocolMessage done [22:37:47]OFDSenderStorePacket 188910 [22:37:47]StoreOFDPacket docnum=188910 [22:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A 74 07 01 DF 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 BB 7A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E1 02 00 35 04 06 00 54 35 E8 C9 37 B5 4E 95 32 B8 DF 15 2A 67 [22:37:47]CheckFolder [22:37:47]dirname=/storage/ofd_packets [22:37:47]CheckFolder done [22:37:47]ProducePacketName [22:37:47]name=ofd_packets/00188910 [22:37:47]NVStorageSaveData ofd_packets/00188910 [22:37:47]File name is /storage/ofd_packets/00188910 [22:37:47]Write 301 bytes [22:37:47]NVStorageSaveData done [22:37:47]OFDSenderStorePacket done [22:37:47]KKMCreateOFDPacket done [22:37:47]NVStorageSaveData kkm_last_timestamp [22:37:47]File name is /storage/kkm_last_timestamp [22:37:47]Write 4 bytes [22:37:47]NVStorageSaveData done [22:37:47]ExternCall_PrintAddStr [22:37:47]wPrintStart [22:37:47]Write to MH i2c: 01 00 00 D7 0D E4 [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: 01 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: 01 07 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: 01 07 00 D7 0D 00 00 00 00 00 FF 0F F9 [22:37:47]RasterBufferAndPrint [22:37:47]line Счет N : (1)210973 [22:37:47]line ИНН: 02508201610067 [22:37:47]line Контрольно-Кассовый Чек [22:37:47]line ПРОДАЖА [22:37:47]line ТРК (МРК, ГНК) : 42 [22:37:47]line Товар: 2710124130 [22:37:47]line Аи-92-К-3 [22:37:47]line 7.480 * 66.90 [22:37:47]line = 500.41 [22:37:47]line НДС 12% НСП 1% [22:37:47]line > о реализуемом товаре [22:37:47]line ОКРУГЛЕНИЕ: -0.41 [22:37:47]line ИТОГО: 500.00 [22:37:47]line Внесено: 500.00 [22:37:47]line СДАЧА: 0.00 [22:37:47]line НСП 1% : 4.43 [22:37:47]line НДС 12% : 53.14 [22:37:47]line Наличными: 500.00 [22:37:47]line Безнал.: 0.00 [22:37:47]line Место: АЗС № 86 "Партнер Нефть" [22:37:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:37:47]line СНО: Общий режим [22:37:47]line Чек 368 23.10.2024 22:37 [22:37:47]line Смена: 462 ФФД: 1.0 [22:37:47]line ЗНМ: 0300000155 [22:37:47]line РНМ: 0000000000100030 [22:37:47]line Версия ККМ: 001 [22:37:47]line ФМ: 0000000000965340 [22:37:47]line ФД: 188910 [22:37:47]line ФПД: 92590515500981 [22:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188910&fm=92590515500981&tin=02508201610067®Number=0000000000100030&sum=50000 [22:37:47]written 0, free lines is 4095 [22:37:47]OFD Sender: Processing packet 188910 [packets to send 1062, broken 1061] [22:37:47]ProducePacketName [22:37:47]name=ofd_packets/00188910 [22:37:47]OFD Sender: To server: pG, [22:37:47]CommunicateWithHost lk.salyk.kg:30040 [22:37:47]ConnectInit lk.salyk.kg [22:37:47]Connected sock=10 [22:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A 74 07 01 DF 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 BB 7A 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E1 02 00 35 04 06 00 54 35 E8 C9 37 B5 4E 95 32 B8 DF 15 2A 67 [22:37:47]Write to MH i2c: 01 00 00 02 0E 10 [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: 01 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: 01 07 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: 01 07 00 02 0E 00 00 00 00 00 4F 0C 72 [22:37:47]RasterBufferAndPrint [22:37:47]line [22:37:47]line [22:37:47]line [22:37:47]line [22:37:47]line [22:37:47]written 0, free lines is 3154 [22:37:47]MH_Cut [22:37:47]Write to MH i2c: D1 01 00 09 0E 01 E9 [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: D1 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: D1 01 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: D1 01 00 09 0E 00 E8 [22:37:47]Write to MH i2c: 01 00 00 0A 0E 18 [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 5C 47 00 D5 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E1 02 00 F4 03 04 00 A4 24 19 67 B6 04 01 00 00 BB 9B 5E B6 E4 4A 0E 4F [22:37:48]CommunicateWithHost err = 0 [22:37:48]CheckOFDResponse [22:37:48]1017 (14) - 77093643461234 [22:37:48]1041 (16) - 0000000000965340 [22:37:48]1040 (4) - 188910 [22:37:48]1012 (4) - 23.10.2024 16:30 [22:37:48]1206 (1) - 0 [22:37:48]OFD Sender: Remove packet 188910 [22:37:48]ProducePacketName [22:37:48]name=ofd_packets/00188910 [22:37:48]NVStorageDeleteData [22:37:48]OFD Sender: No OFD packet to send [22:37:49]*** Cut start [22:37:49]*** Partial cut [22:37:49]*** CUTSNS_PIN = 1 [22:37:49]*** CUTSNS_PIN = 0 [22:37:49]*** Brake cut motor [22:37:49]Read from MH i2c: 01 [22:37:49]MH_I2C_Read... [22:37:49]*** Stop cut motor [22:37:49]*** Cut end [22:37:49]Read from MH i2c: 01 07 00 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 FF 0F 2D [22:37:49]process_action close_receipt done [22:37:49]requested_data is exist [22:37:49]produce_requested_data [22:37:49]requested_item fm.sn is exist - process it [22:37:49]wFMCommunicate request_size=4 [22:37:49]MH_SAM_APDU [22:37:49]CAPDU: 80 11 00 00 [22:37:49]Write to MH i2c: E2 08 00 0B 0E 80 11 00 00 00 00 00 00 93 [22:37:49]Write i2c OK [22:37:49]MH_I2C_Read... [22:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:49]Read from MH i2c: E2 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: E2 17 00 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: E2 17 00 0B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [22:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:37:49]wFMCommunicate OK [22:37:49]requested_item fd.num is exist - process it [22:37:49]SAM_PROTO_GetFieldsCounters [22:37:49]wFMCommunicate request_size=4 [22:37:49]MH_SAM_APDU [22:37:49]CAPDU: 80 13 00 00 [22:37:49]Write to MH i2c: E2 08 00 0C 0E 80 13 00 00 00 00 00 00 96 [22:37:49]Write i2c OK [22:37:49]MH_I2C_Read... [22:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:50]Read from MH i2c: E2 [22:37:50]MH_I2C_Read... [22:37:50]Read from MH i2c: E2 62 00 [22:37:50]MH_I2C_Read... [22:37:50]Read from MH i2c: E2 62 00 0C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [22:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:50]wFMCommunicate OK [22:37:50]SAM_PROTO_GetFieldsCounters done [22:37:50]requested_item shift.num is exist - process it [22:37:50]requested_item shift.opened is exist - process it [22:37:50]req_shift_opened [22:37:50]FM_GetShiftState [22:37:50]SAM_PROTO_GetShiftState [22:37:50]wFMCommunicate request_size=4 [22:37:50]MH_SAM_APDU [22:37:50]CAPDU: 80 13 01 00 [22:37:50]Write to MH i2c: E2 08 00 0D 0E 80 13 01 00 00 00 00 00 98 [22:37:50]Write i2c OK [22:37:50]MH_I2C_Read... [22:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:50]Read from MH i2c: E2 [22:37:50]MH_I2C_Read... [22:37:50]Read from MH i2c: E2 0E 00 [22:37:50]MH_I2C_Read... [22:37:50]Read from MH i2c: E2 0E 00 0D 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 80 [22:37:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:37:50]wFMCommunicate OK [22:37:50]SAM_PROTO_GetShiftState done [22:37:50]FM_GetShiftState done [22:37:50]req_shift_opened done [22:37:50]requested_item shift.open_date is exist - process it [22:37:50]req_shift_open_date [22:37:50]req_shift_open_date done [22:37:50]produce_requested_data done [22:37:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188910,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:37:50]process_action_free close_receipt [22:37:50]json_value_free [22:37:50]json_value_free done [22:37:50]process_json_proto returns [22:37:50]Send response to host [22:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188910,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:37:50]free response buf [22:37:50]execute_script done [22:37:50]execute_script returns [22:37:50]free content buf [22:37:50]Sock 8.Close socket [22:37:50]Sock 8.Thread stoped [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:10]accept exits with 9 [22:41:10]New connection [22:41:10]New thread 3066953060 created [22:41:10]Thread 3066809700 joined [22:41:10]Waiting for new connection... [22:41:10] Sock 9.Parse request [22:41:10]Sock 9.Check first char [22:41:10]Sock 9.First char is OK [22:41:10]request: POST /json_proto HTTP/1.0 [22:41:10]Method: POST [22:41:10]URL: /json_proto [22:41:10]Method is POST - this is cgi request [22:41:10]url: /json_proto [22:41:10]query_string will be loaded in cgi processing [22:41:10]execute_cgi json_proto POST (null) [22:41:10]execute_cgi path=json_proto method=POST [22:41:10]POST find Content-Length [22:41:10]Host: 172.17.42.131:8080 [22:41:10]Content-Length: 766 [22:41:10]Content-Type: application/json [22:41:10] [22:41:10]POST finish read [22:41:10]Found Content-Length = 766 [22:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:10]execute_script... [22:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:10]POST & json_proto [22:41:10]process_json_proto [22:41:10]json parsed OK: [22:41:10]protocol is kg_v1.0 [22:41:10]action value=close_receipt [22:41:10]process_action close_receipt [22:41:10]cmd_close_receipt [22:41:10]MH_GetDate [22:41:10]Write to MH i2c: F0 00 00 0E 0E 0B [22:41:10]Write i2c OK [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: F0 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: F0 09 00 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: F0 09 00 0E 0E 00 87 7B 19 67 A0 18 CA 66 7E [22:41:10]GetLastDocTimeStamp 1729723067 [22:41:10]current date 1729723271 [22:41:10]FM_GetShiftState [22:41:10]SAM_PROTO_GetShiftState [22:41:10]wFMCommunicate request_size=4 [22:41:10]MH_SAM_APDU [22:41:10]CAPDU: 80 13 01 00 [22:41:10]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [22:41:10]Write i2c OK [22:41:10]MH_I2C_Read... [22:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:10]Read from MH i2c: E2 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 0E 00 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 82 [22:41:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:41:10]wFMCommunicate OK [22:41:10]SAM_PROTO_GetShiftState done [22:41:10]FM_GetShiftState done [22:41:10]opened in 1729642525 [22:41:10]opened+sec_in_day 1729728925 [22:41:10]quantity*price = 50010 [22:41:10]sum+1 = 50012 [22:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 369 23.10.2024 22:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188911 ФПД: 90308570173388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188911&fm=90308570173388&tin=02508201610067®Number=0000000000100030&sum=50011 [22:41:11]StoreToDocumentArchive [22:41:11]shift 462 fd 188911 [22:41:11]save to /storage/0462/doc_00188911 [22:41:11]save last doc name /storage/0462/doc_00188911 to /storage/kkm_last_doc_name [22:41:11]save OK [22:41:11]Clear old archive folders... [22:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:11]tlvbuf is 004B7B30 [22:41:11]SAM_PROTO_ClearQueue [22:41:11]wFMCommunicate request_size=4 [22:41:11]MH_SAM_APDU [22:41:11]CAPDU: 80 09 00 00 [22:41:11]Write to MH i2c: E2 08 00 1C 0E 80 09 00 00 00 00 00 00 9C [22:41:11]Write i2c OK [22:41:11]MH_I2C_Read... [22:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:11]Read from MH i2c: E2 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 03 00 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [22:41:11]RAPDU: 90 00 [22:41:11]wFMCommunicate OK [22:41:11]SAM_PROTO_ClearQueue done [22:41:11]KKMCreateOFDPacket [22:41:11]OFDProtocolAddRootSTLVToBuf [22:41:11]FM_MakeSignedData [22:41:11]FM_MakeSignedData [22:41:11]SAM_PROTO_SignData [22:41:11]wFMCommunicate request_size=4 [22:41:11]MH_SAM_APDU [22:41:11]CAPDU: 80 0D 01 02 [22:41:11]Write to MH i2c: E2 08 00 1D 0E 80 0D 01 02 00 00 00 00 A4 [22:41:11]Write i2c OK [22:41:11]MH_I2C_Read... [22:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:11]Read from MH i2c: E2 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 03 00 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [22:41:11]RAPDU: 90 00 [22:41:11]wFMCommunicate OK [22:41:11]wFMCommunicate request_size=255 [22:41:11]MH_SAM_APDU [22:41:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 87 7B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E1 02 00 35 04 06 00 52 [22:41:11]Write to MH i2c: E2 02 01 1E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 87 7B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E1 02 00 35 04 06 00 52 00 00 EC [22:41:11]Write i2c OK [22:41:11]MH_I2C_Read... [22:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:11]Read from MH i2c: E2 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 03 00 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [22:41:11]RAPDU: 90 00 [22:41:11]wFMCommunicate OK [22:41:11]wFMCommunicate request_size=10 [22:41:11]MH_SAM_APDU [22:41:11]CAPDU: 80 0D 02 02 05 22 9A 3E CF CC [22:41:11]Write to MH i2c: E2 0D 00 1F 0E 80 0D 02 02 05 00 22 9A 3E CF CC 00 00 46 [22:41:11]Write i2c OK [22:41:11]MH_I2C_Read... [22:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:11]Read from MH i2c: E2 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 03 00 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [22:41:11]RAPDU: 90 00 [22:41:11]wFMCommunicate OK [22:41:11]wFMCommunicate request_size=4 [22:41:11]MH_SAM_APDU [22:41:11]CAPDU: 80 0D 03 02 [22:41:11]Write to MH i2c: E2 08 00 20 0E 80 0D 03 02 00 00 00 00 A9 [22:41:11]Write i2c OK [22:41:11]MH_I2C_Read... [22:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:11]Read from MH i2c: E2 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 0B 00 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 0B 00 20 0E 00 55 05 7D 2C 9F 3B E3 0E 90 00 78 [22:41:11]RAPDU: 55 05 7D 2C 9F 3B E3 0E 90 00 [22:41:11]wFMCommunicate OK [22:41:11]SAM_PROTO_SignData done [22:41:11]FM_MakeSignedData done [22:41:11]CreateOFDProtocolMessage [22:41:11]wFMCommunicate request_size=4 [22:41:11]MH_SAM_APDU [22:41:11]CAPDU: 80 11 00 00 [22:41:11]Write to MH i2c: E2 08 00 21 0E 80 11 00 00 00 00 00 00 A9 [22:41:11]Write i2c OK [22:41:11]MH_I2C_Read... [22:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:11]Read from MH i2c: E2 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 17 00 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: E2 17 00 21 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [22:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:41:11]wFMCommunicate OK [22:41:11]CreateOFDProtocolMessage done [22:41:11]OFDSenderStorePacket 188911 [22:41:11]StoreOFDPacket docnum=188911 [22:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 B9 07 01 CF 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 87 7B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E1 02 00 35 04 06 00 52 22 9A 3E CF CC 55 05 7D 2C 9F 3B E3 0E [22:41:11]CheckFolder [22:41:11]dirname=/storage/ofd_packets [22:41:11]CheckFolder done [22:41:11]ProducePacketName [22:41:11]name=ofd_packets/00188911 [22:41:11]NVStorageSaveData ofd_packets/00188911 [22:41:11]File name is /storage/ofd_packets/00188911 [22:41:11]Write 301 bytes [22:41:11]NVStorageSaveData done [22:41:11]OFDSenderStorePacket done [22:41:11]KKMCreateOFDPacket done [22:41:11]NVStorageSaveData kkm_last_timestamp [22:41:11]File name is /storage/kkm_last_timestamp [22:41:11]Write 4 bytes [22:41:11]NVStorageSaveData done [22:41:11]ExternCall_PrintAddStr [22:41:11]wPrintStart [22:41:11]Write to MH i2c: 01 00 00 22 0E 30 [22:41:11]Write i2c OK [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: 01 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: 01 07 00 [22:41:11]MH_I2C_Read... [22:41:11]Read from MH i2c: 01 07 00 22 0E 00 00 00 00 00 FF 0F 45 [22:41:11]RasterBufferAndPrint [22:41:11]line Счет N : (1)210974 [22:41:11]line ИНН: 02508201610067 [22:41:11]line Контрольно-Кассовый Чек [22:41:11]line ПРОДАЖА [22:41:11]line ТРК (МРК, ГНК) : 33 [22:41:11]line Товар: 2710124500 [22:41:11]line Аи-95-К-3 [22:41:11]line 6.740 * 74.20 [22:41:11]line = 500.11 [22:41:11]line НДС 12% НСП 1% [22:41:11]line > о реализуемом товаре [22:41:11]line ИТОГО: 500.11 [22:41:11]line НСП 1% : 4.43 [22:41:11]line НДС 12% : 53.11 [22:41:11]line Наличными: 0.00 [22:41:11]line Безнал.: 500.11 [22:41:11]line Место: АЗС № 86 "Партнер Нефть" [22:41:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:41:11]line СНО: Общий режим [22:41:11]line Чек 369 23.10.2024 22:41 [22:41:11]line Смена: 462 ФФД: 1.0 [22:41:11]line ЗНМ: 0300000155 [22:41:11]line РНМ: 0000000000100030 [22:41:11]line Версия ККМ: 001 [22:41:11]line Платежная система: Mbank [22:41:11]line ФМ: 0000000000965340 [22:41:11]line ФД: 188911 [22:41:11]line ФПД: 90308570173388 [22:41:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188911&fm=90308570173388&tin=02508201610067®Number=0000000000100030&sum=50011 [22:41:11]OFD Sender: Processing packet 188911 [packets to send 1062, broken 1061] [22:41:11]ProducePacketName [22:41:11]name=ofd_packets/00188911 [22:41:11]OFD Sender: To server: pG, [22:41:11]CommunicateWithHost lk.salyk.kg:30040 [22:41:11]ConnectInit lk.salyk.kg [22:41:11]written 0, free lines is 4095 [22:41:12]Connected sock=11 [22:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 B9 07 01 CF 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 87 7B 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E1 02 00 35 04 06 00 52 22 9A 3E CF CC 55 05 7D 2C 9F 3B E3 0E [22:41:12]Write to MH i2c: 01 00 00 4B 0E 59 [22:41:12]Write i2c OK [22:41:12]MH_I2C_Read... [22:41:12]Read from MH i2c: 01 [22:41:12]MH_I2C_Read... [22:41:12]Read from MH i2c: 01 07 00 [22:41:12]MH_I2C_Read... [22:41:12]Read from MH i2c: 01 07 00 4B 0E 00 00 00 00 00 7B 0C E7 [22:41:12]RasterBufferAndPrint [22:41:12]line [22:41:12]line [22:41:12]line [22:41:12]line [22:41:12]line [22:41:12]written 0, free lines is 3200 [22:41:12]MH_Cut [22:41:12]Write to MH i2c: D1 01 00 52 0E 01 32 [22:41:12]Write i2c OK [22:41:12]MH_I2C_Read... [22:41:12]Read from MH i2c: D1 [22:41:12]MH_I2C_Read... [22:41:12]Read from MH i2c: D1 01 00 [22:41:12]MH_I2C_Read... [22:41:12]Read from MH i2c: D1 01 00 52 0E 00 31 [22:41:12]Write to MH i2c: 01 00 00 53 0E 61 [22:41:12]Write i2c OK [22:41:12]MH_I2C_Read... [22:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 2F 47 00 D4 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E1 02 00 F4 03 04 00 71 25 19 67 B6 04 01 00 00 98 8B 8B 20 D6 95 6A A1 [22:41:12]CommunicateWithHost err = 0 [22:41:12]CheckOFDResponse [22:41:12]1017 (14) - 77093643461234 [22:41:12]1041 (16) - 0000000000965340 [22:41:12]1040 (4) - 188911 [22:41:12]1012 (4) - 23.10.2024 16:33 [22:41:12]1206 (1) - 0 [22:41:12]OFD Sender: Remove packet 188911 [22:41:12]ProducePacketName [22:41:12]name=ofd_packets/00188911 [22:41:12]NVStorageDeleteData [22:41:13]OFD Sender: No OFD packet to send [22:41:13]*** Cut start [22:41:13]*** Partial cut [22:41:13]*** CUTSNS_PIN = 1 [22:41:13]*** CUTSNS_PIN = 0 [22:41:13]*** Brake cut motor [22:41:14]Read from MH i2c: 01 [22:41:14]MH_I2C_Read... [22:41:14]*** Stop cut motor [22:41:14]*** Cut end [22:41:14]Read from MH i2c: 01 07 00 [22:41:14]MH_I2C_Read... [22:41:14]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 FF 0F 76 [22:41:14]process_action close_receipt done [22:41:14]requested_data is exist [22:41:14]produce_requested_data [22:41:14]requested_item fm.sn is exist - process it [22:41:14]wFMCommunicate request_size=4 [22:41:14]MH_SAM_APDU [22:41:14]CAPDU: 80 11 00 00 [22:41:14]Write to MH i2c: E2 08 00 54 0E 80 11 00 00 00 00 00 00 DC [22:41:14]Write i2c OK [22:41:14]MH_I2C_Read... [22:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:14]Read from MH i2c: E2 [22:41:14]MH_I2C_Read... [22:41:14]Read from MH i2c: E2 17 00 [22:41:14]MH_I2C_Read... [22:41:14]Read from MH i2c: E2 17 00 54 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [22:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:41:14]wFMCommunicate OK [22:41:14]requested_item fd.num is exist - process it [22:41:14]SAM_PROTO_GetFieldsCounters [22:41:14]wFMCommunicate request_size=4 [22:41:14]MH_SAM_APDU [22:41:14]CAPDU: 80 13 00 00 [22:41:14]Write to MH i2c: E2 08 00 55 0E 80 13 00 00 00 00 00 00 DF [22:41:14]Write i2c OK [22:41:14]MH_I2C_Read... [22:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:14]Read from MH i2c: E2 [22:41:14]MH_I2C_Read... [22:41:14]Read from MH i2c: E2 62 00 [22:41:14]MH_I2C_Read... [22:41:14]Read from MH i2c: E2 62 00 55 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [22:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:14]wFMCommunicate OK [22:41:14]SAM_PROTO_GetFieldsCounters done [22:41:14]requested_item shift.num is exist - process it [22:41:14]requested_item shift.opened is exist - process it [22:41:14]req_shift_opened [22:41:14]FM_GetShiftState [22:41:14]SAM_PROTO_GetShiftState [22:41:14]wFMCommunicate request_size=4 [22:41:14]MH_SAM_APDU [22:41:14]CAPDU: 80 13 01 00 [22:41:14]Write to MH i2c: E2 08 00 56 0E 80 13 01 00 00 00 00 00 E1 [22:41:14]Write i2c OK [22:41:14]MH_I2C_Read... [22:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:14]Read from MH i2c: E2 [22:41:14]MH_I2C_Read... [22:41:14]Read from MH i2c: E2 0E 00 [22:41:14]MH_I2C_Read... [22:41:14]Read from MH i2c: E2 0E 00 56 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C9 [22:41:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:41:14]wFMCommunicate OK [22:41:14]SAM_PROTO_GetShiftState done [22:41:14]FM_GetShiftState done [22:41:14]req_shift_opened done [22:41:14]requested_item shift.open_date is exist - process it [22:41:14]req_shift_open_date [22:41:14]req_shift_open_date done [22:41:14]produce_requested_data done [22:41:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188911,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:41:14]process_action_free close_receipt [22:41:14]json_value_free [22:41:14]json_value_free done [22:41:14]process_json_proto returns [22:41:14]Send response to host [22:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188911,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:41:14]free response buf [22:41:14]execute_script done [22:41:14]execute_script returns [22:41:14]free content buf [22:41:14]Sock 9.Close socket [22:41:14]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:29]accept exits with 8 [22:53:29]New connection [22:53:29]New thread 3066809700 created [22:53:29]Thread 3066953060 joined [22:53:29]Waiting for new connection... [22:53:29] Sock 8.Parse request [22:53:29]Sock 8.Check first char [22:53:29]Sock 8.First char is OK [22:53:29]request: POST /json_proto HTTP/1.0 [22:53:29]Method: POST [22:53:29]URL: /json_proto [22:53:29]Method is POST - this is cgi request [22:53:29]url: /json_proto [22:53:29]query_string will be loaded in cgi processing [22:53:29]execute_cgi json_proto POST (null) [22:53:29]execute_cgi path=json_proto method=POST [22:53:29]POST find Content-Length [22:53:29]Host: 172.17.42.131:8080 [22:53:29]Content-Length: 679 [22:53:29]Content-Type: application/json [22:53:29] [22:53:29]POST finish read [22:53:29]Found Content-Length = 679 [22:53:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:29]execute_script... [22:53:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:29]POST & json_proto [22:53:29]process_json_proto [22:53:29]json parsed OK: [22:53:29]protocol is kg_v1.0 [22:53:29]action value=close_receipt [22:53:29]process_action close_receipt [22:53:29]cmd_close_receipt [22:53:29]MH_GetDate [22:53:29]Write to MH i2c: F0 00 00 57 0E 54 [22:53:29]Write i2c OK [22:53:29]MH_I2C_Read... [22:53:29]Read from MH i2c: F0 [22:53:29]MH_I2C_Read... [22:53:29]Read from MH i2c: F0 09 00 [22:53:29]MH_I2C_Read... [22:53:29]Read from MH i2c: F0 09 00 57 0E 00 6A 7E 19 67 A0 18 CA 66 AD [22:53:29]GetLastDocTimeStamp 1729723271 [22:53:29]current date 1729724010 [22:53:29]FM_GetShiftState [22:53:29]SAM_PROTO_GetShiftState [22:53:29]wFMCommunicate request_size=4 [22:53:29]MH_SAM_APDU [22:53:29]CAPDU: 80 13 01 00 [22:53:29]Write to MH i2c: E2 08 00 58 0E 80 13 01 00 00 00 00 00 E3 [22:53:29]Write i2c OK [22:53:29]MH_I2C_Read... [22:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:29]Read from MH i2c: E2 [22:53:29]MH_I2C_Read... [22:53:29]Read from MH i2c: E2 0E 00 [22:53:29]MH_I2C_Read... [22:53:29]Read from MH i2c: E2 0E 00 58 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 CB [22:53:29]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:53:29]wFMCommunicate OK [22:53:29]SAM_PROTO_GetShiftState done [22:53:29]FM_GetShiftState done [22:53:29]opened in 1729642525 [22:53:29]opened+sec_in_day 1729728925 [22:53:29]quantity*price = 80061 [22:53:29]sum+1 = 80063 [22:53:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 5000.00 СДАЧА: 4200.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 370 23.10.2024 22:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188912 ФПД: 66671955562577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225330&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188912&fm=66671955562577&tin=02508201610067®Number=0000000000100030&sum=80000 [22:53:30]StoreToDocumentArchive [22:53:30]shift 462 fd 188912 [22:53:30]save to /storage/0462/doc_00188912 [22:53:30]save last doc name /storage/0462/doc_00188912 to /storage/kkm_last_doc_name [22:53:30]save OK [22:53:30]Clear old archive folders... [22:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:30]tlvbuf is 004D10B0 [22:53:30]SAM_PROTO_ClearQueue [22:53:30]wFMCommunicate request_size=4 [22:53:30]MH_SAM_APDU [22:53:30]CAPDU: 80 09 00 00 [22:53:30]Write to MH i2c: E2 08 00 65 0E 80 09 00 00 00 00 00 00 E5 [22:53:30]Write i2c OK [22:53:30]MH_I2C_Read... [22:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:30]Read from MH i2c: E2 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 03 00 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [22:53:30]RAPDU: 90 00 [22:53:30]wFMCommunicate OK [22:53:30]SAM_PROTO_ClearQueue done [22:53:30]KKMCreateOFDPacket [22:53:30]OFDProtocolAddRootSTLVToBuf [22:53:30]FM_MakeSignedData [22:53:30]FM_MakeSignedData [22:53:30]SAM_PROTO_SignData [22:53:30]wFMCommunicate request_size=4 [22:53:30]MH_SAM_APDU [22:53:30]CAPDU: 80 0D 01 02 [22:53:30]Write to MH i2c: E2 08 00 66 0E 80 0D 01 02 00 00 00 00 ED [22:53:30]Write i2c OK [22:53:30]MH_I2C_Read... [22:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:30]Read from MH i2c: E2 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 03 00 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [22:53:30]RAPDU: 90 00 [22:53:30]wFMCommunicate OK [22:53:30]wFMCommunicate request_size=255 [22:53:30]MH_SAM_APDU [22:53:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 6A 7E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E1 02 00 35 04 06 00 3C [22:53:30]Write to MH i2c: E2 02 01 67 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 6A 7E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E1 02 00 35 04 06 00 3C 00 00 86 [22:53:30]Write i2c OK [22:53:30]MH_I2C_Read... [22:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:30]Read from MH i2c: E2 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 03 00 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [22:53:30]RAPDU: 90 00 [22:53:30]wFMCommunicate OK [22:53:30]wFMCommunicate request_size=10 [22:53:30]MH_SAM_APDU [22:53:30]CAPDU: 80 0D 02 02 05 A3 46 3A 50 51 [22:53:30]Write to MH i2c: E2 0D 00 68 0E 80 0D 02 02 05 00 A3 46 3A 50 51 00 00 BE [22:53:30]Write i2c OK [22:53:30]MH_I2C_Read... [22:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:30]Read from MH i2c: E2 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 03 00 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 03 00 68 0E 00 90 00 EA [22:53:30]RAPDU: 90 00 [22:53:30]wFMCommunicate OK [22:53:30]wFMCommunicate request_size=4 [22:53:30]MH_SAM_APDU [22:53:30]CAPDU: 80 0D 03 02 [22:53:30]Write to MH i2c: E2 08 00 69 0E 80 0D 03 02 00 00 00 00 F2 [22:53:30]Write i2c OK [22:53:30]MH_I2C_Read... [22:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:30]Read from MH i2c: E2 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 0B 00 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 0B 00 69 0E 00 CD F2 6F 9F B2 17 E8 BF 90 00 30 [22:53:30]RAPDU: CD F2 6F 9F B2 17 E8 BF 90 00 [22:53:30]wFMCommunicate OK [22:53:30]SAM_PROTO_SignData done [22:53:30]FM_MakeSignedData done [22:53:30]CreateOFDProtocolMessage [22:53:30]wFMCommunicate request_size=4 [22:53:30]MH_SAM_APDU [22:53:30]CAPDU: 80 11 00 00 [22:53:30]Write to MH i2c: E2 08 00 6A 0E 80 11 00 00 00 00 00 00 F2 [22:53:30]Write i2c OK [22:53:30]MH_I2C_Read... [22:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:30]Read from MH i2c: E2 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 17 00 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: E2 17 00 6A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [22:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:53:30]wFMCommunicate OK [22:53:30]CreateOFDProtocolMessage done [22:53:30]OFDSenderStorePacket 188912 [22:53:30]StoreOFDPacket docnum=188912 [22:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 78 75 07 01 B0 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 6A 7E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E1 02 00 35 04 06 00 3C A3 46 3A 50 51 CD F2 6F 9F B2 17 E8 BF [22:53:30]CheckFolder [22:53:30]dirname=/storage/ofd_packets [22:53:30]CheckFolder done [22:53:30]ProducePacketName [22:53:30]name=ofd_packets/00188912 [22:53:30]NVStorageSaveData ofd_packets/00188912 [22:53:30]File name is /storage/ofd_packets/00188912 [22:53:30]Write 301 bytes [22:53:30]NVStorageSaveData done [22:53:30]OFDSenderStorePacket done [22:53:30]KKMCreateOFDPacket done [22:53:30]NVStorageSaveData kkm_last_timestamp [22:53:30]File name is /storage/kkm_last_timestamp [22:53:30]Write 4 bytes [22:53:30]NVStorageSaveData done [22:53:30]ExternCall_PrintAddStr [22:53:30]wPrintStart [22:53:30]Write to MH i2c: 01 00 00 6B 0E 79 [22:53:30]Write i2c OK [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: 01 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: 01 07 00 [22:53:30]MH_I2C_Read... [22:53:30]Read from MH i2c: 01 07 00 6B 0E 00 00 00 00 00 FF 0F 8E [22:53:30]RasterBufferAndPrint [22:53:30]line Счет N : (1)210975 [22:53:30]line ИНН: 02508201610067 [22:53:30]line Контрольно-Кассовый Чек [22:53:30]line ПРОДАЖА [22:53:30]line ТРК (МРК, ГНК) : 43 [22:53:30]line Товар: 2710124500 [22:53:30]line Аи-95-К-3 [22:53:30]line 10.790 * 74.20 [22:53:30]line = 800.62 [22:53:30]line НДС 12% НСП 1% [22:53:30]line > о реализуемом товаре [22:53:30]line ОКРУГЛЕНИЕ: -0.62 [22:53:30]line ИТОГО: 800.00 [22:53:30]line Внесено: 5000.00 [22:53:30]line СДАЧА: 4200.00 [22:53:30]line НСП 1% : 7.08 [22:53:30]line НДС 12% : 85.02 [22:53:30]line Наличными: 800.00 [22:53:30]line Безнал.: 0.00 [22:53:30]line Место: АЗС № 86 "Партнер Нефть" [22:53:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:53:30]line СНО: Общий режим [22:53:30]line Чек 370 23.10.2024 22:53 [22:53:30]line Смена: 462 ФФД: 1.0 [22:53:30]line ЗНМ: 0300000155 [22:53:30]line РНМ: 0000000000100030 [22:53:30]line Версия ККМ: 001 [22:53:30]line ФМ: 0000000000965340 [22:53:30]line ФД: 188912 [22:53:30]line ФПД: 66671955562577 [22:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225330&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188912&fm=66671955562577&tin=02508201610067®Number=0000000000100030&sum=80000 [22:53:30]OFD Sender: Processing packet 188912 [packets to send 1062, broken 1061] [22:53:30]ProducePacketName [22:53:30]name=ofd_packets/00188912 [22:53:30]OFD Sender: To server: pG, [22:53:30]CommunicateWithHost lk.salyk.kg:30040 [22:53:30]ConnectInit lk.salyk.kg [22:53:30]written 0, free lines is 4095 [22:53:31]Connected sock=10 [22:53:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 78 75 07 01 B0 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 6A 7E 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E1 02 00 35 04 06 00 3C A3 46 3A 50 51 CD F2 6F 9F B2 17 E8 BF [22:53:31]Write to MH i2c: 01 00 00 96 0E A4 [22:53:31]Write i2c OK [22:53:31]MH_I2C_Read... [22:53:31]Read from MH i2c: 01 [22:53:31]MH_I2C_Read... [22:53:31]Read from MH i2c: 01 07 00 [22:53:31]MH_I2C_Read... [22:53:31]Read from MH i2c: 01 07 00 96 0E 00 00 00 00 00 5A 0C 11 [22:53:31]RasterBufferAndPrint [22:53:31]line [22:53:31]line [22:53:31]line [22:53:31]line [22:53:31]line [22:53:31]written 0, free lines is 3166 [22:53:31]MH_Cut [22:53:31]Write to MH i2c: D1 01 00 9D 0E 01 7D [22:53:31]Write i2c OK [22:53:31]MH_I2C_Read... [22:53:31]Read from MH i2c: D1 [22:53:31]MH_I2C_Read... [22:53:31]Read from MH i2c: D1 01 00 [22:53:31]MH_I2C_Read... [22:53:31]Read from MH i2c: D1 01 00 9D 0E 00 7C [22:53:31]Write to MH i2c: 01 00 00 9E 0E AC [22:53:31]Write i2c OK [22:53:31]MH_I2C_Read... [22:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B2 1C 47 00 E4 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E1 02 00 F4 03 04 00 54 28 19 67 B6 04 01 00 00 2F F2 27 72 05 D1 CA 14 [22:53:31]CommunicateWithHost err = 0 [22:53:31]CheckOFDResponse [22:53:31]1017 (14) - 77093643461234 [22:53:31]1041 (16) - 0000000000965340 [22:53:31]1040 (4) - 188912 [22:53:31]1012 (4) - 23.10.2024 16:46 [22:53:31]1206 (1) - 0 [22:53:31]OFD Sender: Remove packet 188912 [22:53:31]ProducePacketName [22:53:31]name=ofd_packets/00188912 [22:53:31]NVStorageDeleteData [22:53:32]OFD Sender: No OFD packet to send [22:53:32]*** Cut start [22:53:32]*** Partial cut [22:53:32]*** CUTSNS_PIN = 1 [22:53:32]*** CUTSNS_PIN = 0 [22:53:33]*** Brake cut motor [22:53:33]Read from MH i2c: 01 [22:53:33]MH_I2C_Read... [22:53:33]*** Stop cut motor [22:53:33]*** Cut end [22:53:33]Read from MH i2c: 01 07 00 [22:53:33]MH_I2C_Read... [22:53:33]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 FF 0F C1 [22:53:33]process_action close_receipt done [22:53:33]requested_data is exist [22:53:33]produce_requested_data [22:53:33]requested_item fm.sn is exist - process it [22:53:33]wFMCommunicate request_size=4 [22:53:33]MH_SAM_APDU [22:53:33]CAPDU: 80 11 00 00 [22:53:33]Write to MH i2c: E2 08 00 9F 0E 80 11 00 00 00 00 00 00 27 [22:53:33]Write i2c OK [22:53:33]MH_I2C_Read... [22:53:33]Read from MH i2c: E2 [22:53:33]MH_I2C_Read... [22:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:33]Read from MH i2c: E2 17 00 [22:53:33]MH_I2C_Read... [22:53:33]Read from MH i2c: E2 17 00 9F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [22:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:53:33]wFMCommunicate OK [22:53:33]requested_item fd.num is exist - process it [22:53:33]SAM_PROTO_GetFieldsCounters [22:53:33]wFMCommunicate request_size=4 [22:53:33]MH_SAM_APDU [22:53:33]CAPDU: 80 13 00 00 [22:53:33]Write to MH i2c: E2 08 00 A0 0E 80 13 00 00 00 00 00 00 2A [22:53:33]Write i2c OK [22:53:33]MH_I2C_Read... [22:53:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:33]Read from MH i2c: E2 [22:53:33]MH_I2C_Read... [22:53:33]Read from MH i2c: E2 62 00 [22:53:33]MH_I2C_Read... [22:53:33]Read from MH i2c: E2 62 00 A0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [22:53:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:33]wFMCommunicate OK [22:53:33]SAM_PROTO_GetFieldsCounters done [22:53:33]requested_item shift.num is exist - process it [22:53:33]requested_item shift.opened is exist - process it [22:53:33]req_shift_opened [22:53:33]FM_GetShiftState [22:53:33]SAM_PROTO_GetShiftState [22:53:33]wFMCommunicate request_size=4 [22:53:33]MH_SAM_APDU [22:53:33]CAPDU: 80 13 01 00 [22:53:33]Write to MH i2c: E2 08 00 A1 0E 80 13 01 00 00 00 00 00 2C [22:53:33]Write i2c OK [22:53:33]MH_I2C_Read... [22:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:33]Read from MH i2c: E2 [22:53:33]MH_I2C_Read... [22:53:33]Read from MH i2c: E2 0E 00 [22:53:33]MH_I2C_Read... [22:53:33]Read from MH i2c: E2 0E 00 A1 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 14 [22:53:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:53:33]wFMCommunicate OK [22:53:33]SAM_PROTO_GetShiftState done [22:53:33]FM_GetShiftState done [22:53:33]req_shift_opened done [22:53:33]requested_item shift.open_date is exist - process it [22:53:33]req_shift_open_date [22:53:33]req_shift_open_date done [22:53:33]produce_requested_data done [22:53:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188912,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:53:33]process_action_free close_receipt [22:53:33]json_value_free [22:53:33]json_value_free done [22:53:33]process_json_proto returns [22:53:33]Send response to host [22:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188912,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:53:33]free response buf [22:53:33]execute_script done [22:53:33]execute_script returns [22:53:33]free content buf [22:53:33]Sock 8.Close socket [22:53:33]Sock 8.Thread stoped [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:55]accept exits with 9 [22:56:55]New connection [22:56:55]New thread 3066953060 created [22:56:55]Thread 3066809700 joined [22:56:55]Waiting for new connection... [22:56:55] Sock 9.Parse request [22:56:55]Sock 9.Check first char [22:56:55]Sock 9.First char is OK [22:56:55]request: POST /json_proto HTTP/1.0 [22:56:55]Method: POST [22:56:55]URL: /json_proto [22:56:55]Method is POST - this is cgi request [22:56:55]url: /json_proto [22:56:55]query_string will be loaded in cgi processing [22:56:55]execute_cgi json_proto POST (null) [22:56:55]execute_cgi path=json_proto method=POST [22:56:55]POST find Content-Length [22:56:55]Host: 172.17.42.131:8080 [22:56:55]Content-Length: 682 [22:56:55]Content-Type: application/json [22:56:55] [22:56:55]POST finish read [22:56:55]Found Content-Length = 682 [22:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 55.920, "sum" : 4149.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4149.00, "payments": [ { "type": 0, "sum" : 4149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:55]execute_script... [22:56:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 55.920, "sum" : 4149.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4149.00, "payments": [ { "type": 0, "sum" : 4149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:55]POST & json_proto [22:56:55]process_json_proto [22:56:55]json parsed OK: [22:56:55]protocol is kg_v1.0 [22:56:55]action value=close_receipt [22:56:55]process_action close_receipt [22:56:55]cmd_close_receipt [22:56:55]MH_GetDate [22:56:55]Write to MH i2c: F0 00 00 A2 0E 9F [22:56:55]Write i2c OK [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: F0 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: F0 09 00 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: F0 09 00 A2 0E 00 38 7F 19 67 A0 18 CA 66 C7 [22:56:55]GetLastDocTimeStamp 1729724010 [22:56:55]current date 1729724216 [22:56:55]FM_GetShiftState [22:56:55]SAM_PROTO_GetShiftState [22:56:55]wFMCommunicate request_size=4 [22:56:55]MH_SAM_APDU [22:56:55]CAPDU: 80 13 01 00 [22:56:55]Write to MH i2c: E2 08 00 A3 0E 80 13 01 00 00 00 00 00 2E [22:56:55]Write i2c OK [22:56:55]MH_I2C_Read... [22:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:55]Read from MH i2c: E2 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: E2 0E 00 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: E2 0E 00 A3 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 16 [22:56:55]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:56:55]wFMCommunicate OK [22:56:55]SAM_PROTO_GetShiftState done [22:56:55]FM_GetShiftState done [22:56:55]opened in 1729642525 [22:56:55]opened+sec_in_day 1729728925 [22:56:55]quantity*price = 414926 [22:56:55]sum+1 = 414927 [22:56:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 4149.00 Внесено: 5000.00 СДАЧА: 851.00 НСП 1% : 36.72 НДС 12% : 440.63 Наличными: 4149.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 371 23.10.2024 22:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188913 ФПД: 249927285836051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188913&fm=249927285836051&tin=02508201610067®Number=0000000000100030&sum=414900 [22:56:56]StoreToDocumentArchive [22:56:56]shift 462 fd 188913 [22:56:56]save to /storage/0462/doc_00188913 [22:56:56]save last doc name /storage/0462/doc_00188913 to /storage/kkm_last_doc_name [22:56:56]save OK [22:56:56]Clear old archive folders... [22:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:56]tlvbuf is 004D1130 [22:56:56]SAM_PROTO_ClearQueue [22:56:56]wFMCommunicate request_size=4 [22:56:56]MH_SAM_APDU [22:56:56]CAPDU: 80 09 00 00 [22:56:56]Write to MH i2c: E2 08 00 B0 0E 80 09 00 00 00 00 00 00 30 [22:56:56]Write i2c OK [22:56:56]MH_I2C_Read... [22:56:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:56]Read from MH i2c: E2 [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: E2 03 00 [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [22:56:56]RAPDU: 90 00 [22:56:56]wFMCommunicate OK [22:56:56]SAM_PROTO_ClearQueue done [22:56:56]KKMCreateOFDPacket [22:56:56]OFDProtocolAddRootSTLVToBuf [22:56:56]FM_MakeSignedData [22:56:56]FM_MakeSignedData [22:56:56]SAM_PROTO_SignData [22:56:56]wFMCommunicate request_size=4 [22:56:56]MH_SAM_APDU [22:56:56]CAPDU: 80 0D 01 02 [22:56:56]Write to MH i2c: E2 08 00 B1 0E 80 0D 01 02 00 00 00 00 38 [22:56:56]Write i2c OK [22:56:56]MH_I2C_Read... [22:56:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:56]Read from MH i2c: E2 [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: E2 03 00 [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: E2 03 00 B1 0E 00 90 00 33 [22:56:56]RAPDU: 90 00 [22:56:56]wFMCommunicate OK [22:56:56]wFMCommunicate request_size=255 [22:56:56]MH_SAM_APDU [22:56:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 DA 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 54 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 54 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F AC 00 00 00 00 07 04 06 00 B4 54 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 38 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E1 02 00 35 04 06 00 E3 [22:56:56]Write to MH i2c: E2 02 01 B2 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 DA 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 54 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 54 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F AC 00 00 00 00 07 04 06 00 B4 54 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 38 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E1 02 00 35 04 06 00 E3 00 00 32 [22:56:56]Write i2c OK [22:56:56]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 B2 0E 00 90 00 34 [22:56:57]RAPDU: 90 00 [22:56:57]wFMCommunicate OK [22:56:57]wFMCommunicate request_size=10 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 0D 02 02 05 4E BB 17 89 13 [22:56:57]Write to MH i2c: E2 0D 00 B3 0E 80 0D 02 02 05 00 4E BB 17 89 13 00 00 01 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [22:56:57]RAPDU: 90 00 [22:56:57]wFMCommunicate OK [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 0D 03 02 [22:56:57]Write to MH i2c: E2 08 00 B4 0E 80 0D 03 02 00 00 00 00 3D [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 0B 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 0B 00 B4 0E 00 C9 8F 21 07 8D 25 E4 9F 90 00 F3 [22:56:57]RAPDU: C9 8F 21 07 8D 25 E4 9F 90 00 [22:56:57]wFMCommunicate OK [22:56:57]SAM_PROTO_SignData done [22:56:57]FM_MakeSignedData done [22:56:57]CreateOFDProtocolMessage [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 11 00 00 [22:56:57]Write to MH i2c: E2 08 00 B5 0E 80 11 00 00 00 00 00 00 3D [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 17 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 17 00 B5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [22:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:56:57]wFMCommunicate OK [22:56:57]CreateOFDProtocolMessage done [22:56:57]OFDSenderStorePacket 188913 [22:56:57]StoreOFDPacket docnum=188913 [22:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3F EA 07 01 EA 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 DA 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 54 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 54 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F AC 00 00 00 00 07 04 06 00 B4 54 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 38 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E1 02 00 35 04 06 00 E3 4E BB 17 89 13 C9 8F 21 07 8D 25 E4 9F [22:56:57]CheckFolder [22:56:57]dirname=/storage/ofd_packets [22:56:57]CheckFolder done [22:56:57]ProducePacketName [22:56:57]name=ofd_packets/00188913 [22:56:57]NVStorageSaveData ofd_packets/00188913 [22:56:57]File name is /storage/ofd_packets/00188913 [22:56:57]Write 301 bytes [22:56:57]NVStorageSaveData done [22:56:57]OFDSenderStorePacket done [22:56:57]KKMCreateOFDPacket done [22:56:57]NVStorageSaveData kkm_last_timestamp [22:56:57]File name is /storage/kkm_last_timestamp [22:56:57]Write 4 bytes [22:56:57]NVStorageSaveData done [22:56:57]ExternCall_PrintAddStr [22:56:57]wPrintStart [22:56:57]Write to MH i2c: 01 00 00 B6 0E C4 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 07 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 FF 0F D9 [22:56:57]RasterBufferAndPrint [22:56:57]line Счет N : (1)210976 [22:56:57]line ИНН: 02508201610067 [22:56:57]line Контрольно-Кассовый Чек [22:56:57]line ПРОДАЖА [22:56:57]line ТРК (МРК, ГНК) : 23 [22:56:57]line Товар: 2710124500 [22:56:57]line Аи-95-К-3 [22:56:57]line 55.920 * 74.20 [22:56:57]line = 4149.26 [22:56:57]line НДС 12% НСП 1% [22:56:57]line > о реализуемом товаре [22:56:57]line ОКРУГЛЕНИЕ: -0.26 [22:56:57]line ИТОГО: 4149.00 [22:56:57]line Внесено: 5000.00 [22:56:57]line СДАЧА: 851.00 [22:56:57]line НСП 1% : 36.72 [22:56:57]line НДС 12% : 440.63 [22:56:57]line Наличными: 4149.00 [22:56:57]line Безнал.: 0.00 [22:56:57]line Место: АЗС № 86 "Партнер Нефть" [22:56:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:56:57]line СНО: Общий режим [22:56:57]line Чек 371 23.10.2024 22:56 [22:56:57]line Смена: 462 ФФД: 1.0 [22:56:57]line ЗНМ: 0300000155 [22:56:57]line РНМ: 0000000000100030 [22:56:57]line Версия ККМ: 001 [22:56:57]line ФМ: 0000000000965340 [22:56:57]line ФД: 188913 [22:56:57]line ФПД: 249927285836051 [22:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188913&fm=249927285836051&tin=02508201610067®Number=0000000000100030&sum=414900 [22:56:57]OFD Sender: Processing packet 188913 [packets to send 1062, broken 1061] [22:56:57]ProducePacketName [22:56:57]name=ofd_packets/00188913 [22:56:57]OFD Sender: To server: pG, [22:56:57]CommunicateWithHost lk.salyk.kg:30040 [22:56:57]ConnectInit lk.salyk.kg [22:56:57]written 0, free lines is 4095 [22:56:57]Connected sock=8 [22:56:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3F EA 07 01 EA 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 DA 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 54 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 54 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F AC 00 00 00 00 07 04 06 00 B4 54 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 38 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E1 02 00 35 04 06 00 E3 4E BB 17 89 13 C9 8F 21 07 8D 25 E4 9F [22:56:57]Write to MH i2c: 01 00 00 E1 0E EF [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 07 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 07 00 E1 0E 00 00 00 00 00 54 0C 56 [22:56:57]RasterBufferAndPrint [22:56:57]line [22:56:57]line [22:56:57]line [22:56:57]line [22:56:57]line [22:56:57]written 0, free lines is 3160 [22:56:57]MH_Cut [22:56:57]Write to MH i2c: D1 01 00 E8 0E 01 C8 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: D1 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: D1 01 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: D1 01 00 E8 0E 00 C7 [22:56:57]Write to MH i2c: 01 00 00 E9 0E F7 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 15 AF 47 00 92 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E1 02 00 F4 03 04 00 22 29 19 67 B6 04 01 00 00 30 C7 93 30 03 BE 3A AA [22:56:57]CommunicateWithHost err = 0 [22:56:57]CheckOFDResponse [22:56:57]1017 (14) - 77093643461234 [22:56:57]1041 (16) - 0000000000965340 [22:56:57]1040 (4) - 188913 [22:56:57]1012 (4) - 23.10.2024 16:49 [22:56:57]1206 (1) - 0 [22:56:57]OFD Sender: Remove packet 188913 [22:56:57]ProducePacketName [22:56:57]name=ofd_packets/00188913 [22:56:57]NVStorageDeleteData [22:56:58]OFD Sender: No OFD packet to send [22:56:59]*** Cut start [22:56:59]*** Partial cut [22:56:59]*** CUTSNS_PIN = 1 [22:56:59]*** CUTSNS_PIN = 0 [22:56:59]*** Brake cut motor [22:56:59]Read from MH i2c: 01 [22:56:59]MH_I2C_Read... [22:56:59]*** Stop cut motor [22:56:59]*** Cut end [22:56:59]Read from MH i2c: 01 07 00 [22:56:59]MH_I2C_Read... [22:56:59]Read from MH i2c: 01 07 00 E9 0E 00 00 00 00 00 FF 0F 0C [22:56:59]process_action close_receipt done [22:56:59]requested_data is exist [22:56:59]produce_requested_data [22:56:59]requested_item fm.sn is exist - process it [22:56:59]wFMCommunicate request_size=4 [22:56:59]MH_SAM_APDU [22:56:59]CAPDU: 80 11 00 00 [22:56:59]Write to MH i2c: E2 08 00 EA 0E 80 11 00 00 00 00 00 00 72 [22:56:59]Write i2c OK [22:56:59]MH_I2C_Read... [22:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:59]Read from MH i2c: E2 [22:56:59]MH_I2C_Read... [22:56:59]Read from MH i2c: E2 17 00 [22:56:59]MH_I2C_Read... [22:56:59]Read from MH i2c: E2 17 00 EA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [22:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:56:59]wFMCommunicate OK [22:56:59]requested_item fd.num is exist - process it [22:56:59]SAM_PROTO_GetFieldsCounters [22:56:59]wFMCommunicate request_size=4 [22:56:59]MH_SAM_APDU [22:56:59]CAPDU: 80 13 00 00 [22:56:59]Write to MH i2c: E2 08 00 EB 0E 80 13 00 00 00 00 00 00 75 [22:56:59]Write i2c OK [22:56:59]MH_I2C_Read... [22:56:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:59]Read from MH i2c: E2 [22:56:59]MH_I2C_Read... [22:56:59]Read from MH i2c: E2 62 00 [22:56:59]MH_I2C_Read... [22:56:59]Read from MH i2c: E2 62 00 EB 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [22:56:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:59]wFMCommunicate OK [22:56:59]SAM_PROTO_GetFieldsCounters done [22:56:59]requested_item shift.num is exist - process it [22:56:59]requested_item shift.opened is exist - process it [22:56:59]req_shift_opened [22:56:59]FM_GetShiftState [22:56:59]SAM_PROTO_GetShiftState [22:56:59]wFMCommunicate request_size=4 [22:56:59]MH_SAM_APDU [22:56:59]CAPDU: 80 13 01 00 [22:56:59]Write to MH i2c: E2 08 00 EC 0E 80 13 01 00 00 00 00 00 77 [22:56:59]Write i2c OK [22:56:59]MH_I2C_Read... [22:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:00]Read from MH i2c: E2 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: E2 0E 00 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: E2 0E 00 EC 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5F [22:57:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:57:00]wFMCommunicate OK [22:57:00]SAM_PROTO_GetShiftState done [22:57:00]FM_GetShiftState done [22:57:00]req_shift_opened done [22:57:00]requested_item shift.open_date is exist - process it [22:57:00]req_shift_open_date [22:57:00]req_shift_open_date done [22:57:00]produce_requested_data done [22:57:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188913,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:57:00]process_action_free close_receipt [22:57:00]json_value_free [22:57:00]json_value_free done [22:57:00]process_json_proto returns [22:57:00]Send response to host [22:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188913,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:57:00]free response buf [22:57:00]execute_script done [22:57:00]execute_script returns [22:57:00]free content buf [22:57:00]Sock 9.Close socket [22:57:00]Sock 9.Thread stoped [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:28]accept exits with 10 [22:57:28]New connection [22:57:28]New thread 3066809700 created [22:57:28]Thread 3066953060 joined [22:57:28]Waiting for new connection... [22:57:28] Sock 10.Parse request [22:57:28]Sock 10.Check first char [22:57:28]Sock 10.First char is OK [22:57:28]request: POST /json_proto HTTP/1.0 [22:57:28]Method: POST [22:57:28]URL: /json_proto [22:57:28]Method is POST - this is cgi request [22:57:28]url: /json_proto [22:57:28]query_string will be loaded in cgi processing [22:57:28]execute_cgi json_proto POST (null) [22:57:28]execute_cgi path=json_proto method=POST [22:57:28]POST find Content-Length [22:57:28]Host: 172.17.42.131:8080 [22:57:28]Content-Length: 682 [22:57:28]Content-Type: application/json [22:57:28] [22:57:28]POST finish read [22:57:28]Found Content-Length = 682 [22:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 36.800, "sum" : 2730.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2730.00, "payments": [ { "type": 0, "sum" : 2730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:28]execute_script... [22:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 36.800, "sum" : 2730.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2730.00, "payments": [ { "type": 0, "sum" : 2730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:28]POST & json_proto [22:57:28]process_json_proto [22:57:28]json parsed OK: [22:57:28]protocol is kg_v1.0 [22:57:28]action value=close_receipt [22:57:28]process_action close_receipt [22:57:28]cmd_close_receipt [22:57:28]MH_GetDate [22:57:28]Write to MH i2c: F0 00 00 ED 0E EA [22:57:28]Write i2c OK [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: F0 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: F0 09 00 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: F0 09 00 ED 0E 00 5A 7F 19 67 A0 18 CA 66 34 [22:57:28]GetLastDocTimeStamp 1729724216 [22:57:28]current date 1729724250 [22:57:28]FM_GetShiftState [22:57:28]SAM_PROTO_GetShiftState [22:57:28]wFMCommunicate request_size=4 [22:57:28]MH_SAM_APDU [22:57:28]CAPDU: 80 13 01 00 [22:57:28]Write to MH i2c: E2 08 00 EE 0E 80 13 01 00 00 00 00 00 79 [22:57:28]Write i2c OK [22:57:28]MH_I2C_Read... [22:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:28]Read from MH i2c: E2 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: E2 0E 00 [22:57:28]MH_I2C_Read... [22:57:28]Read from MH i2c: E2 0E 00 EE 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 61 [22:57:28]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:57:28]wFMCommunicate OK [22:57:28]SAM_PROTO_GetShiftState done [22:57:28]FM_GetShiftState done [22:57:28]opened in 1729642525 [22:57:28]opened+sec_in_day 1729728925 [22:57:28]quantity*price = 273056 [22:57:28]sum+1 = 273057 [22:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 2730.00 Внесено: 3000.00 СДАЧА: 270.00 НСП 1% : 24.16 НДС 12% : 289.97 Наличными: 2730.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 372 23.10.2024 22:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188914 ФПД: 238992435834637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188914&fm=238992435834637&tin=02508201610067®Number=0000000000100030&sum=273000 [22:57:29]StoreToDocumentArchive [22:57:29]shift 462 fd 188914 [22:57:29]save to /storage/0462/doc_00188914 [22:57:29]save last doc name /storage/0462/doc_00188914 to /storage/kkm_last_doc_name [22:57:29]save OK [22:57:29]Clear old archive folders... [22:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:29]tlvbuf is 0050A370 [22:57:29]SAM_PROTO_ClearQueue [22:57:29]wFMCommunicate request_size=4 [22:57:29]MH_SAM_APDU [22:57:29]CAPDU: 80 09 00 00 [22:57:29]Write to MH i2c: E2 08 00 FB 0E 80 09 00 00 00 00 00 00 7B [22:57:29]Write i2c OK [22:57:29]MH_I2C_Read... [22:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:29]Read from MH i2c: E2 [22:57:29]MH_I2C_Read... [22:57:29]Read from MH i2c: E2 03 00 [22:57:29]MH_I2C_Read... [22:57:29]Read from MH i2c: E2 03 00 FB 0E 00 90 00 7D [22:57:29]RAPDU: 90 00 [22:57:29]wFMCommunicate OK [22:57:29]SAM_PROTO_ClearQueue done [22:57:29]KKMCreateOFDPacket [22:57:29]OFDProtocolAddRootSTLVToBuf [22:57:29]FM_MakeSignedData [22:57:29]FM_MakeSignedData [22:57:29]SAM_PROTO_SignData [22:57:29]wFMCommunicate request_size=4 [22:57:29]MH_SAM_APDU [22:57:29]CAPDU: 80 0D 01 02 [22:57:29]Write to MH i2c: E2 08 00 FC 0E 80 0D 01 02 00 00 00 00 83 [22:57:29]Write i2c OK [22:57:29]MH_I2C_Read... [22:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:30]Read from MH i2c: E2 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 FC 0E 00 90 00 7E [22:57:30]RAPDU: 90 00 [22:57:30]wFMCommunicate OK [22:57:30]wFMCommunicate request_size=255 [22:57:30]MH_SAM_APDU [22:57:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 8F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A0 2A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 2A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 71 00 00 00 00 07 04 06 00 68 2A 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 5A 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E1 02 00 35 04 06 00 D9 [22:57:30]Write to MH i2c: E2 02 01 FD 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 8F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A0 2A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 2A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 71 00 00 00 00 07 04 06 00 68 2A 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 5A 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E1 02 00 35 04 06 00 D9 00 00 50 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:30]Read from MH i2c: E2 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 FD 0E 00 90 00 7F [22:57:30]RAPDU: 90 00 [22:57:30]wFMCommunicate OK [22:57:30]wFMCommunicate request_size=10 [22:57:30]MH_SAM_APDU [22:57:30]CAPDU: 80 0D 02 02 05 5C C3 3D EF 0D [22:57:30]Write to MH i2c: E2 0D 00 FE 0E 80 0D 02 02 05 00 5C C3 3D EF 0D 00 00 E8 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:30]Read from MH i2c: E2 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 03 00 FE 0E 00 90 00 80 [22:57:30]RAPDU: 90 00 [22:57:30]wFMCommunicate OK [22:57:30]wFMCommunicate request_size=4 [22:57:30]MH_SAM_APDU [22:57:30]CAPDU: 80 0D 03 02 [22:57:30]Write to MH i2c: E2 08 00 FF 0E 80 0D 03 02 00 00 00 00 88 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:30]Read from MH i2c: E2 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 0B 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 0B 00 FF 0E 00 D4 A5 69 30 84 62 5D 9A 90 00 78 [22:57:30]RAPDU: D4 A5 69 30 84 62 5D 9A 90 00 [22:57:30]wFMCommunicate OK [22:57:30]SAM_PROTO_SignData done [22:57:30]FM_MakeSignedData done [22:57:30]CreateOFDProtocolMessage [22:57:30]wFMCommunicate request_size=4 [22:57:30]MH_SAM_APDU [22:57:30]CAPDU: 80 11 00 00 [22:57:30]Write to MH i2c: E2 08 00 00 0F 80 11 00 00 00 00 00 00 89 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:30]Read from MH i2c: E2 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 17 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: E2 17 00 00 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [22:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:57:30]wFMCommunicate OK [22:57:30]CreateOFDProtocolMessage done [22:57:30]OFDSenderStorePacket 188914 [22:57:30]StoreOFDPacket docnum=188914 [22:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 61 07 01 AC 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 8F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A0 2A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 2A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 71 00 00 00 00 07 04 06 00 68 2A 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 5A 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E1 02 00 35 04 06 00 D9 5C C3 3D EF 0D D4 A5 69 30 84 62 5D 9A [22:57:30]CheckFolder [22:57:30]dirname=/storage/ofd_packets [22:57:30]CheckFolder done [22:57:30]ProducePacketName [22:57:30]name=ofd_packets/00188914 [22:57:30]NVStorageSaveData ofd_packets/00188914 [22:57:30]File name is /storage/ofd_packets/00188914 [22:57:30]Write 301 bytes [22:57:30]NVStorageSaveData done [22:57:30]OFDSenderStorePacket done [22:57:30]KKMCreateOFDPacket done [22:57:30]NVStorageSaveData kkm_last_timestamp [22:57:30]File name is /storage/kkm_last_timestamp [22:57:30]Write 4 bytes [22:57:30]NVStorageSaveData done [22:57:30]ExternCall_PrintAddStr [22:57:30]wPrintStart [22:57:30]Write to MH i2c: 01 00 00 01 0F 10 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: 01 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: 01 07 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 FF 0F 25 [22:57:30]RasterBufferAndPrint [22:57:30]line Счет N : (1)210977 [22:57:30]line ИНН: 02508201610067 [22:57:30]line Контрольно-Кассовый Чек [22:57:30]line ПРОДАЖА [22:57:30]line ТРК (МРК, ГНК) : 33 [22:57:30]line Товар: 2710124500 [22:57:30]line Аи-95-К-3 [22:57:30]line 36.800 * 74.20 [22:57:30]line = 2730.56 [22:57:30]line НДС 12% НСП 1% [22:57:30]line > о реализуемом товаре [22:57:30]line ОКРУГЛЕНИЕ: -0.56 [22:57:30]line ИТОГО: 2730.00 [22:57:30]line Внесено: 3000.00 [22:57:30]line СДАЧА: 270.00 [22:57:30]line НСП 1% : 24.16 [22:57:30]line НДС 12% : 289.97 [22:57:30]line Наличными: 2730.00 [22:57:30]line Безнал.: 0.00 [22:57:30]line Место: АЗС № 86 "Партнер Нефть" [22:57:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:57:30]line СНО: Общий режим [22:57:30]line Чек 372 23.10.2024 22:57 [22:57:30]line Смена: 462 ФФД: 1.0 [22:57:30]line ЗНМ: 0300000155 [22:57:30]line РНМ: 0000000000100030 [22:57:30]line Версия ККМ: 001 [22:57:30]line ФМ: 0000000000965340 [22:57:30]line ФД: 188914 [22:57:30]line ФПД: 238992435834637 [22:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188914&fm=238992435834637&tin=02508201610067®Number=0000000000100030&sum=273000 [22:57:30]written 0, free lines is 4095 [22:57:30]OFD Sender: Processing packet 188914 [packets to send 1062, broken 1061] [22:57:30]ProducePacketName [22:57:30]name=ofd_packets/00188914 [22:57:30]OFD Sender: To server: pG, [22:57:30]CommunicateWithHost lk.salyk.kg:30040 [22:57:30]ConnectInit lk.salyk.kg [22:57:30]Connected sock=9 [22:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 61 07 01 AC 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 8F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A0 2A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 2A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 71 00 00 00 00 07 04 06 00 68 2A 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 5A 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E1 02 00 35 04 06 00 D9 5C C3 3D EF 0D D4 A5 69 30 84 62 5D 9A [22:57:30]Write to MH i2c: 01 00 00 2C 0F 3B [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: 01 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: 01 07 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: 01 07 00 2C 0F 00 00 00 00 00 58 0C A6 [22:57:30]RasterBufferAndPrint [22:57:30]line [22:57:30]line [22:57:30]line [22:57:30]line [22:57:30]line [22:57:30]written 0, free lines is 3164 [22:57:30]MH_Cut [22:57:30]Write to MH i2c: D1 01 00 33 0F 01 14 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: D1 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: D1 01 00 [22:57:30]MH_I2C_Read... [22:57:30]Read from MH i2c: D1 01 00 33 0F 00 13 [22:57:30]Write to MH i2c: 01 00 00 34 0F 43 [22:57:30]Write i2c OK [22:57:30]MH_I2C_Read... [22:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 95 2F 47 00 DD 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E1 02 00 F4 03 04 00 43 29 19 67 B6 04 01 00 00 11 E7 34 4D 73 5E 25 CA [22:57:31]CommunicateWithHost err = 0 [22:57:31]CheckOFDResponse [22:57:31]1017 (14) - 77093643461234 [22:57:31]1041 (16) - 0000000000965340 [22:57:31]1040 (4) - 188914 [22:57:31]1012 (4) - 23.10.2024 16:50 [22:57:31]1206 (1) - 0 [22:57:31]OFD Sender: Remove packet 188914 [22:57:31]ProducePacketName [22:57:31]name=ofd_packets/00188914 [22:57:31]NVStorageDeleteData [22:57:31]OFD Sender: No OFD packet to send [22:57:32]*** Cut start [22:57:32]*** Partial cut [22:57:32]*** CUTSNS_PIN = 1 [22:57:32]*** CUTSNS_PIN = 0 [22:57:32]*** Brake cut motor [22:57:32]Read from MH i2c: 01 [22:57:32]MH_I2C_Read... [22:57:32]*** Stop cut motor [22:57:32]*** Cut end [22:57:32]Read from MH i2c: 01 07 00 [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 FF 0F 58 [22:57:32]process_action close_receipt done [22:57:32]requested_data is exist [22:57:32]produce_requested_data [22:57:32]requested_item fm.sn is exist - process it [22:57:32]wFMCommunicate request_size=4 [22:57:32]MH_SAM_APDU [22:57:32]CAPDU: 80 11 00 00 [22:57:32]Write to MH i2c: E2 08 00 35 0F 80 11 00 00 00 00 00 00 BE [22:57:32]Write i2c OK [22:57:32]MH_I2C_Read... [22:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:32]Read from MH i2c: E2 [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: E2 17 00 [22:57:32]MH_I2C_Read... [22:57:32]Read from MH i2c: E2 17 00 35 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [22:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:57:32]wFMCommunicate OK [22:57:32]requested_item fd.num is exist - process it [22:57:32]SAM_PROTO_GetFieldsCounters [22:57:32]wFMCommunicate request_size=4 [22:57:32]MH_SAM_APDU [22:57:32]CAPDU: 80 13 00 00 [22:57:32]Write to MH i2c: E2 08 00 36 0F 80 13 00 00 00 00 00 00 C1 [22:57:32]Write i2c OK [22:57:32]MH_I2C_Read... [22:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:33]Read from MH i2c: E2 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 62 00 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 62 00 36 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [22:57:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:33]wFMCommunicate OK [22:57:33]SAM_PROTO_GetFieldsCounters done [22:57:33]requested_item shift.num is exist - process it [22:57:33]requested_item shift.opened is exist - process it [22:57:33]req_shift_opened [22:57:33]FM_GetShiftState [22:57:33]SAM_PROTO_GetShiftState [22:57:33]wFMCommunicate request_size=4 [22:57:33]MH_SAM_APDU [22:57:33]CAPDU: 80 13 01 00 [22:57:33]Write to MH i2c: E2 08 00 37 0F 80 13 01 00 00 00 00 00 C3 [22:57:33]Write i2c OK [22:57:33]MH_I2C_Read... [22:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:33]Read from MH i2c: E2 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 0E 00 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 0E 00 37 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AB [22:57:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:57:33]wFMCommunicate OK [22:57:33]SAM_PROTO_GetShiftState done [22:57:33]FM_GetShiftState done [22:57:33]req_shift_opened done [22:57:33]requested_item shift.open_date is exist - process it [22:57:33]req_shift_open_date [22:57:33]req_shift_open_date done [22:57:33]produce_requested_data done [22:57:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188914,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:57:33]process_action_free close_receipt [22:57:33]json_value_free [22:57:33]json_value_free done [22:57:33]process_json_proto returns [22:57:33]Send response to host [22:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188914,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:57:33]free response buf [22:57:33]execute_script done [22:57:33]execute_script returns [22:57:33]free content buf [22:57:33]Sock 10.Close socket [22:57:33]Sock 10.Thread stoped [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:42]accept exits with 8 [22:57:42]New connection [22:57:42]New thread 3066953060 created [22:57:42]Thread 3066809700 joined [22:57:42]Waiting for new connection... [22:57:42] Sock 8.Parse request [22:57:42]Sock 8.Check first char [22:57:42]Sock 8.First char is OK [22:57:42]request: POST /json_proto HTTP/1.0 [22:57:42]Method: POST [22:57:42]URL: /json_proto [22:57:42]Method is POST - this is cgi request [22:57:42]url: /json_proto [22:57:42]query_string will be loaded in cgi processing [22:57:42]execute_cgi json_proto POST (null) [22:57:42]execute_cgi path=json_proto method=POST [22:57:42]POST find Content-Length [22:57:42]Host: 172.17.42.131:8080 [22:57:42]Content-Length: 983 [22:57:42]Content-Type: application/json [22:57:42] [22:57:42]POST finish read [22:57:42]Found Content-Length = 983 [22:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:42]execute_script... [22:57:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:42]POST & json_proto [22:57:42]process_json_proto [22:57:42]json parsed OK: [22:57:42]protocol is kg_v1.0 [22:57:42]action value=close_receipt [22:57:42]process_action close_receipt [22:57:42]cmd_close_receipt [22:57:42]MH_GetDate [22:57:42]Write to MH i2c: F0 00 00 38 0F 36 [22:57:42]Write i2c OK [22:57:42]MH_I2C_Read... [22:57:42]Read from MH i2c: F0 [22:57:42]MH_I2C_Read... [22:57:42]Read from MH i2c: F0 09 00 [22:57:42]MH_I2C_Read... [22:57:42]Read from MH i2c: F0 09 00 38 0F 00 68 7F 19 67 A0 18 CA 66 8E [22:57:42]GetLastDocTimeStamp 1729724250 [22:57:42]current date 1729724264 [22:57:42]FM_GetShiftState [22:57:42]SAM_PROTO_GetShiftState [22:57:42]wFMCommunicate request_size=4 [22:57:42]MH_SAM_APDU [22:57:42]CAPDU: 80 13 01 00 [22:57:42]Write to MH i2c: E2 08 00 39 0F 80 13 01 00 00 00 00 00 C5 [22:57:42]Write i2c OK [22:57:42]MH_I2C_Read... [22:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:42]Read from MH i2c: E2 [22:57:42]MH_I2C_Read... [22:57:42]Read from MH i2c: E2 0E 00 [22:57:42]MH_I2C_Read... [22:57:42]Read from MH i2c: E2 0E 00 39 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 AD [22:57:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:57:42]wFMCommunicate OK [22:57:42]SAM_PROTO_GetShiftState done [22:57:42]FM_GetShiftState done [22:57:42]opened in 1729642525 [22:57:42]opened+sec_in_day 1729728925 [22:57:42]quantity*price = 150054 [22:57:42]sum+1 = 150055 [22:57:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 373 23.10.2024 22:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 188915 ФПД: 62097179599209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225744&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188915&fm=62097179599209&tin=02508201610067®Number=0000000000100030&sum=150000 [22:57:43]StoreToDocumentArchive [22:57:43]shift 462 fd 188915 [22:57:43]save to /storage/0462/doc_00188915 [22:57:43]save last doc name /storage/0462/doc_00188915 to /storage/kkm_last_doc_name [22:57:43]save OK [22:57:43]Clear old archive folders... [22:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:44]tlvbuf is 0053A380 [22:57:44]SAM_PROTO_ClearQueue [22:57:44]wFMCommunicate request_size=4 [22:57:44]MH_SAM_APDU [22:57:44]CAPDU: 80 09 00 00 [22:57:44]Write to MH i2c: E2 08 00 46 0F 80 09 00 00 00 00 00 00 C7 [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:44]Read from MH i2c: E2 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 03 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 03 00 46 0F 00 90 00 C9 [22:57:44]RAPDU: 90 00 [22:57:44]wFMCommunicate OK [22:57:44]SAM_PROTO_ClearQueue done [22:57:44]KKMCreateOFDPacket [22:57:44]OFDProtocolAddRootSTLVToBuf [22:57:44]FM_MakeSignedData [22:57:44]FM_MakeSignedData [22:57:44]SAM_PROTO_SignData [22:57:44]wFMCommunicate request_size=4 [22:57:44]MH_SAM_APDU [22:57:44]CAPDU: 80 0D 01 02 [22:57:44]Write to MH i2c: E2 08 00 47 0F 80 0D 01 02 00 00 00 00 CF [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:44]Read from MH i2c: E2 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 03 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 03 00 47 0F 00 90 00 CA [22:57:44]RAPDU: 90 00 [22:57:44]wFMCommunicate OK [22:57:44]wFMCommunicate request_size=255 [22:57:44]MH_SAM_APDU [22:57:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 68 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E1 02 00 35 04 06 00 38 [22:57:44]Write to MH i2c: E2 02 01 48 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 68 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E1 02 00 35 04 06 00 38 00 00 32 [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:44]Read from MH i2c: E2 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 03 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 03 00 48 0F 00 90 00 CB [22:57:44]RAPDU: 90 00 [22:57:44]wFMCommunicate OK [22:57:44]wFMCommunicate request_size=10 [22:57:44]MH_SAM_APDU [22:57:44]CAPDU: 80 0D 02 02 05 7A 20 54 E1 69 [22:57:44]Write to MH i2c: E2 0D 00 49 0F 80 0D 02 02 05 00 7A 20 54 E1 69 00 00 14 [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:44]Read from MH i2c: E2 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 03 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 03 00 49 0F 00 90 00 CC [22:57:44]RAPDU: 90 00 [22:57:44]wFMCommunicate OK [22:57:44]wFMCommunicate request_size=4 [22:57:44]MH_SAM_APDU [22:57:44]CAPDU: 80 0D 03 02 [22:57:44]Write to MH i2c: E2 08 00 4A 0F 80 0D 03 02 00 00 00 00 D4 [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:44]Read from MH i2c: E2 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 0B 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 0B 00 4A 0F 00 47 CB 7E CC E6 6E 9E 1D 90 00 40 [22:57:44]RAPDU: 47 CB 7E CC E6 6E 9E 1D 90 00 [22:57:44]wFMCommunicate OK [22:57:44]SAM_PROTO_SignData done [22:57:44]FM_MakeSignedData done [22:57:44]CreateOFDProtocolMessage [22:57:44]wFMCommunicate request_size=4 [22:57:44]MH_SAM_APDU [22:57:44]CAPDU: 80 11 00 00 [22:57:44]Write to MH i2c: E2 08 00 4B 0F 80 11 00 00 00 00 00 00 D4 [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:44]Read from MH i2c: E2 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 17 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: E2 17 00 4B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [22:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:57:44]wFMCommunicate OK [22:57:44]CreateOFDProtocolMessage done [22:57:44]OFDSenderStorePacket 188915 [22:57:44]StoreOFDPacket docnum=188915 [22:57:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EA 99 07 01 86 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 68 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E1 02 00 35 04 06 00 38 7A 20 54 E1 69 47 CB 7E CC E6 6E 9E 1D [22:57:44]CheckFolder [22:57:44]dirname=/storage/ofd_packets [22:57:44]CheckFolder done [22:57:44]ProducePacketName [22:57:44]name=ofd_packets/00188915 [22:57:44]NVStorageSaveData ofd_packets/00188915 [22:57:44]File name is /storage/ofd_packets/00188915 [22:57:44]Write 301 bytes [22:57:44]NVStorageSaveData done [22:57:44]OFDSenderStorePacket done [22:57:44]KKMCreateOFDPacket done [22:57:44]NVStorageSaveData kkm_last_timestamp [22:57:44]File name is /storage/kkm_last_timestamp [22:57:44]Write 4 bytes [22:57:44]NVStorageSaveData done [22:57:44]ExternCall_PrintAddStr [22:57:44]wPrintStart [22:57:44]Write to MH i2c: 01 00 00 4C 0F 5B [22:57:44]Write i2c OK [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: 01 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: 01 07 00 [22:57:44]MH_I2C_Read... [22:57:44]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 FF 0F 70 [22:57:44]RasterBufferAndPrint [22:57:44]line Счет N : (1)210978 [22:57:44]line ИНН: 02508201610067 [22:57:44]line Контрольно-Кассовый Чек [22:57:44]line ПРОДАЖА [22:57:44]line ТРК (МРК, ГНК) : 12 [22:57:44]line Товар: 2710124130 [22:57:44]line Аи-92-К-3 [22:57:44]line 22.770 * 65.90 [22:57:44]line = 1500.54 [22:57:44]line НДС 12% НСП 1% [22:57:44]line > о реализуемом товаре [22:57:44]line ОКРУГЛЕНИЕ: -0.54 [22:57:44]line ИТОГО: 1500.00 [22:57:44]line Внесено: 1500.00 [22:57:44]line СДАЧА: 0.00 [22:57:44]line НСП 1% : 13.28 [22:57:44]line НДС 12% : 159.35 [22:57:44]line Наличными: 1500.00 [22:57:44]line Безнал.: 0.00 [22:57:44]line Место: АЗС № 86 "Партнер Нефть" [22:57:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:57:44]line СНО: Общий режим [22:57:44]line Чек 373 23.10.2024 22:57 [22:57:44]line Смена: 462 ФФД: 1.0 [22:57:44]line ЗНМ: 0300000155 [22:57:44]line РНМ: 0000000000100030 [22:57:44]line Версия ККМ: 001 [22:57:44]line [22:57:44]line Дисконтная программа [22:57:44]line АИ-92 [22:57:44]line номер 86 [22:57:44]line сэкономлено 22.77 сом [22:57:44]line ФМ: 0000000000965340 [22:57:44]line ФД: 188915 [22:57:44]line ФПД: 62097179599209 [22:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225744&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188915&fm=62097179599209&tin=02508201610067®Number=0000000000100030&sum=150000 [22:57:44]written 0, free lines is 4095 [22:57:44]OFD Sender: Processing packet 188915 [packets to send 1062, broken 1061] [22:57:44]ProducePacketName [22:57:44]name=ofd_packets/00188915 [22:57:44]OFD Sender: To server: pG, [22:57:44]CommunicateWithHost lk.salyk.kg:30040 [22:57:44]ConnectInit lk.salyk.kg [22:57:44]Connected sock=10 [22:57:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EA 99 07 01 86 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 68 7F 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E1 02 00 35 04 06 00 38 7A 20 54 E1 69 47 CB 7E CC E6 6E 9E 1D [22:57:45]Write to MH i2c: 01 00 00 7C 0F 8B [22:57:45]Write i2c OK [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: 01 [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: 01 07 00 [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: 01 07 00 7C 0F 00 00 00 00 00 DD 0B 7A [22:57:45]RasterBufferAndPrint [22:57:45]line [22:57:45]line [22:57:45]line [22:57:45]line [22:57:45]line [22:57:45]written 0, free lines is 3040 [22:57:45]MH_Cut [22:57:45]Write to MH i2c: D1 01 00 83 0F 01 64 [22:57:45]Write i2c OK [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: D1 [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: D1 01 00 [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: D1 01 00 83 0F 00 63 [22:57:45]Write to MH i2c: 01 00 00 84 0F 93 [22:57:45]Write i2c OK [22:57:45]MH_I2C_Read... [22:57:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C2 5F 47 00 CA 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 36 35 33 34 30 10 04 04 00 F3 E1 02 00 F4 03 04 00 51 29 19 67 B6 04 01 00 00 5A C9 47 9F 20 9B DE 43 [22:57:45]CommunicateWithHost err = 0 [22:57:45]CheckOFDResponse [22:57:45]1017 (14) - 77093643461234 [22:57:45]1041 (16) - 0000000000965340 [22:57:45]1040 (4) - 188915 [22:57:45]1012 (4) - 23.10.2024 16:50 [22:57:45]1206 (1) - 0 [22:57:45]OFD Sender: Remove packet 188915 [22:57:45]ProducePacketName [22:57:45]name=ofd_packets/00188915 [22:57:45]NVStorageDeleteData [22:57:45]OFD Sender: No OFD packet to send [22:57:46]*** Cut start [22:57:46]*** Partial cut [22:57:46]*** CUTSNS_PIN = 1 [22:57:46]*** CUTSNS_PIN = 0 [22:57:46]*** Brake cut motor [22:57:47]Read from MH i2c: 01 [22:57:47]MH_I2C_Read... [22:57:47]*** Stop cut motor [22:57:47]*** Cut end [22:57:47]Read from MH i2c: 01 07 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [22:57:47]process_action close_receipt done [22:57:47]requested_data is exist [22:57:47]produce_requested_data [22:57:47]requested_item fm.sn is exist - process it [22:57:47]wFMCommunicate request_size=4 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 11 00 00 [22:57:47]Write to MH i2c: E2 08 00 85 0F 80 11 00 00 00 00 00 00 0E [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 17 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 17 00 85 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5C [22:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:57:47]wFMCommunicate OK [22:57:47]requested_item fd.num is exist - process it [22:57:47]SAM_PROTO_GetFieldsCounters [22:57:47]wFMCommunicate request_size=4 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 13 00 00 [22:57:47]Write to MH i2c: E2 08 00 86 0F 80 13 00 00 00 00 00 00 11 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 62 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 62 00 86 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [22:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:47]wFMCommunicate OK [22:57:47]SAM_PROTO_GetFieldsCounters done [22:57:47]requested_item shift.num is exist - process it [22:57:47]requested_item shift.opened is exist - process it [22:57:47]req_shift_opened [22:57:47]FM_GetShiftState [22:57:47]SAM_PROTO_GetShiftState [22:57:47]wFMCommunicate request_size=4 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 13 01 00 [22:57:47]Write to MH i2c: E2 08 00 87 0F 80 13 01 00 00 00 00 00 13 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 0E 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 0E 00 87 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FB [22:57:47]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [22:57:47]wFMCommunicate OK [22:57:47]SAM_PROTO_GetShiftState done [22:57:47]FM_GetShiftState done [22:57:47]req_shift_opened done [22:57:47]requested_item shift.open_date is exist - process it [22:57:47]req_shift_open_date [22:57:47]req_shift_open_date done [22:57:47]produce_requested_data done [22:57:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188915,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [22:57:47]process_action_free close_receipt [22:57:47]json_value_free [22:57:47]json_value_free done [22:57:47]process_json_proto returns [22:57:47]Send response to host [22:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188915,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [22:57:47]free response buf [22:57:47]execute_script done [22:57:47]execute_script returns [22:57:47]free content buf [22:57:47]Sock 8.Close socket [22:57:47]Sock 8.Thread stoped [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:22]accept exits with 9 [23:16:22]New connection [23:16:22]New thread 3066809700 created [23:16:22]Thread 3066953060 joined [23:16:22]Waiting for new connection... [23:16:22] Sock 9.Parse request [23:16:22]Sock 9.Check first char [23:16:22]Sock 9.First char is OK [23:16:22]request: POST /json_proto HTTP/1.0 [23:16:22]Method: POST [23:16:22]URL: /json_proto [23:16:22]Method is POST - this is cgi request [23:16:22]url: /json_proto [23:16:22]query_string will be loaded in cgi processing [23:16:22]execute_cgi json_proto POST (null) [23:16:22]execute_cgi path=json_proto method=POST [23:16:22]POST find Content-Length [23:16:22]Host: 172.17.42.131:8080 [23:16:22]Content-Length: 678 [23:16:22]Content-Type: application/json [23:16:22] [23:16:22]POST finish read [23:16:22]Found Content-Length = 678 [23:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:22]execute_script... [23:16:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:22]POST & json_proto [23:16:22]process_json_proto [23:16:22]json parsed OK: [23:16:22]protocol is kg_v1.0 [23:16:22]action value=close_receipt [23:16:22]process_action close_receipt [23:16:22]cmd_close_receipt [23:16:22]MH_GetDate [23:16:22]Write to MH i2c: F0 00 00 88 0F 86 [23:16:22]Write i2c OK [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: F0 [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: F0 09 00 [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: F0 09 00 88 0F 00 C7 83 19 67 A0 18 CA 66 41 [23:16:22]GetLastDocTimeStamp 1729724264 [23:16:22]current date 1729725383 [23:16:22]FM_GetShiftState [23:16:22]SAM_PROTO_GetShiftState [23:16:22]wFMCommunicate request_size=4 [23:16:22]MH_SAM_APDU [23:16:22]CAPDU: 80 13 01 00 [23:16:22]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [23:16:22]Write i2c OK [23:16:22]MH_I2C_Read... [23:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:22]Read from MH i2c: E2 [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: E2 0E 00 [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 FD [23:16:22]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:16:22]wFMCommunicate OK [23:16:22]SAM_PROTO_GetShiftState done [23:16:22]FM_GetShiftState done [23:16:22]opened in 1729642525 [23:16:22]opened+sec_in_day 1729728925 [23:16:22]quantity*price = 80012 [23:16:22]sum+1 = 80013 [23:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 374 23.10.2024 23:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188916 ФПД: 12256749865320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231623&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188916&fm=12256749865320&tin=02508201610067®Number=0000000000100030&sum=80000 [23:16:23]StoreToDocumentArchive [23:16:23]shift 462 fd 188916 [23:16:23]save to /storage/0462/doc_00188916 [23:16:23]save last doc name /storage/0462/doc_00188916 to /storage/kkm_last_doc_name [23:16:23]save OK [23:16:23]Clear old archive folders... [23:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:23]tlvbuf is 0050FF40 [23:16:23]SAM_PROTO_ClearQueue [23:16:23]wFMCommunicate request_size=4 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 09 00 00 [23:16:23]Write to MH i2c: E2 08 00 96 0F 80 09 00 00 00 00 00 00 17 [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [23:16:23]RAPDU: 90 00 [23:16:23]wFMCommunicate OK [23:16:23]SAM_PROTO_ClearQueue done [23:16:23]KKMCreateOFDPacket [23:16:23]OFDProtocolAddRootSTLVToBuf [23:16:23]FM_MakeSignedData [23:16:23]FM_MakeSignedData [23:16:23]SAM_PROTO_SignData [23:16:23]wFMCommunicate request_size=4 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 0D 01 02 [23:16:23]Write to MH i2c: E2 08 00 97 0F 80 0D 01 02 00 00 00 00 1F [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [23:16:23]RAPDU: 90 00 [23:16:23]wFMCommunicate OK [23:16:23]wFMCommunicate request_size=255 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 C7 83 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E1 02 00 35 04 06 00 0B [23:16:23]Write to MH i2c: E2 02 01 98 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 C7 83 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E1 02 00 35 04 06 00 0B 00 00 70 [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [23:16:23]RAPDU: 90 00 [23:16:23]wFMCommunicate OK [23:16:23]wFMCommunicate request_size=10 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 0D 02 02 05 25 BF 38 C9 68 [23:16:23]Write to MH i2c: E2 0D 00 99 0F 80 0D 02 02 05 00 25 BF 38 C9 68 00 00 79 [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [23:16:23]RAPDU: 90 00 [23:16:23]wFMCommunicate OK [23:16:23]wFMCommunicate request_size=4 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 0D 03 02 [23:16:23]Write to MH i2c: E2 08 00 9A 0F 80 0D 03 02 00 00 00 00 24 [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 0B 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 0B 00 9A 0F 00 B2 25 4F 0C 83 3B E2 1A 90 00 11 [23:16:23]RAPDU: B2 25 4F 0C 83 3B E2 1A 90 00 [23:16:23]wFMCommunicate OK [23:16:23]SAM_PROTO_SignData done [23:16:23]FM_MakeSignedData done [23:16:23]CreateOFDProtocolMessage [23:16:23]wFMCommunicate request_size=4 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 11 00 00 [23:16:23]Write to MH i2c: E2 08 00 9B 0F 80 11 00 00 00 00 00 00 24 [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 17 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 17 00 9B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [23:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:16:23]wFMCommunicate OK [23:16:23]CreateOFDProtocolMessage done [23:16:23]OFDSenderStorePacket 188916 [23:16:23]StoreOFDPacket docnum=188916 [23:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 86 07 01 4A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 C7 83 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E1 02 00 35 04 06 00 0B 25 BF 38 C9 68 B2 25 4F 0C 83 3B E2 1A [23:16:23]CheckFolder [23:16:23]dirname=/storage/ofd_packets [23:16:23]CheckFolder done [23:16:23]ProducePacketName [23:16:23]name=ofd_packets/00188916 [23:16:23]NVStorageSaveData ofd_packets/00188916 [23:16:23]File name is /storage/ofd_packets/00188916 [23:16:23]Write 301 bytes [23:16:23]NVStorageSaveData done [23:16:23]OFDSenderStorePacket done [23:16:23]KKMCreateOFDPacket done [23:16:23]NVStorageSaveData kkm_last_timestamp [23:16:23]File name is /storage/kkm_last_timestamp [23:16:23]Write 4 bytes [23:16:23]NVStorageSaveData done [23:16:23]ExternCall_PrintAddStr [23:16:23]wPrintStart [23:16:23]Write to MH i2c: 01 00 00 9C 0F AB [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: 01 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: 01 07 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [23:16:23]RasterBufferAndPrint [23:16:23]line Счет N : (1)210979 [23:16:23]line ИНН: 02508201610067 [23:16:23]line Контрольно-Кассовый Чек [23:16:23]line ПРОДАЖА [23:16:23]line ТРК (МРК, ГНК) : 22 [23:16:23]line Товар: 2710124130 [23:16:23]line Аи-92-К-3 [23:16:23]line 11.960 * 66.90 [23:16:23]line = 800.12 [23:16:23]line НДС 12% НСП 1% [23:16:23]line > о реализуемом товаре [23:16:23]line ОКРУГЛЕНИЕ: -0.12 [23:16:23]line ИТОГО: 800.00 [23:16:23]line Внесено: 800.00 [23:16:23]line СДАЧА: 0.00 [23:16:23]line НСП 1% : 7.08 [23:16:23]line НДС 12% : 84.97 [23:16:23]line Наличными: 800.00 [23:16:23]line Безнал.: 0.00 [23:16:23]line Место: АЗС № 86 "Партнер Нефть" [23:16:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:16:23]line СНО: Общий режим [23:16:23]line Чек 374 23.10.2024 23:16 [23:16:23]line Смена: 462 ФФД: 1.0 [23:16:23]line ЗНМ: 0300000155 [23:16:23]line РНМ: 0000000000100030 [23:16:23]line Версия ККМ: 001 [23:16:23]line ФМ: 0000000000965340 [23:16:23]line ФД: 188916 [23:16:23]line ФПД: 12256749865320 [23:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231623&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188916&fm=12256749865320&tin=02508201610067®Number=0000000000100030&sum=80000 [23:16:24]OFD Sender: Processing packet 188916 [packets to send 1062, broken 1061] [23:16:24]ProducePacketName [23:16:24]name=ofd_packets/00188916 [23:16:24]OFD Sender: To server: pG, [23:16:24]CommunicateWithHost lk.salyk.kg:30040 [23:16:24]ConnectInit lk.salyk.kg [23:16:24]written 0, free lines is 4095 [23:16:24]Connected sock=10 [23:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 86 07 01 4A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 C7 83 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E1 02 00 35 04 06 00 0B 25 BF 38 C9 68 B2 25 4F 0C 83 3B E2 1A [23:16:24]Write to MH i2c: 01 00 00 C7 0F D6 [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 07 00 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 58 0C 41 [23:16:24]RasterBufferAndPrint [23:16:24]line [23:16:24]line [23:16:24]line [23:16:24]line [23:16:24]line [23:16:24]written 0, free lines is 3164 [23:16:24]MH_Cut [23:16:24]Write to MH i2c: D1 01 00 CE 0F 01 AF [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: D1 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: D1 01 00 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: D1 01 00 CE 0F 00 AE [23:16:24]Write to MH i2c: 01 00 00 CF 0F DE [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 32 F3 47 00 BF B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 35 33 34 30 10 04 04 00 F4 E1 02 00 F4 03 04 00 B1 2D 19 67 B6 04 01 00 00 1A F1 46 46 F5 F0 78 C5 [23:16:24]CommunicateWithHost err = 0 [23:16:24]CheckOFDResponse [23:16:24]1017 (14) - 77093643461234 [23:16:24]1041 (16) - 0000000000965340 [23:16:24]1040 (4) - 188916 [23:16:24]1012 (4) - 23.10.2024 17:09 [23:16:24]1206 (1) - 0 [23:16:24]OFD Sender: Remove packet 188916 [23:16:24]ProducePacketName [23:16:24]name=ofd_packets/00188916 [23:16:24]NVStorageDeleteData [23:16:25]OFD Sender: No OFD packet to send [23:16:25]*** Cut start [23:16:25]*** Partial cut [23:16:25]*** CUTSNS_PIN = 1 [23:16:25]*** CUTSNS_PIN = 0 [23:16:26]*** Brake cut motor [23:16:26]Read from MH i2c: 01 [23:16:26]MH_I2C_Read... [23:16:26]*** Stop cut motor [23:16:26]*** Cut end [23:16:26]Read from MH i2c: 01 07 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: 01 07 00 CF 0F 00 00 00 00 00 FF 0F F3 [23:16:26]process_action close_receipt done [23:16:26]requested_data is exist [23:16:26]produce_requested_data [23:16:26]requested_item fm.sn is exist - process it [23:16:26]wFMCommunicate request_size=4 [23:16:26]MH_SAM_APDU [23:16:26]CAPDU: 80 11 00 00 [23:16:26]Write to MH i2c: E2 08 00 D0 0F 80 11 00 00 00 00 00 00 59 [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:26]Read from MH i2c: E2 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 17 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 17 00 D0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [23:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:16:26]wFMCommunicate OK [23:16:26]requested_item fd.num is exist - process it [23:16:26]SAM_PROTO_GetFieldsCounters [23:16:26]wFMCommunicate request_size=4 [23:16:26]MH_SAM_APDU [23:16:26]CAPDU: 80 13 00 00 [23:16:26]Write to MH i2c: E2 08 00 D1 0F 80 13 00 00 00 00 00 00 5C [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:26]Read from MH i2c: E2 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 62 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 62 00 D1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [23:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:16:26]wFMCommunicate OK [23:16:26]SAM_PROTO_GetFieldsCounters done [23:16:26]requested_item shift.num is exist - process it [23:16:26]requested_item shift.opened is exist - process it [23:16:26]req_shift_opened [23:16:26]FM_GetShiftState [23:16:26]SAM_PROTO_GetShiftState [23:16:26]wFMCommunicate request_size=4 [23:16:26]MH_SAM_APDU [23:16:26]CAPDU: 80 13 01 00 [23:16:26]Write to MH i2c: E2 08 00 D2 0F 80 13 01 00 00 00 00 00 5E [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:26]Read from MH i2c: E2 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 0E 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 0E 00 D2 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 46 [23:16:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:16:26]wFMCommunicate OK [23:16:26]SAM_PROTO_GetShiftState done [23:16:26]FM_GetShiftState done [23:16:26]req_shift_opened done [23:16:26]requested_item shift.open_date is exist - process it [23:16:26]req_shift_open_date [23:16:26]req_shift_open_date done [23:16:26]produce_requested_data done [23:16:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188916,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [23:16:26]process_action_free close_receipt [23:16:26]json_value_free [23:16:26]json_value_free done [23:16:26]process_json_proto returns [23:16:26]Send response to host [23:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188916,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [23:16:26]free response buf [23:16:26]execute_script done [23:16:26]execute_script returns [23:16:26]free content buf [23:16:26]Sock 9.Close socket [23:16:26]Sock 9.Thread stoped [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]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:33]accept exits with 8 [23:22:33]New connection [23:22:33]New thread 3066953060 created [23:22:33]Thread 3066809700 joined [23:22:33]Waiting for new connection... [23:22:33] Sock 8.Parse request [23:22:33]Sock 8.Check first char [23:22:33]Sock 8.First char is OK [23:22:33]request: POST /json_proto HTTP/1.0 [23:22:33]Method: POST [23:22:33]URL: /json_proto [23:22:33]Method is POST - this is cgi request [23:22:33]url: /json_proto [23:22:33]query_string will be loaded in cgi processing [23:22:33]execute_cgi json_proto POST (null) [23:22:33]execute_cgi path=json_proto method=POST [23:22:33]POST find Content-Length [23:22:33]Host: 172.17.42.131:8080 [23:22:33]Content-Length: 682 [23:22:33]Content-Type: application/json [23:22:33] [23:22:33]POST finish read [23:22:33]Found Content-Length = 682 [23:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:33]execute_script... [23:22:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:33]POST & json_proto [23:22:33]process_json_proto [23:22:33]json parsed OK: [23:22:33]protocol is kg_v1.0 [23:22:33]action value=close_receipt [23:22:33]process_action close_receipt [23:22:33]cmd_close_receipt [23:22:33]MH_GetDate [23:22:33]Write to MH i2c: F0 00 00 D3 0F D1 [23:22:33]Write i2c OK [23:22:33]MH_I2C_Read... [23:22:33]Read from MH i2c: F0 [23:22:33]MH_I2C_Read... [23:22:33]Read from MH i2c: F0 09 00 [23:22:33]MH_I2C_Read... [23:22:33]Read from MH i2c: F0 09 00 D3 0F 00 3A 85 19 67 A0 18 CA 66 01 [23:22:33]GetLastDocTimeStamp 1729725383 [23:22:33]current date 1729725754 [23:22:33]FM_GetShiftState [23:22:33]SAM_PROTO_GetShiftState [23:22:33]wFMCommunicate request_size=4 [23:22:33]MH_SAM_APDU [23:22:33]CAPDU: 80 13 01 00 [23:22:33]Write to MH i2c: E2 08 00 D4 0F 80 13 01 00 00 00 00 00 60 [23:22:33]Write i2c OK [23:22:33]MH_I2C_Read... [23:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:33]Read from MH i2c: E2 [23:22:33]MH_I2C_Read... [23:22:33]Read from MH i2c: E2 0E 00 [23:22:33]MH_I2C_Read... [23:22:33]Read from MH i2c: E2 0E 00 D4 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 48 [23:22:33]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:22:33]wFMCommunicate OK [23:22:33]SAM_PROTO_GetShiftState done [23:22:33]FM_GetShiftState done [23:22:33]opened in 1729642525 [23:22:33]opened+sec_in_day 1729728925 [23:22:33]quantity*price = 100021 [23:22:33]sum+1 = 100023 [23:22:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 375 23.10.2024 23:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188917 ФПД: 47067658316662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232234&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188917&fm=47067658316662&tin=02508201610067®Number=0000000000100030&sum=100000 [23:22:34]StoreToDocumentArchive [23:22:34]shift 462 fd 188917 [23:22:34]save to /storage/0462/doc_00188917 [23:22:34]save last doc name /storage/0462/doc_00188917 to /storage/kkm_last_doc_name [23:22:34]save OK [23:22:34]Clear old archive folders... [23:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:22:34]tlvbuf is 00569C60 [23:22:34]SAM_PROTO_ClearQueue [23:22:34]wFMCommunicate request_size=4 [23:22:34]MH_SAM_APDU [23:22:34]CAPDU: 80 09 00 00 [23:22:34]Write to MH i2c: E2 08 00 E1 0F 80 09 00 00 00 00 00 00 62 [23:22:34]Write i2c OK [23:22:34]MH_I2C_Read... [23:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:34]Read from MH i2c: E2 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 03 00 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [23:22:34]RAPDU: 90 00 [23:22:34]wFMCommunicate OK [23:22:34]SAM_PROTO_ClearQueue done [23:22:34]KKMCreateOFDPacket [23:22:34]OFDProtocolAddRootSTLVToBuf [23:22:34]FM_MakeSignedData [23:22:34]FM_MakeSignedData [23:22:34]SAM_PROTO_SignData [23:22:34]wFMCommunicate request_size=4 [23:22:34]MH_SAM_APDU [23:22:34]CAPDU: 80 0D 01 02 [23:22:34]Write to MH i2c: E2 08 00 E2 0F 80 0D 01 02 00 00 00 00 6A [23:22:34]Write i2c OK [23:22:34]MH_I2C_Read... [23:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:34]Read from MH i2c: E2 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 03 00 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [23:22:34]RAPDU: 90 00 [23:22:34]wFMCommunicate OK [23:22:34]wFMCommunicate request_size=255 [23:22:34]MH_SAM_APDU [23:22:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 3A 85 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E1 02 00 35 04 06 00 2A [23:22:34]Write to MH i2c: E2 02 01 E3 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 3A 85 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E1 02 00 35 04 06 00 2A 00 00 82 [23:22:34]Write i2c OK [23:22:34]MH_I2C_Read... [23:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:34]Read from MH i2c: E2 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 03 00 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [23:22:34]RAPDU: 90 00 [23:22:34]wFMCommunicate OK [23:22:34]wFMCommunicate request_size=10 [23:22:34]MH_SAM_APDU [23:22:34]CAPDU: 80 0D 02 02 05 CE CB 0D EB 76 [23:22:34]Write to MH i2c: E2 0D 00 E4 0F 80 0D 02 02 05 00 CE CB 0D EB 76 00 00 7E [23:22:34]Write i2c OK [23:22:34]MH_I2C_Read... [23:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:34]Read from MH i2c: E2 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 03 00 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [23:22:34]RAPDU: 90 00 [23:22:34]wFMCommunicate OK [23:22:34]wFMCommunicate request_size=4 [23:22:34]MH_SAM_APDU [23:22:34]CAPDU: 80 0D 03 02 [23:22:34]Write to MH i2c: E2 08 00 E5 0F 80 0D 03 02 00 00 00 00 6F [23:22:34]Write i2c OK [23:22:34]MH_I2C_Read... [23:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:34]Read from MH i2c: E2 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 0B 00 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 0B 00 E5 0F 00 1E EA FE 2B 41 F3 5E AB 90 00 DE [23:22:34]RAPDU: 1E EA FE 2B 41 F3 5E AB 90 00 [23:22:34]wFMCommunicate OK [23:22:34]SAM_PROTO_SignData done [23:22:34]FM_MakeSignedData done [23:22:34]CreateOFDProtocolMessage [23:22:34]wFMCommunicate request_size=4 [23:22:34]MH_SAM_APDU [23:22:34]CAPDU: 80 11 00 00 [23:22:34]Write to MH i2c: E2 08 00 E6 0F 80 11 00 00 00 00 00 00 6F [23:22:34]Write i2c OK [23:22:34]MH_I2C_Read... [23:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:34]Read from MH i2c: E2 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 17 00 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 17 00 E6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [23:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:22:34]wFMCommunicate OK [23:22:34]CreateOFDProtocolMessage done [23:22:34]OFDSenderStorePacket 188917 [23:22:34]StoreOFDPacket docnum=188917 [23:22:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 C9 07 01 B6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 3A 85 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E1 02 00 35 04 06 00 2A CE CB 0D EB 76 1E EA FE 2B 41 F3 5E AB [23:22:34]CheckFolder [23:22:34]dirname=/storage/ofd_packets [23:22:34]CheckFolder done [23:22:34]ProducePacketName [23:22:34]name=ofd_packets/00188917 [23:22:34]NVStorageSaveData ofd_packets/00188917 [23:22:34]File name is /storage/ofd_packets/00188917 [23:22:34]Write 301 bytes [23:22:34]NVStorageSaveData done [23:22:34]OFDSenderStorePacket done [23:22:34]KKMCreateOFDPacket done [23:22:34]NVStorageSaveData kkm_last_timestamp [23:22:34]File name is /storage/kkm_last_timestamp [23:22:34]Write 4 bytes [23:22:34]NVStorageSaveData done [23:22:34]ExternCall_PrintAddStr [23:22:34]wPrintStart [23:22:34]Write to MH i2c: 01 00 00 E7 0F F6 [23:22:35]Write i2c OK [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: 01 [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: 01 07 00 [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: 01 07 00 E7 0F 00 00 00 00 00 FF 0F 0B [23:22:35]RasterBufferAndPrint [23:22:35]line Счет N : (1)210980 [23:22:35]line ИНН: 02508201610067 [23:22:35]line Контрольно-Кассовый Чек [23:22:35]line ПРОДАЖА [23:22:35]line ТРК (МРК, ГНК) : 43 [23:22:35]line Товар: 2710124500 [23:22:35]line Аи-95-К-3 [23:22:35]line 13.480 * 74.20 [23:22:35]line = 1000.22 [23:22:35]line НДС 12% НСП 1% [23:22:35]line > о реализуемом товаре [23:22:35]line ОКРУГЛЕНИЕ: -0.22 [23:22:35]line ИТОГО: 1000.00 [23:22:35]line Внесено: 1000.00 [23:22:35]line СДАЧА: 0.00 [23:22:35]line НСП 1% : 8.85 [23:22:35]line НДС 12% : 106.22 [23:22:35]line Наличными: 1000.00 [23:22:35]line Безнал.: 0.00 [23:22:35]line Место: АЗС № 86 "Партнер Нефть" [23:22:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:22:35]line СНО: Общий режим [23:22:35]line Чек 375 23.10.2024 23:22 [23:22:35]line Смена: 462 ФФД: 1.0 [23:22:35]line ЗНМ: 0300000155 [23:22:35]line РНМ: 0000000000100030 [23:22:35]line Версия ККМ: 001 [23:22:35]line ФМ: 0000000000965340 [23:22:35]line ФД: 188917 [23:22:35]line ФПД: 47067658316662 [23:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232234&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188917&fm=47067658316662&tin=02508201610067®Number=0000000000100030&sum=100000 [23:22:35]OFD Sender: Processing packet 188917 [packets to send 1062, broken 1061] [23:22:35]ProducePacketName [23:22:35]name=ofd_packets/00188917 [23:22:35]OFD Sender: To server: pG, [23:22:35]CommunicateWithHost lk.salyk.kg:30040 [23:22:35]ConnectInit lk.salyk.kg [23:22:35]written 0, free lines is 4095 [23:22:35]Connected sock=10 [23:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 C9 07 01 B6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 3A 85 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E1 02 00 35 04 06 00 2A CE CB 0D EB 76 1E EA FE 2B 41 F3 5E AB [23:22:35]Write to MH i2c: 01 00 00 12 10 22 [23:22:35]Write i2c OK [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: 01 [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: 01 07 00 [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: 01 07 00 12 10 00 00 00 00 00 5F 0C 94 [23:22:35]RasterBufferAndPrint [23:22:35]line [23:22:35]line [23:22:35]line [23:22:35]line [23:22:35]line [23:22:35]written 0, free lines is 3170 [23:22:35]MH_Cut [23:22:35]Write to MH i2c: D1 01 00 19 10 01 FB [23:22:35]Write i2c OK [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: D1 [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: D1 01 00 [23:22:35]MH_I2C_Read... [23:22:35]Read from MH i2c: D1 01 00 19 10 00 FA [23:22:35]Write to MH i2c: 01 00 00 1A 10 2A [23:22:35]Write i2c OK [23:22:35]MH_I2C_Read... [23:22:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 51 47 47 00 E3 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E1 02 00 F4 03 04 00 24 2F 19 67 B6 04 01 00 00 49 1D EC 9B 95 82 87 C9 [23:22:35]CommunicateWithHost err = 0 [23:22:35]CheckOFDResponse [23:22:35]1017 (14) - 77093643461234 [23:22:35]1041 (16) - 0000000000965340 [23:22:35]1040 (4) - 188917 [23:22:35]1012 (4) - 23.10.2024 17:15 [23:22:35]1206 (1) - 0 [23:22:35]OFD Sender: Remove packet 188917 [23:22:35]ProducePacketName [23:22:35]name=ofd_packets/00188917 [23:22:35]NVStorageDeleteData [23:22:36]OFD Sender: No OFD packet to send [23:22:36]*** Cut start [23:22:36]*** Partial cut [23:22:36]*** CUTSNS_PIN = 1 [23:22:36]*** CUTSNS_PIN = 0 [23:22:37]*** Brake cut motor [23:22:37]Read from MH i2c: 01 [23:22:37]MH_I2C_Read... [23:22:37]*** Stop cut motor [23:22:37]*** Cut end [23:22:37]Read from MH i2c: 01 07 00 [23:22:37]MH_I2C_Read... [23:22:37]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 FF 0F 3F [23:22:37]process_action close_receipt done [23:22:37]requested_data is exist [23:22:37]produce_requested_data [23:22:37]requested_item fm.sn is exist - process it [23:22:37]wFMCommunicate request_size=4 [23:22:37]MH_SAM_APDU [23:22:37]CAPDU: 80 11 00 00 [23:22:37]Write to MH i2c: E2 08 00 1B 10 80 11 00 00 00 00 00 00 A5 [23:22:37]Write i2c OK [23:22:37]MH_I2C_Read... [23:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:37]Read from MH i2c: E2 [23:22:37]MH_I2C_Read... [23:22:37]Read from MH i2c: E2 17 00 [23:22:37]MH_I2C_Read... [23:22:37]Read from MH i2c: E2 17 00 1B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F3 [23:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:22:37]wFMCommunicate OK [23:22:37]requested_item fd.num is exist - process it [23:22:37]SAM_PROTO_GetFieldsCounters [23:22:37]wFMCommunicate request_size=4 [23:22:37]MH_SAM_APDU [23:22:37]CAPDU: 80 13 00 00 [23:22:37]Write to MH i2c: E2 08 00 1C 10 80 13 00 00 00 00 00 00 A8 [23:22:37]Write i2c OK [23:22:37]MH_I2C_Read... [23:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:37]Read from MH i2c: E2 [23:22:37]MH_I2C_Read... [23:22:37]Read from MH i2c: E2 62 00 [23:22:37]MH_I2C_Read... [23:22:37]Read from MH i2c: E2 62 00 1C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [23:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:37]wFMCommunicate OK [23:22:37]SAM_PROTO_GetFieldsCounters done [23:22:37]requested_item shift.num is exist - process it [23:22:37]requested_item shift.opened is exist - process it [23:22:37]req_shift_opened [23:22:37]FM_GetShiftState [23:22:37]SAM_PROTO_GetShiftState [23:22:37]wFMCommunicate request_size=4 [23:22:37]MH_SAM_APDU [23:22:37]CAPDU: 80 13 01 00 [23:22:37]Write to MH i2c: E2 08 00 1D 10 80 13 01 00 00 00 00 00 AA [23:22:37]Write i2c OK [23:22:37]MH_I2C_Read... [23:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:37]Read from MH i2c: E2 [23:22:37]MH_I2C_Read... [23:22:37]Read from MH i2c: E2 0E 00 [23:22:37]MH_I2C_Read... [23:22:37]Read from MH i2c: E2 0E 00 1D 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 92 [23:22:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:22:37]wFMCommunicate OK [23:22:37]SAM_PROTO_GetShiftState done [23:22:37]FM_GetShiftState done [23:22:37]req_shift_opened done [23:22:37]requested_item shift.open_date is exist - process it [23:22:37]req_shift_open_date [23:22:37]req_shift_open_date done [23:22:37]produce_requested_data done [23:22:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188917,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [23:22:37]process_action_free close_receipt [23:22:37]json_value_free [23:22:37]json_value_free done [23:22:37]process_json_proto returns [23:22:37]Send response to host [23:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188917,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [23:22:37]free response buf [23:22:37]execute_script done [23:22:37]execute_script returns [23:22:37]free content buf [23:22:37]Sock 8.Close socket [23:22:37]Sock 8.Thread stoped [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:27]accept exits with 9 [23:24:27]New connection [23:24:27]New thread 3066809700 created [23:24:27]Thread 3066953060 joined [23:24:27]Waiting for new connection... [23:24:27] Sock 9.Parse request [23:24:27]Sock 9.Check first char [23:24:27]Sock 9.First char is OK [23:24:27]request: POST /json_proto HTTP/1.0 [23:24:27]Method: POST [23:24:27]URL: /json_proto [23:24:27]Method is POST - this is cgi request [23:24:27]url: /json_proto [23:24:27]query_string will be loaded in cgi processing [23:24:27]execute_cgi json_proto POST (null) [23:24:27]execute_cgi path=json_proto method=POST [23:24:27]POST find Content-Length [23:24:27]Host: 172.17.42.131:8080 [23:24:27]Content-Length: 677 [23:24:27]Content-Type: application/json [23:24:27] [23:24:27]POST finish read [23:24:27]Found Content-Length = 677 [23:24:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.880, "sum" : 460.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:27]execute_script... [23:24:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.880, "sum" : 460.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:27]POST & json_proto [23:24:27]process_json_proto [23:24:27]json parsed OK: [23:24:27]protocol is kg_v1.0 [23:24:27]action value=close_receipt [23:24:27]process_action close_receipt [23:24:27]cmd_close_receipt [23:24:27]MH_GetDate [23:24:27]Write to MH i2c: F0 00 00 1E 10 1D [23:24:27]Write i2c OK [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: F0 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: F0 09 00 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: F0 09 00 1E 10 00 AD 85 19 67 A0 18 CA 66 C0 [23:24:27]GetLastDocTimeStamp 1729725754 [23:24:27]current date 1729725869 [23:24:27]FM_GetShiftState [23:24:27]SAM_PROTO_GetShiftState [23:24:27]wFMCommunicate request_size=4 [23:24:27]MH_SAM_APDU [23:24:27]CAPDU: 80 13 01 00 [23:24:27]Write to MH i2c: E2 08 00 1F 10 80 13 01 00 00 00 00 00 AC [23:24:27]Write i2c OK [23:24:27]MH_I2C_Read... [23:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:27]Read from MH i2c: E2 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 0E 00 [23:24:27]MH_I2C_Read... [23:24:27]Read from MH i2c: E2 0E 00 1F 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 94 [23:24:27]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:24:27]wFMCommunicate OK [23:24:27]SAM_PROTO_GetShiftState done [23:24:27]FM_GetShiftState done [23:24:27]opened in 1729642525 [23:24:27]opened+sec_in_day 1729728925 [23:24:27]quantity*price = 46027 [23:24:27]sum+1 = 46028 [23:24:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.07 НДС 12% : 48.88 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 376 23.10.2024 23:24 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188918 ФПД: 932822151769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232429&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188918&fm=932822151769&tin=02508201610067®Number=0000000000100030&sum=46000 [23:24:29]StoreToDocumentArchive [23:24:29]shift 462 fd 188918 [23:24:29]save to /storage/0462/doc_00188918 [23:24:29]save last doc name /storage/0462/doc_00188918 to /storage/kkm_last_doc_name [23:24:29]save OK [23:24:29]Clear old archive folders... [23:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:29]tlvbuf is 004FECF0 [23:24:29]SAM_PROTO_ClearQueue [23:24:29]wFMCommunicate request_size=4 [23:24:29]MH_SAM_APDU [23:24:29]CAPDU: 80 09 00 00 [23:24:29]Write to MH i2c: E2 08 00 2C 10 80 09 00 00 00 00 00 00 AE [23:24:29]Write i2c OK [23:24:29]MH_I2C_Read... [23:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:29]Read from MH i2c: E2 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 03 00 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [23:24:29]RAPDU: 90 00 [23:24:29]wFMCommunicate OK [23:24:29]SAM_PROTO_ClearQueue done [23:24:29]KKMCreateOFDPacket [23:24:29]OFDProtocolAddRootSTLVToBuf [23:24:29]FM_MakeSignedData [23:24:29]FM_MakeSignedData [23:24:29]SAM_PROTO_SignData [23:24:29]wFMCommunicate request_size=4 [23:24:29]MH_SAM_APDU [23:24:29]CAPDU: 80 0D 01 02 [23:24:29]Write to MH i2c: E2 08 00 2D 10 80 0D 01 02 00 00 00 00 B6 [23:24:29]Write i2c OK [23:24:29]MH_I2C_Read... [23:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:29]Read from MH i2c: E2 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 03 00 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [23:24:29]RAPDU: 90 00 [23:24:29]wFMCommunicate OK [23:24:29]wFMCommunicate request_size=255 [23:24:29]MH_SAM_APDU [23:24:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 AD 85 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E1 02 00 35 04 06 00 00 [23:24:29]Write to MH i2c: E2 02 01 2E 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 AD 85 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E1 02 00 35 04 06 00 00 00 00 B4 [23:24:29]Write i2c OK [23:24:29]MH_I2C_Read... [23:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:29]Read from MH i2c: E2 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 03 00 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [23:24:29]RAPDU: 90 00 [23:24:29]wFMCommunicate OK [23:24:29]wFMCommunicate request_size=10 [23:24:29]MH_SAM_APDU [23:24:29]CAPDU: 80 0D 02 02 05 D9 30 88 72 59 [23:24:29]Write to MH i2c: E2 0D 00 2F 10 80 0D 02 02 05 00 D9 30 88 72 59 00 00 1F [23:24:29]Write i2c OK [23:24:29]MH_I2C_Read... [23:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:29]Read from MH i2c: E2 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 03 00 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [23:24:29]RAPDU: 90 00 [23:24:29]wFMCommunicate OK [23:24:29]wFMCommunicate request_size=4 [23:24:29]MH_SAM_APDU [23:24:29]CAPDU: 80 0D 03 02 [23:24:29]Write to MH i2c: E2 08 00 30 10 80 0D 03 02 00 00 00 00 BB [23:24:29]Write i2c OK [23:24:29]MH_I2C_Read... [23:24:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:29]Read from MH i2c: E2 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 0B 00 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 0B 00 30 10 00 8B 1E 5D 38 A1 FF BE 2E 90 00 86 [23:24:29]RAPDU: 8B 1E 5D 38 A1 FF BE 2E 90 00 [23:24:29]wFMCommunicate OK [23:24:29]SAM_PROTO_SignData done [23:24:29]FM_MakeSignedData done [23:24:29]CreateOFDProtocolMessage [23:24:29]wFMCommunicate request_size=4 [23:24:29]MH_SAM_APDU [23:24:29]CAPDU: 80 11 00 00 [23:24:29]Write to MH i2c: E2 08 00 31 10 80 11 00 00 00 00 00 00 BB [23:24:29]Write i2c OK [23:24:29]MH_I2C_Read... [23:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:29]Read from MH i2c: E2 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 17 00 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: E2 17 00 31 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 09 [23:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:24:29]wFMCommunicate OK [23:24:29]CreateOFDProtocolMessage done [23:24:29]OFDSenderStorePacket 188918 [23:24:29]StoreOFDPacket docnum=188918 [23:24:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9F E9 07 01 08 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 AD 85 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E1 02 00 35 04 06 00 00 D9 30 88 72 59 8B 1E 5D 38 A1 FF BE 2E [23:24:29]CheckFolder [23:24:29]dirname=/storage/ofd_packets [23:24:29]CheckFolder done [23:24:29]ProducePacketName [23:24:29]name=ofd_packets/00188918 [23:24:29]NVStorageSaveData ofd_packets/00188918 [23:24:29]File name is /storage/ofd_packets/00188918 [23:24:29]Write 301 bytes [23:24:29]NVStorageSaveData done [23:24:29]OFDSenderStorePacket done [23:24:29]KKMCreateOFDPacket done [23:24:29]NVStorageSaveData kkm_last_timestamp [23:24:29]File name is /storage/kkm_last_timestamp [23:24:29]Write 4 bytes [23:24:29]NVStorageSaveData done [23:24:29]ExternCall_PrintAddStr [23:24:29]wPrintStart [23:24:29]Write to MH i2c: 01 00 00 32 10 42 [23:24:29]Write i2c OK [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: 01 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: 01 07 00 [23:24:29]MH_I2C_Read... [23:24:29]Read from MH i2c: 01 07 00 32 10 00 00 00 00 00 FF 0F 57 [23:24:29]RasterBufferAndPrint [23:24:29]line Счет N : (1)210981 [23:24:29]line ИНН: 02508201610067 [23:24:29]line Контрольно-Кассовый Чек [23:24:29]line ПРОДАЖА [23:24:29]line ТРК (МРК, ГНК) : 12 [23:24:29]line Товар: 2710124130 [23:24:29]line Аи-92-К-3 [23:24:29]line 6.880 * 66.90 [23:24:29]line = 460.27 [23:24:29]line НДС 12% НСП 1% [23:24:29]line > о реализуемом товаре [23:24:29]line ОКРУГЛЕНИЕ: -0.27 [23:24:29]line ИТОГО: 460.00 [23:24:29]line Внесено: 460.00 [23:24:29]line СДАЧА: 0.00 [23:24:29]line НСП 1% : 4.07 [23:24:29]line НДС 12% : 48.88 [23:24:29]line Наличными: 460.00 [23:24:29]line Безнал.: 0.00 [23:24:29]line Место: АЗС № 86 "Партнер Нефть" [23:24:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:24:29]line СНО: Общий режим [23:24:29]line Чек 376 23.10.2024 23:24 [23:24:29]line Смена: 462 ФФД: 1.0 [23:24:29]line ЗНМ: 0300000155 [23:24:29]line РНМ: 0000000000100030 [23:24:29]line Версия ККМ: 001 [23:24:29]line ФМ: 0000000000965340 [23:24:29]line ФД: 188918 [23:24:29]line ФПД: 932822151769 [23:24:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232429&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188918&fm=932822151769&tin=02508201610067®Number=0000000000100030&sum=46000 [23:24:29]written 0, free lines is 4095 [23:24:29]OFD Sender: Processing packet 188918 [packets to send 1062, broken 1061] [23:24:29]ProducePacketName [23:24:29]name=ofd_packets/00188918 [23:24:29]OFD Sender: To server: pG, [23:24:29]CommunicateWithHost lk.salyk.kg:30040 [23:24:29]ConnectInit lk.salyk.kg [23:24:29]Connected sock=11 [23:24:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9F E9 07 01 08 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 AD 85 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E1 02 00 35 04 06 00 00 D9 30 88 72 59 8B 1E 5D 38 A1 FF BE 2E [23:24:30]Write to MH i2c: 01 00 00 5D 10 6D [23:24:30]Write i2c OK [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: 01 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: 01 07 00 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: 01 07 00 5D 10 00 00 00 00 00 55 0C D5 [23:24:30]RasterBufferAndPrint [23:24:30]line [23:24:30]line [23:24:30]line [23:24:30]line [23:24:30]line [23:24:30]written 0, free lines is 3160 [23:24:30]MH_Cut [23:24:30]Write to MH i2c: D1 01 00 64 10 01 46 [23:24:30]Write i2c OK [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: D1 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: D1 01 00 [23:24:30]MH_I2C_Read... [23:24:30]Read from MH i2c: D1 01 00 64 10 00 45 [23:24:30]Write to MH i2c: 01 00 00 65 10 75 [23:24:30]Write i2c OK [23:24:30]MH_I2C_Read... [23:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C3 8C 47 00 8F EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E1 02 00 F4 03 04 00 96 2F 19 67 B6 04 01 00 00 03 92 23 B0 50 ED 40 60 [23:24:30]CommunicateWithHost err = 0 [23:24:30]CheckOFDResponse [23:24:30]1017 (14) - 77093643461234 [23:24:30]1041 (16) - 0000000000965340 [23:24:30]1040 (4) - 188918 [23:24:30]1012 (4) - 23.10.2024 17:17 [23:24:30]1206 (1) - 0 [23:24:30]OFD Sender: Remove packet 188918 [23:24:30]ProducePacketName [23:24:30]name=ofd_packets/00188918 [23:24:30]NVStorageDeleteData [23:24:30]OFD Sender: No OFD packet to send [23:24:31]*** Cut start [23:24:31]*** Partial cut [23:24:31]*** CUTSNS_PIN = 1 [23:24:31]*** CUTSNS_PIN = 0 [23:24:31]*** Brake cut motor [23:24:32]Read from MH i2c: 01 [23:24:32]MH_I2C_Read... [23:24:32]*** Stop cut motor [23:24:32]*** Cut end [23:24:32]Read from MH i2c: 01 07 00 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 FF 0F 8A [23:24:32]process_action close_receipt done [23:24:32]requested_data is exist [23:24:32]produce_requested_data [23:24:32]requested_item fm.sn is exist - process it [23:24:32]wFMCommunicate request_size=4 [23:24:32]MH_SAM_APDU [23:24:32]CAPDU: 80 11 00 00 [23:24:32]Write to MH i2c: E2 08 00 66 10 80 11 00 00 00 00 00 00 F0 [23:24:32]Write i2c OK [23:24:32]MH_I2C_Read... [23:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:32]Read from MH i2c: E2 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: E2 17 00 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: E2 17 00 66 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3E [23:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:24:32]wFMCommunicate OK [23:24:32]requested_item fd.num is exist - process it [23:24:32]SAM_PROTO_GetFieldsCounters [23:24:32]wFMCommunicate request_size=4 [23:24:32]MH_SAM_APDU [23:24:32]CAPDU: 80 13 00 00 [23:24:32]Write to MH i2c: E2 08 00 67 10 80 13 00 00 00 00 00 00 F3 [23:24:32]Write i2c OK [23:24:32]MH_I2C_Read... [23:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:32]Read from MH i2c: E2 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: E2 62 00 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: E2 62 00 67 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [23:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:32]wFMCommunicate OK [23:24:32]SAM_PROTO_GetFieldsCounters done [23:24:32]requested_item shift.num is exist - process it [23:24:32]requested_item shift.opened is exist - process it [23:24:32]req_shift_opened [23:24:32]FM_GetShiftState [23:24:32]SAM_PROTO_GetShiftState [23:24:32]wFMCommunicate request_size=4 [23:24:32]MH_SAM_APDU [23:24:32]CAPDU: 80 13 01 00 [23:24:32]Write to MH i2c: E2 08 00 68 10 80 13 01 00 00 00 00 00 F5 [23:24:32]Write i2c OK [23:24:32]MH_I2C_Read... [23:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:32]Read from MH i2c: E2 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: E2 0E 00 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: E2 0E 00 68 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DD [23:24:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:24:32]wFMCommunicate OK [23:24:32]SAM_PROTO_GetShiftState done [23:24:32]FM_GetShiftState done [23:24:32]req_shift_opened done [23:24:32]requested_item shift.open_date is exist - process it [23:24:32]req_shift_open_date [23:24:32]req_shift_open_date done [23:24:32]produce_requested_data done [23:24:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188918,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [23:24:32]process_action_free close_receipt [23:24:32]json_value_free [23:24:32]json_value_free done [23:24:32]process_json_proto returns [23:24:32]Send response to host [23:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188918,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [23:24:32]free response buf [23:24:32]execute_script done [23:24:32]execute_script returns [23:24:32]free content buf [23:24:32]Sock 9.Close socket [23:24:32]Sock 9.Thread stoped [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25: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:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29: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:25]accept exits with 8 [23:31:25]New connection [23:31:25]New thread 3066953060 created [23:31:25]Thread 3066809700 joined [23:31:25]Waiting for new connection... [23:31:25] Sock 8.Parse request [23:31:25]Sock 8.Check first char [23:31:25]Sock 8.First char is OK [23:31:25]request: POST /json_proto HTTP/1.0 [23:31:25]Method: POST [23:31:25]URL: /json_proto [23:31:25]Method is POST - this is cgi request [23:31:25]url: /json_proto [23:31:25]query_string will be loaded in cgi processing [23:31:25]execute_cgi json_proto POST (null) [23:31:25]execute_cgi path=json_proto method=POST [23:31:25]POST find Content-Length [23:31:25]Host: 172.17.42.131:8080 [23:31:25]Content-Length: 673 [23:31:25]Content-Type: application/json [23:31:25] [23:31:25]POST finish read [23:31:25]Found Content-Length = 673 [23:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:25]execute_script... [23:31:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:25]POST & json_proto [23:31:25]process_json_proto [23:31:25]json parsed OK: [23:31:25]protocol is kg_v1.0 [23:31:25]action value=close_receipt [23:31:25]process_action close_receipt [23:31:25]cmd_close_receipt [23:31:25]MH_GetDate [23:31:25]Write to MH i2c: F0 00 00 69 10 68 [23:31:25]Write i2c OK [23:31:25]MH_I2C_Read... [23:31:25]Read from MH i2c: F0 [23:31:25]MH_I2C_Read... [23:31:25]Read from MH i2c: F0 09 00 [23:31:25]MH_I2C_Read... [23:31:25]Read from MH i2c: F0 09 00 69 10 00 4F 87 19 67 A0 18 CA 66 AF [23:31:25]GetLastDocTimeStamp 1729725869 [23:31:25]current date 1729726287 [23:31:25]FM_GetShiftState [23:31:25]SAM_PROTO_GetShiftState [23:31:25]wFMCommunicate request_size=4 [23:31:25]MH_SAM_APDU [23:31:25]CAPDU: 80 13 01 00 [23:31:25]Write to MH i2c: E2 08 00 6A 10 80 13 01 00 00 00 00 00 F7 [23:31:25]Write i2c OK [23:31:25]MH_I2C_Read... [23:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:25]Read from MH i2c: E2 [23:31:25]MH_I2C_Read... [23:31:25]Read from MH i2c: E2 0E 00 [23:31:25]MH_I2C_Read... [23:31:25]Read from MH i2c: E2 0E 00 6A 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 DF [23:31:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:31:25]wFMCommunicate OK [23:31:25]SAM_PROTO_GetShiftState done [23:31:25]FM_GetShiftState done [23:31:25]opened in 1729642525 [23:31:25]opened+sec_in_day 1729728925 [23:31:25]quantity*price = 7024 [23:31:25]sum+1 = 7026 [23:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.46 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 377 23.10.2024 23:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188919 ФПД: 173471516813687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233127&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188919&fm=173471516813687&tin=02508201610067®Number=0000000000100030&sum=7000 [23:31:27]StoreToDocumentArchive [23:31:27]shift 462 fd 188919 [23:31:27]save to /storage/0462/doc_00188919 [23:31:27]save last doc name /storage/0462/doc_00188919 to /storage/kkm_last_doc_name [23:31:27]save OK [23:31:27]Clear old archive folders... [23:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:31:27]tlvbuf is 0053A1C0 [23:31:27]SAM_PROTO_ClearQueue [23:31:27]wFMCommunicate request_size=4 [23:31:27]MH_SAM_APDU [23:31:27]CAPDU: 80 09 00 00 [23:31:27]Write to MH i2c: E2 08 00 77 10 80 09 00 00 00 00 00 00 F9 [23:31:27]Write i2c OK [23:31:27]MH_I2C_Read... [23:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:27]Read from MH i2c: E2 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 03 00 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [23:31:27]RAPDU: 90 00 [23:31:27]wFMCommunicate OK [23:31:27]SAM_PROTO_ClearQueue done [23:31:27]KKMCreateOFDPacket [23:31:27]OFDProtocolAddRootSTLVToBuf [23:31:27]FM_MakeSignedData [23:31:27]FM_MakeSignedData [23:31:27]SAM_PROTO_SignData [23:31:27]wFMCommunicate request_size=4 [23:31:27]MH_SAM_APDU [23:31:27]CAPDU: 80 0D 01 02 [23:31:27]Write to MH i2c: E2 08 00 78 10 80 0D 01 02 00 00 00 00 01 [23:31:27]Write i2c OK [23:31:27]MH_I2C_Read... [23:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:27]Read from MH i2c: E2 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 03 00 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [23:31:27]RAPDU: 90 00 [23:31:27]wFMCommunicate OK [23:31:27]wFMCommunicate request_size=255 [23:31:27]MH_SAM_APDU [23:31:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 79 01 00 00 F4 03 04 00 4F 87 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E1 02 00 35 04 06 00 9D [23:31:27]Write to MH i2c: E2 02 01 79 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 79 01 00 00 F4 03 04 00 4F 87 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E1 02 00 35 04 06 00 9D 00 00 FB [23:31:27]Write i2c OK [23:31:27]MH_I2C_Read... [23:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:27]Read from MH i2c: E2 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 03 00 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [23:31:27]RAPDU: 90 00 [23:31:27]wFMCommunicate OK [23:31:27]wFMCommunicate request_size=10 [23:31:27]MH_SAM_APDU [23:31:27]CAPDU: 80 0D 02 02 05 C5 7C 23 69 77 [23:31:27]Write to MH i2c: E2 0D 00 7A 10 80 0D 02 02 05 00 C5 7C 23 69 77 00 00 52 [23:31:27]Write i2c OK [23:31:27]MH_I2C_Read... [23:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:27]Read from MH i2c: E2 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 03 00 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [23:31:27]RAPDU: 90 00 [23:31:27]wFMCommunicate OK [23:31:27]wFMCommunicate request_size=4 [23:31:27]MH_SAM_APDU [23:31:27]CAPDU: 80 0D 03 02 [23:31:27]Write to MH i2c: E2 08 00 7B 10 80 0D 03 02 00 00 00 00 06 [23:31:27]Write i2c OK [23:31:27]MH_I2C_Read... [23:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:27]Read from MH i2c: E2 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 0B 00 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 0B 00 7B 10 00 74 C4 82 63 BD 95 02 33 90 00 AB [23:31:27]RAPDU: 74 C4 82 63 BD 95 02 33 90 00 [23:31:27]wFMCommunicate OK [23:31:27]SAM_PROTO_SignData done [23:31:27]FM_MakeSignedData done [23:31:27]CreateOFDProtocolMessage [23:31:27]wFMCommunicate request_size=4 [23:31:27]MH_SAM_APDU [23:31:27]CAPDU: 80 11 00 00 [23:31:27]Write to MH i2c: E2 08 00 7C 10 80 11 00 00 00 00 00 00 06 [23:31:27]Write i2c OK [23:31:27]MH_I2C_Read... [23:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:27]Read from MH i2c: E2 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 17 00 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: E2 17 00 7C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [23:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:31:27]wFMCommunicate OK [23:31:27]CreateOFDProtocolMessage done [23:31:27]OFDSenderStorePacket 188919 [23:31:27]StoreOFDPacket docnum=188919 [23:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 A0 07 01 EF 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 79 01 00 00 F4 03 04 00 4F 87 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E1 02 00 35 04 06 00 9D C5 7C 23 69 77 74 C4 82 63 BD 95 02 33 [23:31:27]CheckFolder [23:31:27]dirname=/storage/ofd_packets [23:31:27]CheckFolder done [23:31:27]ProducePacketName [23:31:27]name=ofd_packets/00188919 [23:31:27]NVStorageSaveData ofd_packets/00188919 [23:31:27]File name is /storage/ofd_packets/00188919 [23:31:27]Write 301 bytes [23:31:27]NVStorageSaveData done [23:31:27]OFDSenderStorePacket done [23:31:27]KKMCreateOFDPacket done [23:31:27]NVStorageSaveData kkm_last_timestamp [23:31:27]File name is /storage/kkm_last_timestamp [23:31:27]Write 4 bytes [23:31:27]NVStorageSaveData done [23:31:27]ExternCall_PrintAddStr [23:31:27]wPrintStart [23:31:27]Write to MH i2c: 01 00 00 7D 10 8D [23:31:27]Write i2c OK [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: 01 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: 01 07 00 [23:31:27]MH_I2C_Read... [23:31:27]Read from MH i2c: 01 07 00 7D 10 00 00 00 00 00 FF 0F A2 [23:31:27]RasterBufferAndPrint [23:31:27]line Счет N : (1)210982 [23:31:27]line ИНН: 02508201610067 [23:31:27]line Контрольно-Кассовый Чек [23:31:27]line ПРОДАЖА [23:31:27]line ТРК (МРК, ГНК) : 32 [23:31:27]line Товар: 2710124130 [23:31:27]line Аи-92-К-3 [23:31:27]line 1.050 * 66.90 [23:31:27]line = 70.25 [23:31:27]line НДС 12% НСП 1% [23:31:27]line > о реализуемом товаре [23:31:27]line ОКРУГЛЕНИЕ: -0.25 [23:31:27]line ИТОГО: 70.00 [23:31:27]line Внесено: 70.00 [23:31:27]line СДАЧА: 0.00 [23:31:27]line НСП 1% : 0.62 [23:31:27]line НДС 12% : 7.46 [23:31:27]line Наличными: 70.00 [23:31:27]line Безнал.: 0.00 [23:31:27]line Место: АЗС № 86 "Партнер Нефть" [23:31:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:31:27]line СНО: Общий режим [23:31:27]line Чек 377 23.10.2024 23:31 [23:31:27]line Смена: 462 ФФД: 1.0 [23:31:27]line ЗНМ: 0300000155 [23:31:27]line РНМ: 0000000000100030 [23:31:27]line Версия ККМ: 001 [23:31:27]line ФМ: 0000000000965340 [23:31:27]line ФД: 188919 [23:31:27]line ФПД: 173471516813687 [23:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233127&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188919&fm=173471516813687&tin=02508201610067®Number=0000000000100030&sum=7000 [23:31:27]written 0, free lines is 4095 [23:31:27]OFD Sender: Processing packet 188919 [packets to send 1062, broken 1061] [23:31:27]ProducePacketName [23:31:27]name=ofd_packets/00188919 [23:31:27]OFD Sender: To server: pG, [23:31:27]CommunicateWithHost lk.salyk.kg:30040 [23:31:27]ConnectInit lk.salyk.kg [23:31:28]Connected sock=10 [23:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 A0 07 01 EF 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 79 01 00 00 F4 03 04 00 4F 87 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E1 02 00 35 04 06 00 9D C5 7C 23 69 77 74 C4 82 63 BD 95 02 33 [23:31:28]Write to MH i2c: 01 00 00 A8 10 B8 [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: 01 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: 01 07 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 4D 0C 18 [23:31:28]RasterBufferAndPrint [23:31:28]line [23:31:28]line [23:31:28]line [23:31:28]line [23:31:28]line [23:31:28]written 0, free lines is 3153 [23:31:28]MH_Cut [23:31:28]Write to MH i2c: D1 01 00 AF 10 01 91 [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: D1 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: D1 01 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: D1 01 00 AF 10 00 90 [23:31:28]Write to MH i2c: 01 00 00 B0 10 C0 [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BB DA 47 00 C1 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E1 02 00 F4 03 04 00 38 31 19 67 B6 04 01 00 00 AF 10 B0 97 33 91 76 4E [23:31:28]CommunicateWithHost err = 0 [23:31:28]CheckOFDResponse [23:31:28]1017 (14) - 77093643461234 [23:31:28]1041 (16) - 0000000000965340 [23:31:28]1040 (4) - 188919 [23:31:28]1012 (4) - 23.10.2024 17:24 [23:31:28]1206 (1) - 0 [23:31:28]OFD Sender: Remove packet 188919 [23:31:28]ProducePacketName [23:31:28]name=ofd_packets/00188919 [23:31:28]NVStorageDeleteData [23:31:28]OFD Sender: No OFD packet to send [23:31:29]*** Cut start [23:31:29]*** Partial cut [23:31:29]*** CUTSNS_PIN = 1 [23:31:29]*** CUTSNS_PIN = 0 [23:31:29]*** Brake cut motor [23:31:30]Read from MH i2c: 01 [23:31:30]MH_I2C_Read... [23:31:30]*** Stop cut motor [23:31:30]*** Cut end [23:31:30]Read from MH i2c: 01 07 00 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: 01 07 00 B0 10 00 00 00 00 00 FF 0F D5 [23:31:30]process_action close_receipt done [23:31:30]requested_data is exist [23:31:30]produce_requested_data [23:31:30]requested_item fm.sn is exist - process it [23:31:30]wFMCommunicate request_size=4 [23:31:30]MH_SAM_APDU [23:31:30]CAPDU: 80 11 00 00 [23:31:30]Write to MH i2c: E2 08 00 B1 10 80 11 00 00 00 00 00 00 3B [23:31:30]Write i2c OK [23:31:30]MH_I2C_Read... [23:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:30]Read from MH i2c: E2 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 17 00 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 17 00 B1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 89 [23:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:31:30]wFMCommunicate OK [23:31:30]requested_item fd.num is exist - process it [23:31:30]SAM_PROTO_GetFieldsCounters [23:31:30]wFMCommunicate request_size=4 [23:31:30]MH_SAM_APDU [23:31:30]CAPDU: 80 13 00 00 [23:31:30]Write to MH i2c: E2 08 00 B2 10 80 13 00 00 00 00 00 00 3E [23:31:30]Write i2c OK [23:31:30]MH_I2C_Read... [23:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:30]Read from MH i2c: E2 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 62 00 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 62 00 B2 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [23:31:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:30]wFMCommunicate OK [23:31:30]SAM_PROTO_GetFieldsCounters done [23:31:30]requested_item shift.num is exist - process it [23:31:30]requested_item shift.opened is exist - process it [23:31:30]req_shift_opened [23:31:30]FM_GetShiftState [23:31:30]SAM_PROTO_GetShiftState [23:31:30]wFMCommunicate request_size=4 [23:31:30]MH_SAM_APDU [23:31:30]CAPDU: 80 13 01 00 [23:31:30]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [23:31:30]Write i2c OK [23:31:30]MH_I2C_Read... [23:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:30]Read from MH i2c: E2 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 0E 00 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 28 [23:31:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:31:30]wFMCommunicate OK [23:31:30]SAM_PROTO_GetShiftState done [23:31:30]FM_GetShiftState done [23:31:30]req_shift_opened done [23:31:30]requested_item shift.open_date is exist - process it [23:31:30]req_shift_open_date [23:31:30]req_shift_open_date done [23:31:30]produce_requested_data done [23:31:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188919,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [23:31:30]process_action_free close_receipt [23:31:30]json_value_free [23:31:30]json_value_free done [23:31:30]process_json_proto returns [23:31:30]Send response to host [23:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188919,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [23:31:30]free response buf [23:31:30]execute_script done [23:31:30]execute_script returns [23:31:30]free content buf [23:31:30]Sock 8.Close socket [23:31:30]Sock 8.Thread stoped [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:02]accept exits with 9 [23:38:02]New connection [23:38:02]New thread 3066809700 created [23:38:02]Thread 3066953060 joined [23:38:02]Waiting for new connection... [23:38:02] Sock 9.Parse request [23:38:02]Sock 9.Check first char [23:38:02]Sock 9.First char is OK [23:38:02]request: POST /json_proto HTTP/1.0 [23:38:02]Method: POST [23:38:02]URL: /json_proto [23:38:02]Method is POST - this is cgi request [23:38:02]url: /json_proto [23:38:02]query_string will be loaded in cgi processing [23:38:02]execute_cgi json_proto POST (null) [23:38:02]execute_cgi path=json_proto method=POST [23:38:02]POST find Content-Length [23:38:02]Host: 172.17.42.131:8080 [23:38:02]Content-Length: 677 [23:38:02]Content-Type: application/json [23:38:02] [23:38:02]POST finish read [23:38:02]Found Content-Length = 677 [23:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:02]execute_script... [23:38:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:02]POST & json_proto [23:38:02]process_json_proto [23:38:02]json parsed OK: [23:38:02]protocol is kg_v1.0 [23:38:02]action value=close_receipt [23:38:02]process_action close_receipt [23:38:02]cmd_close_receipt [23:38:02]MH_GetDate [23:38:02]Write to MH i2c: F0 00 00 B4 10 B3 [23:38:02]Write i2c OK [23:38:02]MH_I2C_Read... [23:38:02]Read from MH i2c: F0 [23:38:02]MH_I2C_Read... [23:38:02]Read from MH i2c: F0 09 00 [23:38:02]MH_I2C_Read... [23:38:02]Read from MH i2c: F0 09 00 B4 10 00 DB 88 19 67 A0 18 CA 66 87 [23:38:02]GetLastDocTimeStamp 1729726287 [23:38:02]current date 1729726683 [23:38:02]FM_GetShiftState [23:38:02]SAM_PROTO_GetShiftState [23:38:02]wFMCommunicate request_size=4 [23:38:02]MH_SAM_APDU [23:38:02]CAPDU: 80 13 01 00 [23:38:02]Write to MH i2c: E2 08 00 B5 10 80 13 01 00 00 00 00 00 42 [23:38:02]Write i2c OK [23:38:02]MH_I2C_Read... [23:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:02]Read from MH i2c: E2 [23:38:02]MH_I2C_Read... [23:38:02]Read from MH i2c: E2 0E 00 [23:38:02]MH_I2C_Read... [23:38:02]Read from MH i2c: E2 0E 00 B5 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2A [23:38:02]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:38:02]wFMCommunicate OK [23:38:02]SAM_PROTO_GetShiftState done [23:38:02]FM_GetShiftState done [23:38:02]opened in 1729642525 [23:38:02]opened+sec_in_day 1729728925 [23:38:02]quantity*price = 50041 [23:38:02]sum+1 = 50042 [23:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 378 23.10.2024 23:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188920 ФПД: 240130765953752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188920&fm=240130765953752&tin=02508201610067®Number=0000000000100030&sum=50000 [23:38:03]StoreToDocumentArchive [23:38:03]shift 462 fd 188920 [23:38:03]save to /storage/0462/doc_00188920 [23:38:03]save last doc name /storage/0462/doc_00188920 to /storage/kkm_last_doc_name [23:38:03]save OK [23:38:03]Clear old archive folders... [23:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:38:03]tlvbuf is 0053A530 [23:38:03]SAM_PROTO_ClearQueue [23:38:03]wFMCommunicate request_size=4 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 09 00 00 [23:38:03]Write to MH i2c: E2 08 00 C2 10 80 09 00 00 00 00 00 00 44 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [23:38:03]RAPDU: 90 00 [23:38:03]wFMCommunicate OK [23:38:03]SAM_PROTO_ClearQueue done [23:38:03]KKMCreateOFDPacket [23:38:03]OFDProtocolAddRootSTLVToBuf [23:38:03]FM_MakeSignedData [23:38:03]FM_MakeSignedData [23:38:03]SAM_PROTO_SignData [23:38:03]wFMCommunicate request_size=4 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 0D 01 02 [23:38:03]Write to MH i2c: E2 08 00 C3 10 80 0D 01 02 00 00 00 00 4C [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [23:38:03]RAPDU: 90 00 [23:38:03]wFMCommunicate OK [23:38:03]wFMCommunicate request_size=255 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 DB 88 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E1 02 00 35 04 06 00 DA [23:38:03]Write to MH i2c: E2 02 01 C4 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 DB 88 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E1 02 00 35 04 06 00 DA 00 00 A1 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [23:38:03]RAPDU: 90 00 [23:38:03]wFMCommunicate OK [23:38:03]wFMCommunicate request_size=10 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 0D 02 02 05 65 CD 01 1A D8 [23:38:03]Write to MH i2c: E2 0D 00 C5 10 80 0D 02 02 05 00 65 CD 01 1A D8 00 00 7E [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [23:38:03]RAPDU: 90 00 [23:38:03]wFMCommunicate OK [23:38:03]wFMCommunicate request_size=4 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 0D 03 02 [23:38:03]Write to MH i2c: E2 08 00 C6 10 80 0D 03 02 00 00 00 00 51 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 0B 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 0B 00 C6 10 00 68 87 B6 FB D3 4E D1 29 90 00 0D [23:38:03]RAPDU: 68 87 B6 FB D3 4E D1 29 90 00 [23:38:03]wFMCommunicate OK [23:38:03]SAM_PROTO_SignData done [23:38:03]FM_MakeSignedData done [23:38:03]CreateOFDProtocolMessage [23:38:03]wFMCommunicate request_size=4 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 11 00 00 [23:38:03]Write to MH i2c: E2 08 00 C7 10 80 11 00 00 00 00 00 00 51 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 17 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 17 00 C7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [23:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:38:03]wFMCommunicate OK [23:38:03]CreateOFDProtocolMessage done [23:38:03]OFDSenderStorePacket 188920 [23:38:03]StoreOFDPacket docnum=188920 [23:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 02 07 01 DE 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 DB 88 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E1 02 00 35 04 06 00 DA 65 CD 01 1A D8 68 87 B6 FB D3 4E D1 29 [23:38:03]CheckFolder [23:38:03]dirname=/storage/ofd_packets [23:38:03]CheckFolder done [23:38:03]ProducePacketName [23:38:03]name=ofd_packets/00188920 [23:38:03]NVStorageSaveData ofd_packets/00188920 [23:38:03]File name is /storage/ofd_packets/00188920 [23:38:03]Write 301 bytes [23:38:03]NVStorageSaveData done [23:38:03]OFDSenderStorePacket done [23:38:03]KKMCreateOFDPacket done [23:38:03]NVStorageSaveData kkm_last_timestamp [23:38:03]File name is /storage/kkm_last_timestamp [23:38:03]Write 4 bytes [23:38:03]NVStorageSaveData done [23:38:03]ExternCall_PrintAddStr [23:38:03]wPrintStart [23:38:03]Write to MH i2c: 01 00 00 C8 10 D8 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: 01 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: 01 07 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: 01 07 00 C8 10 00 00 00 00 00 FF 0F ED [23:38:03]RasterBufferAndPrint [23:38:03]line Счет N : (1)210983 [23:38:03]line ИНН: 02508201610067 [23:38:03]line Контрольно-Кассовый Чек [23:38:03]line ПРОДАЖА [23:38:03]line ТРК (МРК, ГНК) : 12 [23:38:03]line Товар: 2710124130 [23:38:03]line Аи-92-К-3 [23:38:03]line 7.480 * 66.90 [23:38:03]line = 500.41 [23:38:03]line НДС 12% НСП 1% [23:38:03]line > о реализуемом товаре [23:38:03]line ОКРУГЛЕНИЕ: -0.41 [23:38:03]line ИТОГО: 500.00 [23:38:03]line Внесено: 500.00 [23:38:03]line СДАЧА: 0.00 [23:38:03]line НСП 1% : 4.43 [23:38:03]line НДС 12% : 53.14 [23:38:03]line Наличными: 500.00 [23:38:03]line Безнал.: 0.00 [23:38:03]line Место: АЗС № 86 "Партнер Нефть" [23:38:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:38:03]line СНО: Общий режим [23:38:03]line Чек 378 23.10.2024 23:38 [23:38:03]line Смена: 462 ФФД: 1.0 [23:38:03]line ЗНМ: 0300000155 [23:38:03]line РНМ: 0000000000100030 [23:38:03]line Версия ККМ: 001 [23:38:03]line ФМ: 0000000000965340 [23:38:03]line ФД: 188920 [23:38:03]line ФПД: 240130765953752 [23:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188920&fm=240130765953752&tin=02508201610067®Number=0000000000100030&sum=50000 [23:38:03]written 0, free lines is 4095 [23:38:03]OFD Sender: Processing packet 188920 [packets to send 1062, broken 1061] [23:38:03]ProducePacketName [23:38:03]name=ofd_packets/00188920 [23:38:03]OFD Sender: To server: pG, [23:38:03]CommunicateWithHost lk.salyk.kg:30040 [23:38:03]ConnectInit lk.salyk.kg [23:38:04]Connected sock=10 [23:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 02 07 01 DE 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 DB 88 19 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E1 02 00 35 04 06 00 DA 65 CD 01 1A D8 68 87 B6 FB D3 4E D1 29 [23:38:04]Write to MH i2c: 01 00 00 F3 10 03 [23:38:04]Write i2c OK [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: 01 [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: 01 07 00 [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: 01 07 00 F3 10 00 00 00 00 00 5C 0C 72 [23:38:04]RasterBufferAndPrint [23:38:04]line [23:38:04]line [23:38:04]line [23:38:04]line [23:38:04]line [23:38:04]written 0, free lines is 3168 [23:38:04]MH_Cut [23:38:04]Write to MH i2c: D1 01 00 FA 10 01 DC [23:38:04]Write i2c OK [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: D1 [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: D1 01 00 [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: D1 01 00 FA 10 00 DB [23:38:04]Write to MH i2c: 01 00 00 FB 10 0B [23:38:04]Write i2c OK [23:38:04]MH_I2C_Read... [23:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 06 CE 47 00 2F BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E1 02 00 F4 03 04 00 C5 32 19 67 B6 04 01 00 00 9D 83 87 2C 48 7D 99 B8 [23:38:04]CommunicateWithHost err = 0 [23:38:04]CheckOFDResponse [23:38:04]1017 (14) - 77093643461234 [23:38:04]1041 (16) - 0000000000965340 [23:38:04]1040 (4) - 188920 [23:38:04]1012 (4) - 23.10.2024 17:30 [23:38:04]1206 (1) - 0 [23:38:04]OFD Sender: Remove packet 188920 [23:38:04]ProducePacketName [23:38:04]name=ofd_packets/00188920 [23:38:04]NVStorageDeleteData [23:38:05]OFD Sender: No OFD packet to send [23:38:05]*** Cut start [23:38:05]*** Partial cut [23:38:05]*** CUTSNS_PIN = 1 [23:38:05]*** CUTSNS_PIN = 0 [23:38:05]*** Brake cut motor [23:38:06]Read from MH i2c: 01 [23:38:06]MH_I2C_Read... [23:38:06]*** Stop cut motor [23:38:06]*** Cut end [23:38:06]Read from MH i2c: 01 07 00 [23:38:06]MH_I2C_Read... [23:38:06]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [23:38:06]process_action close_receipt done [23:38:06]requested_data is exist [23:38:06]produce_requested_data [23:38:06]requested_item fm.sn is exist - process it [23:38:06]wFMCommunicate request_size=4 [23:38:06]MH_SAM_APDU [23:38:06]CAPDU: 80 11 00 00 [23:38:06]Write to MH i2c: E2 08 00 FC 10 80 11 00 00 00 00 00 00 86 [23:38:06]Write i2c OK [23:38:06]MH_I2C_Read... [23:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:06]Read from MH i2c: E2 [23:38:06]MH_I2C_Read... [23:38:06]Read from MH i2c: E2 17 00 [23:38:06]MH_I2C_Read... [23:38:06]Read from MH i2c: E2 17 00 FC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [23:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:38:06]wFMCommunicate OK [23:38:06]requested_item fd.num is exist - process it [23:38:06]SAM_PROTO_GetFieldsCounters [23:38:06]wFMCommunicate request_size=4 [23:38:06]MH_SAM_APDU [23:38:06]CAPDU: 80 13 00 00 [23:38:06]Write to MH i2c: E2 08 00 FD 10 80 13 00 00 00 00 00 00 89 [23:38:06]Write i2c OK [23:38:06]MH_I2C_Read... [23:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:06]Read from MH i2c: E2 [23:38:06]MH_I2C_Read... [23:38:06]Read from MH i2c: E2 62 00 [23:38:06]MH_I2C_Read... [23:38:06]Read from MH i2c: E2 62 00 FD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [23:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 E1 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:06]wFMCommunicate OK [23:38:06]SAM_PROTO_GetFieldsCounters done [23:38:06]requested_item shift.num is exist - process it [23:38:06]requested_item shift.opened is exist - process it [23:38:06]req_shift_opened [23:38:06]FM_GetShiftState [23:38:06]SAM_PROTO_GetShiftState [23:38:06]wFMCommunicate request_size=4 [23:38:06]MH_SAM_APDU [23:38:06]CAPDU: 80 13 01 00 [23:38:06]Write to MH i2c: E2 08 00 FE 10 80 13 01 00 00 00 00 00 8B [23:38:06]Write i2c OK [23:38:06]MH_I2C_Read... [23:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:06]Read from MH i2c: E2 [23:38:06]MH_I2C_Read... [23:38:06]Read from MH i2c: E2 0E 00 [23:38:06]MH_I2C_Read... [23:38:06]Read from MH i2c: E2 0E 00 FE 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 73 [23:38:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [23:38:06]wFMCommunicate OK [23:38:06]SAM_PROTO_GetShiftState done [23:38:06]FM_GetShiftState done [23:38:06]req_shift_opened done [23:38:06]requested_item shift.open_date is exist - process it [23:38:06]req_shift_open_date [23:38:06]req_shift_open_date done [23:38:06]produce_requested_data done [23:38:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188920,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [23:38:06]process_action_free close_receipt [23:38:06]json_value_free [23:38:06]json_value_free done [23:38:06]process_json_proto returns [23:38:06]Send response to host [23:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188920,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [23:38:06]free response buf [23:38:06]execute_script done [23:38:06]execute_script returns [23:38:06]free content buf [23:38:06]Sock 9.Close socket [23:38:06]Sock 9.Thread stoped [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]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:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send